/* Moonlight design tokens */
:root {
  /* Surfaces — lifted indigo, gradient-friendly */
  --bg: #181534;
  --bg-1: #1d1a3c;
  --bg-2: #221e44;
  --bg-3: #28244e;
  --bg-card: #1b1839;
  --bg-deep: #120f28;

  /* Lines */
  --line: rgba(255, 255, 255, 0.07);
  --line-strong: rgba(255, 255, 255, 0.12);
  --line-bright: rgba(255, 255, 255, 0.2);

  /* Text */
  --text: #ece8f3;
  --text-2: #b8b1c6;
  --text-3: #7e7790;
  --text-4: #54506a;

  /* Brand — eclipse */
  --violet: #8a78d8;
  --violet-deep: #5b4ba1;
  --violet-dim: #3a3260;
  --cream: #f3d6a8;
  --cream-hi: #fbe9c8;
  --cream-glow: #ffd9a3;

  /* Accents */
  --good: #7ec48a;
  --warn: #f0c674;

  /* Radii */
  --r-xs: 4px;
  --r-sm: 6px;
  --r-md: 10px;
  --r-lg: 14px;
  --r-xl: 20px;
  --r-2xl: 28px;

  /* Shadows */
  --shadow-soft: 0 10px 40px -10px rgba(0,0,0,0.6);
  --shadow-app: 0 60px 120px -20px rgba(0,0,0,0.8),
                0 30px 60px -30px rgba(90,70,160,0.35),
                0 0 0 1px rgba(255,255,255,0.04);

  /* Type */
  --font-serif: "Newsreader", "Iowan Old Style", "Apple Garamond", Georgia, serif;
  --font-sans: -apple-system, "SF Pro Text", "SF Pro Display", "Helvetica Neue", system-ui, sans-serif;
  --font-mono: ui-monospace, "SF Mono", "JetBrains Mono", Menlo, monospace;
}

* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; max-width: 100%; overflow-x: hidden; }

html {
  background: #11173c;
  scrollbar-color: rgba(255,255,255,0.14) #11173c;
}

body {
  background:
    radial-gradient(1400px 900px at 85% -10%, rgba(243, 200, 160, 0.10), transparent 55%),
    radial-gradient(1600px 1100px at -10% 5%, rgba(96, 130, 235, 0.26), transparent 60%),
    radial-gradient(1200px 800px at 70% 35%, rgba(80, 150, 240, 0.18), transparent 60%),
    radial-gradient(1100px 700px at 100% 60%, rgba(120, 160, 220, 0.10), transparent 60%),
    radial-gradient(1300px 900px at 0% 80%, rgba(70, 100, 200, 0.22), transparent 60%),
    linear-gradient(180deg, #161e48 0%, #11173c 40%, #0f1638 70%, #131c44 100%);
  background-attachment: fixed;
  color: var(--text);
  font-family: var(--font-sans);
  font-size: 16px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  font-feature-settings: "ss01", "cv11";
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}

#root {
  max-width: 100%;
  overflow-x: hidden;
}

/* Subtle grain to break up large gradients */
body::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='160' height='160'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2' stitchTiles='stitch'/><feColorMatrix values='0 0 0 0 1  0 0 0 0 1  0 0 0 0 1  0 0 0 0.5 0'/></filter><rect width='100%' height='100%' filter='url(%23n)' opacity='0.5'/></svg>");
  opacity: 0.04;
  mix-blend-mode: overlay;
  z-index: 0;
}

a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; background: none; border: 0; padding: 0; cursor: pointer; }

::selection { background: rgba(243,214,168,0.25); color: var(--cream-hi); }

/* Containers */
.container { max-width: 1240px; margin: 0 auto; padding: 0 32px; position: relative; z-index: 1; }
.container-narrow { max-width: 980px; margin: 0 auto; padding: 0 32px; position: relative; z-index: 1; }

/* Type helpers */
.eyebrow {
  font-family: var(--font-sans);
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--text-3);
  display: inline-flex;
  align-items: center;
  gap: 8px;
}
.eyebrow::before {
  content: "";
  width: 18px; height: 1px;
  background: var(--text-4);
  display: inline-block;
}

h1, h2, h3, h4 {
  font-family: var(--font-serif);
  font-weight: 400;
  letter-spacing: -0.012em;
  margin: 0;
  color: var(--text);
}
h1 { font-size: clamp(44px, 6.2vw, 84px); line-height: 1.02; letter-spacing: -0.025em; }
h2 { font-size: clamp(32px, 3.8vw, 52px); line-height: 1.05; letter-spacing: -0.02em; }
h3 { font-size: 22px; line-height: 1.25; }

.serif-italic { font-style: italic; color: var(--cream); }

p { margin: 0; color: var(--text-2); }
.lede { font-size: clamp(17px, 1.4vw, 19px); color: var(--text-2); line-height: 1.55; max-width: 56ch; }

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  height: 44px;
  padding: 0 18px;
  border-radius: 10px;
  font-size: 14.5px;
  font-weight: 500;
  letter-spacing: -0.005em;
  transition: transform .15s ease, background .2s ease, border-color .2s ease, box-shadow .2s ease;
  white-space: nowrap;
}
.btn:active { transform: translateY(1px); }

.btn-primary {
  background: linear-gradient(180deg, #f7e3bc 0%, #e9c993 100%);
  color: #2a1e10;
  box-shadow:
    inset 0 1px 0 rgba(255,255,255,0.6),
    0 0 0 1px rgba(243,214,168,0.4),
    0 12px 30px -10px rgba(243,214,168,0.35);
}
.btn-primary:hover { box-shadow: inset 0 1px 0 rgba(255,255,255,0.7), 0 0 0 1px rgba(243,214,168,0.55), 0 14px 36px -8px rgba(243,214,168,0.45); }

.btn-ghost {
  background: rgba(255,255,255,0.05);
  color: var(--text);
  border: 1px solid var(--line-strong);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
}
.btn-ghost:hover { background: rgba(255,255,255,0.09); border-color: var(--line-bright); }

.btn-quiet { color: var(--text-2); }
.btn-quiet:hover { color: var(--text); }

.btn-sm { height: 36px; padding: 0 14px; font-size: 13.5px; border-radius: 8px; }
.btn-lg { height: 52px; padding: 0 22px; font-size: 15.5px; border-radius: 12px; }

/* Cards */
.card {
  background: linear-gradient(180deg, rgba(255,255,255,0.04), rgba(255,255,255,0.015));
  border: 1px solid var(--line);
  border-radius: var(--r-xl);
  position: relative;
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
}

/* Badges */
.badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  height: 22px;
  padding: 0 8px;
  border-radius: 999px;
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.02em;
  border: 1px solid var(--line-strong);
  color: var(--text-2);
  background: rgba(255,255,255,0.025);
}
.badge .dot { width: 6px; height: 6px; border-radius: 999px; background: currentColor; }

.badge-planned { color: #9bb6ff; border-color: rgba(155,182,255,0.25); background: rgba(155,182,255,0.06); }
.badge-progress { color: var(--cream); border-color: rgba(243,214,168,0.3); background: rgba(243,214,168,0.07); }
.badge-consider { color: #b8b1c6; border-color: rgba(184,177,198,0.22); background: rgba(184,177,198,0.05); }
.badge-later { color: #7e7790; border-color: rgba(126,119,144,0.25); background: rgba(126,119,144,0.05); }
.badge-shipped { color: #7ec48a; border-color: rgba(126,196,138,0.3); background: rgba(126,196,138,0.06); }

/* Section spacing */
section { padding: 120px 0; position: relative; z-index: 1; }
.section-tight { padding: 80px 0; }

.divider {
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--line-strong), transparent);
  margin: 0;
}

/* Scrollbars */
::-webkit-scrollbar { width: 10px; height: 10px; }
::-webkit-scrollbar-track { background: #11173c; }
::-webkit-scrollbar-thumb { background: rgba(255,255,255,0.06); border-radius: 999px; }
::-webkit-scrollbar-thumb:hover { background: rgba(255,255,255,0.12); }
::-webkit-scrollbar-corner { background: #11173c; }

/* ---- v2 blue-shift overrides ---- */
.hero-glow {
  background:
    radial-gradient(60% 50% at 30% 30%, rgba(110, 150, 240, 0.34), transparent 70%),
    radial-gradient(50% 40% at 70% 40%, rgba(140, 175, 235, 0.18), transparent 70%),
    radial-gradient(40% 30% at 50% 80%, rgba(243, 200, 160, 0.10), transparent 70%) !important;
}

/* Responsive */
@media (max-width: 880px) {
  section { padding: 80px 0; }
  .container, .container-narrow { padding: 0 22px; }
}
