/* Tyche — site público: hero e telas de acesso */

@font-face {
  font-family: "Cinzel";
  src: url("/assets/fonts/cinzel-latin.woff2") format("woff2");
  font-weight: 400 900;
  font-display: swap;
}
@font-face {
  font-family: "Instrument Sans";
  src: url("/assets/fonts/instrument-sans-latin.woff2") format("woff2");
  font-weight: 400 700;
  font-display: swap;
}
@font-face {
  font-family: "JetBrains Mono";
  src: url("/assets/fonts/jetbrains-mono-latin.woff2") format("woff2");
  font-weight: 100 800;
  font-display: swap;
}

:root {
  --bg: #0a0a0a;
  --bg-2: #111111;
  --bg-3: #1a1a1a;
  --gold: #ffb400;
  --gold-soft: #ffd166;
  --cyan: #00ffe7;
  --text: #e8e8e8;
  --muted: #9a9a9a;
  --success: #00ff88;
  --danger: #ff5a4f;
  --border: #2a2a2a;
  --radius: 14px;
  --font-title: "Cinzel", "Trajan Pro", Georgia, serif;
  --font-ui: "Instrument Sans", system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
  --font-mono: "JetBrains Mono", "Fira Mono", Consolas, monospace;
  --pad: clamp(16px, 5vw, 56px);
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-ui);
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; }
[hidden] { display: none !important; }
a { color: var(--cyan); text-underline-offset: 3px; }
a:hover { color: #7dfff1; }
:focus-visible { outline: 2px solid var(--cyan); outline-offset: 3px; border-radius: 6px; }

.skip {
  position: absolute; left: 12px; top: -60px; z-index: 100;
  background: var(--gold); color: #0a0a0a; padding: 10px 16px; border-radius: 8px; font-weight: 600;
}
.skip:focus { top: 12px; }

/* ---------- botões ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: 48px; padding: 0 26px; border-radius: 12px; border: 1px solid transparent;
  font: 600 1rem/1 var(--font-ui); text-decoration: none; cursor: pointer;
  transition: transform .15s ease, box-shadow .2s ease, background .2s ease, border-color .2s ease;
}
.btn:active { transform: translateY(1px); }
.btn-gold {
  background: linear-gradient(180deg, #ffc82e, var(--gold));
  color: #0a0a0a;
  box-shadow: 0 0 0 1px rgba(255, 180, 0, .5), 0 8px 28px rgba(255, 180, 0, .25);
}
.btn-gold:hover { color: #0a0a0a; box-shadow: 0 0 0 1px rgba(255, 200, 46, .9), 0 10px 34px rgba(255, 180, 0, .42); }
.btn-ghost { background: rgba(255, 255, 255, .04); color: var(--text); border-color: rgba(255, 255, 255, .28); backdrop-filter: blur(6px); }
.btn-ghost:hover { color: #fff; border-color: var(--cyan); background: rgba(0, 255, 231, .08); }
.btn[disabled] { opacity: .55; cursor: not-allowed; }
.btn-small { min-height: 40px; padding: 0 18px; font-size: .95rem; }

/* ---------- cabeçalho ---------- */
.site-header {
  position: absolute; inset: 0 0 auto 0; z-index: 20;
  display: flex; align-items: center; justify-content: space-between;
  padding: 18px var(--pad);
  max-width: 1280px; margin: 0 auto;
}
.brand { display: inline-flex; align-items: center; gap: 12px; color: var(--text); text-decoration: none; }
.brand img { width: 40px; height: 40px; filter: drop-shadow(0 0 10px rgba(255, 180, 0, .55)); }
.brand span { font: 700 1.5rem/1 var(--font-title); letter-spacing: .22em; }
.brand:hover { color: var(--gold-soft); }
.nav { display: flex; align-items: center; gap: 14px; }
.nav a:not(.btn) { color: var(--muted); text-decoration: none; font-weight: 500; }
.nav a:not(.btn):hover { color: var(--text); }

/* ---------- hero ---------- */
.hero {
  position: relative; min-height: 100svh; display: flex; flex-direction: column; justify-content: center;
  overflow: hidden; isolation: isolate;
}
.hero-bg { position: absolute; inset: 0; z-index: -3; }
.hero-bg img { width: 100%; height: 100%; object-fit: cover; object-position: 72% center; }
.hero::before {
  content: ""; position: absolute; inset: 0; z-index: -2;
  background:
    linear-gradient(90deg, #0a0a0a 8%, rgba(10, 10, 10, .86) 38%, rgba(10, 10, 10, .15) 74%),
    linear-gradient(0deg, #0a0a0a 0%, rgba(10, 10, 10, 0) 26%);
}
.hero-inner { width: 100%; max-width: 1280px; margin: 0 auto; padding: 120px var(--pad) 150px; }
.hero-copy { max-width: 640px; }
.eyebrow {
  display: inline-flex; align-items: center; gap: 10px;
  font: 500 .78rem/1 var(--font-mono); letter-spacing: .16em; text-transform: uppercase; color: var(--gold);
}
.eyebrow::before { content: ""; width: 34px; height: 1px; background: linear-gradient(90deg, transparent, var(--gold)); }
.hero h1 {
  margin: 18px 0 0; font: 700 clamp(2.4rem, 6.4vw, 4.6rem)/1.06 var(--font-title); letter-spacing: .02em;
  text-wrap: balance;
}
.hero h1 em {
  font-style: normal;
  background: linear-gradient(95deg, var(--gold-soft), var(--gold) 45%, var(--cyan));
  -webkit-background-clip: text; background-clip: text; color: transparent;
}
.lead { margin: 22px 0 0; font-size: clamp(1.05rem, 2.2vw, 1.25rem); color: #cfcfcf; max-width: 54ch; }
.cta-row { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 34px; }
.cta-note { margin: 14px 0 0; font-size: .9rem; color: var(--muted); }
.cta-note strong { color: var(--text); font-weight: 600; }

.hero-stats {
  position: absolute; left: 0; right: 0; bottom: 0;
  border-top: 1px solid rgba(255, 255, 255, .08);
  background: linear-gradient(180deg, rgba(10, 10, 10, .2), rgba(10, 10, 10, .88));
  backdrop-filter: blur(8px);
}
.stats {
  max-width: 1280px; margin: 0 auto; padding: 20px var(--pad);
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; list-style: none;
}
.stats li { display: flex; flex-direction: column; gap: 2px; }
.stats b { font: 700 clamp(1.3rem, 3vw, 1.9rem)/1 var(--font-title); color: var(--gold); }
.stats span { font: 500 .74rem/1.3 var(--font-mono); letter-spacing: .08em; text-transform: uppercase; color: var(--muted); }

/* partículas decorativas (dados e moedas) */
.sparks { position: absolute; inset: 0; z-index: -1; pointer-events: none; overflow: hidden; }
.sparks i {
  position: absolute; bottom: -20px; width: 6px; height: 6px; border-radius: 50%;
  background: var(--gold); box-shadow: 0 0 12px 2px rgba(255, 180, 0, .7);
  opacity: 0; animation: rise 11s linear infinite;
}
.sparks i:nth-child(3n) { background: var(--cyan); box-shadow: 0 0 12px 2px rgba(0, 255, 231, .6); width: 4px; height: 4px; }
.sparks i:nth-child(1) { left: 58%; animation-delay: 0s; }
.sparks i:nth-child(2) { left: 66%; animation-delay: 2s; animation-duration: 13s; }
.sparks i:nth-child(3) { left: 74%; animation-delay: 4s; }
.sparks i:nth-child(4) { left: 82%; animation-delay: 1s; animation-duration: 9s; }
.sparks i:nth-child(5) { left: 90%; animation-delay: 6s; }
.sparks i:nth-child(6) { left: 62%; animation-delay: 7s; animation-duration: 14s; }
.sparks i:nth-child(7) { left: 78%; animation-delay: 3s; }
.sparks i:nth-child(8) { left: 94%; animation-delay: 8s; animation-duration: 12s; }
@keyframes rise {
  0% { transform: translateY(0) scale(.6); opacity: 0; }
  12% { opacity: .9; }
  100% { transform: translateY(-82vh) translateX(-30px) scale(1.1); opacity: 0; }
}

/* ---------- seções ---------- */
section { position: relative; }
.wrap { max-width: 1280px; margin: 0 auto; padding: 0 var(--pad); }
.section { padding: clamp(64px, 10vw, 120px) 0; }
.section-title { font: 700 clamp(1.7rem, 4vw, 2.6rem)/1.15 var(--font-title); margin: 12px 0 0; letter-spacing: .02em; text-wrap: balance; }
.section-lead { color: var(--muted); max-width: 60ch; margin: 14px 0 0; font-size: 1.05rem; }
.center { text-align: center; }
.center .section-lead { margin-left: auto; margin-right: auto; }
.center .eyebrow { justify-content: center; }

.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; margin: 48px 0 0; padding: 0; list-style: none; counter-reset: step; }
.step {
  position: relative; padding: 28px 26px 30px; border-radius: var(--radius);
  background: linear-gradient(160deg, #151515, #0d0d0d); border: 1px solid var(--border);
  counter-increment: step; overflow: hidden;
}
.step::before {
  content: "0" counter(step); position: absolute; right: 18px; top: 8px;
  font: 700 3.6rem/1 var(--font-title); color: rgba(255, 180, 0, .09);
}
.step svg { width: 44px; height: 44px; stroke: var(--gold); fill: none; stroke-width: 1.5; stroke-linecap: round; stroke-linejoin: round; }
.step h3 { margin: 18px 0 6px; font: 600 1.15rem/1.3 var(--font-ui); }
.step p { margin: 0; color: var(--muted); }

/* galeria */
.gallery-head { display: flex; align-items: end; justify-content: space-between; gap: 24px; flex-wrap: wrap; }
.rail {
  display: flex; gap: 18px; overflow-x: auto; padding: 36px var(--pad) 28px; margin: 0 calc(var(--pad) * -1);
  scroll-snap-type: x proximity; scrollbar-width: thin; scrollbar-color: #333 transparent;
}
.shot { flex: 0 0 auto; width: clamp(180px, 22vw, 240px); scroll-snap-align: start; margin: 0; }
.shot img {
  width: 100%; aspect-ratio: 9 / 19; object-fit: cover; object-position: top;
  border-radius: 22px; border: 1px solid #2c2c2c; background: #000;
  box-shadow: 0 18px 40px rgba(0, 0, 0, .55), 0 0 0 4px #0f0f0f;
  transition: transform .25s ease, box-shadow .25s ease, border-color .25s ease;
}
.shot:hover img { transform: translateY(-6px); border-color: rgba(0, 255, 231, .5); box-shadow: 0 24px 50px rgba(0, 0, 0, .65), 0 0 28px rgba(0, 255, 231, .14); }
.shot figcaption { margin-top: 14px; display: flex; flex-direction: column; gap: 2px; }
.shot b { font-weight: 600; }
.shot span { font: 500 .72rem/1.3 var(--font-mono); letter-spacing: .1em; text-transform: uppercase; color: var(--gold); }

.cats { display: flex; flex-wrap: wrap; gap: 10px; margin: 0; padding: 0; list-style: none; }
.cats li {
  padding: 8px 16px; border-radius: 999px; font-size: .9rem; color: var(--text);
  border: 1px solid #333; background: #121212;
}

/* transparência */
.proof { background: radial-gradient(900px 400px at 85% 0%, rgba(0, 255, 231, .07), transparent 60%), #0c0c0c; border-block: 1px solid #1c1c1c; }
.proof-grid { display: grid; grid-template-columns: 1.1fr 1fr; gap: clamp(28px, 6vw, 80px); align-items: center; }
.ticks { margin: 26px 0 0; padding: 0; list-style: none; display: grid; gap: 14px; }
.ticks li { display: flex; gap: 14px; align-items: flex-start; color: #cfcfcf; }
.ticks svg { flex: none; width: 22px; height: 22px; margin-top: 2px; stroke: var(--cyan); fill: none; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.terminal {
  border-radius: var(--radius); border: 1px solid #262626; background: #0a0a0a; overflow: hidden;
  box-shadow: 0 20px 50px rgba(0, 0, 0, .5);
}
.terminal-bar { display: flex; gap: 7px; padding: 12px 14px; background: #141414; border-bottom: 1px solid #222; }
.terminal-bar i { width: 11px; height: 11px; border-radius: 50%; background: #333; }
.terminal pre { margin: 0; padding: 20px; font: 500 .84rem/1.75 var(--font-mono); color: #b8c4c2; overflow-x: auto; white-space: pre; }
.terminal .k { color: var(--gold); }
.terminal .v { color: var(--cyan); }
.terminal .ok { color: var(--success); }

.final { text-align: center; background: radial-gradient(700px 320px at 50% 100%, rgba(255, 180, 0, .12), transparent 70%); }
.final .cta-row { justify-content: center; }

.site-footer { border-top: 1px solid #1c1c1c; padding: 30px 0 40px; color: var(--muted); font-size: .9rem; }
.footer-inner { display: flex; flex-wrap: wrap; gap: 14px 28px; justify-content: space-between; align-items: center; }
.footer-inner a { color: var(--muted); }

/* ---------- telas de acesso ---------- */
.auth {
  min-height: 100svh; display: grid; grid-template-columns: minmax(0, 520px) 1fr;
  background: var(--bg);
}
.auth-panel { display: flex; flex-direction: column; padding: 26px var(--pad) 36px; position: relative; z-index: 1; background: linear-gradient(180deg, #0c0c0c, #080808); }
.auth-panel .brand { align-self: flex-start; }
.auth-box { margin: auto 0; padding: 40px 0; width: 100%; max-width: 420px; }
.auth-box h1 { margin: 12px 0 8px; font: 700 clamp(1.7rem, 4.4vw, 2.2rem)/1.15 var(--font-title); letter-spacing: .02em; }
.auth-box > p { color: var(--muted); margin: 0 0 26px; }
.auth-art { position: relative; overflow: hidden; }
.auth-art img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: 72% center; }
.auth-art::after { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, #080808 0%, rgba(8, 8, 8, .1) 45%); }
.auth-art blockquote {
  position: absolute; left: 36px; right: 36px; bottom: 36px; z-index: 2; margin: 0;
  font: 500 1.15rem/1.5 var(--font-title); color: #f1e6c8; text-shadow: 0 2px 18px #000; max-width: 34ch;
}
.auth-art blockquote small { display: block; margin-top: 8px; font: 500 .72rem/1 var(--font-mono); letter-spacing: .14em; text-transform: uppercase; color: var(--gold); }

form { display: grid; gap: 16px; }
.field { display: grid; gap: 7px; }
.field label { font-size: .9rem; font-weight: 600; color: #d7d7d7; }
.field input {
  width: 100%; min-height: 50px; padding: 0 16px; border-radius: 12px;
  background: #121212; border: 1px solid #333; color: var(--text); font: 400 1rem var(--font-ui);
  transition: border-color .2s ease, box-shadow .2s ease;
}
.field input::placeholder { color: #666; }
.field input:hover { border-color: #444; }
.field input:focus { outline: none; border-color: var(--cyan); box-shadow: 0 0 0 3px rgba(0, 255, 231, .16); }
.field input[aria-invalid="true"] { border-color: var(--danger); }
.hint { font-size: .82rem; color: var(--muted); }
.pw { position: relative; }
.pw input { padding-right: 76px; }
.pw button {
  position: absolute; right: 6px; top: 6px; height: 38px; padding: 0 12px; border-radius: 8px;
  background: transparent; border: 0; color: var(--cyan); font: 600 .82rem var(--font-ui); cursor: pointer;
}
.pw button:hover { background: rgba(0, 255, 231, .08); }
.honey { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

.alert { display: none; padding: 12px 14px; border-radius: 12px; font-size: .92rem; border: 1px solid; }
.alert.show { display: block; }
.alert-error { background: rgba(255, 90, 79, .09); border-color: rgba(255, 90, 79, .45); color: #ffb4ae; }
.alert-ok { background: rgba(0, 255, 136, .08); border-color: rgba(0, 255, 136, .4); color: #9bffcb; }
.alert-info { background: rgba(0, 255, 231, .07); border-color: rgba(0, 255, 231, .35); color: #a6fff6; }
.links { display: flex; flex-wrap: wrap; gap: 8px 18px; margin-top: 22px; font-size: .92rem; color: var(--muted); }
.checks { margin: 2px 0 0; padding: 0; list-style: none; display: grid; gap: 4px; font-size: .84rem; color: var(--muted); }
.checks li::before { content: "○ "; color: #555; }
.checks li.ok { color: #9bffcb; }
.checks li.ok::before { content: "● "; color: var(--success); }
.decision { padding: 18px 20px; border-radius: 12px; background: #121212; border: 1px solid #2c2c2c; display: grid; gap: 4px; margin-bottom: 18px; }
.decision b { font: 700 1.15rem var(--font-title); }
.decision span { color: var(--muted); font-size: .95rem; overflow-wrap: anywhere; }
.btn-danger { background: transparent; color: #ffb4ae; border-color: rgba(255, 90, 79, .55); }
.btn-danger:hover { background: rgba(255, 90, 79, .1); color: #ffd0cc; border-color: var(--danger); }
.row { display: flex; flex-wrap: wrap; gap: 12px; }
.row .btn { flex: 1 1 160px; }

/* ---------- responsivo ---------- */
@media (max-width: 900px) {
  .steps { grid-template-columns: 1fr; }
  .proof-grid { grid-template-columns: 1fr; }
  .auth { grid-template-columns: 1fr; }
  .auth-art { display: none; }
  .stats { grid-template-columns: repeat(2, 1fr); row-gap: 14px; }
}
@media (max-width: 640px) {
  .site-header { padding-top: 14px; }
  .brand span { font-size: 1.25rem; letter-spacing: .18em; }
  .brand img { width: 34px; height: 34px; }
  .nav .link-entrar { display: none; }
  .hero { justify-content: flex-start; }
  .hero-bg img { object-position: 62% top; }
  .hero-inner { padding-top: 92px; padding-bottom: 210px; }
  .hero::before {
    background: linear-gradient(180deg, rgba(10, 10, 10, .15) 0%, rgba(10, 10, 10, .78) 42%, #0a0a0a 72%);
  }
  .hero-copy { margin-top: min(52vh, 340px); }
  .btn { width: 100%; }
  .cta-row { flex-direction: column; }
  .nav .btn { width: auto; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .sparks i { animation: none; opacity: 0; }
  .shot img, .btn { transition: none; }
}
