/*
  Paleta extraída de public/styles.css (painel Ancora Bet)
  --void     #050605   fundo
  --ink      #0b0d0a   superfície profunda
  --panel    #111410   superfície
  --line     #2a3226   borda
  --snow     #f7faf4   texto
  --mist     #a8b3a4   texto muted
  --lime     #c8ff00   accent primário
  --lime-ink #081200   texto sobre accent
  --alert    #ff5c5c   aviso
  Variações abaixo só em alpha / mais claro / mais escuro da mesma família.
*/

:root {
  --void: #050605;
  --ink: #0b0d0a;
  --panel: #111410;
  --line: #2a3226;
  --lime: #c8ff00;
  --lime-ink: #081200;
  --mist: #a8b3a4;
  --snow: #f7faf4;
  --alert: #ff5c5c;
  --lime-dim: rgba(200, 255, 0, 0.08);
  --lime-glow: rgba(200, 255, 0, 0.14);
  --line-soft: rgba(42, 50, 38, 0.7);
  --snow-dim: rgba(247, 250, 244, 0.06);
  --radius: 4px;
  --max: 1160px;
  --pad: 24px;
  --nav-h: 64px;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

html, body {
  margin: 0;
  min-height: 100%;
  background: var(--void);
  color: var(--snow);
  font-family: "Plus Jakarta Sans", sans-serif;
  -webkit-font-smoothing: antialiased;
}

body {
  background-image:
    radial-gradient(900px 520px at 78% 12%, var(--lime-glow), transparent 62%),
    linear-gradient(180deg, var(--void), var(--ink) 48%, var(--void));
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 0;
  opacity: 0.04;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 160 160' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

.preloader,
.nav, main, .foot, .dock { position: relative; z-index: 1; }

a { color: inherit; }

.preloader {
  position: fixed;
  inset: 0;
  z-index: 40;
  display: grid;
  place-items: center;
  background: var(--void);
  transition: opacity 0.4s ease, visibility 0.4s;
}

.preloader.is-done {
  opacity: 0;
  visibility: hidden;
}

.preloader-word {
  margin: 0;
  overflow: hidden;
  font-weight: 800;
  letter-spacing: 0.28em;
  font-size: 14px;
  clip-path: inset(0 100% 0 0);
  animation: mask-in 0.7s ease forwards;
}

.preloader-line {
  position: absolute;
  top: 54%;
  width: 72px;
  height: 1px;
  background: var(--lime);
  transform: scaleX(0);
  animation: line-in 0.5s ease 0.35s forwards;
}

.nav {
  position: sticky;
  top: 0;
  z-index: 20;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  min-height: var(--nav-h);
  padding: 0 var(--pad);
  border-bottom: 1px solid transparent;
}

.nav.is-on {
  background: rgba(11, 13, 10, 0.72);
  backdrop-filter: blur(14px);
  border-bottom-color: var(--line);
}

.wordmark {
  font-weight: 800;
  letter-spacing: 0.06em;
  font-size: 13px;
  text-decoration: none;
}

.wordmark span { color: var(--lime); margin-left: 5px; }

.nav-links {
  display: flex;
  gap: 24px;
}

.nav-links a {
  color: var(--mist);
  text-decoration: none;
  font-size: 13px;
  font-weight: 600;
}

.nav-links a:hover { color: var(--snow); }

.go, .ghost {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 0 16px;
  border: 1px solid transparent;
  border-radius: var(--radius);
  font-family: inherit;
  font-size: 13px;
  font-weight: 700;
  text-decoration: none;
  cursor: pointer;
}

.go {
  background: var(--lime);
  color: var(--lime-ink);
  position: relative;
  overflow: hidden;
}

.go::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,0.18), transparent);
  transform: translateX(-110%);
}

.go:hover { filter: brightness(1.06); transform: translateY(-1px); }
.go:hover::after { animation: sheen 0.6s ease; }

.ghost {
  background: transparent;
  color: var(--snow);
  border-color: var(--line);
}

.ghost:hover { border-color: var(--lime); color: var(--lime); }

.go:focus-visible, .ghost:focus-visible, .nav-links a:focus-visible, summary:focus-visible {
  outline: 2px solid var(--lime);
  outline-offset: 3px;
}

.go.xl, .ghost.xl { min-height: 48px; padding: 0 20px; }
.go.huge { width: 100%; min-height: 56px; font-size: 16px; }

.hero, .how, .diff, .install, .dl, .faq, .foot {
  width: min(var(--max), calc(100% - 48px));
  margin: 0 auto;
}

.hero {
  position: relative;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 56px;
  align-items: center;
  min-height: calc(100vh - var(--nav-h));
  padding: 48px 0 64px;
}

.hero::before {
  content: "";
  position: absolute;
  inset: 8% -10% auto auto;
  width: 56%;
  height: 70%;
  background:
    linear-gradient(var(--line-soft) 1px, transparent 1px),
    linear-gradient(90deg, var(--line-soft) 1px, transparent 1px);
  background-size: 48px 48px;
  mask-image: linear-gradient(180deg, rgba(0,0,0,0.35), transparent 85%);
  transform: perspective(600px) rotateX(62deg);
  pointer-events: none;
  z-index: -1;
}

.eyebrow, .kicker {
  margin: 0 0 16px;
  color: var(--lime);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

h1 {
  margin: 0;
  font-size: clamp(40px, 5.4vw, 68px);
  line-height: 0.94;
  letter-spacing: -0.045em;
  font-weight: 800;
}

h2 {
  margin: 0;
  font-size: clamp(28px, 4vw, 44px);
  letter-spacing: -0.04em;
  font-weight: 800;
}

.lead {
  margin: 20px 0 0;
  max-width: 40ch;
  font-size: 16px;
  line-height: 1.55;
  color: var(--mist);
}

.cta { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 28px; }

.meta {
  margin: 16px 0 0;
  font-family: "IBM Plex Mono", monospace;
  font-size: 12px;
  color: var(--mist);
}

.stage { perspective: 1400px; }

.window {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--ink);
  box-shadow: 0 32px 80px rgba(0, 0, 0, 0.5), 0 0 80px var(--lime-dim);
  overflow: hidden;
}

.chrome {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 10px 14px;
  background: var(--panel);
  border-bottom: 1px solid var(--line);
}

.dot { width: 8px; height: 8px; border-radius: 50%; background: #2f382c; }
.dot:first-child { background: var(--alert); }
.dot:nth-child(2) { background: var(--lime); }

.chrome em {
  margin-left: 8px;
  font-style: normal;
  font-family: "IBM Plex Mono", monospace;
  font-size: 11px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--mist);
}

.table {
  position: relative;
  min-height: 320px;
  padding: 24px;
  background:
    radial-gradient(circle at 70% 80%, rgba(200, 255, 0, 0.05), transparent 46%),
    var(--void);
}

.hud {
  width: min(280px, 100%);
  padding: 16px;
  background: rgba(11, 13, 10, 0.88);
  border: 1px solid var(--line);
  border-bottom: 3px solid var(--lime);
  border-radius: var(--radius);
}

.hud-kicker {
  margin: 0;
  color: var(--lime);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.balance {
  margin: 8px 0 0;
  font-weight: 800;
  font-size: clamp(32px, 4vw, 40px);
  letter-spacing: -0.04em;
  line-height: 1;
  font-variant-numeric: tabular-nums;
}

.hud-note { margin: 8px 0 0; color: var(--mist); font-size: 12px; }

.hud ul {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin: 12px 0 0;
  padding: 0;
  list-style: none;
}

.hud li {
  padding: 4px 8px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  color: var(--mist);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.proof {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0;
  padding: 20px var(--pad);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  background: var(--ink);
}

.proof p {
  margin: 0;
  padding: 8px 20px;
  color: var(--mist);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.proof p + p { border-left: 1px solid var(--line); }

.how { padding: 96px 0 40px; }

.acts {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
  margin-top: 40px;
}

.act {
  padding: 24px;
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  min-height: 280px;
  transition: transform 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease;
}

.act:hover {
  transform: translateY(-4px);
  border-color: var(--lime);
  box-shadow: inset 0 0 40px var(--lime-dim);
}

.diag {
  width: 88px;
  height: 56px;
  color: var(--lime);
  margin-bottom: 24px;
}

.act span {
  display: block;
  font-family: "IBM Plex Mono", monospace;
  font-size: 12px;
  color: var(--lime);
}

.act h3 { margin: 10px 0 8px; font-size: 20px; }
.act p { margin: 0; color: var(--mist); line-height: 1.5; }

.diff { padding: 80px 0; }

.diff-grid {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  gap: 16px;
  align-items: stretch;
}

.side {
  padding: 32px 28px;
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: var(--radius);
}

.side.dim { opacity: 0.78; }

.diff-value {
  margin: 12px 0 0;
  font-size: clamp(32px, 4vw, 48px);
  font-weight: 800;
  letter-spacing: -0.04em;
  font-variant-numeric: tabular-nums;
}

.diff-value.quiet { color: var(--mist); font-size: clamp(28px, 3.4vw, 40px); }
.diff-status { margin: 8px 0 0; color: var(--mist); font-size: 13px; }

.bridge {
  display: flex;
  align-items: center;
  min-width: 132px;
  position: relative;
}

.bridge::before {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  height: 1px;
  background: var(--line);
}

.bridge span {
  position: relative;
  padding: 4px 8px;
  background: var(--void);
  color: var(--lime);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  text-align: center;
}

.diff-copy {
  margin: 28px 0 0;
  max-width: 42ch;
  color: var(--mist);
  font-size: 16px;
}

.install { padding: 48px 0 80px; }

.rail {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0;
  margin: 40px 0 0;
  padding: 0;
  list-style: none;
  counter-reset: step;
}

.rail li {
  position: relative;
  padding: 0 20px 0 0;
  counter-increment: step;
}

.rail li::before {
  content: counter(step, decimal-leading-zero);
  display: block;
  margin-bottom: 14px;
  color: var(--lime);
  font-family: "IBM Plex Mono", monospace;
  font-size: 12px;
  font-weight: 700;
}

.rail li:not(:last-child)::after {
  content: "";
  position: absolute;
  top: 8px;
  left: 36px;
  right: 12px;
  height: 1px;
  background: var(--line);
}

.rail strong { display: block; font-size: 16px; }
.rail span { display: block; margin-top: 8px; color: var(--mist); font-size: 14px; line-height: 1.45; }

.callout {
  margin-top: 36px;
  padding: 18px 0 18px 18px;
  border-left: 2px solid var(--lime);
  color: var(--snow);
  font-size: 16px;
  line-height: 1.5;
}

.dl { padding: 24px 0 80px; }

.dl-card {
  padding: 40px;
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: var(--radius);
}

.dl-card h2 { margin: 0 0 24px; font-size: 40px; }

.dl-card dl {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px 24px;
  margin: 0 0 28px;
}

.dl-card dt {
  color: var(--mist);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.dl-card dd { margin: 6px 0 0; font-weight: 700; }

.under { margin: 14px 0 0; color: var(--mist); font-size: 13px; }

.faq { padding: 0 0 96px; }
.acc { margin-top: 32px; border-top: 1px solid var(--line); }

details {
  border-bottom: 1px solid var(--line);
}

summary {
  list-style: none;
  cursor: pointer;
  padding: 18px 0;
  font-weight: 700;
  font-size: 16px;
}

summary::-webkit-details-marker { display: none; }

details p {
  margin: 0;
  max-height: 0;
  overflow: hidden;
  color: var(--mist);
  line-height: 1.5;
}

details[open] p {
  max-height: 160px;
  padding-bottom: 18px;
}

.foot {
  padding: 32px 0 40px;
  border-top: 1px solid var(--line);
}

.foot-top {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
}

.foot nav { display: flex; flex-wrap: wrap; gap: 16px; }
.foot nav a { color: var(--mist); text-decoration: none; font-size: 13px; }
.foot nav a:hover { color: var(--snow); }

.legal { margin: 24px 0 0; max-width: 54ch; color: var(--mist); font-size: 13px; }
.year { margin: 12px 0 0; color: var(--mist); font-size: 12px; font-family: "IBM Plex Mono", monospace; }

.dock {
  display: none;
  position: fixed;
  left: 16px;
  right: 16px;
  bottom: 16px;
  z-index: 15;
  min-height: 48px;
  align-items: center;
  justify-content: center;
  background: var(--lime);
  color: var(--lime-ink);
  font-weight: 800;
  text-decoration: none;
  border-radius: var(--radius);
}

.dock.is-hide { display: none !important; }

.reveal { opacity: 0; transform: translateY(24px); }
.reveal.is-in { opacity: 1; transform: none; transition: opacity 0.6s ease, transform 0.6s ease; }

.acts .reveal:nth-child(2) { transition-delay: 0.07s; }
.acts .reveal:nth-child(3) { transition-delay: 0.14s; }
.rail .reveal:nth-child(2) { transition-delay: 0.06s; }
.rail .reveal:nth-child(3) { transition-delay: 0.12s; }
.rail .reveal:nth-child(4) { transition-delay: 0.18s; }

@keyframes mask-in { to { clip-path: inset(0 0 0 0); } }
@keyframes line-in { to { transform: scaleX(1); } }
@keyframes sheen { to { transform: translateX(110%); } }

@media (max-width: 1280px) {
  .hero { gap: 40px; }
}

@media (max-width: 1024px) {
  .hero { grid-template-columns: 1fr; min-height: auto; padding-top: 32px; }
  .hero::before { display: none; }
  .acts { grid-template-columns: 1fr 1fr; }
  .diff-grid { grid-template-columns: 1fr; }
  .bridge { min-height: 40px; justify-content: center; }
  .bridge::before { left: 20%; right: 20%; }
}

@media (max-width: 768px) {
  .nav-links { display: none; }
  .acts, .rail, .dl-card dl { grid-template-columns: 1fr; }
  .rail li { padding: 0 0 24px 0; }
  .rail li:not(:last-child)::after {
    top: 28px;
    left: 0;
    right: auto;
    width: 1px;
    height: calc(100% - 28px);
  }
  .proof p + p { border-left: 0; }
  .proof { gap: 8px 0; }
  .proof p { width: 50%; border: 0; }
  .dl-card { padding: 24px; }
  .dock { display: flex; }
  .hero, .how, .diff, .install, .dl, .faq, .foot { width: min(var(--max), calc(100% - 32px)); }
}

@media (max-width: 430px) {
  h1 { font-size: 36px; }
  .cta { flex-direction: column; }
  .cta .go, .cta .ghost { width: 100%; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .preloader-word, .preloader-line, .go::after { animation: none; }
  .reveal { opacity: 1; transform: none; }
  .act:hover { transform: none; }
}
