/* ============================================================
   Fusion OS — styles.css
   Brand: "Shop Floor After Hours" palette, Operator-to-Operator voice.
   Dark-anchor primary, bonewhite reading sections.
   ============================================================ */

:root {
  /* Brand palette */
  --anchor: #0F1113;         /* Smokeshop Black */
  --anchor-2: #15171A;
  --anchor-3: #1B1D21;
  --ink: #1B3A57;            /* Ink Trade Blue */
  --ink-hot: #254B6E;
  --spark: #E8622C;          /* Weld Orange — one per screen */
  --spark-hot: #F27643;
  --spark-soft: rgba(232,98,44,0.12);
  --spark-ring: rgba(232,98,44,0.32);
  --bone: #F4EEE4;           /* Bonewhite */
  --bone-2: #EDE5D6;
  --meter: #7FB069;          /* Meter Green — status only */
  --steel: #6C7781;          /* Steel Grey */
  --steel-soft: rgba(108,119,129,0.22);

  /* Semantic (dark theme default) */
  --bg: var(--anchor);
  --bg-grad: radial-gradient(1200px 600px at 50% -10%, rgba(232,98,44,0.07), transparent 60%), var(--anchor);
  --surface: #14161A;
  --surface-2: #1A1D22;
  --surface-3: #21252B;
  --border: rgba(244,238,228,0.09);
  --border-strong: rgba(244,238,228,0.18);
  --text: #F2EDE2;
  --text-dim: rgba(244,238,228,0.68);
  --text-muted: rgba(244,238,228,0.44);

  --radius: 10px;
  --radius-lg: 18px;
  --max: 1200px;
  --container-pad: clamp(20px, 5vw, 40px);
  --font-display: 'Space Grotesk', 'Inter', system-ui, sans-serif;
  --font-sans: 'Inter', system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  --font-mono: 'JetBrains Mono', ui-monospace, SFMono-Regular, Menlo, monospace;
  --shadow-sm: 0 1px 2px rgba(0,0,0,0.3);
  --shadow-md: 0 6px 24px rgba(0,0,0,0.38);
  --shadow-lg: 0 24px 64px rgba(0,0,0,0.55);
  --shadow-glow: 0 0 0 1px var(--spark-ring), 0 10px 40px -10px var(--spark-ring);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--bg-grad);
  color: var(--text);
  font-family: var(--font-sans);
  font-size: 16px;
  line-height: 1.6;
  font-feature-settings: "ss01", "cv11";
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}

img, svg, video { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }

/* ---------- Typography ---------- */
h1, h2, h3, h4 {
  font-family: var(--font-display);
  font-weight: 600;
  letter-spacing: -0.022em;
  line-height: 1.08;
  margin: 0 0 0.5em;
  color: var(--text);
}
h1 { font-size: clamp(2.4rem, 5.5vw, 4.5rem); letter-spacing: -0.035em; font-weight: 700; }
h2 { font-size: clamp(1.75rem, 3.3vw, 2.6rem); letter-spacing: -0.025em; font-weight: 500; }
h3 { font-size: clamp(1.25rem, 2vw, 1.5rem); font-weight: 600; }
h4 { font-size: 1.05rem; font-weight: 600; }
p { margin: 0 0 1em; color: var(--text-dim); }
p.lead {
  font-size: clamp(1.05rem, 1.5vw, 1.25rem);
  line-height: 1.55;
  color: var(--text-dim);
  max-width: 62ch;
}

.eyebrow {
  font-family: var(--font-mono);
  text-transform: uppercase;
  font-size: 0.72rem;
  letter-spacing: 0.18em;
  color: var(--spark);
  margin: 0 0 18px;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-weight: 500;
}
.eyebrow::before {
  content: '';
  display: inline-block;
  width: 6px; height: 6px;
  border-radius: 50%;
  background: var(--spark);
  box-shadow: 0 0 12px var(--spark);
}

.mono { font-family: var(--font-mono); font-weight: 500; }

/* ---------- Layout primitives ---------- */
.container {
  width: 100%;
  max-width: var(--max);
  margin: 0 auto;
  padding-left: var(--container-pad);
  padding-right: var(--container-pad);
}
section {
  padding: clamp(64px, 10vw, 128px) 0;
  position: relative;
}
.section-head {
  max-width: 760px;
  margin: 0 auto clamp(40px, 6vw, 72px);
  text-align: center;
}
.section-head.left { text-align: left; margin-left: 0; }
.divider { height: 1px; width: 100%; background: var(--border); margin: 0; }

.grid { display: grid; gap: 24px; }
.grid-2 { grid-template-columns: repeat(2, minmax(0,1fr)); }
.grid-3 { grid-template-columns: repeat(3, minmax(0,1fr)); }
.grid-4 { grid-template-columns: repeat(4, minmax(0,1fr)); }

.text-dim { color: var(--text-dim); }
.text-muted { color: var(--text-muted); }
.text-spark { color: var(--spark); }
.text-ink { color: var(--ink); }

/* ---------- Light section (bonewhite) ---------- */
.section-light {
  background: var(--bone);
  color: #1a1a1c;
}
.section-light h1, .section-light h2, .section-light h3, .section-light h4 { color: #0F1113; }
.section-light p { color: #3a3d42; }
.section-light .text-dim { color: #51565d; }
.section-light .text-muted { color: #6C7781; }
.section-light .eyebrow { color: var(--ink); }
.section-light .eyebrow::before { background: var(--ink); box-shadow: 0 0 10px rgba(27,58,87,0.4); }
.section-light .card {
  background: #FFFFFF;
  border-color: rgba(15,17,19,0.08);
}
.section-light .card:hover { border-color: rgba(15,17,19,0.18); background: #FEFCF7; }
.section-light .check-list li { color: #0F1113; border-color: rgba(15,17,19,0.1); }
.section-light .check-list li:last-child { border-bottom-color: rgba(15,17,19,0.1); }

/* ---------- Navigation ---------- */
.nav {
  position: sticky;
  top: 0;
  z-index: 50;
  backdrop-filter: saturate(160%) blur(14px);
  -webkit-backdrop-filter: saturate(160%) blur(14px);
  background: rgba(15,17,19,0.78);
  border-bottom: 1px solid transparent;
  transition: border-color 200ms ease, background 200ms ease;
}
.nav.scrolled { border-bottom-color: var(--border); }
.nav-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 68px;
}
.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  font-weight: 600;
  font-family: var(--font-display);
  font-size: 1.05rem;
  letter-spacing: -0.015em;
}
.brand-mark {
  width: 28px; height: 28px;
  border-radius: 7px;
  background: var(--ink);
  position: relative;
  flex-shrink: 0;
  overflow: hidden;
  box-shadow: 0 0 0 1px rgba(244,238,228,0.08) inset;
}
.brand-mark::before {
  content: '';
  position: absolute;
  left: 6px; top: 6px;
  width: 16px; height: 16px;
  background: var(--spark);
  border-radius: 3px;
  box-shadow: 0 0 12px -2px var(--spark-ring);
}
.brand-mark::after {
  content: '';
  position: absolute;
  left: 10px; top: 10px;
  width: 8px; height: 8px;
  background: var(--bone);
  border-radius: 2px;
}
.brand-word { color: var(--text); }
.brand-word em { font-style: normal; color: var(--spark); font-weight: 700; }

.nav-links {
  display: flex;
  align-items: center;
  gap: 6px;
}
.nav-links > a {
  padding: 8px 14px;
  border-radius: 8px;
  font-size: 0.93rem;
  color: var(--text-dim);
  transition: color 180ms ease, background 180ms ease;
}
.nav-links > a:hover { color: var(--text); background: var(--surface-2); }
.nav-links > a.active { color: var(--text); }
.nav-links > a.active::after {
  content: '';
  display: block;
  width: 16px; height: 2px;
  background: var(--spark);
  margin: 2px auto 0;
  border-radius: 2px;
}
.nav-cta { margin-left: 8px; }

.nav-toggle {
  display: none;
  background: transparent;
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 8px 10px;
  color: var(--text);
  cursor: pointer;
  font-family: var(--font-mono);
  font-size: 0.8rem;
}

@media (max-width: 880px) {
  .nav-links { display: none; }
  .nav-toggle { display: inline-flex; align-items: center; gap: 8px; }
  .nav.open .nav-links {
    display: flex;
    flex-direction: column;
    align-items: stretch;
    position: absolute;
    top: 68px; left: 0; right: 0;
    padding: 16px var(--container-pad) 24px;
    gap: 4px;
    background: rgba(15,17,19,0.98);
    border-bottom: 1px solid var(--border);
  }
  .nav.open .nav-links > a { padding: 12px 14px; }
  .nav.open .nav-cta { margin: 8px 0 0; }
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px 20px;
  border-radius: 10px;
  font-size: 0.95rem;
  font-weight: 500;
  font-family: var(--font-sans);
  letter-spacing: -0.005em;
  border: 1px solid transparent;
  cursor: pointer;
  transition: transform 160ms ease, background 160ms ease, border-color 160ms ease, box-shadow 200ms ease, color 160ms ease;
  white-space: nowrap;
}
.btn-primary {
  background: var(--spark);
  color: #1a0a00;
  font-weight: 600;
  box-shadow: 0 1px 0 rgba(255,255,255,0.22) inset, 0 10px 24px -8px var(--spark-ring);
}
.btn-primary:hover { background: var(--spark-hot); transform: translateY(-1px); box-shadow: 0 1px 0 rgba(255,255,255,0.28) inset, 0 14px 32px -8px var(--spark-ring); }
.btn-secondary {
  background: var(--surface-2);
  color: var(--text);
  border-color: var(--border);
}
.btn-secondary:hover { background: var(--surface-3); border-color: var(--border-strong); }
.btn-ink {
  background: var(--ink);
  color: var(--bone);
  font-weight: 600;
}
.btn-ink:hover { background: var(--ink-hot); transform: translateY(-1px); }
.btn-ghost { background: transparent; color: var(--text); }
.btn-ghost:hover { background: var(--surface-2); }
.btn-lg { padding: 15px 28px; font-size: 1rem; }
.btn .arrow { transition: transform 180ms ease; font-family: var(--font-mono); }
.btn:hover .arrow { transform: translateX(3px); }

.section-light .btn-secondary { background: #FFFFFF; color: #0F1113; border-color: rgba(15,17,19,0.14); }
.section-light .btn-secondary:hover { background: #FAF7F0; border-color: rgba(15,17,19,0.24); }
.section-light .btn-ghost { color: #0F1113; }
.section-light .btn-ghost:hover { background: rgba(15,17,19,0.05); }

/* ---------- Hero ---------- */
.hero {
  position: relative;
  padding: clamp(72px, 10vw, 140px) 0 clamp(56px, 9vw, 120px);
  overflow: hidden;
}
.hero-grid-bg {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(to right, rgba(244,238,228,0.035) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(244,238,228,0.035) 1px, transparent 1px);
  background-size: 56px 56px;
  mask-image: radial-gradient(ellipse 70% 60% at 50% 40%, black 30%, transparent 78%);
  -webkit-mask-image: radial-gradient(ellipse 70% 60% at 50% 40%, black 30%, transparent 78%);
  pointer-events: none;
  z-index: 0;
}
.hero-glow {
  position: absolute;
  top: -240px; left: 50%;
  transform: translateX(-50%);
  width: 900px; height: 600px;
  background: radial-gradient(circle, rgba(232,98,44,0.16), transparent 65%);
  pointer-events: none;
  z-index: 0;
}
.hero > .container { position: relative; z-index: 1; }
.hero-inner { text-align: center; max-width: 960px; margin: 0 auto; }
.hero h1 {
  background: linear-gradient(180deg, #FEFCF7 0%, #B5AEA1 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  padding-bottom: 0.08em;
}
.hero h1 .spark {
  background: linear-gradient(180deg, var(--spark-hot), var(--spark));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.hero p.lead { margin: 24px auto 40px; text-align: center; }
.hero-cta { display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; }

.hero-meta {
  margin-top: 64px;
  display: flex;
  align-items: center;
  gap: 22px;
  justify-content: center;
  color: var(--text-muted);
  font-family: var(--font-mono);
  font-size: 0.78rem;
  letter-spacing: 0.05em;
  flex-wrap: wrap;
}
.hero-meta .dot { color: var(--spark); }

/* Inner hero variant (for subpages) */
.hero.hero-sm { padding: clamp(56px, 8vw, 96px) 0 clamp(32px, 5vw, 56px); }
.hero.hero-sm h1 { font-size: clamp(2rem, 4.4vw, 3.4rem); }

/* ---------- Badge ---------- */
.badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 5px 11px 5px 9px;
  font-family: var(--font-mono);
  font-size: 0.72rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--text-dim);
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 999px;
  font-weight: 500;
}
.badge .pulse {
  width: 6px; height: 6px;
  border-radius: 50%;
  background: var(--meter);
  box-shadow: 0 0 8px var(--meter);
  position: relative;
}
.badge .pulse::after {
  content: '';
  position: absolute;
  inset: -4px;
  border-radius: 50%;
  border: 1px solid var(--meter);
  opacity: 0;
  animation: ping 2.2s ease-out infinite;
}
@keyframes ping {
  0% { transform: scale(0.7); opacity: 0.6; }
  100% { transform: scale(2); opacity: 0; }
}

.section-light .badge { background: #FFFFFF; border-color: rgba(15,17,19,0.1); color: #51565d; }

/* ---------- Cards ---------- */
.card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 32px;
  position: relative;
  transition: transform 220ms ease, border-color 220ms ease, background 220ms ease;
  overflow: hidden;
  display: flex;
  flex-direction: column;
}
.card:hover { transform: translateY(-2px); border-color: var(--border-strong); background: var(--surface-2); }
.card .card-icon {
  width: 40px; height: 40px;
  border-radius: 10px;
  background: linear-gradient(135deg, rgba(232,98,44,0.18), rgba(232,98,44,0.05));
  border: 1px solid rgba(232,98,44,0.2);
  display: inline-flex; align-items: center; justify-content: center;
  color: var(--spark);
  margin-bottom: 18px;
}
.card h3 { margin-bottom: 10px; }
.card p { margin-bottom: 0; }
.card .card-link {
  margin-top: 20px;
  display: inline-flex; align-items: center; gap: 6px;
  color: var(--spark);
  font-size: 0.92rem;
  font-weight: 500;
  font-family: var(--font-sans);
}
.card .card-link .arrow { font-family: var(--font-mono); transition: transform 180ms ease; }
.card:hover .card-link .arrow { transform: translateX(3px); }

.card-highlight {
  border-color: rgba(232,98,44,0.28);
  background: linear-gradient(180deg, rgba(232,98,44,0.06), var(--surface) 40%);
}
.card-ink .card-icon {
  background: linear-gradient(135deg, rgba(27,58,87,0.28), rgba(27,58,87,0.08));
  border-color: rgba(27,58,87,0.35);
  color: #7fb6e8;
}

/* ---------- Feature / value rows ---------- */
.feature-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 80px;
  align-items: center;
}
.feature-row.reverse > .feature-media { order: 2; }
@media (max-width: 900px) {
  .feature-row { grid-template-columns: 1fr; gap: 40px; }
  .feature-row.reverse > .feature-media { order: initial; }
}

/* ---------- Code / terminal-esque block ---------- */
.stack-viz {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 28px;
  font-family: var(--font-mono);
  font-size: 0.88rem;
  line-height: 1.7;
  box-shadow: var(--shadow-md);
}
.stack-viz::before {
  content: '';
  display: flex;
  margin: -8px 0 18px;
  height: 10px;
  background:
    radial-gradient(circle at 6px 5px, #ff5f56 3px, transparent 3.5px),
    radial-gradient(circle at 22px 5px, #ffbd2e 3px, transparent 3.5px),
    radial-gradient(circle at 38px 5px, var(--meter) 3px, transparent 3.5px);
  background-repeat: no-repeat;
}
.stack-viz-row { display: flex; align-items: center; gap: 12px; padding: 5px 0; }
.stack-viz-row .tag {
  font-size: 0.68rem;
  color: var(--spark);
  background: var(--spark-soft);
  padding: 2px 8px;
  border-radius: 6px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  font-weight: 500;
}
.stack-viz-row .muted { color: var(--text-muted); }
.stack-viz-row .ok { color: var(--meter); }
.stack-viz-row .tag.ink { color: #7fb6e8; background: rgba(27,58,87,0.26); }

/* ---------- Quote ---------- */
.quote {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: clamp(40px, 5vw, 64px);
  max-width: 820px;
  margin: 0 auto;
  position: relative;
  text-align: center;
}
.quote::before {
  content: '"';
  font-family: 'Georgia', serif;
  position: absolute;
  top: -26px; left: 28px;
  font-size: 6rem;
  color: var(--spark);
  line-height: 1;
  opacity: 0.8;
}
.quote blockquote {
  font-family: var(--font-display);
  font-size: clamp(1.4rem, 2.6vw, 2rem);
  font-weight: 500;
  letter-spacing: -0.015em;
  line-height: 1.25;
  color: var(--text);
  margin: 0 0 24px;
}
.quote cite {
  font-style: normal;
  font-family: var(--font-mono);
  font-size: 0.82rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--text-dim);
}

.section-light .quote { background: #FFFFFF; border-color: rgba(15,17,19,0.1); }
.section-light .quote blockquote { color: #0F1113; }
.section-light .quote cite { color: #51565d; }

/* ---------- Loom container ---------- */
.loom-wrap {
  max-width: 960px;
  margin: 0 auto;
  aspect-ratio: 16 / 9;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-lg);
  position: relative;
}
.loom-wrap iframe {
  position: absolute; inset: 0;
  width: 100%; height: 100%;
  border: 0;
}
.loom-caption {
  max-width: 760px;
  margin: 24px auto 0;
  text-align: center;
  color: var(--text-muted);
  font-family: var(--font-mono);
  font-size: 0.82rem;
  letter-spacing: 0.05em;
}

/* ---------- Pricing cards ---------- */
.pricing-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 36px 32px;
  display: flex;
  flex-direction: column;
  transition: border-color 200ms ease, transform 200ms ease, background 200ms ease;
}
.pricing-card:hover { border-color: var(--border-strong); transform: translateY(-2px); }
.pricing-card.featured {
  border-color: rgba(232,98,44,0.38);
  background: linear-gradient(180deg, rgba(232,98,44,0.06), var(--surface) 60%);
  position: relative;
}
.pricing-card.featured::before {
  content: 'Most popular';
  position: absolute;
  top: -12px;
  left: 50%;
  transform: translateX(-50%);
  font-family: var(--font-mono);
  font-size: 0.68rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  padding: 4px 12px;
  background: var(--spark);
  color: #1a0a00;
  border-radius: 999px;
  font-weight: 500;
}
.pricing-card h3 { margin-bottom: 4px; font-family: var(--font-display); }
.pricing-card .tag-line { color: var(--text-dim); font-size: 0.95rem; min-height: 2.8em; margin-bottom: 0; }
.pricing-card .price {
  display: flex; align-items: baseline; gap: 6px;
  margin: 24px 0;
  font-family: var(--font-display);
}
.pricing-card .price .amount { font-size: 2.4rem; font-weight: 700; letter-spacing: -0.03em; color: var(--text); }
.pricing-card .price .per { color: var(--text-muted); font-family: var(--font-mono); font-size: 0.85rem; font-weight: 400; }
.pricing-card ul { list-style: none; margin: 0 0 28px; padding: 0; display: flex; flex-direction: column; gap: 10px; }
.pricing-card ul li {
  display: flex; align-items: flex-start; gap: 10px;
  color: var(--text-dim);
  font-size: 0.95rem;
}
.pricing-card ul li::before {
  content: '';
  flex-shrink: 0;
  width: 16px; height: 16px;
  border-radius: 50%;
  background: var(--spark-soft) url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'><path d='M3.5 8.5l2.8 2.8L12.5 5' stroke='%23E8622C' stroke-width='1.7' fill='none' stroke-linecap='round' stroke-linejoin='round'/></svg>") center/12px no-repeat;
  margin-top: 3px;
}
.pricing-card .btn { margin-top: auto; }

/* ---------- Service-detail list ---------- */
.check-list { list-style: none; padding: 0; margin: 0; }
.check-list li {
  padding: 16px 0;
  border-top: 1px solid var(--border);
  color: var(--text);
  display: flex;
  gap: 14px;
  align-items: flex-start;
  font-size: 1rem;
}
.check-list li:last-child { border-bottom: 1px solid var(--border); }
.check-list li::before {
  content: '→';
  color: var(--spark);
  font-family: var(--font-mono);
  flex-shrink: 0;
  margin-top: 1px;
  font-weight: 600;
}
.check-list li .label {
  font-weight: 600;
  color: var(--text);
  margin-right: 8px;
}

/* ---------- Stat block ---------- */
.stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.stat {
  padding: 28px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
}
.stat .value {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(2rem, 3.2vw, 2.8rem);
  letter-spacing: -0.035em;
  color: var(--spark);
  line-height: 1;
  margin-bottom: 10px;
}
.stat .label {
  font-size: 0.92rem;
  color: var(--text-dim);
}
.section-light .stat { background: #FFFFFF; border-color: rgba(15,17,19,0.1); }
.section-light .stat .value { color: var(--ink); }
.section-light .stat .label { color: #51565d; }

/* ---------- CTA banner ---------- */
.cta-banner {
  background: linear-gradient(180deg, rgba(232,98,44,0.08), var(--surface));
  border: 1px solid rgba(232,98,44,0.28);
  border-radius: var(--radius-lg);
  padding: clamp(40px, 6vw, 72px);
  text-align: center;
  position: relative;
  overflow: hidden;
}
.cta-banner::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(500px 300px at 50% 0%, rgba(232,98,44,0.14), transparent 70%);
  pointer-events: none;
}
.cta-banner > * { position: relative; }
.cta-banner h2 { margin-bottom: 14px; }
.cta-banner p { max-width: 52ch; margin: 0 auto 28px; }
.cta-actions { display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; }

/* ---------- Agent-voice block (JetBrains Mono, ink left border) ---------- */
.agent-voice {
  background: var(--surface);
  border: 1px solid var(--border);
  border-left: 3px solid var(--ink);
  border-radius: 10px;
  padding: 22px 26px;
  font-family: var(--font-mono);
  font-size: 0.92rem;
  line-height: 1.6;
  color: var(--text-dim);
}
.agent-voice .who { color: var(--spark); text-transform: uppercase; letter-spacing: 0.1em; font-size: 0.7rem; margin-bottom: 8px; display: block; font-weight: 500; }

.section-light .agent-voice { background: #FFFFFF; color: #3a3d42; border-color: rgba(15,17,19,0.1); border-left-color: var(--ink); }

/* ---------- Contact form ---------- */
.form {
  display: grid;
  gap: 20px;
  max-width: 620px;
}
.field { display: flex; flex-direction: column; gap: 8px; }
.field label {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--text-muted);
  font-weight: 500;
}
.field input, .field textarea, .field select {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 13px 14px;
  color: var(--text);
  font-family: var(--font-sans);
  font-size: 1rem;
  transition: border-color 160ms ease, background 160ms ease, box-shadow 200ms ease;
  width: 100%;
}
.field textarea { resize: vertical; min-height: 140px; }
.field input:focus, .field textarea:focus, .field select:focus {
  outline: none;
  border-color: var(--spark);
  background: var(--surface-2);
  box-shadow: 0 0 0 3px var(--spark-soft);
}
.field select { appearance: none; -webkit-appearance: none; background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 12'><path d='M2 4l4 4 4-4' stroke='%23E8622C' stroke-width='1.6' fill='none' stroke-linecap='round' stroke-linejoin='round'/></svg>"); background-repeat: no-repeat; background-position: right 14px center; background-size: 12px; padding-right: 36px; }

/* ---------- Footer ---------- */
.footer {
  border-top: 1px solid var(--border);
  padding: 72px 0 40px;
  margin-top: 48px;
  background: linear-gradient(180deg, var(--anchor), #0B0D0F);
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.7fr 1fr 1fr 1fr;
  gap: 48px;
}
@media (max-width: 900px) {
  .footer-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 560px) {
  .footer-grid { grid-template-columns: 1fr; gap: 32px; }
}
.footer h5 {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--text-muted);
  margin: 0 0 16px;
  font-weight: 500;
}
.footer ul { list-style: none; padding: 0; margin: 0; display: flex; flex-direction: column; gap: 8px; }
.footer ul a { color: var(--text-dim); font-size: 0.93rem; transition: color 160ms; }
.footer ul a:hover { color: var(--spark); }
.footer address {
  font-style: normal;
  color: var(--text-dim);
  font-size: 0.92rem;
  line-height: 1.65;
  margin-top: 14px;
}
.footer address a:hover { color: var(--spark); }
.footer-brand p { color: var(--text-muted); font-size: 0.9rem; max-width: 36ch; margin-top: 12px; }
.footer-bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  margin-top: 56px;
  padding-top: 24px;
  border-top: 1px solid var(--border);
  color: var(--text-muted);
  font-size: 0.82rem;
  font-family: var(--font-mono);
  letter-spacing: 0.04em;
  flex-wrap: wrap;
}

/* ---------- Reveal-on-scroll ---------- */
.reveal { opacity: 0; transform: translateY(20px); transition: opacity 700ms ease, transform 700ms cubic-bezier(0.2, 0.8, 0.2, 1); }
.reveal.visible { opacity: 1; transform: translateY(0); }
@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; transition: none; }
  .badge .pulse::after { animation: none; }
}

/* ---------- Utilities ---------- */
.text-center { text-align: center; }
.mt-0 { margin-top: 0; } .mt-1 { margin-top: 8px; } .mt-2 { margin-top: 16px; } .mt-3 { margin-top: 24px; } .mt-4 { margin-top: 32px; } .mt-6 { margin-top: 48px; }
.mb-0 { margin-bottom: 0; }
.flex { display: flex; } .flex-wrap { flex-wrap: wrap; }
.gap-2 { gap: 16px; } .gap-3 { gap: 24px; }
.items-center { align-items: center; }
.justify-center { justify-content: center; }
.max-prose { max-width: 720px; }

@media (max-width: 820px) {
  .grid-3, .grid-4 { grid-template-columns: 1fr; }
  .grid-2 { grid-template-columns: 1fr; }
  .stats { grid-template-columns: 1fr; }
}
@media (min-width: 821px) and (max-width: 1024px) {
  .grid-4 { grid-template-columns: repeat(2, 1fr); }
}

/* ---------- 404 ---------- */
.four-oh-four {
  min-height: 70vh;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 80px 0;
}
.four-oh-four .big {
  font-family: var(--font-mono);
  font-size: clamp(5rem, 15vw, 10rem);
  line-height: 1;
  letter-spacing: -0.05em;
  color: var(--spark);
  text-shadow: 0 0 60px var(--spark-ring);
  margin-bottom: 24px;
}

/* ---------- Audience door (for linking to skills from landing) ---------- */
.audience-door {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
}
.audience-door .door {
  padding: 32px;
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  background: var(--surface);
  transition: border-color 200ms ease, transform 200ms ease;
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.audience-door .door:hover { border-color: var(--border-strong); transform: translateY(-2px); }
.audience-door .door .mono { color: var(--text-muted); font-size: 0.75rem; letter-spacing: 0.14em; text-transform: uppercase; }
.audience-door .door h3 { margin: 4px 0 8px; }
.audience-door .door .arrow { color: var(--spark); font-family: var(--font-mono); margin-top: 8px; }
@media (max-width: 720px) { .audience-door { grid-template-columns: 1fr; } }

/* ---------- Focus visible (accessibility) ---------- */
:focus-visible {
  outline: 2px solid var(--spark);
  outline-offset: 2px;
  border-radius: 4px;
}
