:root {
  --bg-ivory: #f8f4e8;
  --bg-paper: rgba(255, 255, 255, 0.72);
  --bg-card: rgba(255, 255, 255, 0.78);
  --ink: #101217;
  --muted: #4d5566;
  --line: rgba(9, 18, 38, 0.12);
  --line-strong: rgba(9, 18, 38, 0.2);
  --blue: #0052ff;
  --blue-deep: #062879;
  --blue-panel: rgba(7, 36, 114, 0.72);
  --blue-panel-solid: #0a3ab5;
  --blue-line: rgba(196, 216, 255, 0.22);
  --blue-text: #f7fbff;
  --blue-muted: #c3d4ff;
  --shadow-soft: 0 16px 36px rgba(10, 23, 61, 0.08);
  --shadow-deep: 0 22px 44px rgba(4, 19, 58, 0.18);
  --radius-xl: 28px;
  --radius-lg: 22px;
  --radius-md: 16px;
  --section-pad-top: 88px;
  --section-pad-x: 20px;
  --section-pad-bottom: 72px;
  --nav-height: 76px;
}

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

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-width: 320px;
  color: var(--ink);
  background:
    radial-gradient(circle at top left, rgba(0, 82, 255, 0.12), transparent 28%),
    radial-gradient(circle at 85% 12%, rgba(0, 82, 255, 0.08), transparent 24%),
    linear-gradient(180deg, #fffdf7 0%, var(--bg-ivory) 48%, #eef3ff 100%);
  font-family: "Segoe UI", "Helvetica Neue", Arial, sans-serif;
  overflow-x: hidden;
}

a,
button,
input,
dialog {
  font: inherit;
}

img,
svg {
  display: block;
  max-width: 100%;
}

main {
  position: relative;
  z-index: 1;
}

.skip-link {
  position: absolute;
  left: 12px;
  top: -48px;
  z-index: 100;
  padding: 10px 14px;
  border-radius: 999px;
  background: #fff;
  color: var(--ink);
  text-decoration: none;
}

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

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  padding: 12px 16px 0;
}

.mobile-nav {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: var(--nav-height);
  padding: 14px 16px;
  border: 1px solid rgba(255, 255, 255, 0.62);
  border-radius: 24px;
  background: rgba(255, 255, 255, 0.7);
  box-shadow: var(--shadow-soft);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
}

.brandmark {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--ink);
  font-size: 1rem;
  font-weight: 700;
  letter-spacing: 0.02em;
  text-decoration: none;
  text-transform: uppercase;
}

.brandmark-icon {
  position: relative;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background:
    radial-gradient(circle at 34% 28%, rgba(255, 255, 255, 0.95) 0 8%, transparent 9%),
    conic-gradient(from 215deg, #9ec0ff, #0052ff 34%, #062879 68%, #9ec0ff);
  box-shadow:
    inset 0 0 0 1px rgba(255, 255, 255, 0.62),
    inset 0 -5px 9px rgba(2, 21, 76, 0.34),
    0 0 0 4px rgba(0, 82, 255, 0.1),
    0 8px 16px rgba(0, 82, 255, 0.22);
}

.brandmark-icon::before,
.brandmark-icon::after {
  content: "";
  position: absolute;
  border-radius: 999px;
  pointer-events: none;
}

.brandmark-icon::before {
  inset: 5px;
  border: 1px solid rgba(255, 255, 255, 0.72);
  background: rgba(255, 255, 255, 0.12);
}

.brandmark-icon::after {
  left: 50%;
  top: 50%;
  width: 4px;
  height: 4px;
  background: #fff;
  box-shadow:
    -6px -2px 0 rgba(255, 255, 255, 0.86),
    5px -5px 0 rgba(255, 255, 255, 0.74),
    5px 5px 0 rgba(255, 255, 255, 0.8);
  transform: translate(-50%, -50%);
}

.menu-toggle {
  display: inline-grid;
  gap: 4px;
  padding: 10px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.82);
  color: var(--ink);
}

.menu-toggle span {
  width: 18px;
  height: 2px;
  border-radius: 999px;
  background: currentColor;
}

.mobile-menu {
  position: absolute;
  top: calc(100% + 10px);
  left: 0;
  right: 0;
  display: grid;
  gap: 8px;
  padding: 12px;
  border: 1px solid rgba(255, 255, 255, 0.7);
  border-radius: 20px;
  background: rgba(255, 255, 255, 0.92);
  box-shadow: var(--shadow-soft);
}

.mobile-menu[hidden] {
  display: none;
}

.mobile-menu a {
  display: block;
  padding: 14px 16px;
  border-radius: 14px;
  color: var(--ink);
  text-decoration: none;
  background: rgba(0, 82, 255, 0.04);
}

.hero-section,
.content-section {
  padding: var(--section-pad-top) var(--section-pad-x) var(--section-pad-bottom);
  scroll-margin-top: calc(var(--nav-height) + 28px);
}

.hero-section {
  position: relative;
  padding-top: 72px;
}

.hero-section::before {
  content: "";
  position: absolute;
  inset: 24px 20px auto;
  height: 220px;
  border-radius: 30px;
  background:
    linear-gradient(145deg, rgba(255, 255, 255, 0.8), rgba(225, 236, 255, 0.2)),
    linear-gradient(135deg, rgba(0, 82, 255, 0.08), transparent 65%);
  border: 1px solid rgba(255, 255, 255, 0.7);
  box-shadow: var(--shadow-soft);
  z-index: -1;
}

.hero-copy,
.section-copy {
  max-width: 28rem;
}

.eyebrow {
  display: inline-block;
  margin-bottom: 10px;
  color: rgba(13, 36, 90, 0.66);
  font-size: 0.66rem;
  font-weight: 800;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}

.eyebrow.compact {
  margin-bottom: 6px;
}

h1,
h2,
h3,
p {
  margin: 0;
}

h1 {
  font-size: clamp(2.6rem, 11vw, 3.3rem);
  line-height: 0.98;
  letter-spacing: -0.05em;
}

h2 {
  font-size: clamp(2.1rem, 9vw, 2.55rem);
  line-height: 1.02;
  letter-spacing: -0.045em;
}

h3 {
  font-size: 1.08rem;
  line-height: 1.2;
}

p {
  color: var(--muted);
  font-size: 1rem;
  line-height: 1.6;
}

.hero-subcopy {
  margin-top: 14px;
  font-size: 1.06rem;
}

.section-copy p:last-child,
.hero-copy p:last-child {
  margin-top: 12px;
}

.blue-copy {
  color: var(--blue);
}

.blue-copy-light {
  color: #9fc1ff;
}

.hero-actions {
  display: flex;
  gap: 12px;
  margin-top: 28px;
  flex-wrap: wrap;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 46px;
  padding: 0 18px;
  border-radius: 999px;
  text-decoration: none;
  font-size: 0.95rem;
  font-weight: 700;
}

.button-solid {
  color: #fff;
  background: var(--blue);
  box-shadow: 0 12px 24px rgba(0, 82, 255, 0.24);
}

.button-outline {
  color: var(--ink);
  border: 1px solid var(--line-strong);
  background: rgba(255, 255, 255, 0.65);
}

.demo-card,
.story-card,
.waitlist-card {
  width: min(100%, 30rem);
  margin-top: 28px;
  border: 1px solid var(--line);
  border-radius: var(--radius-xl);
  background: var(--bg-card);
  box-shadow: var(--shadow-soft);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  overflow: hidden;
}

.window-bar,
.story-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 16px 18px;
  border-bottom: 1px solid var(--line);
}

.window-bar-dark {
  background: rgba(18, 25, 39, 0.2);
  border-bottom-color: rgba(255, 255, 255, 0.1);
}

.window-dots {
  display: flex;
  gap: 8px;
}

.dot {
  width: 11px;
  height: 11px;
  border-radius: 50%;
}

.dot.red { background: #ff5f56; }
.dot.yellow { background: #ffbd2e; }
.dot.green { background: #27c93f; }

.window-title,
.story-index {
  color: var(--muted);
  font-size: 0.76rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.cli-log,
.chat-log,
.router-window,
.story-card,
.waitlist-card {
  padding: 0;
}

.cli-log {
  display: grid;
  gap: 16px;
  padding: 18px;
  background: rgba(255, 255, 255, 0.34);
}

.log-entry {
  min-width: 0;
}

.meta {
  margin-bottom: 4px;
  color: rgba(77, 85, 102, 0.84);
  font-size: 0.7rem;
  font-family: "Courier New", monospace;
}

.log-entry p,
.input-bar input {
  font-family: "Courier New", monospace;
  font-size: 0.92rem;
  color: var(--ink);
}

.log-entry-agent p {
  color: var(--blue);
}

.input-bar {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 14px 18px 18px;
  border-top: 1px solid var(--line);
}

.prompt-symbol {
  color: var(--blue);
  font-weight: 700;
}

.input-bar input,
.chat-input-row input {
  width: 100%;
  min-width: 0;
  border: 0;
  background: transparent;
  color: inherit;
}

.chat-window {
  background:
    linear-gradient(180deg, rgba(18, 24, 36, 0.92), rgba(16, 20, 30, 0.96));
  color: #f5f7fb;
  border-color: rgba(255, 255, 255, 0.08);
  box-shadow: var(--shadow-deep);
}

.chat-log {
  display: grid;
  gap: 14px;
  padding: 18px;
}

.message {
  display: grid;
  gap: 6px;
  max-width: 85%;
}

.message.user {
  margin-left: auto;
}

.sender-label {
  color: rgba(210, 220, 245, 0.68);
  font-size: 0.68rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.message p {
  padding: 12px 14px;
  border-radius: 18px;
  color: inherit;
  background: rgba(255, 255, 255, 0.08);
}

.message.user p {
  background: rgba(0, 82, 255, 0.9);
}

.chat-input-row {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 16px 18px 18px;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.chat-input-row button {
  flex: 0 0 34px;
  width: 34px;
  height: 34px;
  border: 0;
  border-radius: 50%;
  background: #fff;
  color: #0f172d;
}

.router-window {
  display: grid;
  gap: 0;
}

.router-header,
.router-estimator,
.router-disclaimer {
  padding: 18px;
}

.router-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
  border-bottom: 1px solid var(--line);
}

.router-status {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--muted);
  font-size: 0.74rem;
}

.router-status span {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: #14a44d;
}

.router-columns,
.model-row {
  display: grid;
  grid-template-columns: minmax(0, 1.7fr) minmax(56px, 0.65fr) minmax(62px, 0.75fr);
  gap: 8px;
  align-items: center;
}

.router-columns {
  padding: 0 18px 10px;
  color: rgba(77, 85, 102, 0.8);
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.model-list {
  display: grid;
}

.model-row {
  width: 100%;
  padding: 14px 18px;
  border: 0;
  border-top: 1px solid rgba(9, 18, 38, 0.08);
  background: transparent;
  color: var(--ink);
  text-align: left;
}

.model-row strong,
.model-row small,
.model-row span:last-child,
.model-row span:nth-child(2) {
  display: block;
}

.model-row small {
  margin-top: 2px;
  color: var(--muted);
  font-size: 0.74rem;
}

.model-row.is-selected {
  background: rgba(0, 82, 255, 0.08);
}

.router-estimator {
  display: grid;
  gap: 12px;
  border-top: 1px solid var(--line);
}

.router-estimator label,
.router-estimator small,
.router-disclaimer,
.placement-tier,
.track-label,
.capability-list article span,
.campaign-editor label,
.campaign-preview small,
.analytics-grid small,
.legal-links small,
.waitlist-dialog-number small {
  font-size: 0.68rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.router-estimator label {
  display: flex;
  justify-content: space-between;
  gap: 10px;
}

.router-estimator output,
.router-estimator strong,
.pipeline-detail span,
.demo-badge {
  color: var(--ink);
  font-weight: 800;
}

input[type="range"] {
  width: 100%;
}

.router-estimator p {
  display: grid;
  gap: 6px;
}

.router-disclaimer {
  padding-top: 0;
  color: rgba(77, 85, 102, 0.84);
}

.story-card {
  padding: 0 0 18px;
}

.story-lead,
.pipeline-detail,
.dashboard-disclaimer,
.legal-meta,
.waitlist-form,
.waitlist-status {
  padding: 0 18px;
}

.waitlist-disclosure {
  margin: 0.8rem 0 0;
  font-size: 0.76rem;
  line-height: 1.5;
  opacity: 0.86;
}

.waitlist-disclosure a { color: inherit; text-underline-offset: 0.16em; }

.story-lead {
  margin-top: 18px;
}

.stack-list,
.brand-value-list,
.capability-list,
.dashboard-grid,
.legal-links {
  display: grid;
  gap: 12px;
  padding: 18px;
}

.stack-item,
.brand-value-list div,
.pipeline-grid button,
.capability-list article,
.campaign-editor,
.campaign-preview,
.analytics-grid div,
.legal-links span,
.legal-links a,
.separation-track {
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  background: rgba(255, 255, 255, 0.48);
}

.stack-item,
.brand-value-list div {
  display: grid;
  grid-template-columns: 40px minmax(0, 1fr);
  gap: 12px;
  padding: 14px;
}

.stack-item > span,
.brand-value-list span {
  display: inline-grid;
  place-items: center;
  width: 40px;
  height: 40px;
  border-radius: 12px;
  background: rgba(0, 82, 255, 0.08);
  color: var(--blue);
  font-size: 0.85rem;
  font-weight: 700;
}

.stack-item strong,
.brand-value-list strong,
.pipeline-grid strong,
.campaign-preview strong,
.analytics-grid strong {
  display: block;
}

.stack-item small,
.brand-value-list small,
.pipeline-grid small,
.separation-track small {
  display: block;
  margin-top: 4px;
  color: var(--muted);
  font-size: 0.85rem;
  line-height: 1.45;
}

.placement-list,
.pipeline-grid,
.analytics-grid {
  display: grid;
  gap: 12px;
  padding: 18px;
}

.placement-card,
.pipeline-grid button {
  width: 100%;
  padding: 16px;
  color: inherit;
  text-align: left;
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  background: rgba(255, 255, 255, 0.52);
}

.placement-card.is-selected,
.pipeline-grid button.is-selected {
  border-color: rgba(0, 82, 255, 0.44);
  background: rgba(0, 82, 255, 0.08);
}

.placement-card div,
.pipeline-grid button > span:last-child {
  display: block;
  margin-top: 8px;
}

.placement-preview,
.pipeline-detail {
  display: grid;
  gap: 8px;
}

.placement-preview {
  margin: 0 18px;
  padding: 16px;
  border: 1px dashed rgba(0, 82, 255, 0.32);
  border-radius: var(--radius-md);
  background: rgba(0, 82, 255, 0.05);
}

.placement-preview span,
.pipeline-detail span {
  color: var(--blue);
  font-size: 0.72rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.separation-track {
  margin: 18px;
  padding: 16px;
}

.track-label {
  display: inline-block;
  margin-bottom: 10px;
  color: var(--muted);
}

.separation-divider {
  display: grid;
  place-items: center;
  margin: 0 18px;
  color: rgba(77, 85, 102, 0.72);
  font-size: 0.72rem;
  letter-spacing: 0.18em;
}

.sponsor-track {
  background: rgba(0, 82, 255, 0.05);
}

.development-note {
  margin: 6px 18px 0;
  font-size: 0.92rem;
}

.waitlist-card {
  padding: 18px;
}

.waitlist-form {
  display: grid;
  gap: 12px;
  padding: 0;
}

.waitlist-turnstile {
  min-width: 0;
}

.waitlist-form input,
.waitlist-form button {
  min-height: 50px;
  width: 100%;
  border-radius: 14px;
}

.waitlist-form input {
  padding: 0 16px;
  border: 1px solid var(--line);
  color: var(--ink);
  background: rgba(255, 255, 255, 0.88);
}

.waitlist-form button {
  border: 0;
  color: #fff;
  background: var(--blue);
  font-weight: 700;
}

.waitlist-form button:disabled {
  opacity: 0.7;
}

.waitlist-status {
  margin-top: 14px;
  padding: 0;
  min-height: 1.6em;
  color: var(--muted);
}

.waitlist-content.is-complete .waitlist-form button {
  background: #0a8541;
}

.theme-business {
  position: relative;
  color: var(--blue-text);
  background:
    radial-gradient(circle at 20% 0%, rgba(159, 193, 255, 0.22), transparent 34%),
    linear-gradient(180deg, #0a2d88 0%, #04194f 100%);
}

.theme-business .section-copy p,
.theme-business .eyebrow,
.theme-business .window-title,
.theme-business .story-index,
.theme-business .router-status,
.theme-business .development-note,
.theme-business .waitlist-status {
  color: var(--blue-muted);
}

.story-card-business,
.business-waitlist-card {
  border-color: var(--blue-line);
  background:
    linear-gradient(180deg, rgba(9, 44, 132, 0.88), rgba(5, 24, 79, 0.94));
  box-shadow: var(--shadow-deep);
}

.story-card-business .story-header,
.story-card-business .window-bar,
.business-waitlist-card {
  border-color: var(--blue-line);
}

.story-card-business .stack-item,
.story-card-business .brand-value-list div,
.story-card-business .placement-card,
.story-card-business .pipeline-grid button,
.story-card-business .capability-list article,
.story-card-business .campaign-editor,
.story-card-business .campaign-preview,
.story-card-business .analytics-grid div,
.story-card-business .legal-links span,
.story-card-business .legal-links a,
.story-card-business .separation-track,
.business-waitlist-card .waitlist-form input {
  border-color: var(--blue-line);
  background: rgba(255, 255, 255, 0.06);
}

.story-card-business p,
.story-card-business h3,
.story-card-business strong,
.story-card-business small,
.story-card-business span,
.business-waitlist-card .waitlist-status,
.business-waitlist-card .waitlist-form input {
  color: var(--blue-text);
}

.story-card-business .brand-value-list small,
.story-card-business .stack-item small,
.story-card-business .pipeline-grid small,
.story-card-business .campaign-editor label span,
.story-card-business .dashboard-disclaimer,
.story-card-business .legal-meta p,
.theme-business .waitlist-form input::placeholder {
  color: var(--blue-muted);
}

.story-card-business .stack-item > span,
.story-card-business .brand-value-list span {
  color: #fff;
  background: rgba(159, 193, 255, 0.18);
}

.pipeline-grid {
  list-style: none;
  margin: 0;
}

.pipeline-grid li {
  min-width: 0;
}

.pipeline-grid button {
  display: grid;
  grid-template-columns: 42px minmax(0, 1fr);
  gap: 12px;
}

.pipeline-grid button > span:first-child {
  display: inline-grid;
  place-items: center;
  width: 42px;
  height: 42px;
  border-radius: 12px;
  background: rgba(0, 82, 255, 0.12);
  color: var(--blue);
  font-size: 0.84rem;
  font-weight: 800;
}

.story-card-business .pipeline-grid button > span:first-child {
  color: #fff;
  background: rgba(159, 193, 255, 0.18);
}

.pipeline-detail p {
  padding-bottom: 18px;
}

.capability-list article,
.campaign-editor,
.campaign-preview,
.legal-links span {
  padding: 16px;
}

.capability-list article h3,
.campaign-editor h3 {
  margin-top: 8px;
  margin-bottom: 8px;
}

.campaign-editor {
  display: grid;
  gap: 12px;
}

.campaign-editor label {
  display: grid;
  gap: 6px;
}

.campaign-editor label span {
  color: var(--muted);
  font-size: 0.96rem;
  font-weight: 500;
  letter-spacing: normal;
  text-transform: none;
}

.campaign-summary {
  display: grid;
  gap: 12px;
  padding: 0 18px 18px;
}

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

.dashboard-disclaimer,
.legal-meta {
  padding-top: 0;
}

.legal-card {
  padding-top: 18px;
}

.legal-links span,
.legal-links a {
  color: inherit;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 16px;
  text-decoration: none;
}

.legal-meta {
  display: grid;
  gap: 10px;
}

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

.waitlist-dialog {
  width: min(calc(100vw - 32px), 26rem);
  padding: 22px 20px 20px;
  border: 1px solid rgba(255, 255, 255, 0.72);
  border-radius: 24px;
  background: rgba(255, 255, 255, 0.94);
  box-shadow: 0 24px 70px rgba(10, 20, 46, 0.18);
}

.waitlist-dialog::backdrop {
  background: rgba(6, 15, 38, 0.52);
  backdrop-filter: blur(4px);
}

.waitlist-dialog-close,
.waitlist-dialog-done {
  border: 0;
  background: transparent;
}

.waitlist-dialog-close {
  position: absolute;
  top: 12px;
  right: 12px;
  width: 36px;
  height: 36px;
  border-radius: 50%;
}

.waitlist-dialog-eyebrow {
  display: inline-block;
  margin-bottom: 10px;
  color: var(--blue);
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.14em;
}

.waitlist-dialog h2 {
  font-size: 2rem;
  margin-bottom: 8px;
}

.waitlist-dialog-number {
  margin: 18px 0;
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  background: rgba(0, 82, 255, 0.04);
}

.waitlist-dialog-number strong {
  display: block;
  margin-top: 8px;
  font-size: 2rem;
}

.waitlist-dialog-done {
  min-height: 46px;
  padding: 0 18px;
  border-radius: 999px;
  color: #fff;
  background: var(--blue);
  font-weight: 700;
}

:focus-visible {
  outline: 3px solid rgba(0, 82, 255, 0.4);
  outline-offset: 3px;
}

@media (min-width: 431px) {
  .hero-section,
  .content-section {
    padding-left: 24px;
    padding-right: 24px;
  }

  .hero-section::before {
    left: 24px;
    right: 24px;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    animation: none !important;
    transition: none !important;
  }
}
