/* ---- Reset & Variables ---- */
*, *::before, *::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

:root {
    --bg:           #06101e;
    --surface:      #0b1a30;
    --surface-2:    #112240;
    --accent:       #35c87a;
    --accent-blue:  #2548e0;
    --accent-dim:   rgba(53, 200, 122, 0.1);
    --text:         #e8f4ff;
    --text-muted:   #4e6f99;
    --border:       rgba(100, 160, 255, 0.1);
    --radius:       20px;
    --font:         -apple-system, BlinkMacSystemFont, 'SF Pro Display', 'Segoe UI', system-ui, sans-serif;
}

html {
    scroll-behavior: smooth;
}

body {
    background-color: var(--bg);
    color: var(--text);
    font-family: var(--font);
    -webkit-font-smoothing: antialiased;
    overflow-x: hidden;
}

.container {
    max-width: 1100px;
    margin: 0 auto;
    width: 100%;
}

/* ---- Nav ---- */
.nav {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 100;
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 14px 24px;
    background: rgba(13, 13, 20, 0.75);
    backdrop-filter: blur(24px);
    -webkit-backdrop-filter: blur(24px);
    border-bottom: 1px solid var(--border);
}

.nav-logo {
    width: 28px;
    height: 28px;
    border-radius: 7px;
}

.nav-title {
    font-weight: 700;
    font-size: 1rem;
    flex: 1;
}

.nav-cta {
    background: var(--accent);
    color: #031a0d;
    text-decoration: none;
    font-weight: 700;
    font-size: 0.875rem;
    padding: 8px 20px;
    border-radius: 50px;
    transition: opacity 0.2s, transform 0.2s;
}

.nav-cta:hover {
    opacity: 0.85;
    transform: translateY(-1px);
}

/* ---- Hero ---- */
.hero {
    min-height: 100svh;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    position: relative;
    padding: 100px 24px 80px;
    text-align: center;
    overflow: hidden;
}

.hero-glow {
    position: absolute;
    inset: 0;
    background:
        radial-gradient(ellipse 70% 55% at 20% 0%, rgba(53, 200, 122, 0.18) 0%, transparent 60%),
        radial-gradient(ellipse 70% 55% at 80% 5%,  rgba(37, 72, 224, 0.18) 0%, transparent 60%);
    pointer-events: none;
}

.hero-content {
    position: relative;
    z-index: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 22px;
    max-width: 640px;
}

.hero-logo {
    width: 120px;
    height: 120px;
    border-radius: 27px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.55), 0 0 0 1px rgba(255, 255, 255, 0.09);
}

.hero-content h1 {
    font-size: clamp(2.4rem, 6vw, 3.8rem);
    font-weight: 800;
    line-height: 1.1;
    letter-spacing: -0.03em;
}

.hero-tagline {
    font-size: clamp(1rem, 2.5vw, 1.15rem);
    color: var(--text-muted);
    line-height: 1.7;
    max-width: 480px;
}

/* ---- App Store Badge ---- */
.app-store-badge {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    background: #111;
    border: 1px solid rgba(255, 255, 255, 0.18);
    color: #fff;
    text-decoration: none;
    padding: 11px 24px;
    border-radius: 14px;
    transition: transform 0.2s, box-shadow 0.2s, border-color 0.2s;
    box-shadow: 0 6px 24px rgba(0, 0, 0, 0.4);
    margin-top: 4px;
}

.app-store-badge:hover {
    transform: translateY(-3px);
    box-shadow: 0 12px 36px rgba(0, 0, 0, 0.5);
    border-color: rgba(255, 255, 255, 0.3);
}

.apple-icon {
    width: 26px;
    height: 26px;
    flex-shrink: 0;
}

.badge-text {
    display: flex;
    flex-direction: column;
    text-align: left;
    line-height: 1;
}

.badge-sub {
    font-size: 0.62rem;
    font-weight: 500;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: rgba(255, 255, 255, 0.6);
    margin-bottom: 3px;
}

.badge-main {
    font-size: 1.15rem;
    font-weight: 700;
    letter-spacing: -0.01em;
    color: #fff;
}

/* ---- Scroll hint ---- */
.scroll-down {
    position: absolute;
    bottom: 36px;
    color: var(--text-muted);
    text-decoration: none;
    animation: bounce 2.2s ease-in-out infinite;
    transition: color 0.2s;
}

.scroll-down:hover {
    color: var(--text);
}

@keyframes bounce {
    0%, 100% { transform: translateY(0); }
    50%       { transform: translateY(8px); }
}

/* ---- Section shared ---- */
section {
    padding: 96px 24px;
}

.section-header {
    text-align: center;
    margin-bottom: 56px;
}

.section-label {
    display: inline-block;
    font-size: 0.75rem;
    font-weight: 700;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: var(--accent);
    margin-bottom: 14px;
}

section h2 {
    font-size: clamp(1.8rem, 4vw, 2.6rem);
    font-weight: 800;
    letter-spacing: -0.025em;
    line-height: 1.15;
}

/* ---- Screenshots ---- */
.screenshots {
    padding-left: 0;
    padding-right: 0;
}

.screenshots .section-header {
    padding: 0 24px;
}

.screenshot-track {
    display: flex;
    gap: 20px;
    overflow-x: auto;
    padding: 20px 40px 40px;
    scroll-snap-type: x mandatory;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
    cursor: grab;
}

@media (min-width: 900px) {
    .screenshot-track {
        justify-content: center;
    }
}

.screenshot-track:active {
    cursor: grabbing;
}

.screenshot-track::-webkit-scrollbar {
    display: none;
}

.screenshot-item {
    flex-shrink: 0;
    scroll-snap-align: start;
    border-radius: 36px;
    overflow: hidden;
    box-shadow: 0 28px 64px rgba(0, 0, 0, 0.65);
    border: 1px solid rgba(255, 255, 255, 0.07);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.screenshot-item:hover {
    transform: scale(1.025) translateY(-6px);
    box-shadow: 0 40px 80px rgba(0, 0, 0, 0.7);
}

.screenshot-item img {
    display: block;
    height: 500px;
    width: auto;
}

/* ---- How it works ---- */
.how {
    background: var(--surface);
    border-top: 1px solid var(--border);
    border-bottom: 1px solid var(--border);
}

.steps {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
}

@media (max-width: 640px) {
    .steps {
        grid-template-columns: 1fr;
    }
}

.step {
    background: var(--bg);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 32px 24px;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 10px;
    transition: border-color 0.2s;
}

.step:hover {
    border-color: rgba(53, 200, 122, 0.25);
}

.step-icon {
    font-size: 2.4rem;
    margin-bottom: 4px;
}

.step-num {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: var(--accent-dim);
    border: 1.5px solid var(--accent);
    color: var(--accent);
    font-weight: 800;
    font-size: 0.9rem;
    display: flex;
    align-items: center;
    justify-content: center;
}

.step h3 {
    font-size: 1.05rem;
    font-weight: 700;
    margin-top: 4px;
}

.step p {
    font-size: 0.875rem;
    color: var(--text-muted);
    line-height: 1.65;
}

/* ---- Features ---- */
.features-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 16px;
}

@media (max-width: 768px) {
    .features-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 480px) {
    .features-grid {
        grid-template-columns: 1fr;
    }
}

.feature-card {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 28px 24px;
    transition: border-color 0.2s, transform 0.25s;
}

.feature-card:hover {
    border-color: rgba(53, 200, 122, 0.28);
    transform: translateY(-3px);
}

.feature-icon {
    font-size: 2rem;
    margin-bottom: 14px;
    display: block;
}

.feature-card h3 {
    font-size: 1rem;
    font-weight: 700;
    margin-bottom: 8px;
}

.feature-card p {
    font-size: 0.875rem;
    color: var(--text-muted);
    line-height: 1.65;
}

/* ---- CTA ---- */
.cta {
    background: var(--surface);
    border-top: 1px solid var(--border);
    border-bottom: 1px solid var(--border);
    text-align: center;
}

.cta-inner {
    max-width: 560px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 16px;
}

.cta h2 {
    margin-bottom: 4px;
}

.cta p {
    color: var(--text-muted);
    font-size: 1rem;
    margin-bottom: 8px;
}

/* ---- Footer ---- */
.footer {
    border-top: 1px solid var(--border);
    padding: 48px 24px;
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 14px;
}

.footer-logo {
    width: 40px;
    height: 40px;
    border-radius: 10px;
    opacity: 0.4;
}

.footer-copy {
    font-size: 0.8rem;
    color: var(--text-muted);
}

.footer-link {
    font-size: 0.8rem;
    color: var(--text-muted);
    text-decoration: none;
    transition: color 0.2s;
}

.footer-link:hover {
    color: var(--text);
}

/* ---- Animations ---- */
.fade-in {
    opacity: 0;
    transform: translateY(24px);
    animation: fadeIn 0.9s cubic-bezier(0.22, 1, 0.36, 1) forwards 0.15s;
}

@keyframes fadeIn {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.reveal {
    opacity: 0;
    transform: translateY(32px);
    transition: opacity 0.75s cubic-bezier(0.22, 1, 0.36, 1),
                transform 0.75s cubic-bezier(0.22, 1, 0.36, 1);
}

.reveal.visible {
    opacity: 1;
    transform: translateY(0);
}

/* ---- Imprint ---- */
.imprint-page {
    min-height: 100vh;
    padding: 80px 24px 60px;
    max-width: 600px;
    margin: 0 auto;
}

.imprint-page h1 {
    font-size: 2rem;
    font-weight: 800;
    letter-spacing: -0.02em;
    margin-bottom: 8px;
}

.imprint-back {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    color: var(--accent);
    text-decoration: none;
    font-size: 0.875rem;
    font-weight: 600;
    margin-bottom: 40px;
    transition: opacity 0.2s;
}

.imprint-back:hover {
    opacity: 0.75;
}

.imprint-card {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 32px;
    display: flex;
    flex-direction: column;
    gap: 16px;
    margin-top: 32px;
}

.imprint-row {
    display: flex;
    align-items: flex-start;
    gap: 14px;
    font-size: 0.95rem;
    line-height: 1.5;
}

.imprint-row .imprint-icon {
    font-size: 1.2rem;
    flex-shrink: 0;
    margin-top: 1px;
}

.imprint-link {
    color: var(--text);
    text-decoration: none;
}

.imprint-link:hover {
    text-decoration: underline;
}

.imprint-row .imprint-label {
    color: var(--text-muted);
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    margin-bottom: 2px;
    font-weight: 600;
}
