/* Operator Terminal — landing page stylesheet (standalone; not shared with the app tools) */

:root {
  --ground: #171717;
  --surface: #1F1F1F;
  --raised: #262626;
  --border: #2E2E2E;
  --border-soft: #454545;
  --text: #FAFAFA;
  --muted: #A3A3A3;
  --dim: #8A8A8A;
  --green: #3ECF8E;
  --green-hover: #5BD9A0;
  --green-ink: #0B1F16;
  --sans: "Space Grotesk", "Helvetica Neue", Helvetica, Arial, sans-serif;
  --mono: "JetBrains Mono", "SF Mono", Menlo, Consolas, monospace;
  --gutter: 80px;
  --wrap: 1280px;
  --ease: cubic-bezier(0.2, 0.8, 0.2, 1);
  --shadow-console: inset 0 1px 0 rgba(255, 255, 255, 0.05), 0 24px 48px rgba(0, 0, 0, 0.45), 0 48px 96px rgba(62, 207, 142, 0.05);
}

*, *::before, *::after { box-sizing: border-box; }

html { color-scheme: dark; -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--ground);
  color: var(--text);
  font-family: var(--sans);
  font-size: 17px;
  line-height: 1.7;
  font-weight: 500;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

h1, h2, h3, p { margin: 0; }
a { color: inherit; }
img, svg { display: block; max-width: 100%; }

.sr-only {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0;
}

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

.mono { font-family: var(--mono); font-variant-numeric: tabular-nums; }

.label {
  font-family: var(--mono);
  font-size: 13px;
  font-weight: 500;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--muted);
  line-height: 1;
}

.eyebrow { display: inline-flex; align-items: center; gap: 10px; }
.eyebrow .dot { width: 8px; height: 8px; border-radius: 2px; background: var(--green); flex: none; }

.body { color: var(--muted); font-size: 17px; line-height: 1.7; }

.readout {
  font-family: var(--mono);
  font-variant-numeric: tabular-nums;
  font-weight: 500;
  color: var(--text);
  line-height: 1;
  letter-spacing: -0.02em;
}

/* Focus ring shared by every interactive element */
a:focus-visible, button:focus-visible {
  outline: 2px solid var(--green);
  outline-offset: 3px;
  border-radius: 6px;
}

/* ---------- Backgrounds: hairline grid + grain ---------- */
.bg-grid, .bg-grid-x, .bg-grain { position: absolute; inset: 0; pointer-events: none; }
.bg-grid {
  background-image:
    repeating-linear-gradient(to right, rgba(250, 250, 250, 0.035) 0, rgba(250, 250, 250, 0.035) 1px, transparent 1px, transparent 80px),
    repeating-linear-gradient(to bottom, rgba(250, 250, 250, 0.035) 0, rgba(250, 250, 250, 0.035) 1px, transparent 1px, transparent 80px);
}
.bg-grid-x {
  background-image: repeating-linear-gradient(to right, rgba(250, 250, 250, 0.03) 0, rgba(250, 250, 250, 0.03) 1px, transparent 1px, transparent 80px);
}
.bg-grain { width: 100%; height: 100%; opacity: 0.07; mix-blend-mode: screen; }
.grain-defs { position: absolute; width: 0; height: 0; overflow: hidden; }

/* ---------- Nav ---------- */
.nav { border-bottom: 1px solid var(--border); background: var(--ground); }
.nav .wrap { height: 72px; display: flex; align-items: center; justify-content: space-between; gap: 16px; }
.brand {
  display: inline-flex; align-items: center; gap: 10px; text-decoration: none;
  min-height: 44px; color: var(--text);
  transition: transform 0.25s var(--ease), opacity 0.25s var(--ease);
}
.brand:hover { opacity: 0.85; }
.brand:active { transform: translateY(1px); }
.brand-name { font-size: 18px; font-weight: 700; letter-spacing: -0.01em; line-height: 1; }
.nav-link {
  display: inline-flex; align-items: center; min-height: 44px; padding: 0 4px;
  font-size: 15px; font-weight: 500; color: var(--text); text-decoration: none; line-height: 1;
  transition: transform 0.2s var(--ease);
}
.nav-link:hover { color: var(--green); }
.nav-link:active { transform: translateY(1px); }

/* ---------- Buttons ---------- */
.cta {
  display: inline-flex; align-items: center; gap: 10px;
  min-height: 50px; padding: 14px 22px;
  background: var(--green); color: var(--green-ink);
  font-family: var(--sans); font-size: 16px; font-weight: 700; line-height: 1;
  border-radius: 8px; text-decoration: none; white-space: nowrap;
  box-shadow: 0 0 0 1px rgba(62, 207, 142, 0.55), 0 10px 28px rgba(62, 207, 142, 0.14), 0 2px 6px rgba(0, 0, 0, 0.4);
  transition: transform 0.25s var(--ease);
}
.cta:hover { background: var(--green-hover); color: var(--green-ink); transform: translateY(-1px); }
.cta:active { transform: translateY(1px); background: var(--green); }
.cta svg { flex: none; }
.cta-note { font-size: 14px; color: var(--muted); line-height: 1.5; }
.cta-stack { display: flex; flex-direction: column; gap: 14px; align-items: flex-start; padding-top: 6px; }

/* ---------- Hero ---------- */
.hero { position: relative; background: var(--ground); overflow: hidden; }
.hero-grid {
  position: relative;
  display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 584px);
  gap: 64px; align-items: center;
  padding-top: 56px; padding-bottom: 64px;
}
.hero-copy { display: flex; flex-direction: column; gap: 28px; max-width: 600px; }
.hero h1 {
  font-size: clamp(38px, 4.1vw, 58px); line-height: 1.04; font-weight: 700;
  letter-spacing: -0.03em; color: var(--text); text-wrap: balance;
}
.hero-sub { font-size: 19px; line-height: 1.6; max-width: 560px; color: var(--muted); }

/* ---------- Console panel ---------- */
.console-link {
  display: block; text-decoration: none; color: inherit; border-radius: 16px;
  transition: transform 0.35s var(--ease);
}
.console-link:hover { transform: translateY(-4px); }
.console-link:active { transform: translateY(-1px); }
.console-link:focus-visible { border-radius: 18px; }

.console {
  position: relative; background: var(--raised); border: 1px solid var(--border);
  border-radius: 16px; padding: 10px; box-shadow: var(--shadow-console);
}
.bezel-tabs {
  display: flex; align-items: flex-end; justify-content: space-between; gap: 12px;
  padding: 0 12px 0 4px; border-bottom: 1px solid var(--border);
}
.tabs { display: flex; align-items: flex-end; gap: 4px; min-width: 0; overflow-x: auto; scrollbar-width: none; -ms-overflow-style: none; }
.tabs::-webkit-scrollbar { display: none; }
.tab {
  display: inline-block; font-family: var(--mono); font-size: 13px; font-weight: 500;
  letter-spacing: 0.04em; color: var(--muted); padding: 8px 10px 10px; line-height: 1;
  border-bottom: 2px solid transparent; margin-bottom: -1px; white-space: nowrap;
}
.tab--active { color: var(--text); border-bottom-color: var(--green); }
.status { display: flex; align-items: center; gap: 8px; padding-bottom: 10px; flex: none; }
.status-dot { width: 6px; height: 6px; border-radius: 50%; background: var(--green); box-shadow: 0 0 6px rgba(62, 207, 142, 0.8); }
.prompt-row { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 12px; }
.prompt { display: inline-flex; align-items: center; font-family: var(--mono); font-size: 13px; color: var(--muted); line-height: 1.2; min-width: 0; }
.prompt > span:first-child { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.cursor { display: inline-block; width: 8px; height: 15px; background: var(--green); margin-left: 6px; border-radius: 1px; flex: none; }
.prompt-aux { font-family: var(--mono); font-size: 13px; color: var(--muted); flex: none; }

.screen {
  background: var(--ground); border: 1px solid var(--border); border-radius: 10px;
  padding: 18px 22px; display: flex; flex-direction: column; gap: 16px;
}
.io { display: flex; flex-direction: column; gap: 10px; }
.io-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.io-count { font-family: var(--mono); font-size: 13px; color: var(--muted); }
.fields { display: grid; grid-template-columns: 1fr 1fr; gap: 8px 12px; }
.field {
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
  background: var(--surface); border: 1px solid var(--border); border-radius: 6px; padding: 9px 12px;
  min-width: 0;
}
.field--wide { grid-column: 1 / -1; }
.field-label { font-size: 14px; color: var(--muted); line-height: 1.3; }
.field-value { font-family: var(--mono); font-variant-numeric: tabular-nums; font-size: 15px; font-weight: 500; color: var(--text); line-height: 1; white-space: nowrap; }
.field-stack { display: flex; flex-direction: column; align-items: flex-end; gap: 5px; }
.field-sub { font-family: var(--mono); font-size: 13px; color: var(--dim); line-height: 1; white-space: nowrap; }
.divider { height: 1px; background: var(--border); }

.outputs { gap: 12px; }
.headline-out { display: flex; align-items: flex-end; justify-content: space-between; gap: 16px; padding-bottom: 4px; flex-wrap: wrap; }
.headline-out .stack { display: flex; flex-direction: column; gap: 8px; }
.out-label { font-size: 14px; color: var(--muted); line-height: 1.3; }
.readout--xl { font-size: 40px; }
.badge {
  font-family: var(--mono); font-size: 13px; font-weight: 700; letter-spacing: 0.1em; text-transform: uppercase;
  color: var(--green); background: rgba(62, 207, 142, 0.1); border: 1px solid rgba(62, 207, 142, 0.4);
  border-radius: 5px; padding: 7px 10px; line-height: 1; white-space: nowrap;
}
.metrics { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; }
.metric { display: flex; flex-direction: column; gap: 8px; border-top: 1px solid var(--border); padding-top: 10px; min-width: 0; }
.metric .out-label { font-size: 13px; }
.readout--md { font-size: 24px; }

.locked { position: relative; border: 1px dashed var(--border); border-radius: 8px; padding: 12px 14px; }
.locked-rows { display: flex; flex-direction: column; gap: 8px; opacity: 0.38; }
.locked-row { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; }
.locked-row .out-label { flex: 1 1 auto; min-width: 0; }
.locked-row .readout { flex: none; }
.readout--sm { font-size: 20px; }
.unlock { display: flex; align-items: center; gap: 8px; margin-top: 12px; padding-top: 12px; border-top: 1px solid var(--border); font-size: 14px; color: var(--text); line-height: 1.3; }
.unlock svg { flex: none; }
.bezel-foot {
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
  padding: 10px 12px 2px; font-family: var(--mono); font-size: 13px; color: var(--muted);
}

/* ---------- Section scaffolding ---------- */
.section { position: relative; }
.section .wrap { padding-top: 64px; padding-bottom: 64px; }
.section--surface { background: var(--surface); border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); }
.section-head { display: flex; flex-direction: column; gap: 16px; max-width: 760px; }
.section h2 {
  font-size: clamp(30px, 3vw, 40px); line-height: 1.1; font-weight: 700;
  letter-spacing: -0.03em; color: var(--text); text-wrap: balance;
}

/* ---------- Proof ---------- */
.proof-grid {
  display: grid; grid-template-columns: minmax(0, 1.65fr) minmax(280px, 1fr);
  gap: 48px; align-items: stretch; margin-top: 36px;
}
.proof-frame {
  position: relative; width: 100%; aspect-ratio: 1600 / 1283;
  background: var(--ground); border: 1px solid var(--border); border-radius: 12px; overflow: hidden;
}
.proof-frame img { width: 100%; height: 100%; object-fit: cover; object-position: left top; }
.proof-frame .corner { position: absolute; width: 12px; height: 12px; opacity: 0; }
.proof-frame .corner--tl { left: 12px; top: 12px; }
.proof-frame .corner--tr { right: 12px; top: 12px; }
.proof-frame .corner--bl { left: 12px; bottom: 12px; }
.proof-frame .corner--br { right: 12px; bottom: 12px; }
.proof-placeholder {
  position: absolute; inset: 0; display: none; align-items: center; justify-content: center; text-align: center;
  padding: 24px; font-family: var(--mono); font-size: 13px; color: var(--muted); letter-spacing: 0.04em;
}
.proof-frame.is-empty { border: 1px dashed var(--border-soft); }
.proof-frame.is-empty .corner { opacity: 1; }
.proof-frame.is-empty .proof-placeholder { display: flex; }

.proof-readouts { display: flex; flex-direction: column; justify-content: space-between; gap: 32px; padding: 6px 0 4px; }
.readout-list { display: flex; flex-direction: column; }
.readout-item { display: flex; flex-direction: column; gap: 12px; padding: 30px 0; border-top: 1px solid var(--border); }
.readout-item:first-child { padding-top: 0; border-top: 0; }
.readout-item:last-child { padding-bottom: 0; }
.readout--lg { font-size: clamp(34px, 3.2vw, 44px); }
.proof-caption { font-size: 15px; color: var(--muted); line-height: 1.6; }

/* ---------- Instruments ---------- */
.cards { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; margin-top: 36px; }
.card { display: flex; flex-direction: column; }
.card .prompt-row { padding: 6px 12px 12px; }
.card .screen { padding: 26px 24px 28px; gap: 14px; flex: 1; }
/* Three columns: the full host prefix does not fit beside the index, so cards show the short prompt */
.card .prompt-host { display: none; }
.card-index { font-family: var(--mono); font-size: 13px; color: var(--green); letter-spacing: 0.1em; }
.card h3 { font-size: 24px; line-height: 1.15; font-weight: 700; letter-spacing: -0.02em; color: var(--text); text-wrap: balance; }
.card p { font-size: 16px; line-height: 1.65; color: var(--muted); }
.card-outs { display: flex; flex-wrap: wrap; gap: 6px; margin-top: auto; padding-top: 10px; padding-left: 0; padding-right: 0; padding-bottom: 0; list-style: none; }
.card-outs li {
  font-family: var(--mono); font-size: 12px; color: var(--muted); background: var(--surface);
  border: 1px solid var(--border); border-radius: 5px; padding: 6px 8px; line-height: 1; white-space: nowrap;
}

/* ---------- Closing band ---------- */
.closing { position: relative; background: var(--surface); border-top: 1px solid var(--border); overflow: hidden; }
.closing .wrap { position: relative; padding-top: 56px; padding-bottom: 56px; display: flex; flex-direction: column; align-items: center; gap: 20px; text-align: center; }
.closing h2 { font-size: clamp(28px, 2.6vw, 34px); line-height: 1.15; max-width: 680px; }
.closing .cta-stack { align-items: center; }

/* ---------- Footer ---------- */
.footer { border-top: 1px solid var(--border); background: var(--ground); }
.footer .wrap {
  display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: 24px;
  padding-top: 20px; padding-bottom: 20px; font-size: 14px; color: var(--muted);
}
.footer-brand { white-space: nowrap; }
.footer-waitlist {
  display: inline-flex; align-items: center; min-height: 44px; padding: 0 4px; justify-self: center;
  color: var(--text); text-decoration: none; text-align: center; line-height: 1.4;
  transition: transform 0.2s var(--ease);
}
.footer-waitlist:hover { color: var(--green); }
.footer-waitlist:active { transform: translateY(1px); }
.footer-links { display: flex; align-items: center; justify-content: flex-end; gap: 24px; }
.footer-links a {
  display: inline-flex; align-items: center; min-height: 44px; padding: 0 2px;
  color: var(--muted); text-decoration: none; transition: transform 0.2s var(--ease);
}
.footer-links a:hover { color: var(--green); }
.footer-links a:active { transform: translateY(1px); }
.footer-links a.is-strong { color: var(--text); }
.footer-links a.is-strong:hover { color: var(--green); }

/* ---------- Motion preferences ---------- */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition: none !important; }
  html { scroll-behavior: auto; }
}

/* ---------- Tablet ---------- */
@media (max-width: 1100px) {
  :root { --gutter: 40px; }
  .hero-grid { grid-template-columns: minmax(0, 1fr); gap: 48px; padding-top: 48px; padding-bottom: 56px; }
  .hero-copy { max-width: 640px; }
  .console-link { max-width: 640px; min-width: 0; }
  .proof-grid { grid-template-columns: 1fr; gap: 36px; }
  .proof-readouts { padding: 0; gap: 24px; }
  .readout-item { padding: 22px 0; }
  .cards { grid-template-columns: 1fr; }
  .card .prompt-host { display: inline; }
}

/* ---------- Phone ---------- */
@media (max-width: 640px) {
  :root { --gutter: 20px; }
  body { font-size: 16px; }
  .nav .wrap { height: 64px; }
  .brand-name { font-size: 17px; }
  .hero-grid { gap: 40px; padding-top: 40px; padding-bottom: 48px; }
  .hero-copy { gap: 22px; }
  .hero h1 { font-size: clamp(34px, 9.6vw, 40px); }
  .hero-sub { font-size: 17px; }
  .cta { width: 100%; justify-content: center; }
  .cta-stack { width: 100%; align-items: stretch; text-align: center; }
  .cta-note { font-size: 14px; }

  .console { padding: 8px; border-radius: 14px; }
  .bezel-tabs { padding: 0 8px 0 2px; gap: 8px; }
  .tab { font-size: 11px; letter-spacing: 0; padding: 9px 6px 10px; }
  .status .label { display: none; }
  .prompt-row { padding: 10px 8px; }
  .prompt { font-size: 12px; }
  .prompt-aux { display: none; }
  .screen { padding: 14px; gap: 14px; border-radius: 8px; }
  .fields { grid-template-columns: 1fr; gap: 8px; }
  .field { min-height: 44px; }
  .readout--xl { font-size: 32px; }
  .headline-out { gap: 10px 16px; }
  .metrics { grid-template-columns: 1fr; gap: 0; }
  .metric { flex-direction: row; align-items: baseline; justify-content: space-between; gap: 12px; padding: 10px 0; }
  .metric .out-label { font-size: 14px; }
  .readout--md { font-size: 20px; }
  .locked { padding: 12px; }
  .locked-row .out-label { font-size: 13px; }
  .readout--sm { font-size: 18px; }
  .unlock { font-size: 14px; }
  .bezel-foot { padding: 10px 8px 2px; font-size: 12px; }

  .section .wrap { padding-top: 48px; padding-bottom: 48px; }
  .section h2 { font-size: clamp(28px, 8vw, 32px); }
  .proof-grid { margin-top: 28px; gap: 28px; }
  .proof-frame { aspect-ratio: 1600 / 1283; }
  .proof-placeholder { font-size: 12px; }
  .readout--lg { font-size: 34px; }
  .cards { margin-top: 28px; gap: 16px; }
  .card .screen { padding: 22px 20px 24px; }
  .card h3 { font-size: 23px; }

  .closing .wrap { padding-top: 48px; padding-bottom: 48px; }
  .closing .prompt { font-size: 12px; }
  .closing h2 { font-size: 28px; }

  .footer .wrap { grid-template-columns: 1fr; text-align: center; gap: 8px; padding-top: 24px; padding-bottom: 24px; }
  .footer-brand { white-space: normal; }
  .footer-links { justify-content: center; gap: 20px; }
}

@media (max-width: 360px) {
  .prompt { font-size: 11px; }
  .tab { padding: 9px 5px 10px; }
}
