:root {
  --bg: #08070b;
  --bg-2: #151019;
  --panel: rgba(22, 18, 28, 0.88);
  --panel-strong: rgba(34, 25, 39, 0.94);
  --text: #f5ead7;
  --muted: #b8a891;
  --gold: #d6a84f;
  --gold-soft: #f1d28a;
  --ember: #b85c38;
  --border: rgba(214, 168, 79, 0.28);
  --shadow: rgba(0, 0, 0, 0.5);
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  min-height: 100vh;
  font-family: "Segoe UI", "Trebuchet MS", system-ui, sans-serif;
  color: var(--text);
  background:
    radial-gradient(circle at 18% 8%, rgba(184, 92, 56, 0.22), transparent 28rem),
    radial-gradient(circle at 88% 16%, rgba(214, 168, 79, 0.16), transparent 24rem),
    linear-gradient(180deg, #08070b 0%, #120d16 52%, #070609 100%);
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  background-image:
    linear-gradient(rgba(255,255,255,0.025) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,0.018) 1px, transparent 1px);
  background-size: 48px 48px;
  mask-image: linear-gradient(to bottom, rgba(0,0,0,0.85), transparent 80%);
}

a { color: inherit; }

.site-header {
  position: sticky;
  top: 0;
  z-index: 10;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  padding: 0.9rem clamp(1rem, 4vw, 3.5rem);
  background: rgba(8, 7, 11, 0.86);
  border-bottom: 1px solid var(--border);
  box-shadow: 0 12px 40px var(--shadow);
  backdrop-filter: blur(14px);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
  text-decoration: none;
  min-width: max-content;
}

.brand-mark {
  display: grid;
  place-items: center;
  width: 2.35rem;
  height: 2.35rem;
  color: #1b1209;
  font-weight: 900;
  letter-spacing: -0.08em;
  background: linear-gradient(135deg, var(--gold-soft), var(--gold) 55%, #8a5521);
  border-radius: 0.75rem;
  box-shadow: 0 0 28px rgba(214, 168, 79, 0.28);
}

.brand-text {
  display: flex;
  flex-direction: column;
  line-height: 1.05;
}

.brand-title {
  font-size: 0.98rem;
  font-weight: 800;
  letter-spacing: 0.13em;
  text-transform: uppercase;
}

.brand-subtitle {
  color: var(--muted);
  font-size: 0.72rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
}

.main-nav,
.auth-nav {
  display: flex;
  align-items: center;
  gap: 0.35rem;
}

.main-nav a,
.auth-nav a {
  position: relative;
  padding: 0.65rem 0.85rem;
  color: var(--muted);
  text-decoration: none;
  font-size: 0.9rem;
  font-weight: 650;
  letter-spacing: 0.03em;
}

.main-nav a:hover,
.auth-nav a:hover {
  color: var(--text);
}

.main-nav a.active {
  color: var(--text);
  font-weight: 850;
}

.main-nav a.active::after {
  content: "";
  position: absolute;
  left: 0.85rem;
  right: 0.85rem;
  bottom: 0.28rem;
  height: 2px;
  background: linear-gradient(90deg, transparent, var(--gold), transparent);
}

.auth-nav .register {
  color: #1c1309;
  background: linear-gradient(135deg, var(--gold-soft), var(--gold));
  border-radius: 999px;
  box-shadow: 0 0 22px rgba(214, 168, 79, 0.18);
}

.page {
  width: min(1180px, calc(100% - 2rem));
  margin: 0 auto;
  padding: clamp(2rem, 4vw, 4.5rem) 0 3rem;
}

.hero {
  display: grid;
  gap: 2rem;
  grid-template-columns: minmax(0, 1.15fr) minmax(280px, 0.85fr);
  align-items: center;
  min-height: 58vh;
}

.eyebrow {
  margin: 0 0 0.8rem;
  color: var(--gold-soft);
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.22em;
  text-transform: uppercase;
}

h1, h2, h3 { margin: 0; }

h1 {
  max-width: 12ch;
  font-size: clamp(2.7rem, 7vw, 6.25rem);
  line-height: 0.92;
  letter-spacing: -0.06em;
}

h2 {
  font-size: clamp(1.7rem, 3vw, 2.65rem);
  letter-spacing: -0.04em;
}

h3 { font-size: 1.05rem; }

p {
  color: var(--muted);
  line-height: 1.7;
}

.lead {
  max-width: 42rem;
  font-size: 1.08rem;
}

.actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.85rem;
  margin-top: 1.5rem;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 2.85rem;
  padding: 0.75rem 1.1rem;
  border: 1px solid var(--border);
  border-radius: 999px;
  color: var(--text);
  text-decoration: none;
  font-weight: 800;
}

.btn.primary {
  color: #1b1209;
  background: linear-gradient(135deg, var(--gold-soft), var(--gold));
}

.btn.secondary {
  background: rgba(255, 255, 255, 0.05);
}

.btn.disabled {
  opacity: 0.62;
  cursor: not-allowed;
}

.panel,
.card {
  background: linear-gradient(180deg, var(--panel-strong), var(--panel));
  border: 1px solid var(--border);
  border-radius: 1.25rem;
  box-shadow: 0 24px 80px var(--shadow);
}

.panel { padding: clamp(1.25rem, 3vw, 2rem); }

.card {
  padding: 1.25rem;
}

.card-spaced {
  margin-top: 1rem;
}

.grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1rem;
  margin-top: 1.25rem;
}

.two-col {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1rem;
  margin-top: 1.25rem;
}

.stat {
  padding: 1rem;
  border: 1px solid rgba(214, 168, 79, 0.18);
  border-radius: 1rem;
  background: rgba(255, 255, 255, 0.035);
}

.stat strong {
  display: block;
  color: var(--gold-soft);
  font-size: 1.35rem;
}

.muted { color: var(--muted); }

.tag {
  display: inline-flex;
  width: fit-content;
  padding: 0.22rem 0.6rem;
  color: var(--gold-soft);
  border: 1px solid var(--border);
  border-radius: 999px;
  font-size: 0.74rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.download-card {
  display: flex;
  flex-direction: column;
  gap: 0.8rem;
}

.download-card .btn { align-self: flex-start; }

.auth-page {
  display: grid;
  place-items: center;
}

.auth-panel {
  width: min(100%, 620px);
}

.auth-form {
  display: grid;
  gap: 1rem;
  margin-top: 1.5rem;
}

.auth-form label {
  display: grid;
  gap: 0.45rem;
  color: var(--text);
  font-weight: 750;
}

.auth-form input {
  width: 100%;
  min-height: 3rem;
  padding: 0.75rem 0.9rem;
  color: var(--text);
  background: rgba(0, 0, 0, 0.28);
  border: 1px solid var(--border);
  border-radius: 0.85rem;
  outline: none;
}

.auth-form input:focus {
  border-color: var(--gold);
  box-shadow: 0 0 0 3px rgba(214, 168, 79, 0.14);
}

.auth-divider {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin: 1.5rem 0 1rem;
  color: var(--muted);
  font-size: 0.82rem;
  text-transform: uppercase;
  letter-spacing: 0.12em;
}

.auth-divider::before,
.auth-divider::after {
  content: "";
  flex: 1;
  height: 1px;
  background: var(--border);
}

.provider-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.75rem;
}

.provider-btn {
  border-radius: 0.85rem;
}

.form-message {
  min-height: 1.3rem;
  margin: 0;
  font-weight: 700;
}

.form-message.ok { color: #9de7b0; }
.form-message.error { color: #ffb3a7; }

.turnstile-slot {
  min-height: 0;
}

.turnstile-slot.active {
  min-height: 65px;
}

.auth-note {
  margin-top: 1.25rem;
}

.site-footer {
  padding: 2rem 1rem;
  color: var(--muted);
  text-align: center;
  border-top: 1px solid var(--border);
  background: rgba(8, 7, 11, 0.72);
}

code {
  color: var(--gold-soft);
  background: rgba(0, 0, 0, 0.28);
  padding: 0.15em 0.4em;
  border-radius: 0.35rem;
}

@media (max-width: 860px) {
  .site-header {
    align-items: flex-start;
    flex-direction: column;
  }

  .main-nav,
  .auth-nav {
    flex-wrap: wrap;
  }

  .hero,
  .grid,
  .two-col,
  .provider-grid {
    grid-template-columns: 1fr;
  }
}
