/* =============================================================================
   system.css — starter da identidade (dark editorial poster)
   Drop-in pra outra marca. Sem copy do grok.bot. Sem barcode de loteria.
   Tokens extraídos de styles.css (audit 2026-08-21) + hardcoded tokenizados.
   Dark only. Troque --acid / --violet / --on-acid no :root.
   ============================================================================= */

:root {
  /* --- canvas ------------------------------------------------------------- */
  --night: #08090b;
  --night-wash: rgb(40, 39, 48);          /* #282730 — radial start */
  --grid: rgba(255, 255, 255, 0.024);     /* graph paper 64px */
  --ink: #f3f2ee;
  --muted: #9a9aa4;

  /* --- acento + invert ---------------------------------------------------- */
  --acid: #d8ff3e;                        /* fill da superfície invert + glow */
  --violet: #8c5bff;                      /* atmosfera só — órfão de UI */
  --on-acid: #10110d;                     /* rgb(16,17,13) — canônico */
  --on-acid-ticket: #11130c;              /* rgb(17,19,12) — drift 1 dígito */

  /* --- texto secundário --------------------------------------------------- */
  --note: rgb(199, 198, 202);             /* #c7c6ca */
  --note-strong: #fff;
  --turn-secondary: rgb(111, 111, 119);   /* #6f6f77 */
  --turn-body: rgb(183, 182, 188);        /* #b7b6bc */
  --fine: rgb(119, 119, 127);             /* #77777f */

  /* --- hairlines ---------------------------------------------------------- */
  --line: rgba(255, 255, 255, 0.14);
  --orbit-ring: rgba(255, 255, 255, 0.13);
  --line-on-acid: rgba(0, 0, 0, 0.28);
  --dash-on-acid: rgba(0, 0, 0, 0.45);
  --eyebrow-on-acid: rgba(16, 17, 13, 0.6);
  --ring-on-acid: rgba(16, 17, 13, 0.06);
  --contact-muted: rgba(0, 0, 0, 0.55);

  /* --- décor -------------------------------------------------------------- */
  --orbit-glow: rgba(140, 91, 255, 0.1);  /* violet @ 10% */
  --ticket-shadow: rgba(0, 0, 0, 0.55) 0 40px 100px;

  /* --- tipo --------------------------------------------------------------- */
  --font-display: Manrope, Arial, sans-serif;
  --font-mono: "DM Mono", monospace;

  /* --- espaço (escala 8-ish inferida; leftovers ficam cru) --------------- */
  --space-1: 8px;
  --space-2: 16px;
  --space-3: 24px;
  --space-4: 36px;
  --space-5: 48px;
  --space-6: 64px;
  --space-7: 96px;
  --space-8: 110px;
  --space-9: 140px;

  /* --- raios -------------------------------------------------------------- */
  --radius-artifact: 6px;
  --radius-invert: 22px;
  --radius-invert-sm: 14px;               /* ≤600 */

  /* --- movimento ---------------------------------------------------------- */
  --orbit-slow: 16s;
  --orbit-fast: 11s;
  --duration-artifact: 0.35s;
  --duration-fade: 0.2s;

  /* --- wrap --------------------------------------------------------------- */
  --wrap-max: 1200px;
  --wrap-gutter: 48px;                    /* 24+24 */
  --wrap-gutter-sm: 28px;                 /* 14+14 */
}

/* --- base ----------------------------------------------------------------- */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; color-scheme: dark; }
body {
  margin: 0;
  background: var(--night);
  color: var(--ink);
  font-family: var(--font-display);
  font-weight: 400;
  overflow-x: hidden;
}
a { color: inherit; text-decoration: none; }
a:focus-visible {
  outline: 2px solid var(--acid);
  outline-offset: 3px;
}

/* --- wrap ----------------------------------------------------------------- */
.wrap {
  width: min(var(--wrap-max), 100% - var(--wrap-gutter));
  margin-inline: auto;
}

/* --- atmosphere ----------------------------------------------------------- */
/* Aplique em <main class="atmosphere"> ou num wrapper de página. */
.atmosphere {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  background-image:
    linear-gradient(var(--grid) 1px, transparent 1px),
    linear-gradient(90deg, var(--grid) 1px, transparent 1px);
  background-size: 64px 64px;
}
.atmosphere::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -2;
  pointer-events: none;
  background: radial-gradient(circle at 50% -20%, var(--night-wash) 0, var(--night) 45%);
}
.ambient {
  position: absolute;
  z-index: -1;
  width: 460px;
  height: 460px;
  border-radius: 50%;
  filter: blur(130px);
  pointer-events: none;
}
.ambient-one { top: 20%; right: -190px; background: var(--violet); opacity: 0.16; }
.ambient-two { top: 62%; left: -300px; background: var(--acid); opacity: 0.08; }

/* --- type roles ----------------------------------------------------------- */
/* Display = tracking apertado + lh < 1. Kicker = mono uppercase + tracking largo. */

.type-wordmark {
  font-family: var(--font-display);
  font-size: 21px;
  font-weight: 800;
  letter-spacing: -0.06em;
  color: var(--ink);
}
.type-wordmark span,
.wordmark span { color: var(--acid); }

.type-display-xl {
  margin: 0;
  font-family: var(--font-display);
  font-size: clamp(76px, 10.5vw, 164px);
  font-weight: 800;
  line-height: 0.81;
  letter-spacing: -0.095em;
}

.type-display-lg {
  margin: 0;
  font-family: var(--font-display);
  font-size: clamp(48px, 7vw, 102px);
  font-weight: 700;                       /* explícito — o original dependia do UA */
  line-height: 0.96;
  letter-spacing: -0.07em;
}

.type-display-price {
  font-family: var(--font-display);
  font-size: clamp(110px, 15vw, 208px);
  font-weight: 800;
  line-height: 0.75;
  letter-spacing: -0.1em;
  white-space: nowrap;
}
.type-display-price .currency,
.type-display-price span {
  display: inline-block;
  margin-right: 5px;
  font-size: 0.26em;
  vertical-align: top;
  transform: translateY(-4px);
}

.type-lede {
  max-width: 610px;
  margin: 38px 0 0;
  font-family: var(--font-display);
  font-size: clamp(26px, 3vw, 43px);
  font-weight: 500;
  line-height: 1.08;
  letter-spacing: -0.05em;
}
.type-lede em {
  color: var(--acid);
  font-style: normal;
}

.type-title-sm {
  margin: 0;
  font-family: var(--font-display);
  font-size: 28px;
  font-weight: 700;
  letter-spacing: -0.04em;
}

.type-body {
  font-family: var(--font-display);
  font-size: 17px;
  font-weight: 400;
  line-height: 1.7;
}
.type-body-lg {
  font-family: var(--font-display);
  font-size: 20px;
  font-weight: 400;
  line-height: 1.55;
}

.type-kicker {
  margin: 0;
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--muted);
}

.type-meta {
  font-family: var(--font-mono);
  font-size: 10px;
  font-weight: 400;
  line-height: 1.5;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--muted);
}

/* --- wordmark ------------------------------------------------------------- */
.wordmark {
  font-family: var(--font-display);
  font-size: 21px;
  font-weight: 800;
  letter-spacing: -0.06em;
}

/* --- eyebrow / kicker + glow dot ----------------------------------------- */
.eyebrow {
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 0 0 var(--space-3);
  color: var(--muted);
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}
.eyebrow > span {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--acid);
  box-shadow: 0 0 16px var(--acid);
}
.eyebrow.light { color: var(--eyebrow-on-acid); }
.eyebrow.light > span {
  background: var(--on-acid);
  box-shadow: none;
}

/* --- note / pull ---------------------------------------------------------- */
.note {
  max-width: 585px;
  margin-top: 46px;
  padding-left: var(--space-3);
  border-left: 1px solid var(--line);
  color: var(--note);
  font-size: 17px;
  line-height: 1.7;
}
.note p { margin: 0; }
.note strong { color: var(--note-strong); font-weight: 700; }
.note .aside {
  margin-top: 14px;
  color: var(--muted);
  font-family: var(--font-mono);
  font-size: 12px;
}

/* --- invert panel --------------------------------------------------------- */
.invert-panel {
  position: relative;
  overflow: hidden;
  min-height: 480px;
  display: grid;
  grid-template-columns: 1fr 1.35fr 1fr;
  align-items: center;
  gap: var(--space-4);
  padding: var(--space-6);
  color: var(--on-acid);
  background: var(--acid);
  border-radius: var(--radius-invert);
}
.invert-panel::after {
  content: "";
  position: absolute;
  right: -70px;
  bottom: -170px;
  width: 400px;
  height: 400px;
  border: 80px solid var(--ring-on-acid);
  border-radius: 50%;
  pointer-events: none;
}
.invert-panel a:focus-visible {
  outline-color: var(--on-acid);
}

/* contact row — NÃO é botão. Hover original era opacity 0.62 (não copiar). */
.contact-row {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 5px 16px;
  align-items: center;
  padding-top: 18px;
  border-top: 1px solid var(--line-on-acid);
  font-size: 14px;
  font-weight: 700;
  overflow-wrap: anywhere;
  transition: transform var(--duration-fade);
}
.contact-row:hover { transform: translateX(4px); }
.contact-row span {
  color: var(--contact-muted);
  font: 500 9px/1 var(--font-mono);
  letter-spacing: 0.08em;
  text-transform: uppercase;
}
.contact-row small {
  color: var(--contact-muted);
  font: 500 9px/1.2 var(--font-mono);
  letter-spacing: 0.04em;
}
.contact-row svg { grid-area: 1 / 2 / 4; width: 22px; }

/* --- artifact (objeto único no palco; sem barcode de loteria) ------------ */
.artifact {
  position: relative;
  z-index: 2;
  width: 336px;
  padding: var(--space-3);
  color: var(--on-acid);
  background: var(--acid);
  border-radius: var(--radius-artifact);
  box-shadow: var(--ticket-shadow);
  transform: rotate(-5deg);
  transition: transform var(--duration-artifact);
}
.artifact:hover { transform: rotate(0) scale(1.03); }

.orbit-stage {
  position: relative;
  display: grid;
  place-items: center;
  min-height: 560px;
}
.orbit-stage::before {
  content: "";
  position: absolute;
  width: 380px;
  height: 380px;
  border-radius: 50%;
  background: var(--orbit-glow);
  filter: blur(30px);
}
.orbit {
  position: absolute;
  border: 1px solid var(--orbit-ring);
  border-radius: 50%;
  animation: spin var(--orbit-slow) linear infinite;
}
.orbit-one { width: 490px; height: 490px; }
.orbit-two { width: 370px; height: 370px; animation-duration: var(--orbit-fast); animation-direction: reverse; }
.orbit i {
  position: absolute;
  top: 50%;
  left: -5px;
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--acid);
  box-shadow: 0 0 22px var(--acid);
}
@keyframes spin { 100% { transform: rotate(360deg); } }

/* --- page chrome (nav / footer) ------------------------------------------ */
.page-nav {
  min-height: 92px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid var(--line);
}
.page-footer {
  min-height: 130px;
  display: grid;
  grid-template-columns: 1fr 2fr 1fr;
  align-items: center;
  border-top: 1px solid var(--line);
  color: var(--muted);
  font: 400 10px/1.5 var(--font-mono);
  text-transform: uppercase;
  letter-spacing: 0.06em;
}
.page-footer p { margin: 0; }
.page-footer p:nth-of-type(1) { text-align: center; }
.page-footer p:last-child { text-align: right; }

/* --- hero / turn skeletons (opcional) ------------------------------------ */
.page-hero {
  min-height: 760px;
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  align-items: center;
  gap: var(--space-6);
  padding-block: 86px var(--space-8);
}
.page-turn {
  padding-block: var(--space-9) 150px;
  border-top: 1px solid var(--line);
}

/* --- reduced motion ------------------------------------------------------ */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .orbit { animation: none; }
  .artifact,
  .contact-row { transition: none; }
}

/* --- 900 ----------------------------------------------------------------- */
@media (max-width: 900px) {
  .page-hero { grid-template-columns: 1fr; padding-top: 72px; }
  .orbit-stage { min-height: 500px; }
  .invert-panel { grid-template-columns: 1fr; gap: 38px; padding: var(--space-5); }
  .type-display-price { font-size: clamp(120px, 32vw, 190px); }
}

/* --- 600 ----------------------------------------------------------------- */
@media (max-width: 600px) {
  .wrap { width: min(100% - var(--wrap-gutter-sm), var(--wrap-max)); }
  .page-nav { min-height: 76px; }
  .page-hero { min-height: auto; gap: var(--space-3); padding-block: 70px; }
  .type-display-xl { font-size: clamp(74px, 25vw, 120px); }
  .type-lede { margin-top: 28px; }
  .note { margin-top: 34px; font-size: 15px; }
  .orbit-stage { min-height: 430px; }
  .orbit-one { width: 390px; height: 390px; }
  .orbit-two { width: 290px; height: 290px; }
  .artifact { width: 280px; padding: 20px; }
  .page-turn { padding-block: var(--space-7) var(--space-8); }
  .type-display-lg { font-size: clamp(50px, 15vw, 80px); }
  .type-body-lg { font-size: 17px; }
  .invert-panel {
    min-height: 560px;
    padding: 34px 26px;
    border-radius: var(--radius-invert-sm);
  }
  .type-display-price { font-size: 37vw; }
  .page-footer {
    min-height: 190px;
    grid-template-columns: 1fr auto;
    gap: 26px;
    padding-block: var(--space-4);
  }
  .page-footer p:nth-of-type(1) { grid-area: 2 / 1 / auto / 3; text-align: left; }
}
