/* Ironstone — shared site styles. Dark, product-first; the cobalt comes from the bot logos. */

:root {
  --bg: #0a0b0f;
  --bg-2: #0e1015;
  --surface: #13151b;
  --surface-2: #181b22;
  --line: rgba(255, 255, 255, 0.07);
  --line-strong: rgba(255, 255, 255, 0.13);
  --text: #ecedf1;
  --text-2: #b9bbc4;
  --muted: #80838f;
  --cobalt: #6476ff;
  --cobalt-2: #4c5ff0;
  --cobalt-soft: rgba(100, 118, 255, 0.14);
  --ok: #3ccf8e;
  --warn: #f2b24c;

  --max: 1180px;
  --gutter: clamp(16px, 4vw, 40px);
  --radius: 16px;
  --sans: "Geist", ui-sans-serif, system-ui, -apple-system, sans-serif;
  --mono: "Geist Mono", ui-monospace, "SFMono-Regular", Menlo, monospace;
}

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

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

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

a {
  color: inherit;
}

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

code,
.mono {
  font-family: var(--mono);
}

::selection {
  background: rgba(100, 118, 255, 0.35);
}

:focus-visible {
  outline: 2px solid var(--cobalt);
  outline-offset: 3px;
  border-radius: 6px;
}

.skip-link {
  position: absolute;
  left: 16px;
  top: -60px;
  z-index: 100;
  padding: 10px 14px;
  border-radius: 8px;
  background: var(--text);
  color: var(--bg);
  text-decoration: none;
}
.skip-link:focus {
  top: 12px;
}

.wrap {
  width: 100%;
  max-width: calc(var(--max) + var(--gutter) * 2);
  margin: 0 auto;
  padding: 0 var(--gutter);
}

/* ── Header ── */

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  border-bottom: 1px solid var(--line);
  background: rgba(10, 11, 15, 0.72);
  backdrop-filter: saturate(160%) blur(14px);
  -webkit-backdrop-filter: saturate(160%) blur(14px);
}
.site-header .wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  height: 64px;
}
.wordmark {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  font-weight: 600;
  font-size: 16px;
  letter-spacing: -0.01em;
}
.wordmark img {
  width: 28px;
  height: 28px;
  border-radius: 8px;
  box-shadow: 0 0 0 1px var(--line-strong);
}
.site-nav {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 14px;
}
.site-nav a {
  padding: 7px 12px;
  border-radius: 8px;
  text-decoration: none;
  color: var(--muted);
  transition: color 0.15s ease, background-color 0.15s ease;
}
.site-nav a:hover {
  color: var(--text);
  background: rgba(255, 255, 255, 0.05);
}
.site-nav .nav-panel {
  margin-left: 8px;
  color: var(--bg);
  background: var(--text);
  font-weight: 500;
}
.site-nav .nav-panel:hover {
  color: var(--bg);
  background: #fff;
}

/* ── Type ── */

.eyebrow {
  margin: 0;
  font-family: var(--mono);
  font-size: 12.5px;
  letter-spacing: 0.02em;
  color: var(--cobalt);
}

.display {
  margin: 0;
  font-weight: 650;
  font-size: clamp(2.6rem, 5.4vw, 4.4rem);
  line-height: 1.02;
  letter-spacing: -0.045em;
  text-wrap: balance;
  background: linear-gradient(180deg, #ffffff 30%, #a9adbd 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.h2 {
  margin: 0;
  font-weight: 620;
  font-size: clamp(1.75rem, 3.2vw, 2.5rem);
  line-height: 1.1;
  letter-spacing: -0.035em;
  text-wrap: balance;
}

.lede {
  margin: 0;
  max-width: 36em;
  font-size: clamp(1.03rem, 1.3vw, 1.15rem);
  color: var(--text-2);
}

.muted {
  color: var(--muted);
}

/* ── Buttons ── */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  height: 44px;
  padding: 0 20px;
  border-radius: 11px;
  border: 1px solid transparent;
  background: var(--cobalt-2);
  color: #fff;
  font: 550 15px/1 var(--sans);
  text-decoration: none;
  cursor: pointer;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.18), 0 8px 24px -10px rgba(76, 95, 240, 0.7);
  transition: background-color 0.15s ease, border-color 0.15s ease, transform 0.15s ease;
}
.btn:hover {
  background: var(--cobalt);
}
.btn:active {
  transform: translateY(1px);
}
.btn-ghost {
  background: rgba(255, 255, 255, 0.04);
  border-color: var(--line-strong);
  color: var(--text);
  box-shadow: none;
}
.btn-ghost:hover {
  background: rgba(255, 255, 255, 0.08);
}
.btn[aria-disabled="true"] {
  background: rgba(255, 255, 255, 0.04);
  border-color: var(--line);
  color: var(--muted);
  box-shadow: none;
  cursor: not-allowed;
}
.btn-row {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.text-link {
  color: var(--cobalt);
  text-decoration: none;
}
.text-link:hover {
  text-decoration: underline;
  text-underline-offset: 3px;
}

/* ── Sections ── */

.section {
  position: relative;
  padding: clamp(48px, 7vw, 84px) 0;
}
.section-head {
  display: grid;
  gap: 14px;
  max-width: 720px;
  margin-bottom: 44px;
}
.section-head p:not(.eyebrow) {
  margin: 0;
  color: var(--text-2);
  font-size: 17px;
}
.section-head > div {
  display: grid;
  gap: 14px;
}

/* ── Hero ── */

.hero {
  position: relative;
  padding: clamp(56px, 8vw, 104px) 0 clamp(56px, 8vw, 96px);
  overflow: hidden;
}
.hero::before {
  content: "";
  position: absolute;
  top: -220px;
  right: -120px;
  width: 760px;
  height: 620px;
  background: radial-gradient(closest-side, rgba(100, 118, 255, 0.22), transparent);
  pointer-events: none;
}
.hero::after {
  content: "";
  position: absolute;
  inset: 0;
  background-image: linear-gradient(var(--line) 1px, transparent 1px), linear-gradient(90deg, var(--line) 1px, transparent 1px);
  background-size: 56px 56px;
  mask-image: radial-gradient(ellipse 70% 60% at 70% 30%, #000, transparent 75%);
  -webkit-mask-image: radial-gradient(ellipse 70% 60% at 70% 30%, #000, transparent 75%);
  opacity: 0.5;
  pointer-events: none;
}
.hero > .wrap {
  position: relative;
  z-index: 1;
}
.hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(0, 520px);
  gap: clamp(36px, 5vw, 72px);
  align-items: center;
}
.hero-copy {
  display: grid;
  gap: 22px;
}
.hero-copy > .eyebrow {
  width: max-content;
  padding: 5px 11px;
  border: 1px solid var(--line-strong);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.03);
  color: var(--text-2);
}
.hero-copy .btn-row {
  margin-top: 6px;
}
.hero-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 6px 0 0;
  padding: 0;
  list-style: none;
  font-size: 13px;
  color: var(--text-2);
}
.hero-meta li {
  padding: 5px 11px;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.025);
}

/* ── Product catalog (bento) ── */

.catalog {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
}
.catalog-row {
  position: relative;
  display: grid;
  grid-template-columns: 48px minmax(0, 1fr) auto;
  grid-template-areas:
    "logo . tag"
    "name name name"
    "job job job"
    "no . price";
  align-content: start;
  gap: 0 14px;
  min-height: 248px;
  padding: 24px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: linear-gradient(180deg, var(--surface-2), var(--surface));
  text-decoration: none;
  overflow: hidden;
  transition: border-color 0.2s ease, transform 0.2s ease;
}
.catalog-row:first-child {
  grid-column: span 2;
  background:
    radial-gradient(120% 140% at 100% 0%, rgba(100, 118, 255, 0.16), transparent 55%),
    linear-gradient(180deg, var(--surface-2), var(--surface));
}
a.catalog-row:hover {
  border-color: var(--line-strong);
  transform: translateY(-2px);
}
.catalog-row img {
  grid-area: logo;
  width: 48px;
  height: 48px;
  border-radius: 12px;
  box-shadow: 0 0 0 1px var(--line-strong);
}
.catalog-row .tag {
  grid-area: tag;
  align-self: start;
}
.catalog-name {
  grid-area: name;
  margin-top: 26px;
  font-weight: 620;
  font-size: 22px;
  letter-spacing: -0.03em;
}
.catalog-job {
  grid-area: job;
  margin-top: 6px;
  color: var(--text-2);
  font-size: 15px;
  max-width: 34em;
}
.catalog-no {
  grid-area: no;
  align-self: end;
  margin-top: 22px;
  font-family: var(--mono);
  font-size: 12px;
  color: var(--muted);
}
.catalog-price {
  grid-area: price;
  align-self: end;
  margin-top: 22px;
  font-family: var(--mono);
  font-size: 13px;
  color: var(--text);
}
.catalog-go {
  position: absolute;
  right: 24px;
  bottom: 22px;
  display: none;
}
.catalog-row.is-static {
  opacity: 0.6;
}
.catalog-row.is-static .catalog-price {
  display: none;
}

.tag {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  width: max-content;
  height: 24px;
  padding: 0 9px;
  border-radius: 999px;
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--muted);
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--line);
}
.tag::before {
  content: "";
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: currentColor;
  box-shadow: 0 0 8px currentColor;
}
.tag-ready {
  color: var(--ok);
  background: rgba(60, 207, 142, 0.08);
  border-color: rgba(60, 207, 142, 0.2);
}
.tag-beta {
  color: var(--warn);
  background: rgba(242, 178, 76, 0.08);
  border-color: rgba(242, 178, 76, 0.22);
}
.tag-soon::before {
  box-shadow: none;
}

/* ── Principles / capabilities / steps: card grids ── */

.principles,
.capabilities,
.steps {
  display: grid;
  gap: 14px;
}
.principles {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}
.capabilities {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}
.steps {
  margin: 0;
  padding: 0;
  list-style: none;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  counter-reset: step;
}

.principle,
.capability,
.steps li {
  padding: 24px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
}
.principle {
  display: grid;
  gap: 18px;
  align-content: start;
}
.principle-no,
.steps li::before {
  display: grid;
  place-items: center;
  width: 32px;
  height: 32px;
  border-radius: 9px;
  border: 1px solid rgba(100, 118, 255, 0.3);
  background: var(--cobalt-soft);
  color: var(--cobalt);
  font-family: var(--mono);
  font-size: 12.5px;
}
.steps li {
  counter-increment: step;
}
.steps li::before {
  content: "0" counter(step);
  margin-bottom: 18px;
}
.principle h3,
.capability h3,
.steps h3 {
  margin: 0 0 8px;
  font-size: 16.5px;
  font-weight: 600;
  letter-spacing: -0.015em;
}
.principle p,
.capability p,
.steps p {
  margin: 0;
  color: var(--muted);
  font-size: 14.5px;
  line-height: 1.6;
}
.capability {
  transition: border-color 0.2s ease;
}
.capability:hover {
  border-color: var(--line-strong);
}

code {
  font-size: 0.88em;
}
.principle code,
.capability code,
.steps code,
.showcase-copy code,
.faq code,
.note code {
  padding: 1px 6px;
  border-radius: 6px;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.05);
  color: #c9cfff;
}

/* ── Tables ── */

.table-scroll {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
  overflow: hidden;
}
.table {
  width: 100%;
  border-collapse: collapse;
  font-size: 15px;
}
.table th,
.table td {
  padding: 15px 20px;
  text-align: left;
  vertical-align: top;
  border-bottom: 1px solid var(--line);
}
.table tbody tr:last-child th,
.table tbody tr:last-child td {
  border-bottom: 0;
}
.table tbody tr {
  transition: background-color 0.15s ease;
}
.table tbody tr:hover {
  background: rgba(255, 255, 255, 0.02);
}
.table thead th {
  font-family: var(--mono);
  font-size: 11.5px;
  font-weight: 500;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--muted);
  background: rgba(255, 255, 255, 0.02);
}
.table td {
  color: var(--text-2);
}
.table .num {
  font-family: var(--mono);
  text-align: right;
  white-space: nowrap;
  color: var(--text);
}
.table code {
  font-size: 13.5px;
  color: #c9cfff;
  white-space: nowrap;
}
.table th[scope="row"] {
  font-weight: 550;
  width: 32%;
}
.table th[scope="row"] .tag {
  margin-left: 8px;
  vertical-align: middle;
}

/* ── Product page ── */

.crumbs {
  display: flex;
  gap: 8px;
  margin: 0;
  font-family: var(--mono);
  font-size: 12.5px;
  color: var(--muted);
}
.crumbs a {
  text-decoration: none;
}
.crumbs a:hover {
  color: var(--text);
}

.product-title {
  display: flex;
  align-items: center;
  gap: 18px;
}
.product-title img {
  width: 64px;
  height: 64px;
  border-radius: 16px;
  flex-shrink: 0;
  box-shadow: 0 0 0 1px var(--line-strong), 0 12px 30px -10px rgba(100, 118, 255, 0.5);
}

.spec-strip {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  margin: 10px 0 0;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.02);
}
.spec-strip div {
  padding: 14px 16px;
}
.spec-strip div + div {
  border-left: 1px solid var(--line);
}
.spec-strip dt {
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--muted);
}
.spec-strip dd {
  margin: 6px 0 0;
  font-weight: 600;
  font-size: 15.5px;
}

.showcase {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 540px);
  gap: clamp(36px, 5vw, 72px);
  align-items: center;
  padding: clamp(28px, 4vw, 48px);
  border: 1px solid var(--line);
  border-radius: 24px;
  background:
    radial-gradient(90% 120% at 100% 50%, rgba(100, 118, 255, 0.09), transparent 60%),
    var(--bg-2);
}
.showcase + .showcase {
  margin-top: 20px;
}
.showcase-copy {
  display: grid;
  gap: 16px;
  align-content: start;
}
.showcase-copy p {
  margin: 0;
  color: var(--text-2);
}
.checklist {
  margin: 6px 0 0;
  padding: 0;
  list-style: none;
  display: grid;
  gap: 10px;
  font-size: 15px;
  color: var(--text-2);
}
.checklist li {
  position: relative;
  padding-left: 30px;
}
.checklist li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 3px;
  width: 18px;
  height: 18px;
  border-radius: 6px;
  background:
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%238a98ff' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 12l5 5L19 8'/%3E%3C/svg%3E") center / 11px no-repeat,
    var(--cobalt-soft);
}
.checklist b {
  color: var(--text);
  font-weight: 600;
}

.note {
  margin: 20px 0 0;
  padding: 14px 18px;
  border: 1px solid rgba(100, 118, 255, 0.25);
  border-radius: 12px;
  background: var(--cobalt-soft);
  color: var(--text-2);
  font-size: 15px;
}
.note b {
  color: var(--text);
}

/* ── Pricing ── */

.plans {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
  align-items: stretch;
}
.plan {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 16px;
  padding: 28px;
  border: 1px solid var(--line);
  border-radius: 20px;
  background: var(--surface);
}
.plan:nth-child(2) {
  border-color: rgba(100, 118, 255, 0.45);
  background:
    radial-gradient(100% 80% at 50% 0%, rgba(100, 118, 255, 0.16), transparent 70%),
    var(--surface);
  box-shadow: 0 20px 60px -30px rgba(100, 118, 255, 0.6);
}
.plan:nth-child(2)::before {
  content: "Best value";
  position: absolute;
  top: 24px;
  right: 24px;
  padding: 3px 9px;
  border-radius: 999px;
  background: var(--cobalt-soft);
  color: #b8c1ff;
  font-family: var(--mono);
  font-size: 11px;
}
.plan-name {
  font-family: var(--mono);
  font-size: 12.5px;
  color: var(--muted);
}
.plan .plan-price {
  margin: 0;
  font-weight: 650;
  font-size: 46px;
  line-height: 1;
  letter-spacing: -0.045em;
  color: var(--text);
}
.plan .plan-price small {
  font-size: 15px;
  font-weight: 450;
  letter-spacing: 0;
  color: var(--muted);
}
.plan p {
  margin: 0;
  font-size: 14.5px;
  color: var(--text-2);
}
.plan ul {
  margin: 0;
  padding: 18px 0 0;
  border-top: 1px solid var(--line);
  list-style: none;
  display: grid;
  gap: 10px;
  font-size: 14.5px;
  color: var(--text-2);
}
.plan li {
  position: relative;
  padding-left: 24px;
}
.plan li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 5px;
  width: 14px;
  height: 14px;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%238a98ff' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 12l5 5L19 8'/%3E%3C/svg%3E") center / contain no-repeat;
}
.plan .btn {
  margin-top: auto;
  width: 100%;
}
.plan-dark {
  background: linear-gradient(180deg, #181a21, #111318);
}

/* ── FAQ ── */

.faq {
  display: grid;
  gap: 10px;
  max-width: 860px;
}
.faq details {
  border: 1px solid var(--line);
  border-radius: 14px;
  background: var(--surface);
  transition: border-color 0.15s ease;
}
.faq details[open] {
  border-color: var(--line-strong);
}
.faq summary {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 24px;
  padding: 18px 22px;
  cursor: pointer;
  list-style: none;
  font-weight: 550;
  font-size: 16px;
}
.faq summary::-webkit-details-marker {
  display: none;
}
.faq summary::after {
  content: "";
  flex-shrink: 0;
  width: 10px;
  height: 10px;
  border-right: 1.5px solid var(--muted);
  border-bottom: 1.5px solid var(--muted);
  transform: rotate(45deg) translateY(-3px);
  transition: transform 0.2s ease;
}
.faq details[open] summary::after {
  transform: rotate(-135deg) translateY(-2px);
}
.faq details p {
  margin: 0;
  padding: 0 22px 20px;
  color: var(--text-2);
  font-size: 15px;
}

/* ── CTA band + footer ── */

.band {
  padding: clamp(32px, 5vw, 56px) 0 clamp(64px, 9vw, 112px);
}
.band-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 32px;
  align-items: center;
  width: calc(100% - var(--gutter) * 2);
  max-width: var(--max);
  padding: clamp(28px, 5vw, 56px);
  border: 1px solid rgba(100, 118, 255, 0.3);
  border-radius: 24px;
  background:
    radial-gradient(80% 140% at 0% 0%, rgba(100, 118, 255, 0.24), transparent 60%),
    var(--surface);
}
.band p:not(.eyebrow) {
  margin: 14px 0 0;
  max-width: 36em;
  color: var(--text-2);
}

.site-footer {
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: 14px;
}
.site-footer .wrap {
  display: grid;
  grid-template-columns: 1.4fr repeat(2, minmax(0, 1fr));
  gap: 32px;
  padding-top: 48px;
  padding-bottom: 48px;
}
.site-footer .wordmark {
  color: var(--text);
}
.site-footer h4 {
  margin: 0 0 14px;
  font-size: 13px;
  font-weight: 550;
  color: var(--text);
}
.site-footer ul {
  margin: 0;
  padding: 0;
  list-style: none;
  display: grid;
  gap: 10px;
}
.site-footer a {
  text-decoration: none;
}
.site-footer a:hover {
  color: var(--text);
}
.site-footer .fine {
  margin: 16px 0 0;
}

/* ── Discord message renderings ── */

.dc {
  background: #313338;
  color: #dbdee1;
  border-radius: 10px;
  overflow: hidden;
  font-family: var(--sans);
  font-size: 15px;
  line-height: 1.375;
  box-shadow: 0 1px 0 rgba(0, 0, 0, 0.04), 0 18px 40px -18px rgba(18, 19, 24, 0.45);
}
.dc-bar {
  display: flex;
  align-items: center;
  gap: 8px;
  height: 48px;
  padding: 0 16px;
  border-bottom: 1px solid #26272b;
  color: #f2f3f5;
  font-weight: 600;
  font-size: 15px;
}
.dc-bar .hash {
  color: #80848e;
  font-size: 22px;
  font-weight: 400;
  line-height: 1;
}
.dc-bar small {
  margin-left: auto;
  color: #80848e;
  font-weight: 500;
  font-size: 12px;
  font-family: var(--mono);
}
.dc-body {
  padding: 8px 0 14px;
}
.dc-msg {
  display: grid;
  grid-template-columns: 40px minmax(0, 1fr);
  gap: 14px;
  padding: 10px 16px 4px;
}
.dc-msg + .dc-msg {
  margin-top: 6px;
}
.dc-avatar {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  object-fit: cover;
}
.dc-avatar-letter {
  display: grid;
  place-items: center;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  color: #fff;
  font-weight: 700;
  background: #5865f2;
}
.dc-head {
  display: flex;
  align-items: baseline;
  flex-wrap: wrap;
  gap: 2px 8px;
}
.dc-name {
  color: #f2f3f5;
  font-weight: 600;
}
.dc-app {
  align-self: center;
  padding: 1px 4px;
  border-radius: 3px;
  background: #5865f2;
  color: #fff;
  font-size: 10px;
  font-weight: 700;
  line-height: 14px;
}
.dc-time {
  color: #949ba4;
  font-size: 12px;
}
.dc-text {
  margin: 2px 0 0;
}
.dc-reply {
  display: flex;
  align-items: center;
  gap: 6px;
  margin: 0 0 4px 0;
  color: #949ba4;
  font-size: 13px;
}
.dc-reply b {
  color: #c4c9ce;
  font-weight: 600;
}
.dc-reply code {
  color: #c9cdfb;
  font-family: var(--sans);
}
.dc-mention {
  padding: 0 2px;
  border-radius: 3px;
  background: rgba(88, 101, 242, 0.3);
  color: #c9cdfb;
}
.dc-embed {
  position: relative;
  max-width: 440px;
  margin-top: 6px;
  padding: 10px 16px 14px 14px;
  border-left: 4px solid var(--bar, #4c63f0);
  border-radius: 4px;
  background: #2b2d31;
}
.dc-embed-title {
  margin: 2px 0 6px;
  color: #f2f3f5;
  font-weight: 700;
  font-size: 15px;
}
.dc-embed-desc {
  margin: 0;
  font-size: 14px;
}
.dc-fields {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px 12px;
  margin-top: 10px;
}
.dc-fields.two {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}
.dc-field-name {
  color: #f2f3f5;
  font-weight: 700;
  font-size: 13px;
}
.dc-field-value {
  font-size: 14px;
}
.dc-footer {
  margin-top: 10px;
  color: #949ba4;
  font-size: 12px;
}
.dc-buttons {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 8px;
}
.dc-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  height: 32px;
  padding: 0 14px;
  border-radius: 8px;
  background: #4e5058;
  color: #fff;
  font-size: 14px;
  font-weight: 500;
}
.dc-btn.primary {
  background: #5865f2;
}
.dc-btn.success {
  background: #248046;
}
.dc-btn.danger {
  background: #da373c;
}
.dc-select {
  max-width: 440px;
  margin-top: 8px;
  border: 1px solid #1e1f22;
  border-radius: 8px;
  background: #2b2d31;
  overflow: hidden;
}
.dc-select-trigger {
  display: flex;
  justify-content: space-between;
  padding: 9px 12px;
  color: #949ba4;
  font-size: 14px;
  border-bottom: 1px solid #1e1f22;
}
.dc-option {
  display: grid;
  grid-template-columns: 22px 1fr;
  gap: 10px;
  align-items: center;
  padding: 8px 12px;
  font-size: 14px;
}
.dc-option + .dc-option {
  border-top: 1px solid #26272b;
}
.dc-option b {
  display: block;
  color: #f2f3f5;
  font-weight: 500;
}
.dc-option small {
  display: block;
  color: #949ba4;
  font-size: 12.5px;
}
.dc-option.is-picked {
  background: #35373c;
}
.dc-ephemeral {
  margin-top: 6px;
  color: #949ba4;
  font-size: 12px;
}

/* Ledger's payment card — the bot renders this as an image attachment. */
.ledger-card {
  max-width: 440px;
  margin-top: 6px;
  padding: 12px;
  border-radius: 14px;
  background: #4f61e8;
}
.ledger-card-inner {
  padding: 14px 18px 16px;
  border-left: 4px solid #2ecc71;
  border-radius: 8px;
  background: #0a0c10;
  color: #f2f3f5;
}
.ledger-card-net {
  display: flex;
  align-items: center;
  gap: 8px;
  font-weight: 700;
  font-size: 15px;
}
.ledger-card-net i {
  font-style: normal;
  color: #819bff;
}
.ledger-card small {
  display: block;
  margin-top: 12px;
  font-size: 10.5px;
  font-weight: 700;
  letter-spacing: 0.08em;
  color: #2ecc71;
}
.ledger-card-amount {
  margin: 2px 0 2px;
  font-weight: 800;
  font-size: 30px;
  line-height: 1.1;
  color: #2ecc71;
}
.ledger-card-usd {
  color: #8b8f99;
  font-size: 13px;
  font-weight: 600;
}
.ledger-card .ledger-card-wallet-label {
  color: #8b8f99;
}
.ledger-card-wallet {
  margin-top: 2px;
  font-family: var(--mono);
  font-size: 12.5px;
  overflow-wrap: anywhere;
}

.dc {
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 14px;
  box-shadow: 0 40px 80px -32px rgba(0, 0, 0, 0.9), 0 0 0 1px rgba(0, 0, 0, 0.5);
}

/* ── Order page ── */

.order {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 420px);
  gap: clamp(36px, 5vw, 72px);
  align-items: start;
}
.order-card {
  padding: 28px;
  border: 1px solid var(--line-strong);
  border-radius: 20px;
  background: var(--surface);
  box-shadow: 0 30px 80px -40px rgba(100, 118, 255, 0.5);
}
.order-card dl {
  margin: 14px 0 0;
}
.order-card dl div {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  padding: 13px 0;
  border-bottom: 1px solid var(--line);
}
.order-card dt {
  color: var(--muted);
}
.order-card dd {
  margin: 0;
  font-weight: 550;
  text-align: right;
}
.order-card .total {
  border-bottom: 0;
}
.order-card .total dd {
  font-size: 26px;
  font-weight: 650;
  letter-spacing: -0.03em;
}
.order-card .btn {
  width: 100%;
  margin-top: 18px;
}
.order-steps {
  margin: 8px 0 0;
  padding: 0;
  list-style: none;
  counter-reset: s;
  display: grid;
  gap: 10px;
}
.order-steps li {
  display: grid;
  grid-template-columns: 32px 1fr;
  gap: 14px;
  align-items: center;
  padding: 14px 16px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: var(--surface);
  counter-increment: s;
}
.order-steps li::before {
  content: counter(s);
  display: grid;
  place-items: center;
  width: 32px;
  height: 32px;
  border-radius: 9px;
  background: var(--cobalt-soft);
  color: var(--cobalt);
  font-family: var(--mono);
  font-size: 13px;
}
.order-steps p {
  margin: 0;
  color: var(--text-2);
}

/* ── Responsive ── */

@media (max-width: 1000px) {
  .principles {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .capabilities,
  .catalog {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 900px) {
  .hero-grid,
  .showcase,
  .order {
    grid-template-columns: 1fr;
  }
  .steps,
  .plans {
    grid-template-columns: 1fr;
  }
  .band-grid {
    grid-template-columns: 1fr;
  }
  .site-footer .wrap {
    grid-template-columns: 1fr 1fr;
  }
  .site-footer .wrap > :first-child {
    grid-column: 1 / -1;
  }
}

@media (max-width: 640px) {
  .site-nav a:not(.nav-panel) {
    display: none;
  }
  .catalog,
  .capabilities,
  .principles {
    grid-template-columns: 1fr;
  }
  .catalog-row:first-child {
    grid-column: auto;
  }
  .catalog-row {
    min-height: 0;
  }
  .spec-strip {
    grid-template-columns: 1fr 1fr;
  }
  .spec-strip div:nth-child(3) {
    border-left: 0;
    border-top: 1px solid var(--line);
  }
  .dc-fields {
    grid-template-columns: 1fr 1fr;
  }
  .table-scroll {
    overflow-x: auto;
  }
  .table-scroll .table {
    min-width: 520px;
  }
  .product-title img {
    width: 52px;
    height: 52px;
  }
  .showcase {
    padding: 22px;
    border-radius: 20px;
  }
  .hero::before {
    right: -300px;
  }
}

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

/* ══════════ Motion & effects ══════════ */

@property --angle {
  syntax: "<angle>";
  initial-value: 0deg;
  inherits: false;
}

/* Header firms up once the page scrolls under it. */
.site-header {
  transition: background-color 0.3s ease, border-color 0.3s ease;
}
.site-header.is-scrolled {
  background: rgba(10, 11, 15, 0.9);
  border-bottom-color: var(--line-strong);
}

/* Hero entrance. */
@keyframes rise {
  from {
    opacity: 0;
    transform: translateY(18px);
    filter: blur(6px);
  }
  to {
    opacity: 1;
    transform: none;
    filter: none;
  }
}
@keyframes float-in {
  from {
    opacity: 0;
    transform: translateY(28px) scale(0.97);
  }
  to {
    opacity: 1;
    transform: none;
  }
}
.hero-copy > * {
  animation: rise 0.8s cubic-bezier(0.2, 0.7, 0.2, 1) both;
}
.hero-copy > :nth-child(1) { animation-delay: 0.05s; }
.hero-copy > :nth-child(2) { animation-delay: 0.12s; }
.hero-copy > :nth-child(3) { animation-delay: 0.2s; }
.hero-copy > :nth-child(4) { animation-delay: 0.28s; }
.hero-copy > :nth-child(5) { animation-delay: 0.36s; }
.hero-copy > :nth-child(6) { animation-delay: 0.44s; }
.hero-grid > .dc,
.order > .order-card {
  animation: float-in 1s cubic-bezier(0.2, 0.7, 0.2, 1) 0.25s both;
}

/* Slow drifting glow behind the hero. */
@keyframes drift {
  0%, 100% { transform: translate(0, 0) scale(1); opacity: 1; }
  50% { transform: translate(-60px, 40px) scale(1.12); opacity: 0.75; }
}
.hero::before {
  animation: drift 14s ease-in-out infinite;
}

/* Live chat in the hero: messages arrive one by one after a typing indicator. */
.hero .dc {
  position: relative;
}
.hero .dc-body {
  padding-bottom: 34px;
}
.dc-msg.is-pending {
  opacity: 0;
  transform: translateY(8px);
}
.dc-msg.is-arriving {
  animation: msg-in 0.45s cubic-bezier(0.2, 0.7, 0.2, 1) both;
}
@keyframes msg-in {
  from { opacity: 0; transform: translateY(8px); background: rgba(88, 101, 242, 0.12); }
  60% { background: rgba(88, 101, 242, 0.08); }
  to { opacity: 1; transform: none; background: transparent; }
}
.dc-typing {
  position: absolute;
  left: 16px;
  bottom: 10px;
  display: flex;
  align-items: center;
  gap: 3px;
  color: #b5bac1;
  font-size: 12px;
  opacity: 0;
  transition: opacity 0.2s ease;
}
.dc-typing.is-on {
  opacity: 1;
}
.dc-typing span {
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: #b5bac1;
  animation: typing 1.1s ease-in-out infinite;
}
.dc-typing span:nth-child(2) { animation-delay: 0.15s; }
.dc-typing span:nth-child(3) { animation-delay: 0.3s; }
.dc-typing em {
  margin-left: 6px;
  font-style: normal;
}
.dc-typing b {
  color: #f2f3f5;
  font-weight: 600;
}
@keyframes typing {
  0%, 60%, 100% { transform: translateY(0); opacity: 0.5; }
  30% { transform: translateY(-3px); opacity: 1; }
}

/* Dropdown options highlight in turn, as if someone is browsing them. */
.dc-option {
  transition: background-color 0.25s ease;
}

/* Status dots breathe. */
@keyframes breathe {
  0%, 100% { box-shadow: 0 0 0 0 currentColor; }
  50% { box-shadow: 0 0 0 4px transparent, 0 0 10px currentColor; }
}
.tag-ready::before,
.tag-beta::before {
  animation: breathe 2.4s ease-in-out infinite;
}

/* Scroll reveal — only hidden once JS has confirmed it will reveal them. */
.js .reveal {
  opacity: 0;
  transform: translateY(22px);
  transition:
    opacity 0.7s cubic-bezier(0.2, 0.7, 0.2, 1) calc(var(--i, 0) * 80ms),
    transform 0.7s cubic-bezier(0.2, 0.7, 0.2, 1) calc(var(--i, 0) * 80ms),
    border-color 0.2s ease;
}
.js .reveal.is-in {
  opacity: 1;
  transform: none;
}
.js a.catalog-row.reveal.is-in:hover {
  transform: translateY(-3px);
}

/* Cursor spotlight on cards. */
.spot {
  position: relative;
  isolation: isolate;
}
.spot::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  border-radius: inherit;
  background: radial-gradient(420px circle at var(--mx, 50%) var(--my, 50%), rgba(100, 118, 255, 0.13), transparent 45%);
  opacity: 0;
  transition: opacity 0.3s ease;
  pointer-events: none;
}
.spot:hover::after {
  opacity: 1;
}
.spot:hover {
  border-color: rgba(100, 118, 255, 0.35);
}

/* Rotating light around the recommended plan. */
.plan:nth-child(2) {
  border-color: transparent;
  background:
    radial-gradient(100% 80% at 50% 0%, rgba(100, 118, 255, 0.16), transparent 70%) padding-box,
    linear-gradient(var(--surface), var(--surface)) padding-box,
    conic-gradient(from var(--angle), rgba(100, 118, 255, 0.15), #8a98ff, rgba(100, 118, 255, 0.15) 30%, rgba(100, 118, 255, 0.15) 70%, #8a98ff, rgba(100, 118, 255, 0.15)) border-box;
  animation: spin-border 6s linear infinite;
}
@keyframes spin-border {
  to { --angle: 360deg; }
}

/* Primary buttons catch the light on hover. */
.btn:not(.btn-ghost):not([aria-disabled="true"]) {
  position: relative;
  overflow: hidden;
}
.btn:not(.btn-ghost):not([aria-disabled="true"])::after {
  content: "";
  position: absolute;
  top: 0;
  bottom: 0;
  left: -60%;
  width: 40%;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.28), transparent);
  transform: skewX(-20deg);
  transition: left 0.6s ease;
}
.btn:not(.btn-ghost):not([aria-disabled="true"]):hover::after {
  left: 130%;
}

/* Product logo glows softly. */
@keyframes glow {
  0%, 100% { box-shadow: 0 0 0 1px var(--line-strong), 0 12px 30px -10px rgba(100, 118, 255, 0.45); }
  50% { box-shadow: 0 0 0 1px rgba(100, 118, 255, 0.4), 0 16px 44px -8px rgba(100, 118, 255, 0.75); }
}
.product-title img {
  animation: glow 4s ease-in-out infinite;
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation: none !important;
  }
  .js .reveal {
    opacity: 1;
    transform: none;
  }
  .dc-msg.is-pending {
    opacity: 1;
    transform: none;
  }
}
.plan:nth-child(2).spot:hover {
  border-color: transparent;
}

/* ── Month picker & currency switch (order page) ── */

.order-field {
  display: grid;
  gap: 10px;
  padding: 16px 0;
  border-bottom: 1px solid var(--line);
}
.order-label {
  font-size: 14px;
  color: var(--muted);
}
.stepper {
  display: grid;
  grid-template-columns: 44px 1fr 44px;
  height: 46px;
  border: 1px solid var(--line-strong);
  border-radius: 12px;
  background: var(--bg-2);
  overflow: hidden;
}
.stepper button {
  border: 0;
  background: transparent;
  color: var(--text);
  font: 500 20px/1 var(--sans);
  cursor: pointer;
  transition: background-color 0.15s ease;
}
.stepper button:hover:not(:disabled) {
  background: rgba(255, 255, 255, 0.06);
}
.stepper button:disabled {
  color: var(--muted);
  opacity: 0.4;
  cursor: not-allowed;
}
.stepper input {
  width: 100%;
  min-width: 0;
  border: 0;
  border-left: 1px solid var(--line);
  border-right: 1px solid var(--line);
  background: transparent;
  color: var(--text);
  font: 600 18px/1 var(--sans);
  text-align: center;
  -moz-appearance: textfield;
}
.stepper input::-webkit-outer-spin-button,
.stepper input::-webkit-inner-spin-button {
  -webkit-appearance: none;
  margin: 0;
}
.stepper input:focus-visible {
  outline: none;
  background: rgba(100, 118, 255, 0.08);
}
.chips {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 6px;
}
.chips button,
.segmented button {
  height: 34px;
  border: 1px solid var(--line);
  border-radius: 9px;
  background: rgba(255, 255, 255, 0.03);
  color: var(--text-2);
  font: 500 13.5px/1 var(--sans);
  cursor: pointer;
  transition: background-color 0.15s ease, border-color 0.15s ease, color 0.15s ease;
}
.chips button::after {
  content: " mo";
  color: var(--muted);
}
.chips button:hover,
.segmented button:hover {
  border-color: var(--line-strong);
  color: var(--text);
}
.chips button.is-active,
.segmented button[aria-checked="true"] {
  border-color: rgba(100, 118, 255, 0.55);
  background: var(--cobalt-soft);
  color: #fff;
}
.segmented {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 6px;
}
.order-card .total dd {
  transition: color 0.2s ease;
}

/* ── Product page pricing: one per-month price + examples ── */

.price-panel {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 14px;
  align-items: start;
}
.price-panel .plan {
  border-color: rgba(100, 118, 255, 0.4);
  background:
    radial-gradient(100% 80% at 50% 0%, rgba(100, 118, 255, 0.16), transparent 70%),
    var(--surface);
}
.price-panel .plan-price .alt {
  margin-left: 6px;
  font-size: 22px;
  font-weight: 600;
  letter-spacing: -0.02em;
  color: var(--text-2);
}
@media (max-width: 900px) {
  .price-panel {
    grid-template-columns: 1fr;
  }
}

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

/* ── Legal pages ── */

.legal-hero {
  padding-bottom: 8px;
}
.legal-date {
  margin: 0;
  font-family: var(--mono);
  font-size: 12.5px;
  color: var(--muted);
}
.legal-section {
  padding-top: 24px;
}
.legal-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 230px;
  gap: 56px;
  align-items: start;
}
.legal {
  max-width: 760px;
}
.legal section {
  padding: 28px 0;
  border-top: 1px solid var(--line);
  scroll-margin-top: 90px;
}
.legal section:first-child {
  border-top: 0;
  padding-top: 0;
}
.legal h2 {
  margin: 0 0 12px;
  font-size: 20px;
  font-weight: 600;
  letter-spacing: -0.02em;
}
.legal p,
.legal li {
  color: var(--text-2);
  font-size: 15.5px;
  line-height: 1.7;
}
.legal p {
  margin: 0 0 12px;
}
.legal p:last-child {
  margin-bottom: 0;
}
.legal ul {
  margin: 0;
  padding-left: 20px;
  display: grid;
  gap: 8px;
}
.legal b {
  color: var(--text);
  font-weight: 600;
}
.legal-toc {
  position: sticky;
  top: 90px;
  display: grid;
  gap: 2px;
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
  font-size: 14px;
}
.legal-toc strong {
  margin-bottom: 8px;
  font-size: 12px;
  font-weight: 550;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--muted);
}
.legal-toc a {
  padding: 6px 8px;
  border-radius: 8px;
  color: var(--text-2);
  text-decoration: none;
}
.legal-toc a:hover {
  background: rgba(255, 255, 255, 0.05);
  color: var(--text);
}
.legal-toc .legal-mail {
  margin-top: 10px;
  padding-top: 12px;
  border-top: 1px solid var(--line);
  border-radius: 0;
  color: var(--cobalt);
  overflow-wrap: anywhere;
}
@media (max-width: 900px) {
  .legal-layout {
    grid-template-columns: 1fr;
  }
  .legal-toc {
    display: none;
  }
}
