/* ============================================================
   MARTECIA — Prontidão Pós-Quântica
   Brand: Deep Navy + Electric Blue + Gold · Montserrat
   ============================================================ */

:root {
  /* default theme: Deep Navy */
  --bg:        #06142a;
  --bg-1:      #0b1f3b;
  --bg-2:      #0f2748;
  --bg-3:      #143158;
  --line:      rgba(120,160,230,0.15);
  --line-2:    rgba(120,160,230,0.30);
  --text:      #e7ebf2;
  --dim:       #a4b6d4;
  --faint:     #6c84ab;
  --navy:      #0b1f3b;
  --accent:    #d79d4b;   /* Gold (destaque padrão) */
  --accent-2:  #e6b86a;   /* Gold claro */
  --gold:      #d79d4b;   /* Gold */
  --accent-ink:#1a1206;
  --emph:      #d79d4b;   /* gold for threat / emphasis */
  --ok:        #3f7cff;
  --glow:      rgba(215,157,75,0.5);

  --font-display: 'Montserrat', system-ui, sans-serif;
  --font-body:    'Montserrat', system-ui, sans-serif;
  --font-mono:    'JetBrains Mono', ui-monospace, monospace;

  --maxw: 1180px;
  --gutter: clamp(20px, 5vw, 64px);
}

:root[data-theme="graphite"] {
  --bg:        #16191e;
  --bg-1:      #20242b;
  --bg-2:      #262b33;
  --bg-3:      #2b2f34;
  --line:      rgba(180,195,220,0.12);
  --line-2:    rgba(180,195,220,0.26);
  --text:      #eaecf0;
  --dim:       #aeb6c4;
  --faint:     #757d8c;
  --navy:      #2b2f34;
  --accent:    #3f7cff;
  --accent-2:  #1e5bff;
  --accent-ink:#ffffff;
  --emph:      #d79d4b;
  --glow:      rgba(63,124,255,0.5);
}

:root[data-theme="gold"] {
  --bg:        #06142a;
  --bg-1:      #0b1f3b;
  --bg-2:      #11264a;
  --bg-3:      #163057;
  --line:      rgba(215,157,75,0.16);
  --line-2:    rgba(215,157,75,0.32);
  --text:      #f1ece3;
  --dim:       #c7b79d;
  --faint:     #8c7e63;
  --navy:      #0b1f3b;
  --accent:    #d79d4b;
  --accent-2:  #e6b86a;
  --accent-ink:#1a1206;
  --emph:      #3f7cff;
  --glow:      rgba(215,157,75,0.5);
}

/* ---- Reset ---- */
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-body);
  font-size: 18px;
  line-height: 1.65;
  font-weight: 400;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

h1,h2,h3,h4 { font-family: var(--font-display); font-weight: 700; line-height: 1.1; margin: 0; letter-spacing: -0.01em; }
h1, h2 { text-transform: uppercase; letter-spacing: 0.005em; }
p { margin: 0 0 1.1em; text-wrap: pretty; }
a { color: inherit; text-decoration: none; }
strong { color: var(--text); font-weight: 600; }
::selection { background: var(--accent); color: var(--accent-ink); }

/* ---- Background grid ---- */
.bg-grid {
  position: fixed; inset: 0; z-index: 0; pointer-events: none;
  background-image:
    linear-gradient(var(--line) 1px, transparent 1px),
    linear-gradient(90deg, var(--line) 1px, transparent 1px);
  background-size: 64px 64px;
  -webkit-mask-image: radial-gradient(ellipse 90% 70% at 50% 0%, #000 0%, transparent 75%);
          mask-image: radial-gradient(ellipse 90% 70% at 50% 0%, #000 0%, transparent 75%);
  opacity: 0.55;
}

/* ---- Layout ---- */
.wrap { max-width: var(--maxw); margin: 0 auto; padding: 0 var(--gutter); position: relative; z-index: 1; }
.narrow { max-width: 780px; }
section { position: relative; z-index: 1; }

.kicker {
  font-family: var(--font-mono); font-size: 12px; font-weight: 500;
  letter-spacing: 0.2em; text-transform: uppercase; color: var(--accent);
  display: inline-flex; align-items: center; gap: 10px; margin-bottom: 22px;
}
.kicker::before { content: ""; width: 26px; height: 1px; background: var(--accent); opacity: 0.7; }

.eyebrow-num { font-family: var(--font-mono); font-size: 13px; color: var(--faint); letter-spacing: 0.08em; font-weight: 500; }

/* ============================================================
   NAV
   ============================================================ */
.progress { position: fixed; top: 0; left: 0; height: 2px; width: 0%;
  background: linear-gradient(90deg, var(--accent), var(--accent-2)); z-index: 100; box-shadow: 0 0 12px var(--glow); }
.nav { position: fixed; top: 0; left: 0; right: 0; z-index: 90;
  display: flex; align-items: center; justify-content: space-between; padding: 14px var(--gutter);
  transition: background .35s, border-color .35s, backdrop-filter .35s; border-bottom: 1px solid transparent; }
.nav.scrolled { background: color-mix(in srgb, var(--bg) 80%, transparent);
  -webkit-backdrop-filter: blur(16px); backdrop-filter: blur(16px); border-bottom: 1px solid var(--line); }
.nav .logo { height: 48px; display: block; }
.nav-links { display: flex; gap: 26px; align-items: center; }
.nav-links a { font-family: var(--font-mono); font-size: 12px; letter-spacing: 0.03em; color: var(--dim);
  position: relative; padding: 4px 0; transition: color .2s; }
.nav-links a:hover { color: var(--text); }
.nav-links a::after { content: ""; position: absolute; left: 0; bottom: -2px; height: 1px; width: 0; background: var(--accent); transition: width .25s; }
.nav-links a:hover::after, .nav-links a.active::after { width: 100%; }
.nav-links a.active { color: var(--text); }
.nav-cta { font-family: var(--font-mono); font-size: 11.5px; letter-spacing: 0.06em; padding: 9px 16px;
  border: 1px solid var(--line-2); border-radius: 2px; color: var(--text); transition: all .2s; text-transform: uppercase; white-space: nowrap; }
.nav-cta:hover { background: var(--accent); color: var(--accent-ink); border-color: var(--accent); box-shadow: 0 0 24px var(--glow); }
.lang-btn { appearance: none; cursor: pointer; font-family: var(--font-mono); font-size: 11.5px; font-weight: 500;
  letter-spacing: 0.08em; padding: 9px 13px; border: 1px solid var(--line-2); border-radius: 2px; color: var(--dim);
  background: transparent; transition: all .2s; display: inline-flex; align-items: center; gap: 7px; }
.lang-btn:hover { color: var(--text); border-color: var(--accent); }
.lang-btn { white-space: nowrap; }
.lang-btn svg { width: 13px; height: 13px; opacity: .8; }
.nav-right { display: flex; align-items: center; gap: 12px; }
@media (max-width: 940px) { .nav-links, .nav-cta { display: none; } }
/* telas estreitas: mantém só logo + botão de idioma; o link do produto na nav sairia da tela */
@media (max-width: 620px) { .nav-right a[href="cryptus-aegis.html"] { display: none; } }
/* o link do produto reaparece dentro do painel do hambúrguer (apenas mobile) */
.nav-mobile-only { display: none; }
@media (max-width: 940px) { .nav-links .nav-mobile-only { display: block; } }

/* ---- Menu mobile (hambúrguer) ---- */
.nav-toggle { display: none; flex-direction: column; justify-content: center; gap: 4px;
  width: 40px; height: 38px; padding: 0 10px; background: transparent; border: 1px solid var(--line-2);
  border-radius: 2px; cursor: pointer; }
.nav-toggle span { display: block; height: 2px; width: 100%; background: var(--dim); border-radius: 2px;
  transition: transform .25s, opacity .25s; }
.nav.open .nav-toggle { border-color: var(--accent); }
.nav.open .nav-toggle span:nth-child(1) { transform: translateY(6px) rotate(45deg); }
.nav.open .nav-toggle span:nth-child(2) { opacity: 0; }
.nav.open .nav-toggle span:nth-child(3) { transform: translateY(-6px) rotate(-45deg); }
@media (max-width: 940px) {
  .nav-toggle { display: flex; }
  .nav-links { display: flex; flex-direction: column; align-items: stretch; gap: 0;
    position: absolute; top: 100%; left: 0; right: 0;
    background: color-mix(in srgb, var(--bg) 95%, transparent);
    -webkit-backdrop-filter: blur(18px); backdrop-filter: blur(18px);
    border-top: 1px solid var(--line); border-bottom: 1px solid var(--line);
    padding: 6px var(--gutter) 14px;
    opacity: 0; visibility: hidden; transform: translateY(-8px); pointer-events: none;
    transition: opacity .25s, transform .25s, visibility .25s; }
  .nav.open .nav-links { opacity: 1; visibility: visible; transform: none; pointer-events: auto; }
  .nav-links a { padding: 15px 2px; font-size: 14px; border-bottom: 1px solid var(--line); }
  .nav-links a:last-child { border-bottom: 0; }
  .nav-links a::after { display: none; }
}

.prod-logo { height: 58px; display: block; margin-bottom: 26px; }
@media (max-width: 620px){ .prod-logo { height: 44px; } }

/* ============================================================
   HERO
   ============================================================ */
.hero { min-height: 100svh; display: grid; grid-template-columns: 1.15fr 0.85fr; align-items: center;
  gap: 40px; padding: 120px var(--gutter) 80px; max-width: var(--maxw); margin: 0 auto; }
.hero-copy { max-width: 640px; }
.hero h1 { font-size: clamp(32px, 4.6vw, 58px); line-height: 1.0; margin-bottom: 22px; letter-spacing: -0.01em; }
.hero h1 .em { color: var(--accent); }
.hero .dek { font-size: clamp(16px, 1.6vw, 19px); color: var(--dim); max-width: 540px; margin-bottom: 32px; }
.hero-meta { display: flex; flex-wrap: wrap; gap: 8px 28px; font-family: var(--font-mono); font-size: 12px; color: var(--faint); letter-spacing: 0.02em; }
.hero-meta b { color: var(--dim); font-weight: 500; }
.hero-visual { position: relative; display: flex; align-items: center; justify-content: center; min-height: 420px; }
.globe-stage { position: relative; width: 100%; max-width: 460px; aspect-ratio: 1; }
.globe-stage canvas { position: absolute; inset: 0; width: 100%; height: 100%; }
.scroll-cue { position: absolute; bottom: 30px; left: var(--gutter); font-family: var(--font-mono); font-size: 11px;
  letter-spacing: 0.2em; color: var(--faint); text-transform: uppercase; display: flex; align-items: center; gap: 12px; }
.scroll-cue .line { width: 1px; height: 40px; background: linear-gradient(var(--accent), transparent); animation: cue 2s ease-in-out infinite; transform-origin: top; }
@keyframes cue { 0%,100%{ transform: scaleY(0.4); opacity:.4;} 50%{transform: scaleY(1); opacity:1;} }
@media (max-height: 820px) { .scroll-cue { display: none; } }
@media (max-width: 900px) { .hero { grid-template-columns: 1fr; min-height: auto; padding-top: 116px; gap: 24px; }
  .hero-visual { order: -1; min-height: 280px; } .globe-stage { max-width: 280px; } .scroll-cue { display: none; } }

/* ============================================================
   SECTION SCAFFOLD
   ============================================================ */
.section { padding: clamp(80px, 11vh, 150px) 0; }
.section-head { margin-bottom: 56px; }
.section-head h2 { font-size: clamp(28px, 4.2vw, 50px); max-width: 18ch; margin-top: 14px; }
.section-head .lead { font-size: clamp(16px, 1.6vw, 19px); color: var(--dim); max-width: 58ch; margin-top: 24px; text-transform: none; }
.divider { height: 1px; background: var(--line); border: 0; margin: 0; }
.prose p { color: var(--dim); }
.prose p strong { color: var(--text); }

/* standards / bullet list */
.standards { list-style: none; padding: 0; margin: 36px 0 0; display: grid; gap: 0; }
.standards li { display: grid; grid-template-columns: auto 1fr; gap: 20px; padding: 22px 0; border-top: 1px solid var(--line); color: var(--dim); }
.standards li:last-child { border-bottom: 1px solid var(--line); }
.standards .tick { font-family: var(--font-mono); font-size: 12px; color: var(--accent); letter-spacing: 0.06em; padding-top: 3px; white-space: nowrap; font-weight: 500; }

/* pull stat */
.pullstat { margin: 0; padding: clamp(40px,6vw,72px) 0; text-align: center; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.pullstat .num { font-family: var(--font-display); font-weight: 800; font-size: clamp(64px, 14vw, 180px); line-height: 0.85; letter-spacing: -0.03em;
  background: linear-gradient(180deg, var(--text), var(--accent)); -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent; }
.pullstat .cap { font-size: clamp(15px,1.9vw,20px); color: var(--dim); max-width: 44ch; margin: 24px auto 0; }
.pullstat .src { font-family: var(--font-mono); font-size: 11px; color: var(--faint); margin-top: 16px; letter-spacing: 0.04em; }

/* stat strip */
.statstrip { display: grid; grid-template-columns: repeat(3, 1fr); border: 1px solid var(--line); border-radius: 4px; overflow: hidden; margin-top: 8px; }
.statstrip .cell { padding: 32px; border-right: 1px solid var(--line); }
.statstrip .cell:last-child { border-right: 0; }
.statstrip .big { font-family: var(--font-display); font-size: clamp(28px,3.6vw,42px); font-weight: 700; letter-spacing: -0.02em; line-height: 1; }
.statstrip .big .arrow { color: var(--accent); }
.statstrip .lbl { font-family: var(--font-mono); font-size: 11.5px; color: var(--faint); margin-top: 14px; letter-spacing: 0.02em; line-height: 1.5; text-transform: none; }
@media (max-width: 760px){ .statstrip { grid-template-columns: 1fr; } .statstrip .cell { border-right: 0; border-bottom: 1px solid var(--line);} .statstrip .cell:last-child{border-bottom:0;} }

/* ============================================================
   TIMELINE (Q-Day)
   ============================================================ */
.timeline { position: relative; margin-top: 20px; display: grid; grid-template-columns: repeat(4, 1fr); gap: 0; }
.timeline::before { content: ""; position: absolute; top: 13px; left: 0; right: 0; height: 2px;
  background: linear-gradient(90deg, var(--accent), var(--gold)); opacity: 0.4; }
.tl-step { position: relative; padding: 0 22px 0 0; }
.tl-step .dot { width: 28px; height: 28px; border-radius: 50%; background: var(--bg); border: 2px solid var(--accent);
  display: grid; place-items: center; position: relative; z-index: 1; margin-bottom: 22px; }
.tl-step .dot::after { content: ""; width: 8px; height: 8px; border-radius: 50%; background: var(--accent); box-shadow: 0 0 12px var(--glow); }
.tl-step:last-child .dot { border-color: var(--gold); }
.tl-step:last-child .dot::after { background: var(--gold); box-shadow: 0 0 12px rgba(215,157,75,.6); }
.tl-step .yr { font-family: var(--font-mono); font-size: 13px; font-weight: 500; color: var(--accent); letter-spacing: 0.06em; }
.tl-step:last-child .yr { color: var(--gold); }
.tl-step .ev { font-family: var(--font-display); font-weight: 600; font-size: 17px; margin-top: 8px; line-height: 1.25; text-transform: none; }
.tl-step .ev small { display: block; font-family: var(--font-body); font-weight: 400; font-size: 14px; color: var(--dim); margin-top: 6px; }
@media (max-width: 820px){ .timeline { grid-template-columns: 1fr; gap: 0; }
  .timeline::before { top: 0; bottom: 0; left: 13px; right: auto; width: 2px; height: auto; background: linear-gradient(180deg, var(--accent), var(--gold)); }
  .tl-step { padding: 0 0 34px 48px; } .tl-step .dot { position: absolute; left: 0; top: 0; margin: 0; } }

/* ============================================================
   COMPARE (Clássica vs PQC)
   ============================================================ */
.compare { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; margin-top: 8px; }
.cmp { border: 1px solid var(--line); border-radius: 6px; padding: 36px 34px; background: var(--bg-1); position: relative; }
.cmp.pqc { border-color: color-mix(in srgb, var(--accent) 50%, var(--line)); background: linear-gradient(180deg, color-mix(in srgb, var(--accent) 8%, var(--bg-1)), var(--bg-1)); }
.cmp .cmp-tag { font-family: var(--font-mono); font-size: 11.5px; letter-spacing: 0.14em; text-transform: uppercase; color: var(--faint); }
.cmp.pqc .cmp-tag { color: var(--accent); }
.cmp h3 { font-size: 24px; margin: 12px 0 22px; text-transform: none; }
.cmp ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 16px; }
.cmp li { display: grid; grid-template-columns: auto 1fr; gap: 14px; font-size: 15.5px; color: var(--dim); line-height: 1.5; }
.cmp li .mk { color: var(--accent); font-family: var(--font-mono); font-size: 13px; line-height: 1.5; }
.cmp.classic li .mk { color: var(--gold); }
@media (max-width: 760px){ .compare { grid-template-columns: 1fr; } }

/* ============================================================
   ALGORITHM / APPROACH CARDS
   ============================================================ */
.cardgrid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1px; background: var(--line); border: 1px solid var(--line); border-radius: 6px; overflow: hidden; }
.cardgrid.two { grid-template-columns: repeat(2, 1fr); }
.gcard { background: var(--bg); padding: 36px 30px; display: flex; flex-direction: column; gap: 14px; transition: background .3s; min-height: 280px; }
.gcard:hover { background: var(--bg-1); }
.gcard .code { font-family: var(--font-mono); font-size: 12px; color: var(--accent); letter-spacing: 0.06em; font-weight: 500; }
.gcard h3 { font-size: 20px; text-transform: none; line-height: 1.15; }
.gcard h3 .sub { display: block; font-size: 13px; font-weight: 500; color: var(--faint); font-family: var(--font-mono); margin-top: 5px; letter-spacing: 0.02em; }
.gcard p { color: var(--dim); font-size: 15px; margin: 0; }
.gcard .ico { width: 38px; height: 38px; color: var(--accent); }
.gcard .ico svg { width: 100%; height: 100%; }
.gcard .rno { font-family: var(--font-mono); font-size: 12px; color: var(--emph); letter-spacing: 0.08em; font-weight: 500; }
@media (max-width: 880px){ .cardgrid, .cardgrid.two { grid-template-columns: 1fr; } .gcard { min-height: auto; } }

/* FIPS chips */
.fips-row { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 40px; align-items: center; }
.fips-row .lbl { font-family: var(--font-mono); font-size: 11px; color: var(--faint); letter-spacing: 0.1em; text-transform: uppercase; width: 100%; margin-bottom: 2px; }
.fips-chip { font-family: var(--font-mono); font-size: 13px; color: var(--text); border: 1px solid var(--line-2); border-radius: 2px; padding: 10px 16px; }
.fips-chip b { color: var(--accent); font-weight: 600; }

/* ============================================================
   EXHIBITS / CHARTS (reused)
   ============================================================ */
.exhibit { margin-top: 56px; border: 1px solid var(--line); border-radius: 6px; background: linear-gradient(180deg, var(--bg-1), var(--bg)); overflow: hidden; }
.exhibit-hd { display: flex; align-items: baseline; justify-content: space-between; gap: 16px; padding: 22px 28px; border-bottom: 1px solid var(--line); flex-wrap: wrap; }
.exhibit-hd .ex-no { font-family: var(--font-mono); font-size: 12px; color: var(--accent); letter-spacing: 0.16em; text-transform: uppercase; font-weight: 500; }
.exhibit-hd h3 { font-size: clamp(18px, 2.1vw, 25px); margin-top: 8px; text-transform: none; }
.exhibit-hd .unit { font-family: var(--font-mono); font-size: 11.5px; color: var(--faint); letter-spacing: 0.03em; }
.exhibit-body { padding: 32px 28px 28px; }
.exhibit-note { padding: 0 28px 26px; font-family: var(--font-mono); font-size: 11.5px; color: var(--faint); letter-spacing: 0.01em; line-height: 1.6; }

.rangechart { display: grid; gap: 26px; }
.rangerow { display: grid; grid-template-columns: 230px 1fr; gap: 24px; align-items: center; }
.rangerow .rname { font-size: 16px; color: var(--text); }
.rangerow .rname small { display: block; font-family: var(--font-mono); font-size: 11px; color: var(--faint); margin-top: 4px; }
.rangetrack { position: relative; height: 40px; border-radius: 3px; background: var(--bg-2); overflow: visible; }
.rangetrack .grid-x { position: absolute; inset: 0; overflow: hidden; border-radius: 3px; }
.rangetrack .gl { position: absolute; top: 0; bottom: 0; width: 1px; background: var(--line); }
.rangefill { position: absolute; top: 6px; bottom: 6px; border-radius: 2px;
  background: linear-gradient(90deg, color-mix(in srgb, var(--accent) 30%, transparent), var(--accent));
  box-shadow: 0 0 20px color-mix(in srgb, var(--accent) 40%, transparent);
  transform: scaleX(0); transform-origin: left; transition: transform 1s cubic-bezier(.2,.7,.2,1); }
.in-view .rangefill { transform: scaleX(1); }
.rangefill.past { background: linear-gradient(90deg, color-mix(in srgb, var(--dim) 25%, transparent), color-mix(in srgb, var(--dim) 60%, transparent)); box-shadow: none; }
.rangefill.gold { background: linear-gradient(90deg, color-mix(in srgb, var(--gold) 30%, transparent), var(--gold)); box-shadow: 0 0 20px color-mix(in srgb, var(--gold) 40%, transparent); }
.rval { position: absolute; top: 50%; transform: translate(10px, -50%); font-family: var(--font-mono); font-size: 12.5px; color: var(--text); white-space: nowrap; opacity: 0; transition: opacity .5s ease .5s; }
.in-view .rval { opacity: 1; }
.rangeaxis { display: flex; justify-content: space-between; font-family: var(--font-mono); font-size: 11px; color: var(--faint); margin-top: 8px; padding-left: 254px; }
@media (max-width:680px){ .rangerow{ grid-template-columns: 1fr; gap:10px;} .rangeaxis{ padding-left:0; } }

.emerging-chips { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 30px; padding-top: 26px; border-top: 1px solid var(--line); }
.emerging-chips .lbl { width: 100%; font-family: var(--font-mono); font-size: 11px; color: var(--faint); letter-spacing: 0.1em; text-transform: uppercase; margin-bottom: 4px; }
.emerging-chips .chip { font-family: var(--font-mono); font-size: 12.5px; color: var(--dim); border: 1px dashed var(--line-2); border-radius: 2px; padding: 9px 14px; }

.donut-center { position: absolute; inset: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; pointer-events: none; }
.donut-center .dc-num { font-family: var(--font-display); font-size: 42px; font-weight: 700; color: var(--text); letter-spacing: -0.02em; }
.donut-center .dc-sub { font-family: var(--font-mono); font-size: 10.5px; letter-spacing: 0.14em; color: var(--faint); margin-top: 2px; }
#ex2-donut { position: relative; width: 220px; height: 220px; }
.innov { display: grid; grid-template-columns: 280px 1fr; gap: 40px; align-items: center; }
.donut-wrap { display: flex; flex-direction: column; align-items: center; gap: 16px; }
.donut-cap { font-family: var(--font-mono); font-size: 11.5px; color: var(--faint); text-align: center; max-width: 24ch; }
.innov-side { display: grid; gap: 18px; }
.innov-card { border: 1px solid var(--line); border-radius: 5px; padding: 22px 24px; background: var(--bg-1); display: grid; grid-template-columns: auto 1fr; gap: 18px; align-items: center; }
.innov-card .flag { font-family: var(--font-mono); font-size: 12px; letter-spacing: 0.1em; color: var(--accent); border: 1px solid var(--line-2); border-radius: 2px; padding: 8px 12px; white-space: nowrap; }
.innov-card .t { font-size: 16px; color: var(--text); }
.innov-card .t small { display: block; color: var(--dim); font-size: 14px; margin-top: 3px; }
.seglegend { display: flex; flex-wrap: wrap; gap: 8px 22px; margin-top: 26px; padding-top: 22px; border-top: 1px solid var(--line); }
.seglegend .it { display: flex; align-items: center; gap: 9px; font-family: var(--font-mono); font-size: 12px; color: var(--dim); }
.seglegend .sw { width: 12px; height: 12px; border-radius: 2px; }
@media (max-width:760px){ .innov{ grid-template-columns: 1fr; } }

/* ============================================================
   RISK / SECTOR CARDS
   ============================================================ */
.riskgrid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1px; background: var(--line); border: 1px solid var(--line); border-radius: 6px; overflow: hidden; }
.riskcard { background: var(--bg); padding: 38px 32px; display: flex; flex-direction: column; gap: 16px; transition: background .3s; min-height: 320px; }
.riskcard:hover { background: var(--bg-1); }
.riskcard .rno { font-family: var(--font-mono); font-size: 13px; color: var(--emph); letter-spacing: 0.08em; font-weight: 500; }
.riskcard h3 { font-size: 22px; line-height: 1.12; text-transform: none; }
.riskcard p { color: var(--dim); font-size: 15.5px; margin: 0; }
.riskcard .ico { width: 40px; height: 40px; color: var(--accent); }
.riskcard .ico svg { width: 100%; height: 100%; }
@media (max-width:880px){ .riskgrid{ grid-template-columns: 1fr; } .riskcard{ min-height:auto; } }

/* ============================================================
   INDUSTRY / APPLICATION TABS
   ============================================================ */
.industry { display: grid; grid-template-columns: 300px 1fr; gap: 0; border: 1px solid var(--line); border-radius: 6px; overflow: hidden; }
.ind-tabs { display: flex; flex-direction: column; border-right: 1px solid var(--line); background: var(--bg-1); }
.ind-tab { text-align: left; appearance: none; background: transparent; border: 0; border-bottom: 1px solid var(--line); color: var(--dim);
  font-family: var(--font-mono); font-size: 13px; letter-spacing: 0.02em; padding: 22px 24px; cursor: pointer; transition: all .2s; position: relative; }
.ind-tab:last-child { border-bottom: 0; }
.ind-tab::before { content: ""; position: absolute; left: 0; top: 0; bottom: 0; width: 2px; background: var(--accent); transform: scaleY(0); transition: transform .2s; }
.ind-tab:hover { color: var(--text); }
.ind-tab.active { color: var(--text); background: var(--bg-2); }
.ind-tab.active::before { transform: scaleY(1); }
.ind-tab small { display: block; color: var(--faint); font-size: 11px; margin-top: 4px; }
.ind-panel { padding: 44px; display: none; }
.ind-panel.active { display: block; animation: fade .4s ease; }
@keyframes fade { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }
.ind-panel .ip-risk { font-family: var(--font-mono); font-size: 12px; color: var(--emph); letter-spacing: 0.08em; text-transform: uppercase; margin-bottom: 16px; }
.ind-panel h3 { font-size: 26px; margin-bottom: 16px; text-transform: none; }
.ind-panel p { color: var(--dim); }
.ind-panel .ip-stat { margin-top: 22px; padding-top: 22px; border-top: 1px solid var(--line); display: flex; align-items: baseline; gap: 16px; flex-wrap: wrap; }
.ind-panel .ip-stat .v { font-family: var(--font-display); font-weight: 700; font-size: 30px; color: var(--accent); letter-spacing: -0.02em; }
.ind-panel .ip-stat .d { font-size: 14px; color: var(--faint); max-width: 38ch; }
@media (max-width:760px){ .industry{ grid-template-columns: 1fr; } .ind-tabs{ flex-direction: row; overflow-x:auto; border-right:0; border-bottom:1px solid var(--line);} .ind-tab{ border-bottom:0; border-right:1px solid var(--line); white-space:nowrap;} .ind-panel{ padding: 30px 24px;} }

/* ============================================================
   MYTHS (Equívocos)
   ============================================================ */
.myths { display: grid; gap: 16px; margin-top: 8px; }
.myth { border: 1px solid var(--line); border-radius: 6px; padding: 28px 32px; background: var(--bg-1); display: grid; grid-template-columns: auto 1fr; gap: 24px; }
.myth .mx { font-family: var(--font-display); font-weight: 800; font-size: 22px; color: var(--emph); line-height: 1; }
.myth .mclaim { font-family: var(--font-display); font-weight: 600; font-size: 19px; color: var(--text); margin-bottom: 12px; text-transform: none; }
.myth .mreal { color: var(--dim); font-size: 15.5px; margin: 0; }
.myth .mreal b { color: var(--accent); font-weight: 600; }
@media (max-width:680px){ .myth { grid-template-columns: 1fr; gap: 10px; } }

/* ============================================================
   MOVES / ROADMAP
   ============================================================ */
.moves { display: grid; gap: 1px; background: var(--line); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.move { background: var(--bg); padding: clamp(36px,5vw,56px) 0; }
.move-inner { display: grid; grid-template-columns: 90px 1fr 1fr; gap: 40px; align-items: start; }
.move .mno { font-family: var(--font-display); font-size: 54px; font-weight: 800; line-height: 1; color: transparent; -webkit-text-stroke: 1.4px var(--accent); letter-spacing: -0.02em; }
.move h3 { font-size: clamp(22px,2.8vw,30px); margin-bottom: 18px; text-transform: none; }
.move .mtag { font-family: var(--font-mono); font-size: 12px; color: var(--accent); letter-spacing: 0.08em; text-transform: uppercase; margin-bottom: 16px; display:block; font-weight: 500; }
.move .mbody p { color: var(--dim); font-size: 16px; }
.move .factors { list-style: none; padding: 0; margin: 22px 0 0; display: grid; gap: 10px; }
.move .factors li { display: flex; gap: 12px; align-items: baseline; font-size: 15px; color: var(--dim); }
.move .factors li .n { font-family: var(--font-mono); font-size: 12px; color: var(--accent); }
.example { margin-top: 4px; border-left: 2px solid var(--accent); background: var(--bg-1); padding: 22px 24px; border-radius: 0 5px 5px 0; }
.example.gold { border-left-color: var(--gold); }
.example .el { font-family: var(--font-mono); font-size: 11px; color: var(--accent); letter-spacing: 0.1em; text-transform: uppercase; margin-bottom: 12px; }
.example.gold .el { color: var(--gold); }
.example p { font-size: 15px; color: var(--dim); margin: 0; }
@media (max-width:880px){ .move-inner{ grid-template-columns: 1fr; gap: 20px; } .move .mno{ font-size: 42px; } }

/* ============================================================
   CONCLUSIONS
   ============================================================ */
.concl { display: grid; grid-template-columns: repeat(2, 1fr); gap: 1px; background: var(--line); border: 1px solid var(--line); border-radius: 6px; overflow: hidden; }
.cncard { background: var(--bg); padding: 38px 34px; }
.cncard .cn-no { font-family: var(--font-mono); font-size: 13px; color: var(--accent); letter-spacing: 0.06em; font-weight: 500; }
.cncard h3 { font-size: 21px; margin: 14px 0 14px; text-transform: none; line-height: 1.2; }
.cncard p { color: var(--dim); font-size: 15px; margin: 0; }
@media (max-width:760px){ .concl { grid-template-columns: 1fr; } }

/* ============================================================
   CLOSING + FOOTER
   ============================================================ */
.closing { padding: clamp(90px,13vh,170px) 0; text-align: center; }
.closing h2 { font-size: clamp(30px,4.6vw,58px); max-width: 20ch; margin: 0 auto 28px; }
.closing .lead { font-size: clamp(16px,1.9vw,20px); color: var(--dim); max-width: 58ch; margin: 0 auto 40px; text-transform: none; }
.cta-row { display: flex; gap: 16px; justify-content: center; flex-wrap: wrap; }
.btn { font-family: var(--font-mono); font-size: 13px; letter-spacing: 0.05em; text-transform: uppercase; padding: 15px 28px; border-radius: 2px; transition: all .2s; cursor: pointer; border: 1px solid var(--line-2); white-space: nowrap; }
.btn-primary { background: var(--accent); color: var(--accent-ink); border-color: var(--accent); }
.btn-primary:hover { box-shadow: 0 0 32px var(--glow); transform: translateY(-2px); }
.btn-ghost { color: var(--text); }
.btn-ghost:hover { border-color: var(--accent); color: var(--accent); }

.footer { border-top: 1px solid var(--line); padding: 60px 0 50px; }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr; gap: 40px; align-items: start; }
.footer .flogo { height: 40px; margin-bottom: 20px; }
.footer .authors { font-size: 14px; color: var(--dim); line-height: 1.7; text-transform: none; }
.footer .authors b { color: var(--text); }
.footer .credit { font-family: var(--font-mono); font-size: 11.5px; color: var(--faint); line-height: 1.8; }
.footer .copyright { font-family: var(--font-mono); font-size: 11px; color: var(--faint); margin-top: 40px; padding-top: 24px; border-top: 1px solid var(--line); letter-spacing: 0.02em; }
@media (max-width:760px){ .footer-grid{ grid-template-columns: 1fr; } }

.footnotes { list-style: none; counter-reset: fn; padding: 0; margin: 50px 0 0; }
.footnotes li { font-family: var(--font-mono); font-size: 11.5px; color: var(--faint); padding: 8px 0; border-top: 1px solid var(--line); line-height: 1.6; counter-increment: fn; display: grid; grid-template-columns: auto 1fr; gap: 12px; }
.footnotes li::before { content: counter(fn); color: var(--accent); }

/* ============================================================
   PRODUTO — MARTECIA CRYPTUS AEGIS
   ============================================================ */
.part-banner { border-top: 1px solid var(--line); border-bottom: 1px solid var(--line);
  background: linear-gradient(180deg, color-mix(in srgb, var(--accent) 7%, var(--bg)), var(--bg)); }
.part-banner .wrap { padding-top: clamp(70px,10vh,120px); padding-bottom: clamp(70px,10vh,120px); }
.part-banner .plabel { font-family: var(--font-mono); font-size: 12px; letter-spacing: 0.2em; text-transform: uppercase; color: var(--accent); margin-bottom: 22px; }
.part-banner h2 { font-size: clamp(30px,4.6vw,56px); max-width: 20ch; }
.part-banner .pdek { font-size: clamp(16px,1.7vw,20px); color: var(--dim); max-width: 60ch; margin-top: 24px; text-transform: none; }
.part-banner .ptm { font-family: var(--font-mono); font-size: 12px; color: var(--faint); margin-top: 26px; letter-spacing: 0.04em; }

/* pillars */
.pillars { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1px; background: var(--line); border: 1px solid var(--line); border-radius: 6px; overflow: hidden; }
.pillar { background: var(--bg); padding: 30px 26px; display: flex; flex-direction: column; gap: 12px; }
.pillar .ico { width: 34px; height: 34px; color: var(--accent); }
.pillar .ico svg { width: 100%; height: 100%; }
.pillar h3 { font-size: 17px; text-transform: none; line-height: 1.2; }
.pillar p { font-size: 14px; color: var(--dim); margin: 0; }
@media (max-width: 880px){ .pillars { grid-template-columns: 1fr 1fr; } }
@media (max-width: 520px){ .pillars { grid-template-columns: 1fr; } }

/* stepper (Guided Journey) */
.stepper { display: grid; grid-template-columns: repeat(5, 1fr); gap: 14px; margin-top: 8px; }
.step { border: 1px solid var(--line); border-radius: 6px; padding: 26px 22px; background: var(--bg-1); position: relative; }
.step .sn { font-family: var(--font-mono); font-size: 12px; color: var(--accent); letter-spacing: 0.06em; font-weight: 500; }
.step h3 { font-size: 18px; margin: 12px 0 8px; text-transform: none; }
.step p { font-size: 13.5px; color: var(--dim); margin: 0; }
.step::after { content: "›"; position: absolute; right: -11px; top: 50%; transform: translateY(-50%); color: var(--accent); font-size: 18px; z-index: 2; }
.step:last-child::after { display: none; }
.loop-note { margin-top: 22px; font-family: var(--font-mono); font-size: 12px; color: var(--faint); letter-spacing: 0.03em; display: flex; align-items: center; gap: 10px; }
.loop-note::before { content: "↻"; color: var(--accent); font-size: 16px; }
@media (max-width: 900px){ .stepper { grid-template-columns: 1fr 1fr; } .step::after { display: none; } }
@media (max-width: 520px){ .stepper { grid-template-columns: 1fr; } }

/* engine feature (MRQ + AQRC) */
.feature { display: grid; grid-template-columns: 1fr 1fr; gap: 48px; align-items: center; }
.feature .ftxt h3 { font-size: clamp(22px,2.6vw,30px); text-transform: none; margin-bottom: 18px; }
.feature .ftxt p { color: var(--dim); font-size: 16px; }
.feature .formula { font-family: var(--font-mono); font-size: 13px; color: var(--accent); border: 1px solid var(--line-2); border-radius: 4px; padding: 14px 18px; margin: 22px 0; letter-spacing: 0.02em; display: inline-block; }
.feature .flist { list-style: none; padding: 0; margin: 20px 0 0; display: grid; gap: 12px; }
.feature .flist li { display: grid; grid-template-columns: auto 1fr; gap: 14px; font-size: 15px; color: var(--dim); }
.feature .flist li b { color: var(--text); font-weight: 600; }
.feature .flist .mk { color: var(--accent); font-family: var(--font-mono); }
@media (max-width: 880px){ .feature { grid-template-columns: 1fr; gap: 32px; } }

/* AQRC example panel */
.aqrc { border: 1px solid var(--line-2); border-radius: 8px; background: linear-gradient(180deg, var(--bg-1), var(--bg)); padding: 34px 32px; }
.aqrc .ah { font-family: var(--font-mono); font-size: 11.5px; letter-spacing: 0.12em; text-transform: uppercase; color: var(--faint); margin-bottom: 24px; }
.aqrc .arow { display: grid; gap: 12px; margin-bottom: 26px; }
.aqrc .scn { display: grid; gap: 8px; }
.aqrc .scn .sl { display: flex; justify-content: space-between; align-items: baseline; font-size: 14px; color: var(--dim); }
.aqrc .scn .sl b { font-family: var(--font-display); font-weight: 700; font-size: 20px; letter-spacing: -0.01em; }
.aqrc .bar { height: 12px; border-radius: 3px; background: var(--bg-3); overflow: hidden; }
.aqrc .bar i { display: block; height: 100%; border-radius: 3px; transform: scaleX(0); transform-origin: left; transition: transform 1s cubic-bezier(.2,.7,.2,1); }
.in-view .aqrc .bar i { transform: scaleX(1); }
.aqrc .scn.bad .sl b { color: var(--emph); } .aqrc .scn.bad .bar i { background: var(--emph); }
.aqrc .scn.good .sl b { color: var(--accent); } .aqrc .scn.good .bar i { background: var(--accent); box-shadow: 0 0 16px var(--glow); }
.aqrc .kpis { display: grid; grid-template-columns: repeat(3,1fr); gap: 18px; padding-top: 26px; border-top: 1px solid var(--line); }
.aqrc .kpi .kv { font-family: var(--font-display); font-weight: 700; font-size: 26px; color: var(--text); letter-spacing: -0.02em; }
.aqrc .kpi .kv.hot { color: var(--accent); }
.aqrc .kpi .kl { font-family: var(--font-mono); font-size: 10.5px; color: var(--faint); letter-spacing: 0.04em; margin-top: 6px; text-transform: uppercase; }

/* ROI scenario cards */
.roi { display: grid; grid-template-columns: repeat(3,1fr); gap: 1px; background: var(--line); border: 1px solid var(--line); border-radius: 6px; overflow: hidden; }
.roicard { background: var(--bg); padding: 34px 30px; }
.roicard.mid { background: var(--bg-1); }
.roicard .rt { font-family: var(--font-mono); font-size: 11.5px; letter-spacing: 0.1em; text-transform: uppercase; color: var(--faint); }
.roicard .rv { font-family: var(--font-display); font-weight: 800; font-size: clamp(40px,5vw,58px); line-height: 1; letter-spacing: -0.03em; color: var(--accent); margin: 14px 0 4px; }
.roicard.mid .rv { color: var(--accent); } .roicard .rv .pc { font-size: 0.5em; }
.roicard .rmeta { font-family: var(--font-mono); font-size: 12.5px; color: var(--dim); line-height: 1.8; margin-top: 10px; }
.roicard .rmeta b { color: var(--text); font-weight: 500; }
@media (max-width: 760px){ .roi { grid-template-columns: 1fr; } }

/* comparison table */
.cmptable { border: 1px solid var(--line); border-radius: 6px; overflow: hidden; margin-top: 8px; }
.cmptable .ct-row { display: grid; grid-template-columns: 1.2fr 1fr 1fr; border-top: 1px solid var(--line); }
.cmptable .ct-row:first-child { border-top: 0; }
.cmptable .ct-row > div { padding: 16px 22px; font-size: 14.5px; color: var(--dim); border-left: 1px solid var(--line); }
.cmptable .ct-row > div:first-child { border-left: 0; }
.cmptable .ct-head { background: var(--bg-2); }
.cmptable .ct-head > div { font-family: var(--font-mono); font-size: 12px; letter-spacing: 0.04em; text-transform: uppercase; color: var(--faint); }
.cmptable .ct-head .me { color: var(--accent); }
.cmptable .ct-row .dim-label { font-family: var(--font-mono); font-size: 12.5px; color: var(--text); }
.cmptable .ct-row .me-cell { color: var(--text); background: color-mix(in srgb, var(--accent) 6%, transparent); }
.cmptable .ct-row .me-cell b { color: var(--accent); font-weight: 600; }
@media (max-width: 760px){ .cmptable .ct-row { grid-template-columns: 1fr; } .cmptable .ct-row > div { border-left: 0; border-top: 1px solid var(--line); } .cmptable .ct-row > div:first-child { border-top: 0; } .cmptable .ct-head { display: none; } }

/* phase strip */
.phases { display: grid; grid-template-columns: repeat(5,1fr); gap: 14px; margin-top: 8px; }
.phase { border: 1px solid var(--line); border-radius: 6px; padding: 24px 20px; background: var(--bg-1); border-top: 2px solid var(--accent); }
.phase.done { border-top-color: var(--accent); } .phase.curr { border-top-color: var(--gold); } .phase.plan { border-top-color: var(--line-2); }
.phase .pst { font-family: var(--font-mono); font-size: 10.5px; letter-spacing: 0.08em; text-transform: uppercase; }
.phase.done .pst { color: var(--accent); } .phase.curr .pst { color: var(--gold); } .phase.plan .pst { color: var(--faint); }
.phase .pn { font-family: var(--font-display); font-weight: 700; font-size: 16px; margin: 10px 0 4px; text-transform: none; }
.phase .pd { font-family: var(--font-mono); font-size: 11px; color: var(--faint); }
.phase ul { list-style: none; padding: 0; margin: 14px 0 0; display: grid; gap: 7px; }
.phase li { font-size: 13px; color: var(--dim); line-height: 1.4; }
@media (max-width: 940px){ .phases { grid-template-columns: 1fr 1fr; } }
@media (max-width: 520px){ .phases { grid-template-columns: 1fr; } }

/* ---- Closed loop (Como funciona) ---- */
.cycle-loop { display: flex; align-items: center; gap: 16px; margin-top: 20px; padding: 16px 22px;
  border: 1px dashed var(--line-2); border-radius: 999px; font-family: var(--font-mono); font-size: 12px;
  color: var(--dim); letter-spacing: 0.02em; }
.cycle-loop .ic { color: var(--accent); font-size: 18px; line-height: 1; }
.cycle-loop .ln { flex: 1; height: 1px; min-width: 30px;
  background: repeating-linear-gradient(90deg, var(--line-2), var(--line-2) 6px, transparent 6px, transparent 12px); }
.cycle-loop b { color: var(--accent); font-weight: 500; }
.stepper .step:last-child::after { content: "\21BA"; color: var(--accent); }

/* ---- Gantt roadmap ---- */
.gantt { border: 1px solid var(--line); border-radius: 8px; overflow: hidden; background: var(--bg-1); margin-top: 8px; }
.gantt-head { display: grid; grid-template-columns: 210px 1fr; border-bottom: 1px solid var(--line); }
.gantt-head .gh-label { padding: 14px 20px; font-family: var(--font-mono); font-size: 11px; letter-spacing: 0.1em; text-transform: uppercase; color: var(--faint); align-self: center; }
.gantt-years { display: grid; grid-template-columns: repeat(4, 1fr); }
.gantt-years span { padding: 14px 0; text-align: center; font-family: var(--font-mono); font-size: 12px; color: var(--dim); border-left: 1px solid var(--line); }
.gantt-row { display: grid; grid-template-columns: 210px 1fr; border-top: 1px solid var(--line); }
.gantt-row .gr-label { padding: 16px 20px; font-size: 14.5px; color: var(--text); align-self: center; }
.gantt-row .gr-label small { display: block; font-family: var(--font-mono); font-size: 10.5px; color: var(--faint); margin-top: 4px; letter-spacing: 0.02em; }
.gantt-track { position: relative; min-height: 62px; border-left: 1px solid var(--line); }
.gantt-track .gl { position: absolute; top: 0; bottom: 0; width: 1px; background: var(--line); }
.bar { position: absolute; top: 50%; transform: translateY(-50%); height: 24px; border-radius: 5px;
  display: flex; align-items: center; padding: 0 10px; font-family: var(--font-mono); font-size: 10.5px;
  white-space: nowrap; overflow: hidden; box-sizing: border-box; }
.bar.done { background: linear-gradient(90deg, color-mix(in srgb, var(--accent) 35%, transparent), var(--accent)); color: var(--accent-ink); }
.bar.curr { background: color-mix(in srgb, var(--accent) 20%, transparent); border: 1px solid var(--accent); color: var(--text); }
.bar.plan { background: repeating-linear-gradient(45deg, var(--line-2), var(--line-2) 6px, transparent 6px, transparent 12px); border: 1px solid var(--line); color: var(--dim); }
.mstone { position: absolute; top: 50%; width: 13px; height: 13px; background: var(--gold);
  transform: translate(-50%, -50%) rotate(45deg); box-shadow: 0 0 10px rgba(215,157,75,.6); }
.mstone-lbl { position: absolute; transform: translateX(-50%); font-family: var(--font-mono); font-size: 10px;
  color: var(--gold); white-space: nowrap; top: calc(50% + 14px); }
.gantt-legend { display: flex; flex-wrap: wrap; gap: 8px 22px; margin-top: 18px; }
.gantt-legend .it { display: flex; align-items: center; gap: 9px; font-family: var(--font-mono); font-size: 11.5px; color: var(--dim); }
.gantt-legend .sw { width: 22px; height: 12px; border-radius: 3px; }
.gantt-legend .sw.dia { width: 12px; height: 12px; border-radius: 0; transform: rotate(45deg); background: var(--gold); }
@media (max-width: 720px){
  .gantt-head, .gantt-row { grid-template-columns: 130px 1fr; }
  .gantt-head .gh-label, .gantt-row .gr-label { padding: 12px 12px; font-size: 12.5px; }
  .bar { font-size: 0; padding: 0; }
}

/* reveal */
.reveal { opacity: 0; transform: translateY(26px); transition: opacity .8s cubic-bezier(.2,.7,.2,1), transform .8s cubic-bezier(.2,.7,.2,1); }
.reveal.in-view { opacity: 1; transform: none; }
.reveal.d1 { transition-delay: .08s; } .reveal.d2 { transition-delay: .16s; } .reveal.d3 { transition-delay: .24s; }
@media (prefers-reduced-motion: reduce) { .reveal { opacity: 1 !important; transform: none !important; } .rangefill { transform: scaleX(1) !important; } }
