:root {
  --bg: #070c16;
  --bg-alt: #0a1220;
  --surface: #0e1627;
  --surface-alt: #142038;
  --surface-hover: #192846;
  --border: #1f304d;
  --border-strong: #2d466e;
  --text: #eef4fc;
  --text-soft: #cbd5e1;
  --muted: #8fa3c2;
  --accent: #2bb3c0;
  --accent-hover: #3cd1df;
  --accent-soft: rgba(43, 179, 192, 0.12);
  --emerald: #2ecc71;
  --emerald-soft: rgba(46, 204, 113, 0.14);
  --amber: #f59e0b;
  --amber-soft: rgba(245, 158, 11, 0.14);
  --danger: #f87171;
  --warn-bg: #2f220b;
  --warn-border: #b37a1e;
  --radius: 12px;
  --radius-sm: 8px;
  --shadow-lg: 0 22px 55px rgba(2, 6, 16, 0.65);
  --mono: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
  --sans: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
}

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

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: var(--sans);
  background: var(--bg);
  color: var(--text);
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}

code,
pre {
  font-family: var(--mono);
  font-size: 0.84rem;
}

a {
  color: var(--accent);
}

.hidden {
  display: none !important;
}

.text-accent {
  color: var(--accent);
}

.container {
  max-width: 1140px;
  margin: 0 auto;
  padding: 0 22px;
}

/* ---------- Topbar ---------- */
.topbar {
  position: sticky;
  top: 0;
  z-index: 30;
  background: rgba(7, 12, 22, 0.88);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
}

.topbar-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 66px;
  gap: 16px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
  color: var(--text);
}

.brand-mark {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border-radius: 9px;
  background: linear-gradient(135deg, var(--accent), #1b8c9b);
  color: #04131c;
  font-weight: 800;
  font-size: 0.92rem;
  letter-spacing: -0.02em;
  flex-shrink: 0;
}

.brand-text {
  display: flex;
  flex-direction: column;
  line-height: 1.15;
}

.brand-sub {
  font-size: 0.75rem;
  color: var(--muted);
}

.topbar-nav {
  display: flex;
  align-items: center;
  gap: 18px;
}

.topbar-nav a {
  color: var(--muted);
  text-decoration: none;
  font-size: 0.88rem;
  font-weight: 500;
  transition: color 0.15s ease;
}

.topbar-nav a:hover {
  color: var(--text);
}

.topbar-nav .nav-meta {
  font-family: var(--mono);
  font-size: 0.78rem;
  padding: 3px 8px;
  border-radius: 6px;
  border: 1px solid var(--border);
}

.topbar-cta {
  display: flex;
  align-items: center;
  gap: 10px;
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  padding: 10px 18px;
  border-radius: var(--radius-sm);
  border: 1px solid transparent;
  font-weight: 600;
  font-size: 0.9rem;
  font-family: inherit;
  text-decoration: none;
  cursor: pointer;
  transition: background 0.15s ease, border-color 0.15s ease, transform 0.12s ease;
}

.btn:disabled {
  opacity: 0.55;
  cursor: not-allowed;
}

.btn-lg {
  padding: 12px 22px;
  font-size: 0.95rem;
}

.btn-compact {
  padding: 8px 14px;
  font-size: 0.85rem;
}

.btn-small {
  background: var(--surface-alt);
  border-color: var(--border);
  color: var(--text);
  padding: 5px 11px;
  font-size: 0.78rem;
}

.btn-small:hover:not(:disabled) {
  border-color: var(--accent);
}

.btn-primary {
  background: var(--accent);
  color: #04131c;
}

.btn-primary:hover:not(:disabled) {
  background: var(--accent-hover);
}

.btn-secondary {
  background: var(--surface-alt);
  border-color: var(--border-strong);
  color: var(--text);
}

.btn-secondary:hover:not(:disabled) {
  background: var(--surface-hover);
  border-color: var(--accent);
}

.btn-ghost {
  background: transparent;
  border-color: var(--border);
  color: var(--text-soft);
}

.btn-ghost:hover:not(:disabled) {
  border-color: var(--border-strong);
  color: var(--text);
}

.btn-danger {
  background: transparent;
  border-color: rgba(248, 113, 113, 0.5);
  color: #fca5a5;
  padding: 6px 10px;
  font-size: 0.8rem;
}

.btn-danger:hover:not(:disabled) {
  background: rgba(248, 113, 113, 0.12);
}

.btn-icon {
  padding: 6px 10px;
  font-size: 0.9rem;
  line-height: 1;
}

.btn-link {
  background: none;
  border: none;
  color: var(--accent);
  cursor: pointer;
  padding: 4px;
  font-size: 0.88rem;
  font-family: inherit;
}

.btn-link:hover {
  text-decoration: underline;
}

/* ---------- Banners & Cards ---------- */
.banner {
  margin-top: 18px;
  padding: 12px 16px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border-strong);
  background: var(--surface-alt);
  font-size: 0.92rem;
}

.banner.success {
  border-color: var(--emerald);
  background: rgba(46, 204, 113, 0.1);
}

.banner.error {
  border-color: var(--danger);
  background: rgba(248, 113, 113, 0.1);
}

.card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 24px;
}

/* ---------- Hero Section ---------- */
.hero-section {
  position: relative;
  padding: 58px 0 46px;
  background:
    radial-gradient(640px 380px at 82% 8%, rgba(43, 179, 192, 0.14), transparent 72%),
    radial-gradient(500px 340px at 12% 88%, rgba(14, 116, 144, 0.11), transparent 72%);
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.06fr 0.94fr;
  gap: 38px;
  align-items: center;
}

.status-pill,
.pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--mono);
  font-size: 0.76rem;
  font-weight: 600;
  color: var(--accent);
  border: 1px solid rgba(43, 179, 192, 0.38);
  background: var(--accent-soft);
  padding: 5px 12px;
  border-radius: 999px;
  margin-bottom: 16px;
}

.pulse-dot {
  width: 8px;
  height: 8px;
  border-radius: 999px;
  background: var(--emerald);
  box-shadow: 0 0 0 4px rgba(46, 204, 113, 0.22);
}

.hero-title {
  margin: 0 0 16px;
  font-size: clamp(2rem, 3.6vw, 2.85rem);
  line-height: 1.1;
  letter-spacing: -0.03em;
}

.hero-lead {
  margin: 0 0 24px;
  color: var(--text-soft);
  font-size: 1.04rem;
  max-width: 560px;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-bottom: 22px;
}

.center-actions {
  justify-content: center;
  margin-bottom: 0;
}

.hero-proof-row {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 10px 20px;
  font-size: 0.84rem;
  color: var(--muted);
}

.hero-proof-row strong {
  color: var(--text);
}

/* ---------- Hero Interactive Terminal ---------- */
.terminal-shell {
  background: #0a1222;
  border: 1px solid rgba(43, 179, 192, 0.42);
  border-radius: 14px;
  box-shadow: var(--shadow-lg);
  overflow: hidden;
}

.terminal-chrome {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 11px 14px;
  background: #101b31;
  border-bottom: 1px solid var(--border);
}

.terminal-dots {
  display: flex;
  gap: 6px;
}

.dot {
  width: 10px;
  height: 10px;
  border-radius: 999px;
}

.dot-red { background: #f87171; }
.dot-amber { background: #f59e0b; }
.dot-green { background: #2ecc71; }

.terminal-path {
  font-family: var(--mono);
  font-size: 0.76rem;
  color: var(--muted);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.latency-pill {
  font-family: var(--mono);
  font-size: 0.72rem;
  font-weight: 600;
  color: var(--emerald);
  background: var(--emerald-soft);
  border: 1px solid rgba(46, 204, 113, 0.35);
  padding: 3px 9px;
  border-radius: 999px;
  white-space: nowrap;
}

.terminal-tabs {
  display: flex;
  gap: 4px;
  padding: 8px 12px 0;
  background: #0d1628;
  border-bottom: 1px solid var(--border);
  overflow-x: auto;
}

.term-tab {
  background: transparent;
  border: none;
  border-bottom: 2px solid transparent;
  color: var(--muted);
  font-family: var(--mono);
  font-size: 0.76rem;
  font-weight: 600;
  padding: 8px 11px;
  cursor: pointer;
  white-space: nowrap;
}

.term-tab:hover {
  color: var(--text);
}

.term-tab.is-active {
  color: var(--accent);
  border-bottom-color: var(--accent);
}

.terminal-body {
  padding: 16px;
  min-height: 245px;
  max-height: 315px;
  overflow: auto;
}

.code-block {
  margin: 0;
  color: #cfe0f7;
  line-height: 1.5;
  overflow-x: auto;
  white-space: pre;
}

.code-compact {
  background: #070c16;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 12px 14px;
  white-space: pre-wrap;
  word-break: break-word;
}

.terminal-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 10px 14px;
  background: #0d1628;
  border-top: 1px solid var(--border);
}

.verify-link {
  font-family: var(--mono);
  font-size: 0.76rem;
  color: var(--accent);
  text-decoration: none;
}

.verify-link:hover {
  text-decoration: underline;
}

/* ---------- Live Pulse & Ecosystem ---------- */
.pulse-section {
  padding: 14px 0 42px;
}

.pulse-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 14px;
  margin-bottom: 24px;
}

.pulse-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 16px 18px;
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.pulse-label {
  font-size: 0.78rem;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.pulse-value {
  font-family: var(--mono);
  font-size: 1.65rem;
  letter-spacing: -0.02em;
  color: var(--text);
}

.pulse-value-sm {
  font-size: 1.05rem;
  line-height: 1.4;
  padding-top: 4px;
}

.pulse-sub {
  font-size: 0.78rem;
  color: var(--muted);
}

.ecosystem-strip {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px 18px;
  padding: 14px 18px;
  border-radius: var(--radius);
  border: 1px solid var(--border);
  background: rgba(14, 22, 39, 0.55);
}

.ecosystem-label {
  font-size: 0.8rem;
  color: var(--muted);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.ecosystem-badges {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  padding: 0;
  margin: 0;
}

.ecosystem-badges li {
  font-family: var(--mono);
  font-size: 0.78rem;
  color: var(--text-soft);
  background: var(--surface-alt);
  border: 1px solid var(--border);
  padding: 4px 10px;
  border-radius: 6px;
}

/* ---------- Generic Section Bands ---------- */
.section-band {
  padding: 64px 0;
  border-top: 1px solid var(--border);
}

.section-band-alt {
  background: var(--bg-alt);
}

.section-intro {
  max-width: 720px;
  margin-bottom: 32px;
}

.eyebrow {
  display: inline-block;
  font-family: var(--mono);
  font-size: 0.76rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--accent);
  margin-bottom: 8px;
}

h1 {
  margin: 0 0 10px;
  font-size: 1.9rem;
  line-height: 1.2;
}

h2 {
  margin: 0 0 10px;
  font-size: clamp(1.45rem, 2.5vw, 2rem);
  line-height: 1.18;
  letter-spacing: -0.025em;
}

h3 {
  margin: 0 0 8px;
  font-size: 1.08rem;
}

.section-lead,
.muted {
  color: var(--muted);
  margin-top: 0;
}

.muted-xs {
  font-size: 0.8rem;
  color: var(--muted);
}

.muted-inline {
  font-size: 0.86rem;
  color: var(--muted);
}

/* ---------- 2x2 Bento Workflows Grid ---------- */
.bento-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 18px;
}

.bento-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 24px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 12px;
  transition: border-color 0.15s ease;
}

.bento-card:hover {
  border-color: rgba(43, 179, 192, 0.55);
}

.bento-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

.bento-tag {
  font-family: var(--mono);
  font-size: 0.74rem;
  font-weight: 600;
  color: var(--accent);
  background: var(--accent-soft);
  padding: 3px 9px;
  border-radius: 999px;
}

.bento-metric {
  font-family: var(--mono);
  font-size: 0.76rem;
  color: var(--emerald);
  font-weight: 600;
}

.bento-card p {
  margin: 0;
  color: var(--text-soft);
  font-size: 0.93rem;
}

.bento-code {
  font-family: var(--mono);
  font-size: 0.78rem;
  color: #a5e8f0;
  background: #070c16;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 9px 12px;
  overflow-x: auto;
  white-space: nowrap;
}

/* ---------- SVG Pipeline + Explorer ---------- */
.diagram-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 18px;
  margin-bottom: 22px;
  overflow-x: auto;
}

.pipeline-svg {
  width: 100%;
  min-width: 720px;
  height: auto;
  display: block;
}

.explorer-card {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: 24px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 24px;
}

.explorer-controls {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.explorer-group {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.explorer-label {
  font-size: 0.78rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--muted);
}

.pill-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.facet-pill {
  background: var(--surface-alt);
  border: 1px solid var(--border);
  color: var(--text-soft);
  font-family: var(--mono);
  font-size: 0.78rem;
  padding: 6px 11px;
  border-radius: 999px;
  cursor: pointer;
  transition: all 0.14s ease;
}

.facet-pill:hover {
  border-color: var(--accent);
  color: var(--text);
}

.facet-pill.is-selected {
  background: var(--accent-soft);
  border-color: var(--accent);
  color: var(--accent-hover);
  font-weight: 600;
}

.explorer-output {
  display: flex;
  flex-direction: column;
  gap: 14px;
  background: #0a1120;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 18px;
}

.explorer-out-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

.explorer-mcp-box {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.mcp-prompt-text {
  margin: 0;
  font-size: 0.9rem;
  color: var(--text-soft);
  background: var(--surface);
  border-left: 3px solid var(--accent);
  padding: 10px 12px;
  border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
}

.explorer-cta-row {
  margin-top: auto;
}

/* ---------- Comparison Table ---------- */
.compare-wrap {
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--surface);
}

.compare-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.9rem;
}

.compare-table th,
.compare-table td {
  text-align: left;
  padding: 14px 16px;
  border-bottom: 1px solid var(--border);
}

.compare-table th {
  color: var(--muted);
  font-size: 0.82rem;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  background: #0b1324;
}

.compare-table tbody tr:last-child td {
  border-bottom: none;
}

.compare-table .col-highlight {
  background: rgba(43, 179, 192, 0.07);
  border-left: 1px solid rgba(43, 179, 192, 0.35);
}

.compare-table th.col-highlight {
  color: var(--accent);
}

.cell-bad {
  color: #fca5a5;
}

.cell-good {
  color: #a7f3d0;
}

/* ---------- Security Grid ---------- */
.security-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}

.sec-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 20px;
}

.sec-badge {
  display: inline-block;
  font-family: var(--mono);
  font-size: 0.72rem;
  font-weight: 700;
  color: var(--emerald);
  background: var(--emerald-soft);
  border: 1px solid rgba(46, 204, 113, 0.3);
  padding: 2px 8px;
  border-radius: 999px;
  margin-bottom: 10px;
}

.sec-card p {
  margin: 0;
  font-size: 0.89rem;
  color: var(--text-soft);
}

/* ---------- Credit Runway Calculator & Pricing ---------- */
.calc-card {
  display: grid;
  grid-template-columns: 1.3fr 0.7fr;
  gap: 24px;
  align-items: center;
  background: var(--surface);
  border: 1px solid var(--border-strong);
  border-radius: var(--radius);
  padding: 22px 24px;
  margin-bottom: 24px;
}

.calc-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 10px;
}

.calc-label {
  font-size: 0.94rem;
}

.calc-check {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 0.85rem;
  color: var(--text-soft);
  cursor: pointer;
}

.calc-slider {
  width: 100%;
  accent-color: var(--accent);
  cursor: pointer;
}

.calc-ticks {
  display: flex;
  justify-content: space-between;
  font-family: var(--mono);
  font-size: 0.72rem;
  color: var(--muted);
  margin-top: 6px;
}

.calc-summary {
  display: flex;
  flex-direction: column;
  gap: 12px;
  padding-left: 20px;
  border-left: 1px solid var(--border);
}

.calc-stat {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.calc-stat strong {
  font-family: var(--mono);
  font-size: 1.05rem;
}

.pricing-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
  margin-bottom: 20px;
}

.price-card {
  position: relative;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 22px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 20px;
}

.price-card-featured {
  border-color: var(--accent);
  background: linear-gradient(180deg, rgba(43, 179, 192, 0.12), var(--surface) 45%);
  box-shadow: 0 12px 32px rgba(43, 179, 192, 0.14);
}

.popular-pill {
  position: absolute;
  top: -11px;
  right: 16px;
  font-family: var(--mono);
  font-size: 0.7rem;
  font-weight: 700;
  text-transform: uppercase;
  background: var(--amber);
  color: #1c1202;
  padding: 3px 10px;
  border-radius: 999px;
}

.price-tier {
  display: block;
  font-size: 0.86rem;
  font-weight: 700;
  color: var(--text-soft);
  margin-bottom: 6px;
}

.price-amount {
  font-size: 2rem;
  font-weight: 800;
  letter-spacing: -0.03em;
  line-height: 1.1;
}

.price-once {
  font-size: 0.8rem;
  font-weight: 500;
  color: var(--muted);
}

.price-credits {
  font-family: var(--mono);
  font-size: 0.8rem;
  color: var(--accent);
  font-weight: 600;
  margin: 6px 0 10px;
}

.price-runway {
  font-size: 0.86rem;
  color: var(--muted);
  margin: 0 0 14px;
}

.price-features {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 8px;
  font-size: 0.86rem;
  color: var(--text-soft);
}

.price-features li::before {
  content: "✓ ";
  color: var(--emerald);
  font-weight: 700;
}

.enterprise-strip {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 14px;
  padding: 18px 22px;
  background: var(--surface);
  border: 1px dashed var(--border-strong);
  border-radius: var(--radius);
}

/* ---------- FAQ Accordion ---------- */
.faq-container {
  max-width: 840px;
}

.faq-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.faq-item {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 14px 18px;
}

.faq-item[open] {
  border-color: rgba(43, 179, 192, 0.45);
}

.faq-item summary {
  font-weight: 600;
  cursor: pointer;
  list-style: none;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.faq-item summary::after {
  content: "+";
  font-family: var(--mono);
  color: var(--accent);
  font-size: 1.15rem;
}

.faq-item[open] summary::after {
  content: "−";
}

.faq-item p {
  margin: 12px 0 2px;
  color: var(--text-soft);
  font-size: 0.92rem;
}

/* ---------- Final CTA & Footer ---------- */
.final-cta-section {
  padding: 64px 0;
  border-top: 1px solid var(--border);
}

.final-cta-card {
  text-align: center;
  background: radial-gradient(500px 260px at 50% 0%, rgba(43, 179, 192, 0.16), var(--surface));
  border: 1px solid rgba(43, 179, 192, 0.4);
  border-radius: 16px;
  padding: 44px 24px;
}

.final-cta-card p {
  color: var(--muted);
  margin: 0 0 24px;
}

.site-footer {
  border-top: 1px solid var(--border);
  padding: 40px 0 54px;
  background: #050912;
}

.footer-inner {
  display: grid;
  grid-template-columns: 1.1fr 1.9fr;
  gap: 32px;
}

.footer-links {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}

.footer-col {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.footer-heading {
  font-size: 0.78rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--text);
  margin-bottom: 4px;
}

.footer-col a {
  color: var(--muted);
  text-decoration: none;
  font-size: 0.86rem;
}

.footer-col a:hover {
  color: var(--accent);
}

/* ---------- Forms & Modals ---------- */
.stack {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.field {
  display: flex;
  flex-direction: column;
  gap: 6px;
  font-size: 0.84rem;
  color: var(--muted);
}

input[type="email"],
input[type="password"],
input[type="text"],
select {
  width: 100%;
  padding: 10px 12px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border-strong);
  background: var(--bg);
  color: var(--text);
  font-size: 0.92rem;
  font-family: inherit;
}

input:focus,
select:focus {
  outline: 2px solid var(--accent);
  border-color: transparent;
}

.modal-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(4, 8, 18, 0.82);
  backdrop-filter: blur(4px);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  z-index: 60;
}

.modal-card {
  max-width: 520px;
  width: 100%;
  box-shadow: var(--shadow-lg);
}

.auth-modal-card {
  max-width: 460px;
}

.modal-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
}

.auth-pack-hint {
  margin: 4px 0 10px;
  padding: 9px 12px;
  border-radius: var(--radius-sm);
  background: var(--accent-soft);
  border: 1px solid rgba(43, 179, 192, 0.4);
  color: var(--text);
  font-size: 0.86rem;
}

.auth-divider {
  display: flex;
  align-items: center;
  gap: 12px;
  margin: 16px 0;
  color: var(--muted);
  font-size: 0.78rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

.auth-divider::before,
.auth-divider::after {
  content: "";
  flex: 1;
  height: 1px;
  background: var(--border);
}

.auth-actions {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.form-msg {
  margin-top: 12px;
  padding: 10px 12px;
  border-radius: var(--radius-sm);
  background: var(--surface-alt);
  border: 1px solid var(--border-strong);
  font-size: 0.88rem;
}

.turnstile-slot {
  min-height: 65px;
}

.warn-text {
  background: var(--warn-bg);
  border: 1px solid var(--warn-border);
  padding: 10px 12px;
  border-radius: var(--radius-sm);
  font-size: 0.88rem;
}

.key-reveal {
  background: var(--bg);
  border: 1px solid var(--accent);
  border-radius: var(--radius-sm);
  padding: 14px;
  word-break: break-all;
  margin: 14px 0;
}

.modal-actions {
  display: flex;
  gap: 10px;
  justify-content: flex-end;
}

/* ---------- Authenticated Developer Console ---------- */
.dashboard {
  padding-top: 28px;
  padding-bottom: 64px;
}

.dash-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 16px;
  margin-bottom: 22px;
}

.dash-header-actions {
  display: flex;
  align-items: center;
  gap: 10px;
}

.badge {
  text-transform: uppercase;
  font-family: var(--mono);
  font-size: 0.74rem;
  font-weight: 700;
  letter-spacing: 0.05em;
  padding: 5px 10px;
  border-radius: 999px;
  background: var(--accent-soft);
  color: var(--accent);
  border: 1px solid rgba(43, 179, 192, 0.45);
}

.activation-strip {
  margin-bottom: 20px;
  border-color: rgba(43, 179, 192, 0.4);
  background: linear-gradient(90deg, rgba(43, 179, 192, 0.09), var(--surface));
}

.activation-head {
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 14px;
}

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

.act-step {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 12px;
  border-radius: var(--radius-sm);
  background: rgba(7, 12, 22, 0.55);
  border: 1px solid var(--border);
  font-size: 0.86rem;
}

.act-step.is-done {
  border-color: rgba(46, 204, 113, 0.5);
  color: var(--muted);
  text-decoration: line-through;
}

.act-num {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 24px;
  height: 24px;
  border-radius: 999px;
  background: var(--accent-soft);
  color: var(--accent);
  font-family: var(--mono);
  font-size: 0.78rem;
  font-weight: 700;
  flex-shrink: 0;
}

.act-step.is-done .act-num {
  background: var(--emerald-soft);
  color: var(--emerald);
}

.stats-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
  margin-bottom: 20px;
}

.stat-card {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.stat-label {
  font-size: 0.82rem;
  color: var(--muted);
}

.stat-value {
  font-family: var(--mono);
  font-size: 1.85rem;
  letter-spacing: -0.02em;
}

.stat-hint {
  font-size: 0.78rem;
  color: var(--muted);
}

.section-card {
  margin-bottom: 20px;
}

.inline-form {
  display: flex;
  gap: 10px;
  margin-bottom: 18px;
}

.inline-form input {
  flex: 1;
}

.table-wrap {
  overflow-x: auto;
}

.data-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.88rem;
}

.data-table th,
.data-table td {
  text-align: left;
  padding: 10px 12px;
  border-bottom: 1px solid var(--border);
}

.data-table th {
  color: var(--muted);
  font-weight: 600;
}

.status-active { color: var(--emerald); font-weight: 600; }
.status-revoked { color: var(--muted); }
.delta-pos { color: var(--emerald); font-weight: 600; }
.delta-neg { color: #f39c6b; font-weight: 600; }

/* ---------- Console Live API Playground ---------- */
.playground-form {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

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

.pg-span-2 {
  grid-column: span 2;
}

.pg-actions {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
}

.pg-result-wrap {
  margin-top: 18px;
  padding-top: 18px;
  border-top: 1px solid var(--border);
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.pg-meta-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 10px;
}

.pg-cards {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 12px;
}

.pg-opp-card {
  background: #0a1120;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 14px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.pg-opp-top {
  display: flex;
  justify-content: space-between;
  gap: 8px;
  font-family: var(--mono);
  font-size: 0.74rem;
  color: var(--accent);
}

.pg-opp-title {
  font-weight: 600;
  font-size: 0.92rem;
  color: var(--text);
}

.pg-opp-meta {
  font-size: 0.8rem;
  color: var(--muted);
}

.pg-raw-details summary {
  cursor: pointer;
  font-family: var(--mono);
  font-size: 0.8rem;
  color: var(--accent);
  margin-bottom: 8px;
}

/* ---------- Console Packs & Snippets ---------- */
.packs-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}

.pack-card {
  background: var(--surface-alt);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 18px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 14px;
}

.pack-price {
  font-size: 1.7rem;
  font-weight: 700;
}

.pack-credits {
  color: var(--accent);
  font-weight: 600;
}

.snippets-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}

.snippet-box {
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 12px;
  overflow: hidden;
}

.snippet-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 8px;
  margin-bottom: 10px;
}

.mini-tabs {
  display: flex;
  gap: 4px;
  flex-wrap: wrap;
}

.mini-tab {
  background: var(--surface);
  border: 1px solid var(--border);
  color: var(--muted);
  font-family: var(--mono);
  font-size: 0.74rem;
  padding: 4px 9px;
  border-radius: 6px;
  cursor: pointer;
}

.mini-tab.is-active {
  border-color: var(--accent);
  color: var(--accent);
  background: var(--accent-soft);
}

.snippet-box pre {
  margin: 0;
  overflow-x: auto;
  color: #c8d8f0;
}

/* ---------- Legal Pages (/terms.html & /privacy.html) ---------- */
.legal-shell {
  max-width: 820px;
  padding-top: 42px;
  padding-bottom: 72px;
}

.legal-card h1 {
  margin-bottom: 6px;
}

.legal-card h2 {
  font-size: 1.18rem;
  margin-top: 26px;
  margin-bottom: 8px;
  color: var(--accent);
}

.legal-card p,
.legal-card li {
  color: var(--text-soft);
  font-size: 0.94rem;
}

.legal-card ul {
  padding-left: 20px;
}

/* ---------- Responsive Breakpoints ---------- */
@media (max-width: 980px) {
  .topbar-nav {
    display: none;
  }
  .hero-grid,
  .explorer-card,
  .calc-card,
  .footer-inner {
    grid-template-columns: 1fr;
  }
  .calc-summary {
    border-left: none;
    border-top: 1px solid var(--border);
    padding-left: 0;
    padding-top: 16px;
  }
  .pulse-grid,
  .pricing-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .security-grid,
  .activation-steps {
    grid-template-columns: repeat(2, 1fr);
  }
  .pg-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 680px) {
  .hero-section {
    padding: 36px 0 32px;
  }
  .pulse-grid,
  .bento-grid,
  .security-grid,
  .pricing-grid,
  .stats-grid,
  .packs-grid,
  .snippets-grid,
  .pg-grid,
  .pg-cards,
  .activation-steps,
  .footer-links {
    grid-template-columns: 1fr;
  }
  .pg-span-2 {
    grid-column: span 1;
  }
  .inline-form {
    flex-direction: column;
  }
  .brand-sub {
    display: none;
  }
}