:root {
  --bg: #151311;
  --bg-elevated: #1a1714;
  --surface: #1f1b18;
  --surface-raised: #262120;
  --border: rgba(255, 240, 225, 0.08);
  --border-soft: rgba(255, 240, 225, 0.05);
  --text: #ede8e1;
  --text-muted: #b5aa9e;
  --text-soft: #827870;
  --accent: #c9985a;
  --accent-strong: #dba962;
  --accent-warm: #e8cfa0;
  --danger: #e05252;
  --max-width: 980px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  background:
    radial-gradient(circle at top, rgba(201, 152, 90, 0.12), transparent 34%),
    linear-gradient(180deg, #181411 0%, var(--bg) 100%);
  color: var(--text);
}

a {
  color: var(--accent-warm);
  text-decoration: none;
}

a:hover {
  color: #f3ddb8;
}

.page {
  min-height: 100vh;
}

.container {
  width: min(var(--max-width), calc(100% - 32px));
  margin: 0 auto;
}

.nav {
  position: sticky;
  top: 0;
  z-index: 20;
  backdrop-filter: blur(18px);
  background: rgba(21, 19, 17, 0.76);
  border-bottom: 1px solid var(--border-soft);
}

.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 72px;
  gap: 20px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  color: var(--text);
  font-size: 24px;
  font-weight: 900;
  letter-spacing: -0.04em;
}

.brand img {
  width: 34px;
  height: 34px;
  border-radius: 10px;
}

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

.nav-links a {
  color: var(--text-muted);
  font-size: 14px;
  font-weight: 700;
}

.hero {
  padding: 72px 0 36px;
}

.eyebrow {
  color: var(--text-soft);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.hero h1,
.hero h2 {
  margin: 14px 0 0;
  font-size: clamp(42px, 6vw, 74px);
  line-height: 0.95;
  letter-spacing: -0.06em;
}

.hero p {
  max-width: 720px;
  margin: 18px 0 0;
  color: var(--text-muted);
  font-size: 18px;
  line-height: 1.65;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-top: 28px;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 0 18px;
  border-radius: 16px;
  border: 1px solid var(--border);
  background: linear-gradient(135deg, #cba060 0%, #a87a4a 45%, #865e3a 100%);
  color: #fff;
  font-size: 15px;
  font-weight: 800;
}

.button.secondary {
  background: rgba(255, 245, 235, 0.04);
  color: var(--text);
}

.grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
  margin: 28px 0 56px;
}

.card {
  padding: 22px;
  border: 1px solid var(--border-soft);
  border-radius: 22px;
  background: rgba(255, 243, 232, 0.03);
}

.card h3 {
  margin: 0 0 10px;
  font-size: 18px;
  letter-spacing: -0.03em;
}

.card p,
.section-copy,
.legal-copy p,
.legal-copy li {
  color: var(--text-muted);
  font-size: 15px;
  line-height: 1.7;
}

.section {
  padding: 18px 0 56px;
}

.auth-shell {
  display: grid;
  place-items: center;
  min-height: calc(100vh - 180px);
  padding: 56px 0;
}

.auth-card {
  width: min(640px, 100%);
  padding: 28px;
  border: 1px solid var(--border-soft);
  border-radius: 24px;
  background: rgba(255, 243, 232, 0.03);
}

.auth-status {
  display: inline-flex;
  align-items: center;
  min-height: 32px;
  padding: 0 12px;
  border-radius: 999px;
  border: 1px solid rgba(232, 207, 160, 0.14);
  background: rgba(201, 152, 90, 0.12);
  color: var(--accent-warm);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.auth-status[data-state="success"] {
  border-color: rgba(232, 207, 160, 0.18);
  background: rgba(201, 152, 90, 0.12);
  color: var(--accent-warm);
}

.auth-status[data-state="error"] {
  border-color: rgba(224, 82, 82, 0.2);
  background: rgba(224, 82, 82, 0.1);
  color: #f4a7a7;
}

.auth-card h1 {
  margin: 14px 0 12px;
  font-size: clamp(34px, 5vw, 52px);
  line-height: 1;
  letter-spacing: -0.05em;
}

.auth-help {
  margin: 18px 0 0;
  color: var(--text-soft);
  font-size: 13px;
  line-height: 1.6;
}

.section h2 {
  margin: 0 0 12px;
  font-size: clamp(30px, 4vw, 46px);
  line-height: 1.05;
  letter-spacing: -0.05em;
}

.legal-shell {
  padding: 48px 0 72px;
}

.legal-hero {
  margin-bottom: 28px;
}

.legal-hero h1 {
  margin: 14px 0 8px;
  font-size: clamp(34px, 5vw, 56px);
  line-height: 1;
  letter-spacing: -0.05em;
}

.legal-meta {
  color: var(--text-soft);
  font-size: 13px;
}

.legal-stack {
  display: grid;
  gap: 16px;
}

.legal-copy ul {
  padding-left: 22px;
  margin: 10px 0 0;
}

.footer {
  padding: 28px 0 52px;
  border-top: 1px solid var(--border-soft);
  color: var(--text-soft);
  font-size: 14px;
}

.footer-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
}

@media (max-width: 860px) {
  .grid {
    grid-template-columns: 1fr;
  }

  .nav-inner {
    min-height: 64px;
    align-items: flex-start;
    flex-direction: column;
    justify-content: center;
    padding: 14px 0;
  }
}
