/* ============================================================
   Keryx Labs — Site styles
   Built on tokens.css. Dark-first, institutional, engineered.
   ============================================================ */

body { overflow-x: hidden; }
img { max-width: 100%; display: block; }

.container { max-width: var(--container-default); margin: 0 auto; padding: 0 var(--s-6); }
.container.wide { max-width: var(--container-wide); }
.container.narrow { max-width: var(--container-narrow); }
.container.prose { max-width: var(--container-prose); }

/* Mono / eyebrow */
.mono { font-family: var(--font-mono); }
.tnum { font-feature-settings: "tnum" 1, "cv11" 1; }

/* ---------- Navigation ---------- */
.nav-wrap {
  position: sticky; top: 0; z-index: 50;
  backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px);
  background: rgb(5 5 7 / 0.72);
  border-bottom: 1px solid var(--line-subtle);
}
.nav { display: flex; align-items: center; justify-content: space-between; height: 64px; }
.nav-logo { display: flex; align-items: center; gap: var(--s-3); text-decoration: none; }
.nav-logo .mark { width: 24px; height: 24px; border-radius: 6px; background: var(--keryx-grad); position: relative; }
.nav-logo .mark::after {
  content: ""; position: absolute; inset: 4px; border-radius: 3px;
  background: var(--bg-canvas);
  background-image:
    linear-gradient(135deg, transparent 40%, rgb(255 255 255 / 0.08) 50%, transparent 60%);
}
.nav-logo .name {
  font-family: var(--font-display); font-weight: 700;
  font-size: 15px; color: var(--fg-hero); letter-spacing: -0.01em;
}
.nav-logo .name::after {
  content: " labs"; color: var(--fg-muted); font-weight: 500;
}
.nav-links {
  display: flex; gap: var(--s-6); font-size: 13.5px; color: var(--fg-default);
  font-family: var(--font-body); font-weight: 500;
}
.nav-links a {
  color: var(--fg-default); text-decoration: none;
  transition: color var(--m-quick) var(--ease-out-expo);
  position: relative; padding: 4px 0;
}
.nav-links a:hover { color: var(--fg-hero); }
.nav-links a.is-active { color: var(--fg-hero); }
.nav-links a.is-active::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: -22px; height: 1px;
  background: var(--keryx-grad);
}
.nav-cta { display: flex; gap: var(--s-2); align-items: center; }

/* Hamburger button — hidden on desktop, shown <900px */
.nav-burger {
  display: none;
  width: 40px; height: 40px; padding: 0;
  background: transparent; border: 1px solid var(--line-default);
  border-radius: var(--r-md); cursor: pointer;
  flex-direction: column; gap: 4px; align-items: center; justify-content: center;
  margin-left: var(--s-2);
}
.nav-burger span {
  width: 18px; height: 1.5px; background: var(--fg-hero);
  transition: transform var(--m-quick) var(--ease-out-expo), opacity var(--m-quick);
}
.nav-burger[aria-expanded="true"] span:nth-child(1) { transform: translateY(5.5px) rotate(45deg); }
.nav-burger[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.nav-burger[aria-expanded="true"] span:nth-child(3) { transform: translateY(-5.5px) rotate(-45deg); }

/* Mobile drawer */
.nav-mobile {
  display: none;
  border-top: 1px solid var(--line-subtle);
  padding: var(--s-3) var(--s-6) var(--s-5);
  background: var(--bg-base);
  flex-direction: column;
}
.nav-mobile a {
  font-family: var(--font-body); font-weight: 500; font-size: 15px;
  color: var(--fg-default); text-decoration: none;
  padding: 14px 4px; border-bottom: 1px solid var(--line-subtle);
}
.nav-mobile a:last-child { border-bottom: none; }
.nav-mobile a.is-active { color: var(--fg-hero); }
.nav-mobile a.contact {
  margin-top: var(--s-3); padding: 14px 16px;
  background: var(--keryx-grad); color: #07090e; font-weight: 600;
  border-radius: var(--r-md); border-bottom: none; text-align: center;
}

@media (max-width: 1100px) {
  .nav-links { display: none; }
  .nav-cta .btn-ghost { display: none; }
  .nav-burger { display: inline-flex; }
  .nav-wrap.is-open .nav-mobile { display: flex; }
}
@media (max-width: 540px) {
  .nav-cta .btn-brand { display: none; }
}

/* Global mobile safety: prevent any descendant from forcing horizontal scroll */
html, body { overflow-x: hidden; max-width: 100%; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; gap: var(--s-2);
  height: 40px; padding: 0 18px;
  border-radius: var(--r-md);
  font-family: var(--font-body); font-weight: 600; font-size: 14px;
  letter-spacing: -0.005em; white-space: nowrap; cursor: pointer;
  border: 1px solid transparent; text-decoration: none;
  transition: transform var(--m-quick) var(--ease-out-expo),
              box-shadow var(--m-quick) var(--ease-out-expo),
              background var(--m-quick) var(--ease-out-expo),
              border-color var(--m-quick) var(--ease-out-expo),
              color var(--m-quick) var(--ease-out-expo);
}
.btn:hover { transform: translateY(-1px); }
.btn-brand { background: var(--keryx-grad); color: #06070A; box-shadow: var(--shadow-glow-magenta); }
.btn-brand:hover { box-shadow: 0 12px 36px rgba(225,31,251,0.32); color: #06070A; }
.btn-primary { background: linear-gradient(180deg, #FFFFFF, #E4E6EC); color: #0A0A0F; }
.btn-primary:hover { background: #FFFFFF; color: #0A0A0F; }
.btn-secondary { background: var(--bg-overlay); color: var(--fg-hero); border-color: var(--line-strong); }
.btn-secondary:hover { background: var(--bg-pop); color: var(--fg-hero); }
.btn-ghost { background: transparent; color: var(--fg-strong); border-color: var(--line-default); }
.btn-ghost:hover { border-color: var(--line-strong); color: var(--fg-hero); }
.btn-sm { height: 32px; padding: 0 14px; font-size: 12.5px; }
.btn-lg { height: 48px; padding: 0 22px; font-size: 15px; }
.btn .arrow { transition: transform var(--m-quick) var(--ease-out-expo); }
.btn:hover .arrow { transform: translateX(3px); }

/* ---------- Tag / pill / badge ---------- */
.tag {
  display: inline-flex; align-items: center; gap: var(--s-2);
  font-family: var(--font-mono); font-size: 11px;
  letter-spacing: 0.16em; text-transform: uppercase;
  padding: 6px 12px; border-radius: var(--r-full);
  background: rgb(0 229 255 / 0.08); border: 1px solid rgb(0 229 255 / 0.30);
  color: #BCEFF7;
}
.tag::before {
  content: ""; width: 6px; height: 6px; border-radius: 50%;
  background: var(--keryx-cyan); box-shadow: 0 0 8px var(--keryx-cyan);
}
.tag.muted { background: rgb(255 255 255 / 0.04); border-color: var(--line-default); color: var(--fg-default); }
.tag.muted::before { background: var(--fg-muted); box-shadow: none; }

.status {
  display: inline-flex; align-items: center; gap: 6px;
  font-family: var(--font-mono); font-size: 10px; letter-spacing: 0.16em; text-transform: uppercase;
  height: 22px; padding: 0 10px; border-radius: var(--r-full);
}
.status .dot { width: 6px; height: 6px; border-radius: 50%; }
.status-live    { background: rgb(16 209 123 / 0.10); border: 1px solid rgb(16 209 123 / 0.40); color: #7CEAB8; }
.status-live    .dot { background: var(--accent-emerald); box-shadow: 0 0 6px var(--accent-emerald); animation: pulse 1.6s ease-in-out infinite; }
.status-beta    { background: rgb(245 181 71 / 0.10); border: 1px solid rgb(245 181 71 / 0.36); color: #F5C97D; }
.status-beta    .dot { background: var(--accent-amber); }
.status-research{ background: rgb(107 168 255 / 0.10); border: 1px solid rgb(107 168 255 / 0.34); color: #ADC9FF; }
.status-research .dot { background: var(--accent-info); }
.status-internal{ background: rgb(255 255 255 / 0.04); border: 1px solid var(--line-default); color: var(--fg-default); }
.status-internal .dot { background: var(--fg-muted); }
.status-prototype{ background: rgb(225 31 251 / 0.10); border: 1px solid rgb(225 31 251 / 0.34); color: #F5BBFD; }
.status-prototype .dot { background: var(--keryx-magenta); }
@keyframes pulse { 0%,100% { opacity: 1; } 50% { opacity: 0.4; } }

.eyebrow-line {
  font-family: var(--font-mono); font-size: 11px; letter-spacing: 0.22em;
  text-transform: uppercase; color: var(--fg-muted);
  display: inline-flex; align-items: center; gap: var(--s-2);
}
.eyebrow-line::before {
  content: ""; width: 24px; height: 1px; background: var(--line-strong);
}

/* ---------- Section ---------- */
.section { padding: 96px 0; position: relative; }
.section.tight { padding: 64px 0; }
.section.compact { padding: 48px 0; }
.section-head { max-width: 760px; margin-bottom: var(--s-12); }
.section-head .tag { margin-bottom: var(--s-5); }
.section-head h2 {
  font-family: var(--font-display); font-weight: 700;
  font-size: clamp(32px, 4vw, 48px); line-height: 1.1; letter-spacing: -0.03em;
  color: var(--fg-hero); margin: 0 0 var(--s-4);
}
.section-head h2 .grad { background: var(--keryx-grad); -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent; color: transparent; }
.section-head p { font-size: 16px; line-height: 1.6; color: var(--fg-default); max-width: 64ch; margin: 0; }

/* ---------- Page header (non-landing) ---------- */
.page-head {
  position: relative; padding: 96px 0 72px; overflow: hidden;
  border-bottom: 1px solid var(--line-subtle);
}
.page-head::before {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background-image:
    linear-gradient(rgb(255 255 255 / 0.025) 1px, transparent 1px),
    linear-gradient(90deg, rgb(255 255 255 / 0.025) 1px, transparent 1px);
  background-size: 32px 32px;
  mask-image: radial-gradient(ellipse 70% 70% at 30% 30%, black 30%, transparent 80%);
  -webkit-mask-image: radial-gradient(ellipse 70% 70% at 30% 30%, black 30%, transparent 80%);
}
.page-head::after {
  content: ""; position: absolute; right: -120px; top: -100px; width: 480px; height: 480px;
  border-radius: 50%; filter: blur(80px); pointer-events: none;
  background: radial-gradient(closest-side, rgb(107 31 242 / 0.30), rgb(225 31 251 / 0.10) 50%, transparent 75%);
}
.page-head .container { position: relative; z-index: 1; }
.page-head .breadcrumbs {
  font-family: var(--font-mono); font-size: 11px; letter-spacing: 0.22em;
  text-transform: uppercase; color: var(--fg-muted); margin-bottom: var(--s-5);
}
.page-head .breadcrumbs a { color: var(--fg-muted); text-decoration: none; }
.page-head .breadcrumbs a:hover { color: var(--fg-strong); }
.page-head .breadcrumbs .sep { margin: 0 8px; color: var(--line-strong); }
.page-head h1 {
  font-family: var(--font-display); font-weight: 800;
  font-size: clamp(40px, 5.5vw, 72px); line-height: 1; letter-spacing: -0.04em;
  color: var(--fg-hero); margin: 0 0 var(--s-5); max-width: 22ch;
}
.page-head h1 .grad { background: var(--keryx-grad); -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent; color: transparent; }
.page-head .lede {
  font-size: 18px; line-height: 1.6; color: var(--fg-default);
  max-width: 60ch; margin: 0;
}
.page-head .meta-row {
  margin-top: var(--s-8); display: flex; gap: var(--s-8); flex-wrap: wrap;
  font-family: var(--font-mono); font-size: 11px; letter-spacing: 0.18em;
  text-transform: uppercase; color: var(--fg-muted);
}
.page-head .meta-row span strong { color: var(--fg-strong); font-weight: 500; margin-left: 6px; }

/* ---------- Card primitives ---------- */
.card {
  position: relative; background: var(--bg-elevated);
  border: 1px solid var(--line-default); border-radius: var(--r-xl);
  padding: var(--s-6); overflow: hidden;
  transition: transform var(--m-quick) var(--ease-out-expo),
              border-color var(--m-quick) var(--ease-out-expo);
}
.card:hover { transform: translateY(-2px); border-color: var(--line-strong); }
.card .b-eyebrow {
  font-family: var(--font-mono); font-size: 11px; letter-spacing: 0.18em;
  text-transform: uppercase; color: var(--fg-muted);
}
.card h3 {
  font-family: var(--font-display); font-weight: 700; font-size: 22px;
  color: var(--fg-hero); letter-spacing: -0.02em; line-height: 1.2;
  margin: var(--s-3) 0 var(--s-3);
}
.card p { font-size: 14px; line-height: 1.55; color: var(--fg-default); margin: 0; }
.card .card-foot { margin-top: var(--s-5); padding-top: var(--s-4); border-top: 1px solid var(--line-subtle); display: flex; justify-content: space-between; align-items: center; }
.card .card-foot .arrow { color: var(--fg-strong); }

/* ---------- Bento grid ---------- */
.bento { display: grid; grid-template-columns: repeat(6, 1fr); grid-auto-rows: minmax(180px, auto); gap: var(--s-4); }
@media (max-width: 1000px) { .bento { grid-template-columns: repeat(2, 1fr); } }
.b-1 { grid-column: span 4; grid-row: span 2; }
.b-2 { grid-column: span 2; grid-row: span 1; }
.b-3 { grid-column: span 2; grid-row: span 1; }
.b-4 { grid-column: span 3; grid-row: span 1; }
.b-5 { grid-column: span 3; grid-row: span 1; }
@media (max-width: 1000px) {
  .b-1, .b-2, .b-3, .b-4, .b-5 { grid-column: span 2; grid-row: auto; }
}

/* ---------- 3-col card grid ---------- */
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: var(--s-4); }
.grid-2 { display: grid; grid-template-columns: repeat(2, 1fr); gap: var(--s-4); }
.grid-4 { display: grid; grid-template-columns: repeat(4, 1fr); gap: var(--s-4); }
@media (max-width: 1000px) { .grid-3 { grid-template-columns: repeat(2, 1fr); } .grid-4 { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 700px)  { .grid-2, .grid-3, .grid-4 { grid-template-columns: 1fr; } }

/* ---------- Stepper ---------- */
.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: var(--s-6); }
@media (max-width: 900px) { .steps { grid-template-columns: 1fr; } }
.step { padding: var(--s-6) var(--s-6) var(--s-6) var(--s-6); border-left: 1px solid var(--line-default); position: relative; }
.step::before {
  content: ""; position: absolute; left: -1px; top: 0; width: 1px; height: 36px;
  background: var(--keryx-grad);
}
.step .step-num { font-family: var(--font-mono); font-size: 12px; letter-spacing: 0.04em; color: var(--keryx-cyan); font-weight: 700; }
.step h4 { font-family: var(--font-display); font-weight: 600; font-size: 18px; color: var(--fg-hero); letter-spacing: -0.015em; margin: var(--s-2) 0 var(--s-3); }
.step p { font-size: 14px; line-height: 1.6; color: var(--fg-default); margin: 0; }

/* ---------- Outcomes / KPI strip ---------- */
.outcomes {
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 1px;
  background: var(--line-subtle);
  border: 1px solid var(--line-subtle);
  border-radius: var(--r-xl);
  overflow: hidden;
}
@media (max-width: 800px) { .outcomes { grid-template-columns: repeat(2, 1fr); } }
.outcome { background: var(--bg-elevated); padding: var(--s-8) var(--s-6); }
.outcome .v { font-family: var(--font-display); font-weight: 700; font-size: 40px; color: var(--fg-hero); font-feature-settings: 'tnum' 1; letter-spacing: -0.03em; line-height: 1; }
.outcome .v small { font-size: 18px; font-weight: 500; color: var(--fg-default); }
.outcome .l { font-family: var(--font-mono); font-size: 11px; letter-spacing: 0.16em; text-transform: uppercase; color: var(--fg-muted); margin-top: var(--s-3); }

/* ---------- CTA section ---------- */
.cta-section {
  position: relative;
  border: 1px solid var(--line-default);
  border-radius: var(--r-2xl);
  padding: var(--s-16) var(--s-10);
  overflow: hidden;
  background:
    radial-gradient(ellipse 120% 80% at 0% 0%, rgb(0 229 255 / 0.15), transparent 60%),
    radial-gradient(ellipse 120% 80% at 100% 100%, rgb(225 31 251 / 0.15), transparent 60%),
    var(--bg-elevated);
}
.cta-section h2 { font-family: var(--font-display); font-weight: 700; font-size: clamp(32px, 4vw, 48px); line-height: 1.1; letter-spacing: -0.03em; color: var(--fg-hero); margin: 0 0 var(--s-4); max-width: 22ch; }
.cta-section p { font-size: 16px; color: var(--fg-default); max-width: 60ch; margin: 0 0 var(--s-6); }
.cta-section .cta-row { display: flex; gap: var(--s-3); flex-wrap: wrap; }

/* ---------- Footer ---------- */
.footer { padding: var(--s-16) 0 var(--s-8); border-top: 1px solid var(--line-subtle); margin-top: var(--s-16); }
.footer-grid { display: grid; grid-template-columns: 1.4fr repeat(5, 1fr); gap: var(--s-8); }
@media (max-width: 1100px) { .footer-grid { grid-template-columns: 1fr 1fr 1fr; } }
@media (max-width: 700px) { .footer-grid { grid-template-columns: 1fr 1fr; } }
.footer-brand .head { display: flex; align-items: center; gap: var(--s-3); }
.footer-brand .head .name { font-family: var(--font-display); font-weight: 700; font-size: 16px; color: var(--fg-hero); letter-spacing: -0.01em; }
.footer-brand p { font-size: 13px; color: var(--fg-muted); line-height: 1.6; max-width: 36ch; margin: var(--s-3) 0 0; }
.footer-col h5 { font-family: var(--font-mono); font-size: 11px; letter-spacing: 0.18em; text-transform: uppercase; color: var(--fg-muted); margin: 0 0 var(--s-4); font-weight: 500; }
.footer-col ul { list-style: none; padding: 0; margin: 0; display: flex; flex-direction: column; gap: var(--s-2); }
.footer-col a { font-size: 13.5px; color: var(--fg-default); text-decoration: none; }
.footer-col a:hover { color: var(--fg-hero); }
.footer-bottom { display: flex; justify-content: space-between; align-items: center; margin-top: var(--s-12); padding-top: var(--s-6); border-top: 1px solid var(--line-subtle); flex-wrap: wrap; gap: var(--s-3); }
.footer-bar { height: 4px; border-radius: 2px; background: var(--keryx-grad); margin-bottom: var(--s-8); }
.footer-bottom .meta { font-family: var(--font-mono); font-size: 11px; letter-spacing: 0.14em; text-transform: uppercase; color: var(--fg-muted); }

/* ---------- Logo strip ---------- */
.logos { padding: 40px 0; border-top: 1px solid var(--line-subtle); border-bottom: 1px solid var(--line-subtle); }
.logos-inner { display: flex; align-items: center; justify-content: space-between; gap: var(--s-8); flex-wrap: wrap; }
.logos-label { font-family: var(--font-mono); font-size: 11px; letter-spacing: 0.18em; text-transform: uppercase; color: var(--fg-muted); }
.logos-list { display: flex; gap: var(--s-10); align-items: center; flex-wrap: wrap; }
.logo-mark { font-family: var(--font-display); font-weight: 700; font-size: 17px; letter-spacing: -0.02em; color: var(--fg-default); opacity: 0.65; transition: opacity var(--m-quick), color var(--m-quick); text-decoration: none; }
a.logo-mark { display: inline-flex; align-items: center; gap: 8px; }
a.logo-mark::after { content: "→"; font-family: var(--font-mono); font-size: 12px; opacity: 0.55; transform: translateX(0); transition: transform var(--m-quick), opacity var(--m-quick); }
.logo-mark:hover { opacity: 1; color: var(--fg-strong); }
a.logo-mark:hover::after { opacity: 1; transform: translateX(3px); }

/* ---------- Reveal animation ---------- */
.reveal { opacity: 0; transform: translateY(20px); animation: reveal 0.6s var(--ease-out-expo) forwards; }
.reveal.d-1 { animation-delay: 0.1s; }
.reveal.d-2 { animation-delay: 0.25s; }
.reveal.d-3 { animation-delay: 0.4s; }
.reveal.d-4 { animation-delay: 0.55s; }
@keyframes reveal { to { opacity: 1; transform: translateY(0); } }

/* ---------- Animated topology hero ---------- */
.topology { width: 100%; height: 100%; position: absolute; inset: 0; }
.topology-line { stroke: url(#grad-edge); stroke-width: 1; fill: none; opacity: 0.7; }
.topology-node { fill: var(--keryx-cyan); }
.topology-node.alt { fill: var(--keryx-magenta); }

/* ---------- Tables ---------- */
.k-table {
  width: 100%; border-collapse: collapse;
  background: var(--bg-elevated);
  border: 1px solid var(--line-default);
  border-radius: var(--r-lg);
  overflow: hidden;
  font-size: 14px;
}
.k-table th, .k-table td {
  padding: 14px 18px;
  text-align: left;
  border-bottom: 1px solid var(--line-subtle);
  vertical-align: top;
}
.k-table th {
  font-family: var(--font-mono); font-size: 11px; letter-spacing: 0.18em;
  text-transform: uppercase; color: var(--fg-muted); font-weight: 500;
  background: var(--bg-overlay);
}
.k-table tr:last-child td { border-bottom: 0; }
.k-table td.label { color: var(--fg-strong); font-weight: 500; width: 28%; }
.k-table td.mono { font-family: var(--font-mono); font-size: 13px; color: var(--fg-default); }

/* ---------- Two-column layout ---------- */
.two-col {
  display: grid; grid-template-columns: 1.2fr 1fr; gap: var(--s-12); align-items: start;
}
.two-col.flip { grid-template-columns: 1fr 1.2fr; }
@media (max-width: 1000px) { .two-col, .two-col.flip { grid-template-columns: 1fr; gap: var(--s-8); } }

/* ---------- Aside ---------- */
.aside-callout {
  background: var(--bg-overlay);
  border: 1px solid var(--line-default);
  border-radius: var(--r-lg);
  padding: var(--s-5) var(--s-6);
  font-size: 14px; color: var(--fg-default); line-height: 1.6;
}
.aside-callout strong { color: var(--fg-hero); font-weight: 600; }

/* ---------- List ---------- */
.tick-list { list-style: none; padding: 0; margin: 0; display: flex; flex-direction: column; gap: var(--s-3); }
.tick-list li { position: relative; padding-left: 28px; font-size: 14.5px; line-height: 1.6; color: var(--fg-default); }
.tick-list li::before {
  content: ""; position: absolute; left: 0; top: 6px;
  width: 14px; height: 14px; border-radius: 50%;
  background: rgb(0 229 255 / 0.15);
  border: 1px solid var(--keryx-cyan);
}
.tick-list li::after {
  content: ""; position: absolute; left: 4px; top: 11px; width: 6px; height: 3px;
  border-left: 1.5px solid var(--keryx-cyan); border-bottom: 1.5px solid var(--keryx-cyan);
  transform: rotate(-45deg);
}
.tick-list li strong { color: var(--fg-hero); font-weight: 600; }

/* ---------- Big quote ---------- */
.bigquote {
  font-family: var(--font-display); font-weight: 600;
  font-size: clamp(24px, 3vw, 36px); line-height: 1.25; letter-spacing: -0.02em;
  color: var(--fg-strong); max-width: 28ch;
}
.bigquote .grad { background: var(--keryx-grad); -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent; color: transparent; }
.bigquote-attrib {
  margin-top: var(--s-5); font-family: var(--font-mono); font-size: 11px;
  letter-spacing: 0.18em; text-transform: uppercase; color: var(--fg-muted);
}

/* ---------- Code block ---------- */
.code-block {
  background: var(--bg-base); border: 1px solid var(--line-default);
  border-radius: var(--r-md); padding: var(--s-4) var(--s-5);
  font-family: var(--font-mono); font-size: 13px; line-height: 1.7;
  color: var(--fg-default); overflow-x: auto;
}
.code-block .k { color: var(--keryx-cyan); }
.code-block .s { color: var(--accent-emerald); }
.code-block .c { color: var(--fg-muted); }
.code-block .v { color: #F5C97D; }

/* ---------- Forms ---------- */
.field { display: flex; flex-direction: column; gap: var(--s-2); margin-bottom: var(--s-5); }
.field label {
  font-family: var(--font-mono); font-size: 10.5px; letter-spacing: 0.20em;
  text-transform: uppercase; color: var(--fg-muted); font-weight: 500;
}
.field input, .field textarea, .field select {
  background: var(--bg-overlay); border: 1px solid var(--line-default);
  border-radius: var(--r-md); padding: 12px 14px;
  font-family: var(--font-body); font-size: 14.5px; color: var(--fg-hero);
  width: 100%;
  transition: border-color var(--m-quick) var(--ease-out-expo), background var(--m-quick) var(--ease-out-expo);
}
.field input:focus, .field textarea:focus, .field select:focus {
  outline: none; border-color: var(--keryx-cyan); background: var(--bg-pop);
  box-shadow: 0 0 0 3px rgb(0 229 255 / 0.15);
}
.field textarea { min-height: 140px; resize: vertical; }
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: var(--s-4); }
@media (max-width: 700px) { .field-row { grid-template-columns: 1fr; } }

.choice-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: var(--s-3); margin-bottom: var(--s-6); }
@media (max-width: 800px) { .choice-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 500px) { .choice-grid { grid-template-columns: 1fr; } }
.choice {
  background: var(--bg-overlay); border: 1px solid var(--line-default);
  border-radius: var(--r-md); padding: 14px 16px;
  cursor: pointer; transition: all var(--m-quick) var(--ease-out-expo);
  display: flex; align-items: center; gap: var(--s-3);
  font-size: 14px; color: var(--fg-default);
}
.choice .dot { width: 10px; height: 10px; border-radius: 50%; border: 1px solid var(--line-strong); flex-shrink: 0; transition: all var(--m-quick); }
.choice:hover { border-color: var(--line-strong); color: var(--fg-strong); }
.choice.selected { border-color: var(--keryx-cyan); background: rgb(0 229 255 / 0.06); color: var(--fg-hero); }
.choice.selected .dot { background: var(--keryx-cyan); border-color: var(--keryx-cyan); box-shadow: 0 0 0 3px rgb(0 229 255 / 0.15); }

/* ---------- Selection style ---------- */
::selection { background: rgb(0 229 255 / 0.32); color: #FFFFFF; }
