/* ============================================================
   CrIAcao Digital - Design System v2.0
   criacao-ds.css - classes, componentes e keyframes.
   Depende de tokens.css. Carregue os dois nesta ordem.
   ============================================================ */

/* ---------------- BASE ---------------- */
html, body { margin: 0; padding: 0; }

body {
    font-family: 'Manrope', sans-serif;
    background: var(--cd-prata-200);
    color: var(--cd-carbono-900);
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
}

a { color: var(--cd-azul-600); text-decoration: none; }
a:hover { color: var(--cd-azul-900); }
::selection { background: var(--cd-azul-600); color: var(--cd-prata-100); }

:focus-visible {
    outline: 2px solid var(--cd-azul-400);
    outline-offset: 3px;
    border-radius: 4px;
}

.text-balance { text-wrap: balance; }
.text-pretty { text-wrap: pretty; }

/* ---------------- KEYFRAMES DA MARCA (design-system.html) ---------------- */
@keyframes spinSlow { from { transform: rotate(0deg); } to { transform: rotate(360deg); } }
@keyframes spinRev { from { transform: rotate(360deg); } to { transform: rotate(0deg); } }
@keyframes shimmerMove { from { background-position: 0% 50%; } to { background-position: 200% 50%; } }
@keyframes glowPulse { 0%, 100% { opacity: .35; transform: scale(1); } 50% { opacity: .8; transform: scale(1.06); } }
@keyframes floatY { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-10px); } }
@keyframes marquee { from { transform: translateX(0); } to { transform: translateX(calc(-50% - 20px)); } }
@keyframes sweep { 0% { transform: translateX(-120%) skewX(-18deg); } 60%, 100% { transform: translateX(320%) skewX(-18deg); } }
@keyframes dotTrack { 0% { offset-distance: 0%; } 100% { offset-distance: 100%; } }
@keyframes barGrow { from { transform: scaleY(.25); } to { transform: scaleY(1); } }

/* ---------------- KEYFRAMES DAS REFERÊNCIAS ---------------- */
@keyframes spin { from { transform: rotate(0deg); } to { transform: rotate(360deg); } }
@keyframes float { 0%, 100% { transform: translateY(0px); } 50% { transform: translateY(-20px); } }
@keyframes scroll-line { 0% { transform: translateY(-100%); } 100% { transform: translateY(100%); } }

/* ---------------- KEYFRAMES NOVOS DESTE SISTEMA ---------------- */
@keyframes gridDrift { from { background-position: 0 0, 0 0; } to { background-position: 64px 64px, 64px 64px; } }
@keyframes auroraDrift {
    0% { transform: translate3d(0, 0, 0) scale(1); }
    33% { transform: translate3d(5%, -4%, 0) scale(1.1); }
    66% { transform: translate3d(-4%, 5%, 0) scale(.94); }
    100% { transform: translate3d(0, 0, 0) scale(1); }
}
@keyframes traceDraw {
    0% { stroke-dashoffset: 420; opacity: 0; }
    14% { opacity: 1; }
    72%, 100% { stroke-dashoffset: 0; opacity: 1; }
}
@keyframes caretBlink { 0%, 45% { opacity: 1; } 50%, 95% { opacity: 0; } }

/* ============================================================
   01 · CAMADAS DE FUNDO — repetidas em todas as dobras
   ============================================================ */
.noise-overlay,
.noise {
    position: fixed;
    inset: 0;
    opacity: .05;
    pointer-events: none;
    z-index: 9999;
    background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noiseFilter'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.65' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noiseFilter)'/%3E%3C/svg%3E");
}

.bg-grid {
    background-size: 64px 64px;
    background-image:
        linear-gradient(to right, rgba(22, 24, 28, .075) 1px, transparent 1px),
        linear-gradient(to bottom, rgba(22, 24, 28, .075) 1px, transparent 1px);
    animation: gridDrift 26s linear infinite;
}

.bg-grid-dark {
    background-size: 64px 64px;
    background-image:
        linear-gradient(to right, rgba(244, 246, 248, .05) 1px, transparent 1px),
        linear-gradient(to bottom, rgba(244, 246, 248, .05) 1px, transparent 1px);
    animation: gridDrift 26s linear infinite;
}

/* fundo de seção reutilizável */
.sec { position: relative; isolation: isolate; overflow: hidden; }
.sec-bg { position: absolute; inset: 0; z-index: -1; pointer-events: none; overflow: hidden; }
.sec-bg > .layer { position: absolute; inset: 0; }

.orb { position: absolute; border-radius: 50%; filter: blur(60px); will-change: transform; }
.orb-azul { background: radial-gradient(circle, rgba(42, 168, 255, .30) 0%, rgba(10, 111, 209, .10) 45%, transparent 70%); }
.orb-prata { background: radial-gradient(circle, rgba(200, 206, 214, .75) 0%, rgba(154, 163, 174, .28) 46%, transparent 72%); }
.orb-carbono { background: radial-gradient(circle, rgba(42, 46, 52, .55) 0%, transparent 70%); }
.orb-a { width: 46vw; height: 46vw; top: -14vw; right: -10vw; animation: auroraDrift 22s var(--cd-ease-io) infinite; }
.orb-b { width: 38vw; height: 38vw; bottom: -14vw; left: -8vw; animation: auroraDrift 28s var(--cd-ease-io) infinite reverse; }
.orb-c { width: 26vw; height: 26vw; top: 32%; left: 42%; animation: auroraDrift 34s var(--cd-ease-io) infinite; }

/* varredura lenta atravessando o fundo da seção */
.sec-sweep {
    position: absolute;
    top: -20%;
    bottom: -20%;
    width: 22%;
    background: linear-gradient(90deg, transparent, rgba(244, 246, 248, .55), transparent);
    animation: sweep 14s var(--cd-ease-io) infinite;
}

.sec-sweep-dark {
    background: linear-gradient(90deg, transparent, rgba(42, 168, 255, .13), transparent);
}

/* costura entre dobra carbono e dobra clara */
.seam-down { background: linear-gradient(to top, var(--cd-prata-200), transparent); }
.seam-up { background: linear-gradient(to bottom, var(--cd-carbono-950), transparent); }

/* máscara de borda — técnica do design-system2.html */
.edge-mask {
    -webkit-mask-image: linear-gradient(90deg, transparent 0%, #000 10%, #000 90%, transparent 100%);
    mask-image: linear-gradient(90deg, transparent 0%, #000 10%, #000 90%, transparent 100%);
}

/* ============================================================
   02 · ANIMAÇÕES DE SURGIMENTO (reveal)
   ============================================================ */
.reveal {
    opacity: 0;
    transform: translateY(2rem);
    transition: opacity var(--cd-dur-slow) var(--cd-ease), transform var(--cd-dur-slow) var(--cd-ease);
}

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

.reveal-up {
    opacity: 0;
    transform: translateY(30px);
    filter: blur(14px);
    will-change: transform, opacity, filter;
    transition: all var(--cd-dur-slow) var(--cd-ease);
}

.reveal-up.active { opacity: 1; transform: translateY(0); filter: blur(0); }

.reveal-zoom {
    opacity: 0;
    transform: scale(.95);
    filter: blur(10px);
    transition: all 1s var(--cd-ease);
}

.reveal-zoom.active { opacity: 1; transform: scale(1); filter: blur(0); }

/* revelação por máscara de linha */
.text-reveal-wrapper { overflow: hidden; display: block; }
.text-reveal-content {
    transform: translateY(110%);
    opacity: 0;
    transition: transform 1.3s var(--cd-ease), opacity 1.1s ease;
    display: block;
}
.reveal-active .text-reveal-content { transform: translateY(0); opacity: 1; }

.delay-100 { transition-delay: .1s; }
.delay-200 { transition-delay: .2s; }
.delay-300 { transition-delay: .3s; }
.delay-400 { transition-delay: .4s; }
.delay-500 { transition-delay: .5s; }
.delay-600 { transition-delay: .6s; }
.delay-700 { transition-delay: .7s; }
.delay-900 { transition-delay: .9s; }

/* ============================================================
   03 · TIPOGRAFIA — papéis de texto
   ============================================================ */
.t-h1 { font-family: 'Space Grotesk', sans-serif; font-weight: 600; font-size: clamp(46px, 7vw, 84px); line-height: .96; letter-spacing: -.035em; text-transform: none; }
.t-h2 { font-family: 'Space Grotesk', sans-serif; font-weight: 600; font-size: clamp(32px, 4.4vw, 52px); line-height: 1.02; letter-spacing: -.025em; text-transform: none; }
.t-h3 { font-family: 'Space Grotesk', sans-serif; font-weight: 500; font-size: 32px; line-height: 1.12; letter-spacing: -.02em; text-transform: none; }
.t-h4 { font-family: 'Space Grotesk', sans-serif; font-weight: 500; font-size: 24px; line-height: 1.2; letter-spacing: -.015em; text-transform: none; }
.t-h5 { font-family: 'Manrope', sans-serif; font-weight: 600; font-size: 19px; line-height: 1.35; letter-spacing: -.005em; text-transform: none; }
.t-h6 { font-family: 'JetBrains Mono', monospace; font-weight: 500; font-size: 13px; line-height: 1.4; letter-spacing: .18em; text-transform: uppercase; }
.t-body-lg { font-family: 'Manrope', sans-serif; font-weight: 400; font-size: 19px; line-height: 1.7; letter-spacing: 0; }
.t-body { font-family: 'Manrope', sans-serif; font-weight: 400; font-size: 16px; line-height: 1.65; letter-spacing: 0; }
.t-body-sm { font-family: 'Manrope', sans-serif; font-weight: 400; font-size: 14px; line-height: 1.6; letter-spacing: .005em; }
.t-caption { font-family: 'JetBrains Mono', monospace; font-weight: 400; font-size: 12px; line-height: 1.5; letter-spacing: .06em; }
.t-label { font-family: 'JetBrains Mono', monospace; font-weight: 500; font-size: 11px; line-height: 1.4; letter-spacing: .22em; text-transform: uppercase; }
.t-helper { font-family: 'Manrope', sans-serif; font-weight: 400; font-size: 12.5px; line-height: 1.5; letter-spacing: .01em; }

/* texto prata escovado em movimento */
.metal-text {
    background: var(--cd-grad-prata);
    background-size: 200% 100%;
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    animation: shimmerMove 6s linear infinite;
}

/* mesma liga, calibrada para carbono: os tons escuros do prata
   somem sobre fundo preto, então a rampa sobe um degrau inteiro */
.metal-bright {
    background: linear-gradient(100deg, #A8B0BA 0%, #F2F5F8 22%, #C6CCD4 45%, #FFFFFF 62%, #B2BAC4 82%, #E4E8ED 100%);
    background-size: 200% 100%;
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    animation: shimmerMove 6s linear infinite;
}

.carbon-text {
    background: linear-gradient(100deg, #454B54 0%, #0F1114 40%, #2A2E34 100%);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}

/* contorno — técnica do index.html, recolorida para a marca */
.animate-float { animation: float 6s ease-in-out infinite; }

.text-outline { -webkit-text-stroke: 1px var(--cd-prata-500); color: transparent; transition: all .5s var(--cd-ease); }
.text-outline-light { -webkit-text-stroke: 1px rgba(244, 246, 248, .55); color: transparent; }
.text-outline:hover { -webkit-text-stroke-color: var(--cd-azul-400); }

/* ============================================================
   04 · BOTÕES
   ============================================================ */
.btn {
    position: relative;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    border: none;
    cursor: pointer;
    font-family: 'Manrope', sans-serif;
    font-size: 14px;
    font-weight: 600;
    letter-spacing: .01em;
    padding: 15px 28px;
    border-radius: var(--cd-r-pill);
    overflow: hidden;
    transition: transform var(--cd-dur-fast) var(--cd-ease), box-shadow var(--cd-dur) var(--cd-ease), background var(--cd-dur) var(--cd-ease), color var(--cd-dur-fast) ease, border-color var(--cd-dur-fast) ease;
}

.btn:active { transform: translateY(0) scale(.98); }
.btn:disabled, .btn[aria-disabled="true"] { cursor: not-allowed; opacity: 1; transform: none !important; }

.btn-primary {
    background: var(--cd-grad-azul);
    color: var(--cd-prata-100);
    box-shadow: 0 12px 30px -12px rgba(10, 111, 209, .75), inset 0 1px 0 rgba(255, 255, 255, .28);
}
.btn-primary:hover { transform: translateY(-2px); box-shadow: 0 18px 44px -12px rgba(10, 111, 209, .95), inset 0 1px 0 rgba(255, 255, 255, .42); }
.btn-primary:disabled { background: #7E8894; box-shadow: none; color: #DFE3E8; }

.btn-prata {
    background: linear-gradient(135deg, #F7F9FB, #DCE1E7);
    color: var(--cd-carbono-800);
    border: 1px solid var(--cd-prata-300);
    box-shadow: 0 8px 22px -14px rgba(22, 24, 28, .5), inset 0 1px 0 #FFFFFF;
}
.btn-prata:hover { background: linear-gradient(135deg, #FFFFFF, #E6EAEF); transform: translateY(-2px); border-color: var(--cd-prata-400); }

.btn-escuro {
    background: var(--cd-grad-carbono);
    color: var(--cd-prata-200);
    border: 1px solid var(--cd-carbono-700);
}
.btn-escuro:hover { border-color: var(--cd-azul-400); color: var(--cd-prata-100); transform: translateY(-2px); box-shadow: 0 0 0 1px rgba(42, 168, 255, .25), 0 16px 36px -18px rgba(8, 9, 11, .9); }

.btn-ghost {
    background: none;
    color: var(--cd-azul-600);
    padding: 10px 8px;
    border-radius: var(--cd-r-tag);
    border-bottom: 1px solid rgba(10, 111, 209, .35);
}
.btn-ghost:hover { border-bottom-color: var(--cd-azul-600); color: var(--cd-azul-900); }

.btn-icone { padding: 0; width: 46px; height: 46px; border-radius: 50%; }

/* varredura viva dentro do botão — keyframe sweep da marca */
.btn-sweep::after {
    content: "";
    position: absolute;
    top: 0;
    bottom: 0;
    width: 44px;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, .45), transparent);
    animation: sweep 3.4s var(--cd-ease-io) infinite;
    pointer-events: none;
}

/* botão feixe — técnica .btn-beam do design_system1.html, em azul da marca */
.btn-beam { position: relative; z-index: 10; overflow: hidden; padding: 1px; border: none; background: none; cursor: pointer; border-radius: var(--cd-r-pill); }
.btn-beam::before {
    content: "";
    position: absolute;
    inset: -2px;
    z-index: -1;
    background: conic-gradient(from 90deg at 50% 50%, #2AA8FF 0%, #063E8C 25%, #C8CED6 50%, #063E8C 75%, #2AA8FF 100%);
    animation: spin 4s linear infinite;
    border-radius: inherit;
    opacity: 0;
    transition: opacity .3s;
}
.btn-beam:hover::before { opacity: 1; }
.btn-beam-content {
    background-color: var(--cd-carbono-900);
    color: var(--cd-prata-100);
    position: relative;
    z-index: 10;
    width: 100%;
    height: 100%;
    border-radius: inherit;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    border: 1px solid rgba(244, 246, 248, .12);
    transition: background var(--cd-dur) var(--cd-ease);
}
.btn-beam:hover .btn-beam-content { background-color: var(--cd-carbono-800); }

/* ============================================================
   05 · CAMPOS
   ============================================================ */
.field { display: flex; flex-direction: column; gap: 8px; }
.field-label { font-family: 'JetBrains Mono', monospace; font-size: 11px; letter-spacing: .22em; text-transform: uppercase; color: var(--cd-prata-500); transition: color var(--cd-dur-fast) ease; }
.field:focus-within .field-label { color: var(--cd-azul-600); }
.field-helper { font-family: 'Manrope', sans-serif; font-size: 12.5px; line-height: 1.5; color: var(--cd-prata-500); }

.input {
    width: 100%;
    font-family: 'Manrope', sans-serif;
    font-size: 15px;
    color: var(--cd-carbono-900);
    background: #FFFFFF;
    border: 1px solid var(--cd-prata-300);
    border-radius: var(--cd-r-field);
    padding: 14px 18px;
    outline: none;
    transition: border-color var(--cd-dur-fast) ease, box-shadow var(--cd-dur-fast) ease, background var(--cd-dur-fast) ease;
}
.input::placeholder { color: var(--cd-prata-400); }
.input:hover { border-color: var(--cd-prata-400); }
.input:focus { border-color: var(--cd-azul-400); box-shadow: 0 0 0 4px rgba(42, 168, 255, .16); }
.input:disabled { background: var(--cd-prata-200); color: var(--cd-prata-400); border-color: var(--cd-prata-300); cursor: not-allowed; }
.input-erro { border-color: var(--cd-erro); box-shadow: 0 0 0 4px rgba(217, 83, 79, .14); }
.input-busca { border-radius: var(--cd-r-pill); padding-left: 46px; background: var(--cd-prata-100); }
.input-busca:focus { background: #FFFFFF; }

/* alternador */
.switch { position: relative; width: 52px; height: 30px; border-radius: var(--cd-r-pill); background: var(--cd-prata-300); box-shadow: inset 0 1px 3px rgba(8, 9, 11, .2); border: none; cursor: pointer; padding: 0; transition: background var(--cd-dur) var(--cd-ease); }
.switch-dot { position: absolute; top: 3px; left: 3px; width: 24px; height: 24px; border-radius: 50%; background: #FFFFFF; box-shadow: 0 2px 6px rgba(8, 9, 11, .3); transition: transform var(--cd-dur) var(--cd-ease); }
.switch[aria-checked="true"] { background: var(--cd-grad-azul); }
.switch[aria-checked="true"] .switch-dot { transform: translateX(22px); }

/* caixa de seleção */
.check-box { width: 22px; height: 22px; border: 1px solid var(--cd-prata-400); border-radius: 7px; display: inline-flex; align-items: center; justify-content: center; background: #FFFFFF; transition: all var(--cd-dur-fast) var(--cd-ease); }
.check-box iconify-icon { opacity: 0; transform: scale(.4); transition: all var(--cd-dur-fast) var(--cd-ease); color: #fff; font-size: 14px; }
.check-row:hover .check-box { border-color: var(--cd-azul-400); }
.check-row[aria-checked="true"] .check-box { background: var(--cd-grad-azul); border-color: transparent; box-shadow: 0 6px 16px -8px rgba(10, 111, 209, .9); }
.check-row[aria-checked="true"] .check-box iconify-icon { opacity: 1; transform: scale(1); }

/* ============================================================
   06 · CARDS
   ============================================================ */
.card {
    position: relative;
    background: #FFFFFF;
    border: 1px solid var(--cd-prata-300);
    border-radius: var(--cd-r-card);
    box-shadow: 0 20px 50px -34px rgba(22, 24, 28, .5);
    transition: transform var(--cd-dur) var(--cd-ease), box-shadow var(--cd-dur) var(--cd-ease), border-color var(--cd-dur) var(--cd-ease);
}
.card:hover { transform: translateY(-4px); box-shadow: 0 34px 62px -30px rgba(22, 24, 28, .55); border-color: var(--cd-prata-400); }

.card-escuro {
    position: relative;
    overflow: hidden;
    background: var(--cd-grad-carbono);
    border: 1px solid rgba(244, 246, 248, .08);
    border-radius: var(--cd-r-card);
    color: var(--cd-prata-200);
    box-shadow: 0 30px 60px -34px rgba(8, 9, 11, .85);
    transition: transform var(--cd-dur) var(--cd-ease), box-shadow var(--cd-dur) var(--cd-ease), border-color var(--cd-dur) var(--cd-ease);
}
.card-escuro:hover { transform: translateY(-4px); border-color: rgba(42, 168, 255, .35); box-shadow: 0 40px 80px -34px rgba(8, 9, 11, .95); }

.card-glass {
    background: rgba(255, 255, 255, .55);
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
    border: 1px solid rgba(255, 255, 255, .7);
    border-radius: var(--cd-r-card);
    box-shadow: 0 20px 50px -30px rgba(22, 24, 28, .45);
    transition: transform var(--cd-dur) var(--cd-ease), background var(--cd-dur) var(--cd-ease);
}
.card-glass:hover { transform: translateY(-4px); background: rgba(255, 255, 255, .72); }

/* lanterna — técnica .flashlight-card do design_system1.html */
.flashlight-card { position: relative; overflow: hidden; }
.flashlight-card::before {
    content: "";
    position: absolute;
    inset: 0;
    background: radial-gradient(520px circle at var(--mouse-x, 50%) var(--mouse-y, 50%), rgba(42, 168, 255, .20), transparent 42%);
    opacity: 0;
    transition: opacity var(--cd-dur) ease;
    pointer-events: none;
    z-index: 2;
}
.flashlight-card:hover::before { opacity: 1; }
.flashlight-card.on-dark::before { background: radial-gradient(520px circle at var(--mouse-x, 50%) var(--mouse-y, 50%), rgba(42, 168, 255, .28), transparent 44%); }

/* card de mídia com varredura de scanline (index.html) */
.media-card { position: relative; overflow: hidden; border-radius: var(--cd-r-card); background: var(--cd-grad-carbono); }
.media-card img { transition: transform 1s var(--cd-ease), filter .7s var(--cd-ease), opacity .7s ease; }
.media-card:hover img { transform: scale(1.06); filter: grayscale(0) contrast(1.05); }
.media-scan {
    position: absolute;
    inset: 0;
    z-index: 3;
    background: linear-gradient(to bottom, transparent, rgba(42, 168, 255, .28), transparent);
    transform: translateY(-100%);
    transition: transform 1.5s var(--cd-ease-io);
    pointer-events: none;
}
.media-card:hover .media-scan { transform: translateY(100%); }

/* barra de progresso que preenche no hover */
.card-rule { height: 2px; background: var(--cd-prata-200); overflow: hidden; border-radius: 2px; }
.card-rule > i { display: block; height: 100%; width: 0; background: var(--cd-grad-azul); transition: width .8s var(--cd-ease); }
.card:hover .card-rule > i, .card-escuro:hover .card-rule > i, .flashlight-card:hover .card-rule > i { width: 100%; }

/* ============================================================
   07 · SELOS, PÍLULAS E DICAS
   ============================================================ */
/* Casca única para todos os selos: superfície branca, fio de borda e
   sombra curta. A cor semântica vive no ícone, nunca no fundo — assim o
   selo informa sem competir com o conteúdo em volta, e sete selos lado a
   lado continuam parecendo um sistema em vez de sete adesivos. */
.badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 8px 14px;
    border-radius: var(--cd-r-tag);
    background: #FFFFFF;
    border: 1px solid rgba(22, 24, 28, .10);
    font-family: 'Manrope', sans-serif;
    font-size: 13px;
    font-weight: 600;
    letter-spacing: -.005em;
    color: var(--cd-carbono-900);
    box-shadow: 0 1px 2px rgba(22, 24, 28, .05), 0 6px 14px -10px rgba(22, 24, 28, .35);
    transition: transform var(--cd-dur-fast) var(--cd-ease), box-shadow var(--cd-dur-fast) var(--cd-ease), border-color var(--cd-dur-fast) ease;
}

.badge iconify-icon { font-size: 1.25em; flex: none; color: var(--cd-carbono-900); }

.badge:hover {
    transform: translateY(-2px);
    border-color: rgba(22, 24, 28, .18);
    box-shadow: 0 2px 4px rgba(22, 24, 28, .06), 0 12px 24px -12px rgba(22, 24, 28, .45);
}

/* casca escura — para selo sobre carbono ou sobre imagem */
.badge-carbono {
    background: var(--cd-carbono-900);
    border-color: rgba(244, 246, 248, .14);
    color: var(--cd-prata-100);
    box-shadow: 0 1px 2px rgba(8, 9, 11, .4), 0 8px 18px -10px rgba(8, 9, 11, .9);
}
.badge-carbono iconify-icon { color: var(--cd-prata-300); }
.badge-carbono:hover { border-color: rgba(244, 246, 248, .28); }

/* a variante pinta só o ícone — declarada depois da casca escura
   para que um selo escuro com papel semântico mantenha a cor do ícone */
.badge-azul iconify-icon { color: var(--cd-azul-600); }
.badge-prata iconify-icon { color: var(--cd-prata-500); }
.badge-sucesso iconify-icon { color: var(--cd-sucesso); }
.badge-atencao iconify-icon { color: #A87B1E; }
.badge-erro iconify-icon { color: var(--cd-erro); }

/* variante silenciosa: sem sombra, sem preenchimento — para contadores
   de seção e metadados que não devem puxar o olho */
.badge-contorno {
    background: transparent;
    color: var(--cd-prata-500);
    border-color: rgba(22, 24, 28, .14);
    box-shadow: none;
    padding: 7px 12px;
    font-family: 'JetBrains Mono', monospace;
    font-size: 10px;
    font-weight: 500;
    letter-spacing: .18em;
    text-transform: uppercase;
}
.badge-contorno:hover { box-shadow: none; border-color: rgba(22, 24, 28, .28); }

.badge-contador {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 21px;
    height: 21px;
    padding: 0 6px;
    border-radius: 6px;
    background: var(--cd-carbono-900);
    color: var(--cd-prata-100);
    font-family: 'JetBrains Mono', monospace;
    font-size: 11px;
    font-weight: 500;
}

.dot-live { width: 8px; height: 8px; border-radius: 50%; background: var(--cd-azul-400); box-shadow: 0 0 12px 3px rgba(42, 168, 255, .8); animation: glowPulse 2.2s ease-in-out infinite; }
.dot-sucesso { background: var(--cd-sucesso); box-shadow: 0 0 10px 2px rgba(42, 157, 143, .6); }
.dot-erro { background: var(--cd-erro); box-shadow: 0 0 10px 2px rgba(217, 83, 79, .6); }

.tip { position: relative; display: inline-flex; }
.tip-bubble {
    position: absolute;
    z-index: 40;
    padding: 8px 13px;
    border-radius: 10px;
    background: var(--cd-carbono-900);
    color: var(--cd-prata-100);
    font-family: 'Manrope', sans-serif;
    font-size: 12px;
    font-weight: 500;
    white-space: nowrap;
    opacity: 0;
    pointer-events: none;
    box-shadow: 0 14px 30px -16px rgba(8, 9, 11, .9);
    border: 1px solid rgba(244, 246, 248, .12);
    transition: opacity var(--cd-dur-fast) var(--cd-ease), transform var(--cd-dur-fast) var(--cd-ease);
}
.tip-bubble::after { content: ""; position: absolute; width: 8px; height: 8px; background: var(--cd-carbono-900); transform: rotate(45deg); }
.tip-top .tip-bubble { bottom: calc(100% + 10px); left: 50%; transform: translate(-50%, 6px); }
.tip-top .tip-bubble::after { top: calc(100% - 4px); left: calc(50% - 4px); }
.tip-top:hover .tip-bubble, .tip-top:focus-within .tip-bubble { opacity: 1; transform: translate(-50%, 0); }
.tip-bottom .tip-bubble { top: calc(100% + 10px); left: 50%; transform: translate(-50%, -6px); }
.tip-bottom .tip-bubble::after { bottom: calc(100% - 4px); left: calc(50% - 4px); }
.tip-bottom:hover .tip-bubble, .tip-bottom:focus-within .tip-bubble { opacity: 1; transform: translate(-50%, 0); }
.tip-left .tip-bubble { right: calc(100% + 10px); top: 50%; transform: translate(6px, -50%); }
.tip-left .tip-bubble::after { left: calc(100% - 4px); top: calc(50% - 4px); }
.tip-left:hover .tip-bubble, .tip-left:focus-within .tip-bubble { opacity: 1; transform: translate(0, -50%); }
.tip-right .tip-bubble { left: calc(100% + 10px); top: 50%; transform: translate(-6px, -50%); }
.tip-right .tip-bubble::after { right: calc(100% - 4px); top: calc(50% - 4px); }
.tip-right:hover .tip-bubble, .tip-right:focus-within .tip-bubble { opacity: 1; transform: translate(0, -50%); }

/* ============================================================
   08 · MODAL
   ============================================================ */
.modal-stage { position: relative; overflow: hidden; border-radius: var(--cd-r-card); }
.modal-backdrop { position: absolute; inset: 0; background: rgba(8, 9, 11, .45); backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px); opacity: 0; transition: opacity var(--cd-dur) var(--cd-ease); }
.modal-card {
    position: relative;
    width: min(340px, 88%);
    background: rgba(255, 255, 255, .94);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, .8);
    border-radius: 20px;
    box-shadow: 0 40px 80px -34px rgba(8, 9, 11, .7);
    padding: 22px;
    opacity: 0;
    transform: translateY(16px) scale(.96);
    transition: opacity var(--cd-dur) var(--cd-ease) .06s, transform var(--cd-dur) var(--cd-ease) .06s;
}
.modal-stage:hover .modal-backdrop, .modal-stage:focus-within .modal-backdrop { opacity: 1; }
.modal-stage:hover .modal-card, .modal-stage:focus-within .modal-card { opacity: 1; transform: translateY(0) scale(1); }
.modal-hint { position: absolute; transition: opacity var(--cd-dur-fast) ease; }
.modal-stage:hover .modal-hint, .modal-stage:focus-within .modal-hint { opacity: 0; }

/* ============================================================
   09 · NAVBAR
   ============================================================ */
#navbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 60;
    transition: background var(--cd-dur) var(--cd-ease), backdrop-filter var(--cd-dur) var(--cd-ease), border-color var(--cd-dur) var(--cd-ease), transform var(--cd-dur) var(--cd-ease), box-shadow var(--cd-dur) var(--cd-ease);
    background: rgba(8, 9, 11, 0);
    border-bottom: 1px solid transparent;
}
#navbar.is-scrolled {
    background: rgba(8, 9, 11, .72);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border-bottom-color: rgba(244, 246, 248, .1);
    box-shadow: 0 18px 40px -32px rgba(8, 9, 11, .9);
}
#navbar.is-hidden { transform: translateY(-102%); }
.nav-link { position: relative; font-family: 'JetBrains Mono', monospace; font-size: 11px; letter-spacing: .2em; text-transform: uppercase; color: var(--cd-prata-400); transition: color var(--cd-dur-fast) ease; padding: 6px 2px; }
.nav-link::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 1px; background: var(--cd-grad-azul); transform: scaleX(0); transform-origin: left; transition: transform var(--cd-dur) var(--cd-ease); }
.nav-link:hover, .nav-link.is-active { color: var(--cd-prata-100); }
.nav-link:hover::after, .nav-link.is-active::after { transform: scaleX(1); }
.nav-progress { position: absolute; left: 0; bottom: -1px; height: 2px; width: 0; background: var(--cd-grad-azul); box-shadow: 0 0 12px rgba(42, 168, 255, .8); }

/* ============================================================
   10 · TABELAS DE ESPECIFICAÇÃO
   ============================================================ */
.spec { width: 100%; border-collapse: collapse; font-size: 13px; }
.spec thead th {
    font-family: 'JetBrains Mono', monospace;
    font-size: 10px;
    letter-spacing: .18em;
    text-transform: uppercase;
    color: var(--cd-prata-500);
    text-align: left;
    font-weight: 500;
    padding: 12px 14px;
    border-bottom: 1px solid var(--cd-prata-300);
    white-space: nowrap;
}
.spec tbody td { padding: 13px 14px; border-bottom: 1px solid rgba(194, 200, 208, .55); vertical-align: middle; color: var(--cd-carbono-700); }
.spec tbody tr { transition: background var(--cd-dur-fast) ease; }
.spec tbody tr:hover { background: rgba(255, 255, 255, .75); }
.spec tbody tr:last-child td { border-bottom: none; }
.spec .mono { font-family: 'JetBrains Mono', monospace; font-size: 11.5px; color: var(--cd-prata-500); white-space: nowrap; }
.spec .role { font-family: 'JetBrains Mono', monospace; font-size: 11px; letter-spacing: .16em; text-transform: uppercase; color: var(--cd-carbono-900); white-space: nowrap; }
.spec-wrap { overflow-x: auto; border-radius: var(--cd-r-card); border: 1px solid var(--cd-prata-300); background: rgba(255, 255, 255, .8); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); }

.spec-dark thead th { color: var(--cd-prata-400); border-bottom-color: var(--cd-carbono-700); }
.spec-dark tbody td { color: var(--cd-prata-300); border-bottom-color: rgba(69, 75, 84, .6); }
.spec-dark tbody tr:hover { background: rgba(244, 246, 248, .04); }
.spec-dark .role { color: var(--cd-prata-100); }
.spec-dark .mono { color: var(--cd-prata-500); }

/* ============================================================
   11 · SWATCHES
   ============================================================ */
.swatch { position: relative; overflow: hidden; border-radius: 22px; background: #FFFFFF; border: 1px solid var(--cd-prata-300); box-shadow: 0 16px 40px -28px rgba(22, 24, 28, .5); transition: transform var(--cd-dur) var(--cd-ease), box-shadow var(--cd-dur) var(--cd-ease); }
.swatch:hover { transform: translateY(-6px); box-shadow: 0 30px 56px -26px rgba(22, 24, 28, .6); }
.swatch-chip { position: relative; height: 122px; overflow: hidden; }
.swatch-chip::after { content: ""; position: absolute; top: 0; bottom: 0; width: 40px; background: linear-gradient(90deg, transparent, rgba(255, 255, 255, .35), transparent); transform: translateX(-140%) skewX(-18deg); transition: none; }
.swatch:hover .swatch-chip::after { animation: sweep 1.5s var(--cd-ease-io); }

.ramp > span { display: block; height: 62px; transition: flex-grow var(--cd-dur) var(--cd-ease), transform var(--cd-dur) var(--cd-ease); flex: 1 1 0; }
.ramp:hover > span:hover { flex-grow: 2.4; }

.checker { background-image: linear-gradient(45deg, #C2C8D0 25%, transparent 25%), linear-gradient(-45deg, #C2C8D0 25%, transparent 25%), linear-gradient(45deg, transparent 75%, #C2C8D0 75%), linear-gradient(-45deg, transparent 75%, #C2C8D0 75%); background-size: 12px 12px; background-position: 0 0, 0 6px, 6px -6px, -6px 0px; background-color: #F4F6F8; }

/* ============================================================
   12 · MOVIMENTO — laboratório
   ============================================================ */
.motion-card { position: relative; overflow: hidden; border-radius: 24px; background: rgba(22, 24, 28, .6); border: 1px solid rgba(244, 246, 248, .09); padding: 24px; transition: border-color var(--cd-dur) var(--cd-ease), transform var(--cd-dur) var(--cd-ease); }
.motion-card:hover { border-color: rgba(42, 168, 255, .38); transform: translateY(-4px); }
.motion-stage { height: 128px; display: flex; align-items: center; justify-content: center; position: relative; overflow: hidden; }

.ring-track { position: absolute; inset: 0; }
.tracer { position: absolute; width: 10px; height: 10px; border-radius: 50%; background: var(--cd-azul-400); box-shadow: 0 0 14px 4px rgba(42, 168, 255, .85); }

/* percurso com offset-path — usa o keyframe dotTrack da marca.
   O path() é declarado inline em cada instância porque suas coordenadas
   são relativas ao canto superior esquerdo do bloco que contém o ponto. */
.dot-path {
    position: absolute;
    top: 0;
    left: 0;
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: var(--cd-prata-100);
    box-shadow: 0 0 14px 4px rgba(244, 246, 248, .65);
    offset-rotate: auto;
    animation: dotTrack 9s linear infinite;
}

/* anéis do disco */
.ring { position: absolute; border-radius: 50%; }
.ring-wrap { position: absolute; border-radius: 50%; }
.disco-shell { position: relative; border-radius: 50%; overflow: hidden; box-shadow: 0 46px 90px -34px rgba(8, 9, 11, .95), 0 0 0 1px rgba(244, 246, 248, .07); animation: floatY 7s ease-in-out infinite; }
.disco-shell::after {
    content: "";
    position: absolute;
    top: 0;
    bottom: 0;
    width: 62px;
    background: linear-gradient(90deg, transparent, rgba(244, 246, 248, .22), transparent);
    animation: sweep 5.5s var(--cd-ease-io) infinite;
    pointer-events: none;
}

/* pastilhas em órbita */
.orbit-chip {
    position: absolute;
    display: inline-flex;
    align-items: center;
    gap: 7px;
    padding: 7px 13px;
    border-radius: var(--cd-r-pill);
    background: rgba(22, 24, 28, .72);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 1px solid rgba(244, 246, 248, .12);
    font-family: 'JetBrains Mono', monospace;
    font-size: 10px;
    letter-spacing: .14em;
    text-transform: uppercase;
    color: var(--cd-prata-300);
    white-space: nowrap;
    animation: floatY 6s ease-in-out infinite;
}

.bar-set { display: flex; align-items: flex-end; gap: 5px; height: 64px; }
.bar-set > span { width: 9px; border-radius: 4px; transform-origin: bottom; animation: barGrow 2.6s ease-in-out infinite alternate; }

.scroll-hint-line { width: 1px; height: 34px; background: rgba(154, 163, 174, .35); overflow: hidden; position: relative; }
.scroll-hint-line > i { position: absolute; inset: 0; background: var(--cd-azul-400); animation: scroll-line 1.6s cubic-bezier(.77, 0, .175, 1) infinite; }

/* ============================================================
   13 · MARQUEE
   ============================================================ */
.animate-marquee { display: flex; width: max-content; gap: 40px; animation: marquee 34s linear infinite; }

/* ============================================================
   14 · ÍCONES
   ============================================================ */
.icon-cell { position: relative; aspect-ratio: 1; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 12px; background: rgba(255, 255, 255, .7); transition: background var(--cd-dur-fast) ease; }
.icon-cell iconify-icon { font-size: 26px; color: var(--cd-prata-500); transition: color var(--cd-dur-fast) var(--cd-ease), transform var(--cd-dur-fast) var(--cd-ease); }
.icon-cell span { font-family: 'JetBrains Mono', monospace; font-size: 10px; color: var(--cd-prata-400); opacity: 0; transition: opacity var(--cd-dur-fast) ease; }
.icon-cell:hover { background: #FFFFFF; }
.icon-cell:hover iconify-icon { color: var(--cd-azul-600); transform: scale(1.18); }
.icon-cell:hover span { opacity: 1; }

/* ============================================================
   15 · BARRA DE ROLAGEM
   ============================================================ */
::-webkit-scrollbar { width: 10px; height: 10px; }
::-webkit-scrollbar-track { background: var(--cd-prata-200); }
::-webkit-scrollbar-thumb { background: var(--cd-prata-300); border-radius: 6px; border: 2px solid var(--cd-prata-200); }
::-webkit-scrollbar-thumb:hover { background: var(--cd-prata-400); }

/* ============================================================
   16 · RESPONSIVO
   ============================================================ */
@media (max-width: 1024px) {
    .orb-a, .orb-b, .orb-c { filter: blur(48px); }
}

@media (max-width: 768px) {
    .t-h3 { font-size: 26px; }
    .t-h4 { font-size: 21px; }
    .sec-sweep { display: none; }
}

/* ============================================================
   17 · MOVIMENTO REDUZIDO — o conteúdo nunca some
   ============================================================ */
@media (prefers-reduced-motion: reduce) {
    .reveal, .reveal-up, .reveal-zoom, .text-reveal-content {
        opacity: 1 !important;
        transform: none !important;
        filter: none !important;
        transition: none !important;
    }

    *, *::before, *::after {
        animation-duration: .001s !important;
        animation-iteration-count: 1 !important;
        animation-delay: 0s !important;
        transition-duration: .001s !important;
        scroll-behavior: auto !important;
    }

    .sec-sweep, .btn-sweep::after, .dot-path, .scroll-hint-line > i { display: none; }
}

/* ---------------- SIMBOLO DA MARCA (SVG) ---------------- */
.cd-trace { animation: traceDraw 4.6s var(--cd-ease) .35s both; }
.cd-caret { animation: caretBlink 2.4s steps(1, end) infinite; }
