:root {
  --bg: #080e19;
  --bg-raised: #101827;
  --bg-panel: #111722;
  --bg-editor: #0c1017;
  --border: #263653;
  --border-strong: #303747;
  --text: #e5eefb;
  --muted: #9fb0c6;
  --subtle: #64748b;
  --paper: #f8fafc;
  --paper-border: #d8e2ee;
  --ink: #0f172a;
  --ink-soft: #475569;
  --accent: #38bdf8;
  --accent-ink: #062338;
  --ok: #86efac;
  --warn: #fbbf24;
  --danger: #fda4af;
  --anchor-offset: 88px;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

#range-pack,
#sample-report,
#security,
#pilot {
  scroll-margin-top: var(--anchor-offset);
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
}

button,
input,
textarea {
  font: inherit;
}

button {
  cursor: pointer;
}

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

.skip-link {
  position: absolute;
  left: 16px;
  top: -60px;
  z-index: 20;
  padding: 10px 12px;
  border-radius: 6px;
  background: var(--accent);
  color: var(--accent-ink);
  font-weight: 800;
}

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

.shell {
  width: min(1180px, calc(100vw - 40px));
  margin: 0 auto;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 10;
  border-bottom: 1px solid rgba(66, 89, 126, 0.34);
  background: rgba(8, 14, 25, 0.88);
  backdrop-filter: blur(16px);
  box-shadow: inset 0 -1px 0 rgba(148, 163, 184, 0.05);
}

.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 58px;
  gap: 18px;
}

.brand {
  display: inline-flex;
  align-items: center;
  min-height: 36px;
  color: #f8fafc;
  font-size: 0.98rem;
  font-weight: 950;
  letter-spacing: 0;
}

.brand span {
  color: var(--accent);
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 2px;
  min-height: 40px;
  border: 1px solid rgba(86, 111, 148, 0.42);
  border-radius: 999px;
  padding: 3px;
  background: rgba(15, 23, 42, 0.72);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.04);
  color: #aab8cb;
  font-size: 0.78rem;
  font-weight: 780;
}

.nav-links a {
  display: inline-flex;
  align-items: center;
  min-height: 34px;
  border-radius: 999px;
  padding: 0 12px;
}

.nav-links a:hover,
.nav-links a:focus {
  background: rgba(56, 189, 248, 0.12);
  color: #f8fafc;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 40px;
  border: 0;
  border-radius: 6px;
  padding: 0 14px;
  font-weight: 850;
  white-space: nowrap;
}

.button-primary {
  background: var(--accent);
  color: var(--accent-ink);
}

.nav .button-primary {
  min-height: 36px;
  border: 1px solid rgba(125, 211, 252, 0.42);
  padding: 0 16px;
  box-shadow: 0 10px 24px rgba(56, 189, 248, 0.14);
  font-size: 0.82rem;
}

.button-primary:hover,
.button-primary:focus {
  background: #5acefb;
}

.button-secondary {
  border: 1px solid #2a3a56;
  background: #101827;
  color: #dbeafe;
}

.button:focus-visible,
a:focus-visible,
input:focus-visible,
textarea:focus-visible {
  outline: 3px solid rgba(56, 189, 248, 0.45);
  outline-offset: 2px;
}

.hero-section {
  padding: 48px 0 44px;
}

.hero-grid {
  display: grid;
  grid-template-columns: 0.75fr 1.25fr;
  align-items: center;
  gap: 30px;
}

.eyebrow {
  margin: 0 0 12px;
  color: var(--accent);
  font-size: 0.76rem;
  font-weight: 950;
  letter-spacing: 0.11em;
  text-transform: uppercase;
}

.eyebrow-light {
  color: #0284c7;
}

.hero-copy h1 {
  margin: 0 0 14px;
  color: #f8fafc;
  font-size: 2.85rem;
  line-height: 1.02;
  letter-spacing: 0;
}

.hero-lede {
  margin: 0 0 22px;
  color: #b9c7da;
  font-size: 1.04rem;
  line-height: 1.52;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.hero-proof {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
  margin-top: 20px;
}

.hero-proof div {
  min-height: 70px;
  border: 1px solid var(--border);
  border-radius: 6px;
  padding: 10px;
  background: #0f172a;
}

.hero-proof strong {
  display: block;
  margin-bottom: 5px;
  color: #f8fafc;
  font-size: 1.1rem;
  line-height: 1;
}

.hero-proof span {
  color: #91a4bc;
  font-size: 0.74rem;
}

.hero-visual {
  min-width: 0;
}

.ide-window {
  position: relative;
  overflow: hidden;
  border: 1px solid var(--border-strong);
  border-radius: 8px;
  background: #101318;
  box-shadow: 0 22px 70px rgba(0, 0, 0, 0.42);
}

.ide-titlebar {
  display: grid;
  grid-template-columns: 130px 1fr 130px;
  align-items: center;
  min-height: 34px;
  border-bottom: 1px solid #2c313d;
  background: #17191f;
  color: #bbc6d6;
  font-size: 0.72rem;
}

.window-dots {
  display: flex;
  gap: 7px;
  padding-left: 12px;
}

.window-dots span {
  width: 9px;
  height: 9px;
  border-radius: 999px;
  background: #5b6474;
}

.window-title {
  overflow: hidden;
  text-align: center;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.window-avatars {
  display: flex;
  justify-content: flex-end;
  gap: 7px;
  padding-right: 12px;
}

.window-avatars span {
  display: grid;
  place-items: center;
  width: 22px;
  height: 22px;
  border-radius: 999px;
  font-size: 0.62rem;
  font-weight: 900;
}

.window-avatars span:first-child {
  background: #34d399;
  color: #052e16;
}

.window-avatars span:last-child {
  background: var(--accent);
  color: var(--accent-ink);
}

.live-toast {
  position: absolute;
  right: 18px;
  top: 48px;
  z-index: 2;
  width: 238px;
  border: 1px solid #33445f;
  border-radius: 7px;
  padding: 12px;
  background: #1b2433;
  box-shadow: 0 18px 40px rgba(0, 0, 0, 0.32);
}

.live-toast strong,
.live-toast span {
  display: block;
}

.live-toast strong {
  margin-bottom: 4px;
  color: #f8fafc;
  font-size: 0.84rem;
}

.live-toast span {
  color: #aab8cb;
  font-size: 0.72rem;
  line-height: 1.35;
}

.ide-body {
  display: grid;
  grid-template-columns: 42px 218px 1fr;
  min-height: 438px;
}

.activity-rail {
  display: grid;
  align-content: start;
  justify-items: center;
  gap: 14px;
  border-right: 1px solid #2b313d;
  padding-top: 10px;
  background: #141820;
}

.rail-item {
  display: grid;
  place-items: center;
  width: 22px;
  height: 22px;
  border: 1px solid #596274;
  border-radius: 5px;
  color: #9aa6b8;
  font-size: 0.7rem;
  font-weight: 850;
}

.rail-item-active {
  border-color: var(--accent);
  background: rgba(56, 189, 248, 0.1);
  color: var(--accent);
}

.task-pane {
  border-right: 1px solid #2b313d;
  background: #101318;
}

.task-header {
  border-bottom: 1px solid #252b36;
  padding: 14px 14px 10px;
  color: #f2f6fb;
  font-size: 0.86rem;
  font-weight: 850;
}

.task-tabs {
  display: flex;
  gap: 12px;
  border-bottom: 1px solid #252b36;
  padding: 0 14px 10px;
  color: #818b9b;
  font-size: 0.7rem;
}

.task-tabs span:first-child {
  border-bottom: 2px solid var(--accent);
  padding-bottom: 7px;
  color: #e5eefb;
}

.task-copy {
  border-bottom: 1px solid #252b36;
  padding: 13px 14px;
  color: #b9c7da;
  font-size: 0.78rem;
  line-height: 1.52;
}

.task-copy strong {
  display: block;
  margin-bottom: 6px;
  color: #f8fafc;
}

.task-copy p {
  margin: 0;
}

.file-list {
  padding: 12px 10px;
}

.panel-label {
  margin: 0 0 8px 4px;
  color: #768296;
  font-size: 0.64rem;
  font-weight: 900;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.file-row {
  display: flex;
  align-items: center;
  gap: 8px;
  min-height: 28px;
  border-radius: 5px;
  padding: 0 8px;
  color: #cbd5e1;
  font-size: 0.77rem;
}

.file-row-active {
  background: #1d2635;
  color: #f8fafc;
}

.file-icon {
  display: inline-block;
  flex: 0 0 auto;
}

.folder-icon {
  width: 12px;
  height: 9px;
  border-radius: 2px;
  background: #facc15;
}

.doc-icon {
  width: 11px;
  height: 13px;
  border-radius: 2px;
  background: var(--accent);
}

.workspace {
  display: grid;
  min-width: 0;
  grid-template-rows: 34px 1fr 132px;
}

.editor-tabs {
  display: flex;
  align-items: end;
  overflow: hidden;
  border-bottom: 1px solid #2b313d;
  background: #11151c;
}

.editor-tab {
  display: flex;
  align-items: center;
  min-height: 34px;
  border-right: 1px solid #2b313d;
  padding: 0 12px;
  color: #8792a5;
  font-size: 0.77rem;
}

.editor-tab-active {
  border-top: 2px solid var(--accent);
  background: #171c25;
  color: #f8fafc;
}

.editor-region {
  display: grid;
  min-height: 272px;
  grid-template-columns: 1fr 188px;
}

.code-editor {
  overflow: hidden;
  padding: 14px 0;
  background: var(--bg-editor);
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: 0.74rem;
  line-height: 1.64;
}

.code-line {
  display: grid;
  grid-template-columns: 36px 1fr;
}

.code-line code {
  overflow: hidden;
  color: #d7e2f1;
  white-space: pre;
}

.line-number {
  padding-right: 12px;
  color: #505b6e;
  text-align: right;
  user-select: none;
}

.code-line-alert {
  background: rgba(244, 63, 94, 0.12);
}

.syntax-keyword {
  color: #c084fc;
}

.syntax-function {
  color: #7dd3fc;
}

.syntax-string {
  color: var(--ok);
}

.syntax-number {
  color: var(--warn);
}

.service-panel {
  border-left: 1px solid #2b313d;
  padding: 12px;
  background: var(--bg-panel);
}

.service-panel h2,
.report-preview h3 {
  margin: 0 0 9px;
  color: #f8fafc;
  font-size: 0.82rem;
}

.service-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  margin-bottom: 7px;
  border: 1px solid var(--border);
  border-radius: 6px;
  padding: 8px;
  background: #0b1220;
  color: #cbd5e1;
  font-size: 0.7rem;
}

.status {
  font-weight: 850;
}

.status-ok {
  color: var(--ok);
}

.status-warn {
  color: var(--warn);
}

.status-muted {
  color: #93a4ba;
}

.report-preview {
  margin-top: 12px;
  border: 1px solid var(--border);
  border-radius: 6px;
  padding: 9px;
  background: #0b1220;
}

.score-row {
  display: flex;
  justify-content: space-between;
  gap: 8px;
  margin-bottom: 5px;
  color: #9fb0c6;
  font-size: 0.64rem;
}

.score-bar {
  height: 5px;
  margin-bottom: 7px;
  overflow: hidden;
  border-radius: 999px;
  background: #253650;
}

.score-bar span {
  display: block;
  height: 100%;
  background: var(--accent);
}

.terminal-region {
  display: grid;
  grid-template-columns: 1fr 188px;
  border-top: 1px solid #2b313d;
  background: #080d14;
}

.terminal-output {
  padding: 10px 14px;
  color: #cbeafe;
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: 0.72rem;
  line-height: 1.55;
}

.terminal-output p {
  margin: 0;
}

.terminal-muted {
  color: #5f6e83;
}

.test-pass {
  color: var(--ok);
}

.test-fail {
  color: var(--danger);
}

.terminal-actions {
  display: grid;
  align-content: center;
  gap: 8px;
  border-left: 1px solid #2b313d;
  padding: 10px;
}

.terminal-actions button {
  min-height: 33px;
  border-radius: 6px;
  font-size: 0.76rem;
  font-weight: 850;
}

.terminal-actions button:first-child {
  border: 0;
  background: var(--accent);
  color: var(--accent-ink);
}

.terminal-actions button:last-child {
  border: 1px solid #31435e;
  background: transparent;
  color: #dbeafe;
}

.light-section {
  border-top: 1px solid #dbe4ef;
  background: var(--paper);
  color: var(--ink);
  padding: 44px 0;
}

.light-section-tight {
  padding-top: 24px;
}

.section-heading {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 28px;
  margin-bottom: 18px;
}

.section-heading h2 {
  max-width: 480px;
  margin: 0;
  color: var(--ink);
  font-size: 1.9rem;
  line-height: 1.12;
  letter-spacing: 0;
}

.section-heading p {
  max-width: 540px;
  margin: 0;
  color: var(--ink-soft);
  font-size: 0.95rem;
  line-height: 1.52;
}

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

.range-card,
.step-card {
  border: 1px solid var(--paper-border);
  border-radius: 7px;
  background: #ffffff;
  padding: 16px;
}

.range-card-header,
.step-card-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
}

.range-card-header {
  margin-bottom: 12px;
}

.step-card-header {
  margin-bottom: 10px;
}

.range-visual,
.step-visual {
  flex: 0 0 auto;
  box-sizing: border-box;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
  color: #0284c7;
  padding: 9px;
  border: 1px solid #d8e4f0;
  border-radius: 7px;
  background: #f8fbfe;
}

.range-visual {
  width: 48px;
  height: 48px;
}

.step-visual {
  width: 44px;
  height: 44px;
}

.range-visual-postgres {
  color: #0284c7;
}

.range-visual-redis {
  color: #059669;
}

.range-visual-queue {
  color: #ca8a04;
}

.range-visual-storage {
  color: #7c3aed;
}

.step-visual-invite {
  color: #0284c7;
}

.step-visual-work {
  color: #059669;
}

.step-visual-review {
  color: #7c3aed;
}

.range-visual path,
.step-visual path {
  vector-effect: non-scaling-stroke;
}

.range-label {
  margin: 0 0 8px;
  color: #0284c7;
  font-size: 0.72rem;
  font-weight: 950;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.range-card h3,
.step-card h3 {
  margin: 0 0 9px;
  color: #111827;
  font-size: 1rem;
}

.range-card h3 {
  margin-bottom: 0;
}

.range-card ul {
  margin: 0;
  padding-left: 18px;
  color: #5f6f83;
  font-size: 0.83rem;
  line-height: 1.5;
}

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

.step-card span {
  display: block;
  margin-bottom: 9px;
  color: #0284c7;
  font-size: 0.8rem;
  font-weight: 950;
}

.step-card p {
  margin: 0;
  color: #5f6f83;
  font-size: 0.88rem;
  line-height: 1.5;
}

.dark-section {
  border-top: 1px solid #1f2d47;
  background: var(--bg);
  padding: 42px 0;
}

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

.trust-card {
  border: 1px solid #2a3b58;
  border-radius: 8px;
  background: #101827;
  padding: 20px;
}

.trust-card h2 {
  margin: 0 0 10px;
  color: #f8fafc;
  font-size: 1.2rem;
}

.trust-card p {
  margin: 0 0 14px;
  color: #a9bad1;
  font-size: 0.9rem;
  line-height: 1.55;
}

.trust-list {
  display: grid;
  gap: 8px;
}

.trust-list div {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  border-top: 1px solid #23334e;
  padding-top: 8px;
  color: #cbd5e1;
  font-size: 0.82rem;
}

.trust-list strong {
  color: var(--ok);
  font-size: 0.78rem;
}

.trust-list-outcomes {
  gap: 9px;
}

.trust-list-outcomes div {
  display: grid;
  gap: 4px;
  border: 1px solid #23334e;
  border-radius: 6px;
  background: #0c1422;
  padding: 11px 12px;
}

.trust-list-outcomes strong {
  color: #f8fafc;
  font-size: 0.86rem;
}

.trust-list-outcomes span {
  color: #9fb0c6;
  font-size: 0.78rem;
  line-height: 1.45;
}

.pilot-section {
  border-top: 1px solid #dbe4ef;
  background: var(--paper);
  color: var(--ink);
  padding: 44px 0 48px;
}

.pilot-grid {
  display: grid;
  grid-template-columns: 0.82fr 1.18fr;
  align-items: start;
  gap: 30px;
}

.pilot-copy h2 {
  margin: 0 0 12px;
  color: var(--ink);
  font-size: 2rem;
  line-height: 1.1;
  letter-spacing: 0;
}

.pilot-copy p {
  margin: 0;
  color: var(--ink-soft);
  font-size: 0.95rem;
  line-height: 1.55;
}

.pilot-note {
  margin-top: 18px;
  border-top: 1px solid var(--paper-border);
  padding-top: 16px;
  color: var(--subtle);
  font-size: 0.9rem;
  line-height: 1.7;
}

.pilot-note strong {
  color: #334155;
  font-weight: 850;
}

.pilot-note ul {
  margin: 10px 0 0;
  padding-left: 18px;
}

.pilot-note li {
  margin: 3px 0;
}

.pilot-form {
  border: 1px solid var(--paper-border);
  border-radius: 8px;
  background: #ffffff;
  padding: 20px;
  box-shadow: 0 14px 36px rgba(15, 23, 42, 0.08);
}

.pilot-form h2 {
  margin: 0 0 4px;
  color: #111827;
  font-size: 1.25rem;
}

.pilot-form > p {
  margin: 0 0 16px;
  color: var(--subtle);
  font-size: 0.9rem;
}

.form-status {
  min-height: 0;
  margin-bottom: 0;
  color: #047857;
  font-size: 0.9rem;
}

.form-status:not(:empty) {
  margin-bottom: 12px;
  border: 1px solid #a7f3d0;
  border-radius: 6px;
  background: #ecfdf5;
  padding: 10px 12px;
}

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

.pilot-form label {
  display: grid;
  gap: 6px;
  color: #334155;
  font-size: 0.82rem;
  font-weight: 800;
}

.pilot-form em {
  color: #94a3b8;
  font-style: normal;
  font-weight: 700;
}

.field-wide {
  grid-column: 1 / -1;
}

.pilot-form input,
.pilot-form textarea {
  width: 100%;
  border: 1px solid #cbd5e1;
  border-radius: 6px;
  background: var(--paper);
  color: #0f172a;
  font-size: 0.9rem;
}

.pilot-form input {
  min-height: 42px;
  padding: 0 12px;
}

.pilot-form textarea {
  resize: vertical;
  min-height: 92px;
  padding: 11px 12px;
}

.pilot-form input[aria-invalid="true"],
.pilot-form textarea[aria-invalid="true"] {
  border-color: #e11d48;
  box-shadow: 0 0 0 3px rgba(225, 29, 72, 0.12);
}

.form-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-top: 16px;
}

.form-footer small {
  max-width: 320px;
  color: var(--subtle);
  font-size: 0.76rem;
  line-height: 1.4;
}

.site-footer {
  border-top: 1px solid #1d2a41;
  background: var(--bg);
  padding: 20px 0;
}

.footer-grid {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  color: #91a4bd;
  font-size: 0.84rem;
}

.footer-grid p {
  margin: 0;
}

@media (max-width: 980px) {
  :root {
    --anchor-offset: 96px;
  }

  .shell {
    width: min(100% - 28px, 720px);
  }

  .nav {
    align-items: flex-start;
    min-height: auto;
    padding: 16px 0;
  }

  .nav-links {
    display: none;
  }

  .hero-section {
    padding-top: 34px;
  }

  .hero-grid,
  .pilot-grid,
  .trust-grid {
    grid-template-columns: 1fr;
  }

  .hero-copy h1 {
    font-size: 2.25rem;
  }

  .hero-proof {
    grid-template-columns: 1fr;
  }

  .ide-body {
    grid-template-columns: 38px 1fr;
  }

  .task-pane {
    display: none;
  }

  .live-toast {
    display: none;
  }

  .editor-region,
  .terminal-region {
    grid-template-columns: 1fr;
  }

  .service-panel {
    border-left: 0;
    border-top: 1px solid #2b313d;
  }

  .terminal-actions {
    border-left: 0;
    border-top: 1px solid #2b313d;
  }

  .section-heading {
    align-items: flex-start;
    flex-direction: column;
  }

  .range-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .steps-grid {
    grid-template-columns: 1fr;
  }

  .form-grid {
    grid-template-columns: 1fr;
  }

  .form-footer {
    align-items: stretch;
    flex-direction: column;
  }

  .form-footer .button {
    width: 100%;
  }

  .footer-grid {
    flex-direction: column;
  }
}

@media (max-width: 620px) {
  .site-header .button {
    display: none;
  }

  .hero-section {
    padding: 24px 0 20px;
  }

  .hero-grid {
    gap: 18px;
  }

  .hero-copy h1 {
    margin-bottom: 10px;
    font-size: 1.82rem;
  }

  .hero-lede {
    margin-bottom: 14px;
    font-size: 0.92rem;
  }

  .hero-actions .button-secondary {
    display: none;
  }

  .hero-proof {
    display: none;
  }

  .range-grid {
    grid-template-columns: 1fr;
  }

  .ide-window {
    max-height: 330px;
  }

  .ide-titlebar {
    grid-template-columns: 72px 1fr 72px;
    min-height: 30px;
  }

  .window-title {
    font-size: 0.66rem;
  }

  .activity-rail {
    display: none;
  }

  .ide-body {
    grid-template-columns: 1fr;
    min-height: 0;
  }

  .workspace {
    grid-template-rows: 30px 260px;
  }

  .editor-tabs {
    min-height: 30px;
  }

  .editor-tab {
    min-height: 30px;
  }

  .editor-region {
    display: block;
    min-height: 0;
  }

  .code-editor {
    max-height: 260px;
    padding: 8px 0;
    font-size: 0.66rem;
  }

  .service-panel {
    display: none;
  }

  .terminal-region {
    display: none;
  }
}
