/* ── Reset ──────────────────────────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }

/* ── Design tokens ──────────────────────────────────────────────────────── */
:root {
    --blue-deep:   #00007a;
    --blue-mid:    #0000b0;
    --blue-card:   #00009a;
    --teal:        #008b8b;
    --teal-bright: #00c8c8;
    --white:       #ffffff;
    --white-70:    rgba(255,255,255,0.70);
    --white-40:    rgba(255,255,255,0.40);
    --white-12:    rgba(255,255,255,0.12);
    --white-06:    rgba(255,255,255,0.06);
    --glass-bg:    rgba(0, 0, 160, 0.35);
    --glass-border:rgba(255,255,255,0.18);
    --glow:        rgba(0, 200, 200, 0.20);
    --font-mono:   'IBM Plex Mono', 'Courier New', monospace;
    --font-sans:   'IBM Plex Sans', system-ui, sans-serif;
}

/* ── Base ───────────────────────────────────────────────────────────────── */
body {
    background-color: var(--blue-deep);
    color: var(--white);
    font-family: var(--font-sans);
    font-size: 16px;
    line-height: 1.6;
    overflow-x: hidden;
}

/* CRT scanline signature effect */
body::before {
    content: '';
    position: fixed;
    inset: 0;
    background: repeating-linear-gradient(
            0deg,
            transparent,
            transparent 2px,
            rgba(0,0,0,0.06) 2px,
            rgba(0,0,0,0.06) 4px
    );
    pointer-events: none;
    z-index: 9999;
}

/* ── Glass card mixin ───────────────────────────────────────────────────── */
.glass {
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-radius: 12px;
    position: relative;
    overflow: hidden;
}
.glass::before {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0;
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.4), transparent);
}

/* ── Typography ─────────────────────────────────────────────────────────── */
h1, h2, h3, h4 { font-family: var(--font-mono); font-weight: 700; line-height: 1.2; }
h1 { font-size: clamp(2rem, 5vw, 3.5rem); }
h2 { font-size: clamp(1.5rem, 3vw, 2.25rem); }
h3 { font-size: 1.2rem; }
p  { color: var(--white-70); }
a  { color: var(--teal-bright); text-decoration: none; }
a:hover { text-decoration: underline; }
.mono { font-family: var(--font-mono); }

/* ── Layout helpers ─────────────────────────────────────────────────────── */
.container { max-width: 1140px; margin: 0 auto; padding: 0 24px; }
.section { padding: 80px 0; }
.section-label {
    font-family: var(--font-mono);
    font-size: 0.75rem;
    font-weight: 600;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    color: var(--teal-bright);
    margin-bottom: 16px;
}
.section-title { margin-bottom: 16px; }
.section-sub  { color: var(--white-70); max-width: 560px; margin-bottom: 48px; }

/* ── NAV ────────────────────────────────────────────────────────────────── */
nav {
    position: sticky; top: 0; z-index: 100;
    background: rgba(0,0,100,0.75);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border-bottom: 1px solid var(--glass-border);
}
.nav-inner {
    display: flex; align-items: center; justify-content: space-between;
    height: 64px;
}
.nav-logo {
    font-family: var(--font-mono);
    font-size: 1.2rem;
    font-weight: 700;
    color: var(--white);
    letter-spacing: -0.02em;
}
.nav-logo span { color: var(--teal-bright); }
.nav-links { display: flex; gap: 32px; list-style: none; }
.nav-links a {
    font-family: var(--font-mono);
    font-size: 0.85rem;
    color: var(--white-70);
    transition: color .2s;
}
.nav-links a:hover { color: var(--white); text-decoration: none; }
.nav-cta {
    background: var(--teal);
    color: var(--white) !important;
    padding: 8px 18px;
    border-radius: 6px;
    font-weight: 600;
    transition: background .2s;
}
.nav-cta:hover { background: var(--teal-bright); text-decoration: none !important; }

/* ── HERO ───────────────────────────────────────────────────────────────── */
.hero {
    padding: 100px 0 80px;
    background:
            radial-gradient(ellipse 70% 60% at 70% 50%, rgba(0,140,180,0.18) 0%, transparent 70%),
            radial-gradient(ellipse 40% 40% at 20% 80%, rgba(0,100,200,0.12) 0%, transparent 60%);
}
.hero-inner {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
}
.hero-badge {
    display: inline-flex; align-items: center; gap: 8px;
    background: var(--white-06);
    border: 1px solid var(--glass-border);
    border-radius: 100px;
    padding: 6px 14px;
    font-family: var(--font-mono);
    font-size: 0.78rem;
    color: var(--teal-bright);
    margin-bottom: 24px;
}
.hero-badge::before { content: '●'; font-size: 0.5rem; }
.hero h1 { margin-bottom: 20px; }
.hero h1 em { font-style: normal; color: var(--teal-bright); }
.hero-sub {
    font-size: 1.05rem;
    color: var(--white-70);
    margin-bottom: 36px;
    max-width: 480px;
}
.hero-actions { display: flex; gap: 16px; align-items: center; flex-wrap: wrap; }
.btn-appstore {
    display: inline-block;
    transition: transform .15s, opacity .15s;
}
.btn-appstore:hover {
    transform: translateY(-2px);
    opacity: .88;
}
.btn-appstore img {
    height: 48px;
    width: auto;
    display: block;
}
.btn-appstore-inner { display: flex; flex-direction: column; line-height: 1.1; }
.btn-appstore-inner small { font-weight: 400; font-size: 0.7rem; color: #444; }
.btn-ghost {
    font-family: var(--font-mono);
    font-size: 0.85rem;
    color: var(--white-70);
    border: 1px solid var(--glass-border);
    border-radius: 8px;
    padding: 12px 20px;
    transition: color .2s, border-color .2s;
}
.btn-ghost:hover { color: var(--white); border-color: var(--white-40); text-decoration: none; }
.hero-price {
    font-family: var(--font-mono);
    font-size: 0.8rem;
    color: var(--white-40);
    margin-top: 16px;
}
.hero-price strong { color: var(--teal-bright); }

/* Screenshot placeholder */
.screenshot-wrap {
    position: relative;
}
.screenshot-main {
    width: 100%;
    aspect-ratio: 16/10;
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    border-radius: 12px;
    display: flex; flex-direction: column;
    overflow: hidden;
    box-shadow: 0 24px 64px rgba(0,0,0,0.5), 0 0 0 1px rgba(255,255,255,0.05);
}
.screenshot-titlebar {
    height: 32px;
    background: rgba(0,0,60,0.8);
    border-bottom: 1px solid var(--glass-border);
    display: flex; align-items: center; padding: 0 12px; gap: 6px;
    flex-shrink: 0;
}
.dot { width: 10px; height: 10px; border-radius: 50%; }
.dot-red { background: #ff5f57; }
.dot-yellow { background: #febc2e; }
.dot-green { background: #28c840; }
.screenshot-titlebar-label {
    font-family: var(--font-mono); font-size: 0.7rem;
    color: var(--white-40); margin-left: auto; margin-right: auto;
}
.screenshot-body {
    flex: 1;
    display: flex; align-items: center; justify-content: center;
    flex-direction: column; gap: 8px;
    color: var(--white-40);
    font-family: var(--font-mono); font-size: 0.75rem;
}
.screenshot-body .icon { font-size: 2rem; opacity: .4; }

/* ── FEATURES GRID ──────────────────────────────────────────────────────── */
.features-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
}
.feature-card {
    padding: 28px 24px;
}
.feature-icon {
    width: 44px; height: 44px;
    background: var(--glow);
    border: 1px solid rgba(0,200,200,0.3);
    border-radius: 10px;
    display: flex; align-items: center; justify-content: center;
    font-size: 1.3rem;
    margin-bottom: 16px;
}
.feature-card h3 {
    font-size: 1rem;
    margin-bottom: 8px;
    color: var(--white);
}
.feature-card p { font-size: 0.9rem; color: var(--white-70); }
.badge-soon {
    display: inline-block;
    background: rgba(0,200,200,0.15);
    border: 1px solid rgba(0,200,200,0.3);
    border-radius: 4px;
    font-family: var(--font-mono);
    font-size: 0.65rem;
    color: var(--teal-bright);
    padding: 2px 6px;
    margin-left: 8px;
    vertical-align: middle;
    letter-spacing: 0.05em;
}

/* ── WALK-THROUGH ───────────────────────────────────────────────────────── */
.steps { display: flex; flex-direction: column; gap: 80px; }
.step {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
}
.step.reverse { direction: rtl; }
.step.reverse > * { direction: ltr; }
.step-number {
    font-family: var(--font-mono);
    font-size: 0.75rem;
    font-weight: 700;
    letter-spacing: 0.1em;
    color: var(--teal-bright);
    margin-bottom: 12px;
}
.step h3 { font-size: 1.5rem; margin-bottom: 12px; }
.step p { color: var(--white-70); margin-bottom: 16px; }
.step-details {
    list-style: none;
    display: flex; flex-direction: column; gap: 8px;
}
.step-details li {
    font-family: var(--font-mono);
    font-size: 0.85rem;
    color: var(--white-70);
    display: flex; align-items: flex-start; gap: 8px;
}
.step-details li::before { content: '→'; color: var(--teal-bright); flex-shrink: 0; }
.step-img {
    width: 100%;
    aspect-ratio: 4/3;
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    border-radius: 12px;
    display: flex; align-items: center; justify-content: center;
    flex-direction: column; gap: 10px;
    color: var(--white-40);
    font-family: var(--font-mono); font-size: 0.75rem;
    box-shadow: 0 16px 48px rgba(0,0,0,0.4);
}
.step-img .icon { font-size: 2.5rem; opacity: .35; }

/* ── DIVIDER ────────────────────────────────────────────────────────────── */
.divider {
    height: 1px;
    background: linear-gradient(90deg, transparent, var(--glass-border), transparent);
}

/* ── COMING SOON ────────────────────────────────────────────────────────── */
.coming-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
}
.coming-card {
    padding: 32px 28px;
    display: flex; gap: 20px; align-items: flex-start;
}
.coming-icon {
    font-size: 2rem; flex-shrink: 0;
    opacity: .7;
}
.coming-card h3 { font-size: 1rem; margin-bottom: 6px; }
.coming-card p { font-size: 0.88rem; color: var(--white-70); }

/* ── PRIVACY ────────────────────────────────────────────────────────────── */
.privacy-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
    margin-bottom: 40px;
}
.privacy-card { padding: 28px 24px; }
.privacy-card h3 { font-size: 1rem; margin-bottom: 10px; color: var(--teal-bright); }
.privacy-card p, .privacy-card li {
    font-size: 0.88rem; color: var(--white-70);
    line-height: 1.65;
}
.privacy-card ul { padding-left: 20px; display: flex; flex-direction: column; gap: 4px; }

/* ── SUPPORT ────────────────────────────────────────────────────────────── */
.support-box {
    padding: 48px;
    text-align: center;
    max-width: 640px;
    margin: 0 auto;
}
.support-box h2 { margin-bottom: 12px; }
.support-box p { margin-bottom: 28px; }
.btn-support {
    display: inline-flex; align-items: center; gap: 8px;
    background: var(--teal);
    color: var(--white) !important;
    border-radius: 8px;
    padding: 14px 28px;
    font-family: var(--font-mono);
    font-size: 0.9rem;
    font-weight: 700;
    text-decoration: none !important;
    transition: background .2s, transform .15s;
}
.btn-support:hover { background: var(--teal-bright); transform: translateY(-1px); }

/* ── FOOTER ─────────────────────────────────────────────────────────────── */
footer {
    background: rgba(0,0,40,0.9);
    border-top: 1px solid var(--glass-border);
    padding: 48px 0 32px;
}
.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr;
    gap: 48px;
    margin-bottom: 40px;
}
.footer-brand h3 {
    font-family: var(--font-mono);
    font-size: 1.1rem;
    margin-bottom: 8px;
}
.footer-brand h3 span { color: var(--teal-bright); }
.footer-brand p {
    font-size: 0.85rem;
    color: var(--white-40);
    max-width: 280px;
    line-height: 1.5;
}
.footer-company {
    font-size: 0.8rem;
    color: var(--white-40);
    margin-top: 16px;
    line-height: 1.8;
    font-family: var(--font-mono);
}
.footer-col h4 {
    font-family: var(--font-mono);
    font-size: 0.75rem;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--teal-bright);
    margin-bottom: 16px;
}
.footer-col ul { list-style: none; display: flex; flex-direction: column; gap: 10px; }
.footer-col a {
    font-size: 0.88rem;
    color: var(--white-40);
    transition: color .15s;
}
.footer-col a:hover { color: var(--white); text-decoration: none; }
.footer-bottom {
    border-top: 1px solid var(--white-06);
    padding-top: 24px;
    display: flex; justify-content: space-between; align-items: center;
    flex-wrap: wrap; gap: 12px;
}
.footer-bottom p {
    font-family: var(--font-mono);
    font-size: 0.75rem;
    color: var(--white-40);
}
.footer-social { display: flex; gap: 12px; }
.footer-social a {
    width: 36px; height: 36px;
    background: var(--white-06);
    border: 1px solid var(--glass-border);
    border-radius: 8px;
    display: flex; align-items: center; justify-content: center;
    font-size: 0.85rem;
    color: var(--white-40);
    transition: color .15s, background .15s;
}
.footer-social a:hover { color: var(--white); background: var(--white-12); text-decoration: none; }

/* ── Responsive ─────────────────────────────────────────────────────────── */
@media (max-width: 900px) {
    .hero-inner, .step, .coming-grid, .privacy-grid { grid-template-columns: 1fr; }
    .step.reverse { direction: ltr; }
    .features-grid { grid-template-columns: repeat(2, 1fr); }
    .footer-grid { grid-template-columns: 1fr 1fr; }
    .footer-brand { grid-column: 1 / -1; }
}
@media (max-width: 580px) {
    .features-grid, .footer-grid { grid-template-columns: 1fr; }
    .nav-links { display: none; }
}
@media (prefers-reduced-motion: reduce) {
    * { transition: none !important; animation: none !important; }
}