/* ============================================================
   RocketOps marketing site
   Brand tokens lifted from the app (app/src/index.css / DESIGN.md).
   Mint-on-black is the Rocket Lab signature.
   ============================================================ */

:root {
  --bg: #0f1117;
  --surface: #181b24;
  --surface2: #1e2230;
  --border: #2a2e3d;
  --text: #e1e4ed;
  --text-muted: #8b90a0;
  --accent: #06f4b1;
  --accent-dim: #0ab882;
  --green: #12b361;
  --yellow: #fbbf24;
  --red: #f87171;

  --font: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  --mono: ui-monospace, "SF Mono", Menlo, Consolas, monospace;

  --container: 1140px;
  --radius: 14px;
  --radius-sm: 8px;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
}

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

html { scroll-behavior: smooth; scroll-padding-top: 80px; }

body {
  background: var(--bg);
  color: var(--text);
  font-family: var(--font);
  font-size: 16px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

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

.container { width: 100%; max-width: var(--container); margin: 0 auto; padding: 0 24px; }
.container.narrow { max-width: 760px; }
.center { text-align: center; }

h1, h2, h3 { line-height: 1.1; letter-spacing: -0.02em; font-weight: 700; }
h1 { font-size: clamp(40px, 7vw, 72px); }
h2 { font-size: clamp(28px, 4.4vw, 46px); }
h3 { font-size: 19px; letter-spacing: -0.01em; }

.grad {
  background: linear-gradient(100deg, var(--accent) 0%, #7ef7d6 55%, var(--accent-dim) 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

/* ---------- buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 14px;
  font-weight: 600;
  padding: 10px 18px;
  border-radius: var(--radius-sm);
  border: 1px solid transparent;
  cursor: pointer;
  transition: transform 0.15s var(--ease), background 0.15s, border-color 0.15s, box-shadow 0.2s;
  white-space: nowrap;
}
.btn-lg { font-size: 15px; padding: 14px 26px; }
.btn-primary {
  background: var(--accent);
  color: #041712;
  box-shadow: 0 0 0 0 rgba(6, 244, 177, 0.5);
}
.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 34px -8px rgba(6, 244, 177, 0.55);
}
.btn-ghost {
  background: transparent;
  color: var(--text);
  border-color: var(--border);
}
.btn-ghost:hover { background: var(--surface2); border-color: var(--accent-dim); }

/* ---------- nav ---------- */
.nav {
  position: sticky;
  top: 0;
  z-index: 50;
  display: flex;
  align-items: center;
  gap: 24px;
  padding: 14px 24px;
  background: rgba(15, 17, 23, 0.72);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid transparent;
  transition: border-color 0.2s, background 0.2s;
}
.nav.scrolled { border-bottom-color: var(--border); background: rgba(15, 17, 23, 0.9); }

.brand-wrap { display: flex; align-items: center; gap: 10px; }
.brand { display: flex; align-items: center; gap: 10px; font-weight: 700; }
.brand-mark {
  display: grid;
  place-items: center;
  width: 30px; height: 30px;
  border-radius: 8px;
  background: var(--accent);
  color: #041712;
  font-size: 12px;
  font-weight: 800;
  letter-spacing: -0.02em;
  box-shadow: 0 0 18px -4px rgba(6, 244, 177, 0.6);
}
.brand-mark.lg { width: 40px; height: 40px; font-size: 15px; border-radius: 10px; }
.brand-name { font-size: 16px; }
.brand-by { font-size: 12px; color: var(--text-muted); font-weight: 500; transition: color 0.15s; }
.brand-by:hover { color: var(--accent); }

.nav-links { display: flex; gap: 26px; margin-left: auto; }
.nav-links a { font-size: 14px; color: var(--text-muted); transition: color 0.15s; }
.nav-links a:hover { color: var(--text); }
.nav-cta { display: flex; gap: 10px; }
.nav-toggle { display: none; background: none; border: none; color: var(--text); font-size: 22px; cursor: pointer; }

/* ---------- hero ---------- */
.hero { position: relative; padding: 72px 0 40px; overflow: hidden; }
.hero-glow {
  position: absolute;
  top: -280px; left: 50%;
  transform: translateX(-50%);
  width: 900px; height: 640px;
  background: radial-gradient(50% 50% at 50% 50%, rgba(6, 244, 177, 0.22), transparent 70%);
  filter: blur(20px);
  pointer-events: none;
  z-index: 0;
}
.hero-glow.soft { top: -180px; opacity: 0.7; }
.hero-grid {
  position: absolute; inset: 0;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.035) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.035) 1px, transparent 1px);
  background-size: 46px 46px;
  mask-image: radial-gradient(60% 55% at 50% 30%, #000 40%, transparent 100%);
  z-index: 0;
}
.hero-inner {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: 1.05fr 1fr;
  gap: 48px;
  align-items: center;
  padding-top: 24px;
  padding-bottom: 40px;
}
.eyebrow {
  display: inline-block;
  font-family: var(--mono);
  font-size: 12px;
  color: var(--accent);
  background: rgba(6, 244, 177, 0.08);
  border: 1px solid rgba(6, 244, 177, 0.22);
  padding: 5px 12px;
  border-radius: 999px;
  margin-bottom: 22px;
  letter-spacing: 0.01em;
}
.hero-copy h1 { margin-bottom: 22px; }
.lede { font-size: clamp(16px, 2vw, 19px); color: var(--text-muted); max-width: 34em; }
.hero-actions { display: flex; gap: 14px; margin-top: 32px; flex-wrap: wrap; }
.center-actions { justify-content: center; }
.hero-trust {
  display: flex; gap: 10px; align-items: center; flex-wrap: wrap;
  margin-top: 24px; font-size: 13px; color: var(--text-muted);
  font-family: var(--mono);
}
.hero-trust .dot { color: var(--border); }

/* ---------- product window mockup ---------- */
.hero-mock { position: relative; z-index: 1; }
.win {
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: linear-gradient(180deg, #12151d, #0e1017);
  box-shadow: 0 40px 90px -30px rgba(0, 0, 0, 0.7), 0 0 0 1px rgba(6, 244, 177, 0.04);
  overflow: hidden;
  transform: perspective(1400px) rotateY(-9deg) rotateX(3deg);
  transition: transform 0.5s var(--ease);
}
.hero-mock:hover .win { transform: perspective(1400px) rotateY(-3deg) rotateX(1deg); }
.win-bar {
  display: flex; align-items: center; gap: 8px;
  padding: 11px 14px;
  border-bottom: 1px solid var(--border);
  background: rgba(30, 34, 48, 0.5);
  font-size: 12px;
}
.win-dot { width: 10px; height: 10px; border-radius: 50%; background: var(--border); }
.win-dot:first-child { background: #ff5f57; }
.win-dot:nth-child(2) { background: #febc2e; }
.win-dot:nth-child(3) { background: #28c840; }
.win-title { display: flex; align-items: center; gap: 7px; margin-left: 10px; color: var(--text); font-weight: 600; }
.win-mark {
  display: grid; place-items: center; width: 18px; height: 18px;
  border-radius: 5px; background: var(--accent); color: #041712; font-size: 9px; font-weight: 800;
}
.win-url { margin-left: auto; color: var(--text-muted); font-family: var(--mono); font-size: 11px; }
.win-body { padding: 18px; display: flex; flex-direction: column; gap: 16px; }

.mock-stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; }
.stat {
  background: var(--surface); border: 1px solid var(--border);
  border-radius: 10px; padding: 12px;
  display: flex; flex-direction: column; gap: 2px;
}
.stat.accent { border-color: rgba(6, 244, 177, 0.4); box-shadow: inset 0 0 20px -12px var(--accent); }
.stat-label { font-size: 10px; text-transform: uppercase; letter-spacing: 0.08em; color: var(--text-muted); }
.stat-value { font-size: 22px; font-weight: 700; font-variant-numeric: tabular-nums; }
.stat.accent .stat-value { color: var(--accent); }
.stat-sub { font-size: 11px; color: var(--text-muted); }
.stat-sub.up { color: var(--green); }

.mock-board { display: grid; grid-template-columns: 1fr 1fr 1.1fr; gap: 10px; }
.mcol { background: rgba(24, 27, 36, 0.5); border-radius: 10px; padding: 10px; display: flex; flex-direction: column; gap: 8px; }
.mcol-h { font-size: 10px; text-transform: uppercase; letter-spacing: 0.08em; color: var(--text-muted); }
.mcard {
  background: var(--surface); border: 1px solid var(--border); border-radius: 8px;
  padding: 9px 10px; display: flex; flex-direction: column; gap: 3px; font-size: 12px;
}
.mcard b { font-size: 12px; }
.mcard span { color: var(--text-muted); font-family: var(--mono); font-size: 11px; }
.mcard.won { border-left: 3px solid var(--accent); }
.srow { display: flex; align-items: center; gap: 8px; }
.srow i { font-style: normal; font-size: 10px; color: var(--text-muted); width: 18px; font-family: var(--mono); }
.srow u { height: 8px; border-radius: 4px; background: linear-gradient(90deg, var(--accent-dim), var(--accent)); display: block; }

/* ---------- logo strip ---------- */
.logo-strip {
  position: relative; z-index: 1;
  display: flex; align-items: center; gap: 14px; flex-wrap: wrap;
  padding-top: 26px; margin-top: 20px;
  border-top: 1px solid var(--border);
}
.logo-strip-label { font-size: 12px; text-transform: uppercase; letter-spacing: 0.1em; color: var(--text-muted); }
.chip {
  font-size: 13px; color: var(--text-muted);
  border: 1px solid var(--border); border-radius: 999px; padding: 5px 14px;
  transition: color 0.15s, border-color 0.15s;
}
.chip:hover { color: var(--text); border-color: var(--accent-dim); text-decoration: line-through; }

/* ---------- generic section ---------- */
.section { padding: 96px 0; }
.kicker {
  display: inline-block; font-family: var(--mono); font-size: 12px;
  text-transform: uppercase; letter-spacing: 0.12em; color: var(--accent); margin-bottom: 14px;
}
.section h2 { margin-bottom: 18px; }
.section-lede { color: var(--text-muted); font-size: 17px; max-width: 46em; margin: 0 auto; }
.center .section-lede { margin: 0 auto; }

/* ---------- problem / chaos ---------- */
.chaos {
  display: flex; flex-wrap: wrap; gap: 14px; justify-content: center;
  margin-top: 52px; max-width: 720px; margin-left: auto; margin-right: auto;
}
.chaos-node {
  font-family: var(--mono); font-size: 14px; color: var(--text-muted);
  background: var(--surface); border: 1px dashed var(--border);
  border-radius: 10px; padding: 14px 20px;
  transform: rotate(var(--r, 0deg));
}
.chaos-node:nth-child(1) { --r: -4deg; }
.chaos-node:nth-child(2) { --r: 3deg; }
.chaos-node:nth-child(3) { --r: -2deg; }
.chaos-node:nth-child(4) { --r: 5deg; }
.chaos-node:nth-child(5) { --r: -5deg; }
.chaos-node:nth-child(6) { --r: 2deg; }
.chaos-node:nth-child(7) { --r: -3deg; }

/* ---------- the spine ---------- */
.spine {
  list-style: none;
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px;
  margin-top: 56px; counter-reset: none;
}
.spine-step {
  position: relative;
  background: linear-gradient(180deg, var(--surface), #14171f);
  border: 1px solid var(--border); border-radius: var(--radius);
  padding: 26px 22px;
}
.spine-step::after {
  content: "→"; position: absolute; right: -16px; top: 50%; transform: translateY(-50%);
  color: var(--accent-dim); font-size: 20px; z-index: 2;
}
.spine-step:last-child::after { display: none; }
.spine-num { font-family: var(--mono); font-size: 13px; color: var(--accent); }
.spine-step h3 { margin: 10px 0 8px; }
.spine-step p { color: var(--text-muted); font-size: 14px; }

/* ---------- features ---------- */
.feature-grid {
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; margin-top: 52px;
}
.fcard {
  background: linear-gradient(180deg, var(--surface), #14171f);
  border: 1px solid var(--border); border-radius: var(--radius);
  padding: 24px 22px;
  transition: transform 0.2s var(--ease), border-color 0.2s, box-shadow 0.3s;
}
.fcard:hover {
  transform: translateY(-4px);
  border-color: var(--accent-dim);
  box-shadow: 0 18px 44px -22px rgba(6, 244, 177, 0.4);
}
.fico {
  display: grid; place-items: center; width: 42px; height: 42px;
  border-radius: 11px; background: rgba(6, 244, 177, 0.1);
  border: 1px solid rgba(6, 244, 177, 0.2);
  color: var(--accent); font-size: 20px; margin-bottom: 16px;
}
.fcard h3 { margin-bottom: 8px; }
.fcard p { color: var(--text-muted); font-size: 14px; }
.accent-card { border-color: rgba(6, 244, 177, 0.35); background: linear-gradient(180deg, rgba(6, 244, 177, 0.06), #14171f); }

/* ---------- compare ---------- */
.compare {
  display: grid; grid-template-columns: 1fr auto 1fr; gap: 24px; align-items: stretch;
  margin-top: 52px;
}
.compare-col {
  background: var(--surface); border: 1px solid var(--border);
  border-radius: var(--radius); padding: 28px;
}
.compare-col.after {
  border-color: rgba(6, 244, 177, 0.35);
  background: linear-gradient(180deg, rgba(6, 244, 177, 0.05), var(--surface));
  display: flex; flex-direction: column; gap: 16px;
}
.compare-tag {
  display: inline-block; font-family: var(--mono); font-size: 11px; text-transform: uppercase;
  letter-spacing: 0.1em; color: var(--text-muted); margin-bottom: 18px;
}
.compare-tag.accent { color: var(--accent); }
.compare-col.before ul { list-style: none; display: flex; flex-direction: column; gap: 12px; }
.compare-col.before li { color: var(--text-muted); font-size: 15px; padding-left: 24px; position: relative; }
.compare-col.before li::before { content: "×"; position: absolute; left: 0; color: var(--red); font-weight: 700; }
.compare-note { margin-top: 18px; font-size: 13px; color: var(--text-muted); font-style: italic; }
.compare-arrow { display: grid; place-items: center; color: var(--accent-dim); font-size: 28px; }
.after-logo { display: flex; align-items: center; gap: 12px; font-size: 24px; font-weight: 700; }
.after-copy { color: var(--text-muted); font-size: 15px; flex: 1; }
.compare-col.after .btn { align-self: flex-start; }

/* ---------- who ---------- */
.who-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; margin-top: 52px; }
.who-card {
  background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius);
  padding: 24px; display: flex; flex-direction: column; gap: 8px;
  transition: border-color 0.2s, transform 0.2s var(--ease);
}
.who-card:hover { border-color: var(--accent-dim); transform: translateY(-3px); }
.who-card b { font-size: 17px; }
.who-card span { color: var(--text-muted); font-size: 14px; }

/* ---------- cta band ---------- */
.cta-band { position: relative; padding: 110px 0; text-align: center; overflow: hidden; border-top: 1px solid var(--border); }
.cta-band h2 { margin-bottom: 18px; position: relative; z-index: 1; }
.cta-band .section-lede { position: relative; z-index: 1; }
.cta-band .hero-actions { position: relative; z-index: 1; margin-top: 34px; }

/* ---------- footer ---------- */
.footer { border-top: 1px solid var(--border); padding: 44px 0; }
.footer-inner { display: flex; align-items: center; gap: 24px; flex-wrap: wrap; }
.footer-brand { display: flex; align-items: center; gap: 12px; }
.footer-brand b { display: block; font-size: 15px; }
.footer-by { font-size: 12px; color: var(--text-muted); transition: color 0.15s; }
.footer-by:hover { color: var(--accent); }
.footer-links { display: flex; gap: 22px; margin-left: auto; }
.footer-links a { font-size: 14px; color: var(--text-muted); transition: color 0.15s; }
.footer-links a:hover { color: var(--text); }
.footer-legal { width: 100%; font-size: 13px; color: var(--text-muted); border-top: 1px solid var(--border); padding-top: 20px; margin-top: 4px; }
.footer-legal a { color: var(--text); transition: color 0.15s; }
.footer-legal a:hover { color: var(--accent); }

/* ---------- reveal animation ---------- */
.reveal { opacity: 0; transform: translateY(22px); transition: opacity 0.6s var(--ease), transform 0.6s var(--ease); }
.reveal.in { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; transition: none; }
  html { scroll-behavior: auto; }
  .win { transform: none; }
}

/* ---------- responsive ---------- */
@media (max-width: 960px) {
  .hero-inner { grid-template-columns: 1fr; gap: 40px; }
  .hero-mock { max-width: 520px; }
  .spine { grid-template-columns: repeat(2, 1fr); }
  .spine-step:nth-child(2)::after { display: none; }
  .feature-grid { grid-template-columns: repeat(2, 1fr); }
  .who-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 720px) {
  .nav-links, .nav-cta { display: none; }
  .nav-toggle { display: block; margin-left: auto; }
  .nav.open { flex-wrap: wrap; }
  .nav.open .nav-links {
    display: flex; flex-direction: column; gap: 4px; width: 100%; order: 3;
    padding-top: 12px; margin-top: 8px; border-top: 1px solid var(--border);
  }
  .nav.open .nav-cta { display: flex; width: 100%; order: 4; margin-top: 8px; }
  .nav.open .nav-cta .btn { flex: 1; justify-content: center; }
  .section { padding: 72px 0; }
  .compare { grid-template-columns: 1fr; }
  .compare-arrow { transform: rotate(90deg); }
  .spine { grid-template-columns: 1fr; }
  .spine-step::after { content: "↓"; right: 50%; top: auto; bottom: -16px; transform: translateX(50%); }
  .feature-grid, .who-grid { grid-template-columns: 1fr; }
  .brand-by { display: none; }
}
