/* Primal Engine — site styles
   Tokens: "Jordan Cordova" design system, Primal Engine theme. */

:root {
  --surface: #14120e;
  --surface-raised: #24211c;
  --surface-soft: #3a2b12;
  --line: #3b372f;
  --line-strong: #7d7566;
  --ink: #f2ece2;
  --ink-muted: #b2a998;
  --brand: #e3a33a;
  --on-brand: #14120e;
  --accent: #e8775b;

  --heavy: "Oswald", "Arial Narrow", Impact, sans-serif;
  --sans: "Inter", ui-sans-serif, system-ui, -apple-system, "Segoe UI", sans-serif;
  --mono: "JetBrains Mono", ui-monospace, Menlo, Consolas, monospace;

  --r: 2px;
  --wrap: 1120px;
  --gutter: 24px;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

body {
  margin: 0;
  background: var(--surface);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 17px;
  line-height: 28px;
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; height: auto; display: block; }
a { color: var(--brand); }
a:focus-visible, button:focus-visible { outline: 2px solid var(--brand); outline-offset: 2px; }

.wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 var(--gutter); }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip { position: absolute; left: 8px; top: -48px; background: var(--brand); color: var(--on-brand); padding: 8px 12px; z-index: 100; font-weight: 600; text-decoration: none; }
.skip:focus { top: 8px; }

h1, h2, h3 { font-family: var(--heavy); text-transform: uppercase; color: var(--ink); margin: 0; }
h2 { font-size: 40px; line-height: 44px; font-weight: 600; letter-spacing: .01em; margin-bottom: 32px; }
h3 { font-size: 24px; line-height: 28px; font-weight: 600; letter-spacing: .02em; }
p { margin: 0 0 16px; }

.eyebrow {
  font-family: var(--mono); font-size: 13px; line-height: 16px; font-weight: 600;
  letter-spacing: .08em; text-transform: uppercase; color: var(--accent); margin: 0 0 16px;
}
.eyebrow::before { content: ""; display: inline-block; width: 24px; height: 2px; background: var(--accent); vertical-align: middle; margin-right: 10px; }

/* Header */
.site-header { position: sticky; top: 0; z-index: 50; background: rgba(20, 18, 14, .94); border-bottom: 1px solid var(--line); backdrop-filter: blur(6px); }
.header-row { display: flex; align-items: center; justify-content: space-between; height: 64px; }
.wordmark { display: flex; align-items: center; gap: 12px; color: var(--ink); text-decoration: none; font-family: var(--heavy); font-weight: 600; font-size: 20px; letter-spacing: .06em; text-transform: uppercase; }
.mark { width: 32px; height: 32px; }
.mark rect { fill: var(--brand); }
.mark path { fill: none; stroke: var(--on-brand); stroke-width: 3; stroke-linecap: square; }
.site-nav { display: flex; gap: 32px; }
.site-nav a { color: var(--ink-muted); text-decoration: none; font-family: var(--mono); font-size: 13px; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; }
.site-nav a:hover { color: var(--brand); }
.menu-btn { display: none; background: none; border: 1px solid var(--line-strong); border-radius: var(--r); width: 44px; height: 44px; padding: 10px; color: var(--ink); cursor: pointer; }
.menu-btn svg { width: 22px; height: 22px; stroke: currentColor; stroke-width: 2; fill: none; }

/* Buttons */
.btn {
  display: inline-block; border-radius: var(--r); padding: 13px 22px;
  font-family: var(--mono); font-size: 14px; line-height: 18px; font-weight: 600;
  letter-spacing: .06em; text-transform: uppercase; text-decoration: none; border: 1px solid transparent;
}
.btn-primary { background: var(--brand); color: var(--on-brand); border-color: var(--brand); }
.btn-primary:hover { background: #f0b552; border-color: #f0b552; }
.btn-ghost { color: var(--ink); border-color: var(--line-strong); }
.btn-ghost:hover { border-color: var(--ink); }
.btn-lg { font-size: 16px; padding: 16px 26px; text-transform: none; letter-spacing: .02em; }
.actions { display: flex; flex-wrap: wrap; gap: 12px; }

/* Hero */
.hero { padding: 120px 0 112px; border-bottom: 1px solid var(--line); position: relative; overflow: hidden; }
.hero::after {
  content: ""; position: absolute; right: -40px; top: 64px; width: 360px; height: 360px;
  background-image: repeating-linear-gradient(-45deg, var(--surface-raised) 0 14px, transparent 14px 28px);
  opacity: .9; pointer-events: none;
}
.hero .wrap { position: relative; z-index: 1; }
.hero h1 { font-size: clamp(64px, 12vw, 136px); line-height: .9; font-weight: 700; letter-spacing: -.01em; margin-bottom: 28px; }
.lede { font-size: 20px; line-height: 32px; color: var(--ink-muted); max-width: 620px; margin-bottom: 36px; }
.moved { font-family: var(--mono); font-size: 13px; line-height: 20px; letter-spacing: .04em; color: var(--ink-muted); margin: 28px 0 0; }

/* Sections */
.section { padding: 96px 0; border-bottom: 1px solid var(--line); }

/* Products */
.product {
  display: grid; grid-template-columns: 1.15fr 1fr; gap: 0;
  background: var(--surface-raised); border: 1px solid var(--line); border-top: 4px solid var(--accent);
  border-radius: var(--r); overflow: hidden; margin-bottom: 32px;
}
.product:last-child { margin-bottom: 0; }
.shot { display: block; background: #0c0b08; border-right: 1px solid var(--line); }
.shot img { width: 100%; height: 100%; object-fit: cover; object-position: top left; }
.product-body { padding: 36px; }
.product-head { display: flex; align-items: center; gap: 16px; margin-bottom: 20px; }
.app-icon { width: 56px; height: 56px; border-radius: 12px; }
.tag { margin: 4px 0 0; color: var(--ink-muted); font-size: 15px; line-height: 22px; }
.points { margin: 0 0 20px; padding: 0; list-style: none; }
.points li { position: relative; padding-left: 22px; margin-bottom: 8px; }
.points li::before { content: ""; position: absolute; left: 0; top: 11px; width: 10px; height: 2px; background: var(--brand); }
.spec { font-family: var(--mono); font-size: 12px; line-height: 16px; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; color: var(--ink-muted); margin-bottom: 24px; }

/* Stats */
.stats { background: var(--surface-raised); padding: 64px 0; }
.stat-row { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.stat { border-left: 2px solid var(--accent); padding-left: 20px; }
.num { display: block; font-family: var(--mono); font-size: 48px; line-height: 56px; font-weight: 600; color: var(--brand); }
.lbl { display: block; color: var(--ink-muted); font-size: 15px; line-height: 22px; margin-top: 4px; }

/* Capabilities */
.cap-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.cap { border: 1px solid var(--line); border-radius: var(--r); padding: 28px; }
.cap h3 { font-size: 20px; line-height: 24px; margin-bottom: 12px; }
.cap p { color: var(--ink-muted); margin: 0; }

/* About / contact */
.about p { max-width: 720px; }
.contact { background: var(--surface-soft); border-bottom: 0; }
.contact .lede { color: var(--ink); }

/* Footer */
.site-footer { padding: 32px 0; font-size: 14px; line-height: 20px; color: var(--ink-muted); }
.footer-row { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px; }
.site-footer p { margin: 0; }
.site-footer a { color: var(--ink-muted); }
.site-footer a:hover { color: var(--brand); }

/* 404 */
.notfound { min-height: calc(100vh - 64px - 85px); display: flex; align-items: center; padding: 96px 0; }

/* Responsive */
@media (max-width: 900px) {
  .product { grid-template-columns: 1fr; }
  .shot { border-right: 0; border-bottom: 1px solid var(--line); aspect-ratio: 16 / 10; }
  .cap-grid, .stat-row { grid-template-columns: 1fr; }
  .hero::after { width: 220px; height: 220px; opacity: .6; }
}
@media (max-width: 640px) {
  :root { --gutter: 16px; }
  .menu-btn { display: block; }
  .site-nav { display: none; position: absolute; top: 64px; left: 0; right: 0; flex-direction: column; gap: 0; background: var(--surface); border-bottom: 1px solid var(--line); }
  .site-nav.open { display: flex; }
  .site-nav a { padding: 16px var(--gutter); border-top: 1px solid var(--line); }
  .hero { padding: 72px 0 64px; }
  .section { padding: 64px 0; }
  h2 { font-size: 32px; line-height: 36px; margin-bottom: 24px; }
  .product-body { padding: 24px; }
  .btn-lg { font-size: 14px; padding: 14px 18px; word-break: break-all; }
}
