/* ============================================================================
   WeGoChat — Landing
   Os tokens abaixo são os MESMOS de frontend-kodefy/src/index.css (tema .dark
   "Winup"). Mantidos na notação HSL de três valores de propósito: se o app
   mudar a paleta, o diff aqui é linha a linha.
   ========================================================================== */

/* --- Tipografia: Geist self-hosted (cópia de frontend-kodefy/public/fonts) ---
   Self-hosted e não via Google Fonts porque a landing precisa subir sozinha,
   sem depender de terceiro no caminho crítico do LCP. */
@font-face {
    font-family: 'Geist';
    font-style: normal;
    font-weight: 100 900;
    font-display: swap;
    src: url('../fonts/geist-latin.woff2') format('woff2');
    unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+2074, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
    font-family: 'Geist';
    font-style: normal;
    font-weight: 100 900;
    font-display: swap;
    src: url('../fonts/geist-latin-ext.woff2') format('woff2');
    unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
    font-family: 'Geist Mono';
    font-style: normal;
    font-weight: 100 900;
    font-display: swap;
    src: url('../fonts/geist-mono-latin.woff2') format('woff2');
    unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+2074, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

:root {
    /* Tokens shadcn do tema .dark do app */
    --background: 240 24% 5%;
    --foreground: 210 22% 92%;
    --card: 240 18% 8%;
    --muted-foreground: 218 14% 65%;
    --border: 240 14% 16%;
    --radius: 0.75rem;

    /* Paleta de marca Winup */
    --winup-purple: 258 90% 66%;
    --winup-violet: 262 83% 68%;
    --winup-emerald: 152 69% 52%;
    --winup-green: 142 71% 45%;
    --winup-cyan: 190 100% 50%;
    --winup-fuchsia: 292 84% 61%;

    /* Derivados em hex, para gradientes (mesmos valores do app) */
    --c-purple: #a855f7;
    --c-violet: #8b5cf6;
    --c-emerald: #34d399;
    --c-cyan: #22d3ee;
    --c-fuchsia: #c026d3;
    --c-neon: #00ff88;

    --shell: min(1200px, 100% - 3rem);
    --nav-h: 72px;

    /* Curvas de easing — uma linguagem de movimento só no site inteiro */
    --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
    --ease-spring: cubic-bezier(0.34, 1.56, 0.64, 1);
}

*,
*::before,
*::after {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    scroll-padding-top: calc(var(--nav-h) + 1rem);
    color-scheme: dark;
    -webkit-text-size-adjust: 100%;
}

body {
    margin: 0;
    background-color: hsl(var(--background));
    color: hsl(var(--foreground));
    font-family: 'Geist', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    font-size: 16px;
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    overflow-x: hidden;
}

/* Scrollbar verde neon — assinatura visual da empresa (igual ao app) */
::-webkit-scrollbar { width: 10px; height: 10px; }
::-webkit-scrollbar-track { background: hsl(var(--background)); }
::-webkit-scrollbar-thumb {
    background: linear-gradient(180deg, #00ff88 0%, #00cc6a 100%);
    border-radius: 8px;
    border: 2px solid hsl(var(--background));
    box-shadow: inset 0 0 6px rgba(0, 255, 136, 0.5);
}
::-webkit-scrollbar-thumb:hover {
    background: linear-gradient(180deg, #33ff99 0%, #00ff00 100%);
    box-shadow: 0 0 12px rgba(0, 255, 0, 0.7), inset 0 0 8px rgba(255, 255, 255, 0.4);
}
html { scrollbar-width: thin; scrollbar-color: hsl(var(--winup-green)) hsl(var(--background)); }

img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }

/* Acessibilidade: foco sempre visível, nunca removido */
:focus-visible {
    outline: 2px solid var(--c-emerald);
    outline-offset: 3px;
    border-radius: 6px;
}

.skip-link {
    position: absolute;
    left: -9999px;
    top: 0;
    z-index: 999;
    padding: 0.75rem 1.25rem;
    background: var(--c-emerald);
    color: #04110b;
    font-weight: 600;
    border-radius: 0 0 8px 0;
}
.skip-link:focus { left: 0; }

.sr-only {
    position: absolute;
    width: 1px; height: 1px;
    padding: 0; margin: -1px;
    overflow: hidden;
    clip: rect(0 0 0 0);
    white-space: nowrap;
    border: 0;
}

/* ============================================================================
   FUNDO — starfield + grid + glows radiais (mesma composição da tela de login)
   ========================================================================== */
#starfield {
    position: fixed;
    inset: 0;
    z-index: 0;
    pointer-events: none;
    background: transparent;
}

.bg-layer {
    position: fixed;
    inset: 0;
    z-index: 0;
    pointer-events: none;
}

.grid-pattern {
    background-image:
        linear-gradient(rgba(148, 163, 184, 0.06) 1px, transparent 1px),
        linear-gradient(90deg, rgba(148, 163, 184, 0.06) 1px, transparent 1px);
    background-size: 24px 24px;
    opacity: 0.2;
    /* Máscara radial: o grid some nas bordas em vez de cortar reto */
    -webkit-mask-image: radial-gradient(ellipse 80% 60% at 50% 0%, #000 40%, transparent 100%);
    mask-image: radial-gradient(ellipse 80% 60% at 50% 0%, #000 40%, transparent 100%);
}

.glow-orb {
    position: fixed;
    border-radius: 9999px;
    filter: blur(130px);
    pointer-events: none;
    z-index: 0;
}
.glow-orb--purple {
    left: -10rem; top: -10rem;
    width: 520px; height: 520px;
    background: radial-gradient(circle, rgba(168, 85, 247, 0.28) 0%, transparent 70%);
    animation: drift-a 22s var(--ease-out) infinite alternate;
}
.glow-orb--emerald {
    right: -6rem; bottom: -10rem;
    width: 460px; height: 460px;
    background: radial-gradient(circle, rgba(52, 211, 153, 0.22) 0%, transparent 70%);
    animation: drift-b 26s var(--ease-out) infinite alternate;
}
.glow-orb--cyan {
    right: 10%; top: 8%;
    width: 380px; height: 380px;
    background: radial-gradient(circle, rgba(34, 211, 238, 0.14) 0%, transparent 65%);
    animation: drift-a 30s var(--ease-out) infinite alternate-reverse;
}
@keyframes drift-a {
    from { transform: translate3d(0, 0, 0) scale(1); }
    to   { transform: translate3d(60px, 40px, 0) scale(1.12); }
}
@keyframes drift-b {
    from { transform: translate3d(0, 0, 0) scale(1.08); }
    to   { transform: translate3d(-50px, -30px, 0) scale(1); }
}

/* ============================================================================
   LAYOUT
   ========================================================================== */
.shell {
    width: var(--shell);
    margin-inline: auto;
}

main { position: relative; z-index: 1; }

section { position: relative; padding-block: clamp(5rem, 11vw, 9rem); }

.section-head { max-width: 46rem; margin-bottom: 3.5rem; }
.section-head--center { margin-inline: auto; text-align: center; }

.eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    font-family: 'Geist Mono', ui-monospace, monospace;
    font-size: 0.7rem;
    font-weight: 500;
    letter-spacing: 0.24em;
    text-transform: uppercase;
    color: var(--c-emerald);
    margin-bottom: 1rem;
}
.eyebrow::before {
    content: '';
    width: 6px; height: 6px;
    border-radius: 50%;
    background: var(--c-emerald);
    box-shadow: 0 0 0 0 rgba(52, 211, 153, 0.7);
    animation: pulse-green 2s infinite;
}
@keyframes pulse-green {
    0%   { box-shadow: 0 0 0 0 rgba(52, 211, 153, 0.7); }
    70%  { box-shadow: 0 0 0 10px rgba(52, 211, 153, 0); }
    100% { box-shadow: 0 0 0 0 rgba(52, 211, 153, 0); }
}

h1, h2, h3 {
    line-height: 1.08;
    letter-spacing: -0.03em;
    font-weight: 600;
    margin: 0;
    text-wrap: balance;
}
h2 { font-size: clamp(2rem, 4.4vw, 3.2rem); }
h3 { font-size: 1.15rem; letter-spacing: -0.01em; line-height: 1.35; }

.lead {
    font-size: clamp(1.02rem, 1.5vw, 1.18rem);
    color: hsl(var(--muted-foreground));
    margin: 1.25rem 0 0;
    max-width: 42rem;
    text-wrap: pretty;
}
.section-head--center .lead { margin-inline: auto; }

/* Wordmark com gradiente — idêntico ao .winup-wordmark do app */
.wordmark {
    background: linear-gradient(90deg, #ffffff 0%, #d8b4fe 45%, #6ee7b7 100%);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    color: transparent;
}

/* ============================================================================
   NAVEGAÇÃO
   ========================================================================== */
.nav {
    position: fixed;
    inset: 0 0 auto 0;
    height: var(--nav-h);
    z-index: 100;
    display: flex;
    align-items: center;
    transition: background-color 0.4s var(--ease-out), border-color 0.4s var(--ease-out), backdrop-filter 0.4s var(--ease-out);
    border-bottom: 1px solid transparent;
}
/* Estado sólido só depois de rolar: o topo fica limpo sobre o starfield */
.nav.is-stuck {
    background: hsl(240 24% 4% / 0.72);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-bottom-color: hsl(0 0% 100% / 0.07);
}
.nav__inner {
    width: var(--shell);
    margin-inline: auto;
    display: flex;
    align-items: center;
    gap: 2rem;
}
.nav__links {
    display: flex;
    align-items: center;
    gap: 1.75rem;
    margin-left: auto;
    font-size: 0.9rem;
    color: hsl(var(--muted-foreground));
}
.nav__cta { margin-left: 0.35rem; }

/* Botão de menu — escondido no desktop, revelado no bloco responsivo */
.nav__toggle {
    display: none;
    margin-left: auto;
    /* 44px: piso de alvo de toque das diretrizes de acessibilidade */
    width: 44px;
    height: 44px;
    padding: 11px 10px;
    border: 1px solid hsl(0 0% 100% / 0.1);
    border-radius: 0.7rem;
    background: hsl(0 0% 100% / 0.03);
    cursor: pointer;
}
.nav__toggle span {
    display: block;
    height: 2px;
    border-radius: 2px;
    background: hsl(var(--foreground));
    transition: transform 0.35s var(--ease-out), opacity 0.25s var(--ease-out);
}
.nav__toggle span + span { margin-top: 5px; }
/* Vira um "X" quando aberto */
.nav__toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav__toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.nav__toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }
.nav__links a {
    position: relative;
    padding-block: 0.25rem;
    transition: color 0.25s var(--ease-out);
}
.nav__links a::after {
    content: '';
    position: absolute;
    left: 0; bottom: 0;
    width: 100%; height: 1px;
    background: linear-gradient(90deg, var(--c-purple), var(--c-emerald));
    transform: scaleX(0);
    transform-origin: right;
    transition: transform 0.35s var(--ease-out);
}
.nav__links a:hover { color: hsl(var(--foreground)); }
.nav__links a:hover::after { transform: scaleX(1); transform-origin: left; }

.brand { display: flex; align-items: center; gap: 0.7rem; }
.brand__ring {
    display: grid;
    place-items: center;
    width: 40px; height: 40px;
    padding: 2px;
    border-radius: 14px;
    background: linear-gradient(135deg, #a855f7 0%, #8b5cf6 45%, #34d399 100%);
    box-shadow: 0 0 24px -4px rgba(168, 85, 247, 0.6);
}
.brand__ring > span {
    display: grid;
    place-items: center;
    width: 100%; height: 100%;
    border-radius: 12px;
    background: #09090b;
}
.brand__ring img { width: 26px; height: 26px; border-radius: 8px; object-fit: cover; }
.brand__name { font-size: 1.05rem; font-weight: 700; line-height: 1; }
.brand__name em { font-style: normal; color: var(--c-emerald); }
.brand__by {
    display: block;
    margin-top: 3px;
    font-size: 0.58rem;
    letter-spacing: 0.24em;
    text-transform: uppercase;
    color: hsl(0 0% 100% / 0.45);
}

/* ============================================================================
   BOTÕES
   ========================================================================== */
.btn {
    --btn-py: 0.8rem;
    position: relative;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.55rem;
    padding: var(--btn-py) 1.5rem;
    border: 1px solid transparent;
    border-radius: 0.75rem;
    font: inherit;
    font-size: 0.94rem;
    font-weight: 600;
    cursor: pointer;
    overflow: hidden;
    white-space: nowrap;
    transition: transform 0.2s var(--ease-out), box-shadow 0.3s var(--ease-out),
                background-position 0.5s var(--ease-out), border-color 0.3s var(--ease-out);
}
.btn svg { width: 17px; height: 17px; flex-shrink: 0; }

/* Primário — o .btn-winup do app */
.btn--primary {
    background: linear-gradient(90deg, #7c3aed 0%, #c026d3 50%, #7c3aed 100%);
    background-size: 200% 100%;
    color: #fff;
    box-shadow: 0 15px 40px -10px rgba(168, 85, 247, 0.55);
}
.btn--primary:hover { background-position: 100% 0; transform: translateY(-2px); }
.btn--primary:active { transform: translateY(0) scale(0.99); }
/* Varredura de brilho no hover */
.btn--primary::before {
    content: '';
    position: absolute;
    inset: 0;
    transform: translateX(-100%);
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.3), transparent);
    transition: transform 0.7s var(--ease-out);
}
.btn--primary:hover::before { transform: translateX(100%); }

.btn--ghost {
    background: hsl(0 0% 100% / 0.03);
    border-color: hsl(0 0% 100% / 0.1);
    color: hsl(var(--foreground));
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
}
.btn--ghost:hover {
    border-color: hsl(0 0% 100% / 0.22);
    background: hsl(0 0% 100% / 0.06);
    transform: translateY(-2px);
}

.btn--lg { --btn-py: 1rem; padding-inline: 1.9rem; font-size: 1rem; }

.btn-row { display: flex; flex-wrap: wrap; gap: 0.9rem; margin-top: 2.25rem; }
.section-head--center .btn-row { justify-content: center; }

/* ============================================================================
   HERO
   ========================================================================== */
.hero {
    padding-top: calc(var(--nav-h) + clamp(3.5rem, 8vw, 6rem));
    padding-bottom: clamp(4rem, 8vw, 7rem);
}
.hero__grid {
    display: grid;
    grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.95fr);
    gap: clamp(2.5rem, 5vw, 4.5rem);
    align-items: center;
}
.hero h1 {
    font-size: clamp(2.6rem, 6.2vw, 4.6rem);
    font-weight: 600;
}
.hero .lead { font-size: clamp(1.05rem, 1.6vw, 1.25rem); }

/* Pílula de status no topo do hero */
.hero__pill {
    display: inline-flex;
    align-items: center;
    gap: 0.6rem;
    padding: 0.4rem 0.9rem 0.4rem 0.5rem;
    margin-bottom: 1.75rem;
    border: 1px solid hsl(0 0% 100% / 0.09);
    border-radius: 999px;
    background: hsl(0 0% 100% / 0.03);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    font-size: 0.82rem;
    color: hsl(var(--muted-foreground));
}
.hero__pill b {
    padding: 0.15rem 0.55rem;
    border-radius: 999px;
    background: linear-gradient(90deg, var(--c-purple), var(--c-emerald));
    color: #08120d;
    font-size: 0.68rem;
    font-weight: 700;
    letter-spacing: 0.06em;
    text-transform: uppercase;
}

/* Palavra que troca sozinha — o "rotator" do headline */
.rotator {
    display: inline-grid;
    vertical-align: bottom;
    text-align: left;
}
.rotator > span {
    grid-area: 1 / 1;
    background: linear-gradient(90deg, #d8b4fe 0%, #6ee7b7 60%, #22d3ee 100%);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    opacity: 0;
    transform: translateY(0.42em) rotateX(-55deg);
    transform-origin: top center;
    filter: blur(6px);
    transition: opacity 0.5s var(--ease-out), transform 0.6s var(--ease-out), filter 0.5s var(--ease-out);
}
.rotator > span.is-active {
    opacity: 1;
    transform: translateY(0) rotateX(0);
    filter: blur(0);
}
.rotator > span.is-leaving {
    opacity: 0;
    transform: translateY(-0.42em) rotateX(55deg);
    filter: blur(6px);
}

/* Faixa de métricas */
.metrics {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 1.5rem;
    margin-top: 3rem;
    padding-top: 2rem;
    border-top: 1px solid hsl(0 0% 100% / 0.07);
}
.metric__value {
    font-family: 'Geist Mono', ui-monospace, monospace;
    font-size: clamp(1.5rem, 2.6vw, 2rem);
    font-weight: 600;
    line-height: 1;
    background: linear-gradient(90deg, #fff, #6ee7b7);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    font-variant-numeric: tabular-nums;
}
.metric__label {
    margin-top: 0.5rem;
    font-size: 0.78rem;
    color: hsl(var(--muted-foreground));
    line-height: 1.35;
}

/* ============================================================================
   MOCK DO PRODUTO — painel de vidro com conversa animada
   ========================================================================== */
.console {
    position: relative;
    border-radius: 1.25rem;
    border: 1px solid hsl(0 0% 100% / 0.08);
    background: hsl(240 18% 8% / 0.72);
    backdrop-filter: blur(24px);
    -webkit-backdrop-filter: blur(24px);
    box-shadow: 0 40px 90px -35px rgba(0, 0, 0, 0.9), inset 0 1px 0 rgba(255, 255, 255, 0.06);
    overflow: hidden;
    /* Flutuação sutil e contínua */
    animation: console-float 7s ease-in-out infinite;
}
@keyframes console-float {
    0%, 100% { transform: translateY(0); }
    50%      { transform: translateY(-10px); }
}
/* Hairline superior — mesma assinatura do .winup-card */
.console::before {
    content: '';
    position: absolute;
    inset: 0 0 auto 0;
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.35), transparent);
    z-index: 2;
}
.console__bar {
    display: flex;
    align-items: center;
    gap: 0.55rem;
    padding: 0.85rem 1.1rem;
    border-bottom: 1px solid hsl(0 0% 100% / 0.06);
    background: hsl(0 0% 100% / 0.02);
}
.console__dot { width: 10px; height: 10px; border-radius: 50%; }
.console__title {
    margin-left: 0.6rem;
    font-family: 'Geist Mono', ui-monospace, monospace;
    font-size: 0.72rem;
    color: hsl(var(--muted-foreground));
    letter-spacing: 0.04em;
}
.console__live {
    margin-left: auto;
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    font-size: 0.66rem;
    font-family: 'Geist Mono', ui-monospace, monospace;
    text-transform: uppercase;
    letter-spacing: 0.16em;
    color: var(--c-emerald);
}
.console__live i {
    width: 6px; height: 6px;
    border-radius: 50%;
    background: var(--c-emerald);
    animation: pulse-green 2s infinite;
}
.console__body {
    padding: 1.35rem;
    min-height: 340px;
    display: flex;
    flex-direction: column;
    gap: 0.85rem;
    justify-content: flex-end;
}

/* Bolhas: entram de baixo, saem por cima — o "aparecendo e desaparecendo" */
.bubble {
    max-width: 82%;
    padding: 0.7rem 0.95rem;
    border-radius: 1rem;
    font-size: 0.88rem;
    line-height: 1.45;
    opacity: 0;
    transform: translateY(14px) scale(0.97);
    animation: bubble-in 0.55s var(--ease-spring) forwards;
}
@keyframes bubble-in {
    to { opacity: 1; transform: translateY(0) scale(1); }
}
.bubble.is-out { animation: bubble-out 0.45s var(--ease-out) forwards; }
@keyframes bubble-out {
    to { opacity: 0; transform: translateY(-14px) scale(0.97); filter: blur(4px); }
}
.bubble--in {
    align-self: flex-start;
    background: hsl(0 0% 100% / 0.055);
    border: 1px solid hsl(0 0% 100% / 0.07);
    border-bottom-left-radius: 0.3rem;
}
.bubble--out {
    align-self: flex-end;
    background: linear-gradient(135deg, rgba(124, 58, 237, 0.85), rgba(192, 38, 211, 0.75));
    border-bottom-right-radius: 0.3rem;
    color: #fff;
    box-shadow: 0 12px 30px -12px rgba(168, 85, 247, 0.7);
}
.bubble--tag {
    align-self: center;
    max-width: none;
    padding: 0.3rem 0.75rem;
    border-radius: 999px;
    background: hsl(var(--winup-emerald) / 0.12);
    border: 1px solid hsl(var(--winup-emerald) / 0.28);
    color: var(--c-emerald);
    font-family: 'Geist Mono', ui-monospace, monospace;
    font-size: 0.68rem;
    letter-spacing: 0.05em;
}

/* Indicador de digitação */
.typing { display: inline-flex; gap: 4px; align-items: center; padding-block: 0.2rem; }
.typing i {
    width: 6px; height: 6px;
    border-radius: 50%;
    background: hsl(var(--muted-foreground));
    animation: typing-bounce 1.3s infinite;
}
.typing i:nth-child(2) { animation-delay: 0.16s; }
.typing i:nth-child(3) { animation-delay: 0.32s; }
@keyframes typing-bounce {
    0%, 60%, 100% { transform: translateY(0); opacity: 0.4; }
    30%           { transform: translateY(-5px); opacity: 1; }
}

/* ============================================================================
   CARDS — herda .winup-card do app (vidro + hairline + glow de canto + lift)
   ========================================================================== */
.card {
    position: relative;
    isolation: isolate;
    overflow: hidden;
    padding: 1.6rem;
    border-radius: 1rem;
    border: 1px solid hsl(0 0% 100% / 0.06);
    background: hsl(0 0% 100% / 0.03);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    box-shadow: 0 30px 80px -30px rgba(0, 0, 0, 0.8);
    transition: transform 0.35s var(--ease-out), border-color 0.35s var(--ease-out);
}
.card::before {
    content: '';
    position: absolute;
    inset: 0 0 auto 0;
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.3), transparent);
    opacity: 0.4;
    z-index: 1;
}
.card::after {
    content: '';
    position: absolute;
    top: -5rem; right: -5rem;
    width: 12rem; height: 12rem;
    border-radius: 9999px;
    filter: blur(60px);
    opacity: 0.55;
    background: var(--card-glow, rgba(168, 85, 247, 0.12));
    transition: opacity 0.5s var(--ease-out);
    z-index: -1;
}
.card:hover { transform: translateY(-4px); border-color: hsl(0 0% 100% / 0.12); }
.card:hover::after { opacity: 0.95; }

/* Spotlight que segue o cursor (só em ponteiro fino, via JS) */
.card__spot {
    position: absolute;
    inset: 0;
    z-index: 0;
    opacity: 0;
    transition: opacity 0.4s var(--ease-out);
    background: radial-gradient(
        260px circle at var(--mx, 50%) var(--my, 50%),
        hsl(0 0% 100% / 0.07),
        transparent 70%
    );
}
.card:hover .card__spot { opacity: 1; }
.card > *:not(.card__spot) { position: relative; z-index: 1; }

.glow-emerald { --card-glow: rgba(52, 211, 153, 0.14); }
.glow-purple  { --card-glow: rgba(168, 85, 247, 0.14); }
.glow-cyan    { --card-glow: rgba(34, 211, 238, 0.14); }
.glow-fuchsia { --card-glow: rgba(192, 38, 211, 0.14); }
.glow-amber   { --card-glow: rgba(251, 191, 36, 0.14); }
.glow-blue    { --card-glow: rgba(96, 165, 250, 0.14); }

.card__icon {
    display: grid;
    place-items: center;
    width: 44px; height: 44px;
    border-radius: 0.8rem;
    margin-bottom: 1.1rem;
}
.card__icon svg { width: 21px; height: 21px; }
.i-emerald { background: hsl(var(--winup-emerald) / 0.14); color: #6ee7b7; }
.i-purple  { background: hsl(var(--winup-purple) / 0.14);  color: #d8b4fe; }
.i-cyan    { background: hsl(var(--winup-cyan) / 0.12);    color: #67e8f9; }
.i-fuchsia { background: hsl(var(--winup-fuchsia) / 0.14); color: #f0abfc; }
.i-amber   { background: rgba(251, 191, 36, 0.14);         color: #fcd34d; }
.i-blue    { background: rgba(96, 165, 250, 0.14);         color: #93c5fd; }

.card p {
    margin: 0.6rem 0 0;
    font-size: 0.92rem;
    color: hsl(var(--muted-foreground));
    text-wrap: pretty;
}

/* min de 20rem para o auto-fit assentar em 3 colunas no shell de 1200px
   (1200 / 320 = 3,75). Com 6 cards isso dá 3+3; com 17rem daria 4+2. */
.grid-3 {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(min(100%, 20rem), 1fr));
    gap: 1.25rem;
}

/* ============================================================================
   COMO FUNCIONA — trilho com linha que se desenha conforme rola
   ========================================================================== */
.steps { position: relative; display: grid; gap: 2.5rem; }
.steps::before {
    content: '';
    position: absolute;
    left: 27px; top: 0.5rem; bottom: 0.5rem;
    width: 2px;
    background: hsl(0 0% 100% / 0.07);
}
/* Progresso da linha, preenchido por JS conforme o scroll */
.steps::after {
    content: '';
    position: absolute;
    left: 27px; top: 0.5rem;
    width: 2px;
    height: var(--progress, 0%);
    background: linear-gradient(180deg, var(--c-purple), var(--c-emerald));
    box-shadow: 0 0 14px rgba(52, 211, 153, 0.55);
    transition: height 0.25s linear;
}
.step { display: grid; grid-template-columns: 56px 1fr; gap: 1.5rem; align-items: start; }
.step__num {
    display: grid;
    place-items: center;
    width: 56px; height: 56px;
    border-radius: 1rem;
    border: 1px solid hsl(0 0% 100% / 0.09);
    background: hsl(240 24% 5%);
    font-family: 'Geist Mono', ui-monospace, monospace;
    font-size: 0.95rem;
    font-weight: 600;
    color: hsl(var(--muted-foreground));
    transition: color 0.4s var(--ease-out), border-color 0.4s var(--ease-out), box-shadow 0.4s var(--ease-out);
    position: relative;
    z-index: 1;
}
.step.is-visible .step__num {
    color: var(--c-emerald);
    border-color: hsl(var(--winup-emerald) / 0.5);
    box-shadow: 0 0 24px -6px rgba(52, 211, 153, 0.65);
}
.step p { margin: 0.5rem 0 0; color: hsl(var(--muted-foreground)); max-width: 40rem; }

/* ============================================================================
   MÓDULOS — lista com barra que cresce no hover
   ========================================================================== */
.modules { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 15rem), 1fr)); gap: 0.75rem; }
.module {
    position: relative;
    padding: 1.1rem 1.2rem;
    border-radius: 0.85rem;
    border: 1px solid hsl(0 0% 100% / 0.06);
    background: hsl(0 0% 100% / 0.02);
    overflow: hidden;
    transition: background 0.3s var(--ease-out), border-color 0.3s var(--ease-out), transform 0.3s var(--ease-out);
}
.module::before {
    content: '';
    position: absolute;
    left: 0; top: 0; bottom: 0;
    width: 2px;
    background: linear-gradient(180deg, var(--c-purple), var(--c-emerald));
    transform: scaleY(0);
    transform-origin: bottom;
    transition: transform 0.4s var(--ease-out);
}
.module:hover { background: hsl(0 0% 100% / 0.045); border-color: hsl(0 0% 100% / 0.12); transform: translateX(3px); }
.module:hover::before { transform: scaleY(1); transform-origin: top; }
.module h3 { font-size: 0.98rem; }
.module p { margin: 0.35rem 0 0; font-size: 0.85rem; color: hsl(var(--muted-foreground)); }

/* ============================================================================
   FAQ
   ========================================================================== */
.faq { display: grid; gap: 0.75rem; max-width: 48rem; margin-inline: auto; }
.faq__item {
    border: 1px solid hsl(0 0% 100% / 0.07);
    border-radius: 0.85rem;
    background: hsl(0 0% 100% / 0.02);
    overflow: hidden;
    transition: border-color 0.3s var(--ease-out), background 0.3s var(--ease-out);
}
.faq__item[open] { border-color: hsl(var(--winup-emerald) / 0.3); background: hsl(0 0% 100% / 0.035); }
.faq__q {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1.1rem 1.3rem;
    cursor: pointer;
    font-weight: 500;
    font-size: 1rem;
    list-style: none;
    transition: color 0.25s var(--ease-out);
}
.faq__q::-webkit-details-marker { display: none; }
.faq__q::after {
    content: '';
    margin-left: auto;
    flex-shrink: 0;
    width: 10px; height: 10px;
    border-right: 2px solid currentColor;
    border-bottom: 2px solid currentColor;
    transform: rotate(45deg) translate(-2px, -2px);
    opacity: 0.5;
    transition: transform 0.35s var(--ease-out), opacity 0.3s var(--ease-out);
}
.faq__item[open] .faq__q::after { transform: rotate(-135deg) translate(-3px, -3px); opacity: 1; color: var(--c-emerald); }
.faq__a { padding: 0 1.3rem 1.2rem; color: hsl(var(--muted-foreground)); font-size: 0.94rem; }
/* Abre com animação em vez de aparecer seco */
.faq__item[open] .faq__a { animation: faq-open 0.4s var(--ease-out); }
@keyframes faq-open {
    from { opacity: 0; transform: translateY(-8px); }
    to   { opacity: 1; transform: translateY(0); }
}

/* ============================================================================
   CTA FINAL
   ========================================================================== */
.cta {
    position: relative;
    padding: clamp(3rem, 7vw, 5rem) clamp(1.5rem, 5vw, 4rem);
    border-radius: 1.5rem;
    border: 1px solid hsl(0 0% 100% / 0.08);
    background: hsl(240 18% 8% / 0.6);
    backdrop-filter: blur(24px);
    -webkit-backdrop-filter: blur(24px);
    overflow: hidden;
    text-align: center;
}
.cta::before {
    content: '';
    position: absolute;
    inset: 0 0 auto 0;
    height: 1px;
    background: linear-gradient(90deg, transparent, var(--c-emerald), transparent);
    opacity: 0.6;
}
/* Aurora que gira devagar atrás do CTA */
.cta::after {
    content: '';
    position: absolute;
    left: 50%; top: 50%;
    width: 140%; aspect-ratio: 1;
    translate: -50% -50%;
    background: conic-gradient(
        from 0deg,
        transparent 0%,
        rgba(168, 85, 247, 0.16) 20%,
        transparent 40%,
        rgba(52, 211, 153, 0.14) 60%,
        transparent 80%,
        rgba(34, 211, 238, 0.12) 95%,
        transparent 100%
    );
    filter: blur(60px);
    animation: aurora 18s linear infinite;
    z-index: -1;
}
@keyframes aurora { to { rotate: 360deg; } }

/* ============================================================================
   RODAPÉ
   ========================================================================== */
.footer {
    position: relative;
    z-index: 1;
    border-top: 1px solid hsl(0 0% 100% / 0.07);
    padding-block: 3rem 2.5rem;
    background: hsl(240 24% 4% / 0.6);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
}
.footer__grid {
    display: flex;
    flex-wrap: wrap;
    gap: 2rem;
    align-items: flex-start;
    justify-content: space-between;
}
.footer__links { display: flex; flex-wrap: wrap; gap: 1.5rem; font-size: 0.88rem; color: hsl(var(--muted-foreground)); }
.footer__links a:hover { color: var(--c-emerald); }
.footer__bottom {
    margin-top: 2.5rem;
    padding-top: 1.5rem;
    border-top: 1px solid hsl(0 0% 100% / 0.05);
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    justify-content: space-between;
    font-size: 0.8rem;
    color: hsl(var(--muted-foreground));
}

/* ============================================================================
   REVEAL — entra ao aparecer, sai ao desaparecer (re-anima nos dois sentidos)
   ========================================================================== */
[data-reveal] {
    opacity: 0;
    transform: translateY(28px);
    transition: opacity 0.7s var(--ease-out), transform 0.7s var(--ease-out), filter 0.7s var(--ease-out);
    filter: blur(6px);
    will-change: opacity, transform;
}
[data-reveal].is-visible {
    opacity: 1;
    transform: none;
    filter: blur(0);
}
/* Escalonamento em cascata dentro de um mesmo grupo */
[data-reveal-stagger] > * {
    opacity: 0;
    transform: translateY(24px);
    filter: blur(5px);
    transition: opacity 0.65s var(--ease-out), transform 0.65s var(--ease-out), filter 0.65s var(--ease-out);
    transition-delay: calc(var(--i, 0) * 85ms);
}
[data-reveal-stagger].is-visible > * {
    opacity: 1;
    transform: none;
    filter: blur(0);
}

/* ============================================================================
   RESPONSIVO
   Faixas cobertas: 320px (iPhone SE / Android pequeno) → 480 → 768 (tablet
   retrato) → 960 (tablet paisagem) → 1200 (desktop) → ultrawide. Mais os
   casos que costumam ser esquecidos: paisagem de celular (altura curta),
   dobráveis estreitos e telas com zoom alto.
   ========================================================================== */

/* --- Ultrawide: o conteúdo para de crescer, mas respira mais -------------- */
@media (min-width: 1600px) {
    :root { --shell: min(1320px, 100% - 6rem); }
    .hero h1 { font-size: 4.8rem; }
}

/* --- Tablet paisagem e abaixo: hero empilha, menu vira sanduíche ---------- */
@media (max-width: 960px) {
    .hero__grid { grid-template-columns: 1fr; }
    /* O mock vem antes do texto: em tela estreita a prova visual prende mais
       do que o título sozinho. */
    .console { order: -1; }

    .nav__toggle { display: block; }

    .nav__links {
        position: fixed;
        inset: var(--nav-h) 0 auto 0;
        flex-direction: column;
        align-items: stretch;
        gap: 0.25rem;
        margin: 0;
        padding: 1rem 1.25rem 1.5rem;
        font-size: 1rem;
        background: hsl(240 24% 4% / 0.96);
        backdrop-filter: blur(24px);
        -webkit-backdrop-filter: blur(24px);
        border-bottom: 1px solid hsl(0 0% 100% / 0.08);
        box-shadow: 0 24px 50px -20px rgba(0, 0, 0, 0.9);
        opacity: 0;
        transform: translateY(-10px);
        pointer-events: none;
        transition: opacity 0.3s var(--ease-out), transform 0.3s var(--ease-out);
        /* Menu longo em tela baixa precisa rolar sozinho */
        max-height: calc(100dvh - var(--nav-h));
        overflow-y: auto;
    }
    .nav__links.is-open { opacity: 1; transform: none; pointer-events: auto; }
    /* Alvo de toque confortável e sublinhado do desktop desativado aqui */
    .nav__links a { padding: 0.85rem 0.25rem; }
    .nav__links a::after { display: none; }
    .nav__cta { margin: 0.75rem 0 0; justify-content: center; }

    .metrics { grid-template-columns: repeat(3, 1fr); gap: 1rem; }
}

/* --- Tablet retrato -------------------------------------------------------- */
@media (max-width: 768px) {
    section { padding-block: clamp(3.5rem, 9vw, 5.5rem); }
    .section-head { margin-bottom: 2.5rem; }
    .metrics { grid-template-columns: 1fr; gap: 1.1rem; }
    .cta { border-radius: 1.15rem; }
}

/* --- Celular --------------------------------------------------------------- */
@media (max-width: 560px) {
    :root { --shell: min(1200px, 100% - 2rem); }

    /* Botão ocupa a largura, mas nunca vira alvo minúsculo */
    .btn { width: 100%; min-height: 48px; }
    .btn-row { flex-direction: column; gap: 0.7rem; }

    .steps { gap: 1.75rem; }
    .steps::before, .steps::after { left: 21px; }
    .step { grid-template-columns: 44px 1fr; gap: 1rem; }
    .step__num { width: 44px; height: 44px; font-size: 0.85rem; }

    .console__body { min-height: 280px; padding: 1rem; }
    .bubble { max-width: 88%; font-size: 0.85rem; }

    .footer__grid { flex-direction: column; gap: 1.75rem; }
    .footer__links { gap: 1rem 1.25rem; }
    .faq__q { padding: 0.95rem 1rem; font-size: 0.95rem; }
    .faq__a { padding: 0 1rem 1rem; }
}

/* --- Telas bem estreitas (320px) e dobráveis fechados --------------------- */
@media (max-width: 380px) {
    :root { --shell: min(1200px, 100% - 1.5rem); }
    .hero h1 { font-size: 2.15rem; }
    .brand__by { display: none; }        /* evita quebrar a linha da marca */
    .hero__pill { font-size: 0.75rem; }
    .card { padding: 1.25rem; }
    .console__title { display: none; }   /* barra do mock fica apertada */
}

/* --- Celular em paisagem: altura curta, não largura ----------------------- */
/* Sem isso o hero de 100vh empurra todo o conteúdo para fora da tela. */
@media (max-height: 520px) and (orientation: landscape) {
    .hero { padding-top: calc(var(--nav-h) + 1.5rem); padding-bottom: 2.5rem; }
    section { padding-block: 3rem; }
    .console__body { min-height: 200px; }
    .console { animation: none; }        /* flutuar em tela baixa incomoda */
}

/* --- Ponteiro grosso (dedo): sem hover, alvos maiores --------------------- */
@media (hover: none) {
    .card:hover { transform: none; }     /* :hover em toque fica "grudado" */
    .card__spot { display: none; }
    .module:hover { transform: none; }
    .nav__links a { min-height: 44px; display: flex; align-items: center; }
}

/* ============================================================================
   MOVIMENTO REDUZIDO — respeitar a preferência do sistema não é opcional.
   Tudo vira estático; nada de conteúdo depende de animação para aparecer.
   ========================================================================== */
@media (prefers-reduced-motion: reduce) {
    html { scroll-behavior: auto; }

    *,
    *::before,
    *::after {
        animation-duration: 0.001ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.001ms !important;
    }

    #starfield { display: none; }
    .glow-orb { animation: none; }
    .console { animation: none; }

    /* Conteúdo revelado por JS precisa estar visível de qualquer forma */
    [data-reveal],
    [data-reveal-stagger] > * {
        opacity: 1 !important;
        transform: none !important;
        filter: none !important;
    }
}

/* Sem JS: nada de conteúdo escondido para sempre */
.no-js [data-reveal],
.no-js [data-reveal-stagger] > * {
    opacity: 1;
    transform: none;
    filter: none;
}
