@import url("./design-system/colors_and_type.css");

* { box-sizing: border-box; margin: 0; padding: 0; }
html, body { background: var(--stone-950); color: var(--text-primary); }
body { overflow-x: hidden; }
a { color: inherit; text-decoration: none; }

.page {
  min-height: 100vh;
  background:
    radial-gradient(1200px 600px at 80% -200px, rgba(251,191,36,0.04), transparent 60%),
    radial-gradient(800px 400px at 10% 30%, rgba(251,191,36,0.02), transparent 60%),
    var(--stone-950);
}

/* ─── nav ─── */
.nav {
  position: sticky; top: 0; z-index: 50;
  display: flex; align-items: center; gap: 32px;
  padding: 16px 40px;
  border-bottom: 1px solid var(--surface-border);
  backdrop-filter: blur(8px);
  background: rgba(12,12,15,0.7);
}
.nav-brand { display: flex; align-items: center; font-size: 17px; font-weight: 500; letter-spacing: -0.5px; color: var(--stone-100); }
.brand-text { font-weight: 500; }
.brand-chev { color: var(--amber-400); margin-left: 1px; font-weight: 600; }
.nav-links { display: flex; gap: 28px; margin-left: 24px; }
.nav-links a {
  font-size: 13px; color: var(--stone-400);
  transition: color 100ms;
}
.nav-links a:hover { color: var(--stone-50); }
.nav-cta { margin-left: auto; display: flex; align-items: center; gap: 16px; }
.status-pill {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 5px 11px;
  border-radius: 999px;
  background: rgba(251,191,36,0.06);
  border: 1px solid rgba(251,191,36,0.15);
  font-size: 11px; font-weight: 500;
  color: var(--amber-400);
  letter-spacing: 0.2px;
  text-transform: lowercase;
}
.pulse-dot {
  width: 6px; height: 6px; border-radius: 50%;
  background: var(--amber-400);
  box-shadow: 0 0 0 0 rgba(251,191,36,0.5);
  animation: pulse 1.8s infinite;
}
@keyframes pulse {
  0%   { box-shadow: 0 0 0 0 rgba(251,191,36,0.5); }
  70%  { box-shadow: 0 0 0 6px rgba(251,191,36,0); }
  100% { box-shadow: 0 0 0 0 rgba(251,191,36,0); }
}
.btn-ghost {
  display: inline-flex; align-items: center;
  font-size: 13px; color: var(--stone-300);
  font-weight: 500;
  padding: 7px 12px;
  border-radius: 8px;
  line-height: 1;
  transition: all 100ms;
}
.btn-ghost:hover { color: var(--stone-50); background: rgba(231,229,228,0.04); }
.btn-amber {
  display: inline-flex; align-items: center; gap: 8px;
  background: var(--amber-400); color: var(--stone-950);
  font-weight: 600; font-size: 13px;
  padding: 10px 18px;
  border-radius: 8px;
  border: none; cursor: pointer;
  line-height: 1;
  transition: all 100ms ease;
}
.btn-amber:hover { background: var(--amber-300); }
.btn-amber:active { transform: scale(0.97); }

/* ─── hero ─── */
.hero { position: relative; padding: 96px 40px 64px; overflow: hidden; }
.hero-glow {
  position: absolute; right: -200px; top: -100px;
  width: 800px; height: 800px;
  background: radial-gradient(circle, rgba(251,191,36,0.06), transparent 60%);
  pointer-events: none;
}
.hero-inner {
  position: relative;
  display: grid;
  grid-template-columns: 0.85fr 1.35fr;
  gap: 48px; align-items: start;
  max-width: 1480px; margin: 0 auto;
}
.hero-copy { padding-top: 24px; max-width: 540px; }
.hero-visual { position: sticky; }
.hero-copy { max-width: 540px; }

.overline {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 6px 12px;
  border-radius: 999px;
  background: rgba(251,191,36,0.05);
  border: 1px solid rgba(251,191,36,0.15);
  font-size: 11px; font-weight: 500;
  color: var(--amber-400);
  letter-spacing: 0.4px;
  text-transform: uppercase;
}
.overline-sep { color: rgba(251,191,36,0.4); }
.overline-static {
  background: rgba(231,229,228,0.04);
  border-color: var(--surface-border);
  color: var(--stone-300);
}
.overline-static span { color: var(--stone-300); }

.hero-title {
  font-size: 76px; line-height: 0.95;
  letter-spacing: -3.5px; font-weight: 600;
  color: var(--stone-50);
  margin: 24px 0 24px;
}
.hero-line { display: block; }
.hero-line:nth-child(2) { color: var(--amber-400); }
.hero-sub {
  font-size: 17px; line-height: 1.55;
  color: var(--stone-400);
  max-width: 460px;
  margin-bottom: 32px;
}

.hero-form { max-width: 480px; }
.hero-input-wrap {
  display: flex; gap: 6px;
  background: var(--stone-850);
  border: 1px solid var(--surface-border);
  border-radius: 10px;
  padding: 6px;
  transition: all 150ms;
}
.hero-input-wrap:focus-within {
  border-color: rgba(251,191,36,0.4);
  box-shadow: 0 0 0 3px rgba(251,191,36,0.08);
}
.hero-input {
  flex: 1; background: transparent; border: none; outline: none;
  color: var(--stone-50);
  font: 14px var(--font-sans);
  padding: 10px 12px;
}
.hero-input::placeholder { color: var(--stone-500); }
.hero-submit {
  display: inline-flex; align-items: center; gap: 8px;
  background: var(--amber-400); color: var(--stone-950);
  font-weight: 600; font-size: 13px;
  padding: 10px 16px;
  border-radius: 7px;
  line-height: 1;
  border: none; cursor: pointer;
  transition: all 100ms ease;
}
.hero-submit:hover { background: var(--amber-300); }
.hero-submit:active { transform: scale(0.96); }

.hero-meta {
  margin-top: 14px;
  display: flex; gap: 10px; align-items: center;
  font-size: 12px; color: var(--stone-500);
  font-family: var(--font-mono);
}
.dot-amber {
  display: inline-block; width: 6px; height: 6px;
  border-radius: 50%; background: var(--amber-400);
  margin-right: 6px;
  box-shadow: 0 0 6px rgba(251,191,36,0.4);
}
.meta-item { display: inline-flex; align-items: center; }
.meta-sep { color: var(--stone-700); }

/* hero shot */
.hero-visual { position: relative; }
.hero-shot {
  position: relative;
  background: var(--stone-950);
  border: 1px solid var(--surface-border);
  border-radius: 14px;
  overflow: hidden;
  box-shadow: 0 40px 100px -20px rgba(0,0,0,0.6), 0 0 0 1px rgba(231,229,228,0.02);
}
.shot-chrome {
  display: flex; align-items: center; gap: 14px;
  padding: 12px 16px;
  border-bottom: 1px solid var(--surface-border);
  background: rgba(28,25,23,0.5);
}
.shot-dots { display: flex; gap: 6px; }
.shot-dots span { width: 10px; height: 10px; border-radius: 50%; background: var(--stone-700); }
.shot-dots span:first-child { background: rgba(251,191,36,0.5); }
.shot-title {
  font-size: 13px; font-weight: 500; color: var(--stone-200);
  letter-spacing: -0.3px;
}
.shot-tabs { display: flex; gap: 14px; margin-left: 12px; }
.shot-tab {
  display: inline-flex; align-items: center; gap: 6px;
  font-size: 11px; color: var(--stone-500);
  font-family: var(--font-mono);
  padding: 4px 8px;
  border-radius: 5px;
}
.shot-tab.on {
  color: var(--amber-400);
  background: rgba(251,191,36,0.06);
  border: 1px solid rgba(251,191,36,0.2);
}
.shot-tab-ico {
  width: 10px; height: 10px;
  border-radius: 2px;
  background: var(--stone-700);
}
.hero-shot-img-wrap {
  position: relative;
  aspect-ratio: 16 / 11;
  overflow: hidden;
  background: var(--stone-950);
}
.hero-shot-img {
  position: absolute;
  top: 0; left: 0; right: 0;
  width: 100%;
  display: block;
  object-fit: cover;
  object-position: 100% 0%;
}
.hero-shot-fade {
  position: absolute; inset: 0;
  background: linear-gradient(180deg, transparent 60%, rgba(12,12,15,0.7) 100%);
  pointer-events: none;
}
.hero-shot-floater {
  position: absolute;
  left: 24px; bottom: 24px;
  display: inline-flex; align-items: center; gap: 10px;
  padding: 8px 14px;
  background: rgba(12,12,15,0.85);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(251,191,36,0.25);
  border-radius: 999px;
  font-size: 12px; color: var(--amber-400);
  font-weight: 500;
  letter-spacing: 0.2px;
  box-shadow: 0 12px 32px -10px rgba(0,0,0,0.5);
}
.floater-pulse {
  width: 7px; height: 7px; border-radius: 50%;
  background: var(--amber-400);
  animation: pulse 1.8s infinite;
}
.floater-text { font-family: var(--font-sans); }

/* gallery */
.gallery-tabs {
  display: inline-flex;
  background: var(--stone-850);
  border: 1px solid var(--surface-border);
  border-radius: 10px;
  padding: 5px;
  gap: 4px;
  margin-bottom: 32px;
}
.gallery-tab {
  display: inline-flex; align-items: center; gap: 10px;
  background: transparent; border: none;
  padding: 10px 18px;
  border-radius: 7px;
  cursor: pointer;
  font: 13px var(--font-sans);
  color: var(--stone-400);
  font-weight: 500;
  transition: all 150ms;
}
.gallery-tab:hover { color: var(--stone-100); }
.gallery-tab.on {
  background: var(--stone-950);
  color: var(--amber-400);
  box-shadow: 0 0 0 1px rgba(251,191,36,0.2);
}
.gallery-tab-num {
  font-family: var(--font-mono); font-size: 11px;
  color: var(--stone-600);
}
.gallery-tab.on .gallery-tab-num { color: var(--amber-400); }

.gallery-stage {
  display: grid;
  grid-template-columns: 1fr 320px;
  gap: 48px;
  align-items: start;
}
.gallery-frame {
  background: var(--stone-950);
  border: 1px solid var(--surface-border);
  border-radius: 14px;
  overflow: hidden;
  box-shadow: 0 40px 100px -20px rgba(0,0,0,0.5);
}
.gallery-chrome {
  display: flex; align-items: center; gap: 14px;
  padding: 12px 16px;
  border-bottom: 1px solid var(--surface-border);
  background: rgba(28,25,23,0.5);
}
.gallery-chrome-meta {
  margin-left: auto;
  font-family: var(--font-mono); font-size: 11px;
  color: var(--stone-500);
  text-transform: lowercase;
  letter-spacing: 0.3px;
}
.gallery-img-wrap {
  position: relative;
  aspect-ratio: 16 / 10;
  background: var(--stone-950);
  overflow: hidden;
}
.gallery-img {
  position: absolute; inset: 0;
  width: 100%; height: 100%;
  object-fit: cover;
  object-position: 0% 0%;
  opacity: 0;
  transition: opacity 350ms var(--ease-out);
}
.gallery-img.on { opacity: 1; }
.gallery-fade {
  position: absolute; inset: 0;
  background: linear-gradient(180deg, transparent 75%, rgba(12,12,15,0.5) 100%);
  pointer-events: none;
}
.gallery-caption { padding-top: 16px; }
.gallery-caption-num {
  font-family: var(--font-mono); font-size: 12px;
  color: var(--amber-400);
  margin-bottom: 16px;
  letter-spacing: 0.5px;
}
.gallery-caption-title {
  font-size: 26px; font-weight: 600;
  letter-spacing: -0.7px;
  color: var(--stone-50);
  line-height: 1.15;
  margin-bottom: 14px;
}
.gallery-caption-desc {
  font-size: 15px; line-height: 1.6;
  color: var(--stone-400);
}

@media (max-width: 1100px) {
  .gallery-stage { grid-template-columns: 1fr; gap: 28px; }
}

/* app simulation */
.hero-visual { position: relative; min-width: 0; }
.appsim {
  background: var(--stone-950);
  border: 1px solid var(--surface-border);
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 40px 100px -20px rgba(0,0,0,0.6), 0 0 0 1px rgba(231,229,228,0.02);
  font-family: var(--font-sans);
  display: flex; flex-direction: column;
}
.appsim-chrome {
  display: flex; align-items: center; gap: 14px;
  padding: 9px 14px;
  background: rgba(28,25,23,0.6);
  border-bottom: 1px solid var(--surface-border);
}
.appsim-dots { display: flex; gap: 5px; }
.appsim-dots span { width: 10px; height: 10px; border-radius: 50%; background: var(--stone-700); }
.appsim-dots span:first-child { background: rgba(251,191,36,0.5); }
.appsim-title {
  font-size: 12px; font-weight: 500;
  color: var(--stone-200);
  margin: 0 auto;
  display: inline-flex; align-items: center;
  letter-spacing: -0.2px;
}
.appsim-tabs {
  display: flex; align-items: center; gap: 2px;
  padding: 0 10px;
  border-bottom: 1px solid var(--surface-border);
  background: rgba(28,25,23,0.3);
  height: 36px;
}
.appsim-tab {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 7px 12px;
  font-size: 11px;
  color: var(--stone-500);
  border-radius: 5px 5px 0 0;
  cursor: default;
}
.appsim-tab.on {
  color: var(--amber-400);
  background: var(--stone-950);
  border: 1px solid var(--surface-border);
  border-bottom: none;
  position: relative; top: 1px;
}
.appsim-tab svg { color: currentColor; }
.appsim-tab-warn { color: var(--amber-400); margin-left: 2px; font-size: 9px; }
.appsim-tab-spacer { flex: 1; }
.appsim-icons { display: flex; gap: 6px; align-items: center; padding-right: 4px; }
.appsim-ic {
  width: 14px; height: 14px;
  border-radius: 3px;
  background: rgba(231,229,228,0.04);
}
.appsim-ic-plus {
  background: transparent;
  color: var(--stone-500);
  font-size: 14px;
  display: inline-flex; align-items: center; justify-content: center;
  font-weight: 400;
  line-height: 1;
}

.appsim-main {
  display: grid;
  grid-template-columns: 150px 1fr;
  flex: 1;
  min-height: 0;
}
.appsim-side {
  background: var(--stone-950);
  border-right: 1px solid var(--surface-border);
  padding: 10px 8px;
  display: flex; flex-direction: column; gap: 2px;
  overflow: hidden;
}
.appsim-side-brand {
  display: flex; align-items: center;
  font-size: 12px; font-weight: 500;
  color: var(--stone-200);
  padding: 4px 6px 14px;
  letter-spacing: -0.3px;
}
.appsim-side-section {
  font-size: 9px; font-weight: 500;
  text-transform: uppercase; letter-spacing: 0.5px;
  color: var(--stone-600);
  padding: 12px 6px 4px;
}
.appsim-side-tasks { display: flex; flex-direction: column; gap: 1px; }
.appsim-side-task {
  display: flex; align-items: center; gap: 6px;
  padding: 5px 6px;
  border-radius: 4px;
  font-size: 11px;
  color: var(--stone-400);
}
.appsim-side-task.current {
  background: rgba(251,191,36,0.06);
  color: var(--stone-50);
}
.appsim-side-task.ghost { color: var(--stone-600); }
.appsim-side-task-name {
  flex: 1;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
  min-width: 0;
}
.appsim-side-task-pill {
  font-size: 8px; font-weight: 500;
  text-transform: lowercase; letter-spacing: 0.2px;
  padding: 1px 5px;
  border-radius: 3px;
  flex-shrink: 0;
}
.appsim-side-task-pill.review { background: rgba(251,191,36,0.12); color: var(--amber-400); }
.appsim-side-task-pill.done   { background: rgba(231,229,228,0.04); color: var(--stone-500); }
.appsim-side-task-pill.active { background: rgba(251,191,36,0.18); color: var(--amber-400); }

/* sidebar section header w/ count */
.appsim-side-section { display: flex; align-items: center; justify-content: space-between; }
.appsim-side-section-count {
  background: rgba(251,191,36,0.12);
  color: var(--amber-400);
  font-size: 8px; font-weight: 600;
  padding: 1px 5px; border-radius: 3px;
}

/* sidebar team list */
.appsim-team {
  display: flex; flex-direction: column;
  padding: 4px 8px 8px;
  gap: 2px;
}
.appsim-team-row {
  display: grid;
  grid-template-columns: 20px 1fr auto;
  gap: 8px; align-items: center;
  padding: 5px 6px;
  border-radius: 4px;
  font-size: 10.5px;
}
.appsim-avatar {
  width: 20px; height: 20px;
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-size: 8px; font-weight: 600;
  color: var(--stone-50);
  letter-spacing: 0.02em;
  font-family: var(--font-sans);
}
.appsim-avatar-img {
  width: 22px; height: 22px;
  border-radius: 50%;
  object-fit: cover;
  object-position: center 20%;
  display: block;
  background: var(--stone-800);
}
.appsim-team-meta { min-width: 0; }
.appsim-team-name {
  color: var(--stone-200);
  font-weight: 500;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.appsim-team-task {
  color: var(--stone-500);
  font-size: 9.5px;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
  font-family: var(--font-mono);
}
.appsim-team-stage {
  font-size: 8px; font-weight: 600;
  text-transform: uppercase;
  padding: 1px 4px; border-radius: 3px;
  letter-spacing: 0.04em;
}
.appsim-team-stage.stage-review         { background: rgba(251,191,36,0.14); color: var(--amber-400); }
.appsim-team-stage.stage-implementation { background: rgba(96,165,250,0.14); color: oklch(0.78 0.13 245); }
.appsim-team-stage.stage-architecture   { background: rgba(167,139,250,0.14); color: oklch(0.78 0.13 290); }
.appsim-team-stage.stage-design         { background: rgba(248,113,113,0.14); color: oklch(0.74 0.16 25); }
.appsim-team-stage.stage-scope          { background: rgba(120,113,108,0.18); color: var(--stone-400); }
.appsim-team-stage.stage-release        { background: rgba(74,222,128,0.14); color: oklch(0.76 0.18 145); }

.appsim-content {
  padding: 14px 18px;
  overflow: hidden;
  display: flex; flex-direction: column; gap: 14px;
  min-width: 0;
}
.appsim-task-head {
  display: flex; align-items: center; gap: 12px;
  flex-wrap: wrap;
}
.appsim-task-title {
  font-size: 13px; font-weight: 600;
  color: var(--stone-50);
  letter-spacing: -0.2px;
  flex: 1;
  min-width: 200px;
}
.appsim-stages {
  display: flex; gap: 6px;
}
.appsim-stage {
  display: inline-flex; align-items: center; gap: 4px;
  font-size: 10px; font-weight: 500;
  color: var(--stone-600);
  padding: 3px 7px;
  border-radius: 999px;
  background: rgba(231,229,228,0.03);
  position: relative;
}
.appsim-stage.done {
  color: var(--stone-300);
  background: rgba(251,191,36,0.05);
}
.appsim-stage.active {
  color: var(--amber-400);
  background: rgba(251,191,36,0.12);
  border: 1px solid rgba(251,191,36,0.3);
  padding: 2px 6px;
}
.appsim-stage-pulse {
  width: 5px; height: 5px; border-radius: 50%;
  background: var(--amber-400);
  margin-right: 2px;
  animation: pulse 1.6s infinite;
}
.appsim-approve {
  display: inline-flex; align-items: center; gap: 5px;
  background: var(--amber-400); color: var(--stone-950);
  font: 600 11px var(--font-sans);
  padding: 6px 12px;
  border-radius: 5px;
  border: none; cursor: pointer;
  letter-spacing: 0.1px;
}

.appsim-intel { animation: intel-fade 350ms var(--ease-out); }
@keyframes intel-fade {
  from { opacity: 0; transform: translateY(4px); }
  to   { opacity: 1; transform: translateY(0); }
}
.appsim-pane {
  background: var(--stone-850);
  border: 1px solid var(--surface-border);
  border-radius: 8px;
  padding: 14px 16px;
  display: flex; flex-direction: column; gap: 10px;
}
.appsim-pane-head {
  display: flex; align-items: center; gap: 8px;
  font-size: 10px; text-transform: uppercase;
  letter-spacing: 0.5px; font-weight: 500;
  color: var(--amber-400);
  padding-bottom: 8px;
  border-bottom: 1px solid var(--surface-border-subtle);
}
.appsim-pane-meta {
  margin-left: auto;
  color: var(--stone-500);
  font-family: var(--font-mono);
  text-transform: lowercase;
  letter-spacing: 0;
  font-size: 10px;
}
.appsim-pane-title {
  font-size: 14px; font-weight: 600;
  color: var(--stone-50);
  letter-spacing: -0.2px;
  margin: 0;
}
.appsim-pane-text {
  font-size: 12px; line-height: 1.55;
  color: var(--stone-400);
}
.appsim-mono { font-family: var(--font-mono); font-size: 11px; }
.appsim-mono.dim { color: var(--stone-500); }
.appsim-grid-3 {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 6px;
  margin-top: 4px;
}
.appsim-tile {
  background: var(--stone-950);
  border: 1px solid var(--surface-border);
  border-radius: 6px;
  padding: 8px 10px;
}
.appsim-tile-l {
  font-size: 9px; text-transform: uppercase;
  letter-spacing: 0.5px; color: var(--stone-500);
  margin-bottom: 4px;
}
.appsim-tile-v {
  font-family: var(--font-mono); font-size: 16px;
  color: var(--stone-50); font-weight: 500;
}
.appsim-tile-v.amber { color: var(--amber-400); }

.appsim-routes { display: flex; flex-direction: column; gap: 6px; }
.appsim-route {
  background: var(--stone-950);
  border: 1px solid var(--surface-border);
  border-radius: 6px;
  padding: 9px 11px;
}
.appsim-route.on { border-color: rgba(251,191,36,0.4); background: rgba(251,191,36,0.04); }
.appsim-route-name {
  display: inline-flex; align-items: center; gap: 6px;
  font-size: 12px; font-weight: 500;
  color: var(--stone-100);
}
.appsim-route-x { color: var(--stone-700); width: 8px; display: inline-block; text-align: center; }
.appsim-route-meta {
  font-size: 11px; color: var(--stone-500);
  margin-top: 3px; padding-left: 14px;
}

.appsim-files { display: flex; flex-direction: column; gap: 4px; }
.appsim-file {
  display: flex; align-items: center; gap: 8px;
  font-size: 11px;
  padding: 5px 8px;
  border-radius: 4px;
  background: var(--stone-950);
  border: 1px solid var(--surface-border-subtle);
}
.appsim-file-tag {
  font-family: var(--font-mono); font-size: 11px;
  font-weight: 600;
  width: 12px; text-align: center;
}
.appsim-file-tag.add { color: var(--amber-400); }
.appsim-file-tag.mod { color: var(--stone-400); }
.appsim-file-meta {
  margin-left: auto;
  font-family: var(--font-mono);
  font-size: 10px;
  color: var(--stone-500);
}

.appsim-diff {
  background: var(--stone-950);
  border: 1px solid var(--surface-border);
  border-radius: 6px;
  font-family: var(--font-mono);
  font-size: 11px;
  overflow: hidden;
}
.appsim-diff-hdr {
  display: flex; align-items: center;
  padding: 6px 10px;
  border-bottom: 1px solid var(--surface-border-subtle);
  font-size: 10px;
  color: var(--stone-300);
}
.appsim-diff-stat { margin-left: auto; color: var(--amber-400); }
.appsim-diff-line {
  padding: 2px 10px;
  display: flex; gap: 8px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.appsim-diff-line.add { background: rgba(251,191,36,0.05); color: var(--stone-100); }
.appsim-diff-line.dim { color: var(--stone-600); }
.appsim-diff-mark { color: var(--amber-400); }
.appsim-diff-line.dim .appsim-diff-mark { color: var(--stone-700); }

.appsim-checks { display: flex; flex-direction: column; gap: 4px; }
.appsim-check {
  display: flex; align-items: center; gap: 8px;
  font-size: 11px;
  padding: 5px 10px;
  background: var(--stone-950);
  border: 1px solid var(--surface-border-subtle);
  border-radius: 4px;
  color: var(--stone-200);
}
.appsim-check span:nth-child(2) { flex: 1; }

/* terminal */
.appsim-workspace {
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.appsim-intel {
  animation: intel-fade 350ms var(--ease-out);
  height: 280px;
  background: var(--stone-950);
  border: 1px solid var(--surface-border);
  border-radius: 8px;
  padding: 14px 16px;
  overflow: hidden;
}
.appsim-term {
  border: 1px solid var(--surface-border);
  border-radius: 8px;
  background: var(--stone-950);
  display: flex; flex-direction: column;
  height: 220px;
  overflow: hidden;
}
.appsim-term-head {
  display: flex; align-items: center; gap: 14px;
  padding: 6px 14px;
  border-bottom: 1px solid var(--surface-border-subtle);
  font-size: 10px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  background: rgba(28,25,23,0.4);
}
.appsim-term-tab {
  color: var(--stone-500); cursor: default;
  font-weight: 500;
}
.appsim-term-tab.on {
  color: var(--amber-400);
}
.appsim-term-meta {
  margin-left: auto;
  color: var(--stone-500);
  font-family: var(--font-mono);
  text-transform: lowercase;
  letter-spacing: 0.2px;
  font-size: 10px;
}
.appsim-term-body {
  font-family: var(--font-mono);
  font-size: 11.5px;
  line-height: 1.7;
  padding: 10px 14px;
  flex: 1;
  overflow: hidden;
}
.appsim-term-line {
  color: var(--stone-300);
  display: flex; gap: 8px;
}
.appsim-term-line.dim { color: var(--stone-500); }
.appsim-term-line.amber { color: var(--amber-400); }
.appsim-term-line.stage { padding-top: 2px; }
.appsim-term-prompt {
  color: var(--stone-600); user-select: none;
}
.appsim-term-prompt.amber { color: var(--amber-400); }
.appsim-term-cmd { color: var(--stone-50); }
.appsim-term-stage {
  text-transform: uppercase;
  font-size: 10px;
  letter-spacing: 0.5px;
  color: var(--stone-400);
}
.appsim-term-stage em {
  font-style: normal;
  color: var(--amber-400);
  font-weight: 500;
}
.appsim-term-caret {
  display: inline-block;
  width: 6px; background: var(--amber-400);
  color: transparent;
  animation: caret 1s steps(2) infinite;
}

@media (max-width: 1100px) {
  .appsim-main { grid-template-columns: 130px 1fr; }
  .appsim-side-section { font-size: 8px; }
}

/* hero terminal (legacy — unused) */
.hero-visual { position: relative; }
.term {
  background: var(--stone-950);
  border: 1px solid var(--surface-border);
  border-radius: 12px;
  overflow: hidden;
  font-family: var(--font-mono);
  box-shadow: 0 30px 80px -20px rgba(0,0,0,0.5), 0 0 0 1px rgba(231,229,228,0.02);
}
.term-chrome {
  display: flex; align-items: center; gap: 16px;
  padding: 12px 16px;
  border-bottom: 1px solid var(--surface-border);
  background: rgba(28,25,23,0.4);
}
.term-dots { display: flex; gap: 6px; }
.term-dots span {
  width: 10px; height: 10px; border-radius: 50%;
  background: var(--stone-700);
}
.term-dots span:first-child { background: rgba(251,191,36,0.4); }
.term-title {
  font-family: var(--font-mono); font-size: 11px;
  color: var(--stone-400);
}
.term-meta {
  margin-left: auto;
  font-family: var(--font-mono); font-size: 11px;
  color: var(--stone-500);
}

.term-pipeline {
  display: flex; align-items: center;
  padding: 18px 24px 14px;
  border-bottom: 1px solid var(--surface-border-subtle);
  gap: 0;
}
.tp-stage {
  flex: 1; display: flex; flex-direction: column; align-items: center; gap: 8px;
  position: relative;
  font-family: var(--font-sans);
}
.tp-dot {
  width: 9px; height: 9px; border-radius: 50%;
  background: var(--stone-700);
  position: relative; z-index: 2;
  transition: all 300ms var(--ease-out);
}
.tp-stage.done .tp-dot { background: var(--amber-400); box-shadow: 0 0 6px rgba(251,191,36,0.3); }
.tp-stage.active .tp-dot {
  background: var(--amber-400);
  box-shadow: 0 0 0 4px rgba(251,191,36,0.15), 0 0 8px rgba(251,191,36,0.4);
  animation: stage-pulse 1.4s infinite;
}
@keyframes stage-pulse {
  0%, 100% { box-shadow: 0 0 0 4px rgba(251,191,36,0.15), 0 0 8px rgba(251,191,36,0.4); }
  50%      { box-shadow: 0 0 0 6px rgba(251,191,36,0.05), 0 0 12px rgba(251,191,36,0.6); }
}
.tp-label {
  font-size: 10px; font-weight: 500;
  color: var(--stone-500);
  text-transform: lowercase;
  letter-spacing: 0.2px;
}
.tp-stage.done .tp-label, .tp-stage.active .tp-label { color: var(--stone-200); }
.tp-stage.active .tp-label { color: var(--amber-400); }
.tp-line {
  position: absolute; top: 4px; left: 50%; right: -50%;
  height: 1px; background: var(--surface-border);
  z-index: 1;
}
.tp-stage.done + .tp-stage .tp-line,
.tp-stage.done .tp-line { background: var(--amber-400); }

.term-body {
  padding: 18px 24px 22px;
  font-size: 12.5px; line-height: 1.85;
  height: 360px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
}
.term-line { color: var(--stone-300); }
.term-line.dim { color: var(--stone-500); }
.term-line.amber { color: var(--amber-400); }
.term-prompt {
  color: var(--stone-600); margin-right: 10px; user-select: none;
}
.term-prompt.amber { color: var(--amber-400); }
.term-cmd { color: var(--stone-50); }
.term-caret {
  display: inline-block;
  width: 7px; background: var(--amber-400); color: transparent;
  margin-left: 2px;
  animation: caret 1s steps(2) infinite;
}
@keyframes caret { 0%, 50% { opacity: 1; } 51%, 100% { opacity: 0; } }
.term-stage-line { padding: 4px 0; }
.term-stage-text {
  color: var(--stone-400);
  letter-spacing: 0.3px;
  text-transform: uppercase;
  font-size: 11px;
}
.term-stage-text em {
  font-style: normal;
  color: var(--amber-400);
  font-weight: 500;
}

.hero-trust {
  max-width: 1320px; margin: 80px auto 0;
  display: flex; align-items: center; gap: 16px;
  padding-top: 32px;
  border-top: 1px solid var(--surface-border-subtle);
}
.trust-label {
  font-family: var(--font-mono); font-size: 11px;
  color: var(--stone-500);
  text-transform: uppercase; letter-spacing: 0.5px;
  margin-right: 8px;
}
.trust-chip {
  font-size: 13px; color: var(--stone-300);
  font-weight: 500;
}
.trust-chip.muted { color: var(--stone-500); }
.trust-sep {
  color: var(--stone-700);
  font-family: var(--font-mono);
  font-size: 14px;
  margin: 0 8px;
}
.trust-label-soon { color: var(--stone-500); }

/* ─── section common ─── */
section { max-width: 1320px; margin: 0 auto; padding: 96px 40px; }
.section-head { max-width: 720px; margin-bottom: 64px; }
.section-title {
  font-size: 48px; font-weight: 600;
  letter-spacing: -1.8px; line-height: 1.05;
  color: var(--stone-50);
  margin-top: 16px;
}
.section-title .muted-line {
  color: var(--stone-500);
}
.section-sub {
  font-size: 17px;
  color: var(--stone-400);
  margin-top: 18px;
  max-width: 520px;
  line-height: 1.55;
}
.muted { color: var(--stone-500); }

/* ─── stage pipeline section ─── */
.stage-rail {
  position: relative;
  display: flex;
  padding: 0 0 32px;
  border-bottom: 1px solid var(--surface-border-subtle);
  margin-bottom: 48px;
}
/* track + fill span between the centers of the first and last node */
.stage-rail::before {
  content: ""; position: absolute;
  top: 5px;
  left: calc((100% / 6) / 2);
  right: calc((100% / 6) / 2);
  height: 1px;
  background: var(--surface-border);
}
.stage-rail-line {
  position: absolute;
  top: 5px;
  left: calc((100% / 6) / 2);
  height: 1px;
  background: var(--amber-400);
  box-shadow: 0 0 4px rgba(251,191,36,0.4);
  transition: width 300ms var(--ease-out);
}
.stage-node {
  background: transparent; border: none;
  display: flex; flex-direction: column; align-items: center; gap: 10px;
  padding: 0; cursor: pointer;
  position: relative; z-index: 2;
  flex: 1;
  text-align: center;
  transition: all 100ms;
}
.stage-node-dot {
  width: 11px; height: 11px; border-radius: 50%;
  background: var(--stone-800);
  border: 1px solid var(--stone-700);
  transition: all 200ms var(--ease-out);
}
.stage-node.filled .stage-node-dot {
  background: var(--amber-400); border-color: var(--amber-400);
  box-shadow: 0 0 6px rgba(251,191,36,0.3);
}
.stage-node.current .stage-node-dot {
  box-shadow: 0 0 0 5px rgba(251,191,36,0.18), 0 0 8px rgba(251,191,36,0.4);
}
.stage-node-num {
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--stone-500);
}
.stage-node.filled .stage-node-num { color: var(--amber-400); }
.stage-node-label {
  font-size: 14px; font-weight: 500;
  color: var(--stone-400);
  text-transform: lowercase;
}
.stage-node:hover .stage-node-label,
.stage-node.current .stage-node-label { color: var(--stone-50); }
.stage-node.current .stage-node-label { color: var(--amber-400); }

.stage-detail {
  padding: 8px 0 0;
  display: grid;
  grid-template-columns: 200px 1fr;
  gap: 32px;
  align-items: start;
  min-height: 200px;
}
.stage-detail-body { min-height: 180px; }
.stage-detail-num {
  font-family: var(--font-mono);
  font-size: 32px; font-weight: 500;
  color: var(--amber-400);
  letter-spacing: -0.5px;
}
.stage-detail-verb {
  color: var(--stone-500);
  font-size: 16px;
  font-weight: 400;
}
.stage-detail-title {
  font-size: 32px; font-weight: 600;
  letter-spacing: -1px;
  color: var(--stone-50);
  margin-bottom: 16px;
  text-transform: lowercase;
}
.stage-detail-desc {
  font-size: 17px; line-height: 1.6;
  color: var(--stone-300);
  max-width: 640px;
}

/* ─── how-it-works ─── */
.how-grid {
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 1px;
  background: var(--surface-border);
  border: 1px solid var(--surface-border);
  border-radius: 16px;
  overflow: hidden;
}
.how-card {
  background: var(--stone-950);
  padding: 32px 28px 36px;
  display: flex; flex-direction: column; gap: 14px;
  transition: background 200ms;
}
.how-card:hover { background: var(--stone-900); }
.how-num {
  font-family: var(--font-mono); font-size: 12px;
  color: var(--amber-400);
  font-weight: 500;
  letter-spacing: 0.5px;
}
.how-title {
  font-size: 20px; font-weight: 600;
  letter-spacing: -0.4px;
  color: var(--stone-50);
  text-transform: lowercase;
}
.how-body {
  font-size: 14px; line-height: 1.6;
  color: var(--stone-400);
}

/* ─── perks ─── */
.perks-grid {
  display: grid; grid-template-columns: repeat(3, 1fr);
  gap: 1px;
  background: var(--surface-border);
  border: 1px solid var(--surface-border);
  border-radius: 16px;
  overflow: hidden;
}
.perk {
  background: var(--stone-950);
  padding: 32px 28px;
  display: flex; gap: 16px;
  align-items: flex-start;
  transition: background 200ms;
}
.perk:hover { background: var(--stone-900); }
.perk-mark {
  width: 28px; height: 28px;
  border-radius: 7px;
  background: rgba(251,191,36,0.08);
  border: 1px solid rgba(251,191,36,0.2);
  display: inline-flex; align-items: center; justify-content: center;
  flex-shrink: 0;
  margin-top: 2px;
}
.perk-title {
  font-size: 16px; font-weight: 600;
  color: var(--stone-50);
  margin-bottom: 6px;
  letter-spacing: -0.2px;
  text-transform: lowercase;
}
.perk-desc {
  font-size: 14px; line-height: 1.6;
  color: var(--stone-400);
}

/* ─── for whom ─── */
.fw-grid {
  display: grid; grid-template-columns: 1fr 1fr; gap: 32px;
}
.fw-col {
  background: var(--stone-950);
  border: 1px solid var(--surface-border);
  border-radius: 16px;
  padding: 32px;
}
.fw-col-head {
  display: flex; align-items: center; gap: 10px;
  font-size: 13px; font-weight: 600;
  text-transform: uppercase; letter-spacing: 0.5px;
  margin-bottom: 24px;
  padding-bottom: 16px;
  border-bottom: 1px solid var(--surface-border-subtle);
}
.fw-yes { color: var(--amber-400); }
.fw-no { color: var(--stone-500); }
.fw-x {
  display: inline-flex; align-items: center; justify-content: center;
  width: 14px; height: 14px;
  font-weight: 500;
  font-size: 14px;
  color: var(--stone-600);
}
.fw-list { list-style: none; display: flex; flex-direction: column; gap: 16px; }
.fw-list li {
  display: flex; align-items: flex-start; gap: 12px;
  font-size: 16px; color: var(--stone-200);
  line-height: 1.5;
}
.fw-list-muted li { color: var(--stone-500); }
.fw-list li svg { margin-top: 6px; flex-shrink: 0; }
.fw-list li .fw-x { margin-top: 4px; flex-shrink: 0; }

/* ─── faq ─── */
.faq-list {
  display: flex; flex-direction: column;
  border: 1px solid var(--surface-border);
  border-radius: 16px;
  overflow: hidden;
}
.faq-item {
  width: 100%;
  background: var(--stone-950);
  border: none;
  border-bottom: 1px solid var(--surface-border-subtle);
  padding: 0;
  text-align: left;
  cursor: pointer;
  font: inherit;
  color: inherit;
  transition: background 200ms;
}
.faq-item:last-child { border-bottom: none; }
.faq-item:hover { background: rgba(231,229,228,0.02); }
.faq-q {
  display: flex; align-items: center; justify-content: space-between;
  padding: 24px 32px;
  gap: 24px;
}
.faq-q-text {
  font-size: 17px; font-weight: 500;
  color: var(--stone-100);
  letter-spacing: -0.2px;
}
.faq-q-mark {
  display: inline-flex; align-items: center; justify-content: center;
  width: 24px; height: 24px;
  border-radius: 6px;
  background: rgba(251,191,36,0.06);
  border: 1px solid rgba(251,191,36,0.15);
  transition: transform 200ms var(--ease-out);
}
.faq-q-mark.rot { transform: rotate(90deg); }
.faq-a-wrap {
  display: grid;
  grid-template-rows: 0fr;
  transition: grid-template-rows 250ms var(--ease-out);
}
.faq-item.open .faq-a-wrap { grid-template-rows: 1fr; }
.faq-a-inner { overflow: hidden; min-height: 0; }
.faq-a {
  padding: 0 32px 24px;
  font-size: 15px; line-height: 1.65;
  color: var(--stone-400);
  max-width: 720px;
}

/* ─── signup ─── */
.signup { padding: 64px 40px 96px; }
.signup-card {
  max-width: 720px; margin: 0 auto;
  background: var(--stone-850);
  border: 1px solid var(--surface-border);
  border-radius: 16px;
  padding: 48px;
  position: relative;
  overflow: hidden;
}
.signup-card::before {
  content: ""; position: absolute;
  top: 0; left: 0; right: 0; height: 1px;
  background: linear-gradient(90deg, transparent, rgba(251,191,36,0.4), transparent);
}
.signup-head { margin-bottom: 32px; }
.signup-title {
  font-size: 36px; font-weight: 600;
  letter-spacing: -1.2px;
  color: var(--stone-50);
  margin: 16px 0 12px;
  text-transform: lowercase;
}
.signup-sub { color: var(--stone-400); font-size: 15px; }

.signup-form { display: flex; flex-direction: column; gap: 18px; }
.field { display: flex; flex-direction: column; gap: 8px; flex: 1; }
.field label {
  font-size: 11px; font-weight: 500;
  text-transform: uppercase; letter-spacing: 0.5px;
  color: var(--stone-500);
}
.field input, .field select, .field textarea {
  background: var(--stone-950);
  border: 1px solid var(--surface-border);
  border-radius: 8px;
  padding: 11px 14px;
  color: var(--stone-50);
  font: 14px var(--font-sans);
  outline: none;
  transition: all 150ms;
  resize: none;
  width: 100%;
}
.field select {
  -webkit-appearance: none;
  -moz-appearance: none;
  appearance: none;
  padding-right: 36px;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='10' height='6' viewBox='0 0 10 6' fill='none'><path d='M1 1L5 5L9 1' stroke='%23A8A29E' stroke-width='1.5' stroke-linecap='round' stroke-linejoin='round'/></svg>");
  background-repeat: no-repeat;
  background-position: right 14px center;
  cursor: pointer;
}
.field select.placeholder { color: var(--stone-500); }
.field select option {
  background: var(--stone-900);
  color: var(--stone-50);
}
.field select option[disabled] { color: var(--stone-500); }
.field input:focus, .field select:focus, .field textarea:focus {
  border-color: rgba(251,191,36,0.4);
  box-shadow: 0 0 0 3px rgba(251,191,36,0.08);
}
.field-row { display: grid; grid-template-columns: 1.4fr 1fr; gap: 16px; }

.signup-actions {
  display: flex; align-items: center; justify-content: space-between;
  margin-top: 8px;
  gap: 16px;
}
.signup-fineprint {
  font-size: 12px; color: var(--stone-500);
}
.signup-error {
  background: rgba(248,113,113,0.06);
  border: 1px solid rgba(248,113,113,0.25);
  color: oklch(0.78 0.14 25);
  border-radius: 8px;
  padding: 10px 14px;
  font-size: 13px;
  line-height: 1.5;
}
.btn-amber:disabled {
  opacity: 0.6; cursor: not-allowed;
}
.btn-amber:disabled:hover { background: var(--amber-400); }

/* signup done */
.signup-done {
  text-align: center;
  padding: 64px 48px;
}
.signup-mark {
  width: 56px; height: 56px;
  border-radius: 14px;
  background: rgba(251,191,36,0.1);
  border: 1px solid rgba(251,191,36,0.3);
  display: inline-flex; align-items: center; justify-content: center;
  margin-bottom: 24px;
  box-shadow: 0 0 24px rgba(251,191,36,0.2);
}
.signup-done-title {
  font-size: 32px; font-weight: 600;
  letter-spacing: -0.8px;
  color: var(--stone-50);
  margin-bottom: 12px;
  text-transform: lowercase;
}
.signup-done-sub {
  font-size: 15px; color: var(--stone-400);
  max-width: 440px; margin: 0 auto;
}
.signup-done-sub strong { color: var(--amber-400); font-weight: 500; }
.signup-done-meta {
  display: flex; justify-content: center; gap: 20px;
  margin-top: 28px;
  font-family: var(--font-mono); font-size: 12px;
  color: var(--stone-500);
}
.signup-done-meta span { display: inline-flex; align-items: center; gap: 6px; }

/* ─── footer ─── */
.footer {
  border-top: 1px solid var(--surface-border);
  padding: 48px 40px;
}
.footer-row {
  max-width: 1320px; margin: 0 auto;
  display: flex; align-items: center; gap: 32px;
}
.footer-brand {
  display: flex; align-items: center;
  font-size: 16px; font-weight: 500;
  color: var(--stone-200);
  letter-spacing: -0.4px;
}
.footer-links { display: flex; gap: 24px; }
.footer-links a {
  font-size: 13px; color: var(--stone-400);
  transition: color 100ms;
}
.footer-links a:hover { color: var(--stone-50); }
.footer-meta {
  margin-left: auto;
  font-size: 12px; color: var(--stone-500);
  font-family: var(--font-mono);
}

/* ─── pillars ─── */
.pillars-grid {
  display: grid; grid-template-columns: repeat(2, 1fr);
  gap: 1px;
  background: var(--surface-border);
  border: 1px solid var(--surface-border);
  border-radius: 16px;
  overflow: hidden;
}
.pillar {
  background: var(--stone-950);
  padding: 36px 32px;
  display: flex; flex-direction: column; gap: 12px;
  transition: background 200ms;
}
.pillar:hover { background: var(--stone-900); }
.pillar-num {
  font-family: var(--font-mono); font-size: 12px;
  color: var(--amber-400); font-weight: 500;
  letter-spacing: 0.5px;
}
.pillar-title {
  font-size: 22px; font-weight: 600;
  color: var(--stone-50);
  letter-spacing: -0.5px;
  text-transform: lowercase;
}
.pillar-body {
  font-size: 15px; line-height: 1.6;
  color: var(--stone-400);
}

/* ─── how grid: 5 columns ─── */
.how-grid-5 { grid-template-columns: repeat(5, 1fr); }
@media (max-width: 1100px) {
  .how-grid-5 { grid-template-columns: repeat(2, 1fr); }
}

/* ─── modes ─── */
.modes-tabs {
  display: flex; gap: 8px;
  margin-bottom: 24px;
}
.modes-tab {
  background: transparent;
  border: 1px solid var(--surface-border);
  border-radius: 10px;
  padding: 14px 20px;
  display: flex; flex-direction: column; align-items: flex-start; gap: 4px;
  cursor: pointer;
  transition: all 150ms;
  font-family: inherit;
  text-align: left;
}
.modes-tab:hover { background: rgba(231,229,228,0.04); }
.modes-tab.on {
  background: rgba(251,191,36,0.06);
  border-color: rgba(251,191,36,0.3);
}
.modes-tab-tag {
  font-family: var(--font-mono); font-size: 11px;
  color: var(--stone-500);
  text-transform: uppercase; letter-spacing: 0.5px;
}
.modes-tab.on .modes-tab-tag { color: var(--amber-400); }
.modes-tab-label {
  font-size: 15px; font-weight: 600;
  color: var(--stone-300);
  text-transform: lowercase;
}
.modes-tab.on .modes-tab-label { color: var(--stone-50); }

.modes-card {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 32px;
  background: var(--stone-950);
  border: 1px solid var(--surface-border);
  border-radius: 16px;
  padding: 40px;
  align-items: center;
}
.modes-card-title {
  font-size: 32px; font-weight: 600;
  letter-spacing: -1px;
  color: var(--stone-50);
  text-transform: lowercase;
  margin-bottom: 16px;
}
.modes-card-desc {
  font-size: 15px; line-height: 1.65;
  color: var(--stone-400);
  margin-bottom: 24px;
}
.modes-card-list {
  list-style: none; display: flex; flex-direction: column; gap: 12px;
}
.modes-card-list li {
  display: flex; align-items: flex-start; gap: 10px;
  font-size: 14px; color: var(--stone-200);
}
.modes-card-list li svg { margin-top: 5px; flex-shrink: 0; }

.mini-term {
  background: var(--stone-850);
  border: 1px solid var(--surface-border);
  border-radius: 10px;
  overflow: hidden;
  font-family: var(--font-mono);
}
.mini-term-chrome {
  display: flex; align-items: center; gap: 6px;
  padding: 10px 14px;
  border-bottom: 1px solid var(--surface-border);
}
.mini-term-chrome > span:not(.mini-term-title) {
  width: 8px; height: 8px; border-radius: 50%;
  background: var(--stone-700);
}
.mini-term-chrome > span:first-child { background: rgba(251,191,36,0.4); }
.mini-term-title {
  margin-left: 12px;
  font-size: 11px; color: var(--stone-400);
}
.mini-term-body {
  padding: 16px 18px;
  font-size: 12px; line-height: 1.85;
  min-height: 160px;
}
@media (max-width: 1100px) {
  .modes-card { grid-template-columns: 1fr; }
  .pillars-grid { grid-template-columns: 1fr; }
  .hero-inner { grid-template-columns: 1fr; }
  .how-grid { grid-template-columns: repeat(2, 1fr); }
  .perks-grid { grid-template-columns: repeat(2, 1fr); }
  .fw-grid { grid-template-columns: 1fr; }
  .hero-title { font-size: 56px; letter-spacing: -2px; }
  .section-title { font-size: 36px; letter-spacing: -1.2px; }
}
/* ─── consent banner — tucked bottom-right ─── */
.consent {
  position: fixed; bottom: 16px; right: 16px; left: auto;
  width: 280px;
  z-index: 100;
  background: rgba(20,18,16,0.92);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid var(--surface-border);
  border-radius: 10px;
  padding: 12px 14px;
  display: flex; flex-direction: column; gap: 10px;
  font-size: 12px; color: var(--stone-400);
  line-height: 1.45;
  box-shadow: 0 10px 30px rgba(0,0,0,0.4);
  animation: consent-in 250ms var(--ease-out);
}
@keyframes consent-in {
  from { opacity: 0; transform: translateY(8px); }
  to   { opacity: 1; transform: translateY(0); }
}
.consent-text { padding-right: 18px; }
.consent-text a { color: var(--amber-400); text-decoration: underline; text-underline-offset: 2px; }
.consent-actions { display: flex; gap: 6px; }
.consent-btn {
  background: transparent; border: 1px solid var(--surface-border);
  color: var(--stone-300);
  padding: 6px 10px;
  border-radius: 6px;
  font: 500 11px var(--font-sans);
  cursor: pointer; line-height: 1;
  transition: all 100ms;
}
.consent-btn:hover { background: rgba(231,229,228,0.04); color: var(--stone-50); }
.consent-btn.primary {
  background: rgba(251,191,36,0.12); color: var(--amber-400);
  border-color: rgba(251,191,36,0.25); font-weight: 600;
}
.consent-btn.primary:hover { background: rgba(251,191,36,0.18); }
.consent-close {
  position: absolute; top: 6px; right: 6px;
  background: transparent; border: none;
  color: var(--stone-600);
  cursor: pointer; padding: 4px 6px;
  font-size: 14px; line-height: 1;
}
.consent-close:hover { color: var(--stone-300); }
@media (max-width: 600px) {
  .consent {
    width: auto; left: 12px; right: 12px; bottom: 12px;
  }
  .consent-actions .consent-btn { flex: 1; padding: 8px 10px; font-size: 12px; }
}

/* ─── mobile nav (hamburger + drawer) ─── */
.nav-mobile-toggle {
  display: none;
  background: transparent; border: 1px solid var(--surface-border);
  border-radius: 8px;
  width: 40px; height: 40px;
  align-items: center; justify-content: center;
  cursor: pointer;
  margin-left: auto;
  color: var(--stone-200);
  padding: 0;
}
.nav-mobile-toggle:active { background: rgba(231,229,228,0.04); }
.nav-mobile-toggle span {
  display: block; width: 18px; height: 1.5px; background: currentColor;
  position: relative;
}
.nav-mobile-toggle span::before,
.nav-mobile-toggle span::after {
  content: ""; position: absolute; left: 0;
  width: 18px; height: 1.5px; background: currentColor;
}
.nav-mobile-toggle span::before { top: -6px; }
.nav-mobile-toggle span::after  { top:  6px; }
.nav-mobile-drawer {
  display: none;
  position: fixed; top: 60px; left: 0; right: 0;
  background: rgba(12,12,15,0.96);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--surface-border);
  flex-direction: column;
  padding: 20px;
  gap: 4px;
  z-index: 49;
}
.nav-mobile-drawer.open { display: flex; }
.nav-mobile-drawer a {
  font-size: 16px; color: var(--stone-200);
  padding: 14px 12px;
  border-radius: 8px;
}
.nav-mobile-drawer a:active { background: rgba(231,229,228,0.04); }
.nav-mobile-drawer .status-pill { align-self: flex-start; margin: 8px 12px 4px; }

/* allow trust + modes tabs to wrap on any size when needed */
.hero-trust { flex-wrap: wrap; row-gap: 10px; }
.modes-tabs { flex-wrap: wrap; }

@media (max-width: 768px) {
  /* nav */
  .nav { padding: 12px 20px; gap: 14px; }
  .nav-links { display: none; }
  .nav-cta { display: none; }
  .nav-mobile-toggle { display: inline-flex; }

  /* sections */
  section { padding: 64px 20px; }
  .section-head { margin-bottom: 40px; }

  /* hero */
  .hero { padding: 48px 20px 40px; }
  .hero-title { font-size: clamp(40px, 11vw, 52px); letter-spacing: -1.8px; }
  .hero-sub { font-size: 16px; }
  .hero-trust { margin-top: 56px; gap: 10px 14px; }
  .hero-input-wrap { flex-direction: column; padding: 8px; }
  .hero-input { padding: 12px; font-size: 16px; }
  .hero-submit { justify-content: center; padding: 14px 16px; font-size: 14px; }

  /* AppSim — collapse sidebar */
  .appsim-main { grid-template-columns: 1fr; }
  .appsim-side { display: none; }
  .appsim-content { padding: 12px 14px; gap: 12px; }
  .appsim-task-title { min-width: 0; font-size: 12px; }
  .appsim-stages { flex-wrap: wrap; }
  .appsim-pane-meta { display: none; }
  .appsim-intel { height: 240px; padding: 12px 14px; }
  .appsim-term { height: 200px; }
  .appsim-term-meta { display: none; }
  .appsim-grid-3 { grid-template-columns: repeat(3, 1fr); gap: 4px; }
  .appsim-tile { padding: 6px 8px; }
  .appsim-tile-v { font-size: 14px; }

  /* gallery */
  .gallery-tabs {
    display: flex; flex-wrap: nowrap;
    overflow-x: auto;
    width: 100%;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
  }
  .gallery-tabs::-webkit-scrollbar { display: none; }
  .gallery-tab { padding: 10px 14px; flex: 0 0 auto; white-space: nowrap; }
  .gallery-tab .gallery-tab-num { display: none; }
  .gallery-caption-title { font-size: 22px; }

  /* stage pipeline — diagonal labels, all six fit */
  .stage-rail {
    overflow: visible;
    padding: 0 4px 84px;
  }
  .stage-rail::before { left: 18px; right: 18px; }
  .stage-rail-line   { left: 18px; }
  .stage-node { min-width: 0; gap: 6px; padding-bottom: 0; }
  .stage-node-num { display: none; }
  .stage-node-label {
    position: absolute;
    top: 28px; left: 50%;
    transform: rotate(-45deg);
    transform-origin: left top;
    white-space: nowrap;
    font-size: 12px;
    padding-left: 4px;
  }
  .stage-detail { grid-template-columns: 1fr; gap: 12px; }
  .stage-detail-num { font-size: 26px; }
  .stage-detail-title { font-size: 26px; letter-spacing: -0.7px; }
  .stage-detail-desc { font-size: 16px; }

  /* how + perks */
  .how-grid, .how-grid-5, .perks-grid { grid-template-columns: 1fr; }
  .how-card { padding: 28px 24px; }

  /* modes */
  .modes-tab { flex: 1 1 calc(50% - 4px); min-width: 0; padding: 12px 14px; }
  .modes-tab-label { font-size: 14px; }
  .modes-card { padding: 28px 22px; }
  .modes-card-title { font-size: 26px; letter-spacing: -0.7px; }
  .mini-term-body { font-size: 11px; min-height: 140px; padding: 14px; }

  /* faq */
  .faq-q { padding: 20px 22px; gap: 16px; }
  .faq-q-text { font-size: 16px; }
  .faq-a { padding: 0 22px 22px; font-size: 14px; }

  /* signup */
  .signup { padding: 48px 20px 80px; }
  .signup-card { padding: 32px 22px; }
  .signup-title { font-size: 30px; letter-spacing: -1px; }
  .field input, .field select, .field textarea { font-size: 16px; padding: 13px 14px; }
  .field-row { grid-template-columns: 1fr; }
  .signup-actions { flex-direction: column; align-items: stretch; gap: 14px; }
  .signup-actions .btn-amber { justify-content: center; padding: 14px 18px; font-size: 14px; }
  .signup-fineprint { text-align: center; }

  /* footer */
  .footer { padding: 36px 20px; }
  .footer-row { flex-wrap: wrap; gap: 16px; }
  .footer-meta { margin-left: 0; width: 100%; font-size: 11px; }
  .footer-links a { padding: 6px 0; display: inline-block; }

  /* hide tweaks panel on small viewports */
  .twk-panel { display: none !important; }
}

@media (max-width: 480px) {
  .nav { padding: 10px 16px; }
  .nav-brand { font-size: 16px; }
  section { padding: 48px 18px; }
  .hero { padding: 36px 18px 32px; }
  .hero-title { font-size: clamp(32px, 11vw, 40px); letter-spacing: -1.4px; margin: 18px 0 18px; }
  .hero-sub { font-size: 15px; margin-bottom: 24px; }
  .hero-trust { margin-top: 40px; padding-top: 24px; }
  .section-title { font-size: clamp(24px, 7.5vw, 30px); letter-spacing: -0.9px; }
  .section-head { margin-bottom: 32px; }
  .stage-detail-title, .modes-card-title, .signup-title, .gallery-caption-title { font-size: 22px; letter-spacing: -0.6px; }
  .stage-detail-num { font-size: 22px; }
  .signup { padding: 36px 18px 64px; }
  .signup-card { padding: 24px 18px; }
  .footer { padding: 28px 18px; }
  .pillar { padding: 28px 22px; }
  .fw-col { padding: 24px 22px; }
  .how-card { padding: 24px 22px; }
  .appsim-tile-v { font-size: 13px; }
  .appsim-task-title { font-size: 11px; }
  .appsim-stage { font-size: 9px; padding: 2px 6px; }
}
