/* polyxd.com — site styles. Warm neutral ground, ink, one signal accent. */
:root {
  --ground: #f4f1ea;
  --paper: #ffffff;
  --ink: #141414;
  --ink-2: #3f3e3a;
  --muted: #56554f;
  --line: #ddd8cc;
  --line-soft: #ece8de;
  --signal: #ff5a1f;
  --signal-ink: #b8350a;
  --night: #141414;
  --night-2: #1f1e1c;
  --night-3: #262523;
  --night-line: #3a3935;
  --night-text: #f4f1ea;
  --night-muted: #cfcbc0;
  --night-faint: #a9a69d;
  --code-string: #ffb08f;
  --ok: #7ee0a1;
  --display: "Bricolage Grotesque", ui-sans-serif, system-ui, sans-serif;
  --body: "Geist", ui-sans-serif, system-ui, -apple-system, "Segoe UI", sans-serif;
  --mono: "Geist Mono", ui-monospace, SFMono-Regular, Menlo, monospace;
  --gutter: clamp(20px, 5.5vw, 80px);
  --max: 1440px;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}
html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}
body {
  margin: 0;
  background: var(--ground);
  color: var(--ink);
  font-family: var(--body);
  font-size: 17px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
img,
svg {
  display: block;
}
a {
  color: inherit;
}
:focus-visible {
  outline: 3px solid var(--signal);
  outline-offset: 3px;
  border-radius: 4px;
}
.skip {
  position: absolute;
  left: -9999px;
  top: 8px;
  z-index: 100;
  padding: 10px 16px;
  background: var(--ink);
  color: var(--ground);
  border-radius: 999px;
}
.skip:focus {
  left: 8px;
}
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
}
.wrap {
  width: 100%;
  max-width: var(--max);
  margin: 0 auto;
  padding-inline: var(--gutter);
}
.mono {
  font-family: var(--mono);
}
.eyebrow {
  font-family: var(--mono);
  font-size: 13px;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--signal-ink);
}
.display {
  font-family: var(--display);
  font-weight: 700;
  letter-spacing: -0.03em;
  line-height: 1;
  margin: 0;
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 52px;
  padding: 0 24px;
  border-radius: 999px;
  font-weight: 600;
  font-size: 16px;
  text-decoration: none;
  border: 1.5px solid transparent;
  white-space: nowrap;
  cursor: pointer;
  transition: transform 120ms ease, background 120ms ease;
}
.btn:hover {
  transform: translateY(-1px);
}
.btn-signal {
  background: var(--signal);
  color: var(--ink);
}
.btn-ink {
  background: var(--ink);
  color: var(--ground);
}
.btn-line {
  border-color: var(--ink);
  color: var(--ink);
  background: transparent;
}
.btn-small {
  min-height: 44px;
  padding: 0 18px;
  font-size: 15px;
}

/* Header */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: color-mix(in srgb, var(--ground) 88%, transparent);
  backdrop-filter: saturate(1.4) blur(12px);
  border-bottom: 1px solid var(--line);
}
.site-header .wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  min-height: 72px;
}
.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
}
.brand-word {
  font-family: var(--display);
  font-weight: 800;
  font-size: 24px;
  letter-spacing: -0.02em;
}
.site-nav {
  display: flex;
  align-items: center;
  gap: clamp(16px, 2.4vw, 36px);
  font-size: 15px;
  font-weight: 500;
}
.site-nav a:not(.btn) {
  text-decoration: none;
  padding: 10px 0;
}
.site-nav a:not(.btn):hover,
.site-nav a[aria-current="page"] {
  color: var(--signal-ink);
}
@media (max-width: 860px) {
  .site-nav .nav-optional {
    display: none;
  }
}
@media (max-width: 440px) {
  .site-nav .nav-wide {
    display: none;
  }
  .brand-word {
    font-size: 22px;
  }
}

/* Hero */
.hero {
  padding-block: clamp(48px, 7vw, 96px) clamp(56px, 6vw, 88px);
}
.hero-top {
  display: grid;
  grid-template-columns: minmax(0, 1.9fr) minmax(0, 1fr);
  gap: clamp(28px, 5vw, 72px);
  align-items: end;
}
.badge {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  min-height: 32px;
  padding: 0 14px;
  border: 1px solid var(--ink);
  border-radius: 999px;
  font-family: var(--mono);
  font-size: 12.5px;
  letter-spacing: 0.03em;
  text-transform: uppercase;
}
.badge-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--signal);
}
.hero h1 {
  margin: 24px 0 0;
  font-family: var(--display);
  font-weight: 800;
  font-size: clamp(48px, 7.2vw, 108px);
  line-height: 0.95;
  letter-spacing: -0.037em;
  text-wrap: balance;
}
.hero-lede {
  display: flex;
  flex-direction: column;
  gap: 28px;
  padding-bottom: 10px;
}
.hero-lede p {
  margin: 0;
  font-size: clamp(18px, 1.5vw, 20px);
  line-height: 1.5;
  color: var(--ink-2);
  text-wrap: pretty;
}
.cta-row {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}
@media (max-width: 900px) {
  .hero-top {
    grid-template-columns: 1fr;
    align-items: start;
  }
}

/* Demo */
.demo {
  margin-top: clamp(40px, 5vw, 56px);
  padding: clamp(16px, 2vw, 28px);
  background: var(--night);
  color: var(--night-text);
  border-radius: clamp(20px, 2.4vw, 28px);
  display: flex;
  flex-direction: column;
  gap: 20px;
}
.demo-flow {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr);
  gap: 16px;
  align-items: center;
}
.demo-ask,
.demo-json {
  display: flex;
  align-items: center;
  gap: 14px;
  min-height: 60px;
  padding: 0 22px;
  background: var(--night-3);
  border-radius: 16px;
  overflow: hidden;
}
.demo-ask {
  font-size: 19px;
}
.demo-label {
  flex: none;
  font-family: var(--mono);
  font-size: 12px;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--night-faint);
}
.caret {
  width: 2px;
  height: 22px;
  background: var(--signal);
  animation: blink 1.1s steps(1) infinite;
}
@keyframes blink {
  50% {
    opacity: 0;
  }
}
.demo-json {
  font-family: var(--mono);
  font-size: 13px;
  color: #d9d5ca;
  white-space: nowrap;
}
.demo-json .s {
  color: var(--code-string);
}
.demo-arrow {
  color: var(--night-faint);
}
.demo-tabs {
  display: none;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 6px;
  padding: 4px;
  background: var(--night-3);
  border-radius: 14px;
}
.demo-tabs button {
  min-height: 44px;
  border: 0;
  border-radius: 10px;
  background: transparent;
  color: var(--night-muted);
  font: 600 14px var(--body);
  cursor: pointer;
}
.demo-tabs button[aria-selected="true"] {
  background: var(--ground);
  color: var(--ink);
}
.renders {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 20px;
}
.render {
  display: flex;
  flex-direction: column;
  gap: 14px;
  margin: 0;
}
.stage {
  min-height: 380px;
  padding: 32px 28px;
  border-radius: 20px;
  display: flex;
  align-items: center;
  justify-content: center;
}
.render figcaption {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  font-size: 14px;
}
.render figcaption strong {
  color: var(--night-text);
  font-weight: 600;
}
.render figcaption span {
  font-family: var(--mono);
  font-size: 12px;
  color: var(--night-faint);
}
.demo-note {
  margin: 0;
  text-align: center;
  font-size: 15px;
  color: var(--night-faint);
}
.demo-note a {
  color: var(--night-text);
}
@media (max-width: 1000px) {
  .demo-flow {
    grid-template-columns: 1fr;
  }
  .demo-arrow,
  .demo-json {
    display: none;
  }
  .demo-tabs {
    display: grid;
  }
  .renders {
    grid-template-columns: 1fr;
  }
  .render[hidden] {
    display: none;
  }
  .stage {
    min-height: 320px;
    padding: 20px 16px;
  }
}

/* The three renderings use each design system's real token values (see packages/ds-*). */
.m3 {
  background: #fdf7ff;
}
.m3 .card {
  width: 100%;
  padding: 24px;
  background: #ece6ee;
  border-radius: 28px;
  font-family: Roboto, sans-serif;
  color: #1d1b20;
  display: flex;
  flex-direction: column;
  gap: 14px;
}
.m3 .t {
  font-size: 20px;
}
.m3 .d {
  font-size: 14px;
  line-height: 1.45;
  color: #49454e;
}
.m3 .row {
  display: flex;
  justify-content: space-between;
  padding: 8px 0;
  border-bottom: 1px solid #cac4cf;
  font-size: 14px;
}
.m3 .row span:first-child {
  color: #49454e;
}
.m3 .acts {
  display: flex;
  justify-content: flex-end;
  gap: 8px;
  padding-top: 4px;
}
.m3 .b {
  display: inline-flex;
  align-items: center;
  height: 40px;
  padding: 0 20px;
  border-radius: 20px;
  font-size: 14px;
  font-weight: 500;
}
.m3 .b2 {
  background: #e8def8;
  border: 1px solid #7a757f;
  color: #4a4458;
}
.m3 .b1 {
  background: #65558f;
  color: #fff;
}
.carbon {
  background: #fff;
}
.carbon .card {
  width: 100%;
  background: #f4f4f4;
  font-family: "IBM Plex Sans", sans-serif;
  color: #161616;
}
.carbon .in {
  padding: 20px 20px 0;
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.carbon .t {
  font-size: 20px;
}
.carbon .d {
  font-size: 14px;
  line-height: 1.45;
  color: #525252;
}
.carbon .row {
  display: flex;
  justify-content: space-between;
  padding: 8px 0;
  border-bottom: 1px solid #c6c6c6;
  font-size: 14px;
}
.carbon .row span:first-child {
  color: #525252;
}
.carbon .acts {
  display: grid;
  grid-template-columns: 1fr 1fr;
  margin-top: 24px;
}
.carbon .b {
  height: 56px;
  padding: 14px 16px;
  font-size: 14px;
  color: #fff;
}
.carbon .b2 {
  background: #393939;
}
.carbon .b1 {
  background: #0f62fe;
}
.antd {
  background: #f5f5f5;
}
.antd .card {
  width: 100%;
  padding: 20px 24px;
  background: #fff;
  border-radius: 8px;
  box-shadow: 0 6px 16px rgb(0 0 0 / 0.08), 0 3px 6px -4px rgb(0 0 0 / 0.12);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  color: #1f1f1f;
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.antd .t {
  font-size: 16px;
  font-weight: 600;
}
.antd .d {
  font-size: 14px;
  line-height: 1.5;
  color: #595959;
}
.antd .row {
  display: flex;
  justify-content: space-between;
  padding: 8px 0;
  border-bottom: 1px solid #f0f0f0;
  font-size: 14px;
}
.antd .row span:first-child {
  color: #595959;
}
.antd .acts {
  display: flex;
  justify-content: flex-end;
  gap: 8px;
  padding-top: 4px;
}
.antd .b {
  display: inline-flex;
  align-items: center;
  height: 32px;
  padding: 0 15px;
  border-radius: 6px;
  font-size: 14px;
}
.antd .b2 {
  border: 1px solid #d9d9d9;
}
.antd .b1 {
  background: #0958d9;
  color: #fff;
}

/* Proof strip */
.proof {
  border-block: 1px solid var(--line);
}
.proof .wrap {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 24px;
  padding-block: clamp(36px, 4vw, 56px);
}
.stat {
  display: flex;
  flex-direction: column;
  gap: 6px;
  margin: 0;
}
.stat dt {
  order: 2;
  font-size: 16px;
  line-height: 1.4;
  color: var(--muted);
}
.stat dd {
  order: 1;
  margin: 0;
  font-family: var(--display);
  font-weight: 700;
  font-size: clamp(40px, 4vw, 56px);
  line-height: 1;
  letter-spacing: -0.03em;
}
@media (max-width: 800px) {
  .proof .wrap {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 28px 16px;
  }
}

/* Sections */
.section {
  padding-block: clamp(72px, 9vw, 120px);
}
.section-head {
  display: grid;
  grid-template-columns: minmax(0, 1.6fr) minmax(0, 1fr);
  gap: clamp(20px, 5vw, 64px);
  align-items: end;
  margin-bottom: clamp(36px, 4vw, 56px);
}
.section-head h2,
.split h2 {
  font-size: clamp(38px, 4.6vw, 64px);
  text-wrap: balance;
}
.section-head p,
.split p {
  margin: 0;
  font-size: clamp(17px, 1.3vw, 19px);
  line-height: 1.6;
  color: var(--ink-2);
  text-wrap: pretty;
}
@media (max-width: 900px) {
  .section-head {
    grid-template-columns: 1fr;
  }
}
.steps {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 20px;
  counter-reset: step;
}
.step {
  display: flex;
  flex-direction: column;
  gap: 14px;
  min-height: 360px;
  padding: 30px;
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 24px;
}
.step h3 {
  margin: 0;
  font-family: var(--display);
  font-weight: 700;
  font-size: 30px;
  letter-spacing: -0.02em;
}
.step p {
  margin: 0;
  font-size: 16px;
  color: var(--ink-2);
}
.step-foot {
  margin-top: auto;
}
.quote {
  padding: 14px 16px;
  background: var(--ground);
  border-radius: 12px;
  font-size: 15px;
}
.code-mini {
  padding: 14px 16px;
  background: var(--night);
  color: #d9d5ca;
  border-radius: 12px;
  font: 12.5px/1.7 var(--mono);
  white-space: pre;
  overflow-x: auto;
}
.swatches {
  display: flex;
  gap: 8px;
}
.swatches span {
  flex: 1;
  height: 44px;
}
.chips {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  font: 13px var(--mono);
}
.chip {
  padding: 6px 12px;
  border: 1px solid var(--ink);
  border-radius: 999px;
}
.chip-soft {
  border-color: var(--line);
  background: var(--paper);
}
.chip-signal {
  background: var(--signal);
  border-color: var(--signal);
}
@media (max-width: 1100px) {
  .steps {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .step {
    min-height: 0;
  }
}
@media (max-width: 600px) {
  .steps {
    grid-template-columns: 1fr;
  }
}

/* Dark band */
.band {
  margin-inline: clamp(12px, 2.8vw, 40px);
  padding: clamp(40px, 6.5vw, 96px) clamp(20px, 5.5vw, 80px);
  background: var(--night);
  color: var(--night-text);
  border-radius: clamp(24px, 2.6vw, 36px);
}
.band .eyebrow {
  color: #ff8a5f;
}
.band p {
  color: var(--night-muted);
}
.split {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: clamp(36px, 6vw, 80px);
  align-items: center;
}
.split-text {
  display: flex;
  flex-direction: column;
  gap: 24px;
}
@media (max-width: 900px) {
  .split {
    grid-template-columns: 1fr;
  }
}
.tree {
  margin: 0;
  padding: clamp(18px, 2.4vw, 32px);
  background: var(--night-2);
  border: 1px solid var(--night-line);
  border-radius: 24px;
  font: clamp(12px, 1.1vw, 15px) / 1.9 var(--mono);
  color: #d9d5ca;
  white-space: pre;
  overflow-x: auto;
}
.tree .c {
  color: #8f8c84;
}
.tree .s {
  color: var(--code-string);
}
.tree .ok {
  color: var(--ok);
}

/* Memory */
.turns {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
}
.turn {
  display: flex;
  flex-direction: column;
  gap: 12px;
  padding: 24px;
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 20px;
}
.turn .when {
  font: 12px var(--mono);
  letter-spacing: 0.04em;
  color: var(--muted);
}
.bar {
  height: 12px;
  width: 60%;
  background: var(--ink);
  border-radius: 6px;
}
.field {
  height: 40px;
  border: 1.5px solid var(--ink);
  border-radius: 10px;
}
.pill {
  height: 40px;
  width: 50%;
  background: var(--signal);
  border-radius: 999px;
}
.stack {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

/* Taste */
.direction {
  padding: clamp(20px, 2.4vw, 32px);
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 24px;
  display: flex;
  flex-direction: column;
  gap: 18px;
}
.direction-head {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 12px;
  flex-wrap: wrap;
}
.direction-head strong {
  font-family: var(--display);
  font-size: 22px;
}
.direction-head span {
  font: 12px var(--mono);
  color: var(--muted);
}
.direction dl {
  margin: 0;
}
.direction dl div {
  display: grid;
  grid-template-columns: 110px 1fr;
  gap: 16px;
  padding: 12px 0;
  border-bottom: 1px solid var(--line-soft);
}
.direction dl div:last-child {
  border-bottom: 0;
}
.direction dt {
  color: var(--muted);
}
.direction dd {
  margin: 0;
}
.flag {
  padding: 14px 16px;
  background: #fff1ea;
  border: 1px solid #ffc3ab;
  border-radius: 12px;
  font-size: 15px;
}
@media (max-width: 900px) {
  .taste .split > :first-child {
    order: 2;
  }
}

/* Call to action */
.cta {
  margin-inline: clamp(12px, 2.8vw, 40px);
  padding: clamp(36px, 5.5vw, 80px);
  background: var(--signal);
  border-radius: clamp(24px, 2.6vw, 36px);
  display: grid;
  grid-template-columns: minmax(0, 1.7fr) minmax(0, 1fr);
  gap: clamp(28px, 5vw, 64px);
  align-items: center;
}
.cta h2 {
  font-weight: 800;
  font-size: clamp(40px, 5vw, 72px);
  letter-spacing: -0.035em;
  line-height: 0.96;
  text-wrap: balance;
}
.cta p {
  margin: 18px 0 0;
  font-size: clamp(17px, 1.3vw, 19px);
  color: #2a1a12;
  max-width: 44ch;
}
.waitlist {
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.waitlist label {
  font-weight: 600;
}
.waitlist input[type="email"] {
  min-height: 56px;
  padding: 0 20px;
  border: 1.5px solid var(--ink);
  border-radius: 999px;
  background: var(--ground);
  font: 17px var(--body);
  color: var(--ink);
}
.waitlist .hp {
  position: absolute;
  left: -9999px;
}
.waitlist-status {
  min-height: 1.5em;
  margin: 0;
  font-weight: 600;
  color: var(--ink);
}
@media (max-width: 900px) {
  .cta {
    grid-template-columns: 1fr;
  }
}

/* Footer */
.site-footer .wrap {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding-block: 48px;
  font-size: 15px;
  color: var(--muted);
}
.site-footer nav {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
}
.site-footer a {
  text-decoration: none;
}
.site-footer a:hover {
  color: var(--signal-ink);
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
  *,
  *::before,
  *::after {
    animation: none !important;
    transition: none !important;
  }
}
