/* F5 Education · site institucional
   Preto dominante, azul no detalhe, vidro por cima de um fundo vivo. */

:root {
  --black: #000;
  --bg: #0A0B0D;
  --fg: #F5F7FA;
  --muted: #8D9097;
  --dim: #5C6068;
  --blue: #1F6FE0;
  --blue-deep: #1953C7;
  --blue-hi: #3F9CE5;
  --sky: #51C0FC;
  --ice: #A8DCFF;
  --green: #3DFF6E;

  --glass-bg: rgba(255, 255, 255, .055);
  --glass-bg-hi: rgba(255, 255, 255, .09);
  --glass-line: rgba(255, 255, 255, .12);
  --glass-blur: blur(28px) saturate(170%);

  --r-xl: 34px;
  --r-lg: 26px;
  --r-md: 18px;

  --f: "Inter", -apple-system, BlinkMacSystemFont, "SF Pro Display", system-ui, sans-serif;
  --mono: "JetBrains Mono", ui-monospace, Consolas, monospace;

  --ease: cubic-bezier(.22, 1, .36, 1);
  --spring: cubic-bezier(.34, 1.56, .64, 1);
  color-scheme: dark;
}

* { box-sizing: border-box; }
[hidden] { display: none !important; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--black);
  color: var(--fg);
  font: 400 17px/1.55 var(--f);
  font-optical-sizing: auto;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; background: none; border: 0; cursor: pointer; }
img, svg { display: block; }
::selection { background: var(--blue); color: #fff; }
:focus-visible { outline: 2px solid var(--blue-hi); outline-offset: 3px; border-radius: 10px; }

h1, h2, h3 { margin: 0; letter-spacing: -.035em; line-height: 1.04; font-weight: 750; text-wrap: balance; }
p { margin: 0; }
.dim { color: var(--dim); }
.blue { color: var(--blue-hi); }
.eyebrow {
  font: 500 12px/1 var(--mono);
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--ice);
  opacity: .8;
}
kbd {
  font: 600 .8em var(--mono);
  padding: .15em .5em;
  border-radius: 7px;
  background: rgba(255,255,255,.1);
  border: 1px solid rgba(255,255,255,.18);
  border-bottom-width: 2px;
}

/* ---------- Vidro ---------- */
.glass {
  position: relative;
  background: linear-gradient(160deg, var(--glass-bg-hi), var(--glass-bg) 40%, rgba(255,255,255,.03));
  -webkit-backdrop-filter: var(--glass-blur);
  backdrop-filter: var(--glass-blur);
  border: 1px solid var(--glass-line);
  box-shadow:
    inset 0 1px 0 rgba(255,255,255,.16),
    inset 0 -1px 0 rgba(255,255,255,.03),
    0 20px 60px -20px rgba(0,0,0,.7);
}
/* brilho especular na borda, estilo vidro líquido */
.glass::before {
  content: "";
  position: absolute; inset: -1px;
  border-radius: inherit;
  padding: 1px;
  background: linear-gradient(135deg, rgba(255,255,255,.45), rgba(255,255,255,0) 30%, rgba(255,255,255,0) 70%, rgba(168,220,255,.35));
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  -webkit-mask-composite: xor;
  mask-composite: exclude;
  pointer-events: none;
}

/* ---------- Fundo vivo ---------- */
.aurora { position: fixed; inset: 0; z-index: -1; overflow: hidden; background: radial-gradient(120% 80% at 50% 0%, #070b18 0%, #000 60%); }
.blob { position: absolute; border-radius: 50%; filter: blur(90px); opacity: .55; will-change: transform; }
.b1 { width: 60vmax; height: 60vmax; left: -15vmax; top: -20vmax; background: radial-gradient(circle, #1953C7 0%, transparent 65%); animation: drift1 26s var(--ease) infinite alternate; }
.b2 { width: 45vmax; height: 45vmax; right: -12vmax; top: 30vh; background: radial-gradient(circle, #3F9CE5 0%, transparent 65%); opacity: .35; animation: drift2 32s var(--ease) infinite alternate; }
.b3 { width: 35vmax; height: 35vmax; left: 25vw; bottom: -18vmax; background: radial-gradient(circle, #51C0FC 0%, transparent 60%); opacity: .22; animation: drift3 38s var(--ease) infinite alternate; }
@keyframes drift1 { to { transform: translate(18vw, 22vh) scale(1.15); } }
@keyframes drift2 { to { transform: translate(-22vw, -18vh) scale(.9); } }
@keyframes drift3 { to { transform: translate(-15vw, -30vh) scale(1.2); } }
.grid-bg {
  position: absolute; inset: 0;
  background-image: linear-gradient(rgba(255,255,255,.035) 1px, transparent 1px), linear-gradient(90deg, rgba(255,255,255,.035) 1px, transparent 1px);
  background-size: 64px 64px;
  -webkit-mask: radial-gradient(ellipse 70% 55% at 50% 30%, #000 20%, transparent 75%);
  mask: radial-gradient(ellipse 70% 55% at 50% 30%, #000 20%, transparent 75%);
}
.grain {
  position: absolute; inset: -50%;
  opacity: .06;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

.cursor-glow {
  position: fixed; left: 0; top: 0; z-index: 0;
  width: 520px; height: 520px; margin: -260px 0 0 -260px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(63,156,229,.16), transparent 60%);
  pointer-events: none;
  transform: translate3d(var(--cx, -999px), var(--cy, -999px), 0);
  transition: opacity .4s;
}
@media (hover: none) { .cursor-glow { display: none; } }

/* varredura de "atualizar" */
.refresh-sweep {
  position: fixed; inset: 0; z-index: 90; pointer-events: none;
  background: linear-gradient(180deg, transparent 0%, rgba(63,156,229,.0) 40%, rgba(81,192,252,.35) 49%, rgba(255,255,255,.7) 50%, rgba(81,192,252,.35) 51%, transparent 60%);
  background-size: 100% 300%;
  background-position: 0 -100%;
  opacity: 0;
}
.refresh-sweep.go { animation: sweep .9s var(--ease); }
@keyframes sweep {
  0% { opacity: 1; background-position: 0 100%; }
  100% { opacity: 1; background-position: 0 -50%; }
}

/* ---------- Ilha (nav) ---------- */
.island {
  position: fixed; top: 14px; left: 50%; z-index: 50;
  transform: translateX(-50%);
  display: flex; align-items: center; gap: 22px;
  padding: 8px 8px 8px 18px;
  border-radius: 999px;
  width: min(880px, calc(100% - 24px));
  transition: width .6s var(--ease), padding .6s var(--ease), background .4s;
}
.island.compact { width: min(780px, calc(100% - 24px)); background: rgba(10,12,18,.55); }
.brand { display: flex; align-items: center; gap: 10px; font-weight: 700; letter-spacing: -.02em; white-space: nowrap; }
.brand em { font-style: normal; color: var(--muted); font-weight: 500; }
.brand-mark { width: auto; height: 26px; }
.brand-word { font-size: 12px; font-weight: 600; letter-spacing: .24em; text-transform: uppercase; color: var(--fg); }
.nav-links { display: flex; gap: 4px; margin-left: auto; }
.nav-links a { font-size: 14px; color: var(--muted); padding: 8px 12px; border-radius: 999px; transition: color .2s, background .2s; white-space: nowrap; }
.nav-links a:hover, .nav-links a.on { color: var(--fg); background: rgba(255,255,255,.08); }
.island.compact .nav-links a { padding: 8px 9px; }
.menu-btn { display: none; flex: none; width: 40px; height: 40px; border-radius: 50%; position: relative; }
.menu-btn i { position: absolute; left: 12px; right: 12px; height: 2px; background: var(--fg); border-radius: 2px; transition: transform .35s var(--ease), top .35s var(--ease); }
.menu-btn i:first-child { top: 16px; } .menu-btn i:last-child { top: 22px; }
.menu-btn[aria-expanded="true"] i:first-child { top: 19px; transform: rotate(45deg); }
.menu-btn[aria-expanded="true"] i:last-child { top: 19px; transform: rotate(-45deg); }
.sheet {
  position: fixed; top: 74px; left: 12px; right: 12px; z-index: 49;
  border-radius: var(--r-lg); padding: 10px;
  display: grid; gap: 2px;
  transform-origin: top center;
  animation: sheetIn .45s var(--spring);
}
.sheet a { padding: 14px 16px; border-radius: 14px; font-size: 18px; font-weight: 600; }
.sheet a:not(.btn):hover { background: rgba(255,255,255,.06); }
.sheet .btn { margin-top: 8px; justify-content: center; }
@keyframes sheetIn { from { opacity: 0; transform: scale(.94) translateY(-8px); } }

@media (max-width: 860px) {
  .nav-links { display: none; }
  .island .btn-sm { margin-left: auto; }
  .menu-btn { display: block; }
}

/* ---------- Botões ---------- */
.btn {
  display: inline-flex; align-items: center; gap: 8px;
  font-weight: 600; font-size: 16px;
  padding: 15px 26px; border-radius: 999px;
  transition: transform .4s var(--spring), box-shadow .3s, background .3s;
  white-space: nowrap;
}
.btn:active { transform: scale(.96); }
.btn-sm { padding: 10px 18px; font-size: 14px; }
.btn-blue {
  background: linear-gradient(135deg, var(--sky), var(--blue-hi) 45%, var(--blue-deep));
  color: #fff;
  box-shadow: inset 0 1px 0 rgba(255,255,255,.35), 0 10px 30px -8px rgba(63,156,229,.7);
}
.btn-blue:hover { transform: translateY(-2px); box-shadow: inset 0 1px 0 rgba(255,255,255,.35), 0 16px 40px -8px rgba(63,156,229,.9); }
.btn-glass {
  background: rgba(255,255,255,.07);
  border: 1px solid var(--glass-line);
  -webkit-backdrop-filter: var(--glass-blur); backdrop-filter: var(--glass-blur);
  box-shadow: inset 0 1px 0 rgba(255,255,255,.15);
}
.btn-glass:hover { background: rgba(255,255,255,.12); transform: translateY(-2px); }

/* ---------- Layout ---------- */
main { position: relative; z-index: 1; }
.section { width: min(1120px, calc(100% - 40px)); margin: 0 auto; padding: 140px 0 0; scroll-margin-top: 40px; }
.section-head { display: grid; gap: 18px; margin-bottom: 56px; }
.section-head h2 { font-size: clamp(40px, 6.4vw, 80px); }

/* reveal */
.reveal { opacity: 0; transform: translateY(40px) scale(.98); filter: blur(8px); transition: opacity 1s var(--ease), transform 1s var(--ease), filter 1s var(--ease); }
.reveal.in { opacity: 1; transform: none; filter: none; }

/* ---------- Hero ---------- */
.hero {
  min-height: 100svh;
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  text-align: center;
  padding: 130px 20px 90px;
  gap: 26px;
  position: relative;
}
.hero-title { font-size: clamp(50px, 10.5vw, 136px); letter-spacing: -.055em; line-height: .95; font-weight: 800; }
.rotator {
  display: inline-block;
  background: linear-gradient(100deg, var(--blue-deep) 0%, var(--blue-hi) 45%, var(--sky) 85%);
  -webkit-background-clip: text; background-clip: text; color: transparent;
  transition: opacity .35s var(--ease), transform .45s var(--ease), filter .35s;
  padding-bottom: .06em;
}
.rotator.out { opacity: 0; transform: translateY(.3em); filter: blur(10px); }
.hero-sub { max-width: 640px; font-size: clamp(17px, 2vw, 21px); color: var(--muted); line-height: 1.5; }
.hero-stage { display: flex; align-items: center; justify-content: center; gap: 28px; flex-wrap: wrap; margin-top: 12px; }
.hero-ctas { display: flex; gap: 12px; flex-wrap: wrap; justify-content: center; }

/* tecla F5 */
.keycap { display: grid; justify-items: center; gap: 12px; }
.keycap-face {
  width: 132px; height: 132px; border-radius: 34px;
  display: grid; place-items: center;
  background: linear-gradient(160deg, rgba(255,255,255,.16), rgba(255,255,255,.04));
  border: 1px solid rgba(255,255,255,.22);
  -webkit-backdrop-filter: var(--glass-blur); backdrop-filter: var(--glass-blur);
  box-shadow:
    inset 0 2px 0 rgba(255,255,255,.3),
    inset 0 -6px 14px rgba(0,0,0,.35),
    0 10px 0 -2px rgba(255,255,255,.06),
    0 26px 60px -12px rgba(63,156,229,.55);
  transition: transform .5s var(--spring), box-shadow .3s;
  animation: float 5s ease-in-out infinite;
}
.keycap-face img { width: 84px; height: auto; filter: drop-shadow(0 6px 16px rgba(81,192,252,.45)); }
.keycap:hover .keycap-face { transform: translateY(-4px) rotate(-3deg); }
.keycap.pressed .keycap-face { transform: translateY(8px) scale(.94); box-shadow: inset 0 2px 0 rgba(255,255,255,.3), inset 0 -2px 8px rgba(0,0,0,.35), 0 2px 0 -2px rgba(255,255,255,.06), 0 10px 30px -10px rgba(63,156,229,.9); animation: none; }
.keycap-hint { font-size: 13px; color: var(--muted); }
@keyframes float { 50% { transform: translateY(-8px); } }

.swap {
  display: grid; grid-template-columns: auto auto auto; grid-template-rows: auto auto;
  column-gap: 18px; row-gap: 4px; align-items: center; text-align: left;
  padding: 18px 24px; border-radius: var(--r-lg);
  min-width: min(460px, 100%);
}
.swap-label { font: 500 11px var(--mono); letter-spacing: .12em; text-transform: uppercase; color: var(--dim); grid-row: 1; }
.swap-label:nth-of-type(2) { grid-column: 3; }
.swap-from { grid-row: 2; grid-column: 1; color: var(--muted); text-decoration: line-through; text-decoration-color: rgba(255,255,255,.3); }
.swap-arrow { grid-row: 2; grid-column: 2; width: 22px; height: 22px; color: var(--blue-hi); }
.swap-to { grid-row: 2; grid-column: 3; font-weight: 650; }
.swap .swap-from, .swap .swap-to { transition: opacity .3s, transform .4s var(--ease); }
.swap.flip .swap-from, .swap.flip .swap-to { opacity: 0; transform: translateY(8px); }

.scroll-cue { position: absolute; bottom: 28px; width: 26px; height: 42px; border-radius: 20px; border: 1.5px solid rgba(255,255,255,.3); }
.scroll-cue span { position: absolute; left: 50%; top: 8px; width: 4px; height: 8px; margin-left: -2px; border-radius: 2px; background: var(--fg); animation: cue 2s var(--ease) infinite; }
@keyframes cue { 0% { opacity: 0; transform: translateY(0); } 30% { opacity: 1; } 100% { opacity: 0; transform: translateY(14px); } }

/* ---------- Manifesto ---------- */
.manifesto { width: min(1000px, calc(100% - 40px)); margin: 0 auto; padding: 120px 0 60px; }
.manifesto-text { font-size: clamp(30px, 4.6vw, 58px); font-weight: 700; letter-spacing: -.035em; line-height: 1.12; }
.manifesto-text .w { color: rgba(255,255,255,.14); transition: color .35s; }
.manifesto-text .w.lit { color: var(--fg); }
.manifesto-text .w.lit.hl { color: var(--blue-hi); }

/* ---------- Números ---------- */
.stats { width: min(1120px, calc(100% - 40px)); margin: 40px auto 0; display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; }
.stat { border-radius: var(--r-lg); padding: 28px 24px; display: grid; gap: 6px; }
.stat b { font-size: clamp(36px, 4.4vw, 56px); font-weight: 800; letter-spacing: -.045em; line-height: 1; background: linear-gradient(135deg, var(--sky), var(--blue-hi) 55%, var(--blue-deep)); -webkit-background-clip: text; background-clip: text; color: transparent; }
.stat span { color: var(--muted); font-size: 15px; }
@media (max-width: 860px) { .stats { grid-template-columns: 1fr 1fr; } }

/* ---------- Linha do tempo ---------- */
.timeline { position: relative; display: grid; gap: 28px; padding-left: 64px; }
.timeline-rail { position: absolute; left: 20px; top: 8px; bottom: 8px; width: 2px; background: rgba(255,255,255,.08); border-radius: 2px; overflow: hidden; }
.timeline-fill { position: absolute; left: 0; top: 0; width: 100%; height: var(--p, 0%); background: linear-gradient(180deg, var(--sky), var(--blue-deep)); box-shadow: 0 0 18px var(--blue-hi); }
.tl-item { position: relative; display: grid; grid-template-columns: 170px 1fr; gap: 28px; align-items: start; }
.tl-item::before {
  content: ""; position: absolute; left: -51px; top: 10px;
  width: 14px; height: 14px; border-radius: 50%;
  background: #000; border: 2px solid rgba(255,255,255,.25);
  transition: border-color .5s, box-shadow .5s, background .5s;
}
.tl-item.in::before { border-color: var(--blue-hi); background: var(--blue); box-shadow: 0 0 0 6px rgba(63,156,229,.18), 0 0 20px var(--blue); }
.tl-item time { font: 500 14px var(--mono); color: var(--ice); padding-top: 6px; letter-spacing: .02em; }
.tl-card { border-radius: var(--r-lg); padding: 30px 32px; display: grid; gap: 12px; }
.tl-card h3 { font-size: clamp(24px, 2.6vw, 32px); }
.tl-card p { color: var(--muted); max-width: 62ch; }
.tl-now { background: linear-gradient(150deg, rgba(63,156,229,.28), rgba(63,156,229,.06) 60%); border-color: rgba(81,192,252,.4); }
.tl-next { border-style: dashed; background: rgba(255,255,255,.02); }
.tl-key { display: flex; align-items: center; gap: 10px; color: var(--ice); font: 500 14px var(--mono); }
.tl-key kbd { font-size: 18px; padding: 6px 12px; }
.chips { list-style: none; margin: 4px 0 0; padding: 0; display: flex; flex-wrap: wrap; gap: 8px; }
.chips li { font: 500 12px var(--mono); padding: 6px 11px; border-radius: 999px; background: rgba(255,255,255,.06); border: 1px solid var(--glass-line); color: var(--ice); }
.link-arrow { color: var(--blue-hi); font-weight: 600; }
.link-arrow:hover { text-decoration: underline; text-underline-offset: 4px; }
@media (max-width: 700px) {
  .timeline { padding-left: 40px; }
  .timeline-rail { left: 10px; }
  .tl-item { grid-template-columns: 1fr; gap: 10px; }
  .tl-item::before { left: -37px; top: 4px; }
  .tl-item time { padding-top: 0; }
  .tl-card { padding: 24px; }
}

/* ---------- Bento ---------- */
.bento { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.tile {
  border-radius: var(--r-xl); padding: 32px;
  display: flex; flex-direction: column; gap: 12px;
  min-height: 250px;
  overflow: hidden;
  transform: perspective(900px) rotateX(var(--rx, 0deg)) rotateY(var(--ry, 0deg));
  transition: transform .5s var(--ease), border-color .3s;
}
.tile.reveal.in { transform: perspective(900px) rotateX(var(--rx, 0deg)) rotateY(var(--ry, 0deg)); }
.tile::after {
  content: ""; position: absolute; inset: 0; border-radius: inherit; pointer-events: none;
  background: radial-gradient(420px circle at var(--mx, 50%) var(--my, 50%), rgba(81,192,252,.22), transparent 45%);
  opacity: 0; transition: opacity .4s;
}
.tile:hover::after { opacity: 1; }
.tile:hover { border-color: rgba(168,220,255,.3); }
.tile h3 { font-size: 26px; }
.tile p { color: var(--muted); font-size: 16px; }
.tile-k { font: 500 13px var(--mono); color: var(--blue-hi); }
.tile-xl { grid-column: span 2; grid-row: span 2; justify-content: flex-end; min-height: 520px;
  background: radial-gradient(120% 90% at 100% 0%, rgba(63,156,229,.35), transparent 55%), linear-gradient(160deg, var(--glass-bg-hi), var(--glass-bg)); }
.tile-xl h3 { font-size: clamp(32px, 3.6vw, 48px); }
.tile-xl p { font-size: 18px; max-width: 52ch; }
.tile-wide { grid-column: span 3; min-height: 200px; display: grid; grid-template-columns: auto 1fr auto; align-items: center; column-gap: 32px; }
.tile-wide .tile-k { grid-row: span 2; align-self: start; }
.tile-wide h3, .tile-wide p { grid-column: 2; }
.tile-wide .meter { grid-column: 3; grid-row: 1 / span 2; }
.tile-term { margin-top: 18px; font: 14px/1.5 var(--mono); padding: 16px 18px; border-radius: 14px; background: rgba(0,0,0,.45); border: 1px solid rgba(255,255,255,.08); overflow-x: auto; white-space: nowrap; }
.g { color: var(--green); } .d { color: var(--ice); }
.meter { display: grid; grid-template-columns: auto 120px; gap: 10px 14px; align-items: center; font: 500 13px var(--mono); color: var(--muted); }
.meter i { height: 10px; border-radius: 6px; background: rgba(255,255,255,.08); position: relative; overflow: hidden; }
.meter i::after { content: ""; position: absolute; inset: 0; border-radius: inherit; transform-origin: left; transform: scaleX(0); transition: transform 1.6s var(--ease) .3s; }
.meter .up::after { background: linear-gradient(90deg, var(--blue-deep), var(--sky)); }
.meter .down::after { background: rgba(255,255,255,.35); }
.tile.in .meter .up::after { transform: scaleX(.92); }
.tile.in .meter .down::after { transform: scaleX(.28); }
@media (max-width: 900px) {
  .bento { grid-template-columns: 1fr 1fr; }
  .tile-xl { grid-column: span 2; grid-row: auto; min-height: 380px; }
  .tile-wide { grid-column: span 2; grid-template-columns: 1fr; row-gap: 12px; }
  .tile-wide .tile-k, .tile-wide h3, .tile-wide p, .tile-wide .meter { grid-column: 1; grid-row: auto; }
}
@media (max-width: 600px) {
  .bento { grid-template-columns: 1fr; }
  .tile-xl, .tile-wide { grid-column: auto; }
  .tile { min-height: 0; padding: 26px; }
}

/* ---------- Segmented control (iOS) ---------- */
.seg {
  position: relative; display: inline-grid; grid-auto-flow: column; grid-auto-columns: 1fr;
  padding: 4px; border-radius: 999px;
  background: rgba(255,255,255,.07); border: 1px solid var(--glass-line);
  -webkit-backdrop-filter: var(--glass-blur); backdrop-filter: var(--glass-blur);
  max-width: 100%;
}
.seg button { position: relative; z-index: 1; padding: 11px 20px; border-radius: 999px; font-size: 15px; font-weight: 600; color: var(--muted); transition: color .3s; white-space: nowrap; }
.seg button[aria-selected="true"] { color: var(--fg); }
.seg-thumb {
  position: absolute; top: 4px; bottom: 4px; left: 4px;
  width: var(--tw, 0); transform: translateX(var(--tx, 0));
  border-radius: 999px;
  background: linear-gradient(180deg, rgba(255,255,255,.2), rgba(255,255,255,.1));
  box-shadow: inset 0 1px 0 rgba(255,255,255,.3), 0 6px 18px rgba(0,0,0,.4);
  transition: transform .5s var(--spring), width .5s var(--spring);
}
@media (max-width: 640px) {
  .seg button { padding: 10px 12px; font-size: 13px; }
}

/* ---------- Terminal ---------- */
.term-wrap { display: grid; justify-items: center; gap: 22px; }
.term { width: 100%; max-width: 900px; border-radius: var(--r-lg); overflow: hidden; background: linear-gradient(160deg, rgba(20,24,34,.75), rgba(5,7,12,.75)); }
.term-bar { display: flex; align-items: center; gap: 8px; padding: 14px 18px; border-bottom: 1px solid rgba(255,255,255,.07); }
.term-bar i { width: 12px; height: 12px; border-radius: 50%; background: rgba(255,255,255,.15); }
.term-bar span { margin-left: 10px; font: 13px var(--mono); color: var(--dim); }
.term-body { margin: 0; padding: 24px 26px 30px; min-height: 340px; font: 14.5px/1.75 var(--mono); white-space: pre-wrap; word-break: break-word; color: #d6dae3; }
.term-body .p { color: var(--green); }
.term-body .c { color: var(--fg); }
.term-body .o { color: var(--muted); }
.term-body .ok { color: var(--green); }
.term-body .k { color: var(--ice); }
.term-body .caret { display: inline-block; width: .6em; height: 1.1em; vertical-align: -.2em; background: var(--fg); animation: blink 1s steps(1) infinite; }
@keyframes blink { 50% { opacity: 0; } }
.term-foot { color: var(--muted); text-align: center; max-width: 640px; min-height: 3em; }
.term-foot b { color: var(--fg); }

/* ---------- Calculadora ---------- */
.calc { display: grid; grid-template-columns: 1.15fr 1fr; gap: 16px; }
.calc-inputs, .calc-out { border-radius: var(--r-xl); padding: 34px; }
.calc-inputs { display: grid; gap: 26px; }
.range { display: grid; gap: 12px; }
.range span { display: flex; justify-content: space-between; gap: 14px; color: var(--muted); font-size: 15px; }
.range b { color: var(--fg); font-weight: 650; font-variant-numeric: tabular-nums; white-space: nowrap; }
input[type="range"] {
  -webkit-appearance: none; appearance: none; width: 100%; height: 30px; background: transparent; cursor: pointer;
  --fill: 50%;
}
input[type="range"]::-webkit-slider-runnable-track {
  height: 8px; border-radius: 6px;
  background: linear-gradient(90deg, var(--blue) 0 var(--fill), rgba(255,255,255,.12) var(--fill) 100%);
}
input[type="range"]::-moz-range-track { height: 8px; border-radius: 6px; background: rgba(255,255,255,.12); }
input[type="range"]::-moz-range-progress { height: 8px; border-radius: 6px; background: var(--blue); }
input[type="range"]::-webkit-slider-thumb {
  -webkit-appearance: none; width: 28px; height: 28px; margin-top: -10px; border-radius: 50%;
  background: #fff; box-shadow: 0 2px 10px rgba(0,0,0,.5), 0 0 0 .5px rgba(0,0,0,.1);
  transition: transform .3s var(--spring);
}
input[type="range"]:active::-webkit-slider-thumb { transform: scale(1.15); }
input[type="range"]::-moz-range-thumb { width: 28px; height: 28px; border: 0; border-radius: 50%; background: #fff; box-shadow: 0 2px 10px rgba(0,0,0,.5); }
.calc-note { font-size: 13px; color: var(--dim); }
.calc-out { display: flex; flex-direction: column; gap: 14px; background: radial-gradient(120% 100% at 100% 0%, rgba(63,156,229,.35), transparent 60%), linear-gradient(160deg, var(--glass-bg-hi), var(--glass-bg)); }
.calc-label { color: var(--ice); font: 500 12px var(--mono); letter-spacing: .12em; text-transform: uppercase; }
.calc-big { font-size: clamp(48px, 6vw, 76px); font-weight: 800; letter-spacing: -.05em; line-height: 1; font-variant-numeric: tabular-nums; }
.calc-row { display: flex; justify-content: space-between; gap: 14px; padding: 14px 0; border-top: 1px solid rgba(255,255,255,.08); color: var(--muted); }
.calc-row b { color: var(--fg); font-variant-numeric: tabular-nums; }
.calc-bar { height: 10px; border-radius: 6px; background: rgba(255,255,255,.08); overflow: hidden; margin-top: auto; }
.calc-bar span { display: block; height: 100%; width: 0; background: linear-gradient(90deg, var(--blue-deep), var(--sky)); border-radius: inherit; transition: width .8s var(--ease); }
.calc-verdict { color: var(--fg); font-size: 16px; }
.calc-verdict em { color: var(--ice); font-style: normal; }
@media (max-width: 860px) { .calc { grid-template-columns: 1fr; } .calc-inputs, .calc-out { padding: 26px; } }

/* ---------- Perfil ---------- */
.profile { display: grid; justify-items: center; gap: 22px; }
.prof-panel { width: 100%; border-radius: var(--r-xl); padding: 40px; display: grid; grid-template-columns: 1.2fr 1fr; gap: 40px; align-items: center; animation: panelIn .6s var(--ease); }
.prof-panel h3 { font-size: clamp(26px, 3vw, 38px); margin-bottom: 16px; }
.prof-panel p { color: var(--muted); font-size: 18px; }
@keyframes panelIn { from { opacity: 0; transform: translateY(14px) scale(.985); filter: blur(6px); } }
.checks { list-style: none; margin: 0; padding: 0; display: grid; gap: 12px; }
.checks li { display: flex; gap: 12px; align-items: flex-start; padding: 14px 16px; border-radius: 16px; background: rgba(255,255,255,.04); border: 1px solid rgba(255,255,255,.07); }
.checks li::before {
  content: ""; flex: none; width: 22px; height: 22px; border-radius: 50%; margin-top: 1px;
  background: var(--blue) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M6 12.5l4 4 8-9' fill='none' stroke='white' stroke-width='2.6' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center/14px no-repeat;
}
@media (max-width: 800px) { .prof-panel { grid-template-columns: 1fr; padding: 28px; gap: 24px; } }

/* ---------- Ecossistema ---------- */
.eco { display: grid; grid-template-columns: 1fr 90px 1fr; align-items: stretch; }
.eco-card { border-radius: var(--r-xl); padding: 36px; display: flex; flex-direction: column; gap: 14px; }
.eco-card h3 { font-size: 30px; }
.eco-card p { color: var(--muted); }
.eco-mark { width: auto; height: 46px; align-self: flex-start; object-fit: contain; }
.eco-fd { width: auto; height: 46px; color: var(--fg); align-self: flex-start; }
.eco-tag { margin-top: auto; align-self: flex-start; font: 500 13px var(--mono); padding: 8px 14px; border-radius: 999px; background: rgba(63,156,229,.16); color: var(--ice); border: 1px solid rgba(81,192,252,.3); }
a.eco-tag:hover { background: rgba(63,156,229,.3); }
.eco-link { display: grid; place-items: center; }
.eco-link span { width: 100%; height: 2px; background: linear-gradient(90deg, transparent, var(--blue), transparent); position: relative; overflow: hidden; }
.eco-link span::after { content: ""; position: absolute; top: -3px; left: -20%; width: 20%; height: 8px; border-radius: 4px; background: var(--ice); filter: blur(3px); animation: pulse 2.6s var(--ease) infinite; }
@keyframes pulse { to { left: 110%; } }
.eco-foot { text-align: center; color: var(--muted); margin-top: 30px; }
@media (max-width: 800px) {
  .eco { grid-template-columns: 1fr; }
  .eco-link { height: 50px; }
  .eco-link span { width: 2px; height: 100%; background: linear-gradient(180deg, transparent, var(--blue), transparent); }
  .eco-link span::after { display: none; }
}

/* ---------- FAQ ---------- */
.faq { display: grid; gap: 16px; max-width: 860px; margin: 0 auto; }
.faq-search { display: flex; align-items: center; gap: 12px; border-radius: 999px; padding: 4px 22px; }
.faq-search svg { width: 20px; height: 20px; color: var(--muted); flex: none; }
.faq-search input { flex: 1; background: none; border: 0; outline: 0; color: var(--fg); font: inherit; padding: 14px 0; min-width: 0; }
.faq-search input::placeholder { color: var(--dim); }
.faq-list { display: grid; gap: 10px; }
.faq details { border-radius: 22px; overflow: hidden; transition: background .3s; }
.faq details[open] { background: linear-gradient(160deg, rgba(63,156,229,.14), var(--glass-bg)); }
.faq summary {
  list-style: none; cursor: pointer; padding: 22px 64px 22px 26px; font-size: 18px; font-weight: 600; position: relative;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: ""; position: absolute; right: 24px; top: 50%; width: 28px; height: 28px; margin-top: -14px; border-radius: 50%;
  background: rgba(255,255,255,.08) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M12 6v12M6 12h12' stroke='white' stroke-width='2' stroke-linecap='round'/%3E%3C/svg%3E") center/14px no-repeat;
  transition: transform .45s var(--spring), background-color .3s;
}
.faq details[open] summary::after { transform: rotate(135deg); background-color: var(--blue); }
.faq details p { padding: 0 26px 24px; color: var(--muted); max-width: 70ch; animation: faqIn .5s var(--ease); }
@keyframes faqIn { from { opacity: 0; transform: translateY(-6px); } }
.faq-empty { text-align: center; color: var(--muted); }
mark { background: rgba(63,156,229,.35); color: var(--fg); border-radius: 4px; padding: 0 2px; }

/* ---------- CTA ---------- */
.cta-section { padding-bottom: 120px; }
.cta { border-radius: 40px; padding: 64px clamp(24px, 6vw, 80px); display: grid; justify-items: center; text-align: center; gap: 16px;
  background: radial-gradient(90% 70% at 50% 0%, rgba(63,156,229,.4), transparent 70%), linear-gradient(160deg, var(--glass-bg-hi), var(--glass-bg)); }
.cta-mark { width: 150px; height: auto; filter: drop-shadow(0 10px 36px rgba(81,192,252,.45)); margin-bottom: 8px; }
.cta h2 { font-size: clamp(40px, 6vw, 72px); }
.cta > p { color: var(--muted); font-size: 18px; max-width: 520px; }
.form { width: 100%; max-width: 620px; display: grid; grid-template-columns: 1fr 1fr; gap: 14px; margin-top: 18px; text-align: left; }
.form label { display: grid; gap: 8px; font-size: 14px; color: var(--muted); }
.form label em { font-style: normal; color: var(--dim); }
.form .full { grid-column: 1 / -1; }
.form input, .form select, .form textarea {
  font: inherit; color: var(--fg);
  background: rgba(0,0,0,.35); border: 1px solid rgba(255,255,255,.12); border-radius: 16px;
  padding: 14px 16px; outline: 0; transition: border-color .25s, box-shadow .25s; resize: vertical;
}
.form select { appearance: none; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M6 9l6 6 6-6' fill='none' stroke='%238D9097' stroke-width='2' stroke-linecap='round'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 14px center; background-size: 18px; }
.form select option { background: #111; }
.form input:focus, .form select:focus, .form textarea:focus { border-color: var(--blue-hi); box-shadow: 0 0 0 4px rgba(63,156,229,.22); }
.form input.err { border-color: #ff6b6b; }
.form .btn { justify-content: center; margin-top: 6px; }
.form-note { text-align: center; font-size: 13px; color: var(--dim); margin-top: -4px; }
.form-msg { grid-column: 1 / -1; text-align: center; min-height: 1.4em; color: var(--ice); font-size: 15px; }
.cta-alt { color: var(--dim); font-size: 14px; margin-top: 10px; }
.cta-alt a { color: var(--ice); }
.cta-alt a:hover { text-decoration: underline; }
@media (max-width: 560px) { .form { grid-template-columns: 1fr; } .cta { border-radius: 30px; } }

/* ---------- Rodapé ---------- */
.footer { position: relative; z-index: 1; width: min(1120px, calc(100% - 40px)); margin: 0 auto; padding: 40px 0 calc(40px + env(safe-area-inset-bottom)); border-top: 1px solid rgba(255,255,255,.08); display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 16px; color: var(--dim); font-size: 14px; }
.footer-brand img { width: 62px; height: auto; }
.footer-motto { font-style: italic; }
.footer-credit a { color: var(--muted); letter-spacing: .04em; font-size: 12px; }
.footer-credit a:hover { color: var(--fg); }

/* ---------- Toast ---------- */
.toast {
  position: fixed; left: 50%; bottom: calc(24px + env(safe-area-inset-bottom)); z-index: 80;
  transform: translate(-50%, 140%); opacity: 0;
  padding: 14px 22px; border-radius: 999px; font-size: 15px; font-weight: 500;
  transition: transform .6s var(--spring), opacity .3s;
  max-width: calc(100% - 32px); text-align: center;
}
.toast.show { transform: translate(-50%, 0); opacity: 1; }

/* ---------- Movimento reduzido ---------- */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
  html { scroll-behavior: auto; }
  .reveal { opacity: 1; transform: none; filter: none; }
}

/* sem suporte a backdrop-filter: vidro mais opaco */
@supports not ((backdrop-filter: blur(1px)) or (-webkit-backdrop-filter: blur(1px))) {
  .glass, .seg, .btn-glass { background: rgba(18, 20, 26, .92); }
}
