/* Weaponised Nerds · Skunk Works
   Tokens and components from the WN style guide (https://claude.ai/artifact/Y5JhXMGMBy4GdcyTDYVraZ).
   Night (dark) is the default; Day applies when the visitor's system asks for light. */

@font-face { font-family: "Chakra Petch"; font-weight: 600; font-style: normal; font-display: swap; src: url("/fonts/chakra-petch-600.woff2") format("woff2"); }
@font-face { font-family: "Chakra Petch"; font-weight: 700; font-style: normal; font-display: swap; src: url("/fonts/chakra-petch-700.woff2") format("woff2"); }
@font-face { font-family: "Atkinson Hyperlegible Next"; font-weight: 200 800; font-style: normal; font-display: swap; src: url("/fonts/atkinson-hyperlegible-next.woff2") format("woff2"); }
@font-face { font-family: "Atkinson Hyperlegible Mono"; font-weight: 400; font-style: normal; font-display: swap; src: url("/fonts/atkinson-hyperlegible-mono.woff2") format("woff2"); }

:root {
  color-scheme: dark;
  --ground: #000000;
  --surface: #0c110e;
  --line: #26332c;
  --ink: #f8f8f8;
  --ink-muted: #9aa59f;
  --volt: #2ff28c;
  --volt-glow: #44f8a8;
  --volt-shade: #126462;
  --on-volt: #000000;
  --volt-text: #2ff28c;
  --focus: #2ff28c;
  --glow: 0 0 0 1px #2ff28c, 0 0 28px rgba(47, 242, 140, 0.35);

  --font-display: "Chakra Petch", "Arial Narrow", system-ui, sans-serif;
  --font-body: "Atkinson Hyperlegible Next", system-ui, -apple-system, "Segoe UI", sans-serif;
  --font-mono: "Atkinson Hyperlegible Mono", ui-monospace, "SF Mono", Menlo, monospace;

  --space-1: 4px; --space-2: 8px; --space-3: 12px; --space-4: 16px; --space-6: 24px;
  --space-8: 32px; --space-12: 48px; --space-16: 64px; --space-24: 96px;
  --radius-pill: 999px;
  --chamfer-sm: 8px;
  --chamfer-lg: 20px;
  --content: 1120px;
}

@media (prefers-color-scheme: light) {
  :root {
    color-scheme: light;
    --ground: #f8f8f8;
    --surface: #ffffff;
    --line: #d6ddd9;
    --ink: #000000;
    --ink-muted: #5c6660;
    --volt-text: #126462;
    --focus: #126462;
    --glow: 0 0 0 1px #126462;
  }
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--ground);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 17px;
  line-height: 27px;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; height: auto; display: block; }
h1, h2, h3 { font-family: var(--font-display); margin: 0; text-wrap: balance; }
p { margin: 0; }
a { color: var(--volt-text); text-underline-offset: 3px; }
:focus-visible { outline: 2px solid var(--focus); outline-offset: 2px; }

.wrap {
  max-width: calc(var(--content) + 2 * var(--space-8));
  margin: 0 auto;
  padding-left: max(var(--space-4), env(safe-area-inset-left, 0px));
  padding-right: max(var(--space-4), env(safe-area-inset-right, 0px));
}
@media (min-width: 720px) {
  .wrap {
    padding-left: max(var(--space-8), env(safe-area-inset-left, 0px));
    padding-right: max(var(--space-8), env(safe-area-inset-right, 0px));
  }
}

.skip { position: absolute; left: -9999px; }
.skip:focus { left: var(--space-4); top: var(--space-4); background: var(--volt); color: var(--on-volt); padding: var(--space-2) var(--space-4); z-index: 10; }

.eyebrow {
  font-family: var(--font-display);
  font-size: 13px; line-height: 16px; font-weight: 600;
  letter-spacing: .14em; text-transform: uppercase;
  color: var(--volt-text);
}
.lead { font-size: 20px; line-height: 30px; max-width: 60ch; }
.small { font-size: 14px; line-height: 21px; color: var(--ink-muted); }
.mono { font-family: var(--font-mono); font-size: 0.875em; }

/* Header */
.site-header { border-bottom: 1px solid var(--line); }
.site-header .wrap { display: flex; align-items: center; justify-content: space-between; gap: var(--space-4); padding-block: var(--space-3); }
.brand { display: flex; align-items: center; gap: var(--space-3); color: var(--ink); text-decoration: none; font-family: var(--font-display); font-weight: 700; font-size: 18px; line-height: 22px; }
.brand img { width: 40px; height: 40px; }
.nav { display: flex; gap: var(--space-6); flex-wrap: wrap; }
.nav a { color: var(--ink-muted); text-decoration: none; font-family: var(--font-display); font-weight: 600; font-size: 14px; letter-spacing: .08em; text-transform: uppercase; }
.nav a:hover { color: var(--volt-text); }
@media (max-width: 640px) { .nav { display: none; } }

/* Sections */
.section { padding-block: var(--space-16); }
@media (min-width: 720px) { .section { padding-block: var(--space-24); } }
.section-head { display: grid; gap: var(--space-3); margin-bottom: var(--space-12); max-width: 760px; }
.section-head h2 { font-size: 32px; line-height: 36px; font-weight: 600; }

/* Hero */
.hero .wrap { display: grid; gap: var(--space-8); align-items: center; padding-block: var(--space-16); }
@media (min-width: 880px) { .hero .wrap { grid-template-columns: 1fr 360px; padding-block: var(--space-24); } }
.hero-copy { display: grid; gap: var(--space-6); min-width: 0; }
.hero h1 {
  font-size: clamp(44px, 9vw, 72px);
  line-height: .95;
  font-weight: 700;
  letter-spacing: -0.01em;
  text-transform: uppercase;
}
.hero h1 em { font-style: normal; color: var(--volt-text); }
.hero-badge { justify-self: center; width: min(360px, 80vw); }
.actions { display: flex; flex-wrap: wrap; gap: var(--space-4); margin-top: var(--space-2); }

/* Buttons */
.btn {
  display: inline-flex; align-items: center; gap: var(--space-2);
  padding: var(--space-3) var(--space-6);
  font-family: var(--font-display); font-weight: 600; font-size: 16px; line-height: 20px;
  letter-spacing: .04em; text-transform: uppercase; text-decoration: none;
  background: var(--volt); color: var(--on-volt);
  clip-path: polygon(0 0, calc(100% - var(--chamfer-sm)) 0, 100% var(--chamfer-sm), 100% 100%, 0 100%);
  transition: background-color .15s ease-out;
}
.btn:hover { background: var(--volt-glow); }
.btn--ghost { background: transparent; color: var(--ink); box-shadow: inset 0 0 0 2px var(--volt-text); clip-path: none; }
.btn--ghost:hover { background: transparent; color: var(--volt-text); }

/* The win: the one volt band on the page */
.win { background: var(--volt); color: var(--on-volt); }
.win .wrap { display: grid; gap: var(--space-8); padding-block: var(--space-16); }
@media (min-width: 880px) { .win .wrap { grid-template-columns: auto 1fr; align-items: end; gap: var(--space-16); padding-block: var(--space-24); } }
.win .eyebrow { color: var(--on-volt); }
.win-figure { font-family: var(--font-display); font-weight: 700; font-size: clamp(96px, 22vw, 200px); line-height: .8; letter-spacing: -0.03em; }
.win-figure small { display: block; font-size: 18px; line-height: 22px; letter-spacing: .14em; margin-top: var(--space-4); }
.win-copy { display: grid; gap: var(--space-4); max-width: 60ch; min-width: 0; }
.win-copy h2 { font-size: clamp(32px, 5vw, 48px); line-height: 1.05; font-weight: 700; }
.win-copy p { font-size: 18px; line-height: 28px; }

/* Flow: forecast, plan, act */
.flow { display: grid; gap: var(--space-2); margin: 0 0 var(--space-12); padding: 0; font-family: var(--font-mono); font-size: 14px; line-height: 20px; color: var(--ink-muted); }
@media (min-width: 720px) { .flow { grid-template-columns: repeat(3, 1fr); gap: 0; } }
.flow li { list-style: none; border-top: 2px solid var(--line); padding-top: var(--space-3); padding-right: var(--space-4); }
.flow li:first-child { border-top-color: var(--volt); }
.flow b { color: var(--ink); font-weight: 400; }

/* Product cards */
.products { display: grid; gap: var(--space-6); }
@media (min-width: 880px) { .products { grid-template-columns: repeat(3, 1fr); } }
.product {
  display: grid; align-content: start; gap: var(--space-4);
  padding: var(--space-6);
  background: var(--surface);
  clip-path: polygon(0 0, calc(100% - var(--chamfer-lg)) 0, 100% var(--chamfer-lg), 100% 100%, 0 100%);
  transition: box-shadow .15s ease-out;
  min-width: 0;
}
.product:hover { box-shadow: var(--glow); }
.product-mark { display: flex; align-items: center; gap: var(--space-4); min-height: 64px; }
.product-mark img { width: 64px; height: 64px; }
.product-mark .sun { width: 64px; height: 64px; }
.product-mark .sun circle, .product-mark .sun path { stroke: var(--volt-text); }
.product h3 { font-size: 22px; line-height: 28px; font-weight: 600; display: flex; flex-wrap: wrap; align-items: center; gap: var(--space-3); }
.product .note { font-size: 14px; line-height: 21px; color: var(--ink-muted); border-top: 1px solid var(--line); padding-top: var(--space-3); }

.badge {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 2px 10px; border-radius: var(--radius-pill);
  font-family: var(--font-mono); font-size: 12px; line-height: 18px; font-weight: 400;
  letter-spacing: .04em; text-transform: uppercase;
}
.badge--live { background: var(--volt); color: var(--on-volt); }
.badge--live::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: var(--on-volt); }
.badge--proto { color: var(--ink); box-shadow: inset 0 0 0 1.5px var(--ink-muted); }

/* Stats */
.stats { display: grid; gap: var(--space-8); }
@media (min-width: 720px) { .stats { grid-template-columns: repeat(3, 1fr); } }
.stat { display: grid; gap: var(--space-2); align-content: start; padding-top: var(--space-4); border-top: 2px solid var(--volt); min-width: 0; }
.stat-value { font-family: var(--font-display); font-size: clamp(48px, 7vw, 64px); line-height: 1; font-weight: 700; font-variant-numeric: tabular-nums; }
.stat-label { max-width: 28ch; }

.customer { margin: var(--space-16) 0 0; display: grid; gap: var(--space-3); max-width: 760px; }
.customer blockquote { margin: 0; font-family: var(--font-display); font-weight: 700; font-size: clamp(32px, 5vw, 48px); line-height: 1.05; }
.customer blockquote::before { content: "\201C"; color: var(--volt-text); }
.customer blockquote::after { content: "\201D"; color: var(--volt-text); }

/* Crew */
.quote {
  margin: 0 0 var(--space-12);
  display: grid; gap: var(--space-6);
  padding: var(--space-8);
  background: var(--surface);
  max-width: 880px;
  clip-path: polygon(0 0, calc(100% - var(--chamfer-lg)) 0, 100% var(--chamfer-lg), 100% 100%, 0 100%);
}
@media (max-width: 480px) { .quote { padding: var(--space-6); } }
.quote::before { content: ""; width: 48px; height: 6px; background: var(--volt); }
.quote blockquote { margin: 0; font-family: var(--font-display); font-weight: 600; font-size: clamp(24px, 4vw, 36px); line-height: 1.2; text-wrap: balance; }
.quote mark { background: none; color: var(--volt-text); }

.crew { display: grid; gap: var(--space-3); grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); margin: 0; padding: 0; list-style: none; }
.crew li { font-family: var(--font-display); font-weight: 600; font-size: 22px; line-height: 28px; padding: var(--space-3) 0; border-bottom: 1px solid var(--line); }

/* Footer */
.site-footer { border-top: 1px solid var(--line); }
.site-footer .wrap { display: grid; gap: var(--space-6); padding-block: var(--space-12); }
@media (min-width: 720px) { .site-footer .wrap { grid-template-columns: 2fr 1fr; align-items: end; } }
.site-footer p { max-width: 68ch; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .btn, .product { transition: none; }
}
