/* ============================================
   FunFlow — Corporate Landing Page
   Dark / Light theme · Mobile-first
   ============================================ */

/* ---- Design Tokens ---- */
:root {
    /* Dark theme (default) */
    --bg:             #09090b;
    --bg-subtle:      #18181b;
    --surface:        rgba(255,255,255,0.04);
    --surface-solid:  #151518;
    --surface-hover:  rgba(255,255,255,0.07);
    --border:         rgba(255,255,255,0.08);
    --border-hover:   rgba(255,255,255,0.16);
    --text:           #fafafa;
    --text-secondary: #a1a1aa;
    --text-tertiary:  #71717a;

    /* Accent */
    --accent:         #6366f1;
    --accent-hover:   #818cf8;
    --accent-subtle:  rgba(99,102,241,0.12);

    /* Venture palette */
    --v-path:         #14b8a6;
    --v-path-bg:      rgba(20,184,166,0.10);
    --v-marn:         #f59e0b;
    --v-marn-bg:      rgba(245,158,11,0.10);
    --v-factory:      #8b5cf6;
    --v-factory-bg:   rgba(139,92,246,0.10);

    /* Hero */
    --hero-glow-opacity: 0.18;

    /* Layout */
    --max-w:          1200px;
    --header-h:       72px;
    --radius:         12px;
    --radius-lg:      16px;
    --radius-xl:      24px;

    /* Motion */
    --ease:           cubic-bezier(0.16, 1, 0.3, 1);
    --ease-out:       cubic-bezier(0, 0, 0.2, 1);
    --duration:       0.25s;
}

/* ---- Light Theme ---- */
[data-theme="light"] {
    --bg:             #fafafa;
    --bg-subtle:      #f4f4f5;
    --surface:        rgba(0,0,0,0.03);
    --surface-solid:  #ffffff;
    --surface-hover:  rgba(0,0,0,0.05);
    --border:         rgba(0,0,0,0.08);
    --border-hover:   rgba(0,0,0,0.16);
    --text:           #09090b;
    --text-secondary: #52525b;
    --text-tertiary:  #a1a1aa;
    --accent-subtle:  rgba(99,102,241,0.08);
    --v-path-bg:      rgba(20,184,166,0.08);
    --v-marn-bg:      rgba(245,158,11,0.08);
    --v-factory-bg:   rgba(139,92,246,0.08);
    --hero-glow-opacity: 0.10;
}

/* ---- Theme Transition ---- */
body,
.header,
.stat,
.v-card,
.wiz-btn,
.why-card,
.faq-item,
.contact__card,
.wizard__result,
.footer {
    transition: background-color 0.4s var(--ease), color 0.3s var(--ease), border-color 0.3s var(--ease), box-shadow 0.3s var(--ease);
}

/* ---- Reset ---- */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
    margin: 0;
    font-family: "Inter", system-ui, -apple-system, sans-serif;
    color: var(--text);
    background: var(--bg);
    line-height: 1.6;
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}
h1, h2, h3, h4, p, ul { margin: 0; }
a { color: inherit; text-decoration: none; }
button { font: inherit; cursor: pointer; border: none; background: none; color: inherit; }
ul { list-style: none; padding: 0; }
img { display: block; max-width: 100%; }

/* ---- Utilities ---- */
.container { width: min(100% - 48px, var(--max-w)); margin-inline: auto; }

.gradient-text {
    background: linear-gradient(135deg, var(--accent), #c084fc);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.tag {
    display: inline-block;
    padding: 6px 16px;
    border-radius: 999px;
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    background: var(--surface);
    color: var(--text-secondary);
    border: 1px solid var(--border);
}

.section-head {
    max-width: 640px;
    margin-inline: auto;
    text-align: center;
    margin-bottom: 56px;
}
.section-head h2 {
    font-family: "Space Grotesk", sans-serif;
    font-size: clamp(1.75rem, 4vw, 2.75rem);
    font-weight: 700;
    line-height: 1.12;
    margin: 16px 0 12px;
    text-wrap: balance;
}
.section-head p {
    color: var(--text-secondary);
    max-width: 520px;
    margin-inline: auto;
    font-size: 0.95rem;
}

/* ---- Buttons ---- */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    font-weight: 600;
    font-size: 0.9rem;
    border-radius: var(--radius);
    padding: 13px 26px;
    transition: transform var(--duration) var(--ease), box-shadow var(--duration), background var(--duration), border-color var(--duration), color var(--duration);
    white-space: nowrap;
}
.btn:hover { transform: translateY(-1px); }
.btn:active { transform: translateY(0); }

.btn--primary {
    color: #fff;
    background: var(--accent);
    box-shadow: 0 1px 2px rgba(0,0,0,0.1), 0 8px 24px rgba(99,102,241,0.25);
}
.btn--primary:hover {
    background: var(--accent-hover);
    box-shadow: 0 1px 2px rgba(0,0,0,0.1), 0 12px 32px rgba(99,102,241,0.35);
}

.btn--ghost {
    color: var(--text);
    background: transparent;
    border: 1px solid var(--border);
}
.btn--ghost:hover {
    border-color: var(--border-hover);
    background: var(--surface);
}

.btn--sm { padding: 10px 20px; font-size: 0.82rem; }
.btn--lg { padding: 16px 32px; font-size: 1rem; border-radius: var(--radius-lg); }

/* ---- Scroll Reveal ---- */
.anim-reveal {
    opacity: 0;
    transform: translateY(28px);
    transition: opacity 0.7s var(--ease), transform 0.7s var(--ease);
}
.anim-reveal.is-visible {
    opacity: 1;
    transform: translateY(0);
}

@media (prefers-reduced-motion: reduce) {
    .anim-reveal { opacity: 1; transform: none; transition: none; }
    .marquee__track { animation: none !important; }
}

/* ============================================
   HEADER
   ============================================ */
.header {
    --header-offset: 12px;
    position: fixed;
    top: var(--header-offset);
    left: 50%;
    transform: translateX(-50%);
    z-index: 100;
    width: min(calc(100% - 32px), 1280px);
    height: var(--header-h);
    border-radius: 16px;
    background: color-mix(in srgb, var(--bg) 80%, transparent);
    backdrop-filter: blur(16px) saturate(1.4);
    -webkit-backdrop-filter: blur(16px) saturate(1.4);
    border: 1px solid var(--border);
    box-shadow: 0 8px 32px rgba(0,0,0,0.12);
    transition: background var(--duration), border-color var(--duration), box-shadow var(--duration);
}

.header__inner {
    display: flex;
    align-items: center;
    gap: 24px;
    height: 100%;
}

/* Logo */
.logo {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    flex-shrink: 0;
    transition: opacity var(--duration);
}
.logo:hover { opacity: 0.8; }
.logo__img { height: 26px; width: auto; object-fit: contain; }
.logo__img--dark { display: none; }
[data-theme="light"] .logo__img--light { display: none; }
[data-theme="light"] .logo__img--dark  { display: block; }
.logo__img--square { height: 32px; width: 32px; border-radius: 8px; }
.logo__text { font-family: "Space Grotesk", sans-serif; font-weight: 700; font-size: 1.1rem; }

/* Nav */
.nav {
    display: flex;
    align-items: center;
    gap: 4px;
    margin-left: auto;
}
.nav__links {
    display: flex;
    align-items: center;
    gap: 4px;
}
.nav__link {
    padding: 8px 16px;
    border-radius: 8px;
    font-size: 0.88rem;
    font-weight: 500;
    color: var(--text-secondary);
    transition: color var(--duration), background var(--duration);
}
.nav__link:hover {
    color: var(--text);
    background: var(--surface);
}
.nav__mobile-footer {
    display: none;
}

/* Header right */
.header__right {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-left: 16px;
}

/* Theme toggle */
.theme-toggle {
    position: relative;
    width: 38px;
    height: 38px;
    border-radius: 10px;
    display: grid;
    place-items: center;
    background: var(--surface);
    border: 1px solid var(--border);
    transition: background var(--duration), border-color var(--duration);
}
.theme-toggle:hover {
    background: var(--surface-hover);
    border-color: var(--border-hover);
}
.theme-toggle__sun,
.theme-toggle__moon {
    position: absolute;
    transition: opacity 0.35s var(--ease), transform 0.35s var(--ease);
}
[data-theme="dark"] .theme-toggle__sun   { opacity: 1; transform: rotate(0deg) scale(1); }
[data-theme="dark"] .theme-toggle__moon  { opacity: 0; transform: rotate(-90deg) scale(0.6); }
[data-theme="light"] .theme-toggle__sun  { opacity: 0; transform: rotate(90deg) scale(0.6); }
[data-theme="light"] .theme-toggle__moon { opacity: 1; transform: rotate(0deg) scale(1); }

/* Burger */
.burger {
    display: none;
    flex-direction: column;
    gap: 5px;
    padding: 8px;
    margin-left: auto;
}
.burger span {
    display: block;
    width: 22px;
    height: 2px;
    background: var(--text);
    border-radius: 2px;
    transition: transform 0.3s var(--ease), opacity 0.3s;
}
.burger.is-open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.burger.is-open span:nth-child(2) { opacity: 0; }
.burger.is-open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ---- Header Mobile ---- */
@media (max-width: 860px) {
    .header { width: calc(100% - 24px); height: 64px; border-radius: 14px; }
    .header__inner { gap: 12px; }
    .nav {
        position: fixed;
        top: calc(64px + 12px + 8px);
        left: 12px;
        right: 12px;
        bottom: auto;
        max-height: calc(100dvh - 64px - 12px - 24px);
        flex-direction: column;
        align-items: stretch;
        gap: 0;
        padding: 16px;
        background: var(--surface-solid);
        border: 1px solid var(--border);
        border-radius: var(--radius-lg);
        backdrop-filter: blur(24px);
        -webkit-backdrop-filter: blur(24px);
        box-shadow: 0 24px 64px rgba(0,0,0,0.3);
        opacity: 0;
        visibility: hidden;
        transform: translateY(-12px);
        transition: opacity 0.3s var(--ease), transform 0.3s var(--ease), visibility 0.3s;
        z-index: 99;
        margin-left: 0;
        overflow-y: auto;
    }
    .nav.is-open {
        opacity: 1;
        visibility: visible;
        transform: translateY(0);
    }
    .nav__links {
        display: flex;
        flex-direction: column;
        gap: 2px;
    }
    .nav__link {
        font-size: 1.05rem;
        padding: 14px 16px;
        border-radius: var(--radius);
        width: 100%;
    }
    .nav__link:hover,
    .nav__link:active {
        background: var(--surface-hover);
    }
    .nav__mobile-footer {
        display: flex;
        flex-direction: column;
        align-items: center;
        gap: 16px;
        padding-top: 16px;
        margin-top: 12px;
        border-top: 1px solid var(--border);
    }
    .nav__mobile-cta {
        width: 100%;
        justify-content: center;
    }
    .nav__mobile-socials {
        display: flex;
        gap: 12px;
    }
    .burger { display: flex; }
    .header__right .btn { display: none; }
    .header__right { margin-left: auto; }
}

/* ============================================
   HERO
   ============================================ */
.hero {
    position: relative;
    padding: calc(var(--header-h) + 12px + 64px) 0 80px;
    overflow: hidden;
    min-height: 100vh;
    min-height: 100dvh;
    display: flex;
    align-items: center;
}

/* Background layers */
.hero__bg {
    position: absolute;
    inset: 0;
    pointer-events: none;
    z-index: 0;
}
.hero__glow {
    position: absolute;
    inset: 0;
    background:
        radial-gradient(ellipse 700px 500px at 30% 40%, var(--v-path), transparent),
        radial-gradient(ellipse 600px 500px at 70% 50%, var(--accent), transparent),
        radial-gradient(ellipse 500px 400px at 60% 80%, var(--v-factory), transparent);
    opacity: var(--hero-glow-opacity);
    filter: blur(100px);
}
.hero__grid {
    position: absolute;
    inset: 0;
    background-image:
        linear-gradient(var(--border) 1px, transparent 1px),
        linear-gradient(90deg, var(--border) 1px, transparent 1px);
    background-size: 64px 64px;
    opacity: 0.35;
    mask-image: radial-gradient(ellipse 90% 70% at 50% 40%, black 20%, transparent 75%);
    -webkit-mask-image: radial-gradient(ellipse 90% 70% at 50% 40%, black 20%, transparent 75%);
}

/* Mouse-tracking grid spotlight */
.hero__grid-spot {
    position: absolute;
    inset: 0;
    background-image:
        linear-gradient(var(--accent) 1px, transparent 1px),
        linear-gradient(90deg, var(--accent) 1px, transparent 1px);
    background-size: 64px 64px;
    opacity: 0;
    transition: opacity 0.4s var(--ease);
    mask-image: radial-gradient(circle 200px at var(--spot-x, 50%) var(--spot-y, 50%), black, transparent 70%);
    -webkit-mask-image: radial-gradient(circle 200px at var(--spot-x, 50%) var(--spot-y, 50%), black, transparent 70%);
    pointer-events: none;
    z-index: 1;
}
.hero:hover .hero__grid-spot { opacity: 0.35; }
.hero__noise {
    position: absolute;
    inset: 0;
    opacity: 0.03;
    background-image: 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.85' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
    background-repeat: repeat;
    background-size: 200px;
}

/* Hero content */
.hero__container {
    position: relative;
    z-index: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 22px;
}

/* Badge */
.badge {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 8px 18px 8px 14px;
    border-radius: 999px;
    font-size: 0.78rem;
    font-weight: 600;
    background: var(--surface);
    border: 1px solid var(--border);
    color: var(--text-secondary);
}
.badge__dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: var(--accent);
    animation: pulse-dot 2s ease infinite;
}
@keyframes pulse-dot {
    0%, 100% { box-shadow: 0 0 0 0 rgba(99,102,241,0.5); }
    50%      { box-shadow: 0 0 0 8px rgba(99,102,241,0); }
}

.hero__title {
    font-family: "Space Grotesk", sans-serif;
    font-size: clamp(2.75rem, 7vw, 5.5rem);
    font-weight: 700;
    line-height: 1.0;
    letter-spacing: -0.03em;
    max-width: 820px;
    text-wrap: balance;
}

.hero__sub {
    font-size: clamp(0.9rem, 1.4vw, 1.1rem);
    max-width: 600px;
    color: var(--text-secondary);
    line-height: 1.6;
}

.hero__actions {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    justify-content: center;
    padding-top: 6px;
}

/* Venture chips */
.hero__ventures {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    justify-content: center;
    padding-top: 24px;
}
.venture-chip {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 12px 18px 12px 14px;
    border-radius: var(--radius);
    background: var(--surface);
    border: 1px solid var(--border);
    transition: background var(--duration), border-color var(--duration), transform var(--duration), box-shadow var(--duration);
    width: 320px;
}
.venture-chip:hover {
    background: var(--surface-hover);
    border-color: var(--border-hover);
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(0,0,0,0.12);
}
.venture-chip img {
    width: 32px;
    height: 32px;
    object-fit: contain;
    flex-shrink: 0;
}
.venture-chip--path img,
.venture-chip--marn img { width: 40px; height: 40px; }
.venture-chip strong {
    display: block;
    font-size: 0.88rem;
    font-weight: 700;
    line-height: 1.15;
}
.venture-chip span {
    display: block;
    font-size: 0.72rem;
    color: var(--text-tertiary);
    line-height: 1.2;
    margin-top: 1px;
}
.venture-chip > div {
    text-align: left;
}

.venture-chip--path  { border-color: rgba(20,184,166,0.15); }
.venture-chip--marn  { border-color: rgba(245,158,11,0.15); }
.venture-chip--factory { border-color: rgba(139,92,246,0.15); }

@media (max-width: 640px) {
    .hero { padding: calc(var(--header-h) + 40px) 0 56px; min-height: auto; }
    .hero__ventures { flex-direction: column; align-items: center; width: 100%; }
    .venture-chip { width: 100%; max-width: 320px; }
    .hero__actions { flex-direction: column; width: 100%; align-items: center; }
    .hero__actions .btn { width: 100%; max-width: 320px; }
}

/* ============================================
   MARQUEE
   ============================================ */
.marquee {
    padding: 24px 0;
    border-top: 1px solid var(--border);
    border-bottom: 1px solid var(--border);
    overflow: hidden;
    position: relative;
}
.marquee::before,
.marquee::after {
    content: "";
    position: absolute;
    top: 0;
    bottom: 0;
    width: 80px;
    z-index: 2;
    pointer-events: none;
}
.marquee::before { left: 0; background: linear-gradient(90deg, var(--bg), transparent); }
.marquee::after  { right: 0; background: linear-gradient(-90deg, var(--bg), transparent); }

.marquee__track {
    display: flex;
    gap: 28px;
    width: max-content;
    animation: marquee-scroll 35s linear infinite;
}
.marquee__track span {
    font-size: 0.92rem;
    font-weight: 600;
    white-space: nowrap;
    color: var(--text-tertiary);
}
.marquee__dot {
    width: 5px;
    height: 5px;
    border-radius: 50%;
    background: var(--border);
    flex-shrink: 0;
    align-self: center;
}
@keyframes marquee-scroll { to { transform: translateX(-50%); } }

/* ============================================
   STATS
   ============================================ */
.stats { padding: 72px 0; }

.stats__grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 16px;
}
.stat {
    text-align: center;
    padding: 32px 16px;
    border-radius: var(--radius-lg);
    background: var(--surface);
    border: 1px solid var(--border);
    transition: border-color var(--duration), transform var(--duration);
}
.stat:hover {
    border-color: var(--border-hover);
    transform: translateY(-2px);
}
.stat__number {
    display: block;
    font-family: "Space Grotesk", sans-serif;
    font-size: clamp(2.2rem, 5vw, 3.4rem);
    font-weight: 700;
    line-height: 1.1;
    color: var(--text);
}
.stat__label {
    display: block;
    margin-top: 8px;
    font-size: 0.78rem;
    font-weight: 600;
    color: var(--text-tertiary);
    text-transform: uppercase;
    letter-spacing: 0.1em;
}

@media (max-width: 720px) { .stats__grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 400px) { .stats__grid { grid-template-columns: 1fr; } }

/* ============================================
   VENTURES
   ============================================ */
.ventures { padding: 96px 0; }

.ventures__grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
}

.v-card {
    position: relative;
    display: flex;
    flex-direction: column;
    gap: 16px;
    padding: 28px 24px;
    border-radius: var(--radius-lg);
    background: var(--surface);
    border: 1px solid var(--border);
    overflow: hidden;
    transition: border-color var(--duration), transform var(--duration), box-shadow var(--duration);
}
.v-card:hover {
    border-color: var(--border-hover);
    transform: translateY(-4px);
    box-shadow: 0 16px 48px rgba(0,0,0,0.12);
}

.v-card__accent {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
}
.v-card--path .v-card__accent    { background: linear-gradient(90deg, var(--v-path), transparent); }
.v-card--marn .v-card__accent    { background: linear-gradient(90deg, var(--v-marn), transparent); }
.v-card--factory .v-card__accent { background: linear-gradient(90deg, var(--v-factory), transparent); }

.v-card__head {
    display: flex;
    align-items: center;
    justify-content: space-between;
}
.v-card__icon {
    width: 56px;
    height: 56px;
    display: grid;
    place-items: center;
}
.v-card__icon img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}
.v-card--path .v-card__icon img,
.v-card--marn .v-card__icon img { width: 110%; height: 110%; }
.v-card--factory .v-card__icon img { width: 80%; height: 80%; }

.v-card__num {
    font-family: "Space Grotesk", sans-serif;
    font-size: 0.78rem;
    font-weight: 700;
    color: var(--text-tertiary);
    letter-spacing: 0.1em;
}

.v-card__tag {
    font-size: 0.72rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.12em;
}
.v-card--path .v-card__tag    { color: var(--v-path); }
.v-card--marn .v-card__tag    { color: var(--v-marn); }
.v-card--factory .v-card__tag { color: var(--v-factory); }

.v-card h3 {
    font-family: "Space Grotesk", sans-serif;
    font-size: 1.4rem;
    font-weight: 700;
    line-height: 1.15;
}
.v-card p {
    color: var(--text-secondary);
    font-size: 0.9rem;
}

/* Staggered reveal */
.v-card.anim-reveal:nth-child(2) { transition-delay: 0.1s; }
.v-card.anim-reveal:nth-child(3) { transition-delay: 0.2s; }

@media (max-width: 860px) { .ventures__grid { grid-template-columns: 1fr; max-width: 480px; margin-inline: auto; } }

/* ============================================
   WIZARD
   ============================================ */
.help { padding: 96px 0; }

.wizard {
    max-width: 740px;
    margin-inline: auto;
    min-height: 300px;
    position: relative;
}
.wizard__step {
    display: none;
    flex-direction: column;
    gap: 24px;
    animation: fadeUp 0.4s var(--ease) both;
}
.wizard__step--active { display: flex; }
@keyframes fadeUp {
    from { opacity: 0; transform: translateY(14px); }
    to   { opacity: 1; transform: translateY(0); }
}

.wizard__q {
    font-family: "Space Grotesk", sans-serif;
    font-size: 1.35rem;
    font-weight: 700;
    text-align: center;
}
.wizard__options {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 14px;
}
.wizard__options--3 { grid-template-columns: repeat(3, 1fr); }

.wiz-btn {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 12px;
    padding: 28px 18px;
    border-radius: var(--radius-lg);
    border: 1px solid var(--border);
    background: var(--surface);
    text-align: center;
    transition: transform var(--duration), border-color var(--duration), background var(--duration), box-shadow var(--duration);
}
.wiz-btn:hover {
    transform: translateY(-3px);
    border-color: var(--border-hover);
    background: var(--surface-hover);
    box-shadow: 0 12px 36px rgba(0,0,0,0.12);
}

.wiz-btn__icon {
    width: 52px;
    height: 52px;
    border-radius: var(--radius);
    display: grid;
    place-items: center;
    background: var(--accent-subtle);
    color: var(--accent);
    transition: background var(--duration), color var(--duration);
}
.wiz-btn__icon--path    { background: var(--v-path-bg); color: var(--v-path); }
.wiz-btn__icon--marn    { background: var(--v-marn-bg); color: var(--v-marn); }
.wiz-btn__icon--factory { background: var(--v-factory-bg); color: var(--v-factory); }

.wiz-btn__title { font-weight: 700; font-size: 0.95rem; }
.wiz-btn__desc  { font-size: 0.78rem; color: var(--text-tertiary); }

/* Back */
.wizard__back {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 8px 16px 8px 10px;
    border-radius: 10px;
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--text-secondary);
    background: var(--surface);
    transition: color var(--duration), background var(--duration);
    align-self: flex-start;
}
.wizard__back:hover { color: var(--text); background: var(--surface-hover); }

/* Result */
.wizard__result {
    padding: 32px;
    border-radius: var(--radius-xl);
    background: var(--surface);
    border: 1px solid var(--border);
    display: flex;
    flex-direction: column;
    gap: 16px;
}
.result__badge {
    display: inline-block;
    width: fit-content;
    padding: 5px 14px;
    border-radius: 999px;
    font-size: 0.7rem;
    font-weight: 700;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    background: var(--accent-subtle);
    color: var(--accent);
}
.wizard__result h3 {
    font-family: "Space Grotesk", sans-serif;
    font-size: 1.5rem;
    font-weight: 700;
}
.wizard__result > p { color: var(--text-secondary); font-size: 0.92rem; }

.result__meta {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
    padding-top: 4px;
}
.result__label {
    font-size: 0.7rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: var(--accent);
    margin-bottom: 4px;
    display: block;
}
.result__meta p { font-size: 0.88rem; color: var(--text-secondary); }

@media (max-width: 640px) {
    .wizard__options,
    .wizard__options--3 { grid-template-columns: 1fr; }
    .result__meta { grid-template-columns: 1fr; }
}

/* ============================================
   ABOUT
   ============================================ */
.about { padding: 96px 0; }

.about__grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 56px;
    align-items: start;
}
.about__text {
    display: flex;
    flex-direction: column;
    gap: 18px;
}
.about__text h2 {
    font-family: "Space Grotesk", sans-serif;
    font-size: clamp(1.75rem, 3.5vw, 2.5rem);
    font-weight: 700;
    line-height: 1.15;
}
.about__text > p { color: var(--text-secondary); font-size: 0.95rem; }

/* Timeline */
.timeline {
    position: relative;
    padding-left: 28px;
}
.timeline__line {
    position: absolute;
    top: 0;
    bottom: 0;
    left: 7px;
    width: 2px;
    background: var(--border);
    border-radius: 2px;
}
.timeline__step {
    position: relative;
    padding: 0 0 40px 20px;
}
.timeline__step:last-child { padding-bottom: 0; }

.timeline__dot {
    position: absolute;
    left: -24px;
    top: 4px;
    width: 14px;
    height: 14px;
    border-radius: 50%;
    border: 3px solid var(--bg);
    z-index: 1;
}
.timeline__dot--path    { background: var(--v-path); }
.timeline__dot--marn    { background: var(--v-marn); }
.timeline__dot--factory { background: var(--v-factory); }

.timeline__content {
    display: flex;
    flex-direction: column;
    gap: 6px;
}
.timeline__label {
    font-size: 0.7rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.12em;
}
.timeline__label--path    { color: var(--v-path); }
.timeline__label--marn    { color: var(--v-marn); }
.timeline__label--factory { color: var(--v-factory); }

.timeline__content h4 {
    font-family: "Space Grotesk", sans-serif;
    font-size: 1.15rem;
    font-weight: 700;
}
.timeline__content p {
    font-size: 0.88rem;
    color: var(--text-secondary);
}

@media (max-width: 860px) {
    .about__grid { grid-template-columns: 1fr; gap: 40px; }
}

/* ============================================
   WHY FUNFLOW
   ============================================ */
.why { padding: 96px 0; }

.why__grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 16px;
}
.why-card {
    padding: 28px 22px;
    border-radius: var(--radius-lg);
    background: var(--surface);
    border: 1px solid var(--border);
    display: flex;
    flex-direction: column;
    gap: 12px;
    transition: border-color var(--duration), transform var(--duration), box-shadow var(--duration);
}
.why-card:hover {
    border-color: var(--border-hover);
    transform: translateY(-3px);
    box-shadow: 0 12px 36px rgba(0,0,0,0.10);
}

.why-card__num {
    font-family: "Space Grotesk", sans-serif;
    font-size: 0.78rem;
    font-weight: 700;
    color: var(--accent);
    letter-spacing: 0.1em;
}
.why-card h3 {
    font-family: "Space Grotesk", sans-serif;
    font-size: 1.1rem;
    font-weight: 700;
    line-height: 1.2;
}
.why-card p {
    font-size: 0.88rem;
    color: var(--text-secondary);
}

/* Staggered reveal */
.why-card.anim-reveal:nth-child(2) { transition-delay: 0.08s; }
.why-card.anim-reveal:nth-child(3) { transition-delay: 0.16s; }
.why-card.anim-reveal:nth-child(4) { transition-delay: 0.24s; }

@media (max-width: 960px) { .why__grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 540px) { .why__grid { grid-template-columns: 1fr; } }

/* ============================================
   FAQ
   ============================================ */
.faq { padding: 96px 0; }

.faq__layout {
    display: grid;
    grid-template-columns: minmax(220px, 320px) minmax(0, 1fr);
    align-items: start;
    gap: 40px;
}
.faq__head { margin-bottom: 0; text-align: left; }
.faq__head h2 {
    font-family: "Space Grotesk", sans-serif;
    font-size: clamp(1.75rem, 3vw, 2.5rem);
    font-weight: 700;
    margin-top: 14px;
}

.faq__list {
    display: flex;
    flex-direction: column;
    gap: 8px;
}
.faq-item {
    border: 1px solid var(--border);
    border-radius: var(--radius);
    overflow: hidden;
    transition: background var(--duration), border-color var(--duration);
}
.faq-item[open] {
    background: var(--surface);
    border-color: var(--border-hover);
}

.faq-item summary {
    padding: 18px 22px;
    font-weight: 600;
    font-size: 0.95rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    transition: color var(--duration);
}
.faq-item summary:hover { color: var(--accent); }
.faq-item summary::marker,
.faq-item summary::-webkit-details-marker { display: none; }

.faq-item summary::after {
    content: "";
    flex-shrink: 0;
    width: 24px;
    height: 24px;
    border-radius: 6px;
    background: var(--surface);
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='14' height='14' viewBox='0 0 24 24' fill='none' stroke='%23a1a1aa' stroke-width='2.5' stroke-linecap='round'%3E%3Cpath d='M12 5v14M5 12h14'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: center;
    transition: transform 0.3s var(--ease);
}
.faq-item[open] summary::after { transform: rotate(45deg); }

.faq-item__body {
    padding: 0 22px 18px;
    color: var(--text-secondary);
    font-size: 0.9rem;
    line-height: 1.7;
    overflow: hidden;
}

@media (max-width: 860px) {
    .faq__layout { grid-template-columns: 1fr; gap: 24px; }
}

/* ============================================
   CONTACT CTA
   ============================================ */
.contact { padding: 96px 0; }

.contact__card {
    max-width: 720px;
    margin-inline: auto;
    padding: 48px 36px;
    border-radius: var(--radius-xl);
    background: var(--surface);
    border: 1px solid var(--border);
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 14px;
}
.contact__card h2 {
    font-family: "Space Grotesk", sans-serif;
    font-size: clamp(1.75rem, 4vw, 2.75rem);
    font-weight: 700;
}
.contact__card > p {
    color: var(--text-secondary);
    max-width: 480px;
    font-size: 0.95rem;
}
.contact__actions {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    justify-content: center;
    margin-top: 8px;
}

@media (max-width: 540px) {
    .contact__card { padding: 32px 20px; }
    .contact__actions { flex-direction: column; width: 100%; align-items: center; }
    .contact__actions .btn { width: 100%; }
}

/* ============================================
   FOOTER
   ============================================ */
.footer {
    padding: 64px 0 0;
    border-top: 1px solid var(--border);
}
.footer__grid {
    display: grid;
    grid-template-columns: 1.4fr repeat(3, 0.8fr);
    gap: 40px;
}
.footer__brand {
    display: flex;
    flex-direction: column;
    gap: 12px;
}
.footer__tagline {
    color: var(--text-tertiary);
    font-size: 0.88rem;
}
.footer__socials {
    display: flex;
    gap: 10px;
    margin-top: 4px;
}
/* Social links (shared by footer + mobile nav) */
.social-link {
    display: grid;
    place-items: center;
    width: 36px;
    height: 36px;
    border-radius: 10px;
    background: var(--surface);
    border: 1px solid var(--border);
    color: var(--text-tertiary);
    transition: color var(--duration), background var(--duration), border-color var(--duration);
}
.social-link:hover {
    color: var(--text);
    background: var(--surface-hover);
    border-color: var(--border-hover);
}
.footer__col {
    display: flex;
    flex-direction: column;
    gap: 10px;
}
.footer__col h4 {
    font-family: "Space Grotesk", sans-serif;
    font-size: 0.82rem;
    font-weight: 700;
    margin-bottom: 4px;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: var(--text-secondary);
}
.footer__col a {
    font-size: 0.88rem;
    color: var(--text-tertiary);
    transition: color var(--duration);
}
.footer__col a:hover { color: var(--text); }

.footer__bottom {
    padding: 24px 0;
    margin-top: 48px;
    border-top: 1px solid var(--border);
}
.footer__bottom p {
    font-size: 0.78rem;
    color: var(--text-tertiary);
}

@media (max-width: 720px) { .footer__grid { grid-template-columns: 1fr 1fr; gap: 32px; } }
@media (max-width: 480px) { .footer__grid { grid-template-columns: 1fr; } }
