@import url('https://fonts.googleapis.com/css2?family=DM+Serif+Display:ital@0;1&family=Outfit:wght@300;400;500;600;700&display=swap');

/* ── Tokens ── */
:root {
    --bg: #0e0e10;
    --bg-raised: #18181c;
    --bg-card: #1e1e24;
    --text: #e8e4df;
    --text-dim: #8a857e;
    --text-bright: #fff;
    --accent: #d4a054;
    --accent-glow: #d4a05440;
    --accent-hover: #e2b56a;
    --blue: #5b9cf5;
    --blue-dim: #5b9cf520;
    --border: #2a2a30;
    --grain: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='0.04'/%3E%3C/svg%3E");
    --font-display: 'DM Serif Display', Georgia, serif;
    --font-body: 'Outfit', -apple-system, sans-serif;
    --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
    --ease-spring: cubic-bezier(0.34, 1.56, 0.64, 1);
}

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

html {
    scroll-behavior: smooth;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

body {
    font-family: var(--font-body);
    color: var(--text);
    line-height: 1.6;
    background: var(--bg);
    overflow-x: hidden;
}

/* ── Grain overlay ── */
body::before {
    content: '';
    position: fixed;
    inset: 0;
    background: var(--grain);
    background-size: 256px;
    pointer-events: none;
    z-index: 9999;
    opacity: 0.6;
}

/* ── Nav ── */
nav {
    position: fixed;
    top: 0;
    width: 100%;
    background: rgba(14, 14, 16, 0.8);
    backdrop-filter: blur(20px) saturate(1.4);
    -webkit-backdrop-filter: blur(20px) saturate(1.4);
    border-bottom: 1px solid var(--border);
    z-index: 100;
    padding: 0 2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 3.5rem;
}

nav .logo {
    font-family: var(--font-display);
    font-size: 1.05rem;
    color: var(--text-bright);
    text-decoration: none;
    letter-spacing: 0.01em;
}

nav .nav-links {
    display: flex;
    gap: 2rem;
    list-style: none;
}

nav .nav-links a {
    text-decoration: none;
    color: var(--text-dim);
    font-size: 0.82rem;
    font-weight: 500;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    transition: color 0.3s;
}

nav .nav-links a:hover {
    color: var(--accent);
}

/* Nav CTA button */
nav .nav-links .nav-cta {
    color: var(--accent);
    border: 1px solid var(--accent);
    border-radius: 7px;
    padding: 0.3rem 0.85rem;
    transition: background 0.25s var(--ease-out), color 0.25s;
}

nav .nav-links .nav-cta:hover {
    background: var(--accent);
    color: var(--bg);
}

.nav-price {
    font-size: 0.72rem;
    opacity: 0.75;
    margin-left: 0.2rem;
}

/* ── Sections ── */
section {
    padding: 6rem 2rem;
    max-width: 960px;
    margin: 0 auto;
    position: relative;
}

/* ── Hero ── */
.hero {
    text-align: center;
    padding-top: 10rem;
    padding-bottom: 5rem;
    position: relative;
}

/* Ambient glow behind hero */
.hero::before {
    content: '';
    position: absolute;
    top: 4rem;
    left: 50%;
    transform: translateX(-50%);
    width: 600px;
    height: 400px;
    background: radial-gradient(ellipse, var(--accent-glow) 0%, transparent 70%);
    pointer-events: none;
    z-index: 0;
}

.hero > * {
    position: relative;
    z-index: 1;
}

.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    background: var(--bg-raised);
    border: 1px solid var(--border);
    border-radius: 100px;
    padding: 0.4rem 1rem 0.4rem 0.6rem;
    font-size: 0.78rem;
    font-weight: 500;
    color: var(--text-dim);
    margin-bottom: 2rem;
    letter-spacing: 0.02em;
    animation: fadeUp 0.8s var(--ease-out) both;
}

.hero-badge .badge-dot {
    width: 6px;
    height: 6px;
    background: #4ade80;
    border-radius: 50%;
    animation: pulse 2s ease infinite;
}

.hero h1 {
    font-family: var(--font-display);
    font-size: clamp(2.5rem, 6vw, 4.2rem);
    font-weight: 400;
    line-height: 1.1;
    letter-spacing: -0.01em;
    color: var(--text-bright);
    margin-bottom: 1.5rem;
    animation: fadeUp 0.8s var(--ease-out) 0.1s both;
}

.hero h1 em {
    font-style: italic;
    color: var(--accent);
}

.hero .tagline {
    font-size: 1.15rem;
    font-weight: 300;
    color: var(--text-dim);
    margin-bottom: 2.5rem;
    max-width: 480px;
    margin-left: auto;
    margin-right: auto;
    line-height: 1.7;
    animation: fadeUp 0.8s var(--ease-out) 0.2s both;
}

.hero-cta {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 1rem;
    animation: fadeUp 0.8s var(--ease-out) 0.3s both;
}

.btn-buy {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    background: var(--accent);
    color: var(--bg);
    text-decoration: none;
    padding: 0.9rem 2rem;
    border-radius: 10px;
    font-size: 0.95rem;
    font-weight: 600;
    font-family: var(--font-body);
    letter-spacing: 0.01em;
    transition: all 0.3s var(--ease-out);
    box-shadow: 0 0 0 0 var(--accent-glow), 0 4px 20px -4px rgba(0,0,0,0.5);
}

.btn-buy:hover {
    background: var(--accent-hover);
    transform: translateY(-2px);
    box-shadow: 0 0 30px 0 var(--accent-glow), 0 8px 30px -4px rgba(0,0,0,0.6);
}

.btn-buy:active {
    transform: translateY(0);
}

.btn-buy .price-tag {
    background: rgba(0,0,0,0.2);
    padding: 0.15rem 0.5rem;
    border-radius: 5px;
    font-size: 0.85rem;
    font-weight: 700;
}

.hero-note {
    font-size: 0.78rem;
    color: var(--text-dim);
    opacity: 0.7;
}

/* ── Visual bridge / flow diagram ── */
.bridge {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 1.5rem;
    padding: 3rem 2rem 1rem;
    max-width: 500px;
    margin: 0 auto;
    animation: fadeUp 0.8s var(--ease-out) 0.45s both;
}

.bridge-icon {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
}

.bridge-icon img {
    width: 48px;
    height: 48px;
    opacity: 0.85;
    border-radius: 10px;
}

.bridge-icon span {
    font-size: 0.7rem;
    font-weight: 500;
    color: var(--text-dim);
    letter-spacing: 0.06em;
    text-transform: uppercase;
}

.bridge-arrow {
    display: flex;
    align-items: center;
    gap: 0;
    color: var(--accent);
    opacity: 0.5;
}

.bridge-arrow .arrow-line {
    width: 60px;
    height: 1px;
    background: currentColor;
}

.bridge-arrow svg {
    width: 16px;
    height: 16px;
    margin-left: -2px;
}

/* ── Demo Video ── */
.demo-video {
    text-align: center;
    max-width: 1060px;
}

.demo-video h2 {
    font-family: var(--font-display);
    font-size: clamp(1.8rem, 4vw, 2.6rem);
    font-weight: 400;
    color: var(--text-bright);
    line-height: 1.2;
    margin-bottom: 2.5rem;
}

.video-facade {
    position: relative;
    max-width: 960px;
    margin: 0 auto;
    aspect-ratio: 16 / 9;
    border-radius: 12px;
    border: 1px solid var(--border);
    overflow: hidden;
    cursor: pointer;
    background: var(--bg-raised);
}

.video-facade .video-poster {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.video-facade .video-player {
    display: none;
    width: 100%;
    height: 100%;
}

.video-facade.playing .video-poster,
.video-facade.playing .video-play-btn {
    display: none;
}

.video-facade.playing .video-player {
    display: block;
}

.video-play-btn {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 68px;
    height: 68px;
    background: none;
    border: none;
    cursor: pointer;
    transition: transform 0.3s var(--ease-out), filter 0.3s;
    z-index: 2;
}

.video-play-btn:hover {
    transform: translate(-50%, -50%) scale(1.1);
    filter: drop-shadow(0 0 20px var(--accent-glow));
}

/* ── Features ── */
#features {
    padding-top: 2rem;
}

.features-header {
    text-align: center;
    margin-bottom: 3rem;
}

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

.features-header h2,
.how-it-works h2 {
    font-family: var(--font-display);
    font-size: clamp(1.8rem, 4vw, 2.6rem);
    font-weight: 400;
    color: var(--text-bright);
    line-height: 1.2;
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1px;
    background: var(--border);
    border-radius: 16px;
    overflow: hidden;
    border: 1px solid var(--border);
}

.feature-card {
    background: var(--bg-raised);
    padding: 2rem 1.75rem;
    transition: background 0.3s;
}

.feature-card:hover {
    background: var(--bg-card);
}

.feature-card .feature-icon {
    width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--blue-dim);
    border-radius: 9px;
    margin-bottom: 1rem;
    color: var(--blue);
}

.feature-card .feature-icon svg {
    width: 18px;
    height: 18px;
}

.feature-card h3 {
    font-family: var(--font-body);
    font-size: 0.95rem;
    font-weight: 600;
    color: var(--text-bright);
    margin-bottom: 0.5rem;
}

.feature-card p {
    font-size: 0.85rem;
    color: var(--text-dim);
    line-height: 1.6;
}

/* Full-width last card when odd count */
.feature-card.full-width {
    grid-column: 1 / -1;
}

/* ── How It Works ── */
.how-it-works {
    text-align: center;
}

.how-it-works h2 {
    margin-bottom: 0.75rem;
}

.how-it-works .section-subtitle {
    color: var(--text-dim);
    font-size: 1rem;
    font-weight: 300;
    margin-bottom: 3.5rem;
}

.steps {
    display: flex;
    gap: 1px;
    background: var(--border);
    border-radius: 16px;
    overflow: hidden;
    border: 1px solid var(--border);
    text-align: left;
}

.step {
    flex: 1;
    background: var(--bg-raised);
    padding: 2.25rem 1.75rem;
    position: relative;
    transition: background 0.3s;
}

.step:hover {
    background: var(--bg-card);
}

.step-number {
    font-family: var(--font-display);
    font-size: 2.5rem;
    color: var(--accent);
    opacity: 0.35;
    line-height: 1;
    margin-bottom: 1rem;
}

.step h3 {
    font-family: var(--font-body);
    font-size: 1rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
    color: var(--text-bright);
}

.step p {
    font-size: 0.85rem;
    color: var(--text-dim);
    line-height: 1.6;
}

/* ── FAQ ── */
.faq {
    text-align: center;
}

.faq h2 {
    font-family: var(--font-display);
    font-size: clamp(1.8rem, 4vw, 2.6rem);
    font-weight: 400;
    color: var(--text-bright);
    line-height: 1.2;
    margin-bottom: 0.75rem;
}

.faq .section-subtitle {
    color: var(--text-dim);
    font-size: 1rem;
    font-weight: 300;
    margin-bottom: 3rem;
}

.faq-list {
    text-align: left;
    max-width: 720px;
    margin: 0 auto;
}

.faq-item {
    border-bottom: 1px solid var(--border);
}

.faq-item:first-child {
    border-top: 1px solid var(--border);
}

.faq-item summary {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 1.25rem 0;
    font-size: 0.95rem;
    font-weight: 500;
    color: var(--text-bright);
    cursor: pointer;
    list-style: none;
    transition: color 0.2s;
}

.faq-item summary::-webkit-details-marker {
    display: none;
}

.faq-item summary::after {
    content: '+';
    font-size: 1.3rem;
    font-weight: 300;
    color: var(--text-dim);
    transition: transform 0.3s var(--ease-out), color 0.2s;
    flex-shrink: 0;
    margin-left: 1rem;
}

.faq-item[open] summary::after {
    content: '\2212';
    color: var(--accent);
}

.faq-item summary:hover {
    color: var(--accent);
}

.faq-answer {
    padding: 0 0 1.25rem;
}

.faq-answer p {
    font-size: 0.88rem;
    color: var(--text-dim);
    line-height: 1.75;
}

.faq-answer strong {
    color: var(--text);
    font-weight: 600;
}

.faq-answer a {
    color: var(--accent);
    text-decoration: none;
    border-bottom: 1px solid transparent;
    transition: border-color 0.2s;
}

.faq-answer a:hover {
    border-bottom-color: var(--accent);
}

/* ── Final CTA ── */
.final-cta {
    text-align: center;
    padding: 5rem 2rem 6rem;
    position: relative;
}

.final-cta::before {
    content: '';
    position: absolute;
    bottom: 2rem;
    left: 50%;
    transform: translateX(-50%);
    width: 500px;
    height: 300px;
    background: radial-gradient(ellipse, var(--accent-glow) 0%, transparent 70%);
    pointer-events: none;
}

.final-cta > * {
    position: relative;
    z-index: 1;
}

.final-cta h2 {
    font-family: var(--font-display);
    font-size: clamp(1.6rem, 3.5vw, 2.2rem);
    color: var(--text-bright);
    margin-bottom: 0.75rem;
}

.final-cta p {
    color: var(--text-dim);
    font-size: 0.95rem;
    margin-bottom: 2rem;
}

/* ── Legal pages ── */
.legal {
    padding-top: 7rem;
    padding-bottom: 4rem;
    max-width: 680px;
}

.legal h1 {
    font-family: var(--font-display);
    font-size: 2.2rem;
    font-weight: 400;
    margin-bottom: 0.35rem;
    color: var(--text-bright);
}

.legal > p:first-of-type {
    margin-bottom: 2.5rem;
}

.legal em {
    color: var(--text-dim);
    font-style: normal;
    font-size: 0.85rem;
}

.legal h3 {
    font-family: var(--font-body);
    font-size: 1rem;
    font-weight: 600;
    margin-top: 2.5rem;
    margin-bottom: 0.6rem;
    color: var(--text-bright);
    padding-bottom: 0.4rem;
    border-bottom: 1px solid var(--border);
}

.legal p,
.legal ul {
    color: var(--text-dim);
    margin-bottom: 0.75rem;
    font-size: 0.9rem;
    line-height: 1.75;
}

.legal ul {
    padding-left: 0;
    list-style: none;
}

.legal li {
    margin-bottom: 0.5rem;
    padding-left: 1.25rem;
    position: relative;
}

.legal li::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0.6em;
    width: 5px;
    height: 5px;
    border-radius: 50%;
    background: var(--accent);
    opacity: 0.5;
}

.legal strong {
    color: var(--text);
    font-weight: 600;
}

.legal a {
    color: var(--accent);
    text-decoration: none;
    border-bottom: 1px solid transparent;
    transition: border-color 0.2s;
}

.legal a:hover {
    border-bottom-color: var(--accent);
}

/* ── Footer ── */
footer {
    border-top: 1px solid var(--border);
    padding: 2.5rem 2rem;
    text-align: center;
    font-size: 0.8rem;
    color: var(--text-dim);
    position: relative;
}

footer a {
    color: var(--text-dim);
    text-decoration: none;
    margin: 0 0.75rem;
    transition: color 0.2s;
}

footer a:hover {
    color: var(--accent);
}

footer .footer-links {
    margin-bottom: 0.75rem;
}

/* ── Animations ── */
@keyframes fadeUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes pulse {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.4; }
}

/* Scroll-triggered fade-in */
.reveal {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.7s var(--ease-out), transform 0.7s var(--ease-out);
}

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

/* Stagger children */
.reveal-stagger > * {
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.5s var(--ease-out), transform 0.5s var(--ease-out);
}

.reveal-stagger.visible > *:nth-child(1) { transition-delay: 0s; opacity: 1; transform: translateY(0); }
.reveal-stagger.visible > *:nth-child(2) { transition-delay: 0.08s; opacity: 1; transform: translateY(0); }
.reveal-stagger.visible > *:nth-child(3) { transition-delay: 0.16s; opacity: 1; transform: translateY(0); }
.reveal-stagger.visible > *:nth-child(4) { transition-delay: 0.24s; opacity: 1; transform: translateY(0); }
.reveal-stagger.visible > *:nth-child(5) { transition-delay: 0.32s; opacity: 1; transform: translateY(0); }
.reveal-stagger.visible > *:nth-child(6) { transition-delay: 0.4s; opacity: 1; transform: translateY(0); }
.reveal-stagger.visible > *:nth-child(7) { transition-delay: 0.48s; opacity: 1; transform: translateY(0); }
.reveal-stagger.visible > *:nth-child(8) { transition-delay: 0.56s; opacity: 1; transform: translateY(0); }
.reveal-stagger.visible > *:nth-child(9) { transition-delay: 0.64s; opacity: 1; transform: translateY(0); }
.reveal-stagger.visible > *:nth-child(10) { transition-delay: 0.72s; opacity: 1; transform: translateY(0); }

/* ── Inline code ── */
code {
    font-family: 'SF Mono', 'Fira Code', monospace;
    font-size: 0.82em;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 4px;
    padding: 0.1em 0.4em;
    color: var(--text);
}

/* ── Thank You page ── */
.thankyou-hero {
    text-align: center;
    padding-top: 9rem;
    padding-bottom: 3rem;
}

.success-icon {
    width: 64px;
    height: 64px;
    margin: 0 auto 1.5rem;
    background: rgba(74, 222, 128, 0.12);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #4ade80;
}

.success-icon svg {
    width: 32px;
    height: 32px;
}

.thankyou-hero h1 {
    font-family: var(--font-display);
    font-size: clamp(2rem, 5vw, 3.2rem);
    font-weight: 400;
    color: var(--text-bright);
    margin-bottom: 0.75rem;
}

.order-meta {
    font-size: 0.82rem;
    color: var(--accent);
    font-weight: 500;
    letter-spacing: 0.03em;
    margin-bottom: 1rem;
}

.thankyou-subtext {
    color: var(--text-dim);
    font-size: 1rem;
    font-weight: 300;
    max-width: 440px;
    margin: 0 auto;
    line-height: 1.7;
}

.thankyou-subtext strong {
    color: var(--text);
    font-weight: 600;
}

.thankyou-install {
    text-align: center;
}

.thankyou-install h2 {
    font-family: var(--font-display);
    font-size: clamp(1.6rem, 3.5vw, 2.4rem);
    font-weight: 400;
    color: var(--text-bright);
    margin-bottom: 3rem;
}

.install-detail {
    max-width: 720px;
    margin: 0 auto;
    padding: 0 2rem 4rem;
}

.thankyou-support {
    text-align: center;
    padding: 0 2rem 5rem;
}

.thankyou-support p {
    color: var(--text-dim);
    font-size: 0.9rem;
}

.thankyou-support a {
    color: var(--accent);
    text-decoration: none;
    border-bottom: 1px solid transparent;
    transition: border-color 0.2s;
}

.thankyou-support a:hover {
    border-bottom-color: var(--accent);
}

/* ── Responsive ── */
@media (max-width: 720px) {
    nav {
        padding: 0 1.25rem;
    }

    nav .nav-links {
        gap: 1.25rem;
    }

    nav .nav-links a {
        font-size: 0.75rem;
    }

    section {
        padding: 4rem 1.25rem;
    }

    .hero {
        padding-top: 7rem;
        padding-bottom: 3rem;
    }

    .hero::before {
        width: 300px;
        height: 250px;
    }

    .features-grid {
        grid-template-columns: 1fr;
    }

    .feature-card.full-width {
        grid-column: auto;
    }

    .steps {
        flex-direction: column;
    }

    .bridge {
        gap: 1rem;
    }

    .video-facade {
        border-radius: 8px;
    }

    .video-play-btn {
        width: 56px;
        height: 56px;
    }

    .bridge-arrow .arrow-line {
        width: 30px;
    }

    .bridge-icon img {
        width: 36px;
        height: 36px;
    }

    .legal {
        padding-top: 5rem;
    }

    .thankyou-hero {
        padding-top: 7rem;
    }

    .final-cta::before {
        width: 300px;
        height: 200px;
    }
}

@media (max-width: 420px) {
    .hero h1 {
        font-size: 2rem;
    }

    .hero .tagline {
        font-size: 1rem;
    }

    nav .nav-links {
        gap: 0.8rem;
    }

    .nav-price {
        display: none;
    }
}
