/* ===========================================================
   ProdClaw design system
   Dark cinematic product. Deep black ground, one amber accent.
   Shared by every page — page-specific CSS stays inline.
   =========================================================== */

/* ── Fonts (self-hosted, latin subset) ───────────────────── */

@font-face {
  font-family: 'Space Grotesk';
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url('../fonts/spacegrotesk-500.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: 'Space Grotesk';
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url('../fonts/spacegrotesk-700.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: 'Inter';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url('../fonts/inter-400.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: 'Inter';
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url('../fonts/inter-600.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: 'Fira Code';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url('../fonts/firacode-400.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

/* ── Tokens ──────────────────────────────────────────────── */

:root {
  /* Ground up. Only three surface steps — the old palette had too many. */
  --ink-0: #07070A;
  --ink-1: #0C0C11;
  --ink-2: #101014;
  --line: #1C1C22;
  --line-hi: #2B2B35;

  --fg: #F4F3F1;
  --fg-dim: #9B9BA4;
  --fg-mute: #60606B;

  /* One accent. Resist adding a second. */
  --amber: #E8913A;
  --amber-hi: #FFB347;
  --amber-wash: rgba(232, 145, 58, 0.10);
  --amber-line: rgba(232, 145, 58, 0.28);

  --font-display: 'Space Grotesk', 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  --font-body: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  --font-mono: 'Fira Code', ui-monospace, SFMono-Regular, Menlo, monospace;

  --wrap: 1200px;
  --gutter: clamp(20px, 5vw, 56px);
  --section-y: clamp(88px, 13vh, 168px);

  --ease: cubic-bezier(0.22, 1, 0.36, 1);
  --slow: 0.7s;
}

/* ── Reset ───────────────────────────────────────────────── */

*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }

body {
  font-family: var(--font-body);
  background: var(--ink-0);
  color: var(--fg);
  font-size: 17px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: clip;
}

img, canvas, svg { display: block; max-width: 100%; }
a { color: inherit; }
button { font: inherit; color: inherit; background: none; border: none; cursor: pointer; }

::selection { background: var(--amber); color: #0A0A0A; }

:focus-visible {
  outline: 2px solid var(--amber);
  outline-offset: 3px;
  border-radius: 2px;
}

/* ── Layout primitives ───────────────────────────────────── */

.wrap {
  width: 100%;
  max-width: var(--wrap);
  margin: 0 auto;
  padding: 0 var(--gutter);
}

.section { padding: var(--section-y) 0; position: relative; }

/* Hairline divider. Fades out at the edges so it never looks like a box. */
.rule {
  height: 1px;
  border: 0;
  background: linear-gradient(90deg, transparent, var(--line) 12%, var(--line) 88%, transparent);
}

/* Asymmetric two-column. The whole point is that it is NOT 50/50. */
.split {
  display: grid;
  grid-template-columns: minmax(0, 5fr) minmax(0, 7fr);
  gap: clamp(32px, 6vw, 88px);
  align-items: center;
}
.split--reverse { grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); }
.split--top { align-items: start; }

/* ── Typography ──────────────────────────────────────────── */

.eyebrow {
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--amber);
  margin-bottom: 20px;
  display: flex;
  align-items: center;
  gap: 10px;
}
.eyebrow::before {
  content: '';
  width: 22px;
  height: 1px;
  background: var(--amber);
  flex: none;
}

.display {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(40px, 6.2vw, 78px);
  line-height: 1.0;
  letter-spacing: -0.035em;
  text-wrap: balance;
}

.h2 {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(30px, 4.4vw, 54px);
  line-height: 1.05;
  letter-spacing: -0.028em;
  text-wrap: balance;
}

.h3 {
  font-family: var(--font-display);
  font-weight: 500;
  font-size: clamp(21px, 2.3vw, 27px);
  line-height: 1.22;
  letter-spacing: -0.015em;
}

.lede {
  font-size: clamp(18px, 1.5vw, 21px);
  line-height: 1.6;
  color: var(--fg-dim);
  max-width: 58ch;
}

.body-dim { color: var(--fg-dim); }
.mono { font-family: var(--font-mono); font-size: 0.86em; }
.amber { color: var(--amber); }

/* Oversized step numerals — structure without boxes. */
.numeral {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(56px, 9vw, 104px);
  line-height: 0.82;
  letter-spacing: -0.05em;
  color: transparent;
  -webkit-text-stroke: 1px var(--line-hi);
  text-stroke: 1px var(--line-hi);
}

/* ── Buttons ─────────────────────────────────────────────── */

.btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-weight: 600;
  font-size: 15px;
  letter-spacing: -0.01em;
  padding: 15px 28px;
  border-radius: 2px;
  text-decoration: none;
  transition: background var(--slow) var(--ease), color var(--slow) var(--ease),
              border-color var(--slow) var(--ease), transform var(--slow) var(--ease);
}
.btn svg { width: 16px; height: 16px; flex: none; }

.btn--primary { background: var(--amber); color: #0A0A0A; }
.btn--primary:hover { background: var(--amber-hi); transform: translateY(-2px); }

.btn--ghost { border: 1px solid var(--line-hi); color: var(--fg); }
.btn--ghost:hover { border-color: var(--amber); color: var(--amber); }

.btn--text {
  padding: 0;
  color: var(--amber);
  border-bottom: 1px solid var(--amber-line);
  border-radius: 0;
}
.btn--text:hover { border-bottom-color: var(--amber); }

/* ── Nav ─────────────────────────────────────────────────── */

.nav {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 60;
  background: rgba(7, 7, 10, 0.72);
  backdrop-filter: blur(20px) saturate(140%);
  border-bottom: 1px solid var(--line);
}
.nav__inner {
  max-width: var(--wrap);
  margin: 0 auto;
  padding: 0 var(--gutter);
  height: 68px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.nav__logo {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 18px;
  letter-spacing: -0.03em;
  text-decoration: none;
  display: flex;
  align-items: center;
  gap: 9px;
}
.nav__logo .dot {
  width: 7px; height: 7px; border-radius: 50%;
  background: var(--amber);
  box-shadow: 0 0 10px var(--amber);
  flex: none;
}
.nav__links { display: flex; gap: 34px; align-items: center; }
.nav__links a {
  font-size: 14px;
  color: var(--fg-dim);
  text-decoration: none;
  transition: color 0.3s var(--ease);
}
.nav__links a:hover { color: var(--fg); }
/* Scoped under .nav__links so it out-specifies the `.nav__links a` colour
   rule above — otherwise the label renders amber-on-amber. */
.nav__links a.nav__cta {
  background: var(--amber);
  color: #0A0A0A;
  padding: 10px 20px;
  border-radius: 2px;
  font-size: 14px;
  font-weight: 600;
  text-decoration: none;
  transition: background 0.3s var(--ease);
}
.nav__links a.nav__cta:hover { background: var(--amber-hi); color: #0A0A0A; }

.nav__toggle { display: none; color: var(--fg-dim); padding: 8px; }
.nav__toggle svg { width: 22px; height: 22px; }

@media (max-width: 860px) {
  .nav__toggle { display: block; }
  .nav__links {
    display: none;
    position: absolute;
    inset: 68px 0 auto 0;
    flex-direction: column;
    align-items: flex-start;
    gap: 18px;
    padding: 26px var(--gutter) 32px;
    background: rgba(7, 7, 10, 0.97);
    border-bottom: 1px solid var(--line);
  }
  .nav__links.is-open { display: flex; }
}

/* ── Footer ──────────────────────────────────────────────── */

.footer { border-top: 1px solid var(--line); padding: 64px 0 48px; }
.footer__grid {
  display: flex;
  flex-wrap: wrap;
  gap: 40px;
  justify-content: space-between;
  align-items: flex-start;
}
.footer__links { display: flex; flex-wrap: wrap; gap: 26px; }
.footer__links a {
  font-size: 14px;
  color: var(--fg-dim);
  text-decoration: none;
  transition: color 0.3s var(--ease);
}
.footer__links a:hover { color: var(--amber); }
.footer__legal { font-size: 13px; color: var(--fg-mute); margin-top: 28px; }

/* ── 3D stage ────────────────────────────────────────────── */

.stage {
  position: relative;
  width: 100%;
  /* Matches the Blender hero render (1600x1066) so the live canvas and the
     poster frame the machine identically. */
  aspect-ratio: 3 / 2;
  /* Reserve the box up front so mounting the canvas cannot shift layout. */
  contain: layout paint;
}
.stage__poster {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: contain;
  transition: opacity 0.9s var(--ease);
}
.stage__canvas {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  opacity: 0;
  transition: opacity 0.9s var(--ease);
}
.stage.is-live .stage__canvas { opacity: 1; }
.stage.is-live .stage__poster { opacity: 0; }

/* ── Scroll reveal ───────────────────────────────────────── */

.reveal {
  opacity: 0;
  transform: translateY(22px);
  transition: opacity 0.9s var(--ease), transform 0.9s var(--ease);
}
.reveal.is-in { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    transition-duration: 0.01ms !important;
  }
  .reveal { opacity: 1; transform: none; }
}

/* ===========================================================
   Page components
   Shared by every landing page (fork, startups, front desk).
   Promoted out of index.html so the three pages do not each
   carry their own copy of the same 6.5KB.
   =========================================================== */

/* ── Hero ────────────────────────────────────────────────── */

.hero { padding: 168px 0 var(--section-y); position: relative; overflow: hidden; }
.hero::before {
  content: '';
  position: absolute;
  top: -10%; right: -15%;
  width: 70vw; height: 70vw; max-width: 900px; max-height: 900px;
  background: radial-gradient(circle, rgba(232, 145, 58, 0.07) 0%, transparent 65%);
  pointer-events: none;
}
.hero__grid {
  display: grid;
  grid-template-columns: minmax(0, 1.18fr) minmax(0, 1fr);
  gap: clamp(40px, 5vw, 64px);
  align-items: center;
}
.hero__ctas { display: flex; gap: 14px; flex-wrap: wrap; margin-top: 40px; }

.hero__facts {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 28px clamp(20px, 3vw, 40px);
  margin-top: 72px;
  padding-top: 36px;
  border-top: 1px solid var(--line);
}
.fact__value {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(19px, 1.7vw, 24px);
  letter-spacing: -0.03em;
  color: var(--amber);
}
.fact__label { font-size: 13px; color: var(--fg-mute); margin-top: 2px; }

/* ── Problem statements (hairlines, deliberately not cards) ─ */

.problems { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 clamp(40px, 6vw, 88px); }
.problem { padding: 30px 0; border-top: 1px solid var(--line); }
.problem h3 { font-family: var(--font-display); font-weight: 500; font-size: 20px; letter-spacing: -0.015em; margin-bottom: 8px; }
.problem p { font-size: 15.5px; color: var(--fg-dim); line-height: 1.6; }

/* ── Deliverables / capability columns ───────────────────── */

.deliver { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: clamp(36px, 6vw, 80px); margin-top: 56px; }
.deliver h3 {
  font-family: var(--font-mono);
  font-size: 12px; letter-spacing: 0.14em; text-transform: uppercase;
  color: var(--fg-mute); padding-bottom: 16px; border-bottom: 1px solid var(--line);
}
.deliver ul { list-style: none; }
.deliver li {
  padding: 15px 0 15px 26px;
  border-bottom: 1px solid var(--line);
  font-size: 15.5px; color: var(--fg-dim); position: relative;
}
.deliver li::before {
  content: ''; position: absolute; left: 0; top: 24px;
  width: 10px; height: 1px; background: var(--amber);
}
.deliver li strong { color: var(--fg); font-weight: 600; }

/* ── Process steps (alternating rows with artwork) ───────── */

.step { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(32px, 6vw, 80px); align-items: center; padding: clamp(40px, 6vh, 72px) 0; border-top: 1px solid var(--line); }
.step:nth-child(even) .step__art { order: -1; }
.step__art img { width: 100%; height: auto; }
.step__head { display: flex; align-items: baseline; gap: 18px; margin-bottom: 18px; }
.step__meta { font-family: var(--font-mono); font-size: 12px; letter-spacing: 0.12em; text-transform: uppercase; color: var(--amber); margin-top: 18px; }

/* ── Layered stack ───────────────────────────────────────── */

.stack { border: 1px solid var(--line); border-radius: 3px; overflow: hidden; margin-top: 48px; }
.layer { padding: 20px 26px; border-bottom: 1px solid var(--line); display: flex; flex-wrap: wrap; gap: 6px 20px; align-items: baseline; }
.layer:last-child { border-bottom: 0; }
.layer__name { font-family: var(--font-display); font-weight: 500; font-size: 17px; min-width: 190px; }
.layer__detail { font-size: 14.5px; color: var(--fg-dim); flex: 1; min-width: 240px; }
.layer--accent { background: var(--amber-wash); border-left: 2px solid var(--amber); }

/* ── Pricing tiers ───────────────────────────────────────── */

.tiers { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1px; background: var(--line); border: 1px solid var(--line); border-radius: 3px; overflow: hidden; margin-top: 56px; }
.tier { background: var(--ink-0); padding: 36px 30px; display: flex; flex-direction: column; }
.tier--feature { background: var(--ink-2); }
.tier__name { font-family: var(--font-display); font-weight: 700; font-size: 22px; letter-spacing: -0.02em; }
.tier__pitch { font-size: 14.5px; color: var(--fg-dim); margin: 8px 0 26px; min-height: 42px; }
.tier__price { font-family: var(--font-display); font-weight: 700; font-size: 42px; letter-spacing: -0.04em; line-height: 1; }
.tier__unit { font-size: 13px; color: var(--fg-mute); margin-top: 8px; }
.tier__list { list-style: none; margin: 28px 0 32px; flex: 1; }
.tier__list li { font-size: 14.5px; color: var(--fg-dim); padding: 9px 0 9px 22px; position: relative; }
.tier__list li::before { content: ''; position: absolute; left: 0; top: 18px; width: 9px; height: 1px; background: var(--amber); }
.tier__list li strong { color: var(--fg); font-weight: 600; }

/* Wide banded row under the tiers (retainers, setup fees). */
.band { border: 1px solid var(--line); border-radius: 3px; margin-top: 28px; padding: 36px 30px; display: grid; grid-template-columns: minmax(0, 1.6fr) minmax(0, 1fr); gap: 36px; align-items: center; }
.band__prices { display: flex; gap: 40px; flex-wrap: wrap; }

.note { font-size: 13.5px; color: var(--fg-mute); margin-top: 24px; max-width: 72ch; }

/* ── FAQ ─────────────────────────────────────────────────── */

.faq { border-top: 1px solid var(--line); margin-top: 48px; }
.faq__item { border-bottom: 1px solid var(--line); }
.faq__q { width: 100%; text-align: left; padding: 26px 40px 26px 0; font-family: var(--font-display); font-weight: 500; font-size: 18.5px; letter-spacing: -0.015em; position: relative; }
.faq__q::after { content: '+'; position: absolute; right: 4px; top: 50%; transform: translateY(-50%); color: var(--amber); font-size: 22px; font-family: var(--font-mono); }
.faq__item.is-open .faq__q::after { content: '–'; }
.faq__a { max-height: 0; overflow: hidden; transition: max-height 0.5s var(--ease); }
.faq__item.is-open .faq__a { max-height: 480px; }
.faq__a p { padding: 0 48px 28px 0; color: var(--fg-dim); font-size: 15.5px; }

/* ── Closing CTA ─────────────────────────────────────────── */

.close { text-align: center; padding: var(--section-y) 0; border-top: 1px solid var(--line); }
.close .hero__ctas { justify-content: center; }

/* ── Responsive ──────────────────────────────────────────── */

@media (max-width: 980px) {
  .tiers { grid-template-columns: 1fr; }
  .band { grid-template-columns: 1fr; }
}

@media (max-width: 860px) {
  body { font-size: 16px; }
  .split, .split--reverse { grid-template-columns: 1fr; gap: 36px; }

  .hero { padding-top: 124px; }
  .hero__grid { grid-template-columns: 1fr; }
  .hero__facts { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .problems, .deliver { grid-template-columns: 1fr; }
  .step { grid-template-columns: 1fr; }
  .step:nth-child(even) .step__art { order: 0; }
}
