/* ──────────────────────────────────────────────────────────────────
   Chess Rehearsal — Marketing Site
   Theatrical Dark aesthetic. Warm-gold accent on near-black canvas.
   ────────────────────────────────────────────────────────────────── */

:root {
  /* Surfaces */
  --cr-bg:           #0A0A0A;
  --cr-surface:      #151515;
  --cr-card:         #1F1F1F;
  --cr-stage-navy:   #0F1A2B;

  /* Brand accent */
  --cr-gold:         #FF9B00;
  --cr-gold-soft:    rgba(255, 155, 0, 0.30);
  --cr-gold-faint:   rgba(255, 155, 0, 0.12);

  /* Text */
  --cr-fg-primary:   #D9E2EC;
  --cr-fg-secondary: #9CA3AF;
  --cr-fg-cream:     #F5EBD8;

  /* Dividers / shadow */
  --cr-divider:        rgba(255, 255, 255, 0.10);
  --cr-divider-strong: rgba(255, 255, 255, 0.20);

  /* Type families */
  --cr-font-display: "Paytone One", system-ui, sans-serif;
  --cr-font-body:    "Nunito", system-ui, -apple-system, sans-serif;
}

/* ─────────────── Reset & base ─────────────── */
* { box-sizing: border-box; }
html, body {
  margin: 0;
  background: #050505;
  color: var(--cr-fg-primary);
  font-family: var(--cr-font-body);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  line-height: 1.5;
}
h1, h2, h3, h4 { margin: 0; }
p, ul { margin: 0; }
a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }

/* ─────────────── Stage backdrop ─────────────── */
.cr-site {
  position: relative;
  overflow: hidden;
  min-height: 100vh;
  background: #050505;
}
.cr-site::before {
  content: "";
  position: absolute; inset: 0;
  background:
    radial-gradient(ellipse 80% 60% at 50% -10%, rgba(255,155,0,0.16), transparent 60%),
    radial-gradient(ellipse 60% 40% at 80% 20%, rgba(255,155,0,0.05), transparent 60%);
  pointer-events: none;
  z-index: 0;
}
.cr-site::after {
  content: "";
  position: absolute; inset: 0;
  background-image:
    repeating-linear-gradient(0deg, rgba(255,255,255,.012) 0 1px, transparent 1px 3px);
  pointer-events: none;
  z-index: 0;
}
.cr-site > * { position: relative; z-index: 1; }

/* Container */
.cr-container {
  width: 100%;
  max-width: 1180px;
  margin: 0 auto;
  padding: 0 32px;
}

/* ─────────────── Nav ─────────────── */
.cr-nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 22px 0;
}
.cr-nav-brand {
  display: flex; align-items: center; gap: 12px;
  font-family: var(--cr-font-display);
  font-size: 18px;
  letter-spacing: 0.04em;
  color: var(--cr-fg-primary);
  text-transform: uppercase;
}
.cr-nav-brand img {
  width: 36px; height: 36px; object-fit: contain;
  filter: drop-shadow(0 2px 6px rgba(0,0,0,.4));
}
.cr-nav-links {
  display: flex; gap: 32px;
  font-size: 14px;
  color: var(--cr-fg-secondary);
  font-weight: 600;
}
.cr-nav-links a { transition: color .15s; }
.cr-nav-links a:hover { color: var(--cr-gold); }

/* ─────────────── Hero ─────────────── */
.cr-hero {
  display: grid;
  grid-template-columns: 1.15fr 1fr;
  gap: 56px;
  padding: 60px 0 100px;
  align-items: center;
}
.cr-hero-eyebrow {
  font-family: var(--cr-font-body);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--cr-gold);
  margin-bottom: 18px;
  display: inline-flex;
  align-items: center;
  gap: 10px;
}
.cr-hero-eyebrow::before {
  content: "";
  width: 28px; height: 1px;
  background: var(--cr-gold);
}
.cr-hero h1 {
  font-family: var(--cr-font-display);
  font-size: 68px;
  line-height: 0.98;
  letter-spacing: -0.005em;
  color: var(--cr-fg-cream);
  text-wrap: balance;
}
.cr-hero h1 .accent {
  color: var(--cr-gold);
  display: block;
}
.cr-hero-sub {
  margin-top: 22px;
  font-size: 18px;
  line-height: 1.55;
  color: var(--cr-fg-secondary);
  max-width: 460px;
  text-wrap: pretty;
}

/* Hero phone column — phone is a real screenshot WITH bezel baked in */
.cr-hero-phone-wrap {
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
}
.cr-hero-phone-wrap::before {
  content: "";
  position: absolute;
  inset: -40px;
  background: radial-gradient(ellipse 70% 50% at 50% 50%, rgba(255,155,0,.22), transparent 70%);
  filter: blur(20px);
  z-index: 0;
}
.cr-hero-phone {
  position: relative;
  z-index: 1;
  width: 320px;
  height: auto;
  filter: drop-shadow(0 30px 60px rgba(0,0,0,.6));
}

/* ─────────────── Download buttons ─────────────── */
.cr-dl-row {
  display: flex; gap: 14px; margin-top: 36px;
  flex-wrap: wrap;
}
.cr-dl-row.centered { justify-content: center; }

.cr-dl-btn {
  display: inline-flex; align-items: center; gap: 12px;
  padding: 12px 20px 12px 16px;
  background: #0E0E0E;
  border: 1px solid rgba(255,255,255,0.18);
  border-radius: 14px;
  cursor: pointer;
  transition: border-color .15s, transform .15s, background .15s;
  white-space: nowrap;
}
.cr-dl-btn:hover {
  border-color: var(--cr-gold);
  background: #131313;
  transform: translateY(-1px);
}
.cr-dl-btn svg {
  flex-shrink: 0;
  width: 22px; height: 22px;
}
.cr-dl-btn-text {
  display: flex; flex-direction: column; line-height: 1.1;
}
.cr-dl-btn-text small {
  font-size: 10px;
  letter-spacing: 0.10em;
  text-transform: uppercase;
  color: var(--cr-fg-secondary);
  font-weight: 600;
}
.cr-dl-btn-text strong {
  font-size: 16px;
  font-weight: 700;
  color: var(--cr-fg-primary);
  margin-top: 2px;
}

/* ─────────────── Stage curtain divider ─────────────── */
.cr-stage-divider {
  height: 56px;
  background:
    linear-gradient(to bottom, transparent, rgba(0,0,0,.4)),
    repeating-linear-gradient(90deg, #1a1208 0 28px, #261a0e 28px 56px);
  border-top: 1px solid rgba(255,155,0,.20);
  border-bottom: 1px solid rgba(255,155,0,.10);
  position: relative;
}
.cr-stage-divider::before {
  content: "";
  position: absolute;
  left: 50%; top: 50%;
  transform: translate(-50%, -50%);
  width: 12px; height: 12px;
  background: var(--cr-gold);
  border-radius: 50%;
  box-shadow: 0 0 24px 6px rgba(255,155,0,.6);
}

/* ─────────────── Screenshots ─────────────── */
.cr-screens { padding: 90px 0; }
.cr-screens-head {
  text-align: center;
  margin-bottom: 58px;
}
.cr-screens-eyebrow {
  font-size: 12px;
  letter-spacing: 0.20em;
  text-transform: uppercase;
  color: var(--cr-gold);
  font-weight: 700;
  margin-bottom: 14px;
}
.cr-screens-title {
  font-family: var(--cr-font-display);
  font-size: 44px;
  color: var(--cr-fg-cream);
  letter-spacing: -0.005em;
}
.cr-screens-sub {
  margin-top: 14px;
  font-size: 16px;
  color: var(--cr-fg-secondary);
  max-width: 540px;
  margin-left: auto;
  margin-right: auto;
}
.cr-screens-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 32px;
  align-items: end;
}
.cr-screen-card {
  display: flex;
  flex-direction: column;
  align-items: center;
}
.cr-screen-frame {
  position: relative;
  display: flex;
  justify-content: center;
}
.cr-screen-frame::before {
  content: "";
  position: absolute;
  inset: 30px -10px -20px -10px;
  background: radial-gradient(ellipse 60% 50% at 50% 50%, rgba(255,155,0,.10), transparent 70%);
  filter: blur(10px);
  z-index: 0;
}
.cr-screen-frame img {
  position: relative;
  z-index: 1;
  width: 270px;
  height: auto;
  filter: drop-shadow(0 20px 40px rgba(0,0,0,.5));
}
.cr-screen-caption {
  margin-top: 22px;
  text-align: center;
}
.cr-screen-caption .num {
  font-family: var(--cr-font-display);
  font-size: 12px;
  color: var(--cr-gold);
  letter-spacing: 0.18em;
  display: block;
  margin-bottom: 6px;
}
.cr-screen-caption h4 {
  font-family: var(--cr-font-body);
  font-size: 18px;
  font-weight: 700;
  color: var(--cr-fg-primary);
}
.cr-screen-caption p {
  margin-top: 6px;
  font-size: 13px;
  color: var(--cr-fg-secondary);
  max-width: 240px;
  line-height: 1.5;
}

/* ─────────────── Bottom CTA ─────────────── */
.cr-cta {
  padding: 80px 0 100px;
  text-align: center;
  position: relative;
}
.cr-cta::before {
  content: "";
  position: absolute;
  left: 50%; top: 0;
  transform: translateX(-50%);
  width: 1200px;
  max-width: 100%;
  height: 1px;
  background: linear-gradient(to right, transparent, rgba(255,155,0,.25), transparent);
}
.cr-cta h2 {
  font-family: var(--cr-font-display);
  font-size: 44px;
  color: var(--cr-fg-cream);
  letter-spacing: -0.005em;
  text-wrap: balance;
}
.cr-cta-sub {
  margin: 16px auto 36px;
  max-width: 520px;
  color: var(--cr-fg-secondary);
  font-size: 16px;
}
.cr-cta-mascot {
  width: 140px;
  height: 140px;
  margin: 0 auto 22px;
  display: block;
  filter: drop-shadow(0 8px 24px rgba(0,0,0,.5)) drop-shadow(0 0 30px rgba(255,155,0,.3));
}

/* ─────────────── Footer ─────────────── */
.cr-footer {
  padding: 36px 0 48px;
  border-top: 1px solid rgba(255,255,255,0.08);
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 13px;
  color: var(--cr-fg-secondary);
  flex-wrap: wrap;
  gap: 16px;
}
.cr-footer-left {
  display: flex; align-items: center; gap: 12px;
  font-family: var(--cr-font-display);
  letter-spacing: 0.04em;
  text-transform: uppercase;
  font-size: 12px;
  color: var(--cr-fg-primary);
}
.cr-footer-left img { width: 22px; height: 22px; }
.cr-footer-links { display: flex; gap: 22px; }
.cr-footer-links a { transition: color .15s; }
.cr-footer-links a:hover { color: var(--cr-gold); }

/* ─────────────── Privacy page ─────────────── */
.cr-privacy-head {
  padding: 70px 0 40px;
  text-align: left;
  border-bottom: 1px solid rgba(255,255,255,0.08);
}
.cr-privacy-head h1 {
  font-family: var(--cr-font-display);
  font-size: 56px;
  color: var(--cr-fg-cream);
  letter-spacing: -0.005em;
}
.cr-privacy-head .updated {
  margin-top: 10px;
  color: var(--cr-fg-secondary);
  font-size: 14px;
  letter-spacing: 0.04em;
}
.cr-privacy-body {
  max-width: 680px;
  margin: 0 auto;
  padding: 60px 0 80px;
}
.cr-privacy-body h2 {
  font-family: var(--cr-font-display);
  font-size: 22px;
  color: var(--cr-gold);
  letter-spacing: 0.02em;
  margin-top: 40px;
  margin-bottom: 14px;
  text-transform: uppercase;
}
.cr-privacy-body h2:first-of-type { margin-top: 0; }
.cr-privacy-body h3 {
  font-family: var(--cr-font-body);
  font-size: 16px;
  color: var(--cr-fg-cream);
  font-weight: 700;
  margin-top: 22px;
  margin-bottom: 8px;
}
.cr-privacy-body p {
  font-size: 16px;
  line-height: 1.7;
  color: var(--cr-fg-primary);
  margin-bottom: 14px;
}
.cr-privacy-body p.muted { color: var(--cr-fg-secondary); }
.cr-privacy-body a {
  color: var(--cr-gold);
  border-bottom: 1px solid rgba(255,155,0,.35);
  transition: border-color .15s;
}
.cr-privacy-body a:hover { border-bottom-color: var(--cr-gold); }
.cr-privacy-body ul {
  list-style: none;
  padding: 0;
  margin: 12px 0 14px;
}
.cr-privacy-body li {
  position: relative;
  padding-left: 22px;
  font-size: 16px;
  line-height: 1.7;
  color: var(--cr-fg-primary);
  margin-bottom: 6px;
}
.cr-privacy-body li::before {
  content: "♞";
  position: absolute;
  left: 0;
  color: var(--cr-gold);
  font-size: 14px;
  top: 2px;
}
.cr-privacy-body strong {
  color: var(--cr-fg-cream);
  font-weight: 700;
}
.cr-privacy-body .contact-box {
  margin-top: 20px;
  padding: 22px 26px;
  background: var(--cr-gold-faint);
  border: 1px solid var(--cr-gold-soft);
  border-radius: 14px;
}
.cr-privacy-body .contact-box p { margin-bottom: 8px; }
.cr-privacy-body .contact-box p:last-child { margin-bottom: 0; }

/* ─────────────── Responsive ─────────────── */
@media (max-width: 900px) {
  .cr-hero {
    grid-template-columns: 1fr;
    gap: 40px;
    padding: 40px 0 60px;
    text-align: center;
  }
  .cr-hero-eyebrow { justify-content: center; }
  .cr-hero h1 { font-size: 48px; }
  .cr-hero-sub { margin-left: auto; margin-right: auto; }
  .cr-dl-row { justify-content: center; }
  .cr-hero-phone { width: 260px; }

  .cr-screens { padding: 60px 0; }
  .cr-screens-title { font-size: 34px; }
  .cr-screens-grid {
    grid-template-columns: 1fr;
    gap: 60px;
  }
  .cr-screen-frame img { width: 240px; }

  .cr-cta { padding: 60px 0 80px; }
  .cr-cta h2 { font-size: 34px; }

  .cr-privacy-head h1 { font-size: 40px; }

  .cr-footer { justify-content: center; text-align: center; }
}

@media (max-width: 600px) {
  .cr-container { padding: 0 20px; }
  .cr-nav { padding: 18px 0; }
  .cr-nav-links { gap: 20px; font-size: 13px; }
  .cr-hero h1 { font-size: 38px; }
  .cr-hero-sub { font-size: 16px; }
  .cr-dl-btn { padding: 10px 16px 10px 14px; }
  .cr-dl-btn-text strong { font-size: 14px; }
}
