:root {
  --bg: #0B0B0C;
  --bg-alt: #0E0E10;
  --surface: #141416;
  --panel-bg: #111113;
  --card-bg: #0B0B0C;

  --border: #232326;
  --border-soft: #1F1F22;
  --border-hair: #1C1C1F;
  --border-ghost: #2A2A2E;
  --border-ghost-hover: #4A4A50;

  --fg: #F5F4F2;
  --muted: #A3A19C;
  --muted-2: #7C7A75;
  --muted-3: #6E6C68;
  --dim: #5E5C58;
  --code: #C9C7C2;
  --success: #7BC47F;

  --accent: #F98029;
  --accent-hover: #FFA25C;
  --accent-surface: #1A1109;
  --accent-surface-alt: #130E0A;
  --accent-border: #3A2415;
  --accent-border-soft: #2E1D10;

  --font-sans: 'Space Grotesk', system-ui, sans-serif;
  --font-mono: 'IBM Plex Mono', monospace;
}

* {
  box-sizing: border-box;
}

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

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

p {
  margin: 0;
}

/* Interactive states */

.btn-orange { transition: background .15s; }
.btn-orange:hover { background: var(--accent-hover); }

.btn-outline { transition: border-color .15s; }
.btn-outline:hover { border-color: var(--border-ghost-hover); }

/* Hover-out waits 100ms before reverting: the dark/orange swap is high
   contrast, so a pointer that leaves for a frame at the edge would otherwise
   flash the button. Hover-in stays instant. */
.btn-accent-outline { transition: background .15s .1s, color .15s .1s; }
.btn-accent-outline:hover { background: var(--accent); color: var(--bg); transition-delay: 0s; }

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

/* Reusable pieces */

.eyebrow {
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--muted-2);
}
.eyebrow-accent { color: var(--accent); }

.section-head {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.section-title {
  margin: 0;
  font-size: 38px;
  font-weight: 600;
  letter-spacing: -.025em;
}

.section-subtext {
  font-size: 16px;
  line-height: 1.55;
  color: var(--muted);
  max-width: 640px;
  text-wrap: pretty;
}

.card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 26px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.card-title {
  font-size: 17px;
  font-weight: 500;
}

.card-text {
  font-size: 15px;
  line-height: 1.55;
  color: var(--muted);
}

.btn {
  font-size: 16px;
  font-weight: 500;
  padding: 13px 24px;
  border-radius: 10px;
}
.btn-orange { background: var(--accent); color: var(--bg); }
.btn-outline { border: 1px solid var(--border-ghost); color: var(--fg); }
.btn-accent-outline { border: 1px solid var(--accent); color: var(--accent); background: var(--accent-surface); }

.badge {
  display: flex;
  align-items: center;
  gap: 9px;
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--accent);
  border: 1px solid var(--accent-border);
  background: var(--accent-surface);
  border-radius: 999px;
  padding: 6px 13px;
}
.badge-dot {
  width: 6px;
  height: 6px;
  border-radius: 999px;
  background: var(--accent);
  display: block;
}

.tag {
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: .1em;
  text-transform: uppercase;
  border-radius: 999px;
  padding: 3px 8px;
}
.tag-cloud { color: var(--accent); border: 1px solid var(--accent-border); }
.tag-planned { color: var(--muted-2); border: 1px solid var(--border-ghost); }

/* Header */

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  background: rgba(11, 11, 12, .86);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--border-hair);
}
.site-header-inner {
  max-width: 1180px;
  margin: 0 auto;
  padding: 16px 32px;
  display: flex;
  align-items: center;
  gap: 32px;
}
.brand { display: flex; align-items: center; gap: 11px; }
.brand-name { font-size: 19px; font-weight: 600; letter-spacing: -.02em; }
.site-nav { display: flex; gap: 26px; font-size: 15px; color: var(--muted); margin-left: 8px; }
.spacer { flex: 1; }
.header-actions { display: flex; align-items: center; gap: 14px; }
.docs-link { font-size: 15px; color: var(--muted); }
/* Header-sized .btn: .btn's padding is sized for the hero. */
.login-btn {
  font-size: 15px;
  padding: 8px 16px;
  border-radius: 9px;
}

/* Hero */

.hero {
  max-width: 1180px;
  margin: 0 auto;
  padding: 96px 32px 64px;
  display: grid;
  grid-template-columns: 1.05fr .95fr;
  gap: 56px;
  align-items: center;
}
.hero-copy { display: flex; flex-direction: column; align-items: flex-start; gap: 26px; }
.hero-title {
  margin: 0;
  font-size: 60px;
  line-height: 1.03;
  font-weight: 600;
  letter-spacing: -.035em;
  text-wrap: balance;
}
.hero-subtitle {
  font-size: 19px;
  line-height: 1.55;
  color: var(--muted);
  max-width: 520px;
  text-wrap: pretty;
}
.hero-ctas { display: flex; gap: 12px; flex-wrap: wrap; }
.hero-protocols { font-family: var(--font-mono); font-size: 13px; color: var(--muted-2); }

.panel {
  background: var(--panel-bg);
  border: 1px solid var(--border);
  border-radius: 14px;
  overflow: hidden;
  box-shadow: 0 30px 70px -30px rgba(0, 0, 0, .9);
}
.panel-titlebar {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 12px 14px;
  border-bottom: 1px solid var(--border-soft);
}
.panel-dot { width: 10px; height: 10px; border-radius: 999px; background: #2E2E33; display: block; }
.panel-titlebar-label { font-family: var(--font-mono); font-size: 12px; color: var(--muted-3); margin-left: 8px; }
.panel-body {
  padding: 22px;
  font-family: var(--font-mono);
  font-size: 13.5px;
  line-height: 2;
  color: var(--code);
}
.panel-prompt { color: var(--accent); }
.panel-dim { color: var(--muted-3); }
.panel-value { color: var(--code); }
.panel-success { color: var(--success); }
.panel-stats {
  border-top: 1px solid var(--border-soft);
  padding: 16px 22px;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
}
.panel-stat { display: flex; flex-direction: column; gap: 3px; }
.panel-stat-label {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--muted-3);
}
.panel-stat-value { font-size: 15px; }

/* Ceiling / floor split */

.split-band {
  background: var(--bg-alt);
  border-top: 1px solid var(--border-hair);
  border-bottom: 1px solid var(--border-hair);
}
.split {
  max-width: 1180px;
  margin: 0 auto;
  padding: 64px 32px;
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 48px;
}
.split-col { display: flex; flex-direction: column; gap: 14px; }
.split-heading { font-size: 22px; font-weight: 500; letter-spacing: -.01em; }
.split-text { font-size: 16px; line-height: 1.6; color: var(--muted); text-wrap: pretty; }

/* How it works */

.section {
  max-width: 1180px;
  margin: 0 auto;
  padding: 88px 32px;
  display: flex;
  flex-direction: column;
  gap: 40px;
}
.steps-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
.step-index { font-family: var(--font-mono); font-size: 13px; color: var(--accent); }

/* Features */

.features-band { background: var(--bg-alt); border-top: 1px solid var(--border-hair); }
.features-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.feature-card {
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 28px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  background: var(--card-bg);
}
.feature-card-highlight { border-color: var(--accent-border-soft); background: var(--accent-surface-alt); }
.feature-card-head { display: flex; align-items: center; gap: 10px; }
.feature-title { font-size: 18px; font-weight: 500; }
.feature-text { font-size: 15px; line-height: 1.55; color: var(--muted); }

/* Architecture */

.arch-grid {
  max-width: 1180px;
  margin: 0 auto;
  padding: 88px 32px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 56px;
}
.arch-col { display: flex; flex-direction: column; gap: 24px; }
.arch-rows { display: flex; flex-direction: column; }
.arch-row {
  display: grid;
  grid-template-columns: 190px 1fr;
  gap: 16px;
  padding: 14px 0;
  border-top: 1px solid var(--border-soft);
  font-size: 15px;
}
.arch-row:last-child { border-bottom: 1px solid var(--border-soft); }
.arch-row-name { font-weight: 500; }
.arch-row-desc { color: var(--muted); }
.arch-row-muted .arch-row-name,
.arch-row-muted .arch-row-desc { color: var(--muted-2); }

.arch-side { display: flex; flex-direction: column; gap: 20px; align-self: start; position: sticky; top: 96px; }
.concepts-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 26px;
  display: flex;
  flex-direction: column;
  gap: 18px;
}
.concept { display: flex; flex-direction: column; gap: 5px; }
.concept-name { font-size: 17px; font-weight: 500; }
.concept-desc { font-size: 15px; color: var(--muted); line-height: 1.5; }
.concept-divider { height: 1px; background: var(--border); }
.scope-note {
  border: 1px dashed var(--border-ghost);
  border-radius: 14px;
  padding: 20px;
  font-family: var(--font-mono);
  font-size: 12.5px;
  color: var(--muted-2);
  line-height: 1.6;
}

/* Tiers table */

.tiers-band { background: var(--bg-alt); border-top: 1px solid var(--border-hair); }
.tiers-section {
  max-width: 1180px;
  margin: 0 auto;
  padding: 88px 32px;
  display: flex;
  flex-direction: column;
  gap: 36px;
}
.tiers-table {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr;
  border: 1px solid var(--border);
  border-radius: 14px;
  overflow: hidden;
  background: var(--card-bg);
}
.tiers-row { display: contents; }
.tiers-cell { padding: 16px 24px; font-size: 15px; border-bottom: 1px solid var(--border-soft); }
.tiers-row:last-child .tiers-cell { border-bottom: none; }
.tiers-head {
  padding: 18px 24px;
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--muted-2);
  border-bottom: 1px solid var(--border-soft);
}
.tiers-head-accent { color: var(--accent); }
.tiers-head-note { color: var(--dim); }
.tiers-included { color: var(--success); }
.tiers-planned { color: var(--muted-2); }
.tiers-none { color: var(--dim); }

/* Footer */

.site-footer { border-top: 1px solid var(--border-hair); }
.site-footer-inner {
  max-width: 1180px;
  margin: 0 auto;
  padding: 36px 32px;
  display: flex;
  align-items: center;
  gap: 24px;
  flex-wrap: wrap;
}
.footer-brand { display: flex; align-items: center; gap: 10px; }
.footer-brand-name { font-size: 15px; font-weight: 500; }
.footer-links { display: flex; gap: 22px; font-size: 14px; color: var(--muted-2); }

/* Tablet: the in-page section links no longer fit beside the brand and the
   header actions, and every multi-column layout halves or stacks. */
@media (max-width: 900px) {
  .site-header-inner { padding: 14px 24px; gap: 20px; }
  .site-nav { display: none; }

  .hero { grid-template-columns: 1fr; gap: 48px; padding: 64px 24px 56px; }
  .hero-title { font-size: 52px; }

  .split { padding: 56px 24px; gap: 40px; }
  .section,
  .arch-grid,
  .tiers-section { padding: 72px 24px; }

  .steps-grid { grid-template-columns: repeat(2, 1fr); }
  .features-grid { grid-template-columns: repeat(2, 1fr); }

  /* Side by side the concepts card was sticky next to the long list; stacked
     under it, sticky would make it slide over the list's last rows. */
  .arch-grid { grid-template-columns: 1fr; gap: 40px; }
  .arch-side { position: static; }

  .site-footer-inner { padding: 32px 24px; }
}

/* Phone: one column throughout, 16px side gutters. */
@media (max-width: 640px) {
  .site-header-inner { padding: 12px 16px; gap: 14px; }
  .brand-name { font-size: 17px; }
  .header-actions { gap: 12px; }

  .hero { gap: 40px; padding: 44px 16px 48px; }
  .hero-copy { gap: 22px; }
  .hero-title { font-size: 40px; line-height: 1.05; }
  .hero-subtitle { font-size: 17px; }
  .btn { padding: 12px 20px; }
  .panel-body { padding: 16px; font-size: 12.5px; }
  .panel-stats { padding: 14px 16px; }

  .split { grid-template-columns: 1fr; padding: 48px 16px; gap: 32px; }
  .split-heading { font-size: 20px; }

  .section,
  .arch-grid,
  .tiers-section { padding: 56px 16px; gap: 28px; }
  .section-title { font-size: 30px; text-wrap: balance; }

  .steps-grid,
  .features-grid { grid-template-columns: 1fr; gap: 14px; }
  .feature-card { padding: 22px; }

  /* Name above description: a fixed 190px name column leaves the
     description too narrow to read at this width. */
  .arch-row { grid-template-columns: 1fr; gap: 4px; }
  .concepts-card { padding: 22px; }

  .tiers-cell,
  .tiers-head { padding: 14px 12px; }
  .tiers-cell { font-size: 14px; }

  .site-footer-inner { padding: 28px 16px; gap: 16px; }
  /* The spacer only pushes the links right while everything fits on one row;
     here the links wrap onto their own line instead. */
  .site-footer .spacer { display: none; }
  .footer-links { flex-wrap: wrap; gap: 10px 18px; }
}
