/* TruckerProfit — Shared base tokens. Each variant imports this then layers its own personality. */
@import url('https://fonts.googleapis.com/css2?family=Syne:wght@500;700;800&family=DM+Sans:wght@300;400;500;700&family=JetBrains+Mono:wght@400;600&display=swap');

:root {
  /* Palette B */
  --navy-deep: #0F1B38;
  --navy: #1A2952;
  --midnight: #1A2952;
  --ink: #2A3A6E;
  --gold: #F46A2D;
  --gold-soft: #FF8344;
  --gold-deep: #D14A0F;
  --electric: #4DA3FF;
  --success: #00D084;
  --cream: #F5F0E6;
  --paper: #F5F0E6;
  --line: rgba(245, 239, 224, 0.10);
  --line-strong: rgba(245, 239, 224, 0.22);

  /* Spacing scale — multiples of 8 */
  --s1: 4px; --s2: 8px; --s3: 16px; --s4: 24px; --s5: 32px; --s6: 48px; --s7: 64px; --s8: 96px; --s9: 128px; --s10: 160px;

  /* Type scale */
  --f-display: 'Syne', system-ui, sans-serif;
  --f-body: 'DM Sans', system-ui, sans-serif;
  --f-mono: 'JetBrains Mono', ui-monospace, monospace;

  /* Shadows */
  --sh-1: 0 1px 2px rgba(0,0,0,.4);
  --sh-2: 0 4px 16px rgba(0,0,0,.32), 0 2px 4px rgba(0,0,0,.25);
  --sh-3: 0 12px 40px rgba(0,0,0,.5), 0 4px 12px rgba(0,0,0,.35);
  --sh-glow: 0 0 0 1px rgba(244,106,45,.5), 0 12px 48px rgba(244,106,45,.25);

  /* Motion */
  --ease: cubic-bezier(.2,.7,.2,1);
  --ease-out: cubic-bezier(.16,1,.3,1);
}

* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
html { background: var(--navy-deep); color: var(--cream); -webkit-font-smoothing: antialiased; -moz-osx-font-smoothing: grayscale; text-rendering: optimizeLegibility; scroll-behavior: smooth; }
body { font-family: var(--f-body); font-weight: 400; font-size: 17px; line-height: 1.5; min-height: 100vh; overflow-x: hidden; }

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

::selection { background: var(--gold); color: var(--navy-deep); }

/* Top utility bar (logo + lang toggle) — used by every variant */
.sf-topbar {
  position: fixed; top: 0; left: 0; right: 0; z-index: 50;
  display: flex; align-items: center; justify-content: space-between;
  padding: 24px 48px;
  pointer-events: none;
}
.sf-topbar > * { pointer-events: auto; }
.sf-topbar .logo { display: flex; align-items: center; gap: 12px; }
.sf-topbar .logo img { height: 44px; width: auto; }
.sf-topbar .logo .wordmark { font-family: var(--f-display); font-weight: 700; font-size: 14px; letter-spacing: 0.18em; text-transform: uppercase; color: var(--cream); opacity: 0.85; }
.sf-topbar .actions { display: flex; align-items: center; gap: 16px; }
.sf-lang {
  display: inline-flex; align-items: center; gap: 8px;
  height: 36px; padding: 0 14px;
  font-family: var(--f-mono); font-size: 12px; letter-spacing: 0.12em;
  background: rgba(245,239,224,0.06); border: 1px solid var(--line-strong);
  border-radius: 999px; color: var(--cream);
  transition: background .2s var(--ease), border-color .2s var(--ease);
}
.sf-lang:hover { background: rgba(245,239,224,0.12); border-color: var(--gold); }
.sf-lang .dot { width: 6px; height: 6px; border-radius: 50%; background: var(--gold); }

.sf-signin {
  height: 36px; padding: 0 16px;
  display: inline-flex; align-items: center;
  font-family: var(--f-body); font-size: 13px; font-weight: 500; letter-spacing: 0.04em;
  color: var(--cream); opacity: 0.75;
  transition: opacity .2s var(--ease);
}
.sf-signin:hover { opacity: 1; color: var(--gold-soft); }

/* Variant chip — shown bottom-left on each variant for CEO preview navigation */
.sf-variant-chip {
  position: fixed; bottom: 24px; left: 24px; z-index: 60;
  display: inline-flex; align-items: center; gap: 12px;
  padding: 10px 14px 10px 12px;
  background: rgba(15,27,56,0.78); backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px);
  border: 1px solid var(--line-strong);
  border-radius: 12px;
  font-family: var(--f-mono); font-size: 11px; letter-spacing: 0.14em; text-transform: uppercase;
  color: var(--cream); text-decoration: none;
}
.sf-variant-chip .num { color: var(--gold); }
.sf-variant-chip:hover { border-color: var(--gold); }

@media (max-width: 720px) {
  .sf-topbar { padding: 16px 20px; }
  .sf-topbar .logo img { height: 36px; }
  .sf-topbar .logo .wordmark { display: none; }
  .sf-variant-chip { bottom: 16px; left: 16px; font-size: 10px; padding: 8px 12px; }
}

/* Reduced motion */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: 0.01ms !important; animation-iteration-count: 1 !important; transition-duration: 0.01ms !important; }
}
