/* ============================================================
   DESIGN TOKENS
   Palette: dark CI-console void, functional status colors
   (not decorative — pass/amber map to real test-runner semantics)
   ============================================================ */
:root {
  --bg: #0b0e0c;
  --panel: #12160f;
  --panel-border: #232b22;
  --panel-border-hover: #34402f;
  --text: #e7ede9;
  --text-muted: #8b9a91;
  --text-dim: #74847a;
  --accent-pass: #3ecf8e;
  --accent-amber: #e8a33d;
  --accent-pass-dim: rgba(62, 207, 142, 0.12);

  --font-mono: "JetBrains Mono", ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  --font-body: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;

  --radius: 6px;
  --max-width: 1080px;
  --section-pad: clamp(64px, 10vw, 120px);
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

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

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

img, svg { display: block; max-width: 100%; }

a { color: inherit; }

.container {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 24px;
}

/* ============================================================
   SKIP LINK
   ============================================================ */
.skip-link {
  position: absolute;
  top: -48px;
  left: 12px;
  z-index: 100;
  background: var(--accent-pass);
  color: #06110b;
  font-family: var(--font-mono);
  font-size: 13px;
  font-weight: 600;
  padding: 10px 16px;
  border-radius: var(--radius);
  text-decoration: none;
  transition: top 0.2s ease;
}

.skip-link:focus {
  top: 12px;
}

/* ============================================================
   NAV
   ============================================================ */
.nav {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(11, 14, 12, 0.85);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--panel-border);
}

.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 24px;
  max-width: var(--max-width);
  margin: 0 auto;
  gap: 16px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-mono);
  font-weight: 600;
  font-size: 15px;
  letter-spacing: -0.01em;
  text-decoration: none;
  margin-right: auto;
}

.brand-mark {
  width: 26px;
  height: 26px;
  border-radius: 6px;
  background: var(--accent-pass-dim);
  border: 1px solid var(--accent-pass);
  color: var(--accent-pass);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 13px;
  font-weight: 700;
  flex-shrink: 0;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 28px;
  font-family: var(--font-mono);
  font-size: 13px;
  color: var(--text-muted);
}

.nav-links a {
  text-decoration: none;
  transition: color 0.15s ease;
}

.nav-links a:hover, .nav-links a:focus-visible {
  color: var(--accent-pass);
}

.nav-links a.active {
  color: var(--accent-pass);
}

.nav-cta {
  font-family: var(--font-mono);
  font-size: 13px;
  padding: 8px 14px;
  border: 1px solid var(--accent-pass);
  color: var(--accent-pass);
  border-radius: var(--radius);
  text-decoration: none;
  white-space: nowrap;
  transition: background 0.15s ease;
}

.nav-cta:hover, .nav-cta:focus-visible { background: var(--accent-pass-dim); }

.nav-cta-mobile { display: none; }

/* Hamburger button — hidden on desktop */
.nav-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 34px;
  height: 34px;
  background: transparent;
  border: 1px solid var(--panel-border-hover);
  border-radius: var(--radius);
  cursor: pointer;
  padding: 0;
  flex-shrink: 0;
}

.nav-toggle-bar {
  display: block;
  width: 16px;
  height: 2px;
  margin: 0 auto;
  background: var(--text);
  border-radius: 1px;
  transition: transform 0.25s ease, opacity 0.25s ease;
}

.nav-toggle[aria-expanded="true"] .nav-toggle-bar:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}
.nav-toggle[aria-expanded="true"] .nav-toggle-bar:nth-child(2) {
  opacity: 0;
}
.nav-toggle[aria-expanded="true"] .nav-toggle-bar:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

@media (max-width: 720px) {
  .nav-toggle { display: flex; }
  .nav-cta-desktop { display: none; }

  .nav-links {
    position: fixed;
    top: var(--nav-height, 67px);
    left: 0;
    right: 0;
    bottom: 0;
    background: var(--bg);
    flex-direction: column;
    align-items: flex-start;
    gap: 0;
    padding: 8px 24px 24px;
    font-size: 16px;
    transform: translateX(100%);
    transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    overflow-y: auto;
  }

  .nav-links.open {
    transform: translateX(0);
  }

  .nav-links a {
    width: 100%;
    padding: 16px 0;
    border-bottom: 1px solid var(--panel-border);
  }

  .nav-cta-mobile {
    display: inline-flex;
    justify-content: center;
    margin-top: 20px;
    border-bottom: none !important;
  }
}

@media (min-width: 721px) {
  .nav-links.open { display: flex; }
}

/* ============================================================
   HERO
   ============================================================ */
.hero {
  padding: clamp(56px, 9vw, 96px) 24px clamp(48px, 8vw, 80px);
}

.hero-inner {
  max-width: var(--max-width);
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: 56px;
  align-items: center;
}

@media (max-width: 900px) {
  .hero-inner { grid-template-columns: 1fr; gap: 40px; }
}

.eyebrow {
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.08em;
  color: var(--accent-amber);
  margin-bottom: 18px;
}

.hero h1 {
  font-family: var(--font-mono);
  font-size: clamp(30px, 4.2vw, 46px);
  line-height: 1.15;
  letter-spacing: -0.01em;
  margin: 0 0 20px;
  font-weight: 600;
}

.hero-sub {
  font-size: 17px;
  color: var(--text-muted);
  max-width: 46ch;
  margin: 0 0 32px;
}

.hero-ctas {
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
}

.btn {
  font-family: var(--font-mono);
  font-size: 14px;
  padding: 13px 22px;
  border-radius: var(--radius);
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  transition: transform 0.15s ease, background 0.15s ease, border-color 0.15s ease;
  border: 1px solid transparent;
}

.btn:active { transform: translateY(1px); }

.btn-primary {
  background: var(--accent-pass);
  color: #06110b;
  font-weight: 600;
}

.btn-primary:hover, .btn-primary:focus-visible { background: #58dba1; }

.btn-secondary {
  border-color: var(--panel-border-hover);
  color: var(--text);
}

.btn-secondary:hover, .btn-secondary:focus-visible { border-color: var(--accent-pass); color: var(--accent-pass); }

/* Terminal panel — signature element */
.terminal {
  background: var(--panel);
  border: 1px solid var(--panel-border);
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 20px 60px -20px rgba(0, 0, 0, 0.6);
}

.terminal-bar {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 11px 14px;
  border-bottom: 1px solid var(--panel-border);
  background: rgba(255, 255, 255, 0.015);
}

.terminal-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--panel-border-hover);
}

.terminal-title {
  margin-left: 8px;
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--text-dim);
}

.terminal-body {
  padding: 20px 18px;
  font-family: var(--font-mono);
  font-size: 13px;
  min-height: 260px;
}

.term-cmdline {
  color: var(--text);
  margin-bottom: 16px;
  white-space: pre-wrap;
  word-break: break-word;
}
.term-cmdline .prompt { color: var(--text-dim); }

.cursor {
  display: inline-block;
  width: 7px;
  height: 13px;
  background: var(--accent-pass);
  margin-left: 2px;
  vertical-align: -2px;
  animation: blink 1s steps(1) infinite;
}

@keyframes blink { 50% { opacity: 0; } }

/* Parallel worker rows */
.term-workers {
  display: flex;
  flex-direction: column;
  gap: 11px;
}

.worker-row {
  display: grid;
  grid-template-columns: 62px 1fr 74px 20px;
  align-items: center;
  gap: 10px;
  opacity: 0;
  transform: translateY(4px);
  transition: opacity 0.3s ease, transform 0.3s ease;
}

.worker-row.visible { opacity: 1; transform: translateY(0); }

.worker-label {
  color: var(--text-dim);
  font-size: 11.5px;
}

.worker-file {
  color: var(--text-muted);
  font-size: 12.5px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.worker-row.done .worker-file { color: var(--text); }

.worker-bar {
  height: 4px;
  border-radius: 2px;
  background: var(--panel-border);
  overflow: hidden;
  position: relative;
}

.worker-bar-fill {
  height: 100%;
  width: 0%;
  background: var(--accent-amber);
  border-radius: 2px;
  transition: width linear, background 0.25s ease;
}

.worker-row.done .worker-bar-fill { background: var(--accent-pass); }

.worker-status {
  text-align: center;
  font-size: 13px;
  color: var(--accent-pass);
}

.term-summary {
  margin-top: 16px;
  padding-top: 14px;
  border-top: 1px solid var(--panel-border);
  color: var(--accent-amber);
  font-size: 12.5px;
  opacity: 0;
  transition: opacity 0.4s ease;
}

.term-summary.visible { opacity: 1; }

.term-idle {
  color: var(--text-dim);
  font-size: 12px;
  margin-top: 10px;
  opacity: 0;
  transition: opacity 0.4s ease;
}

.term-idle.visible { opacity: 1; }

/* ============================================================
   SECTIONS (generic)
   ============================================================ */
section { padding: var(--section-pad) 0; }

.section-border-top { border-top: 1px solid var(--panel-border); }

.section-label {
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.08em;
  color: var(--accent-pass);
  margin-bottom: 14px;
}

h2 {
  font-family: var(--font-mono);
  font-size: clamp(24px, 3vw, 32px);
  font-weight: 600;
  letter-spacing: -0.01em;
  margin: 0 0 18px;
  max-width: 30ch;
}

.lede {
  color: var(--text-muted);
  font-size: 16.5px;
  max-width: 62ch;
  margin: 0 0 48px;
}

/* ============================================================
   PROBLEM
   ============================================================ */
.problem-inner { max-width: 720px; }

/* ============================================================
   SERVICES
   ============================================================ */
.services-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}

@media (max-width: 860px) {
  .services-grid { grid-template-columns: 1fr; }
}

.service-card {
  background: var(--panel);
  border: 1px solid var(--panel-border);
  border-radius: 10px;
  padding: 26px 24px;
  display: flex;
  flex-direction: column;
  transition: border-color 0.15s ease;
}

.service-card:hover { border-color: var(--panel-border-hover); }

.service-card.premium { border-color: var(--accent-amber); background: linear-gradient(180deg, rgba(232,163,61,0.06), var(--panel) 40%); }

.service-tier {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.08em;
  color: var(--text-dim);
  text-transform: uppercase;
  margin-bottom: 10px;
}

.service-card.premium .service-tier { color: var(--accent-amber); }

.service-name {
  font-family: var(--font-mono);
  font-size: 18px;
  font-weight: 600;
  margin: 0 0 10px;
}

.service-desc {
  color: var(--text-muted);
  font-size: 14.5px;
  margin: 0 0 20px;
}

.service-items {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 10px;
  font-size: 14px;
}

.service-items li {
  display: flex;
  gap: 10px;
  align-items: flex-start;
  color: var(--text);
}

.service-items li::before {
  content: "✓";
  color: var(--accent-pass);
  font-family: var(--font-mono);
  flex-shrink: 0;
}

/* ============================================================
   PROCESS — animated step cards with expand/collapse detail
   ============================================================ */
.process-track {
  position: relative;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
  padding-top: 44px;
}

.process-line-bg,
.process-line-fill {
  position: absolute;
  top: 15px;
  left: calc(12.5% - 1px);
  right: calc(12.5% - 1px);
  height: 2px;
  background: var(--panel-border);
}

.process-line-fill {
  background: linear-gradient(90deg, var(--accent-pass), #6fe6b3);
  width: 0%;
  right: auto;
  transition: width 0.7s cubic-bezier(0.4, 0, 0.2, 1);
  box-shadow: 0 0 10px 0 rgba(62, 207, 142, 0.5);
}

@media (max-width: 860px) {
  .process-track { grid-template-columns: 1fr 1fr; }
  .process-line-bg, .process-line-fill { display: none; }
}
@media (max-width: 520px) {
  .process-track { grid-template-columns: 1fr; padding-top: 0; gap: 14px; }
}

.process-step {
  opacity: 0;
  transform: translateY(22px) scale(0.98);
  transition: opacity 0.55s cubic-bezier(0.16, 1, 0.3, 1), transform 0.55s cubic-bezier(0.16, 1, 0.3, 1),
    border-color 0.25s ease, box-shadow 0.25s ease;
  background: var(--panel);
  border: 1px solid var(--panel-border);
  border-radius: 10px;
  padding: 18px 18px 6px;
}

.process-step.in-view {
  opacity: 1;
  transform: translateY(0) scale(1);
}

.process-step:hover {
  border-color: var(--panel-border-hover);
}

.process-step.open {
  border-color: var(--accent-pass);
  box-shadow: 0 0 0 1px rgba(62, 207, 142, 0.15), 0 12px 32px -16px rgba(62, 207, 142, 0.25);
}

.process-step-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 10px;
  cursor: pointer;
  padding-bottom: 12px;
  -webkit-tap-highlight-color: transparent;
}

.process-node {
  width: 30px;
  height: 30px;
  border-radius: 50%;
  border: 2px solid var(--panel-border-hover);
  background: var(--bg);
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-mono);
  font-size: 12px;
  font-weight: 700;
  color: var(--text-dim);
  margin-bottom: 16px;
  flex-shrink: 0;
  transition: border-color 0.4s ease, color 0.4s ease, background 0.4s ease, transform 0.4s ease;
}

.process-step.in-view .process-node {
  border-color: var(--accent-pass);
  color: var(--accent-pass);
  background: var(--accent-pass-dim);
  transform: scale(1.08);
}

.process-step.open .process-node {
  background: var(--accent-pass);
  color: #06110b;
}

.process-step-titlewrap { flex: 1; min-width: 0; }

.process-title {
  font-family: var(--font-mono);
  font-weight: 600;
  font-size: 15px;
  margin: 0 0 6px;
}

.process-desc { color: var(--text-muted); font-size: 14px; margin: 0; }

.process-duration {
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--text-dim);
  margin-top: 8px;
}

.process-chevron {
  flex-shrink: 0;
  width: 18px;
  height: 18px;
  color: var(--text-dim);
  transition: transform 0.3s ease, color 0.3s ease;
  margin-top: 2px;
}

.process-step.open .process-chevron {
  transform: rotate(180deg);
  color: var(--accent-pass);
}

/* CSS grid-rows trick for smooth height animation without JS measuring */
.process-body-wrap {
  display: grid;
  grid-template-rows: 0fr;
  transition: grid-template-rows 0.35s cubic-bezier(0.4, 0, 0.2, 1);
}

.process-step.open .process-body-wrap {
  grid-template-rows: 1fr;
}

.process-body-inner { overflow: hidden; }

.process-details {
  list-style: none;
  padding: 14px 0 16px;
  margin: 0;
  border-top: 1px solid var(--panel-border);
  display: flex;
  flex-direction: column;
  gap: 9px;
}

.process-details li {
  display: flex;
  gap: 9px;
  align-items: flex-start;
  font-size: 13.5px;
  color: var(--text);
}

.process-details li::before {
  content: "→";
  color: var(--accent-pass);
  font-family: var(--font-mono);
  flex-shrink: 0;
}

@media (max-width: 520px) {
  .process-step { padding: 16px 16px 4px; }
}

/* ============================================================
   SHARED ACCORDION (used by Pricing page too)
   ============================================================ */
.accordion-item {
  border: 1px solid var(--panel-border);
  border-radius: 10px;
  background: var(--panel);
  transition: border-color 0.25s ease, box-shadow 0.25s ease;
}

.accordion-item:hover { border-color: var(--panel-border-hover); }

.accordion-item.open {
  border-color: var(--accent-pass);
  box-shadow: 0 0 0 1px rgba(62, 207, 142, 0.15), 0 12px 32px -16px rgba(62, 207, 142, 0.25);
}

.accordion-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  padding: 22px 24px;
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
}

.accordion-chevron {
  width: 20px;
  height: 20px;
  flex-shrink: 0;
  color: var(--text-dim);
  transition: transform 0.3s ease, color 0.3s ease;
}

.accordion-item.open .accordion-chevron {
  transform: rotate(180deg);
  color: var(--accent-pass);
}

.accordion-body-wrap {
  display: grid;
  grid-template-rows: 0fr;
  transition: grid-template-rows 0.35s cubic-bezier(0.4, 0, 0.2, 1);
}

.accordion-item.open .accordion-body-wrap {
  grid-template-rows: 1fr;
}

.accordion-body-inner { overflow: hidden; }

/* ============================================================
   PROOF / STACK
   ============================================================ */
.stack-row {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin: 24px 0 32px;
}

.stack-chip {
  font-family: var(--font-mono);
  font-size: 12.5px;
  padding: 7px 12px;
  border: 1px solid var(--panel-border);
  border-radius: 100px;
  color: var(--text-muted);
}

.proof-note {
  color: var(--text-dim);
  font-size: 13.5px;
  font-style: italic;
  margin-bottom: 20px;
}

.highlights {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.highlights li {
  padding: 16px 18px;
  background: var(--panel);
  border: 1px solid var(--panel-border);
  border-radius: 8px;
  font-size: 14.5px;
  color: var(--text);
}

/* ============================================================
   TEAM
   ============================================================ */
.team-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 20px;
}

@media (max-width: 640px) {
  .team-grid { grid-template-columns: 1fr; }
}

.team-card {
  border: 1px solid var(--panel-border);
  border-radius: 10px;
  padding: 22px;
}

.team-name { font-family: var(--font-mono); font-weight: 600; font-size: 15px; margin: 0 0 4px; }
.team-title { color: var(--accent-pass); font-size: 12.5px; font-family: var(--font-mono); margin-bottom: 10px; }
.team-bio { color: var(--text-muted); font-size: 14px; }

/* ============================================================
   PRICING — accordion layout (dedicated page)
   ============================================================ */
.pricing-grid {
  display: flex;
  flex-direction: column;
  gap: 16px;
  max-width: 760px;
}

.pricing-name {
  font-family: var(--font-mono);
  font-weight: 600;
  font-size: 16px;
  margin: 0 0 6px;
}

.pricing-desc { color: var(--text-muted); font-size: 14px; margin: 0; }

.pricing-duration {
  font-family: var(--font-mono);
  font-size: 11.5px;
  color: var(--accent-amber);
  margin-top: 8px;
}

.pricing-details {
  list-style: none;
  padding: 0 24px 22px;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.pricing-details li {
  display: flex;
  gap: 10px;
  align-items: flex-start;
  font-size: 14px;
  color: var(--text);
}

.pricing-details li::before {
  content: "✓";
  color: var(--accent-pass);
  font-family: var(--font-mono);
  flex-shrink: 0;
}

.pricing-bestfor {
  font-size: 13px;
  color: var(--text-dim);
  border-top: 1px solid var(--panel-border);
  padding: 14px 24px 22px;
  margin: 6px 0 0;
}
.pricing-bestfor strong { color: var(--accent-pass); font-family: var(--font-mono); font-weight: 600; }

/* ============================================================
   DEDICATED PAGE HEADER (pricing.html, team.html)
   ============================================================ */
.page-header {
  padding: clamp(48px, 8vw, 80px) 0 8px;
}

.page-header .section-label { margin-bottom: 16px; }

.page-header h1 {
  font-family: var(--font-mono);
  font-size: clamp(28px, 4vw, 38px);
  font-weight: 600;
  letter-spacing: -0.01em;
  margin: 0 0 16px;
  max-width: 22ch;
}

.page-header .lede { margin-bottom: 0; }

.back-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-family: var(--font-mono);
  font-size: 13px;
  color: var(--text-dim);
  text-decoration: none;
  margin-bottom: 28px;
  transition: color 0.15s ease;
}

.back-link:hover, .back-link:focus-visible { color: var(--accent-pass); }

/* ============================================================
   FAQ
   ============================================================ */
.faq-list { display: flex; flex-direction: column; }

.faq-item {
  border-bottom: 1px solid var(--panel-border);
  padding: 20px 0;
}

.faq-q {
  font-family: var(--font-mono);
  font-weight: 600;
  font-size: 15px;
  margin: 0 0 8px;
}

.faq-a { color: var(--text-muted); font-size: 14.5px; margin: 0; }

/* ============================================================
   CONTACT
   ============================================================ */
.contact-section { text-align: center; }
.contact-section h2 { margin-left: auto; margin-right: auto; }
.contact-section .lede { margin-left: auto; margin-right: auto; }

.contact-ctas {
  display: flex;
  gap: 14px;
  justify-content: center;
  flex-wrap: wrap;
}

/* ============================================================
   FOOTER
   ============================================================ */
footer {
  border-top: 1px solid var(--panel-border);
  padding: 32px 0;
  text-align: center;
}

.footer-note {
  font-family: var(--font-mono);
  font-size: 12.5px;
  color: var(--text-dim);
}

/* focus visibility */
a:focus-visible, button:focus-visible, [role="button"]:focus-visible {
  outline: 2px solid var(--accent-pass);
  outline-offset: 2px;
}
