/* ==========================================================================
   Juggernaut — shared design system
   Single stylesheet. No framework, no build step, no preprocessor.
   Every page links this file directly.
   ========================================================================== */

/* --------------------------------------------------------------------------
   1. Tokens
   -------------------------------------------------------------------------- */
:root {
  /* Core palette */
  --bg:      #0B0E0F;   /* near-black page background */
  --accent:  #0FC5C5;   /* teal — CTAs, rules, accents */
  --text:    #F2F4F5;   /* primary copy */
  --muted:   #9AA5A8;   /* secondary copy, labels, meta */

  /* Derived surfaces (kept in terms of the four core tokens where possible) */
  --surface:      #12181A;   /* raised cards / bands */
  --surface-2:    #171F21;   /* inputs, nested panels */
  --hairline:     rgba(154, 165, 168, 0.18);
  --accent-soft:  rgba(15, 197, 197, 0.12);
  --accent-dim:   rgba(15, 197, 197, 0.45);

  /* Type */
  --font-display: "Anton", "Arial Narrow", Impact, sans-serif;
  --font-body:    "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;

  /* Rhythm */
  --shell:     1180px;   /* max content width */
  --gutter:    24px;
  --header-h:  72px;
  --radius:    4px;
}

/* --------------------------------------------------------------------------
   2. Reset / base
   -------------------------------------------------------------------------- */
*,
*::before,
*::after { box-sizing: border-box; }

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-body);
  font-weight: 300;
  font-size: 17px;
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

img { max-width: 100%; display: block; }

a {
  color: var(--accent);
  text-decoration: none;
  transition: color 0.15s ease, opacity 0.15s ease;
}
a:hover { color: var(--text); }

/* Display type — condensed, heavy, uppercase */
h1, h2, h3, h4,
.display {
  font-family: var(--font-display);
  font-weight: 400;          /* Anton ships a single heavy weight */
  text-transform: uppercase;
  letter-spacing: 0.01em;
  line-height: 0.98;
  margin: 0 0 0.5em;
}

h1 { font-size: clamp(2.6rem, 7vw, 5rem); }
h2 { font-size: clamp(2rem, 4.4vw, 3.1rem); }
h3 { font-size: clamp(1.3rem, 2.4vw, 1.7rem); line-height: 1.1; }
h4 { font-size: 1.05rem; letter-spacing: 0.04em; }

p { margin: 0 0 1.2em; }
p:last-child { margin-bottom: 0; }

/* Small caps-style eyebrow label */
.eyebrow {
  font-family: var(--font-body);
  font-weight: 500;
  font-size: 0.74rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--accent);
  margin: 0 0 14px;
  display: block;
}

.lede {
  font-size: clamp(1.05rem, 1.8vw, 1.25rem);
  color: var(--muted);
  max-width: 62ch;
}

.rule {
  border: 0;
  height: 1px;
  background: var(--hairline);
  margin: 0;
}

/* --------------------------------------------------------------------------
   3. Layout primitives
   -------------------------------------------------------------------------- */
.shell {
  width: 100%;
  max-width: var(--shell);
  margin: 0 auto;
  padding: 0 var(--gutter);
}

.section {
  padding: clamp(56px, 8vw, 104px) 0;
}
.section--tight { padding: clamp(40px, 5vw, 64px) 0; }
.section--alt   { background: var(--surface); }

.section-head {
  max-width: 70ch;
  margin-bottom: clamp(28px, 4vw, 48px);
}

.grid {
  display: grid;
  gap: clamp(20px, 3vw, 32px);
}
.grid--2 { grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); }
.grid--3 { grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); }
.grid--split {
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  align-items: start;
}

/* --------------------------------------------------------------------------
   4. Header / nav
   -------------------------------------------------------------------------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(11, 14, 15, 0.92);
  backdrop-filter: saturate(140%) blur(10px);
  -webkit-backdrop-filter: saturate(140%) blur(10px);
  border-bottom: 1px solid var(--hairline);
}

.site-header__inner {
  min-height: var(--header-h);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  flex-wrap: wrap;
  padding-top: 12px;
  padding-bottom: 12px;
}

.brand {
  font-family: var(--font-display);
  text-transform: uppercase;
  font-size: 1.45rem;
  letter-spacing: 0.04em;
  color: var(--text);
  line-height: 1;
  white-space: nowrap;
}
.brand:hover { color: var(--text); }
.brand span { color: var(--accent); }

.nav {
  display: flex;
  align-items: center;
  gap: clamp(16px, 2.4vw, 34px);
  flex-wrap: wrap;
}

.nav a {
  color: var(--muted);
  font-size: 0.8rem;
  font-weight: 500;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  padding: 6px 0;
  border-bottom: 2px solid transparent;
  white-space: nowrap;
}
.nav a:hover { color: var(--text); }
.nav a[aria-current="page"] {
  color: var(--text);
  border-bottom-color: var(--accent);
}

/* --------------------------------------------------------------------------
   5. Buttons
   -------------------------------------------------------------------------- */
.btn {
  display: inline-block;
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 0.8rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  padding: 14px 28px;
  border-radius: var(--radius);
  border: 2px solid transparent;
  cursor: pointer;
  text-align: center;
  transition: background 0.15s ease, color 0.15s ease, border-color 0.15s ease;
}

.btn--primary {
  background: var(--accent);
  color: #06282A;
  border-color: var(--accent);
}
.btn--primary:hover {
  background: transparent;
  color: var(--accent);
}

.btn--ghost {
  background: transparent;
  color: var(--text);
  border-color: var(--hairline);
}
.btn--ghost:hover {
  border-color: var(--accent);
  color: var(--accent);
}

.btn--sm { padding: 11px 20px; font-size: 0.72rem; }

.btn-row {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-top: 32px;
}

/* --------------------------------------------------------------------------
   6. Hero
   -------------------------------------------------------------------------- */
.hero {
  position: relative;
  padding: clamp(64px, 11vw, 132px) 0 clamp(48px, 7vw, 88px);
  border-bottom: 1px solid var(--hairline);
  background:
    radial-gradient(900px 420px at 12% -10%, var(--accent-soft), transparent 70%),
    var(--bg);
}
.hero h1 { max-width: 16ch; }
.hero .lede { margin-top: 22px; }

/* Compact hero for interior pages */
.page-hero {
  padding: clamp(48px, 7vw, 84px) 0 clamp(32px, 4vw, 52px);
  border-bottom: 1px solid var(--hairline);
  background:
    radial-gradient(700px 320px at 85% -30%, var(--accent-soft), transparent 70%),
    var(--bg);
}

/* --------------------------------------------------------------------------
   7. Stat band
   -------------------------------------------------------------------------- */
.stat-band {
  background: var(--surface);
  border-top: 1px solid var(--accent-dim);
  border-bottom: 1px solid var(--accent-dim);
  padding: clamp(32px, 5vw, 56px) 0;
  text-align: center;
}
.stat-band__figure {
  font-family: var(--font-display);
  text-transform: uppercase;
  font-size: clamp(1.9rem, 5.4vw, 3.6rem);
  line-height: 1;
  margin: 0;
  color: var(--text);
}
.stat-band__figure em {
  font-style: normal;
  color: var(--accent);
}
.stat-band__note {
  margin: 14px 0 0;
  color: var(--muted);
  font-size: 0.78rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
}

/* --------------------------------------------------------------------------
   8. Cards
   -------------------------------------------------------------------------- */
.card {
  background: var(--surface);
  border: 1px solid var(--hairline);
  border-radius: var(--radius);
  padding: clamp(22px, 3vw, 32px);
  display: flex;
  flex-direction: column;
  transition: border-color 0.15s ease, transform 0.15s ease;
}
.card:hover { border-color: var(--accent-dim); }
.card__num {
  font-family: var(--font-display);
  font-size: 2.4rem;
  line-height: 1;
  color: var(--accent);
  margin-bottom: 12px;
}
.card h3 { margin-bottom: 12px; }
.card .btn { align-self: flex-start; margin-top: 20px; }

/* Numbered process steps */
.steps { counter-reset: step; }
.step {
  display: grid;
  grid-template-columns: 84px 1fr;
  gap: clamp(16px, 3vw, 32px);
  padding: clamp(24px, 3vw, 34px) 0;
  border-top: 1px solid var(--hairline);
  align-items: start;
}
.step:last-child { border-bottom: 1px solid var(--hairline); }
.step__num {
  font-family: var(--font-display);
  font-size: clamp(2.2rem, 5vw, 3.2rem);
  line-height: 0.9;
  color: var(--accent);
}

/* --------------------------------------------------------------------------
   9. Placeholder copy marker
   Every body paragraph awaiting real copy carries .placeholder.
   Grep the repo for "placeholder" to find every one of them.
   -------------------------------------------------------------------------- */
.placeholder {
  position: relative;
  border-left: 3px dashed var(--accent-dim);
  padding: 4px 0 4px 16px;
  color: var(--muted);
}
.placeholder::before {
  content: "PLACEHOLDER";
  display: inline-block;
  font-family: var(--font-body);
  font-size: 0.6rem;
  font-weight: 700;
  letter-spacing: 0.18em;
  color: var(--accent);
  background: var(--accent-soft);
  border: 1px solid var(--accent-dim);
  border-radius: 2px;
  padding: 2px 7px;
  margin-right: 10px;
  vertical-align: 2px;
  line-height: 1.4;
}

/* --------------------------------------------------------------------------
   10. Image slots — dashed teal boxes, labelled with intended dimensions.
       No <img> tags anywhere until real assets exist.
   -------------------------------------------------------------------------- */
.img-slot {
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  min-height: 180px;
  padding: 24px;
  border: 2px dashed var(--accent-dim);
  border-radius: var(--radius);
  background: var(--accent-soft);
  color: var(--accent);
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}
.img-slot::after {
  content: "Image slot — " attr(data-dim);
}
.img-slot--wide  { aspect-ratio: 16 / 9;  min-height: 0; }
.img-slot--tall  { aspect-ratio: 3 / 4;   min-height: 0; }
.img-slot--square{ aspect-ratio: 1 / 1;   min-height: 0; }
.img-slot--strip { min-height: 120px; }

/* --------------------------------------------------------------------------
   11. Forms
   -------------------------------------------------------------------------- */
.form {
  background: var(--surface);
  border: 1px solid var(--hairline);
  border-radius: var(--radius);
  padding: clamp(24px, 4vw, 40px);
}

.field { margin-bottom: 22px; }
.field label {
  display: block;
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 8px;
}
.field label .req { color: var(--accent); }

.field input,
.field textarea {
  width: 100%;
  background: var(--surface-2);
  border: 1px solid var(--hairline);
  border-radius: var(--radius);
  color: var(--text);
  font-family: var(--font-body);
  font-weight: 300;
  font-size: 1rem;
  padding: 13px 15px;
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
}
.field textarea { resize: vertical; min-height: 150px; }

.field input:focus,
.field textarea:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 0 3px var(--accent-soft);
}
.field input::placeholder,
.field textarea::placeholder { color: #5D686B; }

/* Native HTML5 validation styling — only after the user has typed something */
.field input:not(:placeholder-shown):invalid,
.field textarea:not(:placeholder-shown):invalid {
  border-color: #E0574B;
}

.field__hint {
  margin: 7px 0 0;
  font-size: 0.78rem;
  color: var(--muted);
}

/* Static notice revealed on submit — no network call is made */
.form-notice {
  margin-top: 22px;
  padding: 14px 18px;
  border: 1px dashed var(--accent-dim);
  border-radius: var(--radius);
  background: var(--accent-soft);
  color: var(--accent);
  font-size: 0.9rem;
  font-weight: 500;
}
.form-notice[hidden] { display: none; }

/* --------------------------------------------------------------------------
   12. Blog
   -------------------------------------------------------------------------- */
.post-card {
  background: var(--surface);
  border: 1px solid var(--hairline);
  border-radius: var(--radius);
  overflow: hidden;
  display: flex;
  flex-direction: column;
}
.post-card:hover { border-color: var(--accent-dim); }
.post-card__body { padding: clamp(20px, 3vw, 28px); }
.post-meta {
  font-size: 0.72rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--muted);
  margin: 0 0 12px;
}

.article {
  max-width: 74ch;
}
.article h2 { margin-top: 1.6em; }
.article blockquote {
  margin: 1.6em 0;
  padding: 4px 0 4px 22px;
  border-left: 3px solid var(--accent);
  color: var(--muted);
}
.back-link {
  display: inline-block;
  margin-top: 44px;
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

/* --------------------------------------------------------------------------
   13. Footer
   -------------------------------------------------------------------------- */
.site-footer {
  background: var(--surface);
  border-top: 1px solid var(--hairline);
  padding: clamp(40px, 6vw, 64px) 0 28px;
  margin-top: 0;
}
.site-footer__grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 32px;
}
.site-footer h4 {
  color: var(--muted);
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 0.72rem;
  letter-spacing: 0.18em;
  margin-bottom: 14px;
}
.footer-links {
  list-style: none;
  margin: 0;
  padding: 0;
}
.footer-links li { margin-bottom: 9px; }
.footer-links a { color: var(--muted); font-size: 0.92rem; }
.footer-links a:hover { color: var(--accent); }

.site-footer__base {
  margin-top: clamp(32px, 5vw, 48px);
  padding-top: 20px;
  border-top: 1px solid var(--hairline);
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  justify-content: space-between;
  color: var(--muted);
  font-size: 0.8rem;
}

/* --------------------------------------------------------------------------
   14. Utilities
   -------------------------------------------------------------------------- */
.text-muted  { color: var(--muted); }
.text-accent { color: var(--accent); }
.center      { text-align: center; }
.mt-0 { margin-top: 0; }
.mb-0 { margin-bottom: 0; }
.stack > * + * { margin-top: 18px; }

.skip-link {
  position: absolute;
  left: -9999px;
  top: 0;
  background: var(--accent);
  color: #06282A;
  padding: 10px 16px;
  font-weight: 600;
  z-index: 200;
}
.skip-link:focus { left: 8px; top: 8px; }

/* --------------------------------------------------------------------------
   15. Responsive
   -------------------------------------------------------------------------- */
@media (max-width: 860px) {
  .site-header__inner {
    justify-content: center;
    text-align: center;
  }
  .nav { justify-content: center; order: 3; width: 100%; }
  .site-header .btn { order: 2; }
}

@media (max-width: 620px) {
  body { font-size: 16px; }
  .btn-row .btn { flex: 1 1 100%; }
  .step { grid-template-columns: 1fr; gap: 8px; }
  .site-footer__base { justify-content: flex-start; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  * { transition: none !important; }
}
