/* ============================================================
   ForceCraft Labs — Overmatch product site
   Design language: Strix-1:1 (zinc dark, Geist, white-primary,
   semantic accents only — blue is retired from the language).
   Canon: ~/Desktop/UI-LOCK-STRIX.md
   ============================================================ */

@font-face {
  font-family: "Geist";
  src: url("assets/fonts/Geist-Regular.ttf") format("truetype");
  font-weight: 400;
  font-display: swap;
}
@font-face {
  font-family: "Geist";
  src: url("assets/fonts/Geist-Medium.ttf") format("truetype");
  font-weight: 500;
  font-display: swap;
}
@font-face {
  font-family: "Geist";
  src: url("assets/fonts/Geist-SemiBold.ttf") format("truetype");
  font-weight: 600;
  font-display: swap;
}
@font-face {
  font-family: "Geist Mono";
  src: url("assets/fonts/GeistMono-Regular.ttf") format("truetype");
  font-weight: 400;
  font-display: swap;
}
@font-face {
  font-family: "Geist Mono";
  src: url("assets/fonts/GeistMono-Medium.ttf") format("truetype");
  font-weight: 500;
  font-display: swap;
}

:root {
  /* surfaces — zinc dark ladder */
  --bg-app:        #0a0a0a;
  --bg-panel:      #1a1a1a;
  --bg-elevated:   #1e1e1e;
  --bg-hover:      #2a2a2a;
  --border:        #262626;
  --border-strong: #ededed;

  /* text */
  --text-primary:   #ffffff;
  --text-secondary: #a0a0a8;
  --text-muted:     #71717a;

  /* semantic accents (interactive = white/zinc only) */
  --success:   #22c55e;
  --warning:   #edb200;
  --danger:    #fb2c36;
  --orange:    #fe6e00;
  --purple:    #c07eff;

  --font-sans: "Geist", ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --font-mono: "Geist Mono", ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;

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

* { box-sizing: border-box; margin: 0; padding: 0; }

html {
  color-scheme: dark;
  scroll-behavior: smooth;
}

body {
  background: var(--bg-app);
  color: var(--text-primary);
  font-family: var(--font-sans);
  font-size: 15px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

::selection { background: rgba(255, 255, 255, 0.25); }

a { color: inherit; text-decoration: none; }

a:focus-visible,
button:focus-visible {
  outline: 2px solid var(--text-muted);
  outline-offset: 2px;
  border-radius: var(--radius-sm);
}

.container {
  max-width: 1080px;
  margin: 0 auto;
  padding: 0 24px;
}

/* ---------- draft banner ---------- */

.draft-banner {
  background: var(--bg-elevated);
  border-bottom: 1px solid var(--border);
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.04em;
  color: var(--text-muted);
  padding: 8px 24px;
  text-align: center;
}
.draft-banner .dot {
  display: inline-block;
  width: 6px; height: 6px;
  border-radius: 50%;
  background: var(--warning);
  margin-right: 8px;
  vertical-align: 1px;
}

/* ---------- nav shell ---------- */

.nav {
  position: sticky;
  top: 0;
  z-index: 50;
  background: var(--bg-app);
  border-bottom: 1px solid var(--border);
}
.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 60px;
}
.wordmark {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 600;
  font-size: 15px;
  letter-spacing: 0.02em;
}
.wordmark img { height: 28px; width: auto; display: block; }
.wordmark .lab { color: var(--text-muted); font-weight: 500; }

.nav-links {
  display: flex;
  align-items: center;
  gap: 4px;
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.08em;
}
.nav-links a {
  padding: 7px 12px;
  border-radius: var(--radius-sm);
  color: var(--text-secondary);
}
.nav-links a:hover {
  background: var(--bg-hover);
  color: var(--text-primary);
}
.nav-links a.active {
  background: var(--bg-hover);       /* selection canon: white on zinc */
  color: var(--text-primary);
}

/* ---------- buttons ---------- */

.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  height: 40px;
  padding: 0 20px;
  border-radius: var(--radius-sm);
  font-family: var(--font-sans);
  font-size: 14px;
  font-weight: 500;
  border: 1px solid transparent;
  cursor: pointer;
  white-space: nowrap;
}
.btn-primary {
  background: #ffffff;
  color: #0a0a0a;
}
.btn-primary:hover { background: var(--border-strong); }
.btn-ghost {
  border-color: #3f3f46;
  color: var(--text-primary);
}
.btn-ghost:hover { background: var(--bg-hover); }
.btn .arrow { font-family: var(--font-mono); font-weight: 400; }

/* ---------- hero ---------- */

.hero {
  position: relative;
  overflow: hidden;
  border-bottom: 1px solid var(--border);
}
.hero-canvas {
  position: absolute;
  inset: 0;
  background-image: radial-gradient(#91919a 1px, transparent 1px);
  background-size: 24px 24px;
  opacity: 0.14;
  -webkit-mask-image: radial-gradient(ellipse 90% 80% at 30% 40%, #000 30%, transparent 75%);
          mask-image: radial-gradient(ellipse 90% 80% at 30% 40%, #000 30%, transparent 75%);
}
.hero-emblem {
  position: absolute;
  right: -60px;
  top: 50%;
  transform: translateY(-50%);
  height: 560px;
  width: auto;
  opacity: 0.10;
  pointer-events: none;
}
.hero-inner {
  position: relative;
  padding: 112px 0 96px;
  max-width: 760px;
}
.eyebrow {
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.14em;
  color: var(--text-muted);
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 20px;
}
.eyebrow::before {
  content: "";
  width: 8px; height: 8px;
  background: var(--success);
  flex: none;
}
.hero h1 {
  font-size: clamp(42px, 6.5vw, 68px);
  line-height: 1.04;
  letter-spacing: -0.03em;
  font-weight: 600;
  margin-bottom: 24px;
}
.hero .lede {
  font-size: 17px;
  color: var(--text-secondary);
  max-width: 620px;
  margin-bottom: 36px;
}
.hero .lede strong { color: var(--text-primary); font-weight: 500; }
.hero-cta {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  margin-bottom: 28px;
}
.hero-meta {
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--text-muted);
  letter-spacing: 0.06em;
}
.hero-meta span { margin: 0 10px; color: #3f3f46; }

/* ---------- sections ---------- */

section.block {
  padding: 88px 0;
  border-bottom: 1px solid var(--border);
}
.section-head { margin-bottom: 44px; }
.section-head .eyebrow { margin-bottom: 14px; }
.section-head h2 {
  font-size: clamp(26px, 3.6vw, 36px);
  letter-spacing: -0.02em;
  line-height: 1.15;
  font-weight: 600;
  margin-bottom: 14px;
}
.section-head p {
  color: var(--text-secondary);
  max-width: 680px;
  font-size: 15px;
}

/* ---------- row-cards (list archetype) ---------- */

.rows { display: flex; flex-direction: column; }
.row-card {
  display: flex;
  gap: 20px;
  align-items: baseline;
  padding: 22px 20px;
  border: 1px solid var(--border);
  border-top: none;
  background: var(--bg-panel);
  transition: background 120ms ease;
}
.row-card:first-child { border-top: 1px solid var(--border); }
.row-card:hover {
  background: var(--bg-hover);
  border-left: 2px solid var(--border-strong);
  padding-left: 19px;
}
.row-card .rc-tag {
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.1em;
  color: var(--text-primary);
  min-width: 200px;
  flex: none;
  padding-top: 2px;
}
.row-card .rc-body { color: var(--text-secondary); font-size: 14px; }
.row-card .rc-body strong { color: var(--text-primary); font-weight: 500; }

/* ---------- module grid / cards ---------- */

.grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
}
.card {
  background: var(--bg-panel);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 22px;
  transition: background 120ms ease;
}
.card:hover { background: var(--bg-elevated); }
.card .c-code {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.12em;
  color: var(--text-muted);
  margin-bottom: 12px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.card .c-name {
  font-size: 16px;
  font-weight: 600;
  margin-bottom: 6px;
  letter-spacing: -0.01em;
}
.card .c-desc { font-size: 13.5px; color: var(--text-secondary); }
.card .c-role { /* mono role chip on the module line */
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--purple);
  letter-spacing: 0.08em;
}

.module-group { margin-bottom: 44px; }
.module-group:last-child { margin-bottom: 0; }
.group-head {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 16px;
}
.group-head .g-tag {
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.16em;
  color: var(--purple);
}
.group-head .g-line { flex: 1; height: 1px; background: var(--border); }
.group-head .g-count {
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--text-muted);
}

/* ---------- fact markers (severity-dot pattern) ---------- */

.facts { display: flex; flex-direction: column; gap: 14px; }
.fact {
  display: flex;
  gap: 12px;
  align-items: baseline;
  font-size: 14px;
  color: var(--text-secondary);
}
.fact .f-dot {
  width: 8px; height: 8px;
  border-radius: 50%;
  flex: none;
  align-self: center;
}
.f-dot.green  { background: var(--success); }
.f-dot.amber  { background: var(--warning); }
.f-dot.red    { background: var(--danger); }
.f-dot.purple { background: var(--purple); }
.f-dot.orange { background: var(--orange); }
.fact strong { color: var(--text-primary); font-weight: 500; }

/* ---------- CTA strip ---------- */

.cta-strip {
  padding: 88px 0;
}
.cta-inner {
  background: var(--bg-panel);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 48px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 32px;
  flex-wrap: wrap;
}
.cta-inner h2 {
  font-size: clamp(22px, 3vw, 30px);
  font-weight: 600;
  letter-spacing: -0.02em;
  margin-bottom: 8px;
}
.cta-inner p { color: var(--text-secondary); font-size: 14px; }

/* ---------- page head (product/contact) ---------- */

.page-head {
  padding: 88px 0 64px;
  border-bottom: 1px solid var(--border);
  position: relative;
  overflow: hidden;
}
.page-head .hero-canvas { opacity: 0.10; }
.page-head h1 {
  font-size: clamp(38px, 5.5vw, 56px);
  letter-spacing: -0.03em;
  font-weight: 600;
  line-height: 1.05;
  margin-bottom: 18px;
}
.page-head .lede {
  font-size: 16px;
  color: var(--text-secondary);
  max-width: 680px;
}
.meta-line {
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.06em;
  color: var(--text-muted);
  margin-top: 22px;
}
.meta-line span { margin: 0 10px; color: #3f3f46; }

/* ---------- contact ---------- */

.contact-block { max-width: 720px; }
.note {
  background: var(--bg-panel);
  border: 1px solid var(--border);
  border-left: 2px solid var(--warning);
  border-radius: var(--radius-sm);
  padding: 16px 20px;
  font-size: 13.5px;
  color: var(--text-secondary);
  margin-top: 32px;
}
.note strong { color: var(--text-primary); font-weight: 500; }

/* ---------- footer ---------- */

footer {
  padding: 48px 0 56px;
}
.footer-inner {
  display: flex;
  justify-content: space-between;
  gap: 40px;
  flex-wrap: wrap;
  align-items: flex-start;
}
.footer-brand {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 600;
  margin-bottom: 10px;
}
.footer-brand img { height: 22px; width: auto; }
.footer-brand .lab { color: var(--text-muted); font-weight: 500; }
.footer-tag {
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--text-muted);
  letter-spacing: 0.06em;
}
.footer-legal {
  font-size: 12px;
  color: var(--text-muted);
  max-width: 520px;
  line-height: 1.7;
}

/* ---------- responsive ---------- */

@media (max-width: 900px) {
  .grid { grid-template-columns: repeat(2, 1fr); }
  .hero-emblem { display: none; }
}
@media (max-width: 680px) {
  .grid { grid-template-columns: 1fr; }
  .btn { white-space: normal; height: auto; min-height: 40px; }
  .row-card { flex-direction: column; gap: 6px; }
  .row-card .rc-tag { min-width: 0; }
  .nav-inner { height: auto; padding: 12px 0; flex-wrap: wrap; gap: 10px; }
  .nav-links { width: 100%; }
  section.block { padding: 64px 0; }
  .hero-inner { padding: 72px 0 64px; }
  .cta-inner { padding: 32px; }
}
