/* Royal Gambit landing page — matches app ChessPalette tokens */

:root {
  --gold: #c9a84c;
  --gold-bright: #e6c667;
  --gold-deep: #9c7e2e;
  --canvas: #0b0b0d;
  --canvas-alt: #101013;
  --surface: #17171b;
  --surface-raised: #1f1f25;
  --text-primary: #f4f2ec;
  --text-muted: #9a968c;
  --hairline: rgba(255, 255, 255, 0.06);
  --gold-hairline: rgba(201, 168, 76, 0.35);
  --gold-gradient: linear-gradient(135deg, var(--gold-bright), var(--gold), var(--gold-deep));
  --gold-text: linear-gradient(180deg, #f0dda0, var(--gold), #b68f38);
  --radius-lg: 22px;
  --radius-md: 14px;
  --max-width: 920px;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100vh;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  color: var(--text-primary);
  background: radial-gradient(ellipse 120% 80% at 50% -20%, var(--canvas-alt), var(--canvas));
  line-height: 1.6;
}

.checkerboard {
  position: fixed;
  inset: 0;
  z-index: -1;
  opacity: 1;
  background-image:
    linear-gradient(45deg, rgba(255, 255, 255, 0.015) 25%, transparent 25%),
    linear-gradient(-45deg, rgba(255, 255, 255, 0.015) 25%, transparent 25%),
    linear-gradient(45deg, transparent 75%, rgba(255, 255, 255, 0.015) 75%),
    linear-gradient(-45deg, transparent 75%, rgba(255, 255, 255, 0.015) 75%);
  background-size: 56px 56px;
  background-position: 0 0, 0 28px, 28px -28px, -28px 0;
  pointer-events: none;
}

.container {
  width: min(100% - 40px, var(--max-width));
  margin-inline: auto;
}

/* Header */
.site-header {
  padding: 28px 0 12px;
}

.brand {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
}

.brand-mark {
  width: 42px;
  height: 42px;
  border-radius: 50%;
  background: var(--gold-gradient);
  display: grid;
  place-items: center;
  box-shadow: 0 8px 24px rgba(201, 168, 76, 0.22);
}

.brand-mark svg {
  width: 24px;
  height: 24px;
  fill: #1a1407;
}

.brand-title {
  margin: 0;
  font-size: 1.25rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  background: var(--gold-text);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

/* Hero */
.hero {
  text-align: center;
  padding: 48px 0 56px;
}

.hero-eyebrow {
  margin: 0 0 8px;
  font-size: clamp(2rem, 6vw, 2.75rem);
  font-weight: 800;
  letter-spacing: 0.02em;
  line-height: 1.05;
}

.hero-title {
  margin: 0 0 16px;
  font-size: clamp(2.1rem, 7vw, 3rem);
  font-weight: 900;
  letter-spacing: 0.04em;
  line-height: 1.05;
  background: var(--gold-text);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.hero-subtitle {
  margin: 0 auto;
  max-width: 28rem;
  color: var(--text-muted);
  font-size: 1rem;
  font-weight: 500;
}

.hero-card {
  margin-top: 36px;
  padding: 28px 24px;
  border-radius: var(--radius-lg);
  background: rgba(23, 23, 27, 0.85);
  border: 1px solid var(--gold-hairline);
  backdrop-filter: blur(8px);
}

.hero-card p {
  margin: 0;
  color: var(--text-muted);
  font-size: 0.95rem;
}

/* Sections */
.section {
  padding: 24px 0 48px;
}

.section-card {
  padding: 32px 28px;
  border-radius: var(--radius-lg);
  background: rgba(23, 23, 27, 0.72);
  border: 1px solid var(--hairline);
}

.section-label {
  display: inline-block;
  margin: 0 0 10px;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--gold);
}

.section-heading {
  margin: 0 0 18px;
  font-size: 1.75rem;
  font-weight: 800;
  letter-spacing: 0.02em;
}

.section-card p {
  margin: 0 0 14px;
  color: var(--text-muted);
  max-width: 62ch;
}

.section-card p:last-child {
  margin-bottom: 0;
}

.feature-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 14px;
  margin-top: 24px;
}

.feature {
  padding: 18px 16px;
  border-radius: var(--radius-md);
  background: var(--surface-raised);
  border: 1px solid var(--hairline);
}

.feature h3 {
  margin: 0 0 6px;
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--text-primary);
}

.feature p {
  margin: 0;
  font-size: 0.85rem;
}

/* Footer */
.site-footer {
  margin-top: 24px;
  padding: 28px 0 40px;
  border-top: 1px solid var(--hairline);
}

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

.footer-brand {
  display: flex;
  align-items: center;
  gap: 10px;
}

.footer-brand .brand-mark {
  width: 34px;
  height: 34px;
}

.footer-brand .brand-mark svg {
  width: 18px;
  height: 18px;
}

.footer-copy {
  margin: 0;
  font-size: 0.85rem;
  color: var(--text-muted);
}

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

.footer-links a {
  color: var(--text-muted);
  text-decoration: none;
  font-size: 0.85rem;
  transition: color 0.2s ease;
}

.footer-links a:hover {
  color: var(--gold-bright);
}

/* Reveal animation */
.reveal {
  opacity: 0;
  transform: translateY(16px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

/* Legal pages (privacy policy, etc.) */
.legal-page {
  padding: 24px 0 56px;
}

.legal-card {
  padding: 36px 32px;
  border-radius: var(--radius-lg);
  background: rgba(23, 23, 27, 0.85);
  border: 1px solid var(--hairline);
}

.legal-card h1 {
  margin: 0 0 8px;
  font-size: clamp(1.75rem, 5vw, 2.25rem);
  font-weight: 800;
  letter-spacing: 0.02em;
}

.legal-meta {
  margin: 0 0 28px;
  font-size: 0.875rem;
  color: var(--text-muted);
}

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

.legal-section:last-child {
  margin-bottom: 0;
}

.legal-section h2 {
  margin: 0 0 10px;
  font-size: 1.125rem;
  font-weight: 700;
  color: var(--text-primary);
}

.legal-section p {
  margin: 0 0 12px;
  color: var(--text-muted);
  max-width: 72ch;
}

.legal-section ul {
  margin: 0 0 12px;
  padding-left: 1.25rem;
  color: var(--text-muted);
  max-width: 72ch;
}

.legal-section li {
  margin-bottom: 6px;
}

.legal-section a {
  color: var(--gold-bright);
  text-decoration: none;
}

.legal-section a:hover {
  text-decoration: underline;
}

.brand-link {
  text-decoration: none;
  color: inherit;
  display: flex;
  align-items: center;
  gap: 12px;
}

@media (max-width: 640px) {
  .hero {
    padding-top: 32px;
  }

  .section-card {
    padding: 24px 20px;
  }

  .legal-card {
    padding: 24px 20px;
  }

  .footer-inner {
    flex-direction: column;
    align-items: flex-start;
  }
}
