/* ═══════════════ SURPLUS — SHARED DESIGN SYSTEM ═══════════════ */

:root {
  --navy: #0B1929;
  --navy-2: #0E1E31;
  --navy-3: #132238;
  --navy-deep: #07111C;
  --gold: #D4B056;
  --gold-light: #E8CC84;
  --gold-deep: #A8882E;
  --cream: #F6EFE0;
  --cream-soft: #EFE6D2;
  --ink: #0B1929;
  --line: rgba(246, 239, 224, 0.09);
  --line-strong: rgba(246, 239, 224, 0.18);
  --mute: rgba(246, 239, 224, 0.55);
  --mute-2: rgba(246, 239, 224, 0.38);
  --green: #6ECB8B;
  --primary: var(--gold);
  --primary-light: var(--gold-light);
  --primary-deep: var(--gold-deep);
  --primary-on: var(--navy);
  --glow-color: 212,176,86;
  --nav-bg-rgb: 11,25,41;
  --contrast-bg: #F6EFE0;
  --contrast-text: #0B1929;
  --contrast-mute: rgba(11,25,41,0.65);
  --contrast-mute-2: rgba(11,25,41,0.55);
  --serif: 'Fraunces', Georgia, serif;
  --sans: 'DM Sans', system-ui, sans-serif;
  --mono: 'JetBrains Mono', ui-monospace, monospace;
}
html[data-theme="light"] {
  --navy: #FFFFFF;
  --navy-2: #FAFBFD;
  --navy-3: #F2F5FA;
  --navy-deep: #EEF2F8;
  --gold: #2563EB;
  --gold-light: #3B82F6;
  --gold-deep: #1D4ED8;
  --cream: #0B1929;
  --cream-soft: #1E293B;
  --line: rgba(11, 25, 41, 0.08);
  --line-strong: rgba(11, 25, 41, 0.16);
  --mute: rgba(11, 25, 41, 0.62);
  --mute-2: rgba(11, 25, 41, 0.42);
  --green: #16A34A;
  --primary: #2563EB;
  --primary-light: #3B82F6;
  --primary-deep: #1D4ED8;
  --primary-on: #FFFFFF;
  --glow-color: 37,99,235;
  --nav-bg-rgb: 255,255,255;
  --contrast-bg: #0B1929;
  --contrast-text: #F6EFE0;
  --contrast-mute: rgba(246,239,224,0.65);
  --contrast-mute-2: rgba(246,239,224,0.55);
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html, body { max-width: 100vw; overflow-x: hidden; }
html { scroll-behavior: smooth; }
body {
  background: var(--navy);
  color: var(--cream);
  font-family: var(--sans);
  -webkit-font-smoothing: antialiased;
  line-height: 1.5;
}
h1, h2, h3, h4 { font-family: var(--serif); font-weight: 600; letter-spacing: -0.015em; line-height: 1.05; }
a { color: inherit; text-decoration: none; }
button { font-family: inherit; cursor: pointer; border: none; background: none; color: inherit; }
::selection { background: rgba(var(--glow-color), 0.35); color: var(--cream); }
::-webkit-scrollbar { width: 8px; height: 8px; }
::-webkit-scrollbar-track { background: var(--navy-deep); }
::-webkit-scrollbar-thumb { background: rgba(var(--glow-color), 0.45); border-radius: 4px; }

.wrap { max-width: 1240px; margin: 0 auto; padding: 0 28px; }
.wrap-narrow { max-width: 880px; margin: 0 auto; padding: 0 28px; }

/* atmosphere */
.atmos { position: fixed; inset: 0; pointer-events: none; z-index: 0; overflow: hidden; }
.glow { position: absolute; border-radius: 50%; filter: blur(120px); opacity: 0.28; }
.glow-1 { width: 700px; height: 700px; top: -200px; right: -150px; background: radial-gradient(circle, rgba(var(--glow-color),0.38), transparent 70%); }
.glow-2 { width: 500px; height: 500px; top: 40%; left: -180px; background: radial-gradient(circle, rgba(var(--glow-color),0.18), transparent 70%); }
html[data-theme="light"] .atmos .glow { opacity: 0.14; }

/* ─── NAV ─── */
.nav {
  position: sticky; top: 0; z-index: 50;
  backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px);
  background: rgba(var(--nav-bg-rgb), 0.78);
  border-bottom: 1px solid var(--line);
}
.nav-inner { display: flex; align-items: center; justify-content: space-between; height: 68px; }
.logo { display: flex; align-items: center; gap: 10px; }
.logo-mark {
  width: 32px; height: 32px; border-radius: 8px;
  background: linear-gradient(135deg, var(--primary-light), var(--primary-deep));
  display: grid; place-items: center; color: var(--primary-on);
  font-family: var(--serif); font-weight: 700; font-size: 17px;
  box-shadow: 0 4px 14px rgba(var(--glow-color),0.35), inset 0 1px 0 rgba(255,255,255,0.3);
}
.logo-text { font-family: var(--serif); font-weight: 600; font-size: 19px; color: var(--cream); letter-spacing: -0.01em; }
.logo-text em { font-style: normal; color: var(--primary); }
.nav-links { display: flex; gap: 32px; }
.nav-links a { font-size: 14px; color: var(--mute); transition: color .2s; position: relative; }
.nav-links a:hover, .nav-links a.active { color: var(--cream); }
.nav-links a.active::after { content: ''; position: absolute; bottom: -22px; left: 0; right: 0; height: 2px; background: var(--primary); }
.nav-cta { display: flex; gap: 10px; align-items: center; }
@media (max-width: 880px) { .nav-links { display: none; } }

/* ─── BUTTONS ─── */
.btn {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 11px 18px; border-radius: 10px; font-weight: 600; font-size: 14px;
  transition: transform .15s ease, background .2s, box-shadow .2s, border-color .2s;
  border: 1px solid transparent;
}
.btn:hover { transform: translateY(-1px); }
.btn-gold, .btn-primary {
  background: linear-gradient(180deg, var(--primary-light), var(--primary));
  color: var(--primary-on);
  box-shadow: 0 8px 24px rgba(var(--glow-color),0.28), inset 0 1px 0 rgba(255,255,255,0.35);
}
.btn-gold:hover, .btn-primary:hover { box-shadow: 0 12px 28px rgba(var(--glow-color),0.4), inset 0 1px 0 rgba(255,255,255,0.5); }
.btn-ghost { color: var(--cream); border-color: var(--line-strong); background: rgba(127,127,127,0.04); }
.btn-ghost:hover { background: rgba(127,127,127,0.08); border-color: rgba(127,127,127,0.28); }
.btn-lg { padding: 16px 26px; font-size: 16px; border-radius: 12px; }
.btn-sm { padding: 8px 14px; font-size: 13px; border-radius: 8px; }

/* ─── COMMON ─── */
.eyebrow {
  display: inline-flex; align-items: center; gap: 10px;
  padding: 7px 14px 7px 10px; border-radius: 100px;
  background: rgba(var(--glow-color), 0.08);
  border: 1px solid rgba(var(--glow-color), 0.22);
  color: var(--primary-light); font-size: 12.5px; font-weight: 500;
  letter-spacing: 0.02em;
}
.eyebrow .dot {
  width: 7px; height: 7px; border-radius: 50%; background: var(--primary);
  box-shadow: 0 0 0 4px rgba(var(--glow-color),0.18);
  animation: pulse 2s ease-in-out infinite;
}
@keyframes pulse {
  0%, 100% { box-shadow: 0 0 0 4px rgba(var(--glow-color),0.18); }
  50% { box-shadow: 0 0 0 8px rgba(var(--glow-color),0.05); }
}

.h1 {
  font-size: clamp(40px, 5.8vw, 64px); line-height: 1.0; letter-spacing: -0.028em;
  font-weight: 500; color: var(--cream); margin-bottom: 18px;
}
.h1 em { font-style: italic; font-weight: 500; color: var(--primary); }

.h2 {
  font-size: clamp(30px, 4.2vw, 48px); line-height: 1.05; letter-spacing: -0.025em;
  font-weight: 500; color: var(--cream); margin-bottom: 14px;
}
.h2 em { font-style: italic; color: var(--primary); font-weight: 500; }

.section { padding: 90px 0; position: relative; z-index: 1; }
.section-sm { padding: 60px 0; position: relative; z-index: 1; }
.section-head { text-align: center; max-width: 720px; margin: 0 auto 56px; }
.section-eyebrow {
  font-family: var(--mono); font-size: 11px; color: var(--primary);
  letter-spacing: 0.22em; text-transform: uppercase; margin-bottom: 16px;
}
.section-sub { font-size: 18px; color: var(--mute); max-width: 560px; margin: 0 auto; line-height: 1.55; }

.lede { font-size: 19px; color: var(--mute); max-width: 600px; line-height: 1.55; }

/* Card */
.card {
  background: var(--navy-2);
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 28px;
  transition: border-color .25s, transform .25s, background .25s;
}
.card:hover { border-color: rgba(var(--glow-color), 0.25); }

.card-feature {
  background: var(--navy-2);
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 28px;
}

/* Form fields */
.field-group { margin-bottom: 14px; }
.field-group label { display: block; font-size: 12px; color: var(--mute-2); margin-bottom: 7px; letter-spacing: 0.04em; text-transform: uppercase; font-weight: 500; }
.input-field {
  width: 100%; padding: 13px 14px; border-radius: 10px;
  background: rgba(127,127,127,0.04); border: 1px solid var(--line);
  color: var(--cream); font-size: 15px; font-family: var(--sans);
  transition: border-color .18s, background .18s;
}
.input-field::placeholder { color: var(--mute-2); }
.input-field:focus { outline: none; border-color: rgba(var(--glow-color),0.5); background: rgba(var(--glow-color),0.04); }

/* Reveal */
.reveal { opacity: 0; transform: translateY(20px); transition: opacity .7s ease, transform .7s ease; }
.reveal.in { opacity: 1; transform: translateY(0); }
.reveal.d1 { transition-delay: 0.08s; }
.reveal.d2 { transition-delay: 0.16s; }
.reveal.d3 { transition-delay: 0.24s; }
.reveal.d4 { transition-delay: 0.32s; }

/* Footer */
footer { border-top: 1px solid var(--line); padding: 50px 0 30px; background: var(--navy-deep); position: relative; z-index: 1; }
.foot-top { display: flex; justify-content: space-between; gap: 40px; flex-wrap: wrap; margin-bottom: 40px; }
.foot-col h4 { font-size: 12px; font-family: var(--sans); font-weight: 600; color: var(--cream); letter-spacing: 0.1em; text-transform: uppercase; margin-bottom: 14px; }
.foot-col ul { list-style: none; display: flex; flex-direction: column; gap: 9px; }
.foot-col a { color: var(--mute); font-size: 14px; transition: color .2s; }
.foot-col a:hover { color: var(--cream); }
.foot-bottom { border-top: 1px solid var(--line); padding-top: 24px; display: flex; justify-content: space-between; gap: 20px; flex-wrap: wrap; font-size: 12.5px; color: var(--mute-2); }
.disclaimer { font-size: 12px; color: var(--mute-2); line-height: 1.6; max-width: 780px; margin-top: 16px; }
.disclaimer strong { color: var(--mute); font-weight: 600; }

/* Page header (sub pages) */
.page-header {
  position: relative; z-index: 1;
  padding: 100px 0 60px;
  text-align: center;
}
.page-header .eyebrow { margin-bottom: 24px; }

/* Badge pills */
.pill {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 3px 10px; border-radius: 100px;
  font-size: 11px; font-weight: 600; letter-spacing: 0.04em;
  text-transform: uppercase; font-family: var(--sans);
}
.pill-full { background: rgba(var(--glow-color), 0.14); color: var(--primary-light); border: 1px solid rgba(var(--glow-color), 0.3); }
.pill-guided { background: rgba(110, 203, 139, 0.12); color: var(--green); border: 1px solid rgba(110, 203, 139, 0.3); }
.pill-basic { background: rgba(127,127,127, 0.1); color: var(--mute); border: 1px solid var(--line); }
.pill-soon { background: rgba(244, 114, 182, 0.1); color: #f472b6; border: 1px solid rgba(244, 114, 182, 0.3); }
