

/* 1. Tokens */
:root {
    /* COR — sem matiz nenhuma, de propósito. Ver a nota no topo. */
    --void:  #050506;        /* o chão da página */
    --well:  #000000;        /* poços e encaixes: têm de ler mais fundos */
    --slab:  #0d0d10;        /* superfícies levantadas */
    --slab-2:#141418;        /* hover */

    --edge:      rgba(255, 255, 255, 0.085);
    --edge-soft: rgba(255, 255, 255, 0.045);
    --edge-lit:  rgba(255, 255, 255, 0.22);

    --bone: #f3f1ec;         /* texto principal, branco quente */
    --ash:  #98958e;         /* secundário */
    --dim:  #63615c;         /* legendas e detalhes técnicos */

    
    --display: "Bricolage Grotesque", "Instrument Sans", system-ui, sans-serif;
    --font:    "Instrument Sans", system-ui, -apple-system, sans-serif;
    --mono:    "JetBrains Mono", ui-monospace, monospace;

    /* ESPAÇO */
    --wrap: 1180px;
    --gut:  clamp(20px, 4vw, 40px);
    --r:    16px;            /* raio base */
    --r-sm: 10px;

    /* MOVIMENTO */
    --speed: 0.7s;
    --ease:  cubic-bezier(0.22, 1, 0.36, 1);
    --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
}

/* 2. Reset & base */
*, *::before, *::after { box-sizing: border-box; }
* { margin: 0; }

html {
    scroll-behavior: smooth;
    -webkit-text-size-adjust: 100%;
    scrollbar-color: #2a2a2e var(--void);
}


:target,
[id] { scroll-margin-top: 92px; }

body {
    font-family: var(--font);
    background: var(--void);
    color: var(--bone);
    line-height: 1.62;
    -webkit-font-smoothing: antialiased;
    overflow-x: hidden;
}

img, svg, video { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; cursor: pointer; border: none; background: none; }

:focus-visible {
    outline: 2px solid var(--bone);
    outline-offset: 3px;
    border-radius: 5px;
}
::selection { background: var(--bone); color: var(--void); }

/* 3. Tipografia */
/* O salto entre o display e o corpo é grande de propósito: é o que dá a */
h1, h2, h3 {
    font-family: var(--display);
    font-weight: 700;
    line-height: 1.02;
    letter-spacing: -0.035em;
    color: #fff;
    text-wrap: balance;
}


h1 { font-size: clamp(2.6rem, 4.6vw, 4.1rem); }
.h2 { font-size: clamp(1.9rem, 3.8vw, 2.9rem); }
.h3 { font-size: clamp(1.15rem, 1.7vw, 1.4rem); letter-spacing: -0.02em; }

.lead {
    font-size: clamp(1.02rem, 1.35vw, 1.16rem);
    color: var(--ash);
    max-width: 56ch;
    text-wrap: pretty;
}

/* A etiqueta técnica: mono, pequena, muito espaçada. Aparece sempre antes de */
.eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 9px;
    font-family: var(--mono);
    font-size: 11px;
    font-weight: 500;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    color: var(--dim);
}
.eyebrow::before {
    content: "";
    width: 18px;
    height: 1px;
    background: linear-gradient(90deg, transparent, var(--edge-lit));
}


/* 4. Ajudas de layout */
.wrap {
    width: 100%;
    max-width: var(--wrap);
    margin: 0 auto;
    padding-inline: var(--gut);
}

.section { padding-block: clamp(64px, 8vw, 104px); }


.section + .section { padding-top: 0; }

/* O cabeçalho de cada secção. Um só sítio a definir o espaço por baixo, para */
.head { max-width: 62ch; margin-bottom: clamp(40px, 5vw, 66px); }
.head .eyebrow { margin-bottom: 18px; }
.head .h2 + .lead { margin-top: 18px; }


/* 5. Botões */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 13px 22px;
    border-radius: 11px;
    font-weight: 600;
    font-size: 0.95rem;
    letter-spacing: -0.01em;
    white-space: nowrap;
    transition: transform 0.22s var(--ease), background 0.22s,
                border-color 0.22s, box-shadow 0.22s;
}
.btn svg { width: 17px; height: 17px; flex: none; }
.btn:hover { transform: translateY(-2px); }
.btn:active { transform: translateY(0); }

.btn-primary {
    background: var(--bone);
    color: var(--void);
    box-shadow: 0 0 0 0 rgba(255, 255, 255, 0.22);
}
.btn-primary:hover {
    background: #fff;
    box-shadow: 0 10px 34px -14px rgba(255, 255, 255, 0.5);
}

.btn-ghost {
    border: 1px solid var(--edge);
    color: var(--bone);
    background: rgba(255, 255, 255, 0.015);
}
.btn-ghost:hover {
    border-color: var(--edge-lit);
    background: rgba(255, 255, 255, 0.045);
}

/* 6. Etiqueta de versão */

.vtag {
    font-family: var(--mono);
    font-size: 11.5px;
    font-weight: 500;
    letter-spacing: 0.07em;
    padding: 4px 10px;
    border-radius: 6px;
    border: 1px solid var(--edge);
    color: var(--ash);
}

/* 7. Cabeçalho */
.site-header {
    position: sticky;
    top: 0;
    z-index: 60;
    border-bottom: 1px solid transparent;
    transition: background 0.3s, border-color 0.3s, backdrop-filter 0.3s;
}


.site-header::before {
    content: "";
    position: absolute;
    inset: 0 0 auto;
    height: 130%;
    background: linear-gradient(180deg, rgba(5, 5, 6, 0.92) 0%, rgba(5, 5, 6, 0.6) 55%, transparent 100%);
    pointer-events: none;
    z-index: -1;
}

.site-header.stuck {
    background: rgba(5, 5, 6, 0.94);
    border-bottom-color: var(--edge-soft);
}
@supports (backdrop-filter: blur(1px)) {
    .site-header.stuck {
        background: rgba(5, 5, 6, 0.78);
        backdrop-filter: blur(18px) saturate(130%);
    }
}
.site-header .wrap {
    display: flex;
    align-items: center;
    gap: 24px;
    height: 70px;
}

.brand { display: flex; align-items: center; gap: 11px; }
.brand-mark {
    width: 27px;
    height: 27px;
    filter: invert(1);
    mix-blend-mode: screen;
    transition: transform 0.55s var(--ease);
}
.brand:hover .brand-mark { transform: rotate(-8deg) scale(1.1); }
.brand-name {
    font-family: var(--display);
    font-size: 1.18rem;
    font-weight: 700;
    letter-spacing: -0.03em;
}

.nav { display: flex; gap: 2px; margin-left: auto; }
.nav a {
    position: relative;
    padding: 9px 14px;
    border-radius: 9px;
    font-size: 0.92rem;
    color: var(--ash);
    transition: color 0.18s, background 0.18s;
}
.nav a:hover { color: var(--bone); background: rgba(255, 255, 255, 0.035); }
.nav a.active { color: var(--bone); }
.nav a.active::after {
    content: "";
    position: absolute;
    left: 14px;
    right: 14px;
    bottom: 3px;
    height: 1.5px;
    background: var(--bone);
    border-radius: 2px;
}

.header-cta { display: flex; align-items: center; gap: 10px; }
.header-cta .btn { padding: 10px 18px; font-size: 0.9rem; }

.menu-toggle { display: none; padding: 8px; border-radius: 9px; }
.menu-toggle svg { width: 22px; height: 22px; }

/* 8. Hero */
.hero {
    position: relative;
    padding-top: clamp(48px, 8vw, 92px);
    padding-bottom: clamp(64px, 9vw, 120px);
    overflow: hidden;
}

/* Uma rede muito ténue por trás de tudo: dá textura ao preto sem o iluminar. */
.hero::before {
    content: "";
    position: absolute;
    inset: -40% -10% auto;
    height: 900px;
    background:
        radial-gradient(60% 50% at 50% 0%, rgba(255, 255, 255, 0.055), transparent 70%);
    pointer-events: none;
}

.hero .wrap {
    position: relative;
    z-index: 2;
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    gap: clamp(44px, 6vw, 72px);
}
@media (min-width: 1000px) {
    .hero .wrap { grid-template-columns: minmax(0, 43fr) minmax(0, 57fr); align-items: center; }
}

.tag {
    display: inline-flex;
    align-items: center;
    gap: 9px;
    padding: 7px 14px 7px 11px;
    border: 1px solid var(--edge);
    border-radius: 100px;
    background: rgba(255, 255, 255, 0.022);
    font-family: var(--mono);
    font-size: 11px;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--ash);
}
.tag .dot {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: var(--bone);
    box-shadow: 0 0 0 0 rgba(255, 255, 255, 0.6);
    animation: pulse 2.6s var(--ease) infinite;
}
@keyframes pulse {
    0%   { box-shadow: 0 0 0 0 rgba(255, 255, 255, 0.5); }
    70%  { box-shadow: 0 0 0 7px rgba(255, 255, 255, 0); }
    100% { box-shadow: 0 0 0 0 rgba(255, 255, 255, 0); }
}

.hero h1 { margin-top: 26px; }
/* A segunda linha do título em tom mais baixo: separa a promessa do objecto */
.hero h1 .soft { color: var(--ash); }

.hero-sub {
    margin-top: 22px;
    font-size: clamp(1.02rem, 1.4vw, 1.16rem);
    color: var(--ash);
    max-width: 46ch;
    text-wrap: pretty;
}

.hero-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin-top: 32px;
}

/* Os números: mono, grandes, com a etiqueta por baixo em maiúsculas pequenas. */

.stats {
    display: flex;
    flex-wrap: wrap;
    gap: clamp(18px, 2.6vw, 32px);
    margin-top: 42px;
    padding-top: 28px;
    border-top: 1px solid var(--edge-soft);
}
.stat-num {
    font-family: var(--mono);
    font-size: clamp(1.15rem, 1.7vw, 1.45rem);
    font-weight: 500;
    letter-spacing: -0.035em;
    color: #fff;
    white-space: nowrap;
}
.stat-label {
    margin-top: 3px;
    font-size: 0.79rem;
    letter-spacing: 0.03em;
    color: var(--dim);
}


.hero-stage {
    position: relative;
    perspective: 1600px;
}

.wash {
    position: absolute;
    inset: 6% -6% -10% 2%;
    width: auto;
    height: auto;
    object-fit: cover;
    object-position: center 30%;
    filter: blur(64px) saturate(200%);
    opacity: 0.5;
    transform: scale(1.04);
    pointer-events: none;
    border-radius: 40%;
}

.window {
    position: relative;
    border-radius: var(--r);
    overflow: hidden;
    background: var(--slab);
    border: 1px solid var(--edge);
    box-shadow:
        0 2px 0 0 rgba(255, 255, 255, 0.05) inset,
        0 50px 100px -40px rgba(0, 0, 0, 0.9),
        0 0 0 1px rgba(0, 0, 0, 0.6);
    transform:
        perspective(1600px)
        rotateY(var(--ry, -7deg))
        rotateX(var(--rx, 2.5deg))
        translateZ(0);
    transition: transform 0.5s var(--ease);
    will-change: transform;
}

.window-bar {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 0 14px;
    height: 34px;
    background: rgba(255, 255, 255, 0.028);
    border-bottom: 1px solid var(--edge-soft);
}
.window-dots { display: flex; gap: 6px; }
.window-dots i {
    width: 9px;
    height: 9px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.16);
}
.window-title {
    font-family: var(--mono);
    font-size: 11px;
    letter-spacing: 0.06em;
    color: var(--dim);
}

.window img { width: 100%; height: auto; display: block; }

/* A legenda por baixo da janela, em mono, como quem anota uma figura. */
.stage-note {
    margin-top: 18px;
    font-family: var(--mono);
    font-size: 11px;
    letter-spacing: 0.09em;
    text-transform: uppercase;
    color: var(--dim);
    text-align: right;
}

/* 9. Parede de capas */
/* Uma faixa larga com a grelha verdadeira da loja. Aqui a imagem não está */
.wall {
    position: relative;
    overflow: hidden;
    border-block: 1px solid var(--edge-soft);
    background: var(--well);
}
.wall img {
    width: 100%;
    height: clamp(260px, 34vw, 420px);
    object-fit: cover;
    object-position: center;
    opacity: 0.9;
}
.wall::after {
    content: "";
    position: absolute;
    inset: 0;
    
    background:
        linear-gradient(90deg, rgba(5,5,6,0.92) 0%, rgba(5,5,6,0.35) 34%, transparent 62%, var(--void) 100%),
        linear-gradient(180deg, rgba(5,5,6,0.6) 0%, transparent 28%, rgba(5,5,6,0.82) 78%, var(--void) 100%);
    pointer-events: none;
}
.wall-copy {
    position: absolute;
    inset: auto 0 0 0;
    z-index: 2;
    padding-bottom: clamp(24px, 4vw, 44px);
}
.wall-copy .h2 { max-width: 18ch; }
.wall-copy p { margin-top: 12px; color: var(--ash); max-width: 46ch; }

/* 10. A instalação */

.steps { display: grid; gap: 1px; background: var(--edge-soft); border-block: 1px solid var(--edge-soft); }

.step {
    position: relative;
    display: grid;
    grid-template-columns: auto minmax(0, 1fr);
    gap: clamp(18px, 3vw, 38px);
    padding: clamp(26px, 3.4vw, 40px) 0;
    background: var(--void);
    transition: background 0.3s;
}
.step:hover { background: #08080a; }

.step-n {
    font-family: var(--mono);
    font-size: 12px;
    font-weight: 500;
    letter-spacing: 0.12em;
    color: var(--dim);
    padding-top: 7px;
    min-width: 3.4ch;
}
.step:hover .step-n { color: var(--ash); }

.step-body { display: grid; gap: 10px; }
@media (min-width: 860px) {
    .step-body { grid-template-columns: minmax(0, 26ch) minmax(0, 1fr); gap: clamp(20px, 4vw, 56px); align-items: start; }
}
.step-body h3 { font-size: clamp(1.25rem, 2vw, 1.6rem); }
.step-body p { color: var(--ash); max-width: 52ch; }

/* A palavra técnica dentro do texto, marcada sem cor: só com a mono e um */
.step-body code,
.faq-a-inner code {
    font-family: var(--mono);
    font-size: 0.88em;
    padding: 2px 6px;
    border-radius: 5px;
    background: rgba(255, 255, 255, 0.055);
    color: var(--bone);
}

/* 11. Ver de perto */
.look { position: relative; }
.look-grid {
    display: grid;
    gap: clamp(16px, 2vw, 24px);
    grid-template-columns: minmax(0, 1fr);
}
@media (min-width: 900px) {
    .look-grid { grid-template-columns: minmax(0, 1.35fr) minmax(0, 1fr); align-items: stretch; }
}

.shot {
    position: relative;
    border-radius: var(--r);
    overflow: hidden;
    border: 1px solid var(--edge);
    background: var(--slab);
    transition: transform 0.45s var(--ease), border-color 0.45s;
}
.shot:hover { transform: translateY(-4px); border-color: var(--edge-lit); }
.shot img { width: 100%; height: 100%; object-fit: cover; object-position: top center; }
.shot figcaption {
    position: absolute;
    inset: auto 0 0 0;
    padding: 30px 18px 14px;
    background: linear-gradient(transparent, rgba(0, 0, 0, 0.88));
    font-family: var(--mono);
    font-size: 11px;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--ash);
}

/* A coluna da direita: um cartão de texto que explica o que se está a ver. */
.look-note {
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 16px;
    padding: clamp(26px, 3vw, 40px);
    border: 1px solid var(--edge);
    border-radius: var(--r);
    background:
        radial-gradient(120% 100% at 100% 0%, rgba(255, 255, 255, 0.04), transparent 60%),
        var(--slab);
}
.look-note p { color: var(--ash); }

/* 12. Novo na última versão */

.whatsnew-head {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 14px 20px;
    margin-bottom: clamp(32px, 4vw, 48px);
}
.whatsnew-head .h2 { flex: 1 1 20ch; }
/* A etiqueta da versão aqui vem cheia, ao contrário da lista do changelog: */
.whatsnew-head .vtag {
    background: var(--bone);
    border-color: var(--bone);
    color: var(--void);
}

.whatsnew-link {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-family: var(--mono);
    font-size: 11.5px;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--ash);
    transition: color 0.2s, gap 0.25s var(--ease);
}
.whatsnew-link svg { width: 15px; height: 15px; }
.whatsnew-link:hover { color: var(--bone); gap: 12px; }

.systems {
    display: grid;
    gap: 1px;
    list-style: none;
    padding: 0;
    background: var(--edge-soft);
    border-block: 1px solid var(--edge-soft);
    grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
}
.systems li {
    display: grid;
    gap: 8px;
    align-content: start;
    padding: clamp(22px, 2.6vw, 30px) clamp(18px, 2vw, 26px);
    background: var(--void);
    transition: background 0.3s;
}
.systems li:hover { background: #08080a; }
.systems p { font-size: 0.92rem; color: var(--ash); }

/* 13. Download */
.download .wrap {
    display: grid;
    gap: clamp(32px, 5vw, 64px);
    align-items: center;
    grid-template-columns: minmax(0, 1fr);
}
@media (min-width: 900px) {
    .download .wrap { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
}


.download-art {
    position: relative;
    display: grid;
    place-items: center;
    min-height: clamp(240px, 26vw, 330px);
    border-radius: var(--r);
    overflow: hidden;
    background:
        radial-gradient(85% 70% at 50% 0%, rgba(255, 255, 255, 0.09), transparent 62%),
        var(--slab);
    border: 1px solid var(--edge);
    padding: clamp(28px, 4.5vw, 52px);
}
.download-art img {
    width: min(100%, 340px);
    height: auto;
    /* Um respiro por baixo do desenho, para não ficar colado à aresta */
    margin-block: 0 clamp(0px, 1vw, 10px);
}

.platforms { display: grid; gap: 10px; margin-top: 28px; }
@media (min-width: 520px) { .platforms { grid-template-columns: 1fr 1fr; } }

/* Cada plataforma é um alvo grande, com o formato e o tamanho à vista. */
.platform {
    display: grid;
    grid-template-columns: auto minmax(0, 1fr);
    gap: 14px;
    align-items: center;
    padding: 16px 18px;
    border: 1px solid var(--edge);
    border-radius: var(--r-sm);
    background: rgba(255, 255, 255, 0.018);
    text-align: left;
    transition: border-color 0.24s, background 0.24s, transform 0.24s var(--ease);
}
.platform:hover {
    border-color: var(--edge-lit);
    background: rgba(255, 255, 255, 0.05);
    transform: translateY(-2px);
}
.platform svg { width: 22px; height: 22px; color: var(--bone); }
.platform-name { font-weight: 600; letter-spacing: -0.01em; }
.platform-sub { font-family: var(--mono); font-size: 11px; color: var(--dim); letter-spacing: 0.05em; }

.download-note { margin-top: 20px; font-size: 0.9rem; color: var(--dim); }
.download-note a { color: var(--ash); text-decoration: underline; text-underline-offset: 3px; }
.download-note a:hover { color: var(--bone); }

/* 14. FAQ */
.faq-list { border-top: 1px solid var(--edge-soft); }
.faq-item { border-bottom: 1px solid var(--edge-soft); }

.faq-q {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    width: 100%;
    padding: 22px 0;
    text-align: left;
    font-size: clamp(1rem, 1.5vw, 1.12rem);
    font-weight: 500;
    letter-spacing: -0.015em;
    color: var(--ash);
    transition: color 0.2s;
}
.faq-q:hover { color: var(--bone); }
.faq-item.open .faq-q { color: #fff; }

/* O sinal é feito de duas barras: a vertical desaparece quando abre. */
.sign { position: relative; width: 14px; height: 14px; flex: none; }
.sign::before, .sign::after {
    content: "";
    position: absolute;
    inset: 50% 0 auto;
    height: 1.5px;
    background: currentColor;
    border-radius: 2px;
    transition: transform 0.35s var(--ease), opacity 0.25s;
}
.sign::after { transform: rotate(90deg); }
.faq-item.open .sign::after { transform: rotate(0deg); opacity: 0; }

.faq-a-wrap {
    display: grid;
    grid-template-rows: 0fr;
    transition: grid-template-rows var(--speed) var(--ease);
}
.faq-item.open .faq-a-wrap { grid-template-rows: 1fr; }
.faq-a { overflow: hidden; }
.faq-a-inner {
    padding-bottom: 24px;
    max-width: 68ch;
    color: var(--ash);
    opacity: 0;
    transform: translateY(-6px);
    transition: opacity 0.4s 0.08s, transform 0.4s 0.08s var(--ease);
}
.faq-item.open .faq-a-inner { opacity: 1; transform: none; }
.faq-a-inner a { color: var(--bone); text-decoration: underline; text-underline-offset: 3px; }
.faq-a-inner strong { color: var(--bone); font-weight: 600; }

/* 15. Comunidade */
/* O remate da página. É a única caixa centrada do site, e é de propósito: */
.community-box {
    display: grid;
    justify-items: center;
    gap: 18px;
    padding: clamp(40px, 6vw, 72px) clamp(24px, 4vw, 48px);
    border: 1px solid var(--edge);
    border-radius: var(--r);
    background:
        radial-gradient(80% 100% at 50% 0%, rgba(255, 255, 255, 0.06), transparent 62%),
        var(--slab);
    text-align: center;
}
.community-mark {
    width: 52px;
    height: 52px;
    filter: invert(1);
    mix-blend-mode: screen;
    opacity: 0.9;
}
.community-box .h2 { max-width: 18ch; }
.community-box p { color: var(--ash); max-width: 52ch; }

.community-actions {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 12px;
    margin-top: 10px;
}

/* 16. Rodapé */
.site-footer {
    position: relative;
    border-top: 1px solid var(--edge-soft);
    padding-block: clamp(44px, 6vw, 72px) 34px;
    background: var(--well);
}
.foot-grid {
    display: grid;
    gap: clamp(28px, 4vw, 56px);
    grid-template-columns: minmax(0, 1fr);
}
@media (min-width: 760px) {
    .foot-grid { grid-template-columns: minmax(0, 1.4fr) repeat(2, minmax(0, 1fr)); }
}
.foot-about { display: grid; gap: 14px; justify-items: start; }
.foot-about p { color: var(--dim); font-size: 0.9rem; max-width: 38ch; }

.foot-col h4 {
    font-family: var(--mono);
    font-size: 11px;
    font-weight: 500;
    letter-spacing: 0.16em;
    text-transform: uppercase;
    color: var(--dim);
    margin-bottom: 14px;
}
.foot-col a {
    display: block;
    padding: 5px 0;
    font-size: 0.92rem;
    color: var(--ash);
    transition: color 0.18s, transform 0.18s var(--ease);
}
.foot-col a:hover { color: var(--bone); transform: translateX(3px); }

.foot-base {
    display: flex;
    flex-wrap: wrap;
    gap: 14px;
    justify-content: space-between;
    align-items: center;
    margin-top: clamp(34px, 5vw, 56px);
    padding-top: 22px;
    border-top: 1px solid var(--edge-soft);
    font-family: var(--mono);
    font-size: 11px;
    letter-spacing: 0.06em;
    color: var(--dim);
}

/* 17. Modal */
.overlay {
    position: fixed;
    inset: 0;
    z-index: 100;
    display: grid;
    place-items: center;
    padding: 20px;
    background: rgba(0, 0, 0, 0.78);
    backdrop-filter: blur(8px);
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s, visibility 0.3s;
}
.overlay.open { opacity: 1; visibility: visible; }

.modal {
    position: relative;
    width: min(440px, 100%);
    padding: 32px;
    border: 1px solid var(--edge);
    border-radius: var(--r);
    background:
        radial-gradient(110% 90% at 50% 0%, rgba(255, 255, 255, 0.055), transparent 60%),
        var(--slab);
    box-shadow: 0 40px 90px -30px rgba(0, 0, 0, 0.95);
    transform: translateY(14px) scale(0.98);
    transition: transform 0.45s var(--ease);
}
.overlay.open .modal { transform: none; }

.modal h2 { font-size: 1.5rem; }
.modal > p { margin-top: 10px; color: var(--ash); font-size: 0.95rem; }
.modal .btn { width: 100%; margin-top: 22px; }

.modal-x {
    position: absolute;
    top: 14px;
    right: 14px;
    display: grid;
    place-items: center;
    width: 32px;
    height: 32px;
    border-radius: 9px;
    color: var(--ash);
    transition: background 0.2s, color 0.2s;
}
.modal-x:hover { background: rgba(255, 255, 255, 0.07); color: var(--bone); }
.modal-x svg { width: 17px; height: 17px; }

.modal-opts { display: grid; gap: 10px; margin-top: 22px; }
.modal-opt {
    display: grid;
    grid-template-columns: auto minmax(0, 1fr);
    gap: 13px;
    align-items: center;
    padding: 15px 17px;
    border: 1px solid var(--edge);
    border-radius: var(--r-sm);
    transition: border-color 0.22s, background 0.22s, transform 0.22s var(--ease);
}
.modal-opt:hover { border-color: var(--edge-lit); background: rgba(255, 255, 255, 0.045); transform: translateY(-2px); }
.modal-opt svg { width: 19px; height: 19px; }
.opt-name { font-weight: 600; font-size: 0.94rem; }
.opt-sub { font-family: var(--mono); font-size: 10.5px; color: var(--dim); letter-spacing: 0.05em; }

.modal-hint { margin-top: 18px; font-size: 0.82rem; color: var(--dim); line-height: 1.55; }
.modal-hint code {
    font-family: var(--mono);
    font-size: 0.95em;
    padding: 1px 5px;
    border-radius: 4px;
    background: rgba(255, 255, 255, 0.07);
}

/* 18. Movimento & reveal */
.reveal {
    opacity: 0;
    transform: translateY(18px);
    transition: opacity var(--speed) var(--ease-out), transform var(--speed) var(--ease-out);
}
.reveal.in { opacity: 1; transform: none; }

/* Os filhos entram um a seguir ao outro. O atraso vem do --i que o JS põe. */
.stagger > * {
    opacity: 0;
    transform: translateY(16px);
    transition: opacity 0.6s var(--ease-out), transform 0.6s var(--ease-out);
    transition-delay: calc(var(--i, 0) * 55ms);
}
.stagger.in > * { opacity: 1; transform: none; }

/* A entrada da janela do hero: sobe e assenta, e só depois é que a página */
@keyframes rise {
    from { opacity: 0; transform: perspective(1600px) rotateY(-7deg) rotateX(2.5deg) translateY(34px) scale(0.97); }
    to   { opacity: 1; }
}
.hero-stage .window { animation: rise 1.1s 0.15s var(--ease-out) backwards; }

@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;
    }
    .reveal, .stagger > * { opacity: 1; transform: none; }
}

/* 19. Responsivo */
@media (max-width: 860px) {
    .nav {
        position: absolute;
        top: 70px;
        left: 0;
        right: 0;
        flex-direction: column;
        gap: 0;
        padding: 10px var(--gut) 18px;
        background: rgba(5, 5, 6, 0.96);
        backdrop-filter: blur(16px);
        border-bottom: 1px solid var(--edge-soft);
        transform: translateY(-8px);
        opacity: 0;
        visibility: hidden;
        transition: opacity 0.25s, transform 0.25s var(--ease), visibility 0.25s;
    }
    .site-header.open .nav { opacity: 1; visibility: visible; transform: none; }
    .nav a { padding: 13px 4px; border-radius: 0; }
    .nav a.active::after { left: 4px; right: auto; width: 16px; bottom: 8px; }
    .menu-toggle { display: grid; place-items: center; }
    .header-cta .btn { padding: 9px 15px; }

    .window { transform: none; }
    .stage-note { text-align: left; }
    .wash { filter: blur(48px) saturate(180%); opacity: 0.4; }
}

@media (max-width: 560px) {
    .stats { gap: 22px; }
    .step { grid-template-columns: minmax(0, 1fr); gap: 12px; }
    .step-n { padding-top: 0; }
    .foot-base { flex-direction: column; align-items: flex-start; }
}

/* 20. Página de updates */
.page-head { padding-block: clamp(52px, 8vw, 96px) clamp(30px, 4vw, 48px); }
.page-head .eyebrow { margin-bottom: 18px; }
.page-head .lead { margin-top: 18px; }


.timeline {
    position: relative;
    display: grid;
    gap: clamp(16px, 2.4vw, 26px);
    padding-bottom: clamp(60px, 9vw, 120px);
}
@media (min-width: 780px) {
    .timeline { padding-left: 34px; }
    .timeline::before {
        content: "";
        position: absolute;
        top: 10px;
        bottom: clamp(60px, 9vw, 120px);
        left: 5px;
        width: 1px;
        background: linear-gradient(var(--edge), var(--edge-soft) 70%, transparent);
    }
}

.release {
    position: relative;
    padding: clamp(24px, 3.4vw, 38px);
    border: 1px solid var(--edge-soft);
    border-radius: var(--r);
    background: var(--slab);
    transition: border-color 0.35s, background 0.35s;
}
.release:hover { border-color: var(--edge); background: var(--slab-2); }

/* O ponto na linha do tempo. Só o mais recente é cheio; os outros são ocos — */
@media (min-width: 780px) {
    .release::after {
        content: "";
        position: absolute;
        top: 34px;
        left: -34px;
        width: 11px;
        height: 11px;
        border-radius: 50%;
        border: 1px solid var(--edge-lit);
        background: var(--void);
    }
    .release.latest::after {
        background: var(--bone);
        border-color: var(--bone);
        box-shadow: 0 0 18px -2px rgba(255, 255, 255, 0.65);
    }
}

/* O mais recente ganha um filete de luz em cima: é o único sinal de */
.release.latest { border-color: var(--edge); }
.release.latest::before {
    content: "";
    position: absolute;
    inset: -1px 0 auto;
    height: 1px;
    background: linear-gradient(90deg, transparent, var(--edge-lit), transparent);
}

.release-meta { display: flex; flex-wrap: wrap; align-items: center; gap: 12px; }
/* Só a versão mais recente é que inverte. As outras são história. */
.release.latest .vtag {
    background: var(--bone);
    border-color: var(--bone);
    color: var(--void);
    box-shadow: 0 0 22px -6px rgba(255, 255, 255, 0.55);
}
.release-date { font-family: var(--mono); font-size: 11.5px; color: var(--dim); letter-spacing: 0.07em; }

.release h3 { margin-top: 16px; font-size: clamp(1.2rem, 2.1vw, 1.55rem); }
.release > p { margin-top: 12px; color: var(--ash); max-width: 72ch; }

.changes { display: grid; gap: 10px; margin-top: 22px; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); }
.change {
    display: grid;
    gap: 4px;
    padding: 16px 18px;
    border: 1px solid var(--edge-soft);
    border-radius: var(--r-sm);
    background: rgba(255, 255, 255, 0.016);
    transition: border-color 0.25s, background 0.25s;
}
.release:hover .change { border-color: var(--edge); }
.change strong { font-weight: 600; font-size: 0.92rem; letter-spacing: -0.01em; color: var(--bone); }
.change span { font-size: 0.86rem; color: var(--ash); line-height: 1.6; }

/* O que saiu da versão. Sem vermelho — o risco por cima do nome chega, e é */
.change.removed { opacity: 0.62; }
.change.removed strong { text-decoration: line-through; text-decoration-thickness: 1px; }

/* A nota que fecha uma versão: recuada, com um filete à esquerda. */
.callout {
    margin-top: 22px;
    padding: 14px 18px;
    border-left: 2px solid var(--edge-lit);
    border-radius: 0 var(--r-sm) var(--r-sm) 0;
    background: rgba(255, 255, 255, 0.028);
    font-size: 0.9rem;
    color: var(--ash);
}
.callout strong { color: var(--bone); font-weight: 600; }
.callout a { color: var(--bone); text-decoration: underline; text-underline-offset: 3px; }
/* Refined surfaces, readable secondary text and responsive composition. */
:root { --ash: #b5b3ae; --dim: #96938e; --edge: rgba(255,255,255,.14); --edge-soft: rgba(255,255,255,.085); --wrap: 1280px; }
.skip-link { position: fixed; top: 12px; left: 12px; z-index: 200; padding: 12px 20px; background: var(--bone); color: var(--void); border-radius: 8px; transform: translateY(-180%); }
.skip-link:focus { transform: none; }
.hero { padding-top: clamp(48px,7vw,100px); }
.hero .wrap { gap: clamp(32px,4vw,60px); }
.hero h1 { font-size: clamp(2.8rem,5.1vw,4.65rem); line-height: 1.04; letter-spacing: -.055em; }
.hero h1 .soft { color: #c9c6bf; }
.hero-sub { max-width: 42ch; line-height: 1.75; }
.hero-stage { min-width: 0; }
.window { box-shadow: 0 40px 100px -30px #000, 0 0 0 1px rgba(255,255,255,.06); }
.stage-note { margin-top: 22px; }
.btn { min-height: 46px; }
.btn-primary { box-shadow: 0 4px 20px rgba(243,241,236,.10); }
.stats { gap: 22px; padding-top: 24px; }
.stat-label { max-width: 17ch; line-height: 1.6; }
.section { padding-block: clamp(56px,7vw,100px); }
.steps { border-top: 1px solid var(--edge); }
.step { padding-block: 28px; }
.look-note { background: linear-gradient(145deg,#19191e,#0d0d10); }
.platform { background: var(--slab); padding: 20px; }
.platform:hover, .modal-opt:hover { border-color: #77746e; }
.faq-list { max-width: 920px; }
.faq-q { min-height: 72px; }
.modal { max-height: calc(100dvh - 40px); overflow-y: auto; padding-top: 48px; }
.modal-x, .menu-toggle { min-width: 44px; min-height: 44px; }
.community-box { background: radial-gradient(ellipse at top,#242429,transparent 70%),var(--slab); }
/* Content remains readable if scripting or an observer fails. */
.reveal, .stagger > * { opacity: 1; transform: none; }
.changes { grid-template-columns: repeat(auto-fit,minmax(min(100%,280px),1fr)); }
@media (min-width:1000px) { .hero .wrap { grid-template-columns: minmax(0,46fr) minmax(0,54fr); } }
@media (max-width:560px) {
    .hero-actions { display: grid; }
    .hero-actions .btn { justify-content: center; width: 100%; }
    .stats { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); }
    .stats > div:last-child { grid-column: 1 / -1; }
    .hero h1 { font-size: clamp(2.7rem,11vw,3.8rem); }
    .tag { font-size: 9px; }
    .modal { padding-inline: 22px; }
}
.overlay.open { transition: opacity .3s, visibility 0s; }
