/* ============================================
   COMPUTER RABBIT — Design System
   Navy + Gold premium MSP
   ============================================ */

:root {
  /* Navy palette */
  --navy-950: #0a1424;
  --navy-900: #0e1a2e;
  --navy-800: #14213a;
  --navy-700: #1a2540;
  --navy-600: #243154;
  --navy-500: #324270;
  --navy-400: oklch(45% 0.04 260);

  /* Gold palette */
  --gold-50:  #fbf6e7;
  --gold-100: #f3e6b8;
  --gold-200: #e6c878;
  --gold-300: #d4ac56;
  --gold-400: #c9a24a;
  --gold-500: #b88c2e;
  --gold-600: #a8841f;
  --gold-700: #856815;

  /* Silver palette — warm classic silver/pewter (distinct from platinum) */
  --silver-50:  #eef0f3;
  --silver-100: #dee0e6;
  --silver-200: #d4d7df;
  --silver-300: #b9beca;
  --silver-400: #8a8f9c;
  --silver-500: #71757f;
  --silver-600: #5a5d68;
  --silver-700: #3f424b;

  /* Neutrals */
  --cream:    #f5efe1;
  --cream-2:  #ece4cf;
  --ink:      #0a1424;
  --ink-soft: #2a3550;
  --line:     rgba(201, 162, 74, 0.18);
  --line-strong: rgba(201, 162, 74, 0.45);

  /* Gradients */
  --gold-shine: linear-gradient(135deg, #856815 0%, #c9a24a 25%, #f3e6b8 50%, #c9a24a 75%, #856815 100%);
  --gold-shine-vert: linear-gradient(180deg, #d4ac56 0%, #c9a24a 50%, #856815 100%);
  --gold-soft: linear-gradient(180deg, #d4ac56, #a8841f);
  --silver-shine: linear-gradient(135deg, #5a5d68 0%, #8a8f9c 30%, #c2c5cd 50%, #8a8f9c 70%, #5a5d68 100%);
  --silver-shine-vert: linear-gradient(180deg, #b9beca 0%, #8a8f9c 50%, #5a5d68 100%);
  --silver-soft: linear-gradient(180deg, #b9beca, #5a5d68);
  --navy-curtain: linear-gradient(180deg, var(--navy-900), var(--navy-950));

  /* Secondary metal — used alongside primary accent. Default = silver. */
  --accent-2: var(--silver-300);
  --accent-2-soft: var(--silver-200);
  --accent-2-shine: var(--silver-shine);
  --accent-2-shine-vert: var(--silver-shine-vert);
  --line-2: rgba(174, 183, 197, 0.18);
  --line-2-strong: rgba(174, 183, 197, 0.45);

  /* Type */
  --font-display: "Cormorant Garamond", "Playfair Display", Georgia, serif;
  --font-sans: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --font-mono: "JetBrains Mono", ui-monospace, "SFMono-Regular", monospace;

  /* Spacing */
  --gutter: clamp(20px, 4vw, 48px);
  --section-y: clamp(80px, 12vw, 160px);

  /* Theme defaults (overridden by tweaks) */
  --bg: var(--navy-900);
  --bg-elev: var(--navy-800);
  --fg: var(--cream);
  --fg-dim: rgba(245, 239, 225, 0.62);
  --accent: var(--gold-400);
  --accent-soft: var(--gold-200);
}

/* Theme variants */
[data-theme="navy"] {
  --bg: var(--navy-900);
  --bg-elev: var(--navy-800);
  --fg: var(--cream);
  --fg-dim: rgba(245, 239, 225, 0.62);
}
[data-theme="black"] {
  --bg: #050811;
  --bg-elev: #0d121f;
  --fg: var(--cream);
  --fg-dim: rgba(245, 239, 225, 0.55);
}
[data-theme="cream"] {
  --bg: var(--cream);
  --bg-elev: #fff;
  --fg: var(--navy-900);
  --fg-dim: rgba(14, 26, 46, 0.62);
  --line: rgba(14, 26, 46, 0.12);
  --line-strong: rgba(14, 26, 46, 0.3);
}

/* Density */
[data-density="spacious"] {
  --section-y: clamp(120px, 16vw, 220px);
}
[data-density="compact"] {
  --section-y: clamp(60px, 8vw, 100px);
}

/* ============================================
   METAL MODE — controls gold/silver mix
   gold     : original (gold accents only, no silver)
   duo      : gold primary + silver secondary (default for this exploration)
   silver-led: silver primary + gold secondary (flipped)
   silver   : silver only (gold removed)
   ============================================ */
[data-metal="duo"] {
  --accent-2: var(--silver-300);
  --accent-2-soft: var(--silver-200);
  --accent-2-shine: var(--silver-shine);
  --accent-2-shine-vert: var(--silver-shine-vert);
  --line-2: rgba(174, 183, 197, 0.18);
  --line-2-strong: rgba(174, 183, 197, 0.45);
}
[data-metal="silver-led"] {
  --accent: var(--silver-300);
  --accent-soft: var(--silver-200);
  --gold-shine: var(--silver-shine);
  --gold-shine-vert: var(--silver-shine-vert);
  --gold-200: var(--silver-200);
  --gold-300: var(--silver-300);
  --gold-400: var(--silver-400);
  --line: rgba(174, 183, 197, 0.18);
  --line-strong: rgba(174, 183, 197, 0.45);
  --accent-2: var(--gold-300);
  --accent-2-soft: var(--gold-200);
  --accent-2-shine: linear-gradient(135deg, #856815 0%, #c9a24a 25%, #f3e6b8 50%, #c9a24a 75%, #856815 100%);
  --accent-2-shine-vert: linear-gradient(180deg, #d4ac56 0%, #c9a24a 50%, #856815 100%);
  --line-2: rgba(201, 162, 74, 0.18);
  --line-2-strong: rgba(201, 162, 74, 0.45);
}
[data-metal="silver"] {
  --accent: var(--silver-300);
  --accent-soft: var(--silver-200);
  --gold-shine: var(--silver-shine);
  --gold-shine-vert: var(--silver-shine-vert);
  --gold-soft: var(--silver-soft);
  --gold-200: var(--silver-200);
  --gold-300: var(--silver-300);
  --gold-400: var(--silver-400);
  --gold-500: var(--silver-500);
  --gold-600: var(--silver-600);
  --gold-700: var(--silver-700);
  --line: rgba(174, 183, 197, 0.18);
  --line-strong: rgba(174, 183, 197, 0.45);
  --accent-2: var(--silver-300);
  --accent-2-soft: var(--silver-200);
  --accent-2-shine: var(--silver-shine);
  --accent-2-shine-vert: var(--silver-shine-vert);
  --line-2: rgba(174, 183, 197, 0.18);
  --line-2-strong: rgba(174, 183, 197, 0.45);
}

/* Silver utility classes — used in duo/silver-led modes for secondary accents */
.silver-text {
  /* Warm classic silver — softer broad highlight, dimmer overall (vs platinum chrome) */
  background: linear-gradient(180deg,
    #e8eaee 0%,
    #c2c5cd 30%,
    #8a8f9c 55%,
    #c2c5cd 78%,
    #e8eaee 100%
  );
  background-size: 100% 100%;
  background-position: 0 0;
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  -webkit-text-fill-color: transparent;
}

/* In gold-only mode, silver-text falls back to gold so the accent stays metallic */
[data-metal="gold"] .silver-text {
  background: var(--gold-shine);
  background-size: 200% 200%;
  background-position: 50% 50%;
}
.btn-silver {
  background: var(--accent-2-shine);
  background-size: 200% 200%;
  color: var(--navy-950);
  box-shadow: 0 1px 0 rgba(255,255,255,.35) inset, 0 0 0 1px rgba(94, 106, 124, .4), 0 12px 30px -12px rgba(174, 183, 197, .45);
  animation: goldShimmer 6s ease-in-out infinite;
}
.btn-silver:hover { box-shadow: 0 1px 0 rgba(255,255,255,.4) inset, 0 0 0 1px rgba(94, 106, 124, .6), 0 18px 40px -10px rgba(174, 183, 197, .6); }

* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  background: var(--bg);
  color: var(--fg);
  font-family: var(--font-sans);
  font-size: 16px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}

img { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; background: none; border: 0; cursor: pointer; }

/* ============================================
   TYPOGRAPHY
   ============================================ */
.eyebrow {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--accent);
  font-weight: 500;
}
.eyebrow-dim {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--fg-dim);
  font-weight: 500;
}

.display-xl {
  font-family: var(--font-display);
  font-weight: 400;
  font-size: clamp(56px, 9vw, 148px);
  line-height: 0.96;
  letter-spacing: -0.02em;
}

/* 2.5D extruded headline — stacks layered shadows for depth.
   Cool navy/silver ramp so cream text stays clean (not yellowed)
   and silver accents read as silver, not warm metal. */
/* Hero headline — flat 2D rendering (was 2.5D extruded).
   The cool tonal ramp is preserved via filter: drop-shadow on italic accents below. */
.hero-headline.is-extruded {
  text-shadow: none;
}
[data-theme="cream"] .hero-headline.is-extruded {
  text-shadow: none;
}
/* Italic accents inside the extruded headline — flat rendering */
.hero-headline.is-extruded .italic {
  filter: none;
}

/* Silver-clipped text inside a (formerly extruded) headline: keep it flat too */
.hero-headline.is-extruded .silver-text,
.is-extruded-2 .silver-text {
  text-shadow: none;
  filter: none;
}
.hero-headline.is-extruded .silver-text .italic,
.is-extruded-2 .silver-text .italic {
  filter: none;
}

/* Section headings — flat 2D (was 2.5D extrusion) */
.is-extruded-2 {
  text-shadow: none;
}
[data-theme="cream"] .is-extruded-2 {
  text-shadow: none;
}
.is-extruded-2 .italic {
  filter: none;
}
.is-extruded-2 .no-extrude {
  text-shadow: none;
  filter: none;
}
/* Opt-out — flat rendering for spans tagged .no-extrude */
.hero-headline.is-extruded .no-extrude {
  text-shadow: none;
  filter: none;
}
.display-lg {
  font-family: var(--font-display);
  font-weight: 400;
  font-size: clamp(44px, 6.5vw, 96px);
  line-height: 1;
  letter-spacing: -0.015em;
}
.display-md {
  font-family: var(--font-display);
  font-weight: 400;
  font-size: clamp(32px, 4vw, 64px);
  line-height: 1.05;
  letter-spacing: -0.01em;
}
.italic { font-style: italic; }

.gold-text {
  background: var(--gold-shine);
  background-size: 200% 200%;
  background-position: 50% 50%;
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  -webkit-text-fill-color: transparent;
}

/* ============================================
   LAYOUT
   ============================================ */
.container {
  width: 100%;
  max-width: 1440px;
  margin: 0 auto;
  padding: 0 var(--gutter);
}

section {
  position: relative;
  padding: var(--section-y) 0;
}

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

/* ============================================
   BUTTONS
   ============================================ */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 14px 24px;
  font-family: var(--font-sans);
  font-size: 13px;
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  border-radius: 2px;
  cursor: pointer;
  position: relative;
  transition: transform .25s ease, box-shadow .25s ease, background .25s ease;
  white-space: nowrap;
}
.btn:hover { transform: translateY(-1px); }
.btn:active { transform: translateY(0); }

.btn-gold {
  background: var(--gold-shine);
  background-size: 200% 200%;
  color: var(--navy-950);
  box-shadow: 0 1px 0 rgba(255,255,255,.25) inset, 0 0 0 1px rgba(133, 104, 21, .4), 0 12px 30px -12px rgba(201, 162, 74, .45);
  animation: goldShimmer 6s ease-in-out infinite;
}
@keyframes goldShimmer {
  0%, 100% { background-position: 0% 50%; }
  50% { background-position: 100% 50%; }
}
.btn-gold:hover { box-shadow: 0 1px 0 rgba(255,255,255,.3) inset, 0 0 0 1px rgba(133, 104, 21, .6), 0 18px 40px -10px rgba(201, 162, 74, .6); }

.btn-ghost {
  color: var(--fg);
  border: 1px solid var(--line-strong);
  background: transparent;
}
.btn-ghost:hover { background: rgba(201, 162, 74, 0.08); border-color: var(--accent); }

.btn .arrow {
  display: inline-block;
  transition: transform .3s ease;
}
.btn:hover .arrow { transform: translateX(4px); }

/* ============================================
   NAV
   ============================================ */
.nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  padding: 18px 0;
  transition: all .3s ease;
  backdrop-filter: blur(0px);
}
.nav.scrolled {
  background: color-mix(in oklab, var(--bg) 80%, transparent);
  backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--line);
  padding: 12px 0;
}
.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}
.nav-brand {
  display: flex;
  align-items: center;
  gap: 12px;
}
.nav-brand img {
  height: 36px;
  width: auto;
}
.nav-brand-text {
  font-family: var(--font-display);
  font-size: 18px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--fg);
  font-weight: 500;
}
.nav-links {
  display: flex;
  gap: 32px;
  align-items: center;
}
.nav-links a {
  font-size: 13px;
  letter-spacing: 0.06em;
  color: var(--fg-dim);
  transition: color .2s ease;
  position: relative;
}
.nav-links a:hover { color: var(--accent); }
.nav-actions {
  display: flex;
  align-items: center;
  gap: 12px;
}
@media (max-width: 880px) {
  .nav-links { display: none; }
}

/* ============================================
   ANIMATIONS
   ============================================ */
@keyframes fadeUp {
  from { opacity: 0; transform: translateY(24px); }
  to   { opacity: 1; transform: translateY(0); }
}
html.js .reveal:not(.in) {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity .8s ease, transform .8s ease;
}
html.js .reveal.in {
  opacity: 1;
  transform: translateY(0);
}

@keyframes pulse-dot {
  0%, 100% { box-shadow: 0 0 0 0 rgba(201, 162, 74, 0.55); }
  50%      { box-shadow: 0 0 0 8px rgba(201, 162, 74, 0); }
}
.live-dot {
  display: inline-block;
  width: 8px; height: 8px;
  border-radius: 50%;
  background: var(--gold-300);
  animation: pulse-dot 1.8s ease-in-out infinite;
}

/* Subtle starfield / noise overlay for navy backgrounds */
.noise::before {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background-image:
    radial-gradient(1px 1px at 20% 30%, rgba(201,162,74,.08), transparent 50%),
    radial-gradient(1px 1px at 70% 60%, rgba(201,162,74,.06), transparent 50%),
    radial-gradient(1px 1px at 40% 80%, rgba(201,162,74,.05), transparent 50%);
  background-size: 800px 800px;
}

/* ============================================
   DUO MODE — silver accents alongside gold
   These rules only apply when metal=duo (or silver-led, where they swap)
   ============================================ */
[data-metal="duo"] .btn-ghost:hover,
[data-metal="silver-led"] .btn-ghost:hover {
  background: rgba(174, 183, 197, 0.08);
  border-color: var(--accent-2);
  color: var(--accent-2);
}
/* Alternate the popular tier badge to silver — keeps gold for primary CTA */
[data-metal="duo"] .tier:not(.popular) .tier-currency,
[data-metal="silver-led"] .tier:not(.popular) .tier-currency {
  color: var(--accent-2);
}
/* Tier hover border picks up secondary metal */
[data-metal="duo"] .tier:not(.popular):hover,
[data-metal="silver-led"] .tier:not(.popular):hover {
  border-color: var(--line-2-strong);
}
/* Alternate fleet status dots */
[data-metal="duo"] .status-dot.warn,
[data-metal="silver-led"] .status-dot.warn {
  background: var(--silver-200);
  box-shadow: 0 0 12px var(--silver-200);
}
/* Process step numbers — alternate gold/silver */
[data-metal="duo"] .step:nth-child(2) .step-num,
[data-metal="duo"] .step:nth-child(4) .step-num,
[data-metal="silver-led"] .step:nth-child(2) .step-num,
[data-metal="silver-led"] .step:nth-child(4) .step-num {
  background: var(--accent-2-shine);
  background-size: 200% 200%;
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  -webkit-text-fill-color: transparent;
}
[data-metal="duo"] .step:nth-child(1) .step-num,
[data-metal="duo"] .step:nth-child(3) .step-num,
[data-metal="silver-led"] .step:nth-child(1) .step-num,
[data-metal="silver-led"] .step:nth-child(3) .step-num {
  background: var(--gold-shine);
  background-size: 200% 200%;
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  -webkit-text-fill-color: transparent;
}
/* Hero foot — alternate stat numbers */
[data-metal="duo"] .hero-foot-item:nth-child(2) .hero-foot-num,
[data-metal="duo"] .hero-foot-item:nth-child(4) .hero-foot-num,
[data-metal="silver-led"] .hero-foot-item:nth-child(2) .hero-foot-num,
[data-metal="silver-led"] .hero-foot-item:nth-child(4) .hero-foot-num {
  background: var(--accent-2-shine);
  background-size: 200% 200%;
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  -webkit-text-fill-color: transparent;
}
/* Ops stats — alternate */
[data-metal="duo"] .ops-stat:nth-child(2) .ops-stat-num,
[data-metal="duo"] .ops-stat:nth-child(4) .ops-stat-num,
[data-metal="silver-led"] .ops-stat:nth-child(2) .ops-stat-num,
[data-metal="silver-led"] .ops-stat:nth-child(4) .ops-stat-num {
  color: var(--accent-2);
}
/* Mascot inner ring switches to silver */
[data-metal="duo"] .mascot-ring.r2,
[data-metal="silver-led"] .mascot-ring.r2 {
  border-color: var(--line-2-strong);
}
[data-metal="duo"] .mascot-ring.r2::before,
[data-metal="silver-led"] .mascot-ring.r2::before {
  background: var(--silver-200);
  box-shadow: 0 0 20px var(--silver-200);
}
[data-metal="silver-led"] .mascot-ring.r2::before {
  background: var(--gold-300);
  box-shadow: 0 0 20px var(--gold-300);
}
/* Severity-medium pill stays gold; add a silver "info" feel via existing low pill — unchanged */

/* ============================================
   SCROLLBAR
   ============================================ */
::selection { background: var(--gold-300); color: var(--navy-950); }

/* ============================================
   MOBILE PERFORMANCE
   Disable non-composited animations on mobile
   to cut Style & Layout time dramatically.
   ============================================ */
@media (max-width: 1024px) {
  .btn-gold,
  .hero-signature-mark,
  .tier-badge {
    animation: none !important;
  }
  .hero-signature-mark {
    filter: none;
  }
  .live-dot {
    animation: none;
    box-shadow: 0 0 0 4px rgba(201, 162, 74, 0.3);
  }
}

@media (prefers-reduced-motion: reduce) {
  .btn-gold,
  .hero-signature-mark,
  .tier-badge,
  .live-dot {
    animation: none !important;
  }
}
