:root {
  --indigo: #4F46E5;
  --coral: #FF6B6B;
  --midnight: #0B1020;
  --cloud: #E5E7EB;
  --offwhite: #FAFAFC;
  --ink: #FAFAFC;
  --muted: #9AA3B8;
  --line: rgba(250, 250, 252, 0.12);
  --gutter: 24px;
}

* { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  background: var(--midnight);
  color: var(--ink);
  font-family: Inter, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-weight: 400;
  line-height: 1.6;
  /* A single soft gradient wash rather than blocks of colour: coral is the
     accent, and the guide keeps it sparing. */
  background-image:
    radial-gradient(60rem 32rem at 12% -12%, rgba(79, 70, 229, 0.42), transparent 62%),
    radial-gradient(44rem 26rem at 96% 4%, rgba(255, 107, 107, 0.24), transparent 60%);
  background-repeat: no-repeat;
}

a { color: inherit; }

.wrap {
  width: 100%;
  max-width: 62rem;
  margin: 0 auto;
  padding: 0 var(--gutter);
}

/* ---------- header ---------- */
header { padding: 22px 0; }
.bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
  row-gap: 12px;
}
.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
  /* Clear space equal to the C mark's height, per the guide. */
  padding: 4px;
}
.brand svg { width: 46px; height: 46px; flex: none; }
.brand b {
  font-weight: 700;
  font-size: clamp(1rem, 4.4vw, 1.3rem);
  letter-spacing: -0.03em;
  line-height: 1.15;
}
/* The separator is the one piece of coral in the lockup. An <i> keeps it out
   of the accessible name, so screen readers still hear "Channel.Exchange". */
.dot { color: var(--coral); font-style: normal; }

.bar-right { display: flex; align-items: center; gap: 22px; flex-wrap: wrap; }
.navlinks { display: flex; align-items: center; gap: 4px; }
.navlinks a {
  font-weight: 500;
  font-size: 0.92rem;
  text-decoration: none;
  color: var(--cloud);
  padding: 8px 12px;
  border-radius: 8px;
  transition: color 0.15s ease, background 0.15s ease;
}
.navlinks a:hover { color: var(--ink); background: rgba(250, 250, 252, 0.06); }
.navlinks a[aria-current="page"] { color: var(--ink); }

.signin {
  font-weight: 500;
  font-size: 0.95rem;
  text-decoration: none;
  padding: 9px 18px;
  border-radius: 10px;
  border: 1px solid var(--line);
  white-space: nowrap;
  transition: border-color 0.15s ease, background 0.15s ease;
}
.signin:hover { border-color: var(--indigo); background: rgba(79, 70, 229, 0.18); }

/* ---------- hero ---------- */
.hero { padding-top: 56px; padding-bottom: 8px; }
h1 {
  font-weight: 700;
  letter-spacing: -0.035em;
  line-height: 1.05;
  margin: 0 0 20px;
  /* Fluid rather than breakpoint-switched, so it reads well at any width. */
  font-size: clamp(2.25rem, 7vw, 4.25rem);
}
h1 .second { color: var(--muted); display: block; }
.lede {
  font-size: clamp(1.05rem, 2.4vw, 1.3rem);
  color: var(--cloud);
  max-width: 34rem;
  margin: 0 0 32px;
  font-weight: 300;
}

.actions { display: flex; flex-wrap: wrap; gap: 12px; margin-bottom: 44px; }
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-weight: 600;
  font-size: 1rem;
  text-decoration: none;
  padding: 13px 24px;
  border-radius: 12px;
  border: 1px solid transparent;
  transition: transform 0.12s ease, opacity 0.15s ease, border-color 0.15s ease;
  cursor: pointer;
}
.btn:active { transform: translateY(1px); }
.btn.primary {
  background: linear-gradient(100deg, var(--indigo), var(--coral));
  color: #fff;
}
.btn.primary:hover { opacity: 0.92; }
.btn.ghost { border-color: var(--line); color: var(--ink); background: transparent; }
.btn.ghost:hover { border-color: var(--indigo); }

.rule {
  height: 3px;
  width: 64px;
  border-radius: 3px;
  background: linear-gradient(90deg, var(--indigo), var(--coral));
  margin: 0 0 20px;
}

/* ---------- page hero (sub-pages) ---------- */
.page-hero { padding-top: 48px; padding-bottom: 8px; }
.page-hero h1 {
  font-size: clamp(1.9rem, 5vw, 2.75rem);
  margin: 0 0 14px;
}
.page-hero .lede { margin-bottom: 8px; }

/* ---------- section scaffolding (shared by the story sections) ---------- */
section.wrap { padding-top: 48px; padding-bottom: 8px; }
section.wrap:last-of-type { padding-bottom: 56px; }
h2 {
  font-weight: 600;
  font-size: 0.78rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--muted);
  margin: 0 0 18px;
}
.section-title {
  font-weight: 600;
  font-size: clamp(1.15rem, 3vw, 1.55rem);
  letter-spacing: -0.015em;
  line-height: 1.35;
  margin: 0 0 12px;
  max-width: 40rem;
}
.section-sub {
  color: var(--cloud);
  font-weight: 300;
  font-size: 0.98rem;
  max-width: 38rem;
  margin: 0 0 24px;
}
.caption {
  font-weight: 600;
  font-size: 0.78rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--muted);
  margin: 0 0 10px;
}

/* ---------- discover/run/compose/exchange overview ---------- */
.quad { display: grid; gap: 20px; grid-template-columns: 1fr; margin: 28px 0 8px; }
.qitem h4 {
  font-weight: 600;
  font-size: 0.82rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  margin: 0 0 6px;
}
.qitem:nth-child(1) h4 { color: var(--indigo); }
.qitem:nth-child(2) h4 { color: #7C6BEA; }
.qitem:nth-child(3) h4 { color: #C4609E; }
.qitem:nth-child(4) h4 { color: var(--coral); }
.qitem p { margin: 0; color: var(--cloud); font-size: 0.92rem; font-weight: 300; }

/* ---------- natural-language discovery preview / resolver ---------- */
.discover-box {
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 22px;
  background: rgba(250, 250, 252, 0.03);
  margin: 0 0 12px;
}
.preview-tag {
  display: inline-block;
  font-size: 0.68rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--muted);
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 4px 10px;
  margin-bottom: 16px;
}
.discover-field {
  display: flex;
  align-items: center;
  gap: 10px;
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 6px 6px 6px 18px;
  background: rgba(11, 16, 32, 0.5);
  transition: border-color 0.15s ease;
}
.discover-field:focus-within { border-color: var(--indigo); }
.discover-input-field {
  flex: 1;
  min-width: 0;
  background: transparent;
  border: none;
  outline: none;
  color: var(--ink);
  font-family: inherit;
  font-size: 0.98rem;
  padding: 9px 0;
}
.discover-input-field::placeholder { color: var(--muted); }
.discover-submit {
  flex: none;
  width: 38px;
  height: 38px;
  border-radius: 9px;
  border: none;
  background: linear-gradient(100deg, var(--indigo), var(--coral));
  color: #fff;
  font-size: 1.05rem;
  line-height: 1;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: opacity 0.15s ease;
}
.discover-submit:hover { opacity: 0.9; }
.discover-examples {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-top: 14px;
}
.example-query {
  display: block;
  width: 100%;
  text-align: left;
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 11px 14px;
  font-family: inherit;
  font-size: 0.88rem;
  color: var(--cloud);
  font-weight: 300;
  background: rgba(250, 250, 252, 0.02);
  text-decoration: none;
  cursor: pointer;
  transition: border-color 0.15s ease, color 0.15s ease, background 0.15s ease;
}
.example-query:hover { border-color: var(--indigo); color: var(--ink); }
.example-query.active {
  border-color: var(--indigo);
  color: var(--ink);
  background: rgba(79, 70, 229, 0.14);
}
.discover-note {
  color: var(--muted);
  font-size: 0.85rem;
  font-weight: 300;
  margin: 16px 0 0;
  line-height: 1.7;
}
.discover-flow {
  font-size: 0.7rem;
  letter-spacing: 0.16em;
  color: var(--muted);
  text-transform: uppercase;
  font-weight: 500;
  margin: 14px 0 0;
}

/* ---------- resolver preview: who/what + intent breakdown ---------- */
.resolve-preview {
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 20px 22px;
  margin: 16px 0 0;
  background: rgba(11, 16, 32, 0.4);
}
.resolve-said-label, .resolve-address-label, .resolve-col-label {
  font-size: 0.68rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--muted);
  font-weight: 600;
  margin: 0 0 6px;
}
.resolve-said {
  font-size: clamp(0.98rem, 2.4vw, 1.08rem);
  font-weight: 500;
  margin: 0 0 18px;
}
.resolve-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
  margin: 0 0 18px;
  padding-bottom: 18px;
  border-bottom: 1px solid var(--line);
}
.resolve-col-value {
  font-size: 0.94rem;
  font-weight: 500;
  margin: 0;
  line-height: 1.5;
}
.resolve-col.who .resolve-col-value { color: var(--ink); }
.resolve-col.intent .resolve-col-value { color: var(--coral); }
.resolve-address { margin: 0; }

/* ---------- discover result stub ---------- */
.result-card {
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 26px;
  background: rgba(250, 250, 252, 0.03);
  margin: 0 0 28px;
}
.result-label {
  color: var(--muted);
  font-size: 0.78rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  font-weight: 600;
  margin: 0 0 10px;
}
.result-query {
  font-size: clamp(1.1rem, 3vw, 1.4rem);
  font-weight: 500;
  margin: 0 0 14px;
  line-height: 1.4;
}
.result-note { color: var(--cloud); font-size: 0.92rem; font-weight: 300; margin: 0; }

/* ---------- today vs. channel.exchange comparison ---------- */
.compare {
  display: grid;
  gap: 16px;
  grid-template-columns: 1fr;
  align-items: stretch;
}
.compare .col {
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 20px;
}
.compare .col ul {
  margin: 0;
  padding-left: 18px;
  color: var(--cloud);
  font-size: 0.92rem;
  font-weight: 300;
  line-height: 1.85;
}
.compare .arrow {
  text-align: center;
  color: var(--muted);
  font-size: 1.3rem;
  line-height: 1;
}

/* ---------- human + machine flow ---------- */
.flow {
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 22px;
  display: grid;
  gap: 12px;
}
.flow-row { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; }
.flow-row.center { justify-content: center; }
.flow-node {
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 10px 16px;
  font-size: 0.88rem;
  font-weight: 500;
}
.flow-node.hub { border-color: var(--indigo); }
.flow-node.result { border-color: var(--coral); }
.flow-arrow { color: var(--muted); font-size: 0.82rem; }

/* ---------- breadth chips ---------- */
.chip-grid { display: flex; flex-wrap: wrap; gap: 10px; }
.chip {
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 7px 14px;
  font-size: 0.85rem;
  color: var(--cloud);
  font-weight: 400;
  background: rgba(250, 250, 252, 0.02);
}
.chip.planned {
  border-style: dashed;
  border-color: rgba(255, 107, 107, 0.4);
  color: var(--coral);
  background: transparent;
}

/* ---------- lifecycle ---------- */
.lifecycle { display: grid; gap: 14px; grid-template-columns: 1fr; }
.step { border: 1px solid var(--line); border-radius: 12px; padding: 16px 16px; }
.step h4 {
  font-weight: 600;
  font-size: 0.78rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--indigo);
  margin: 0 0 8px;
}
.step p { margin: 0; font-size: 0.88rem; color: var(--cloud); font-weight: 300; line-height: 1.6; }
.step.planned { border-style: dashed; border-color: rgba(255, 107, 107, 0.35); }
.step.planned h4 { color: var(--coral); }
.badge-planned {
  display: inline-block;
  font-size: 0.62rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--coral);
  border: 1px solid rgba(255, 107, 107, 0.4);
  border-radius: 999px;
  padding: 2px 8px;
  margin-left: 8px;
  vertical-align: middle;
  font-weight: 600;
}

/* ---------- three platform layers ---------- */
.layers { display: grid; gap: 22px; grid-template-columns: 1fr; }
.layer h3 {
  font-weight: 600;
  font-size: 0.82rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  margin: 0 0 8px;
}
.layer:nth-child(1) h3 { color: var(--indigo); }
.layer:nth-child(2) h3 { color: #7C6BEA; }
.layer:nth-child(3) h3 { color: var(--coral); }
.layer p { margin: 0; color: var(--cloud); font-size: 0.92rem; font-weight: 300; }

/* ---------- address example ---------- */
.example {
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 20px;
  background: rgba(250, 250, 252, 0.03);
  margin: 0 0 20px;
}
.example p { margin: 0 0 10px; color: var(--muted); font-size: 0.88rem; font-weight: 300; }
.addr {
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: clamp(0.8rem, 2.6vw, 1rem);
  /* Long addresses must wrap on a phone rather than scroll the page. */
  word-break: break-word;
  line-height: 1.7;
}
.addr .who { color: var(--ink); font-weight: 600; }
.addr .does { color: var(--coral); }
.addr .dim { color: var(--muted); }

/* ---------- pricing ---------- */
.plan-card {
  border: 1px solid var(--line);
  border-radius: 18px;
  padding: 32px;
  background: rgba(250, 250, 252, 0.03);
  max-width: 26rem;
}
.plan-name {
  font-weight: 600;
  font-size: 0.78rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--indigo);
  margin: 0 0 14px;
}
.plan-price {
  font-size: clamp(2.5rem, 6vw, 3.2rem);
  font-weight: 700;
  letter-spacing: -0.02em;
  margin: 0 0 6px;
}
.plan-price span { font-size: 1rem; color: var(--muted); font-weight: 400; }
.plan-sub { color: var(--muted); font-size: 0.88rem; font-weight: 300; margin: 0 0 22px; }
.plan-list { list-style: none; margin: 0 0 26px; padding: 0; display: grid; gap: 11px; }
.plan-list li {
  display: flex;
  gap: 10px;
  align-items: flex-start;
  color: var(--cloud);
  font-size: 0.92rem;
  font-weight: 300;
  line-height: 1.5;
}
.plan-list li::before { content: "\2713"; color: var(--indigo); font-weight: 700; flex: none; }
.planned-note {
  border: 1px dashed rgba(255, 107, 107, 0.35);
  border-radius: 12px;
  padding: 16px 18px;
  margin-top: 28px;
}
.planned-note p { margin: 0; color: var(--cloud); font-size: 0.88rem; font-weight: 300; line-height: 1.6; }

/* ---------- links ---------- */
.links { display: grid; gap: 0; }
.link {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 4px;
  padding: 16px 2px;
  border-top: 1px solid var(--line);
  text-decoration: none;
  transition: padding-left 0.15s ease;
}
.link:last-child { border-bottom: 1px solid var(--line); }
a.link:hover { padding-left: 8px; }
a.link:hover .link-name { color: var(--coral); }
.link-name { font-weight: 500; font-size: 1.05rem; transition: color 0.15s ease; }
.link-note { color: var(--muted); font-size: 0.85rem; font-weight: 300; }
.link.soon { cursor: default; }
.link.soon .link-name { color: var(--muted); }

/* ---------- footer ---------- */
footer {
  border-top: 1px solid var(--line);
  padding: 28px 0 44px;
  margin-top: 16px;
}
.foot {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
}
.foot-brand { display: flex; align-items: center; gap: 10px; font-weight: 600; letter-spacing: -0.02em; }
.foot-brand svg { width: 30px; height: 30px; }
.pills {
  font-size: 0.7rem;
  letter-spacing: 0.16em;
  color: var(--muted);
  text-transform: uppercase;
  font-weight: 500;
}

@media (min-width: 48rem) {
  :root { --gutter: 40px; }
  .link {
    flex-direction: row;
    align-items: baseline;
    justify-content: space-between;
    gap: 16px;
    padding: 18px 2px;
  }
  .link-note { text-align: right; }
  .hero { padding-top: 80px; padding-bottom: 12px; }
  .page-hero { padding-top: 64px; }
  .example { padding: 26px 28px; }
  .compare { grid-template-columns: 1fr auto 1fr; }
  .lifecycle { grid-template-columns: repeat(6, 1fr); gap: 12px; }
  .layers { grid-template-columns: repeat(3, 1fr); gap: 28px; }
  .quad { grid-template-columns: repeat(4, 1fr); gap: 24px; }
  .discover-examples { flex-direction: row; flex-wrap: wrap; }
  .example-query { flex: 1 1 30%; }
}

@media (prefers-reduced-motion: reduce) {
  * { transition: none !important; }
}
