/* ============================================================
   Bioseon — luminous bioreactor control-room design system
   Deep teal-ink surfaces + solid fills; borders carry structure.
   Luminosity is selective and earned: live readouts, status,
   the vessel and the curves glow; static chrome stays matte.
   Bio-teal + violet on deep teal-ink · OKLCH throughout
   ============================================================ */

:root {
  /* Surfaces */
  --ink:     oklch(0.16 0.022 205);
  --ink-2:   oklch(0.19 0.026 205);
  --ink-3:   oklch(0.23 0.030 206);
  --ink-4:   oklch(0.27 0.032 206);
  --ink-tint-surface: oklch(0.185 0.026 200); /* subtly elevated band for section rhythm */
  --line:    oklch(0.30 0.028 206);
  --line-2:  oklch(0.38 0.030 200);

  /* Text */
  --fg:       oklch(0.96 0.008 200);
  --fg-muted: oklch(0.77 0.020 205);
  --fg-dim:   oklch(0.63 0.022 205);

  /* Brand */
  --teal:      oklch(0.84 0.145 188);
  --teal-deep: oklch(0.70 0.135 190);
  --violet:    oklch(0.68 0.185 298);
  --violet-2:  oklch(0.60 0.185 298);
  --amber:     oklch(0.81 0.13 75);
  --good:      oklch(0.83 0.15 155);

  /* Flat tints (solid, single-color fills — not gradients) */
  --teal-wash:   oklch(0.84 0.145 188 / 0.10);
  --violet-wash: oklch(0.68 0.185 298 / 0.12);
  --ink-tint:    oklch(0.20 0.03 260);

  /* Selective luminosity — glow reserved for live instrumentation.
     Static chrome (nav, footer, prose) never uses these. */
  --glow-teal:      0 0 0.5px oklch(0.84 0.145 188 / 0.6), 0 0 12px oklch(0.84 0.145 188 / 0.28);
  --glow-teal-soft: 0 0 18px oklch(0.84 0.145 188 / 0.22);
  --glow-violet:    0 0 0.5px oklch(0.68 0.185 298 / 0.6), 0 0 12px oklch(0.68 0.185 298 / 0.30);
  --glow-good:      0 0 10px oklch(0.83 0.15 155 / 0.5);
  --text-glow-teal: 0 0 10px oklch(0.84 0.145 188 / 0.45);
  --text-glow-violet: 0 0 10px oklch(0.68 0.185 298 / 0.5);

  /* Type — Apple-grade pairing: system SF body · Archivo grotesque display · JetBrains Mono data */
  --sans: -apple-system, BlinkMacSystemFont, "SF Pro Text", "Inter", "Helvetica Neue", Arial, sans-serif;
  --display: "Archivo", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --mono: "JetBrains Mono", ui-monospace, "SFMono-Regular", Menlo, monospace;

  /* Fluid type ramp */
  --fs-body: 1.0625rem;      /* 17px — Apple body base */
  --fs-lead: clamp(1.08rem, 0.98rem + 0.5vw, 1.28rem);

  /* Space */
  --wrap: 1200px;
  --wrap-narrow: 820px;
  --pad: clamp(1.25rem, 4vw, 2.5rem);
  --section-y: clamp(4rem, 9vw, 7.5rem);

  --radius: 12px;
  --radius-sm: 8px;

  --z-nav: 100;
  --z-menu: 150;
  --z-overlay: 200;

  --ease: cubic-bezier(0.16, 1, 0.3, 1);
  --ease-apple: cubic-bezier(0.28, 0.11, 0.32, 1);
  --dur-fast: 150ms;
  --dur-base: 250ms;
  --dur-slow: 400ms;
}

* { box-sizing: border-box; margin: 0; padding: 0; }

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

body {
  font-family: var(--sans);
  font-size: var(--fs-body);
  background: var(--ink);
  color: var(--fg);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}

::selection { background: var(--teal-wash); color: var(--fg); }

.wrap { width: 100%; max-width: var(--wrap); margin-inline: auto; padding-inline: var(--pad); }
.wrap--narrow { max-width: var(--wrap-narrow); }

.mono { font-family: var(--mono); font-weight: 500; letter-spacing: 0.02em; font-variant-numeric: tabular-nums; font-feature-settings: "tnum" 1; }
.teal { color: var(--teal); }
.violet { color: var(--violet); }
.amber { color: var(--amber); }
.good { color: var(--good); }

a { color: inherit; text-decoration: none; }
em { font-style: normal; color: var(--teal); }
img { max-width: 100%; display: block; }

.skip-link {
  position: absolute; left: 1rem; top: -3rem; z-index: var(--z-overlay);
  background: var(--teal); color: var(--ink); padding: 0.55rem 1rem; border-radius: var(--radius-sm);
  font-weight: 600; transition: top 0.2s var(--ease);
}
.skip-link:focus { top: 1rem; }
:focus-visible { outline: 2px solid var(--teal); outline-offset: 3px; border-radius: 4px; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 0.5rem;
  font: 600 0.95rem/1 var(--sans); letter-spacing: 0.01em;
  padding: 0.85rem 1.4rem; border-radius: var(--radius-sm);
  border: 1px solid transparent; cursor: pointer;
  transition: transform 0.25s var(--ease), background 0.25s var(--ease), border-color 0.25s var(--ease), color 0.25s var(--ease);
}
.btn--primary { background: var(--teal); color: oklch(0.18 0.03 205); box-shadow: none; }
.btn--primary:hover { transform: translateY(-2px); background: oklch(0.88 0.145 188); box-shadow: none; }
.btn:active { transform: scale(0.98); transition-duration: var(--dur-fast); }
.btn--ghost { background: transparent; color: var(--fg); border-color: var(--line-2); }
.btn--ghost:hover { border-color: var(--teal); color: var(--teal); transform: translateY(-2px); }
.btn--sm { padding: 0.6rem 1.05rem; font-size: 0.88rem; }
.btn--block { width: 100%; }

.textlink { color: var(--teal); font-weight: 600; }
.textlink:hover { text-decoration: underline; }
.violetlink { color: var(--violet); font-weight: 600; }
.violetlink:hover { text-decoration: underline; }

/* ---------- Nav ---------- */
.nav {
  position: sticky; top: 0; z-index: var(--z-nav);
  background: oklch(0.16 0.022 205);
  backdrop-filter: none;
  border-bottom: 1px solid transparent;
  transition: border-color 0.3s var(--ease);
}
.nav.is-stuck { border-color: var(--line); }
/* Scroll-progress instrument line — thin luminous teal fill under the nav */
.nav__progress { position: absolute; left: 0; bottom: -1px; height: 2px; width: 100%; transform: scaleX(var(--scroll, 0)); transform-origin: left; background: var(--teal); box-shadow: none; opacity: 0; transition: opacity 0.3s var(--ease); }
.nav.is-stuck .nav__progress { opacity: 1; }
.nav__inner { display: flex; align-items: center; gap: 1.6rem; height: 66px; }
.brand { display: inline-flex; align-items: center; gap: 0.6rem; color: var(--teal); flex: none; }
.brand:hover .brand__mark { transform: rotate(90deg); }
.brand__mark { transition: transform 0.6s var(--ease); }
.brand__word { font-family: var(--display); font-weight: 700; font-size: 1.2rem; letter-spacing: -0.02em; color: var(--fg); }
.nav__inner { position: relative; }
.nav__links { display: flex; gap: 1.6rem; position: absolute; left: 50%; transform: translateX(-50%); }
.nav__links a { position: relative; color: var(--fg-muted); font-size: 0.9rem; font-weight: 500; transition: color 0.2s var(--ease); }
.nav__links a::after { content: ""; position: absolute; left: 0; right: 0; bottom: -6px; height: 2px; background: var(--teal); border-radius: 2px; transform: scaleX(0); transform-origin: center; transition: transform 0.25s var(--ease); }
.nav__links a:hover, .nav__links a[aria-current="page"] { color: var(--teal); }
.nav__links a:hover::after, .nav__links a[aria-current="page"]::after { transform: scaleX(1); }
.nav__cta { padding: 0.55rem 1.05rem; flex: none; margin-left: auto; }
.nav__toggle { display: none; background: transparent; border: 1px solid var(--line-2); border-radius: var(--radius-sm); color: var(--fg); width: 42px; height: 40px; cursor: pointer; margin-left: auto; }
.nav__toggle span { display: block; width: 18px; height: 2px; background: currentColor; margin: 3px auto; transition: transform 0.3s var(--ease), opacity 0.3s var(--ease); }

@media (max-width: 960px) {
  .nav__links { display: none; }
  .nav__cta { display: none; }
  .nav__toggle { display: block; }
  .nav.is-open .nav__toggle span:nth-child(1) { transform: translateY(5px) rotate(45deg); }
  .nav.is-open .nav__toggle span:nth-child(2) { opacity: 0; }
  .nav.is-open .nav__toggle span:nth-child(3) { transform: translateY(-5px) rotate(-45deg); }
}

/* mobile menu panel */
.menu {
  position: fixed; inset: 66px 0 auto 0; z-index: var(--z-menu);
  background: var(--ink); border-bottom: 1px solid var(--line);
  padding: 1.25rem var(--pad) 2rem; display: none;
}
.menu.is-open { display: block; }
.menu a { display: block; padding: 0.85rem 0; color: var(--fg); font-size: 1.05rem; border-bottom: 1px solid var(--line); }
.menu a:last-of-type { border-bottom: 0; }
.menu .btn { margin-top: 1.2rem; }

/* ---------- Section scaffolding ---------- */
.section { padding-block: var(--section-y); position: relative; }
.section + .section { border-top: 1px solid var(--line); }
.section--tint { background: var(--ink-tint-surface); }
.section__head { max-width: 64ch; margin-bottom: clamp(2.25rem, 5vw, 3.5rem); }
.section__head--center { margin-inline: auto; text-align: center; }
.label { font-family: var(--mono); font-size: 0.74rem; color: var(--teal); letter-spacing: 0.05em; display: block; margin-bottom: 0.9rem; }
.label--violet { color: var(--violet); }
h1, h2, h3, h4 { font-family: var(--display); font-weight: 600; letter-spacing: -0.025em; text-wrap: balance; line-height: 1.1; }
.section__head h2 { font-size: clamp(1.8rem, 3.6vw, 2.9rem); }
.section__sub { margin-top: 1.1rem; color: var(--fg-muted); max-width: 62ch; font-size: 1.05rem; text-wrap: pretty; }
.section__head--center .section__sub { margin-inline: auto; }
.prose p { color: var(--fg-muted); max-width: 70ch; text-wrap: pretty; }
.prose p + p { margin-top: 1.1rem; }

/* ---------- Page hero (subpages) ---------- */
.phero { padding-block: clamp(3.5rem, 8vw, 6rem) clamp(3rem, 6vw, 5rem); border-bottom: 1px solid var(--line); }
.phero__grid { display: grid; grid-template-columns: 1.1fr 0.9fr; gap: clamp(2rem, 5vw, 4rem); align-items: center; }
.phero h1 { font-size: clamp(2.3rem, 5.2vw, 4rem); letter-spacing: -0.03em; margin: 1rem 0 1.3rem; }
.phero__lede { font-size: var(--fs-lead); color: var(--fg-muted); max-width: 54ch; line-height: 1.5; text-wrap: pretty; }
.phero__actions { display: flex; flex-wrap: wrap; gap: 0.9rem; margin-top: 1.8rem; }
.crumbs { font-family: var(--mono); font-size: 0.74rem; color: var(--fg-dim); }
.crumbs a:hover { color: var(--teal); }
@media (max-width: 860px) { .phero__grid { grid-template-columns: 1fr; } }

/* ---------- Home hero ---------- */
.hero { padding-top: clamp(3rem, 7vw, 5.5rem); padding-bottom: clamp(3rem, 6vw, 5rem); position: relative; isolation: isolate; }
/* Ambient control-room backlight — reads as instrument glow, not decorative gradient. */
.hero::before {
  content: ""; position: absolute; z-index: -1; inset: -10% -5% auto -20%;
  height: 120%; pointer-events: none;
  background: none;
}
.hero__grid { display: grid; grid-template-columns: 1.05fr 0.95fr; gap: clamp(2rem, 5vw, 4.5rem); align-items: center; }
.hero__title { font-family: var(--display); font-size: clamp(2.15rem, 8.5vw, 5.4rem); line-height: 1.0; font-weight: 700; letter-spacing: -0.035em; margin: 1.2rem 0 1.4rem; text-wrap: balance; }
.hero__lede { font-size: var(--fs-lead); color: var(--fg-muted); max-width: 54ch; line-height: 1.5; text-wrap: pretty; }
.hero__actions { display: flex; flex-wrap: wrap; gap: 0.9rem; margin-top: 2rem; }
.hero__stats { display: flex; flex-wrap: wrap; gap: 2.2rem; margin-top: 2.6rem; }
.hero__stats div { border-left: 1px solid var(--line-2); padding-left: 0.9rem; }
.hero__stats dt { font-family: var(--mono); font-size: 0.95rem; color: var(--teal); text-shadow: none; }
.hero__stats dd { font-size: 0.85rem; color: var(--fg-dim); margin-top: 0.15rem; }
@media (max-width: 940px) {
  .hero__grid { grid-template-columns: 1fr; }
  .vessel { order: -1; max-width: 460px; width: 100%; }
}
@media (max-width: 560px) { .hero__stats { gap: 1.2rem; } }

/* ---------- Vessel instrument panel (flat) ---------- */
.vessel { margin: 0; }
.vessel__panel { background: var(--ink-2); border: 1px solid var(--line); border-radius: var(--radius); padding: 1rem; box-shadow: none; }
.vessel__header { display: flex; justify-content: space-between; align-items: center; font-size: 0.72rem; color: var(--fg-dim); margin-bottom: 0.8rem; }
.status { display: inline-flex; align-items: center; gap: 0.4rem; }
.status--good { color: var(--good); }
.dot { width: 7px; height: 7px; border-radius: 50%; background: currentColor; box-shadow: none; animation: pulse 2.4s var(--ease) infinite; }
@keyframes pulse { 0%,100% { opacity: 1; } 50% { opacity: 0.3; } }
.vessel__stage { position: relative; display: grid; grid-template-columns: 1fr auto; gap: 0.8rem; align-items: stretch; }
#reactorCanvas { width: 100%; height: auto; display: block; border-radius: var(--radius-sm); background: oklch(0.14 0.02 205); }
.vessel__readouts { display: grid; align-content: space-between; gap: 0.5rem; min-width: 92px; }
.ro { display: flex; flex-direction: column; gap: 0.1rem; padding: 0.5rem 0.6rem; background: oklch(0.15 0.02 205); border: 1px solid var(--line); border-radius: var(--radius-sm); }
.ro__k { font-size: 0.62rem; color: var(--fg-dim); }
.ro__v { font-size: 1rem; color: var(--teal); font-weight: 600; text-shadow: none; }
.vessel__curve { margin-top: 0.9rem; padding-top: 0.9rem; border-top: 1px solid var(--line); }
.curve__head { display: flex; justify-content: space-between; font-size: 0.72rem; color: var(--fg-dim); margin-bottom: 0.4rem; }
.curve__head .teal { font-size: 0.95rem; text-shadow: none; }
#titerCanvas { width: 100%; height: auto; display: block; }
@media (max-width: 560px) {
  .vessel__stage { grid-template-columns: 1fr; }
  .vessel__readouts { grid-template-columns: repeat(4, 1fr); min-width: 0; }
  .ro { padding: 0.45rem 0.5rem; }
}

/* ---------- Proof / logo bar ---------- */
.proofbar { display: flex; align-items: center; gap: 1.4rem; flex-wrap: wrap; margin-top: clamp(2.5rem, 5vw, 4rem); padding-top: 1.6rem; border-top: 1px solid var(--line); }
.proofbar > .mono { font-size: 0.72rem; color: var(--fg-dim); }
.proofbar ul { list-style: none; display: flex; flex-wrap: wrap; gap: 0.6rem 1.6rem; }
.proofbar li { font-size: 0.88rem; color: var(--fg-muted); }
.proofbar li::before { content: "·"; color: var(--teal); margin-right: 0.9rem; }
.proofbar li:first-child::before { display: none; }

/* ---------- Generic grids ---------- */
.grid { display: grid; gap: 1.4rem; }
.grid-2 { grid-template-columns: repeat(2, 1fr); }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-4 { grid-template-columns: repeat(4, 1fr); }
.grid-auto { grid-template-columns: repeat(auto-fit, minmax(255px, 1fr)); }
@media (max-width: 900px) { .grid-3, .grid-4 { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 620px) { .grid-2, .grid-3, .grid-4 { grid-template-columns: 1fr; } }

/* Feature panel (flat card, no shadow) */
.panel { background: var(--ink-2); border: 1px solid var(--line); border-radius: var(--radius); padding: 1.6rem 1.5rem; }
.panel--pad { padding: clamp(1.6rem, 3vw, 2.4rem); }
.panel h3 { font-size: 1.12rem; margin-bottom: 0.5rem; }
.panel p { font-size: 0.94rem; color: var(--fg-muted); }
.panel .label { margin-bottom: 0.8rem; }
.panel__num { font-family: var(--mono); font-size: 1.4rem; color: var(--teal); display: block; margin-bottom: 0.7rem; }

/* Mesh (bordered grid) */
.mesh { list-style: none; display: grid; grid-template-columns: repeat(auto-fit, minmax(255px, 1fr)); gap: 1px; background: var(--line); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; }
.mesh__node { background: var(--ink-2); padding: 1.6rem 1.5rem; position: relative; transition: background 0.3s var(--ease); }
.mesh__node:hover { background: var(--ink-3); }
.mesh__node::after { content: ""; position: absolute; left: 0; top: 0; width: 100%; height: 2px; background: var(--teal); opacity: 0; transition: opacity 0.3s var(--ease); }
.mesh__node[data-stage="sense"]::after, .mesh__node[data-stage="twin"]::after { background: var(--violet); }
.mesh__node:hover::after { opacity: 1; }
.mesh__node--link { background: var(--violet-wash); }
.mesh__node--link::after { opacity: 0.5; }
.mesh__node--link a { color: var(--violet); font-weight: 600; white-space: nowrap; }
.mesh__node--link a:hover { text-decoration: underline; }
.mesh__tag { font-size: 0.66rem; color: var(--teal); letter-spacing: 0.06em; display: block; margin-bottom: 0.9rem; }
.mesh__tag.violet { color: var(--violet); }
.mesh__node h3 { font-size: 1.08rem; font-weight: 600; margin-bottom: 0.5rem; }
.mesh__node p { font-size: 0.9rem; color: var(--fg-muted); }

/* ---------- Split / alternating feature rows ---------- */
.split { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(2rem, 5vw, 4.5rem); align-items: center; }
.split--narrow { grid-template-columns: 0.95fr 1.05fr; }
.split__media { border: 1px solid var(--line); border-radius: var(--radius); background: var(--ink-2); padding: 1.1rem; }
.split h2, .split h3 { font-size: clamp(1.6rem, 3vw, 2.4rem); margin-bottom: 1.1rem; }
.split p { color: var(--fg-muted); max-width: 52ch; }
.split .checklist { margin-top: 1.6rem; }
.split.is-reversed .split__media { order: 2; }
@media (max-width: 860px) { .split, .split--narrow { grid-template-columns: 1fr; } .split.is-reversed .split__media { order: 0; } }

/* Checklist */
.checklist { list-style: none; display: grid; gap: 0.9rem; }
.checklist li { display: flex; gap: 0.8rem; align-items: baseline; color: var(--fg); font-size: 0.98rem; }
.checklist li::before { content: "→"; color: var(--teal); font-family: var(--mono); flex: none; }
.checklist--violet li::before { color: var(--violet); }

/* ---------- Stats row (flat, hairline top) ---------- */
.stats { display: grid; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); gap: 1.6rem; }
.stat { padding-top: 1.3rem; border-top: 2px solid var(--line-2); }
.stat__k { font-size: 0.7rem; color: var(--teal); letter-spacing: 0.06em; display: block; margin-bottom: 0.7rem; font-family: var(--mono); }
.stat p { font-size: 0.96rem; color: var(--fg-muted); }
.stat strong { color: var(--fg); }
.stat__big { font-family: var(--display); font-size: clamp(2rem, 4vw, 2.8rem); font-weight: 700; letter-spacing: -0.03em; color: var(--fg); display: block; margin-bottom: 0.3rem; font-variant-numeric: tabular-nums; }

/* ---------- Steps / timeline ---------- */
.steps { list-style: none; display: grid; gap: 1px; background: var(--line); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; }
.step { background: var(--ink-2); padding: 1.5rem clamp(1.4rem, 3vw, 2.2rem); display: grid; grid-template-columns: auto 1fr; gap: 1.3rem; align-items: start; }
.step__n { font-family: var(--mono); font-size: 0.9rem; color: var(--teal); border: 1px solid var(--line-2); border-radius: 50%; width: 40px; height: 40px; display: grid; place-items: center; flex: none; }
.step h3 { font-size: 1.1rem; margin-bottom: 0.4rem; }
.step p { color: var(--fg-muted); font-size: 0.95rem; max-width: 68ch; }

/* ---------- Comparison table ---------- */
.tablewrap { border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; overflow-x: auto; }
table.compare { width: 100%; border-collapse: collapse; min-width: 640px; }
.compare th, .compare td { text-align: left; padding: 1rem 1.2rem; border-bottom: 1px solid var(--line); font-size: 0.94rem; }
.compare thead th { background: var(--ink-3); font-family: var(--mono); font-size: 0.74rem; letter-spacing: 0.04em; color: var(--fg-dim); text-transform: uppercase; }
.compare tbody tr:last-child td { border-bottom: 0; }
.compare td:first-child { color: var(--fg); font-weight: 500; }
.compare td .teal { font-family: var(--mono); }
.compare .no { color: var(--fg-dim); }

/* ---------- Quote / testimonial ---------- */
.quote { border: 1px solid var(--line); border-radius: var(--radius); padding: clamp(1.8rem, 4vw, 3rem); background: var(--ink-2); }
.quote blockquote { font-size: clamp(1.3rem, 2.4vw, 1.9rem); line-height: 1.35; letter-spacing: -0.02em; }
.quote figcaption { margin-top: 1.4rem; font-family: var(--mono); font-size: 0.8rem; color: var(--fg-dim); }
.quote figcaption strong { color: var(--teal); font-weight: 600; }

/* ---------- FAQ (native details) ---------- */
.faq { border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; }
.faq details { border-bottom: 1px solid var(--line); }
.faq details:last-child { border-bottom: 0; }
.faq summary { list-style: none; cursor: pointer; padding: 1.2rem 1.4rem; font-weight: 600; display: flex; justify-content: space-between; align-items: center; gap: 1rem; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; font-family: var(--mono); color: var(--teal); font-size: 1.2rem; flex: none; transition: transform 0.25s var(--ease); }
.faq details[open] summary::after { transform: rotate(45deg); }
.faq details > p { padding: 0 1.4rem 1.3rem; color: var(--fg-muted); font-size: 0.96rem; max-width: 68ch; }

/* ---------- Pricing tiers ---------- */
.tiers { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.4rem; }
.tier { background: var(--ink-2); border: 1px solid var(--line); border-radius: var(--radius); padding: 1.8rem; display: flex; flex-direction: column; position: relative; }
.tier--featured { border-color: var(--teal); box-shadow: none; }
.tier__badge { position: absolute; top: -0.7rem; left: 1.8rem; background: var(--teal); color: oklch(0.18 0.03 205); font-size: 0.62rem; padding: 0.25rem 0.6rem; border-radius: 4px; letter-spacing: 0.06em; box-shadow: none; }
.tier__name { font-size: 1.3rem; font-weight: 700; }
.tier__price { margin: 1rem 0 0.4rem; display: flex; flex-wrap: wrap; align-items: baseline; gap: 0.4rem; }
.tier__price .mono { font-size: 1.6rem; color: var(--fg); font-weight: 600; }
.tier__unit { font-size: 0.8rem; color: var(--fg-dim); }
.tier__desc { font-size: 0.9rem; color: var(--fg-muted); margin: 0.8rem 0 1.4rem; }
.tier__list { list-style: none; display: grid; gap: 0.6rem; margin-bottom: 1.6rem; flex: 1; }
.tier__list li { font-size: 0.88rem; color: var(--fg-muted); display: flex; gap: 0.6rem; }
.tier__list li::before { content: "→"; color: var(--teal); font-family: var(--mono); }
.tier__cta { width: 100%; }
@media (max-width: 820px) { .tiers { grid-template-columns: 1fr; } }

/* ---------- Digital twin viz panel (flat) ---------- */
.twin__panel { background: var(--ink-2); border: 1px solid var(--line); border-radius: var(--radius); padding: 1.1rem; box-shadow: none; }
.twin__panel-head { display: flex; justify-content: space-between; font-size: 0.72rem; color: var(--fg-dim); margin-bottom: 0.7rem; }
#twinCanvas { width: 100%; height: auto; display: block; background: oklch(0.14 0.02 205); border-radius: var(--radius-sm); }
.twin__legend { display: flex; gap: 1.4rem; font-size: 0.7rem; color: var(--fg-dim); margin-top: 0.8rem; flex-wrap: wrap; }
.twin__legend span { display: inline-flex; align-items: center; gap: 0.4rem; }
.swatch { width: 14px; height: 3px; border-radius: 2px; display: inline-block; }
.swatch--teal { background: var(--teal); }
.swatch--violet { background: var(--violet); }
.swatch--line { background: var(--fg-dim); }

/* ---------- Tag pills / meta ---------- */
.pills { display: flex; flex-wrap: wrap; gap: 0.6rem; }
.pill { font-family: var(--mono); font-size: 0.72rem; color: var(--fg-muted); border: 1px solid var(--line-2); border-radius: 999px; padding: 0.35rem 0.85rem; }
.pill--teal { color: var(--teal); border-color: var(--teal); }

/* ---------- Resource / post list ---------- */
.postlist { list-style: none; display: grid; gap: 1px; background: var(--line); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; }
.postlist a { background: var(--ink-2); display: grid; grid-template-columns: 1fr auto; gap: 1rem; align-items: center; padding: 1.3rem clamp(1.3rem, 3vw, 2rem); transition: background 0.25s var(--ease); }
.postlist a:hover { background: var(--ink-3); }
.postlist h3 { font-size: 1.05rem; margin-bottom: 0.3rem; }
.postlist p { font-size: 0.88rem; color: var(--fg-muted); }
.postlist .mono { font-size: 0.72rem; color: var(--fg-dim); white-space: nowrap; }

/* ---------- Roles / jobs ---------- */
.roles { list-style: none; display: grid; gap: 1px; background: var(--line); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; }
.role { background: var(--ink-2); display: grid; grid-template-columns: 1fr auto auto; gap: 1rem; align-items: center; padding: 1.2rem clamp(1.3rem, 3vw, 2rem); }
.role h3 { font-size: 1.02rem; }
.role .mono { font-size: 0.76rem; color: var(--fg-dim); }
@media (max-width: 620px) { .role { grid-template-columns: 1fr; gap: 0.4rem; } }

/* ---------- Contact / forms ---------- */
.form { display: grid; gap: 1rem; }
.form--panel { background: var(--ink-2); border: 1px solid var(--line); border-radius: var(--radius); padding: clamp(1.6rem, 4vw, 2.4rem); }
.field { display: grid; gap: 0.4rem; }
.field__label { font-size: 0.66rem; color: var(--fg-dim); letter-spacing: 0.06em; font-family: var(--mono); }
.field input, .field textarea, .field select {
  font: 500 1rem var(--sans); color: var(--fg);
  background: var(--ink-3); border: 1px solid var(--line-2); border-radius: var(--radius-sm);
  padding: 0.85rem 1rem; transition: border-color 0.2s var(--ease); width: 100%;
}
.field textarea { min-height: 120px; resize: vertical; }
.field input::placeholder, .field textarea::placeholder { color: var(--fg-dim); }
.field input:focus, .field textarea:focus, .field select:focus { outline: none; border-color: var(--teal); }
.form__row { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }
@media (max-width: 560px) { .form__row { grid-template-columns: 1fr; } }
.form__note { font-size: 0.85rem; min-height: 1.2rem; color: var(--good); }
.form__note.is-error { color: var(--amber); }

/* ---------- CTA band (flat) ---------- */
.cta__inner { display: grid; grid-template-columns: 1.1fr 0.9fr; gap: clamp(2rem, 5vw, 4rem); align-items: center; background: var(--ink-2); border: 1px solid var(--line-2); border-radius: var(--radius); padding: clamp(2rem, 5vw, 3.5rem); }
.cta__inner h2 { font-size: clamp(1.6rem, 3vw, 2.4rem); line-height: 1.12; }
.cta__sub { color: var(--fg-muted); margin-top: 1rem; }
@media (max-width: 820px) { .cta__inner { grid-template-columns: 1fr; } }

/* ---------- Contentful problem grid ---------- */
.problem__grid { display: grid; grid-template-columns: 0.9fr 1.1fr; gap: clamp(2rem, 5vw, 4rem); align-items: start; }
.problem__lede { font-size: clamp(1.1rem, 1.8vw, 1.35rem); line-height: 1.5; color: var(--fg); }
.failmodes { list-style: none; display: grid; grid-template-columns: 1fr 1fr; gap: 1.4rem; }
.failmodes li { padding: 1.2rem; background: var(--ink-2); border: 1px solid var(--line); border-radius: var(--radius); }
.failmodes .mono { font-size: 0.7rem; display: block; margin-bottom: 0.5rem; letter-spacing: 0.05em; }
.failmodes p { font-size: 0.92rem; color: var(--fg-muted); }
@media (max-width: 820px) { .problem__grid { grid-template-columns: 1fr; } .failmodes { grid-template-columns: 1fr; } }

/* ---------- Footer ---------- */
.footer { border-top: 1px solid var(--line); padding-block: clamp(3rem, 6vw, 4.5rem) 2.5rem; }
.footer__top { display: grid; grid-template-columns: 1.4fr repeat(4, 1fr); gap: 2rem; }
.footer__brand .brand { margin-bottom: 0.9rem; }
.footer__brand p { font-family: var(--mono); font-size: 0.78rem; color: var(--teal); max-width: 30ch; }
.footer__col h4 { font-family: var(--mono); font-size: 0.72rem; color: var(--fg-dim); letter-spacing: 0.06em; margin-bottom: 1rem; text-transform: uppercase; font-weight: 500; }
.footer__col ul { list-style: none; display: grid; gap: 0.6rem; }
.footer__col a { color: var(--fg-muted); font-size: 0.9rem; }
.footer__col a:hover { color: var(--teal); }
.footer__bottom { display: flex; justify-content: space-between; gap: 1rem; flex-wrap: wrap; margin-top: clamp(2.5rem, 5vw, 3.5rem); padding-top: 1.6rem; border-top: 1px solid var(--line); }
.footer__meta { font-size: 0.74rem; color: var(--fg-dim); font-family: var(--mono); }
.footer__disclaimer { font-size: 0.72rem; color: var(--fg-dim); max-width: 60ch; }
@media (max-width: 860px) { .footer__top { grid-template-columns: 1fr 1fr; } }
@media (max-width: 520px) { .footer__top { grid-template-columns: 1fr; } }

/* ---------- Reveal motion ---------- */
.reveal { opacity: 0; transform: translateY(20px); transition: opacity 0.7s var(--ease), transform 0.7s var(--ease); }
.reveal.is-in { opacity: 1; transform: none; }
.reveal:nth-child(2) { transition-delay: 0.06s; }
.reveal:nth-child(3) { transition-delay: 0.12s; }
.reveal:nth-child(4) { transition-delay: 0.18s; }
.reveal:nth-child(5) { transition-delay: 0.24s; }
.reveal:nth-child(6) { transition-delay: 0.30s; }

/* directional + scale reveals */
.reveal-left  { opacity: 0; transform: translateX(-28px); transition: opacity 0.75s var(--ease), transform 0.75s var(--ease); }
.reveal-right { opacity: 0; transform: translateX(28px);  transition: opacity 0.75s var(--ease), transform 0.75s var(--ease); }
.reveal-zoom  { opacity: 0; transform: scale(0.94); transition: opacity 0.75s var(--ease), transform 0.75s var(--ease); }
.reveal-left.is-in, .reveal-right.is-in, .reveal-zoom.is-in { opacity: 1; transform: none; }

/* staggered children: add .stagger to a container, its .reveal kids cascade */
.stagger.is-in > * { animation: rise 0.7s var(--ease) both; }
.stagger.is-in > *:nth-child(1) { animation-delay: 0.02s; }
.stagger.is-in > *:nth-child(2) { animation-delay: 0.09s; }
.stagger.is-in > *:nth-child(3) { animation-delay: 0.16s; }
.stagger.is-in > *:nth-child(4) { animation-delay: 0.23s; }
.stagger.is-in > *:nth-child(5) { animation-delay: 0.30s; }
.stagger.is-in > *:nth-child(6) { animation-delay: 0.37s; }
@keyframes rise { from { opacity: 0; transform: translateY(22px); } to { opacity: 1; transform: none; } }

@media (prefers-reduced-motion: reduce) {
  .reveal, .reveal-left, .reveal-right, .reveal-zoom { opacity: 1; transform: none; transition: none; }
  .stagger.is-in > * { animation: none; }
  .dot { animation: none; }
  .btn:hover, .btn--ghost:hover, .btn--primary:hover, .btn:active { transform: none; }
  .brand:hover .brand__mark, .prodcard:hover, .panel--hover:hover { transform: none; }
  .float { animation: none; }
}

/* gentle idle float for hero logos */
.float { animation: float 6s ease-in-out infinite; }
@keyframes float { 0%,100% { transform: translateY(0); } 50% { transform: translateY(-10px); } }

/* ---------- Utilities ---------- */
.mt-0 { margin-top: 0; }
.center { text-align: center; }
.muted { color: var(--fg-muted); }
.dim { color: var(--fg-dim); }
.lead { font-size: 1.15rem; color: var(--fg-muted); max-width: 62ch; }
.stack > * + * { margin-top: 1.1rem; }
.divider { height: 1px; background: var(--line); border: 0; margin-block: clamp(2rem,4vw,3rem); }

/* ---------- Card hover micro-interactions ---------- */
.panel { transition: transform 0.3s var(--ease), border-color 0.3s var(--ease), background 0.3s var(--ease); }
.panel--hover:hover { transform: translateY(-4px); border-color: var(--line-2); }
.step { transition: background 0.3s var(--ease); }
.step:hover { background: var(--ink-3); }
.failmodes li { transition: transform 0.3s var(--ease), border-color 0.3s var(--ease); }
.failmodes li:hover { transform: translateY(-3px); border-color: var(--line-2); }

/* ============================================================
   Product line — index grid + individual product pages
   Accent driven by --accent set per product on <body>
   ============================================================ */
:root { --accent: var(--teal); --accent-wash: var(--teal-wash); }

/* Product index cards */
.prodgrid { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 1.4rem; }
.prodcard {
  background: var(--ink-2); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 1.8rem 1.6rem; display: flex; flex-direction: column; gap: 0.4rem;
  position: relative; overflow: hidden;
  transition: transform 0.3s var(--ease), border-color 0.3s var(--ease);
}
.prodcard::before { content: ""; position: absolute; left: 0; top: 0; bottom: 0; width: 3px; background: var(--pc, var(--teal)); transform: scaleY(0); transform-origin: top; transition: transform 0.35s var(--ease); }
.prodcard:hover { transform: translateY(-5px); border-color: var(--line-2); }
.prodcard:hover::before { transform: scaleY(1); }
.prodcard__top { display: flex; align-items: center; gap: 0.9rem; margin-bottom: 0.6rem; }
.prodcard__logo { width: 54px; height: 54px; flex: none; border: 1px solid var(--line); border-radius: 12px; background: var(--ink-3); padding: 8px; transition: transform 0.4s var(--ease); }
.prodcard:hover .prodcard__logo { transform: rotate(8deg) scale(1.06); }
.prodcard__name { font-family: var(--display); font-size: 1.3rem; font-weight: 700; letter-spacing: -0.02em; }
.prodcard__role { font-family: var(--mono); font-size: 0.68rem; color: var(--pc, var(--teal)); letter-spacing: 0.05em; display: block; margin-top: 0.15rem; }
.prodcard p { font-size: 0.94rem; color: var(--fg-muted); flex: 1; }
.prodcard__link { margin-top: 1rem; font-family: var(--mono); font-size: 0.8rem; color: var(--pc, var(--teal)); font-weight: 600; display: inline-flex; align-items: center; gap: 0.4rem; }
.prodcard:hover .prodcard__link { gap: 0.7rem; }

/* Product hero */
.prod-hero { padding-block: clamp(3.5rem, 8vw, 6rem) clamp(2.5rem, 5vw, 4rem); border-bottom: 1px solid var(--line); position: relative; }
.prod-hero__grid { position: relative; display: grid; grid-template-columns: 1.15fr 0.85fr; gap: clamp(2rem, 5vw, 4rem); align-items: center; }
.prod-hero h1 { font-size: clamp(2.4rem, 6vw, 4.2rem); letter-spacing: -0.03em; margin: 1rem 0 1.2rem; }
.prod-hero__tagline { font-size: clamp(1.1rem, 1.8vw, 1.4rem); color: var(--fg); max-width: 38ch; line-height: 1.4; }
.prod-hero .label { color: var(--accent); }
.prod-hero__actions { display: flex; flex-wrap: wrap; gap: 0.9rem; margin-top: 1.8rem; }
.prod-hero__badge { display: inline-flex; align-items: center; gap: 0.5rem; font-family: var(--mono); font-size: 0.72rem; color: var(--fg-dim); border: 1px solid var(--line-2); border-radius: 999px; padding: 0.35rem 0.9rem; margin-top: 1.6rem; }
.prod-hero__badge i { width: 8px; height: 8px; border-radius: 50%; background: var(--accent); box-shadow: none; }
.prodlogo-stage { display: grid; place-items: center; border: 1px solid var(--line); border-radius: var(--radius); background: var(--ink-2); padding: clamp(2rem, 5vw, 3.4rem); position: relative; overflow: hidden; box-shadow: none; }
.prodlogo-stage::before, .prodlogo-stage::after { content: ""; position: absolute; border: 1px solid var(--line); border-radius: 50%; opacity: 0.5; }
.prodlogo-stage::before { width: 78%; aspect-ratio: 1; }
.prodlogo-stage::after { width: 52%; aspect-ratio: 1; }
.prodlogo-stage img { position: relative; width: min(210px, 60%); height: auto; filter: none; }
@media (max-width: 880px) { .prod-hero__grid { grid-template-columns: 1fr; } .prodlogo-stage { order: -1; max-width: 340px; } }

/* Accent helpers reused on product pages */
.accent { color: var(--accent); }
.chip { display: inline-flex; align-items: center; gap: 0.45rem; font-family: var(--mono); font-size: 0.7rem; color: var(--accent); border: 1px solid currentColor; border-radius: 999px; padding: 0.3rem 0.8rem; }
.acc-node::after { background: var(--accent) !important; }
.tag-accent { color: var(--accent) !important; }
.checklist--accent li::before { color: var(--accent); }
.btn--accent { background: var(--accent); color: oklch(0.16 0.02 205); border-color: var(--accent); box-shadow: none; }
.btn--accent:hover { transform: translateY(-2px); filter: brightness(1.08); box-shadow: none; }
.btn--accent-ghost { background: transparent; color: var(--fg); border-color: var(--line-2); }
.btn--accent-ghost:hover { border-color: var(--accent); color: var(--accent); transform: translateY(-2px); }

/* Spec list: label + value rows */
.specs { list-style: none; border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; }
.specs li { display: grid; grid-template-columns: 200px 1fr; gap: 1rem; padding: 1.1rem clamp(1.2rem, 3vw, 1.8rem); border-bottom: 1px solid var(--line); }
.specs li:last-child { border-bottom: 0; }
.specs dt, .specs .specs__k { font-family: var(--mono); font-size: 0.74rem; color: var(--accent); letter-spacing: 0.04em; text-transform: uppercase; }
.specs .specs__v { color: var(--fg-muted); font-size: 0.95rem; }
@media (max-width: 620px) { .specs li { grid-template-columns: 1fr; gap: 0.35rem; } }

/* Ecosystem link chips on product pages */
.ecolinks { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 1px; background: var(--line); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; }
.ecolink { background: var(--ink-2); padding: 1.4rem 1.4rem; display: flex; gap: 0.9rem; align-items: center; transition: background 0.3s var(--ease); }
.ecolink:hover { background: var(--ink-3); }
.ecolink img { width: 38px; height: 38px; flex: none; }
.ecolink h4 { font-family: var(--display); font-size: 1.02rem; margin-bottom: 0.1rem; }
.ecolink p { font-size: 0.82rem; color: var(--fg-muted); }
