/* GableOps — Tactical HUD design system.
   Extracted from the approved Home v2 design. See Style Guide for the full spec. */

:root {
  --bg: #0C0E11;
  --ink: #E8EAEC;
  --muted: #8A9099;
  --line: rgba(255, 255, 255, .1);
  --panel: rgba(255, 255, 255, .02);
  --panelsolid: #111419;
  --grid: rgba(255, 255, 255, .03);
  --redtext: #FF4E55;
  --glow: rgba(190, 30, 36, .35);
  --pill: rgba(12, 14, 17, .72);
  --bar: rgba(255, 255, 255, .1);
  --logoinv: none;
}

:root[data-theme="light"] {
  --bg: #F5F4F0;
  --ink: #14161A;
  --muted: #5A5F66;
  --line: rgba(20, 22, 26, .14);
  --panel: #FFFFFF;
  --panelsolid: #FFFFFF;
  --grid: rgba(20, 22, 26, .045);
  --redtext: #A8161C;
  --glow: rgba(190, 30, 36, .22);
  --pill: rgba(245, 244, 240, .78);
  --bar: rgba(20, 22, 26, .1);
  --logoinv: invert(1);
}

* { box-sizing: border-box; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: 'Space Grotesk', sans-serif;
  transition: background .35s, color .35s;
}

a { color: var(--redtext); }
a:hover { color: #BE1E24; }

a, button {
  transition: color .3s ease, background .3s ease, border-color .3s ease,
              box-shadow .3s ease, transform .3s ease;
}

@keyframes scan { 0% { transform: translateY(-100%); } 100% { transform: translateY(600%); } }
@keyframes pulse { 0%, 100% { opacity: .5; } 50% { opacity: 1; } }
@keyframes blink { 0%, 49% { opacity: 1; } 50%, 100% { opacity: 0; } }
@keyframes logoIn { from { opacity: 0; transform: translateY(-6px); } to { opacity: 1; transform: translateY(0); } }

/* Scroll fade-up (applied by js/site.js; disabled under reduced-motion) */
.reveal { opacity: 0; transform: translateY(24px); transition: opacity .85s cubic-bezier(.22,1,.36,1), transform .85s cubic-bezier(.22,1,.36,1); }
.reveal.is-visible { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; transition: none; }
}

/* Hover helpers replacing the design tool's style-hover attribute */
.nav-link { color: var(--muted); text-decoration: none; white-space: nowrap; }
.nav-link:hover { color: var(--redtext); }

.btn-primary { background: #BE1E24; color: #FFFFFF; text-decoration: none; }
.btn-primary:hover { background: #96151A; color: #FFFFFF; }

.btn-ghost { border: 1px solid var(--line); color: var(--ink); text-decoration: none; }
.btn-ghost:hover { border-color: #BE1E24; color: var(--redtext); }

.card-link { text-decoration: none; color: var(--ink); display: block; border: 1px solid var(--line); background: var(--panel); }
.card-link:hover { border-color: #BE1E24; color: var(--ink); }

.foot-link { color: var(--muted); text-decoration: none; }
.foot-link:hover { color: var(--redtext); }

/* FAQ accordion (toggled by js/site.js) */
.faq-a { display: none; }
.faq-item.open .faq-a { display: block; }

/* Inner-page hero: pull up so its background fills behind the sticky header,
   eliminating the light band above the header pill. The header sits at top:14px
   with margin-bottom:-82px, so pull the hero up 96px and restore that space as
   extra top padding — the H1 stays clear of the header, but the hero background
   now starts at the very top of the page (no light band above the pill). */
[data-screen-label="Page hero"] { margin-top: -96px !important; padding-top: 266px !important; }

/* Mobile menu chrome (hamburger + dropdown). Hidden on desktop. */
#hud-burger { display: none; }
#hud-menu { display: none; }

/* Responsive — mirrors the approved Home v2 breakpoints */
@media (max-width: 900px) {
  #hud-nav { display: none !important; }

  /* Show the hamburger inside the pill */
  #hud-burger {
    display: inline-flex !important;
    align-items: center; justify-content: center;
    border: 1px solid var(--line); background: transparent; color: var(--ink);
    cursor: pointer; border-radius: 100px; padding: 8px 14px;
    font: 600 10.5px 'IBM Plex Mono', monospace; letter-spacing: .1em; white-space: nowrap;
  }
  #hud-burger:hover { border-color: #BE1E24; color: var(--redtext); }

  /* Dropdown panel, revealed by js when .open is set on the header */
  #hud-menu {
    position: absolute; top: 68px; left: 20px; right: 20px; z-index: 99;
    flex-direction: column; gap: 4px;
    background: var(--pill); backdrop-filter: blur(14px);
    border: 1px solid var(--line); border-radius: 18px; padding: 10px;
    box-shadow: 0 16px 44px rgba(0,0,0,.35);
  }
  [data-screen-label="Sticky HUD header"].open #hud-menu { display: flex !important; }
  #hud-menu a {
    font: 600 12px 'IBM Plex Mono', monospace; letter-spacing: .12em;
    color: var(--ink); text-decoration: none; padding: 13px 14px; border-radius: 12px;
  }
  #hud-menu a:hover { background: var(--panel); color: var(--redtext); }

  /* Pin INITIATE CLAIM to the bottom-right on mobile */
  [data-screen-label="Sticky HUD header"] > a.btn-primary {
    position: fixed !important; bottom: 18px; right: 18px; z-index: 120;
    box-shadow: 0 8px 28px var(--glow), 0 0 0 1px rgba(0,0,0,.15) !important;
  }
}

@media (max-width: 1200px) {
  section > div[style*="max-width"], footer > div[style*="max-width"] { padding-left: 24px !important; padding-right: 24px !important; }
  section div[style*="repeat(4"] { grid-template-columns: 1fr 1fr !important; }
  [data-screen-label="Stats"] > div > div { padding-left: 24px !important; padding-right: 24px !important; }
  [data-screen-label="Stats"] > div > div:nth-child(2) { border-right: 0 !important; }
  [data-screen-label="Founder"] > div[style*="max-width"] { grid-template-columns: 1fr !important; gap: 40px !important; }
  [data-screen-label="Founder"] > div > div:first-child { height: 420px !important; max-width: 420px; }
}

@media (max-width: 820px) {
  [data-screen-label="Sticky HUD header"] { flex-wrap: wrap !important; gap: 10px !important; padding-left: 14px !important; padding-right: 14px !important; }
  [data-screen-label="Sticky HUD header"] > a { padding: 13px 18px !important; font-size: 10px !important; }
  section > div[style*="max-width"], footer > div[style*="max-width"] { padding-left: 20px !important; padding-right: 20px !important; }
  section div[style*="grid-template-columns"] { grid-template-columns: 1fr !important; }
  [data-screen-label="Stats"] > div[style*="max-width"] { grid-template-columns: 1fr 1fr !important; }
  [data-screen-label="Stats"] > div > div { border-right: 0 !important; border-top: 1px solid var(--line); }
  [data-screen-label="Hero"] > div[style*="max-width"] { padding-top: 170px !important; padding-bottom: 64px !important; }
  [data-screen-label="Hero"] h1 { font-size: 40px !important; }
  [data-screen-label="Hero"] div[style*="display: flex"] { flex-wrap: wrap; }
  /* Keep hero CTA buttons to a single line each on mobile */
  [data-screen-label="Hero"] a[href="get-started.html"],
  [data-screen-label="Hero"] a[href="#process"] { white-space: nowrap !important; }
  [data-screen-label="CTA"] h2 { font-size: 32px !important; }
  [data-screen-label="Founder"] > div > div:first-child { height: 360px !important; }
  [data-screen-label="Intel drops"] > div > div:first-of-type,
  [data-screen-label="Capabilities"] > div > div:first-of-type { flex-wrap: wrap; gap: 12px; }
}
