/* =================================================================
   MANYFOLD — Landing page
   Design system + section styles
   "One story. Infinite paths."
   ================================================================= */

/* ---------- 1. Design tokens ---------- */
:root {
    /* Surfaces — deep "ink" canvas for cinematic reading mood */
    --ink-900: #06050f;
    --ink-800: #0b0a1a;
    --ink-700: #121130;
    --ink-600: #1a1840;
    --surface-glass: rgba(28, 26, 64, 0.55);
    --surface-line: rgba(160, 150, 255, 0.14);

    /* Brand spectrum — a single thread folding into many colours */
    --violet: #7c5cff;
    --violet-bright: #9b82ff;
    --indigo: #5b6bff;
    --cyan: #34e0e0;
    --sky: #2fd8ff;
    --coral: #ff8a5c;
    --pink: #ff5ca8;

    /* Text */
    --text: #f4f3ff;
    --text-soft: #c9c6ec;
    --text-mute: #948fc0;

    /* Decorative gradients — use for art, charts, and expressive headings, not controls. */
    --grad-brand: linear-gradient(
        115deg,
        var(--violet) 0%,
        var(--sky) 55%,
        var(--cyan) 100%
    );
    --grad-warm: linear-gradient(115deg, var(--pink) 0%, var(--coral) 100%);
    --grad-text: linear-gradient(100deg, #ffffff 0%, #c9bdff 40%, #6fe9ff 100%);
    --glow-violet: 0 0 60px rgba(124, 92, 255, 0.45);

    /* Warm Read Mode tokens shared with the Flutter reader. */
    --read-warm-bg: #f4ebdd;
    --read-warm-surface: #fff8ed;
    --read-warm-card: #fffcf5;
    --read-warm-text: #241a14;
    --read-warm-soft: #4f3e32;
    --read-warm-line: #e3d3bf;

    /* Type scale */
    --font-display: "Space Grotesk", system-ui, sans-serif;
    --font-body: "Inter", system-ui, sans-serif;

    /* Rhythm */
    --radius: 20px;
    --radius-lg: 32px;
    --maxw: 1200px;
    --gutter: clamp(20px, 5vw, 80px);

    --focus-ring:
        0 0 0 3px rgba(52, 224, 224, 0.28), 0 0 0 6px rgba(124, 92, 255, 0.18);
    --ease-out: cubic-bezier(0.22, 1, 0.36, 1);
}

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

html {
    -webkit-font-smoothing: antialiased;
}
/* Lenis smooth-scroll hooks */
html.lenis,
html.lenis body {
    height: auto;
}
.lenis.lenis-smooth {
    scroll-behavior: auto !important;
}
.lenis.lenis-stopped {
    overflow: hidden;
}

body {
    font-family: var(--font-body);
    background: var(--ink-900);
    color: var(--text);
    line-height: 1.6;
    overflow-x: hidden;
    /* Soft aurora field behind everything */
    background-image:
        radial-gradient(
            900px 600px at 15% -5%,
            rgba(124, 92, 255, 0.22),
            transparent 60%
        ),
        radial-gradient(
            800px 600px at 95% 10%,
            rgba(47, 216, 255, 0.16),
            transparent 55%
        ),
        radial-gradient(
            700px 700px at 50% 120%,
            rgba(255, 92, 168, 0.12),
            transparent 60%
        );
}

h1,
h2,
h3,
h4 {
    font-family: var(--font-display);
    font-weight: 600;
    line-height: 1.05;
    letter-spacing: -0.02em;
}
a {
    color: inherit;
    text-decoration: none;
}
img,
svg {
    display: block;
    max-width: 100%;
}
section {
    position: relative;
}

.wrap {
    width: 100%;
    max-width: var(--maxw);
    margin-inline: auto;
    padding-inline: var(--gutter);
}

/* Utility: gradient text */
.grad-text {
    background: var(--grad-text);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}
.warm-text {
    background: var(--grad-warm);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}

/* Eyebrow label */
.eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    font-family: var(--font-display);
    font-size: 0.78rem;
    font-weight: 500;
    letter-spacing: 0.22em;
    text-transform: uppercase;
    color: var(--text-soft);
    padding: 8px 16px;
    border: 1px solid var(--surface-line);
    border-radius: 100px;
    background: var(--surface-glass);
    backdrop-filter: blur(8px);
}
.eyebrow::before {
    content: "";
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: var(--cyan);
    box-shadow: 0 0 12px var(--cyan);
}

/* ---------- 3. Buttons ---------- */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    font-family: var(--font-display);
    font-weight: 600;
    font-size: 0.98rem;
    padding: 15px 28px;
    border-radius: 100px;
    border: 0;
    cursor: pointer;
    transition:
        transform 0.25s var(--ease-out),
        box-shadow 0.25s var(--ease-out),
        background 0.25s,
        border-color 0.25s;
    white-space: nowrap;
}
.btn-primary {
    background: var(--violet);
    color: #ffffff;
    box-shadow: 0 10px 30px rgba(124, 92, 255, 0.34);
}
.btn-primary:hover {
    transform: translateY(-2px);
    background: var(--violet-bright);
    box-shadow: 0 16px 38px rgba(124, 92, 255, 0.46);
}
.btn-primary:active,
.btn-ghost:active {
    transform: translateY(0);
}
.btn-ghost {
    background: var(--surface-glass);
    color: var(--text);
    border: 1px solid var(--surface-line);
    backdrop-filter: blur(10px);
}
.btn-ghost:hover {
    transform: translateY(-2px);
    border-color: rgba(160, 150, 255, 0.4);
    background: rgba(40, 38, 84, 0.7);
}
.btn:focus-visible,
input:focus-visible,
.nav-burger:focus-visible,
a:focus-visible {
    outline: none;
    box-shadow: var(--focus-ring);
}
.btn:disabled {
    cursor: wait;
    opacity: 0.68;
    transform: none;
    box-shadow: none;
}
.btn svg {
    width: 18px;
    height: 18px;
}

/* ---------- 4. Scroll progress ---------- */
.scroll-progress {
    position: fixed;
    top: 0;
    left: 0;
    height: 3px;
    width: 0%;
    background: var(--grad-brand);
    z-index: 200;
    box-shadow: 0 0 14px rgba(124, 92, 255, 0.7);
}

/* ---------- 5. Navigation ---------- */
.nav {
    position: fixed;
    inset: 0 0 auto 0;
    z-index: 150;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 18px var(--gutter);
    transition:
        background 0.4s,
        backdrop-filter 0.4s,
        border-color 0.4s;
    border-bottom: 1px solid transparent;
}
.nav.scrolled {
    background: rgba(8, 7, 20, 0.72);
    backdrop-filter: blur(16px) saturate(140%);
    border-bottom: 1px solid var(--surface-line);
}
.brand {
    display: flex;
    align-items: center;
    gap: 11px;
    font-family: var(--font-display);
    font-weight: 600;
    font-size: 1.18rem;
}
.brand .mark {
    width: 30px;
    height: 30px;
}
.nav-links {
    display: flex;
    gap: 34px;
    align-items: center;
}
.nav-links a {
    font-size: 0.94rem;
    color: var(--text-soft);
    transition: color 0.25s;
    position: relative;
}
.nav-links a::after {
    content: "";
    position: absolute;
    left: 0;
    bottom: -6px;
    height: 2px;
    width: 0;
    background: var(--grad-brand);
    transition: width 0.3s var(--ease-out);
}
.nav-links a:hover {
    color: var(--text);
}
.nav-links a:hover::after {
    width: 100%;
}
.nav-cta {
    display: flex;
    gap: 12px;
    align-items: center;
}
.nav-burger {
    display: none;
    flex-direction: column;
    gap: 5px;
    background: var(--surface-glass);
    border: 1px solid var(--surface-line);
    border-radius: 12px;
    cursor: pointer;
    padding: 10px;
}
.nav-burger span {
    width: 24px;
    height: 2px;
    background: var(--text);
    border-radius: 2px;
    transition:
        transform 0.25s var(--ease-out),
        opacity 0.25s;
}
.nav-open .nav-burger span:nth-child(1) {
    transform: translateY(7px) rotate(45deg);
}
.nav-open .nav-burger span:nth-child(2) {
    opacity: 0;
}
.nav-open .nav-burger span:nth-child(3) {
    transform: translateY(-7px) rotate(-45deg);
}

/* ---------- 6. Hero ---------- */
.hero {
    min-height: 100svh;
    display: flex;
    align-items: center;
    padding-top: 90px;
    overflow: hidden;
}
#hero-canvas {
    position: absolute;
    inset: 0;
    z-index: 0;
    opacity: 0.95;
}
.hero::after {
    /* vignette to anchor text */
    content: "";
    position: absolute;
    inset: 0;
    z-index: 1;
    pointer-events: none;
    background: radial-gradient(
        80% 80% at 30% 50%,
        transparent 30%,
        rgba(6, 5, 15, 0.72) 100%
    );
}
.hero .wrap {
    position: relative;
    z-index: 2;
}
.hero-inner {
    max-width: 760px;
}
.hero h1 {
    font-size: clamp(2.8rem, 7vw, 5.6rem);
    margin: 22px 0 0;
}
.hero h1 .line {
    display: block;
    overflow: hidden;
}
.hero p.lede {
    font-size: clamp(1.05rem, 1.6vw, 1.3rem);
    color: var(--text-soft);
    max-width: 560px;
    margin-top: 26px;
}
.hero-actions {
    display: flex;
    gap: 16px;
    margin-top: 38px;
    flex-wrap: wrap;
}
.hero-meta {
    display: flex;
    gap: 30px;
    margin-top: 48px;
    flex-wrap: wrap;
}
.hero-meta .stat .num {
    font-family: var(--font-display);
    font-size: 1.7rem;
    font-weight: 600;
}
.hero-meta .stat .lbl {
    font-size: 0.82rem;
    color: var(--text-mute);
    letter-spacing: 0.04em;
}

.scroll-hint {
    position: absolute;
    bottom: 28px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 2;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    color: var(--text-mute);
    font-size: 0.74rem;
    letter-spacing: 0.2em;
    text-transform: uppercase;
}
.scroll-hint .mouse {
    width: 22px;
    height: 36px;
    border: 1.5px solid var(--text-mute);
    border-radius: 12px;
    position: relative;
}
.scroll-hint .mouse::after {
    content: "";
    position: absolute;
    top: 7px;
    left: 50%;
    transform: translateX(-50%);
    width: 3px;
    height: 7px;
    border-radius: 3px;
    background: var(--cyan);
    animation: wheel 1.6s infinite;
}
@keyframes wheel {
    0% {
        opacity: 0;
        transform: translate(-50%, 0);
    }
    40% {
        opacity: 1;
    }
    100% {
        opacity: 0;
        transform: translate(-50%, 10px);
    }
}

/* ---------- 7. Section heading block ---------- */
.section {
    padding: clamp(90px, 13vh, 160px) 0;
}
.section-head {
    max-width: 720px;
    margin-bottom: 64px;
}
.section-head.center {
    margin-inline: auto;
    text-align: center;
}
.section-head h2 {
    font-size: clamp(2.1rem, 4.6vw, 3.6rem);
    margin: 18px 0 0;
}
.section-head p {
    color: var(--text-soft);
    font-size: 1.08rem;
    margin-top: 20px;
}

/* ---------- 8. Manifesto / scrollytelling intro ---------- */
.manifesto {
    text-align: center;
    padding-block: clamp(120px, 20vh, 220px);
}
.manifesto p {
    font-family: var(--font-display);
    font-weight: 500;
    font-size: clamp(1.8rem, 4.4vw, 3.4rem);
    line-height: 1.25;
    max-width: 980px;
    margin-inline: auto;
    letter-spacing: -0.02em;
}
.manifesto .word {
    display: inline-block;
    opacity: 0.16;
    transition: opacity 0.2s;
}

/* ---------- 9. How it works (pinned steps) ---------- */
.steps-pin {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
}
.steps-rail {
    display: flex;
    flex-direction: column;
    gap: 18px;
}
.step-card {
    border: 1px solid var(--surface-line);
    border-radius: var(--radius);
    padding: 28px 30px;
    background: var(--surface-glass);
    backdrop-filter: blur(8px);
    transition:
        border-color 0.4s,
        transform 0.4s,
        background 0.4s;
    opacity: 0.45;
}
.step-card.active {
    opacity: 1;
    border-color: rgba(124, 92, 255, 0.5);
    background: rgba(30, 28, 70, 0.7);
    transform: translateX(6px);
}
.step-card .idx {
    font-family: var(--font-display);
    font-size: 0.85rem;
    color: var(--cyan);
    letter-spacing: 0.18em;
}
.step-card h3 {
    font-size: 1.5rem;
    margin: 10px 0 8px;
}
.step-card p {
    color: var(--text-soft);
    font-size: 0.98rem;
}
.steps-stage {
    position: relative;
    min-height: 460px;
    display: flex;
    align-items: center;
    justify-content: center;
}
.steps-visual {
    position: relative;
    width: 100%;
    aspect-ratio: 1/1;
    max-width: 480px;
}
.steps-visual .scene {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transform: scale(0.92);
}
.steps-visual .scene.show {
    opacity: 1;
    transform: scale(1);
}

/* ---------- 9b. Scrollytelling slideshow (pinned) ---------- */
.unfold-stage {
    position: relative;
    min-height: 80vh;
    display: grid;
    grid-template-columns: 0.82fr 1.1fr;
    gap: 54px;
    align-items: center;
}
.unfold-scenes {
    position: relative;
    width: 100%;
    aspect-ratio: 14 / 10;
}
.uscene {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    will-change: transform, opacity;
}
.uscene svg {
    width: 100%;
    height: auto;
    border-radius: var(--radius-lg);
    box-shadow:
        0 40px 90px rgba(0, 0, 0, 0.45),
        var(--glow-violet);
    border: 1px solid var(--surface-line);
}
.unfold-captions {
    position: relative;
    min-height: 210px;
}
.ucap {
    position: absolute;
    inset: 0;
    opacity: 0;
    will-change: transform, opacity;
}
.ucap .idx {
    font-family: var(--font-display);
    font-size: 0.82rem;
    letter-spacing: 0.2em;
    color: var(--cyan);
    text-transform: uppercase;
}
.ucap h3 {
    font-size: clamp(1.8rem, 3.4vw, 2.8rem);
    margin: 14px 0 14px;
}
.ucap p {
    color: var(--text-soft);
    font-size: 1.08rem;
    max-width: 420px;
}
.unfold-dots {
    position: absolute;
    left: 0;
    bottom: -8px;
    display: flex;
    gap: 12px;
}
.unfold-dots span {
    width: 34px;
    height: 4px;
    border-radius: 4px;
    background: var(--surface-line);
    transition:
        background 0.4s,
        box-shadow 0.4s;
}
.unfold-dots span.on {
    background: var(--grad-brand);
    box-shadow: 0 0 12px rgba(124, 92, 255, 0.6);
}

@media (max-width: 980px) {
    .unfold-stage {
        grid-template-columns: 1fr;
        gap: 30px;
    }
    .unfold-captions {
        min-height: 150px;
        text-align: center;
    }
    .ucap p {
        margin-inline: auto;
    }
    .unfold-dots {
        left: 50%;
        transform: translateX(-50%);
        bottom: -6px;
    }
}

/* ---------- 10. Feature grid ---------- */
.feature-grid {
    display: grid;
    grid-template-columns: repeat(12, 1fr);
    gap: 22px;
}
.feature {
    border: 1px solid var(--surface-line);
    border-radius: var(--radius-lg);
    padding: 34px;
    position: relative;
    overflow: hidden;
    background: linear-gradient(
        180deg,
        rgba(26, 24, 64, 0.55),
        rgba(11, 10, 26, 0.4)
    );
    transition:
        transform 0.45s var(--ease-out),
        border-color 0.45s;
}
.feature::before {
    /* hover sheen */
    content: "";
    position: absolute;
    inset: 0;
    opacity: 0;
    transition: opacity 0.5s;
    background: radial-gradient(
        420px 220px at var(--mx, 50%) var(--my, 0%),
        rgba(124, 92, 255, 0.18),
        transparent 60%
    );
}
.feature:hover {
    transform: translateY(-6px);
    border-color: rgba(124, 92, 255, 0.45);
}
.feature:hover::before {
    opacity: 1;
}
.feature .ficon {
    width: 56px;
    height: 56px;
    margin-bottom: 22px;
}
.feature h3 {
    font-size: 1.35rem;
    margin-bottom: 10px;
}
.feature p {
    color: var(--text-soft);
    font-size: 0.97rem;
}
.feature.span-6 {
    grid-column: span 6;
}
.feature.span-4 {
    grid-column: span 4;
}
.feature.span-8 {
    grid-column: span 8;
}
.feature .tag {
    position: absolute;
    top: 24px;
    right: 24px;
    font-size: 0.7rem;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: var(--cyan);
    border: 1px solid var(--surface-line);
    padding: 4px 10px;
    border-radius: 100px;
}

/* ---------- 11. Branching timeline (self-drawing SVG) ---------- */
.timeline-wrap {
    display: grid;
    grid-template-columns: 0.9fr 1.1fr;
    gap: 50px;
    align-items: center;
}
.timeline-svg {
    width: 100%;
    height: auto;
    overflow: visible;
}
.timeline-svg path {
    fill: none;
    stroke-width: 2.5;
    stroke-linecap: round;
}
.timeline-svg .node {
    transform-box: fill-box;
    transform-origin: center;
}
.tl-legend {
    display: flex;
    flex-direction: column;
    gap: 22px;
}
.tl-legend .item {
    display: flex;
    gap: 16px;
    align-items: flex-start;
}
.tl-legend .dot {
    width: 14px;
    height: 14px;
    border-radius: 50%;
    margin-top: 6px;
    flex: none;
    box-shadow: 0 0 14px currentColor;
}
.tl-legend h4 {
    font-size: 1.1rem;
    margin-bottom: 4px;
}
.tl-legend p {
    color: var(--text-soft);
    font-size: 0.94rem;
}

/* ---------- 12. Stats band ---------- */
.stats-band {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 28px;
    text-align: center;
}
.stats-band .stat .num {
    font-family: var(--font-display);
    font-size: clamp(2.4rem, 5vw, 3.6rem);
    font-weight: 600;
}
.stats-band .stat .lbl {
    color: var(--text-mute);
    font-size: 0.92rem;
    margin-top: 6px;
}

/* ---------- 13. App / reader showcase ---------- */
.showcase {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
}
.phone {
    width: 300px;
    margin-inline: auto;
    aspect-ratio: 300/620;
    border-radius: 44px;
    background: linear-gradient(160deg, #1c1a44, #0a0920);
    border: 1px solid var(--surface-line);
    padding: 14px;
    box-shadow:
        0 40px 100px rgba(0, 0, 0, 0.6),
        var(--glow-violet);
    position: relative;
}
.phone .screen {
    width: 100%;
    height: 100%;
    border-radius: 32px;
    overflow: hidden;
    background: #08071a;
    position: relative;
}
.phone .notch {
    position: absolute;
    top: 22px;
    left: 50%;
    transform: translateX(-50%);
    width: 90px;
    height: 7px;
    border-radius: 100px;
    background: rgba(255, 255, 255, 0.18);
    z-index: 3;
}
.reader-ui {
    padding: 40px 20px 20px;
    height: 100%;
    display: flex;
    flex-direction: column;
}
.reader-ui .cover {
    height: 130px;
    border-radius: 18px;
    background: var(--grad-brand);
    position: relative;
    overflow: hidden;
    flex: none;
}
.reader-ui .cover .sheen {
    position: absolute;
    inset: 0;
    background: radial-gradient(
        circle at 70% 20%,
        rgba(255, 255, 255, 0.4),
        transparent 50%
    );
}
.reader-ui .ttl {
    font-family: var(--font-display);
    font-weight: 600;
    font-size: 1.05rem;
    margin: 14px 0 4px;
}
.reader-ui .by {
    font-size: 0.76rem;
    color: var(--text-mute);
}
.reader-ui .para {
    font-size: 0.8rem;
    color: var(--text-soft);
    margin: 14px 0;
    line-height: 1.5;
}
.reader-ui .choices {
    margin-top: auto;
    display: flex;
    flex-direction: column;
    gap: 9px;
}
.reader-ui .choice {
    font-size: 0.82rem;
    padding: 11px 14px;
    border-radius: 12px;
    border: 1px solid var(--surface-line);
    background: rgba(124, 92, 255, 0.08);
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
    transition:
        background 0.3s,
        border-color 0.3s,
        transform 0.3s;
}
.reader-ui .choice.hot {
    border-color: rgba(124, 92, 255, 0.6);
    background: rgba(124, 92, 255, 0.22);
}
.reader-ui .choice .pct {
    color: var(--cyan);
    font-size: 0.72rem;
}

/* ---------- 14. Testimonials ---------- */
.tcards {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 22px;
}
.tcard {
    border: 1px solid var(--surface-line);
    border-radius: var(--radius);
    padding: 30px;
    background: var(--surface-glass);
    backdrop-filter: blur(8px);
}
.tcard p {
    font-size: 1.02rem;
    color: var(--text);
    margin-bottom: 22px;
}
.tcard .who {
    display: flex;
    align-items: center;
    gap: 12px;
}
.tcard .ava {
    width: 42px;
    height: 42px;
    border-radius: 50%;
    flex: none;
}
.tcard .who .nm {
    font-family: var(--font-display);
    font-weight: 500;
    font-size: 0.95rem;
}
.tcard .who .hd {
    color: var(--text-mute);
    font-size: 0.8rem;
}
.tcard .stars {
    color: var(--coral);
    letter-spacing: 2px;
    margin-bottom: 14px;
    font-size: 0.9rem;
}

/* ---------- 15. Pricing ---------- */
.plans {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 22px;
    align-items: stretch;
}
.plan {
    border: 1px solid var(--surface-line);
    border-radius: var(--radius-lg);
    padding: 36px 32px;
    background: linear-gradient(
        180deg,
        rgba(26, 24, 64, 0.5),
        rgba(11, 10, 26, 0.35)
    );
    display: flex;
    flex-direction: column;
}
.plan.featured {
    border-color: rgba(124, 92, 255, 0.6);
    background: linear-gradient(
        180deg,
        rgba(48, 40, 110, 0.7),
        rgba(18, 16, 52, 0.5)
    );
    box-shadow: var(--glow-violet);
    position: relative;
}
.plan .pill {
    position: absolute;
    top: -13px;
    left: 50%;
    transform: translateX(-50%);
    background: var(--cyan);
    color: #071015;
    font-family: var(--font-display);
    font-weight: 700;
    font-size: 0.74rem;
    letter-spacing: 0.1em;
    padding: 6px 16px;
    border-radius: 100px;
    text-transform: uppercase;
}
.plan .pname {
    font-family: var(--font-display);
    font-weight: 600;
    font-size: 1.2rem;
}
.plan .price {
    font-family: var(--font-display);
    font-size: 3rem;
    font-weight: 600;
    margin: 16px 0 2px;
}
.plan .price span {
    font-size: 1rem;
    color: var(--text-mute);
    font-weight: 400;
}
.plan .pdesc {
    color: var(--text-mute);
    font-size: 0.9rem;
    margin-bottom: 24px;
}
.plan ul {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 13px;
    margin-bottom: 30px;
}
.plan li {
    font-size: 0.94rem;
    color: var(--text-soft);
    display: flex;
    gap: 11px;
    align-items: flex-start;
}
.plan li svg {
    width: 18px;
    height: 18px;
    flex: none;
    margin-top: 2px;
    color: var(--cyan);
}
.plan .btn {
    margin-top: auto;
    width: 100%;
}

/* ---------- 16. Final CTA ---------- */
.cta-final {
    text-align: center;
    border-radius: var(--radius-lg);
    overflow: hidden;
    position: relative;
    padding: clamp(60px, 9vw, 110px) var(--gutter);
    background: linear-gradient(
        135deg,
        rgba(124, 92, 255, 0.22),
        rgba(47, 216, 255, 0.14)
    );
    border: 1px solid var(--surface-line);
}
.cta-final h2 {
    font-size: clamp(2.2rem, 5.5vw, 4.2rem);
}
.cta-final p {
    color: var(--text-soft);
    font-size: 1.1rem;
    max-width: 540px;
    margin: 22px auto 36px;
}
.cta-form {
    display: flex;
    gap: 12px;
    max-width: 480px;
    margin-inline: auto;
    flex-wrap: wrap;
    justify-content: center;
}
.cta-form input {
    flex: 1;
    min-width: 220px;
    padding: 15px 22px;
    border-radius: 100px;
    border: 1px solid var(--surface-line);
    background: rgba(8, 7, 20, 0.6);
    color: var(--text);
    font-family: var(--font-body);
    font-size: 0.96rem;
}
.cta-form input::placeholder {
    color: var(--text-mute);
}
.cta-form input:focus {
    outline: none;
    border-color: var(--violet);
}
.cta-form.submitted input,
.cta-form.submitted button {
    display: none;
}
.form-message {
    flex-basis: 100%;
    min-height: 22px;
    color: var(--text-mute);
    font-size: 0.9rem;
}
.form-message.ok {
    color: var(--cyan);
}
.form-message.err {
    color: var(--pink);
}
.cta-note {
    font-size: 0.82rem;
    color: var(--text-mute);
    margin-top: 18px;
}

/* ---------- 17. Footer ---------- */
.footer {
    border-top: 1px solid var(--surface-line);
    padding: 70px 0 40px;
    margin-top: 40px;
}
.footer-grid {
    display: grid;
    grid-template-columns: 1.6fr repeat(3, 1fr);
    gap: 40px;
}
.footer .brand {
    margin-bottom: 16px;
}
.footer p.tag {
    color: var(--text-mute);
    font-size: 0.92rem;
    max-width: 280px;
}
.footer h5 {
    font-family: var(--font-display);
    font-size: 0.82rem;
    letter-spacing: 0.16em;
    text-transform: uppercase;
    color: var(--text-mute);
    margin-bottom: 16px;
}
.footer ul {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 11px;
}
.footer ul a {
    color: var(--text-soft);
    font-size: 0.94rem;
    transition: color 0.25s;
}
.footer ul a:hover {
    color: var(--text);
}
.footer-bottom {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 54px;
    padding-top: 26px;
    border-top: 1px solid var(--surface-line);
    color: var(--text-mute);
    font-size: 0.86rem;
    flex-wrap: wrap;
    gap: 14px;
}
.socials {
    display: flex;
    gap: 14px;
}
.socials a {
    width: 38px;
    height: 38px;
    border-radius: 50%;
    border: 1px solid var(--surface-line);
    display: grid;
    place-items: center;
    transition:
        border-color 0.3s,
        transform 0.3s;
}
.socials a:hover {
    border-color: var(--violet);
    transform: translateY(-3px);
}
.socials svg {
    width: 17px;
    height: 17px;
}

/* ---------- 17b. Scroll FX: parallax depth orbs ---------- */
.fx-layer {
    position: fixed;
    inset: 0;
    z-index: -1;
    pointer-events: none;
    overflow: hidden;
}
.fx-orb {
    position: absolute;
    border-radius: 50%;
    filter: blur(70px);
    opacity: 0.5;
    will-change: transform;
}
.fx-orb.o1 {
    width: 520px;
    height: 520px;
    top: 4%;
    left: -9%;
    background: radial-gradient(
        circle,
        rgba(124, 92, 255, 0.55),
        transparent 70%
    );
}
.fx-orb.o2 {
    width: 440px;
    height: 440px;
    top: 42%;
    right: -8%;
    background: radial-gradient(
        circle,
        rgba(47, 216, 255, 0.4),
        transparent 70%
    );
}
.fx-orb.o3 {
    width: 600px;
    height: 600px;
    top: 78%;
    left: 24%;
    background: radial-gradient(
        circle,
        rgba(255, 92, 168, 0.32),
        transparent 70%
    );
}

/* velocity-reactive skew + generic parallax movers */
.skew-fx {
    will-change: transform;
    transform-origin: center;
}
[data-parallax] {
    will-change: transform;
}

/* Journey spine — self-drawing story path with a comet head */
.journey {
    position: fixed;
    top: 0;
    left: 0;
    width: 64px;
    height: 100vh;
    z-index: 60;
    pointer-events: none;
}
.journey svg {
    width: 100%;
    height: 100%;
    overflow: visible;
}
#journey-trail {
    stroke-dasharray: 1;
    stroke-dashoffset: 1;
    filter: drop-shadow(0 0 6px rgba(124, 92, 255, 0.6));
}
#journey-head {
    filter: drop-shadow(0 0 8px #34e0e0);
    opacity: 0;
    transition: opacity 0.4s;
}
.journey .jnode {
    fill: rgba(160, 150, 255, 0.25);
    transition:
        fill 0.4s,
        r 0.4s;
}
.journey .jnode.on {
    fill: #34e0e0;
    filter: drop-shadow(0 0 6px #34e0e0);
}
@media (max-width: 1100px) {
    .journey {
        display: none;
    }
}

/* Steps progress rail */
.steps-track {
    position: absolute;
    left: -26px;
    top: 8px;
    bottom: 8px;
    width: 3px;
    border-radius: 3px;
    background: var(--surface-line);
    overflow: hidden;
}
.steps-track #steps-fill {
    position: absolute;
    inset: 0 0 auto 0;
    height: 0;
    background: var(--grad-brand);
    box-shadow: 0 0 12px rgba(124, 92, 255, 0.6);
}

/* Phone gets perspective for scroll-tilt */
.showcase {
    perspective: 1100px;
}
.phone {
    transform-style: preserve-3d;
    will-change: transform;
}

/* Timeline traveling pulse */
#tl-pulse {
    filter: drop-shadow(0 0 7px #34e0e0);
}

/* ---------- 18. Reveal animation defaults ---------- */
.reveal {
    opacity: 0;
    transform: translateY(34px);
}

/* ---------- 19. Responsive ---------- */
@media (max-width: 980px) {
    .nav-links,
    .nav-cta .btn-ghost {
        display: none;
    }
    .nav-burger {
        display: flex;
    }
    .nav-open .nav-links {
        display: flex;
        position: fixed;
        top: 76px;
        right: var(--gutter);
        left: var(--gutter);
        flex-direction: column;
        gap: 0;
        padding: 10px;
        border: 1px solid var(--surface-line);
        border-radius: var(--radius);
        background: rgba(8, 7, 20, 0.96);
        backdrop-filter: blur(18px) saturate(140%);
        box-shadow: 0 28px 70px rgba(0, 0, 0, 0.42);
    }
    .nav-open .nav-links a {
        padding: 14px 12px;
        color: var(--text);
        border-radius: 12px;
    }
    .nav-open .nav-links a:hover {
        background: rgba(124, 92, 255, 0.14);
    }
    .nav-open .nav-links a::after {
        display: none;
    }
    .steps-pin {
        grid-template-columns: 1fr;
    }
    .steps-stage {
        position: relative;
        height: 360px;
    }
    .steps-track {
        left: -14px;
    }
    .timeline-wrap,
    .showcase {
        grid-template-columns: 1fr;
    }
    .feature-grid {
        grid-template-columns: repeat(6, 1fr);
    }
    .feature.span-6,
    .feature.span-4,
    .feature.span-8 {
        grid-column: span 6;
    }
    .tcards,
    .plans {
        grid-template-columns: 1fr;
    }
    .stats-band {
        grid-template-columns: repeat(2, 1fr);
        gap: 40px 20px;
    }
    .footer-grid {
        grid-template-columns: 1fr 1fr;
    }
}
@media (max-width: 560px) {
    .hero-meta {
        gap: 22px;
    }
    .footer-grid {
        grid-template-columns: 1fr;
    }
    .footer-bottom {
        flex-direction: column;
        text-align: center;
    }
}

/* Respect reduced motion */
@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation-duration: 0.001ms !important;
        transition-duration: 0.001ms !important;
        scroll-behavior: auto !important;
    }
    html {
        scroll-behavior: auto;
    }
}
