/* Security Nomads redesign — shared base (tokens, nav, buttons, footer, motifs) */
:root {
  --navy-900: #07101c;
  --navy-800: #0b1220;
  --navy-700: #111a2c;
  --navy-600: #1a2540;
  --line: rgba(232, 238, 245, 0.12);
  --line-strong: rgba(232, 238, 245, 0.24);
  --cream: #f2efe6;
  --cream-dim: #d9d4c5;
  --snow: #e8eef5;
  --muted: #8a93a6;
  --amber: oklch(0.78 0.13 70);
  --amber-soft: oklch(0.78 0.13 70 / 0.18);
  --sage: oklch(0.72 0.06 165);

  --font-display: "Instrument Serif", "Source Serif 4", Georgia, serif;
  --font-body: "Geist", "Geist Variable", ui-sans-serif, system-ui, -apple-system, sans-serif;
  --font-mono: "JetBrains Mono", ui-monospace, "SF Mono", Menlo, monospace;

  --radius: 14px;
  --radius-sm: 8px;
}

* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
body {
  background: var(--navy-800);
  color: var(--cream);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
img { max-width: 100%; display: block; }
a { color: inherit; }

/* Typography utilities */
.eyebrow {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--cream-dim);
  display: inline-flex;
  align-items: center;
  gap: 10px;
}
.eyebrow::before { content: ""; width: 22px; height: 1px; background: var(--amber); }
.eyebrow.center { justify-content: center; }
.display {
  font-family: var(--font-display);
  font-weight: 400;
  font-style: normal;
  letter-spacing: -0.01em;
  line-height: 1.02;
}
.serif-italic { font-family: var(--font-display); font-style: italic; }
.amber { color: var(--amber); }
.mono { font-family: var(--font-mono); }

/* Layout */
.wrap { max-width: 1240px; margin: 0 auto; padding: 0 32px; }
.wrap-narrow { max-width: 960px; margin: 0 auto; padding: 0 32px; }
section { position: relative; }

/* NAV */
.nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 50;
  backdrop-filter: blur(14px) saturate(140%);
  -webkit-backdrop-filter: blur(14px) saturate(140%);
  background: linear-gradient(to bottom, rgba(7,16,28,0.78), rgba(7,16,28,0.4));
  border-bottom: 1px solid transparent;
  transition: border-color 0.3s, background 0.3s;
}
.nav.scrolled { border-bottom-color: var(--line); background: rgba(7,16,28,0.85); }
.nav-inner {
  max-width: 1240px; margin: 0 auto; padding: 16px 32px;
  display: flex; align-items: center; justify-content: space-between; gap: 24px;
}
.brand { display: flex; align-items: center; gap: 12px; text-decoration: none; color: var(--cream); }
.brand-mark {
  width: 36px; height: 36px; border-radius: 8px; overflow: hidden;
  border: 1px solid var(--line-strong); background: var(--navy-900); display: grid; place-items: center;
}
.brand-mark img { width: 100%; height: 100%; object-fit: cover; }
.brand-name { font-family: var(--font-display); font-size: 20px; letter-spacing: 0.01em; }
.brand-name small {
  display: block; font-family: var(--font-mono); font-size: 9px; letter-spacing: 0.22em;
  text-transform: uppercase; color: var(--muted); margin-top: -2px;
}
.nav-links { display: flex; gap: 28px; align-items: center; }
.nav-links a { color: var(--cream-dim); text-decoration: none; font-size: 14px; transition: color 0.2s; }
.nav-links a:hover { color: var(--cream); }
.nav-links a.tag {
  font-family: var(--font-mono); font-size: 10px; letter-spacing: 0.14em; text-transform: uppercase;
  color: var(--amber); border: 1px solid var(--amber-soft); padding: 4px 10px; border-radius: 999px;
}
@media (max-width: 860px) { .nav-links a:not(.btn):not(.tag) { display: none; } }
@media (max-width: 560px) { .nav-links a.tag { display: none; } }

/* Buttons */
.btn {
  display: inline-flex; align-items: center; gap: 10px; padding: 12px 20px; border-radius: 999px;
  font-family: var(--font-body); font-size: 14px; font-weight: 500; text-decoration: none;
  border: 1px solid transparent; cursor: pointer;
  transition: transform 0.15s, background 0.2s, border-color 0.2s, color 0.2s;
}
.btn:hover { transform: translateY(-1px); }
.btn-primary { background: var(--cream); color: var(--navy-800); }
.btn-primary:hover { background: #fff; }
.btn-amber { background: var(--amber); color: var(--navy-900); }
.btn-amber:hover { filter: brightness(1.08); }
.btn-ghost { background: transparent; color: var(--cream); border-color: var(--line-strong); }
.btn-ghost:hover { border-color: var(--cream); background: rgba(242,239,230,0.06); }
.btn .arr { display: inline-block; transition: transform 0.2s; }
.btn:hover .arr { transform: translateX(3px); }

/* Ticker strip */
.strip { border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); padding: 26px 0; background: var(--navy-900); overflow: hidden; }
.strip-inner {
  display: flex; gap: 60px; align-items: center; white-space: nowrap; width: max-content;
  animation: marquee 42s linear infinite;
  font-family: var(--font-mono); font-size: 12px; letter-spacing: 0.2em; text-transform: uppercase; color: var(--cream-dim);
}
.strip-inner span { display: inline-flex; align-items: center; gap: 14px; }
.strip-inner .dot { color: var(--amber); }
@keyframes marquee { to { transform: translateX(-50%); } }

/* Star field */
.stars { position: absolute; inset: 0; z-index: 0; pointer-events: none; }
.stars .star {
  position: absolute; width: 2px; height: 2px; background: #fff; border-radius: 50%;
  box-shadow: 0 0 6px rgba(255,255,255,0.5); animation: twinkle 4s ease-in-out infinite;
}
@keyframes twinkle { 0%,100%{opacity:.3;transform:scale(1);} 50%{opacity:1;transform:scale(1.4);} }

/* Pulse dot */
.pulse { display: inline-flex; align-items: center; gap: 8px; }
.pulse-dot { width: 8px; height: 8px; border-radius: 50%; background: var(--amber); animation: pulse 2s infinite; }
@keyframes pulse {
  0% { box-shadow: 0 0 0 0 oklch(0.78 0.13 70 / 0.6); }
  70% { box-shadow: 0 0 0 10px oklch(0.78 0.13 70 / 0); }
  100% { box-shadow: 0 0 0 0 oklch(0.78 0.13 70 / 0); }
}

/* Score dial (Waypoint product visual) — shared component */
.dial { position: relative; width: 220px; height: 220px; }
.dial svg { width: 100%; height: 100%; transform: rotate(-90deg); }
.dial .track { fill: none; stroke: var(--line-strong); stroke-width: 10; }
.dial .prog { fill: none; stroke: url(#dialgrad); stroke-width: 10; stroke-linecap: round;
  stroke-dasharray: 616; stroke-dashoffset: 62; animation: dialfill 1.6s ease-out both; }
@keyframes dialfill { from { stroke-dashoffset: 616; } }
.dial .center {
  position: absolute; inset: 0; display: grid; place-content: center; text-align: center;
}
.dial .center .n { font-family: var(--font-display); font-size: 58px; line-height: 1; }
.dial .center .d { font-family: var(--font-display); font-size: 24px; color: var(--amber); }
.dial .center .l { font-family: var(--font-mono); font-size: 9px; letter-spacing: 0.2em; text-transform: uppercase; color: var(--muted); margin-top: 6px; }

/* Footer */
.footer { background: var(--navy-900); border-top: 1px solid var(--line); padding: 60px 0 32px; }
.footer-inner { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: 40px; margin-bottom: 48px; }
@media (max-width: 800px) { .footer-inner { grid-template-columns: 1fr 1fr; } }
.footer h4 { font-family: var(--font-mono); font-size: 10px; letter-spacing: 0.2em; color: var(--muted); text-transform: uppercase; margin: 0 0 16px; }
.footer ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 10px; }
.footer a { color: var(--cream-dim); text-decoration: none; font-size: 14px; }
.footer a:hover { color: var(--cream); }
.footer-tagline { font-family: var(--font-display); font-size: 26px; letter-spacing: -0.01em; line-height: 1.2; margin: 16px 0 8px; max-width: 320px; }
.footer-tagline em { font-style: italic; color: var(--amber); }
.footer-bottom { border-top: 1px solid var(--line); padding-top: 24px; display: flex; justify-content: space-between; font-family: var(--font-mono); font-size: 11px; letter-spacing: 0.1em; color: var(--muted); text-transform: uppercase; flex-wrap: wrap; gap: 12px; }

/* Reveal on scroll */
.reveal { opacity: 0; transform: translateY(20px); transition: opacity 0.8s ease, transform 0.8s ease; }
.reveal.in { opacity: 1; transform: translateY(0); }
@media (prefers-reduced-motion: reduce) { .reveal { opacity: 1; transform: none; } .strip-inner, .dial .prog { animation: none; } }
