/* ============================================================================
   OráculoX · design system compartilhado
   Mesma identidade do HTML original: fundo #080909, tinta #f1f2ed, acento lima
   #d9f99d, mono para rótulos, sans para títulos. Sem fontes externas.
   ========================================================================== */
:root {
  color-scheme: dark;
  --black: #080909;
  --surface: #0e100f;
  --surface-2: #131614;
  --white: #f1f2ed;
  --soft: #c9cec4;
  --muted: #91978f;
  --dim: #777e73;
  --line: rgba(223, 234, 213, .12);
  --line-strong: rgba(223, 234, 213, .22);
  --accent: #d9f99d;
  --accent-hover: #e5ffbc;
  --accent-rgb: 217, 249, 157;
  --accent-ink: #16200e;
  --bug: #f1d05d;
  --mono: ui-monospace, "SFMono-Regular", Consolas, "Liberation Mono", monospace;
  --sans: "Inter", "Aptos", "Segoe UI", Helvetica, Arial, sans-serif;
  --page-w: min(1280px, calc(100% - 96px));
  --radius: 18px;
  --ease: cubic-bezier(.2, .7, .2, 1);
  --topbar-h: 76px;

  /* Mapeia o design system para os tokens do motor scroll-craft */
  --sc-canvas: #080909;
  --sc-surface: #0e100f;
  --sc-ink: #f1f2ed;
  --sc-ink-soft: #a8ada3;
  --sc-accent: #d9f99d;
  --sc-accent-ink: #16200e;
  --sc-font-display: var(--sans);
  --sc-font-text: var(--sans);
  --sc-font-mono: var(--mono);
}

*, *::before, *::after { box-sizing: border-box; }
html { min-width: 280px; background: var(--black); scroll-padding-top: calc(var(--topbar-h) + 12px); }
body {
  margin: 0;
  min-height: 100vh;
  min-height: 100svh;
  overflow-x: hidden;
  background: var(--black);
  color: var(--white);
  font-family: var(--sans);
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  -webkit-tap-highlight-color: transparent;
}
body::before {
  content: "";
  position: fixed;
  z-index: 0;
  inset: 0;
  pointer-events: none;
  background:
    radial-gradient(ellipse 46% 39% at 50% 38%, rgba(176, 201, 145, .044), transparent 100%),
    radial-gradient(ellipse 30% 19% at 50% 92%, rgba(176, 201, 145, .025), transparent 100%);
}
::selection { background: var(--accent); color: var(--black); }
img, svg, video, canvas { display: block; max-width: 100%; }
button, input, select, textarea { font: inherit; color: inherit; }
button { cursor: pointer; }
a { color: inherit; }
button:focus-visible, a:focus-visible, input:focus-visible, select:focus-visible, textarea:focus-visible, summary:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 5px;
}
button:disabled { cursor: default; }
.sr-only {
  position: absolute; width: 1px; height: 1px; margin: -1px; padding: 0;
  overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0;
}
.skip-link {
  position: fixed; left: 16px; top: -60px; z-index: 100;
  padding: 10px 14px; border-radius: 10px; background: var(--accent); color: var(--accent-ink);
  font-weight: 650; text-decoration: none; transition: top .2s;
}
.skip-link:focus { top: 12px; }

.wrap { position: relative; z-index: 1; width: var(--page-w); margin-inline: auto; }
.mono { font-family: var(--mono); }
.muted { color: var(--muted); }
.accent { color: var(--accent); }

/* ------------------------------------------------------------- topbar ---- */
.topbar {
  position: fixed;
  z-index: 50;
  inset: 0 0 auto 0;
  height: var(--topbar-h);
  border-bottom: 1px solid var(--line);
  background: rgba(8, 9, 9, .72);
  -webkit-backdrop-filter: blur(14px) saturate(1.2);
  backdrop-filter: blur(14px) saturate(1.2);
}
.topbar__inner {
  display: flex; align-items: center; justify-content: space-between; gap: 20px;
  width: var(--page-w); height: 100%; margin-inline: auto;
}
.brand-mark {
  display: inline-flex; align-items: center; gap: 11px;
  color: var(--soft); font-size: 14px; font-weight: 600; letter-spacing: -.02em;
  text-decoration: none; white-space: nowrap; min-height: 44px;
}
.brand-mark svg { width: 28px; height: 28px; color: var(--accent); flex: 0 0 28px; }
.brand-mark small { display: block; font-family: var(--mono); font-size: 9px; font-weight: 400; letter-spacing: .1em; color: var(--dim); text-transform: uppercase; }
.nav { display: flex; align-items: center; gap: 4px; }
.nav a {
  position: relative;
  padding: 9px 12px;
  border-radius: 10px;
  color: #a9b0a3;
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: .06em;
  text-transform: uppercase;
  text-decoration: none;
  transition: color .2s, background .2s;
}
.nav a:hover { color: var(--white); background: rgba(223, 234, 213, .05); }
.nav a[aria-current="page"] { color: var(--accent); }
.nav a[aria-current="page"]::after {
  content: ""; position: absolute; left: 12px; right: 12px; bottom: 4px; height: 1px; background: var(--accent); opacity: .6;
}
.topbar__right { display: flex; align-items: center; gap: 14px; }
.status {
  display: flex; align-items: center; gap: 8px;
  font-family: var(--mono); font-size: 10px; letter-spacing: .105em; color: #a2aa9b; text-transform: uppercase; white-space: nowrap;
}
.status-light {
  width: 6px; height: 6px; flex: 0 0 6px; border-radius: 50%;
  background: var(--accent); box-shadow: 0 0 10px rgba(var(--accent-rgb), .28);
  animation: status-pulse 3.5s ease-in-out infinite;
}
@keyframes status-pulse { 50% { opacity: .4; box-shadow: none; } }
.menu-toggle {
  display: none; align-items: center; justify-content: center;
  width: 44px; height: 44px; padding: 0; border: 1px solid var(--line); border-radius: 12px; background: transparent; color: var(--white);
}
.menu-toggle svg { width: 18px; height: 18px; }
.menu-toggle .close-icon { display: none; }
.menu-open .menu-toggle .open-icon { display: none; }
.menu-open .menu-toggle .close-icon { display: block; }

/* ------------------------------------------------------------ eyebrow ---- */
.eyebrow {
  display: inline-flex; align-items: center; gap: 10px; margin: 0 0 22px;
  color: #aab39d; font-family: var(--mono); font-size: 10px; letter-spacing: .18em; text-transform: uppercase;
}
.eyebrow::before, .eyebrow::after { content: ""; width: 22px; height: 1px; background: #48513e; }
.eyebrow--left::after { display: none; }

/* ------------------------------------------------------------ type ------- */
.display {
  margin: 0; font-weight: 600; letter-spacing: -.055em; line-height: 1.04; text-wrap: balance;
}
.display--xl { font-size: clamp(44px, 7.6vw, 104px); letter-spacing: -.065em; }
.display--lg { font-size: clamp(36px, 5.4vw, 74px); }
.display--md { font-size: clamp(28px, 3.6vw, 50px); letter-spacing: -.045em; }
.display--sm { font-size: clamp(22px, 2.4vw, 32px); letter-spacing: -.035em; line-height: 1.12; }
.lede { margin: 0; color: #b4baae; font-size: clamp(16px, 1.45vw, 19px); line-height: 1.6; max-width: 60ch; text-wrap: pretty; }
.body { margin: 0; color: var(--muted); font-size: 15px; line-height: 1.65; max-width: 64ch; text-wrap: pretty; }
.label {
  font-family: var(--mono); font-size: 10px; letter-spacing: .14em; text-transform: uppercase; color: var(--dim);
}

/* Efeito de digitação (igual ao original) */
.type-line { display: grid; width: max-content; max-width: 100%; text-align: left; white-space: nowrap; }
.type-line.center { margin: 0 auto; }
.type-ghost, .type-display { grid-area: 1 / 1; }
.type-ghost { visibility: hidden; pointer-events: none; }
.type-display { position: relative; width: max-content; }
.type-line.accent { color: var(--accent); }
.is-typing > .type-display::after {
  content: ""; position: absolute; bottom: .105em; display: inline-block; width: 2px; height: .8em; margin-left: .095em;
  background: var(--accent); animation: cursor .9s steps(1, end) infinite;
}
@keyframes cursor { 0%, 45% { opacity: 1; } 46%, 100% { opacity: 0; } }
.emoji {
  display: inline-block; margin-left: .17em; font-family: "Apple Color Emoji", "Segoe UI Emoji", "Noto Color Emoji", sans-serif;
  font-size: .48em; vertical-align: .1em; letter-spacing: 0;
}

/* ------------------------------------------------------------ buttons ---- */
.btn {
  --mx: 0px; --my: 0px;
  position: relative; isolation: isolate;
  display: inline-flex; align-items: center; justify-content: center; gap: 12px;
  min-height: 58px; padding: 12px 16px 12px 22px;
  border: 1px solid #e3ffb6; border-radius: 16px;
  background: var(--accent); color: var(--accent-ink);
  text-decoration: none; font-size: 15px; font-weight: 650; letter-spacing: -.025em; white-space: nowrap;
  box-shadow: 0 0 0 5px rgba(var(--accent-rgb), .035), 0 8px 30px rgba(0, 0, 0, .2);
  transform: translate(var(--mx), var(--my));
  transition: transform .2s ease-out, box-shadow .3s, background .3s, color .3s, border-color .3s;
  will-change: transform;
}
.btn--halo::before {
  content: ""; position: absolute; z-index: -1; inset: -7px;
  border: 1px solid rgba(var(--accent-rgb), .18); border-radius: 22px;
  animation: button-halo 4s ease-out infinite; pointer-events: none;
}
@keyframes button-halo {
  0%, 30%, 100% { opacity: 0; transform: scale(.98); }
  42% { opacity: .8; transform: scale(1); }
  85% { opacity: 0; transform: scale(1.09, 1.22); }
}
.btn .shine { position: absolute; inset: 0; border-radius: inherit; overflow: hidden; pointer-events: none; }
.btn .shine::after {
  content: ""; position: absolute; top: -60%; left: -60%; width: 40%; height: 220%;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, .55), transparent);
  transform: rotate(25deg); animation: sheen 5.5s ease-in-out infinite;
}
@keyframes sheen { 0%, 58% { left: -60%; } 82%, 100% { left: 160%; } }
.btn:hover { background: var(--accent-hover); box-shadow: 0 0 0 6px rgba(var(--accent-rgb), .055), 0 10px 48px rgba(var(--accent-rgb), .11); }
.btn:active { transform: translate(var(--mx), var(--my)) scale(.97); }
.btn .ico { width: 20px; height: 20px; flex: 0 0 20px; }
.btn .arrow-box {
  display: grid; place-items: center; width: 30px; height: 30px; margin-left: 6px;
  border-radius: 9px; background: rgba(26, 40, 15, .075); overflow: hidden;
}
.btn .arrow-box svg { width: 16px; height: 16px; transition: transform .3s; }
.btn:hover .arrow-box svg { transform: translate(2px, -2px); }
.btn--ghost {
  background: transparent; color: var(--white); border-color: var(--line-strong); box-shadow: none;
}
.btn--ghost .arrow-box { background: rgba(223, 234, 213, .06); }
.btn--ghost:hover { background: rgba(223, 234, 213, .05); border-color: rgba(var(--accent-rgb), .5); color: var(--accent); box-shadow: none; }
.btn--sm { min-height: 44px; padding: 8px 10px 8px 15px; border-radius: 12px; font-size: 13px; gap: 8px; }
.btn--sm .arrow-box { width: 24px; height: 24px; border-radius: 7px; margin-left: 2px; }
.btn--sm .arrow-box svg { width: 13px; height: 13px; }
.btn--block { width: 100%; }
.btn-row { display: flex; flex-wrap: wrap; align-items: center; gap: 14px; }
.btn-note { margin: 14px 0 0; color: var(--muted); font-size: 11px; letter-spacing: .025em; }
.text-link {
  display: inline-flex; align-items: center; gap: 6px; color: var(--accent); font-family: var(--mono); font-size: 12px;
  letter-spacing: .04em; text-decoration: none; border-bottom: 1px solid rgba(var(--accent-rgb), .3); padding-bottom: 2px;
}
.text-link:hover { border-bottom-color: var(--accent); }

/* -------------------------------------------------------------- cards ---- */
.card {
  position: relative;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: linear-gradient(180deg, rgba(20, 23, 21, .92), rgba(12, 14, 13, .92));
  box-shadow: 0 1px 0 rgba(255, 255, 255, .03) inset, 0 18px 50px -24px rgba(0, 0, 0, .6);
}
.card--hover { transition: border-color .3s, transform .3s var(--ease); }
.card--hover:hover { border-color: rgba(var(--accent-rgb), .32); transform: translateY(-3px); }
.chip {
  display: inline-flex; align-items: center; gap: 6px; padding: 5px 9px;
  border: 1px solid var(--line); border-radius: 999px;
  font-family: var(--mono); font-size: 10px; letter-spacing: .08em; text-transform: uppercase; color: #a8b19e;
}
.chip--accent { border-color: rgba(var(--accent-rgb), .35); color: var(--accent); background: rgba(var(--accent-rgb), .06); }
.key {
  padding: 3px 6px; border: 1px solid #30362c; border-bottom-width: 2px; border-radius: 4px;
  color: #a8b19e; font-family: var(--mono); font-size: 9px; line-height: 1;
}
.hr { height: 1px; border: 0; margin: 0; background: var(--line); }

/* -------------------------------------------------------------- forms ---- */
.field { display: grid; gap: 8px; }
.field label { font-family: var(--mono); font-size: 10px; letter-spacing: .12em; text-transform: uppercase; color: #a8b19e; }
.input, .select, .textarea {
  width: 100%; min-height: 54px; padding: 14px 16px;
  border: 1px solid var(--line-strong); border-radius: 14px;
  background: rgba(8, 9, 9, .6); color: var(--white); font-size: 16px;
  transition: border-color .2s, box-shadow .2s;
}
.textarea { min-height: 120px; resize: vertical; }
.input::placeholder, .textarea::placeholder { color: #6b7267; }
.input:focus, .select:focus, .textarea:focus { outline: none; border-color: var(--accent); box-shadow: 0 0 0 4px rgba(var(--accent-rgb), .1); }
.input[aria-invalid="true"] { border-color: #f0a58a; }
.field-error { min-height: 16px; margin: 0; color: #f0a58a; font-size: 12px; }
.check { display: flex; gap: 10px; align-items: flex-start; color: var(--muted); font-size: 12px; line-height: 1.5; }
.check input { width: 18px; height: 18px; margin: 1px 0 0; accent-color: var(--accent); flex: 0 0 18px; }

/* -------------------------------------------------------------- page ----- */
.page-main { position: relative; z-index: 1; overflow-x: clip; padding-top: calc(var(--topbar-h) + clamp(40px, 7vh, 80px)); }
.section { padding-block: clamp(64px, 10vh, 120px); }
.section-head { display: grid; gap: 16px; margin-bottom: clamp(32px, 5vh, 56px); }

/* -------------------------------------------------------------- footer --- */
.site-footer {
  position: relative; z-index: 1;
  border-top: 1px solid var(--line);
  color: var(--dim); font-family: var(--mono); font-size: 11px; line-height: 1.6;
}
.site-footer__inner {
  display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 18px;
  width: var(--page-w); margin-inline: auto; min-height: 72px; padding-block: 18px;
}
.site-footer p { margin: 0; }
.site-footer nav { display: flex; flex-wrap: wrap; gap: 4px 18px; }
.site-footer a { display: inline-flex; align-items: center; min-height: 44px; color: #9da594; text-decoration: none; }
.site-footer a:hover { color: var(--accent); }

/* ------------------------------------------------------- motion toggle --- */
.motion-toggle {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 44px; padding: 8px 0 8px 10px;
  color: #9da594; background: none; border: 0; border-radius: 4px; font-family: var(--mono); font-size: 10px; white-space: nowrap;
}
.motion-toggle:hover:not(:disabled) { color: var(--accent); }
.motion-toggle svg { width: 12px; height: 12px; }
.motion-toggle .play-icon { display: none; }
.motion-paused .motion-toggle .pause-icon { display: none; }
.motion-paused .motion-toggle .play-icon { display: inline; }
.motion-paused *, .motion-paused *::before, .motion-paused *::after { animation-play-state: paused !important; }
.motion-paused .btn { transform: none !important; }

/* Entrada suave para páginas internas (data-reveal) */
[data-reveal] { opacity: 0; transform: translateY(14px); transition: opacity .7s var(--ease), transform .7s var(--ease); }
[data-reveal].is-in { opacity: 1; transform: none; }

/* ----------------------------------------------------------- mini arcade -- */
.mini-arcade { position: relative; width: 100%; }
.mini-arcade__labels {
  display: flex; justify-content: space-between; align-items: center; gap: 12px;
  color: var(--dim); font-family: var(--mono); font-size: 9px; letter-spacing: .08em; text-transform: uppercase;
}
.mini-arcade__labels .label-plus { display: flex; gap: 7px; align-items: center; }
.mini-arcade__labels .label-plus::before { content: "+"; color: #a0aa94; font-size: 13px; }
.mini-arcade__labels b { color: #a3ad98; font-weight: 400; font-variant-numeric: tabular-nums; }
.mini-arcade__stage {
  position: relative; width: 100%; height: 136px; overflow: hidden; cursor: pointer; touch-action: manipulation;
  -webkit-mask-image: linear-gradient(90deg, transparent 0%, #000 5%, #000 95%, transparent 100%);
  mask-image: linear-gradient(90deg, transparent 0%, #000 5%, #000 95%, transparent 100%);
}
.track-ground {
  position: absolute; left: 0; right: 0; bottom: 18px; height: 1px;
  background: linear-gradient(90deg, transparent, #33392b 15%, #33392b 85%, transparent);
}
.track-ground::after {
  content: ""; position: absolute; left: 0; top: 1px; width: 100%; height: 5px; opacity: .55;
  background: repeating-linear-gradient(90deg, #303629 0 1px, transparent 1px 28px);
}
.track-pellets {
  position: absolute; left: 0; right: 0; bottom: 44px; height: 4px; opacity: .24;
  background: radial-gradient(circle at 2px 2px, #b7c49f 1.35px, transparent 1.7px) 0 0 / 29px 4px repeat-x;
}
.mascot-robot {
  position: absolute; left: 0; bottom: 18px; width: 72px; height: 94px; padding: 0; border: 0; border-radius: 16px;
  background: transparent; z-index: 3; will-change: transform; touch-action: manipulation;
}
.mascot-robot .robot-art { position: absolute; left: 0; bottom: 0; width: 72px; height: 94px; overflow: visible; transform-origin: 50% 90%; will-change: transform; }
.mascot-robot .robot-shadow {
  position: absolute; bottom: -3px; left: 15px; width: 42px; height: 7px; border-radius: 50%;
  background: rgba(202, 234, 151, .1); filter: blur(3px);
}
.mascot-robot .antenna-light { filter: drop-shadow(0 0 3px rgba(217, 249, 157, .4)); }
.mascot-robot .speech {
  position: absolute; left: 50%; bottom: 100px; width: max-content; max-width: 200px; padding: 7px 10px;
  background: var(--accent); color: #18220f; border-radius: 8px 8px 8px 2px;
  font-family: var(--mono); font-size: 10px; line-height: 1; font-weight: 600; white-space: nowrap;
  opacity: 0; transform: translate(-50%, 6px) scale(.92); transition: opacity .18s, transform .18s; pointer-events: none;
}
.mascot-robot.is-speaking .speech { opacity: 1; transform: translate(-50%, 0) scale(1); }
.mascot-bug { position: absolute; left: 0; bottom: 19px; width: 58px; height: 46px; z-index: 2; will-change: transform; pointer-events: none; }
.mascot-bug svg { width: 100%; height: 100%; overflow: visible; }
.mascot-bug::after {
  content: ""; position: absolute; bottom: -5px; left: 6px; width: 44px; height: 5px; border-radius: 50%;
  background: rgba(241, 208, 93, .1); filter: blur(3px);
}
.fx-spark {
  position: absolute; z-index: 4; width: 4px; height: 4px; background: var(--accent); pointer-events: none;
  animation: fx-spark .6s ease-out forwards;
}
@keyframes fx-spark { to { transform: translate(var(--sx), var(--sy)) rotate(180deg); opacity: 0; } }
.fx-trail {
  position: absolute; bottom: 21px; width: 3px; height: 3px; z-index: 1; background: #a8c57d; pointer-events: none;
  animation: fx-trail .65s ease-out forwards;
}
@keyframes fx-trail { to { transform: translate(-28px, -8px) rotate(120deg); opacity: 0; } }
.mini-arcade__bottom { display: flex; justify-content: center; align-items: center; gap: 10px; min-height: 28px; }
.jump-hint {
  display: inline-flex; align-items: center; gap: 8px; padding: 6px; border: 0; border-radius: 4px; background: none;
  color: var(--muted); font-family: var(--mono); font-size: 10px; line-height: 1.5; transition: color .2s;
}
.jump-hint:hover { color: var(--accent); }
.jump-hint svg { width: 13px; height: 13px; opacity: .8; flex-shrink: 0; }

/* ------------------------------------------------------------ responsive -- */
@media (max-width: 1080px) {
  .nav a { padding: 9px 8px; font-size: 10px; }
  .status { display: none; }
}
@media (max-width: 900px) {
  :root { --page-w: calc(100% - 64px); --topbar-h: 68px; }
  .menu-toggle { display: inline-flex; }
  .nav {
    position: fixed; inset: var(--topbar-h) 0 auto 0; z-index: 49;
    display: grid; gap: 2px; padding: 14px 32px 22px;
    background: rgba(8, 9, 9, .97); border-bottom: 1px solid var(--line);
    transform: translateY(-8px); opacity: 0; visibility: hidden; transition: opacity .2s, transform .2s, visibility .2s;
  }
  .menu-open .nav { transform: none; opacity: 1; visibility: visible; }
  .nav a { padding: 14px 4px; font-size: 12px; border-bottom: 1px solid var(--line); border-radius: 0; }
  .nav a[aria-current="page"]::after { display: none; }
  .topbar__cta { display: none; }
}
@media (max-width: 600px) {
  :root { --page-w: calc(100% - 32px); --topbar-h: 64px; }
  .brand-mark { font-size: 13px; gap: 9px; }
  .brand-mark svg { width: 24px; height: 24px; flex-basis: 24px; }
  .nav { padding-inline: 16px; }
  .btn { min-height: 54px; font-size: 14px; border-radius: 14px; }
  .btn--sm { min-height: 44px; font-size: 13px; }
  .mini-arcade__stage { height: 132px; }
  .site-footer__inner { font-size: 10px; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
  [data-reveal] { opacity: 1; transform: none; }
  .btn { transform: none !important; }
  .is-typing > .type-display::after { display: none; }
}
@media (forced-colors: active) {
  .btn { border: 2px solid ButtonText; }
  .btn, .btn .arrow-box { forced-color-adjust: none; }
}

/* ------------------------------------------- figurinos e equipamentos ---- */
.mascot-robot .costume, .mascot-robot .eq { opacity: 0; transition: opacity .35s var(--ease); }
.mascot-robot[data-costume="laurel"] .costume-laurel,
.mascot-robot[data-costume="helmet"] .costume-helmet,
.mascot-robot[data-costume="hat"] .costume-hat,
.mascot-robot[data-costume="shades"] .costume-shades,
.mascot-robot[data-eq="shield"] .eq-shield,
.mascot-robot[data-eq="bolt"] .eq-bolt,
.mascot-robot[data-eq="banner"] .eq-banner { opacity: 1; }
.mascot-bug.is-glitch svg { animation: bug-glitch .28s steps(2, end) 2; }
.mascot-bug.is-glitch .bug-ghost { opacity: .32; }
@keyframes bug-glitch { 0% { transform: translate(2px, -1px); } 50% { transform: translate(-3px, 1px) skewX(-6deg); } 100% { transform: none; } }
.mascot-bug.is-fixed .bug-fixed { opacity: 1; transition: opacity .4s; }
