:root {
  color-scheme: dark;
  --bg: #0b0f14;
  --bg-elevated: rgba(16, 22, 30, 0.78);
  --panel: rgba(20, 26, 35, 0.86);
  --panel-border: rgba(255, 255, 255, 0.08);
  --text: #f3efe6;
  --muted: #c1b8aa;
  --accent: #c7a46a;
  --accent-soft: rgba(199, 164, 106, 0.18);
  --line: rgba(255, 255, 255, 0.12);
  --shadow: 0 24px 80px rgba(0, 0, 0, 0.42);
  --radius-xl: 28px;
  --radius-lg: 20px;
  --radius-md: 14px;
  --max-width: 1120px;
  --font-display: "Iowan Old Style", "Palatino Linotype", "Book Antiqua", Georgia, serif;
  --font-body: "Avenir Next", Avenir, "Segoe UI", system-ui, -apple-system, BlinkMacSystemFont, sans-serif;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background:
    radial-gradient(circle at top left, rgba(199, 164, 106, 0.16), transparent 28%),
    radial-gradient(circle at 85% 10%, rgba(92, 127, 164, 0.12), transparent 24%),
    linear-gradient(180deg, #10151c 0%, #0b0f14 50%, #080b0f 100%);
  color: var(--text);
  font-family: var(--font-body);
  line-height: 1.6;
  min-height: 100vh;
}

a {
  color: inherit;
  text-decoration: none;
}

a:hover {
  color: #fff;
}

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

.topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 22px 0;
}

.brand {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.brand-mark {
  font-family: var(--font-display);
  font-size: 1.15rem;
  letter-spacing: 0.03em;
}

.brand-subtitle {
  color: var(--muted);
  font-size: 0.92rem;
}

.nav {
  display: flex;
  flex-wrap: wrap;
  gap: 18px;
  color: var(--muted);
  font-size: 0.95rem;
}

.hero {
  position: relative;
  overflow: hidden;
  padding: 48px 0 28px;
}

.hero::before,
.hero::after {
  content: "";
  position: absolute;
  inset: auto;
  border-radius: 999px;
  pointer-events: none;
  filter: blur(4px);
}

.hero::before {
  width: 260px;
  height: 260px;
  right: -90px;
  top: 36px;
  background: rgba(199, 164, 106, 0.12);
}

.hero::after {
  width: 180px;
  height: 180px;
  left: -60px;
  top: 140px;
  background: rgba(109, 145, 179, 0.12);
}

.hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.4fr) minmax(320px, 0.9fr);
  gap: 28px;
  align-items: stretch;
}

.hero-copy,
.hero-card,
.section-card,
.legal-card {
  background: var(--panel);
  border: 1px solid var(--panel-border);
  box-shadow: var(--shadow);
  backdrop-filter: blur(14px);
}

.hero-copy {
  border-radius: var(--radius-xl);
  padding: clamp(28px, 4vw, 48px);
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  border: 1px solid rgba(199, 164, 106, 0.28);
  background: var(--accent-soft);
  color: #f1ddbb;
  border-radius: 999px;
  padding: 8px 14px;
  font-size: 0.85rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

h1,
h2,
h3 {
  margin: 0;
  font-family: var(--font-display);
  line-height: 1.08;
}

h1 {
  margin-top: 18px;
  font-size: clamp(3rem, 8vw, 5.8rem);
  letter-spacing: -0.04em;
  max-width: 11ch;
}

.lede {
  margin: 20px 0 0;
  max-width: 62ch;
  font-size: 1.1rem;
  color: var(--muted);
}

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

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 0 18px;
  border-radius: 999px;
  border: 1px solid var(--line);
  font-weight: 600;
  transition: transform 180ms ease, border-color 180ms ease, background 180ms ease;
}

.button:hover {
  transform: translateY(-1px);
  border-color: rgba(255, 255, 255, 0.2);
}

.button.primary {
  background: linear-gradient(180deg, #dcc08c 0%, #b88c46 100%);
  color: #121212;
  border-color: transparent;
}

.button.ghost {
  background: rgba(255, 255, 255, 0.02);
}

.hero-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 14px 20px;
  margin-top: 30px;
  color: var(--muted);
  font-size: 0.95rem;
}

.hero-card {
  border-radius: var(--radius-xl);
  padding: 24px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.hero-card h2 {
  font-size: 2rem;
  margin-bottom: 14px;
}

.hero-card p {
  color: var(--muted);
  margin: 0 0 18px;
}

.world-list {
  display: grid;
  gap: 12px;
}

.world-item {
  display: grid;
  gap: 4px;
  padding: 16px;
  border-radius: var(--radius-md);
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.06);
}

.world-item strong {
  font-size: 1rem;
}

.world-item span {
  color: var(--muted);
  font-size: 0.94rem;
}

.section {
  padding: 18px 0 0;
}

.section-card {
  border-radius: var(--radius-xl);
  padding: clamp(22px, 3.2vw, 34px);
}

.section-heading {
  display: flex;
  justify-content: space-between;
  align-items: end;
  gap: 16px;
  margin-bottom: 20px;
}

.section-heading p {
  margin: 0;
  color: var(--muted);
  max-width: 58ch;
}

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

.feature,
.legal-card {
  border-radius: var(--radius-lg);
  padding: 20px;
}

.feature {
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.06);
}

.feature h3 {
  font-size: 1.25rem;
  margin-bottom: 10px;
}

.feature p {
  color: var(--muted);
  margin: 0;
}

.pill-row {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 18px;
}

.pill {
  padding: 8px 12px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.08);
  color: #e8dece;
  font-size: 0.9rem;
}

.legal-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
}

.legal-card h3 {
  margin-bottom: 12px;
  font-size: 1.3rem;
}

.legal-card p,
.legal-card li {
  color: var(--muted);
}

.legal-card ul {
  margin: 0;
  padding-left: 18px;
}

.legal-page {
  padding: 28px 0 48px;
}

.legal-page .content {
  max-width: 78ch;
}

.content h1 {
  max-width: none;
  font-size: clamp(2.6rem, 6vw, 4.6rem);
}

.content h2 {
  margin-top: 32px;
  margin-bottom: 10px;
  font-size: 2rem;
}

.content p,
.content li {
  color: var(--muted);
}

.content a {
  text-decoration: underline;
  text-underline-offset: 2px;
}

.footer {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  padding: 28px 0 42px;
  color: var(--muted);
  font-size: 0.95rem;
}

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

@media (max-width: 880px) {
  .hero-grid,
  .grid-3,
  .legal-grid {
    grid-template-columns: 1fr;
  }

  .section-heading,
  .footer,
  .topbar {
    flex-direction: column;
    align-items: flex-start;
  }
}

@media (max-width: 640px) {
  .page-shell {
    width: min(calc(100% - 20px), var(--max-width));
  }

  .hero {
    padding-top: 24px;
  }

  .hero-copy,
  .hero-card,
  .section-card,
  .legal-card {
    border-radius: 22px;
  }

  .nav {
    gap: 12px;
  }
}
