/* ===================================================================
   ISSALABS — v4: Animated editorial, premium restraint
   =================================================================== */

/* ---- TOKENS ---- */
:root {
  --bg: #faf9f7;
  --text: #1a1916;
  --text-mid: #4a4540;
  --text-muted: #8a8278;
  --accent: #b7a285;
  --border: rgba(0, 0, 0, 0.09);
  --border-mid: rgba(0, 0, 0, 0.12);
  --surface: rgba(0, 0, 0, 0.025);
  --live-green: #2d7d5a;
  --live-bg: rgba(45, 125, 90, 0.07);
  --hero-copy: rgba(28, 28, 24, 0.76);
  --hero-support: rgba(28, 28, 24, 0.58);
  --hero-pill-text: rgba(28, 28, 24, 0.72);
  --hero-pill-border: rgba(28, 28, 24, 0.16);
  --hero-pill-bg: rgba(28, 28, 24, 0.045);
  --hero-secondary-text: rgba(28, 28, 24, 0.68);
  --hero-secondary-border: rgba(28, 28, 24, 0.14);
  --hero-secondary-bg: rgba(28, 28, 24, 0.025);

  --font-sans: 'DM Sans', 'Helvetica Neue', sans-serif;
  --font-serif: 'DM Serif Display', 'Georgia', serif;
  --font-mono: 'DM Mono', 'Courier New', monospace;

  --shell-pad: 56px;
  --content-w: 900px;
}

/* ---- RESET ---- */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-sans);
  font-size: 16px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
h1, h2, h3, p { margin: 0; }
a { color: inherit; text-decoration: none; }
ul { margin: 0; padding: 0; list-style: none; }
button { font: inherit; }
/* ---- BACKGROUND LAYERS — all z-index 0 in root stacking context ---- */

/* ---- GRAIN TEXTURE OVERLAY ---- */
.grain {
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  opacity: 0.035;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
  background-size: 180px 180px;
  /* Static — subtle texture, no animation needed */
}

/* ---- AMBIENT GLOW BLOBS — 2 only ---- */
.bg-glow {
  position: fixed;
  border-radius: 50%;
  pointer-events: none;
  will-change: transform;
  z-index: 0;
}
.bg-glow--1 {
  top: -20%; left: -15%;
  width: 70vw; height: 70vw;
  max-width: 900px; max-height: 900px;
  background: radial-gradient(circle, rgba(183,162,133,0.16) 0%, rgba(183,162,133,0.06) 35%, transparent 70%);
  filter: blur(60px);
  animation: glowDrift1 18s ease-in-out infinite;
}
.bg-glow--2 {
  bottom: -25%; right: -20%;
  width: 60vw; height: 60vw;
  max-width: 750px; max-height: 750px;
  background: radial-gradient(circle, rgba(183,162,133,0.12) 0%, rgba(165,145,105,0.04) 40%, transparent 65%);
  filter: blur(70px);
  animation: glowDrift2 22s ease-in-out infinite;
}

@keyframes glowDrift1 {
  0%, 100% { transform: translate(0,0) scale(1) rotate(0deg); }
  33%       { transform: translate(4vw,5vh) scale(1.06) rotate(1.5deg); }
  66%       { transform: translate(-3vw,2vh) scale(0.96) rotate(-1deg); }
}
@keyframes glowDrift2 {
  0%, 100% { transform: translate(0,0) scale(1) rotate(0deg); }
  40%       { transform: translate(-5vw,-4vh) scale(1.08) rotate(-2deg); }
  70%       { transform: translate(3vw,-6vh) scale(0.94) rotate(1deg); }
}

/* ---- DOT GRID — static ---- */
.bg-grid {
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
}
.bg-grid::before {
  content: '';
  position: absolute;
  inset: -30%;
  background-image: radial-gradient(circle, rgba(0,0,0,0.10) 1px, transparent 1px);
  background-size: 26px 26px;
  opacity: 0.55;
}
.bg-grid::after {
  content: '';
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 100% 80% at 25% 35%, rgba(183,162,133,0.12) 0%, transparent 50%),
    radial-gradient(ellipse 80% 100% at 78% 68%, rgba(170,148,110,0.09) 0%, transparent 45%),
    radial-gradient(ellipse 120% 60% at 50% 50%, rgba(250,249,247,0.25) 0%, transparent 80%);
}

/* ---- FLOATING GEOMETRY — 2 essential shapes ---- */
.bg-shape {
  position: fixed;
  z-index: 0;
  pointer-events: none;
  opacity: 0;
  animation: shapeAppear 1.8s ease forwards;
}
.bg-shape--1 {
  top: 8%; right: 4%;
  width: 300px; height: 300px;
  border: 1.5px solid rgba(183,162,133,0.22);
  border-radius: 50%;
  box-shadow: 0 0 50px rgba(183,162,133,0.07), inset 0 0 50px rgba(183,162,133,0.04);
  animation-delay: 0.3s, 2s;
  animation-name: shapeAppear, floatA;
  animation-duration: 1.8s, 14s;
  animation-timing-function: ease, ease-in-out;
  animation-iteration-count: 1, infinite;
  animation-fill-mode: forwards, none;
}
.bg-shape--2 {
  bottom: 18%; left: 2%;
  width: 180px; height: 180px;
  border: 1.5px solid rgba(183,162,133,0.16);
  transform: rotate(45deg);
  box-shadow: 0 0 35px rgba(183,162,133,0.05);
  animation-delay: 0.8s, 3s;
  animation-name: shapeAppear, floatB;
  animation-duration: 1.8s, 18s;
  animation-timing-function: ease, ease-in-out;
  animation-iteration-count: 1, infinite;
  animation-fill-mode: forwards, none;
}

@keyframes floatA {
  0%, 100% { transform: translateY(0) rotate(0deg); }
  50%       { transform: translateY(-18px) rotate(3deg); }
}
@keyframes floatB {
  0%, 100% { transform: translateY(0) rotate(45deg); }
  50%       { transform: translateY(-12px) rotate(48deg); }
}
@keyframes shapeAppear {
  from { opacity: 0; transform: scale(0.5); }
  to   { opacity: 1; }
}

/* Hero warm veil — light source behind headline */
.hero-veil {
  position: absolute;
  top: -10%; left: -10%;
  width: 60%; height: 80%;
  background: radial-gradient(ellipse 60% 80% at 30% 50%, rgba(183,162,133,0.10) 0%, rgba(183,162,133,0.03) 50%, transparent 75%);
  pointer-events: none;
  z-index: 0;
  animation: veilBreath 5s ease-in-out infinite;
  filter: blur(28px);
}
@keyframes veilBreath {
  0%, 100% { opacity: 0.6; transform: scale(1) translateX(0); }
  50%       { opacity: 0.95; transform: scale(1.12) translateX(2%); }
}

/* ---- CURSOR ORB ---- */
.cursor-orb {
  position: fixed;
  width: 520px;
  height: 520px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(183,162,133,0.12) 0%, rgba(183,162,133,0.04) 40%, transparent 68%);
  pointer-events: none;
  z-index: 2;
  /* JS sets transform: translate(x,y) — centered on cursor by offsetting initial coords */
  will-change: transform;
  filter: blur(2px);
}

/* ---- SCROLL PROGRESS BAR ---- */
.scroll-progress {
  position: fixed;
  top: 0;
  left: 0;
  height: 2px;
  background: linear-gradient(to right, var(--accent), rgba(183,162,133,0.4));
  z-index: 200;
  width: 0%;
  transition: width 100ms linear;
  pointer-events: none;
}

/* ---- NAV ---- */
.nav {
  position: sticky;
  top: 0;
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 var(--shell-pad);
  height: 112px;
  background: rgba(250,249,247,0.92);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid rgba(0,0,0,0.09);
  transition: box-shadow 300ms ease;
}
.nav--scrolled { box-shadow: 0 2px 24px rgba(0,0,0,0.07); }

.nav__brand {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-serif);
  font-size: 1.2rem;
  font-style: italic;
  color: var(--text);
  letter-spacing: -0.01em;
  line-height: 1;
  background: transparent;
  border: 0;
  box-shadow: none;
  padding: 0;
}
.nav__brand::before,
.nav__brand::after {
  content: none !important;
}
.nav__logo {
  height: clamp(56px, 5vw, 72px);
  width: auto;
  display: block;
  background: transparent;
}
.nav__links { display: flex; align-items: center; gap: 36px; }
.nav__link {
  font-size: 1rem;
  font-weight: 700;
  color: var(--text-mid);
  letter-spacing: 0.01em;
  transition: color 150ms ease;
}
.nav__link:hover { color: var(--text); }

/* ===================================================================
   ILLUSTRATION SYSTEM — Premium transparent PNG illustrations
   True RGBA assets render directly on the site background in both themes.
   =================================================================== */

/* Base illustration rules */
.section-illustration {
  display: block;
  width: 100%;
  max-width: 100%;
  height: auto;
  object-fit: contain;
  pointer-events: none;
  user-select: none;
  border-radius: 0;
}

/* Illustration wrap with ambient glow — creates compositing barrier to block
   fixed background layers (grain, dot grid, glows) from bleeding through
   transparent PNG alpha channels in both light and dark mode, especially
   critical for dark mode where the noise becomes highly visible. */
.illustration-wrap {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
}
/* Solid backdrop behind the image — blocks ALL fixed background layers */
.illustration-wrap::after {
  content: '';
  position: absolute;
  inset: -8px;
  z-index: -1;
  border-radius: 12px;
  background: var(--bg);
  pointer-events: none;
}
.illustration-wrap::before {
  content: '';
  position: absolute;
  inset: 8%;
  z-index: -2;
  border-radius: 999px;
  background: radial-gradient(circle, rgba(183,162,133,0.20) 0%, rgba(183,162,133,0.06) 40%, transparent 68%);
  filter: blur(32px);
  pointer-events: none;
}

/* Hero illustration */
.hero__visual {
  display: flex;
  align-items: center;
  justify-content: center;
  padding-left: 24px;
}
.hero__visual .section-illustration {
  width: clamp(460px, 44vw, 640px);
  max-height: 620px;
  object-fit: contain;
}
.hero__visual .illustration-wrap::before {
  inset: 5%;
  filter: blur(48px);
  opacity: 0.85;
}

[data-theme="dark"] .illustration-wrap::before {
  background: radial-gradient(circle, rgba(201,168,118,0.18) 0%, rgba(201,168,118,0.06) 40%, transparent 68%);
}

/* Product card illustration */
.product__visual {
  position: relative;
  right: auto;
  bottom: auto;
  width: min(100%, 300px);
  z-index: 0;
  pointer-events: none;
  line-height: 0;
  opacity: 0.88;
  justify-self: start;
  align-self: center;
}
.product {
  position: relative;
  overflow: hidden;
}
.product > * {
  position: relative;
  z-index: 2;
}
.product__visual .section-illustration {
  width: 100%;
  height: auto;
  object-fit: contain;
  filter: saturate(1.02) contrast(1.01);
}
/* Gradient shield between text and illustration */
.product::after {
  content: none;
}
[data-theme="dark"] .product::after {
  content: none;
}
/* Lab method illustration */
.model__visual {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0 0 0 40px;
}
.model__visual .section-illustration {
  width: min(100%, 920px);
  max-height: none;
  object-fit: contain;
  opacity: 0.94;
  filter: saturate(1.01) contrast(1.01);
}

/* CTA illustration */
.cta__visual {
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  padding-left: 0;
}
.cta__visual .section-illustration {
  width: clamp(200px, 22vw, 300px);
  max-height: 300px;
  object-fit: contain;
  opacity: 1;
  filter: saturate(1.08) contrast(1.03) drop-shadow(0 10px 28px rgba(201,168,118,0.18));
}
[data-theme="dark"] .cta__visual .illustration-wrap::before {
  inset: 15%;
}

/* Product page hero illustration */
.product-page__hero-visual {
  display: flex;
  align-items: center;
  justify-content: flex-end;
}
.product-page__hero-visual .section-illustration {
  width: min(44vw, 560px);
  max-height: 440px;
  object-fit: contain;
  filter: saturate(1.01) contrast(1.01);
}

/* ===================================================================
   RESPONSIVE: 900px
   =================================================================== */
@media (max-width: 900px) {
  .hero__inner {
    grid-template-columns: 1fr;
    gap: 0;
  }
  .hero__visual {
    padding-left: 0;
    justify-content: center;
    padding-top: 40px;
  }
  .hero__visual .section-illustration {
    width: min(90vw, 520px);
    max-height: 320px;
  }

  .product__visual {
    display: none; /* hide heavy illustrations on mobile cards */
  }
  .product {
    grid-template-columns: 1fr;
    gap: 20px 0;
  }
  .product__specs {
    grid-template-columns: 1fr;
    gap: 16px;
  }
  .product::after { display: none; }

  .model__visual { padding: 32px 0 0; justify-content: center; }
  .model__visual .illustration-wrap {
    width: min(100%, 720px);
    height: clamp(220px, 42vw, 320px);
  }
  .model__visual .section-illustration {
    width: 100%;
    height: 100%;
    max-height: none;
  }

  .cta__visual { display: none; }
  .cta__inner { justify-content: flex-start; }

  .product-page__hero-visual { padding: 40px 0 0; justify-content: center; }
  .product-page__hero-visual .section-illustration {
    width: min(88vw, 420px);
    max-height: 300px;
  }
  .product-page__hero-grid {
    grid-template-columns: 1fr;
    gap: 32px 0;
    padding: 32px 0 32px;
  }
  .product-page__body {
    grid-template-columns: 1fr;
    gap: 40px 0;
  }
}

/* ===================================================================
   RESPONSIVE: 600px
   =================================================================== */
@media (max-width: 600px) {
  .hero__visual .section-illustration { max-height: 240px; }
  .model__visual .section-illustration { max-height: 200px; }
}

/* ---- HERO ---- */
.hero {
  position: relative;
  z-index: 2;
  padding: 96px 0 72px;
  background: var(--bg);
}
.hero__inner {
  width: min(1100px, calc(100% - var(--shell-pad) * 2));
  margin: 0 auto;
  display: grid;
  grid-template-columns: minmax(0, 0.92fr) minmax(420px, 1.08fr);
  align-items: center;
  gap: 0 64px;
}
.hero__copy {
  display: flex;
  flex-direction: column;
}
.hero__label {
  font-family: var(--font-mono);
  font-size: 0.7rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--text-muted);
  margin-bottom: 20px;
}
.hero__headline {
  font-family: var(--font-serif);
  font-size: clamp(2.6rem, 5.5vw, 4rem);
  font-weight: 400;
  line-height: 1.1;
  color: var(--text);
  letter-spacing: -0.02em;
  margin-bottom: 24px;
}
.hero__body {
  font-size: 1.0rem;
  color: var(--hero-copy);
  line-height: 1.75;
  max-width: 60ch;
  margin-bottom: 20px;
  opacity: 1;
}
.hero__support {
  font-size: 0.9rem;
  color: var(--hero-support);
  line-height: 1.7;
  max-width: 56ch;
  margin-bottom: 22px;
  opacity: 1;
}
.hero__capabilities {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 30px;
}
.hero__capability {
  display: inline-flex;
  align-items: center;
  min-height: 30px;
  padding: 0 10px;
  border: 1px solid var(--hero-pill-border);
  border-radius: 999px;
  font-family: var(--font-mono);
  font-size: 0.64rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--hero-pill-text);
  background: var(--hero-pill-bg);
  opacity: 1;
}
.hero__products { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 20px; }
.hero__product {
  font-family: var(--font-mono);
  font-size: 0.78rem;
  letter-spacing: 0.04em;
  color: var(--text-muted);
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 4px 0;
}
.hero__product--live { color: var(--text); font-weight: 500; }
.hero__product__badge {
  font-size: 0.6rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--live-green);
  background: var(--live-bg);
  padding: 2px 7px;
  border-radius: 2px;
}

/* ---- PRODUCTS ---- */
.products {
  position: relative;
  z-index: 2;
  border-top: 1px solid var(--border);
  padding: 72px 0;
  background: var(--bg);
}
.products__inner { width: min(1100px, calc(100% - var(--shell-pad) * 2)); margin: 0 auto; }
.products__header { margin-bottom: 48px; }
.products__heading {
  font-family: var(--font-serif);
  font-size: clamp(1.6rem, 3vw, 2.2rem);
  font-weight: 400;
  color: var(--text);
  letter-spacing: -0.02em;
  line-height: 1.15;
}

/* ---- PRODUCT LIST ---- */
.product-list { display: flex; flex-direction: column; }
.product {
  display: grid;
  grid-template-columns: minmax(220px, 300px) minmax(180px, 260px) minmax(0, 1fr);
  gap: 0 40px;
  align-items: center;
  padding: 40px 0;
  border-bottom: 1px solid var(--border);
  opacity: 1;
  transform: none;
  transition: background 150ms ease, padding 150ms ease;
}
.product:first-child { border-top: 1px solid var(--border); }
.product.is-visible { opacity: 1; transform: none; }
.product:hover {
  background: var(--surface);
  padding-left: 16px;
  padding-right: 16px;
  margin: 0 -16px;
}
.product__left { display: flex; flex-direction: column; gap: 8px; min-width: 0; }
.product__meta { display: flex; align-items: center; gap: 10px; }
.product__domain {
  font-family: var(--font-mono);
  font-size: 0.62rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--text-muted);
}
.product__badge {
  font-family: var(--font-mono);
  font-size: 0.58rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  padding: 2px 7px;
  border-radius: 2px;
}
.product__badge--live { color: var(--live-green); background: var(--live-bg); }
.product__name {
  font-family: var(--font-serif);
  font-size: clamp(1.3rem, 2.2vw, 1.7rem);
  font-weight: 400;
  color: var(--text);
  letter-spacing: -0.015em;
  line-height: 1.1;
}
.product__name a { color: inherit; transition: color 150ms ease; }
.product__name a:hover { color: var(--accent); }
.product__right { display: flex; flex-direction: column; gap: 16px; min-width: 0; width: 100%; }
.product__desc {
  font-size: 0.9rem;
  color: var(--text-mid);
  line-height: 1.75;
  max-width: 52rem;
}
.product__desc code {
  font-family: var(--font-mono);
  font-size: 0.82em;
  background: var(--surface);
  padding: 1px 5px;
  border-radius: 2px;
}
.product__specs {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 24px;
  max-width: 52rem;
}
.spec { display: flex; flex-direction: column; gap: 3px; }
.spec__k {
  font-family: var(--font-mono);
  font-size: 0.58rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--text-muted);
}
.spec__v {
  font-size: 0.85rem;
  font-weight: 500;
  color: var(--text);
  cursor: pointer;
  transition: color 150ms ease;
  position: relative;
  padding-right: 18px;
}
.spec__v::after {
  content: '';
  position: absolute;
  right: 2px;
  top: 50%;
  transform: translateY(-50%);
  width: 10px;
  height: 10px;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='10' height='10' viewBox='0 0 24 24' fill='none' stroke='%23b7a285' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Crect x='9' y='9' width='13' height='13' rx='2'/%3E%3Cpath d='M5 15H4a2 2 0 0 1-2-2V4a2 2 0 0 1 2-2h9a2 2 0 0 1 2 2v1'/%3E%3C/svg%3E");
  background-size: contain;
  background-repeat: no-repeat;
  opacity: 0;
  transition: opacity 150ms ease;
}
.spec__v:hover::after { opacity: 1; }
.spec__v:hover { color: var(--accent); }
.spec__v.is-copied { color: var(--live-green); }
.spec__v.is-copied::after {
  opacity: 1;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='10' height='10' viewBox='0 0 24 24' fill='none' stroke='%232d7d5a' stroke-width='2.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='20 6 9 17 4 12'/%3E%3C/svg%3E");
}
.product__link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-family: var(--font-mono);
  font-size: 0.72rem;
  letter-spacing: 0.06em;
  color: var(--accent);
  transition: color 150ms ease, gap 200ms ease;
}
.product__link:hover { color: var(--text); gap: 10px; }
.product__actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px;
}
.product__status-btn {
  min-height: 36px;
  padding: 0 16px;
  font-size: 0.72rem;
  letter-spacing: 0.06em;
}
.spec--static .spec__v {
  cursor: default;
  padding-right: 0;
}
.spec--static .spec__v::after {
  content: none;
}
.spec--static .spec__v:hover {
  color: var(--text);
}

/* ---- MODEL ---- */
.model {
  position: relative;
  z-index: 2;
  border-top: 1px solid var(--border);
  padding: 72px 0 40px;
  background: var(--bg);
}
.model__inner { width: min(1100px, calc(100% - var(--shell-pad) * 2)); margin: 0 auto; }
.model__header { margin-bottom: 48px; }
.model__heading {
  font-family: var(--font-serif);
  font-size: clamp(1.6rem, 3vw, 2.2rem);
  font-weight: 400;
  color: var(--text);
  letter-spacing: -0.02em;
  line-height: 1.15;
  margin-bottom: 8px;
}
.model__sub {
  font-size: 0.8rem;
  font-family: var(--font-mono);
  letter-spacing: 0.08em;
  color: var(--text-muted);
}

/* ---- STEPS ---- */
.step-list {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0 32px;
  position: relative;
}
/* Illustration spans full width below the 4 steps */
.model__visual {
  grid-column: 1 / -1;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px 0 0;
}
/* Ensure illustration-wrap gets proper dimensions in this context */
.model__visual .illustration-wrap {
  width: min(100%, 1120px);
  max-width: 1120px;
  height: clamp(240px, 31vw, 380px);
  overflow: visible;
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
}
.model__visual .illustration-wrap::before {
  inset: 4%;
  filter: blur(40px);
  opacity: 0.7;
}
.model__visual .section-illustration {
  width: min(100%, 1120px);
  height: 100%;
  max-width: 100%;
  object-fit: contain;
  object-position: center;
  transform: none;
  transform-origin: center;
  opacity: 1;
  filter: saturate(1.04) contrast(1.03);
}
@media (max-width: 700px) {
  .step-list {
    grid-template-columns: 1fr;
  }
  .model__visual {
    padding: 32px 0 0;
  }
  .model__visual .illustration-wrap {
    max-width: 100%;
  }
}
.step-list::before {
  content: '';
  position: absolute;
  top: 14px;
  left: calc(12.5% + 20px);
  right: calc(12.5% + 20px);
  height: 1px;
  background: var(--border-mid);
  transform-origin: left;
  transform: scaleX(1);
  transition: none;
}
.step-list.is-visible::before { transform: scaleX(1); }
.step {
  display: flex;
  flex-direction: column;
  gap: 10px;
  opacity: 1;
  transform: none;
  transition: none;
}
.step.is-visible { opacity: 1; transform: none; }
.step__num {
  font-family: var(--font-mono);
  font-size: 0.65rem;
  letter-spacing: 0.12em;
  color: var(--accent);
}
.step__name {
  font-family: var(--font-serif);
  font-size: 1.05rem;
  font-weight: 400;
  color: var(--text);
  letter-spacing: -0.01em;
  line-height: 1.2;
}
.step__desc { font-size: 0.85rem; color: var(--text-mid); line-height: 1.75; }

/* ---- CTA ---- */
.cta {
  position: relative;
  z-index: 2;
  border-top: 1px solid var(--border);
  padding: 72px 0;
  background: var(--bg);
}
.cta__inner {
  width: min(1100px, calc(100% - var(--shell-pad) * 2));
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 40px;
}
.cta__copy { flex: 1; }
.cta__heading {
  font-family: var(--font-serif);
  font-size: clamp(1.5rem, 2.8vw, 2rem);
  font-weight: 400;
  color: var(--text);
  letter-spacing: -0.02em;
  line-height: 1.15;
  margin-bottom: 10px;
}
.cta__body { font-size: 0.9rem; color: var(--text-muted); line-height: 1.65; max-width: 50ch; }
.cta__actions { flex-shrink: 0; }

/* ---- FOOTER ---- */
.footer {
  position: relative;
  z-index: 2;
  border-top: 1px solid var(--border);
  padding: 24px 0;
}
.footer__inner {
  width: min(1100px, calc(100% - var(--shell-pad) * 2));
  margin: 0 auto;
  display: flex;
  align-items: center;
  gap: 16px;
}
.footer__logo-wrap {
  background: transparent;
  border-radius: 0;
  padding: 0;
  line-height: 0;
  display: inline-flex;
  border: 0;
  box-shadow: none;
}
.footer__logo {
  height: 48px;
  width: auto;
  display: block;
  opacity: 1;
  background: transparent;
}
.footer__brand { font-family: var(--font-serif); font-size: 0.875rem; font-style: italic; color: var(--text); }
.footer__sep { color: var(--text-muted); }
.footer__tagline {
  font-family: var(--font-mono);
  font-size: 0.62rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--text-muted);
  flex: 1;
}
.footer__year { font-family: var(--font-mono); font-size: 0.62rem; color: var(--text-muted); }

/* ---- HERO ACTIONS ---- */
.hero__actions { display: flex; flex-wrap: wrap; gap: 10px; }
.btn--hero-secondary {
  background: var(--hero-secondary-bg);
  color: var(--hero-secondary-text);
  border-color: var(--hero-secondary-border);
  opacity: 1;
}
.btn--hero-secondary:hover,
.btn--hero-secondary:focus-visible,
.btn--hero-secondary.is-interactive {
  color: var(--accent);
  border-color: var(--accent);
  background: var(--surface);
  outline: 2px solid var(--accent);
  outline-offset: 2px;
}

/* ---- BUTTONS ---- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 0 22px;
  border-radius: 2px;
  font-family: var(--font-sans);
  font-size: 0.875rem;
  font-weight: 500;
  border: 1px solid transparent;
  cursor: pointer;
  transition: background 150ms ease, color 150ms ease, border-color 150ms ease, transform 150ms ease, box-shadow 150ms ease;
  white-space: nowrap;
  text-decoration: none;
}
.btn:hover { transform: translateY(-1px); box-shadow: 0 4px 16px rgba(0,0,0,0.10); }
.btn:active { transform: translateY(0); }
.btn--primary { background: var(--text); color: var(--bg); border-color: var(--text); }
.btn--primary:hover { background: #2a2a2a; border-color: #2a2a2a; }
.btn--primary:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
}
.btn--primary:active {
  background: #1f1f1f;
  border-color: #1f1f1f;
}
.btn--ghost { background: transparent; color: var(--text-muted); border-color: var(--border-mid); }
.btn--ghost:hover { background: var(--surface); color: var(--text); border-color: rgba(0,0,0,0.2); }
.hero__actions .btn--hero-secondary {
  background: var(--hero-secondary-bg);
  color: var(--hero-secondary-text);
  border-color: var(--hero-secondary-border);
  opacity: 1;
}
.hero__actions .btn--hero-secondary:hover,
.hero__actions .btn--hero-secondary:focus-visible,
.hero__actions .btn--hero-secondary.is-interactive,
.btn--hero-secondary:hover,
.btn--hero-secondary:focus-visible,
.btn--hero-secondary.is-interactive {
  color: var(--accent) !important;
  border-color: var(--accent) !important;
  background: var(--surface) !important;
  outline: 2px solid var(--accent);
  outline-offset: 2px;
}
.btn--disabled,
.btn[disabled],
.btn[aria-disabled="true"] {
  background: rgba(0, 0, 0, 0.06);
  border-color: rgba(0, 0, 0, 0.12);
  color: var(--text-muted);
  cursor: not-allowed;
  pointer-events: none;
  box-shadow: none;
  transform: none;
  opacity: 1;
}
.btn--disabled:hover,
.btn[disabled]:hover,
.btn[aria-disabled="true"]:hover,
.btn--disabled:active,
.btn[disabled]:active,
.btn[aria-disabled="true"]:active,
.btn--disabled:focus-visible,
.btn[disabled]:focus-visible,
.btn[aria-disabled="true"]:focus-visible {
  background: rgba(0, 0, 0, 0.06);
  border-color: rgba(0, 0, 0, 0.12);
  color: var(--text-muted);
  box-shadow: none;
  transform: none;
  outline: none;
}

/* ---- PRODUCT SUB-PAGE ---- */
.product-page { position: relative; z-index: 2; padding: 64px 0 80px; width: 100%; overflow-x: clip; background: var(--bg); }
.product-page__inner { width: min(1120px, calc(100% - var(--shell-pad) * 2)); margin: 0 auto; }
.product-page__breadcrumb {
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-mono);
  font-size: 0.7rem;
  letter-spacing: 0.06em;
  color: var(--text-muted);
  margin-bottom: 40px;
}
.product-page__breadcrumb a { color: var(--text-muted); transition: color 150ms ease; }
.product-page__breadcrumb a:hover { color: var(--text); }
.product-page__header { padding-bottom: 0; border-bottom: none; margin-bottom: 0; }

/* Two-column hero grid for product pages */
.product-page__hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(280px, 420px);
  align-items: center;
  gap: 0 48px;
  padding: 48px 0 48px;
  border-bottom: 1px solid var(--border);
  margin-bottom: 48px;
}
.product-page__header-copy { display: flex; flex-direction: column; min-width: 0; }
.product-page__hero-visual {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  min-width: 0;
}
.product-page__hero-visual .section-illustration {
  width: 100%;
  max-height: 400px;
  object-fit: contain;
  filter: saturate(1.01) contrast(1.01);
}

/* Product page body below hero */
.product-page__body { display: grid; grid-template-columns: minmax(0, 1fr) minmax(260px, 320px); gap: 0 64px; margin-bottom: 56px; align-items: start; }
.product-page__domain {
  display: block;
  font-family: var(--font-mono);
  font-size: 0.65rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--text-muted);
  margin-bottom: 12px;
}
.product-page__name {
  font-family: var(--font-serif);
  font-size: clamp(2.4rem, 5vw, 3.5rem);
  font-weight: 400;
  color: var(--text);
  letter-spacing: -0.025em;
  line-height: 1.05;
  margin-bottom: 16px;
}
.product-page__tagline {
  font-family: var(--font-serif);
  font-size: clamp(1.1rem, 2vw, 1.4rem);
  font-weight: 400;
  color: var(--text-mid);
  letter-spacing: -0.01em;
  line-height: 1.4;
}
.product-page__hero-body {
  font-size: 0.95rem;
  color: var(--text-mid);
  line-height: 1.8;
  max-width: 58ch;
  margin-top: 24px;
}
.product-page__hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 28px;
}
.product-page__body { display: grid; grid-template-columns: minmax(0, 1fr) minmax(260px, 320px); gap: 0 64px; margin-bottom: 56px; align-items: start; }
.product-page__col-main { display: flex; flex-direction: column; gap: 20px; min-width: 0; max-width: none; }
.product-page__col-main p { font-size: 0.95rem; color: var(--text-mid); line-height: 1.8; }
.product-page__col-spec { display: flex; flex-direction: column; gap: 24px; min-width: 0; width: 100%; max-width: 100%; }
.spec-block { border: 1px solid var(--border); border-radius: 2px; overflow: hidden; }
.spec-block h3 {
  font-family: var(--font-mono);
  font-size: 0.62rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--text-muted);
  padding: 10px 14px;
  background: var(--surface);
  border-bottom: 1px solid var(--border);
}
.spec-row {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 16px;
  padding: 9px 14px;
  border-bottom: 1px solid var(--border);
  cursor: pointer;
  transition: background 150ms ease;
}
.spec-row:last-child { border-bottom: none; }
.spec-row:hover { background: var(--surface); }
.spec-row__k {
  font-family: var(--font-mono);
  font-size: 0.62rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--text-muted);
}
.spec-row__v {
  font-size: 0.82rem;
  font-weight: 500;
  color: var(--text);
  text-align: right;
  cursor: pointer;
  transition: color 150ms ease;
  position: relative;
  padding-right: 18px;
}
.spec-row__v::after {
  content: '';
  position: absolute;
  right: 2px;
  top: 50%;
  transform: translateY(-50%);
  width: 10px;
  height: 10px;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='10' height='10' viewBox='0 0 24 24' fill='none' stroke='%23b7a285' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Crect x='9' y='9' width='13' height='13' rx='2'/%3E%3Cpath d='M5 15H4a2 2 0 0 1-2-2V4a2 2 0 0 1 2-2h9a2 2 0 0 1 2 2v1'/%3E%3C/svg%3E");
  background-size: contain;
  background-repeat: no-repeat;
  opacity: 0;
  transition: opacity 150ms ease;
}
.spec-row__v:hover::after { opacity: 1; }
.spec-row__v:hover { color: var(--accent); }
.spec-row__v.is-copied { color: var(--live-green); }
.spec-row__v.is-copied::after {
  opacity: 1;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='10' height='10' viewBox='0 0 24 24' fill='none' stroke='%232d7d5a' stroke-width='2.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='20 6 9 17 4 12'/%3E%3C/svg%3E");
}
.product-page__contact {
  padding-top: 48px;
  border-top: 1px solid var(--border);
  display: flex;
  flex-direction: column;
  gap: 14px;
  max-width: 480px;
}
.product-page__contact h2 {
  font-family: var(--font-serif);
  font-size: clamp(1.4rem, 2.5vw, 1.8rem);
  font-weight: 400;
  color: var(--text);
  letter-spacing: -0.02em;
}
.product-page__contact p { font-size: 0.9rem; color: var(--text-muted); line-height: 1.65; }

.product-page__section-stack {
  display: flex;
  flex-direction: column;
  gap: 56px;
  margin-bottom: 56px;
}
.project-section {
  display: flex;
  flex-direction: column;
  gap: 22px;
}
.project-section__header {
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.project-section__eyebrow {
  font-family: var(--font-mono);
  font-size: 0.65rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--text-muted);
}
.project-section__title {
  font-family: var(--font-serif);
  font-size: clamp(1.5rem, 2.7vw, 2rem);
  font-weight: 400;
  color: var(--text);
  letter-spacing: -0.02em;
  line-height: 1.15;
}
.project-section__body {
  display: flex;
  flex-direction: column;
  gap: 18px;
  max-width: 72ch;
}
.project-section__body p {
  font-size: 0.95rem;
  color: var(--text-mid);
  line-height: 1.8;
}
.info-grid,
.surface-grid,
.fact-grid {
  display: grid;
  gap: 20px;
}
.info-grid--four {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}
.surface-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}
.fact-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}
.info-card,
.surface-card,
.fact-box {
  border: 1px solid var(--border);
  background: rgba(255, 255, 255, 0.28);
  border-radius: 2px;
}
.info-card,
.surface-card {
  padding: 22px;
}
.fact-box {
  overflow: hidden;
}
.info-card__title,
.surface-card__title,
.fact-box__title {
  font-family: var(--font-serif);
  font-size: 1.15rem;
  font-weight: 400;
  color: var(--text);
  letter-spacing: -0.015em;
  line-height: 1.2;
}
.info-card__body,
.surface-card__body {
  margin-top: 14px;
  font-size: 0.9rem;
  color: var(--text-mid);
  line-height: 1.75;
}
.info-card__meta,
.surface-card__meta {
  margin-top: 18px;
  font-family: var(--font-mono);
  font-size: 0.68rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--text-muted);
}
.surface-card__link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 40px;
  margin-top: 18px;
  padding: 0 16px;
  border: 1px solid var(--border-mid);
  border-radius: 2px;
  font-family: var(--font-mono);
  font-size: 0.68rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--text);
  transition: background 150ms ease, border-color 150ms ease, color 150ms ease;
}
.surface-card__link:hover {
  background: var(--surface);
  border-color: rgba(0, 0, 0, 0.18);
}
.surface-card__status {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  align-self: flex-start;
  min-height: 40px;
  margin-top: 18px;
  padding: 0 16px;
  border: 1px solid var(--border-mid);
  border-radius: 999px;
  background: var(--surface);
  color: var(--text-muted);
  font-family: var(--font-mono);
  font-size: 0.68rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}
.fact-box__title {
  padding: 14px 16px;
  border-bottom: 1px solid var(--border);
  background: var(--surface);
  font-size: 1rem;
}
.fact-row {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  padding: 12px 16px;
  border-bottom: 1px solid var(--border);
}
.fact-row:last-child {
  border-bottom: none;
}
.fact-row__k {
  font-family: var(--font-mono);
  font-size: 0.64rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--text-muted);
}
.fact-row__v {
  font-size: 0.84rem;
  font-weight: 500;
  color: var(--text);
  text-align: right;
}

/* ---- COPY TOAST ---- */
.copy-toast {
  position: fixed;
  bottom: 28px;
  right: 28px;
  z-index: 999;
  background: var(--text);
  color: var(--bg);
  font-family: var(--font-mono);
  font-size: 0.72rem;
  letter-spacing: 0.06em;
  padding: 10px 16px;
  border-radius: 2px;
  opacity: 0;
  transform: translateY(10px);
  transition: opacity 250ms ease, transform 250ms ease;
  pointer-events: none;
  white-space: nowrap;
}
.copy-toast.is-visible { opacity: 1; transform: translateY(0); }

/* ---- DARK MODE ---- */
[data-theme="dark"] {
  --bg: #141210;
  --text: #e8e2d8;
  --text-mid: #a09890;
  --text-muted: #6a6058;
  --accent: #c9a876;
  --border: rgba(255,255,255,0.07);
  --border-mid: rgba(255,255,255,0.10);
  --surface: rgba(255,255,255,0.04);
  --live-green: #4dba8a;
  --live-bg: rgba(77,186,138,0.10);
  --hero-copy: rgba(244, 239, 226, 0.76);
  --hero-support: rgba(244, 239, 226, 0.62);
  --hero-pill-text: rgba(244, 239, 226, 0.78);
  --hero-pill-border: rgba(214, 166, 66, 0.34);
  --hero-pill-bg: rgba(214, 166, 66, 0.12);
  --hero-secondary-text: rgba(244, 239, 226, 0.78);
  --hero-secondary-border: rgba(244, 239, 226, 0.18);
  --hero-secondary-bg: rgba(244, 239, 226, 0.045);
  --bg-grid-dot: rgba(255,255,255,0.10);
  --bg-shape-border: rgba(201,168,118,0.15);
  --bg-shape-shadow: rgba(201,168,118,0.06);
  --scroll-progress: linear-gradient(to right, var(--accent), rgba(201,168,118,0.35));
}

/* Dark: body background */
[data-theme="dark"] body {
  background: var(--bg);
  color: var(--text);
}

/* Dark: navbar — warm dark, no blur */
[data-theme="dark"] .nav {
  background: #1a1816;
  border-bottom-color: rgba(255,255,255,0.07);
}
[data-theme="dark"] .nav--scrolled {
  box-shadow: 0 2px 24px rgba(0,0,0,0.5);
}

/* Dark: nav links */
[data-theme="dark"] .nav__link {
  color: rgba(232,226,216,0.50);
}
[data-theme="dark"] .nav__link:hover {
  color: #e8e2d8;
}

/* Dark: cursor orb */
[data-theme="dark"] .cursor-orb {
  background: radial-gradient(circle, rgba(201,168,118,0.10) 0%, rgba(201,168,118,0.03) 40%, transparent 68%);
}

/* Dark: grain — disabled so noise doesn't show through transparent images */
[data-theme="dark"] .grain {
  display: none;
}

/* Dark: background glows — warm dark amber, less intensity */
[data-theme="dark"] .bg-glow--1 {
  background: radial-gradient(circle, rgba(201,168,118,0.10) 0%, rgba(180,145,95,0.04) 35%, transparent 70%);
}
[data-theme="dark"] .bg-glow--2 {
  background: radial-gradient(circle, rgba(201,168,118,0.08) 0%, rgba(165,135,90,0.03) 40%, transparent 65%);
}

/* Dark: grid */
[data-theme="dark"] .bg-grid::before {
  background-image: radial-gradient(circle, rgba(255,255,255,0.10) 1px, transparent 1px);
}

/* Dark: floating shapes — only --1 and --2 remain */
[data-theme="dark"] .bg-shape--1 {
  border-color: rgba(201,168,118,0.15);
  box-shadow: 0 0 60px rgba(201,168,118,0.06), 0 0 120px rgba(201,168,118,0.03), inset 0 0 60px rgba(201,168,118,0.04);
}
[data-theme="dark"] .bg-shape--2 {
  border-color: rgba(201,168,118,0.10);
  box-shadow: 0 0 40px rgba(201,168,118,0.05);
}

/* Dark: hero veil — very subtle warm glow */
[data-theme="dark"] .hero-veil {
  background: radial-gradient(ellipse 60% 80% at 30% 50%, rgba(201,168,118,0.07) 0%, rgba(201,168,118,0.02) 50%, transparent 75%);
}

/* Dark: hero body text */
[data-theme="dark"] .hero__body {
  color: var(--hero-copy);
  opacity: 1;
}
[data-theme="dark"] .hero__support {
  color: var(--hero-support);
  opacity: 1;
}
[data-theme="dark"] .hero__capability {
  color: var(--hero-pill-text);
  background: var(--hero-pill-bg);
  border-color: var(--hero-pill-border);
  opacity: 1;
}

/* Dark: product hover surface */
[data-theme="dark"] .product:hover {
  background: var(--surface);
}

/* Dark: spec value */
[data-theme="dark"] .spec__v {
  color: var(--text);
}
[data-theme="dark"] .spec__v:hover {
  color: var(--accent);
}
[data-theme="dark"] .spec__v::after {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='10' height='10' viewBox='0 0 24 24' fill='none' stroke='%23c9a876' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Crect x='9' y='9' width='13' height='13' rx='2'/%3E%3Cpath d='M5 15H4a2 2 0 0 1-2-2V4a2 2 0 0 1 2-2h9a2 2 0 0 1 2 2v1'/%3E%3C/svg%3E");
}
[data-theme="dark"] .spec__v.is-copied::after {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='10' height='10' viewBox='0 0 24 24' fill='none' stroke='%234dba8a' stroke-width='2.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='20 6 9 17 4 12'/%3E%3C/svg%3E");
}

/* Dark: spec-row on product sub-pages */
[data-theme="dark"] .spec-row:hover {
  background: var(--surface);
}
[data-theme="dark"] .spec-row__v {
  color: var(--text);
}
[data-theme="dark"] .spec-row__v:hover {
  color: var(--accent);
}
[data-theme="dark"] .spec-row__v::after {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='10' height='10' viewBox='0 0 24 24' fill='none' stroke='%23c9a876' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Crect x='9' y='9' width='13' height='13' rx='2'/%3E%3Cpath d='M5 15H4a2 2 0 0 1-2-2V4a2 2 0 0 1 2-2h9a2 2 0 0 1 2 2v1'/%3E%3C/svg%3E");
}
[data-theme="dark"] .spec-row__v.is-copied::after {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='10' height='10' viewBox='0 0 24 24' fill='none' stroke='%234dba8a' stroke-width='2.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='20 6 9 17 4 12'/%3E%3C/svg%3E");
}

/* Dark: product-page spec-block header */
[data-theme="dark"] .spec-block h3 {
  background: rgba(255,255,255,0.04);
  border-bottom-color: rgba(255,255,255,0.07);
}
[data-theme="dark"] .spec-block {
  border-color: rgba(255,255,255,0.08);
}
[data-theme="dark"] .spec-row {
  border-bottom-color: rgba(255,255,255,0.06);
}

/* Dark: product-page contact section */
[data-theme="dark"] .product-page__contact h2 {
  color: var(--text);
}
[data-theme="dark"] .product-page__contact p {
  color: var(--text-muted);
}
[data-theme="dark"] .product-page__contact {
  border-top-color: rgba(255,255,255,0.08);
}
[data-theme="dark"] .project-section__body p,
[data-theme="dark"] .product-page__hero-body {
  color: var(--text-mid);
}
[data-theme="dark"] .info-card,
[data-theme="dark"] .surface-card,
[data-theme="dark"] .fact-box {
  background: rgba(255, 255, 255, 0.03);
  border-color: rgba(255,255,255,0.08);
}
[data-theme="dark"] .fact-box__title {
  background: rgba(255,255,255,0.04);
  border-bottom-color: rgba(255,255,255,0.07);
}
[data-theme="dark"] .fact-row {
  border-bottom-color: rgba(255,255,255,0.06);
}
[data-theme="dark"] .surface-card__link:hover {
  background: rgba(255,255,255,0.05);
  border-color: rgba(255,255,255,0.14);
}
[data-theme="dark"] .btn--disabled,
[data-theme="dark"] .btn[disabled],
[data-theme="dark"] .btn[aria-disabled="true"],
[data-theme="dark"] .btn--disabled:hover,
[data-theme="dark"] .btn[disabled]:hover,
[data-theme="dark"] .btn[aria-disabled="true"]:hover,
[data-theme="dark"] .btn--disabled:active,
[data-theme="dark"] .btn[disabled]:active,
[data-theme="dark"] .btn[aria-disabled="true"]:active,
[data-theme="dark"] .btn--disabled:focus-visible,
[data-theme="dark"] .btn[disabled]:focus-visible,
[data-theme="dark"] .btn[aria-disabled="true"]:focus-visible {
  background: rgba(255,255,255,0.05);
  border-color: rgba(255,255,255,0.10);
  color: var(--text-muted);
  box-shadow: none;
  transform: none;
  outline: none;
}

/* Dark: product-page body copy */
[data-theme="dark"] .product-page__col-main p {
  color: var(--text-mid);
}

/* Dark: footer */
[data-theme="dark"] .footer {
  border-top-color: rgba(255,255,255,0.07);
}
[data-theme="dark"] .footer__tagline {
  color: var(--text-muted);
}
[data-theme="dark"] .footer__year {
  color: var(--text-muted);
}
[data-theme="dark"] .footer__sep {
  color: var(--text-muted);
}

/* Dark: footer logo — warm cream background so it stays visible */
[data-theme="dark"] .footer__logo-wrap {
  background: transparent !important;
  border-radius: 0;
  padding: 0;
  line-height: 0;
}
[data-theme="dark"] .btn--primary:hover,
[data-theme="dark"] .btn--primary:focus-visible {
  background: var(--accent);
  border-color: var(--accent);
  color: #141210;
  opacity: 1;
}
[data-theme="dark"] .btn--primary:active {
  background: #d6b98c;
  border-color: #d6b98c;
  color: #141210;
  opacity: 1;
}
[data-theme="dark"] .hero__actions .btn--hero-secondary,
[data-theme="dark"] .btn--hero-secondary {
  color: rgba(244, 239, 226, 0.78) !important;
  border-color: rgba(244, 239, 226, 0.18) !important;
  background: rgba(244, 239, 226, 0.045) !important;
  opacity: 1;
}
[data-theme="dark"] .hero__actions .btn--hero-secondary:not(:hover):not(:focus-visible):not(.is-interactive),
[data-theme="dark"] .btn--hero-secondary:not(:hover):not(:focus-visible):not(.is-interactive) {
  color: rgba(244, 239, 226, 0.78) !important;
  border-color: rgba(244, 239, 226, 0.18) !important;
  background: rgba(244, 239, 226, 0.045) !important;
  opacity: 1;
}
[data-theme="dark"] .hero__actions .btn--ghost:hover,
[data-theme="dark"] .hero__actions .btn--ghost:focus-visible,
[data-theme="dark"] .hero__actions .btn--hero-secondary:hover,
[data-theme="dark"] .hero__actions .btn--hero-secondary:focus-visible,
[data-theme="dark"] .hero__actions .btn--hero-secondary.is-interactive,
[data-theme="dark"] .btn--hero-secondary:hover,
[data-theme="dark"] .btn--hero-secondary:focus-visible,
[data-theme="dark"] .btn--hero-secondary.is-interactive {
  color: var(--accent) !important;
  border-color: var(--accent) !important;
  background: rgba(255,255,255,0.05) !important;
  outline: 2px solid var(--accent);
  outline-offset: 2px;
}

/* Dark: copy toast */
[data-theme="dark"] .copy-toast {
  background: #e8e2d8;
  color: #141210;
}

/* Dark: product-page breadcrumb */
[data-theme="dark"] .product-page__breadcrumb a {
  color: var(--text-muted);
}
[data-theme="dark"] .product-page__breadcrumb a:hover {
  color: var(--text);
}

/* Dark: product-page domain */
[data-theme="dark"] .product-page__domain {
  color: var(--text-muted);
}

/* ---- THEME TOGGLE BUTTON ---- */
.theme-toggle {
  display: flex;
  align-items: center;
  justify-content: center;
  background: none;
  border: 1px solid var(--border-mid);
  border-radius: 6px;
  padding: 6px;
  cursor: pointer;
  color: var(--text-muted);
  transition: color 150ms ease, border-color 150ms ease, background 150ms ease;
}
.theme-toggle:hover {
  color: var(--text);
  border-color: rgba(0,0,0,0.2);
  background: var(--surface);
}
[data-theme="dark"] .theme-toggle:hover {
  border-color: rgba(255,255,255,0.15);
  background: rgba(255,255,255,0.05);
}
.theme-toggle .icon-moon { display: none; }
.theme-toggle .icon-sun { display: block; }
[data-theme="dark"] .theme-toggle .icon-sun { display: none; }
[data-theme="dark"] .theme-toggle .icon-moon { display: block; }

/* ---- RESPONSIVE: 900px ---- */
@media (max-width: 900px) {
  :root { --shell-pad: 28px; }
  .hero__inner {
    grid-template-columns: 1fr;
    gap: 0;
  }
  .hero__copy {
    width: 100%;
    min-width: 0;
  }
  .hero__visual {
    width: 100%;
    padding-left: 0;
    justify-content: center;
    padding-top: 40px;
  }
  .hero__visual .section-illustration {
    width: min(90vw, 520px);
    max-height: 320px;
  }
  .product { grid-template-columns: 1fr; gap: 16px; }
  .step-list { grid-template-columns: 1fr 1fr; gap-row: 32px; }
  .cta__inner { flex-direction: column; align-items: flex-start; }
  .bg-shape--1, .bg-shape--3 { display: none; }
  .product-page__hero-grid,
  .product-page__body {
    grid-template-columns: 1fr;
    gap: 32px;
  }
  .product-page__hero-visual {
    justify-content: center;
  }
  .product-page__col-main,
  .product-page__col-spec,
  .spec-block,
  .fact-box,
  .product-page__contact {
    width: 100%;
    max-width: 100%;
    min-width: 0;
  }
  .info-grid--four,
  .surface-grid,
  .fact-grid {
    grid-template-columns: 1fr;
  }
}

/* ---- RESPONSIVE: 600px ---- */
@media (max-width: 600px) {
  :root { --shell-pad: 16px; }
  .hero { padding: 64px 0 48px; }
  .products, .model, .cta { padding: 48px 0; }
  .step-list { grid-template-columns: 1fr; gap: 32px 0; }
  .product-page { overflow-x: hidden; }
  .product-page__hero-grid,
  .product-page__body {
    grid-template-columns: 1fr;
    gap: 24px;
  }
  .product-page__hero-grid {
    padding: 32px 0 40px;
    margin-bottom: 40px;
  }
  .product-page__hero-visual {
    order: 2;
    justify-content: center;
  }
  .product-page__header-copy,
  .product-page__col-main {
    order: 1;
  }
  .product-page__col-spec {
    order: 2;
  }
  .product-page__hero-visual .section-illustration {
    width: 100%;
    max-width: min(320px, 90vw);
    height: auto;
  }
  .product-page__contact,
  .product-page__hero-actions .btn,
  .product-page__contact .btn,
  .product-page__contact a.btn {
    width: 100%;
    max-width: 100%;
  }
  .spec-row {
    align-items: flex-start;
  }
  .spec-row__v {
    min-width: 0;
    text-align: left;
    padding-right: 0;
  }
  .spec-row__v::after {
    display: none;
  }
  .product__actions {
    align-items: stretch;
  }
  .product__actions .product__link,
  .product__actions .product__status-btn,
  .surface-card__link {
    width: 100%;
    justify-content: center;
  }
  .fact-row {
    flex-direction: column;
    align-items: flex-start;
  }
  .fact-row__v {
    text-align: left;
  }
  .step__num { flex-shrink: 0; width: 32px; }
  .step__name { flex-shrink: 0; width: 160px; }
  .nav__links {
    display: flex;
    margin-left: auto;
  }
  .nav__link { display: none; }
  .bg-shape--1, .bg-shape--2, .bg-shape--3, .bg-shape--4 { display: none; }
  .cursor-orb { display: none; }
  .product:hover { background: transparent; padding-left: 0; padding-right: 0; margin: 0; }
  .step-list::before { display: none; }
}


/* ===================================================================
   LANGUAGE TOGGLE — EN/FR segmented control
   =================================================================== */
.language-toggle {
  display: inline-flex;
  align-items: center;
  gap: 2px;
  padding: 3px;
  border: 1px solid var(--border);
  background: var(--surface);
  border-radius: 999px;
  flex-shrink: 0;
}

.lang-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 28px;
  padding: 4px 8px;
  border: 0;
  border-radius: 999px;
  font-size: 0.67rem;
  line-height: 1;
  letter-spacing: 0.12em;
  font-family: var(--font-mono);
  text-transform: uppercase;
  font-weight: 500;
  background: transparent;
  color: var(--text-muted);
  cursor: pointer;
  transition: background-color 160ms ease, color 160ms ease;
}

.lang-btn--active {
  background: var(--accent);
  color: var(--bg);
  font-weight: 600;
}

.lang-btn:hover:not(.lang-btn--active) {
  background: var(--surface);
  color: var(--text-mid);
}

.lang-btn:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
}

[data-theme="dark"] .language-toggle {
  border-color: rgba(244, 239, 226, 0.16);
  background: rgba(244, 239, 226, 0.045);
}

[data-theme="dark"] .lang-btn {
  color: rgba(244, 239, 226, 0.55);
}

[data-theme="dark"] .lang-btn--active {
  background: var(--accent);
  color: #141210;
  font-weight: 600;
}

[data-theme="dark"] .lang-btn:hover:not(.lang-btn--active) {
  background: rgba(255, 255, 255, 0.04);
  color: rgba(244, 239, 226, 0.78);
}

@media (max-width: 900px) {
  .language-toggle {
    padding: 3px;
  }
  .lang-btn {
    padding: 6px 8px;
    min-width: 36px;
    min-height: 36px;
  }
}


/* ===================================================================
   RESEARCH BRIDGE — editorial band between model and contact
   =================================================================== */
.research-bridge {
  width: min(1120px, calc(100% - 2rem));
  margin-inline: auto;
  padding-block: clamp(3rem, 6vw, 5.5rem);
  border-top: 1px solid var(--border);
}

.section-eyebrow {
  font-family: var(--font-mono);
  font-size: 0.68rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 0.75rem;
}

.research-bridge h2 {
  font-family: var(--font-serif);
  font-size: clamp(1.4rem, 3vw, 1.9rem);
  font-weight: 400;
  line-height: 1.25;
  margin-bottom: 1rem;
  color: var(--text);
}

.research-bridge p {
  font-size: 0.95rem;
  line-height: 1.65;
  color: var(--text-mid);
  max-width: 620px;
  margin-bottom: 1.5rem;
}

.btn--research {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.55rem 1.1rem;
  font-family: var(--font-mono);
  font-size: 0.82rem;
  letter-spacing: 0.06em;
  border: 1px solid var(--border);
  border-radius: 0;
  background: transparent;
  color: var(--text);
  text-decoration: none;
  cursor: pointer;
  transition:
    border-color 160ms ease,
    color 160ms ease,
    background 160ms ease;
}

.btn--research:hover,
.btn--research:focus-visible {
  border-color: var(--accent);
  color: var(--accent);
  background: rgb(201 168 118 / 0.06);
}

.btn--research:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
}

.btn--research svg {
  transition: transform 160ms ease;
}

.btn--research:hover svg {
  transform: translate(2px, -2px);
}

@media (max-width: 767px) {
  .research-bridge {
    width: min(90vw, 1120px);
    padding-block: clamp(2rem, 5vw, 3rem);
  }

  .research-bridge h2 {
    font-size: 1.3rem;
  }

  .research-bridge p {
    font-size: 0.88rem;
  }
}

/* ===================================================================
   ISSALABS OPERATING MODEL — human-led + agent workforce
   =================================================================== */
.operating-system {
  width: min(1120px, calc(100% - 2rem));
  margin-inline: auto;
  padding-block: clamp(2.8rem, 5vw, 4.8rem);
  border-top: 1px solid var(--border);
}

.operating-system__inner {
  display: grid;
  gap: 1.2rem;
}

.operating-system h2 {
  font-family: var(--font-serif);
  font-size: clamp(1.45rem, 3vw, 1.95rem);
  font-weight: 400;
  line-height: 1.25;
  color: var(--text);
}

.operating-system__lead {
  max-width: 760px;
  color: var(--text-mid);
  line-height: 1.65;
}

.operating-system__grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1rem;
}

.operating-card {
  border: 1px solid var(--border);
  background: var(--surface);
  padding: 1rem;
}

.operating-card h3 {
  font-size: 0.95rem;
  margin-bottom: 0.55rem;
  color: var(--text);
}

.operating-card p {
  font-size: 0.9rem;
  line-height: 1.6;
  color: var(--text-mid);
}

.operating-faq {
  margin-top: 0.6rem;
  border: 1px solid var(--border);
  padding: 1rem;
  background: var(--bg);
}

.operating-faq > h3 {
  font-size: 0.92rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--text);
  margin-bottom: 0.85rem;
}

.operating-faq__item + .operating-faq__item {
  margin-top: 0.8rem;
  padding-top: 0.8rem;
  border-top: 1px solid var(--border);
}

.operating-faq__q {
  font-family: var(--font-mono);
  font-size: 0.78rem;
  letter-spacing: 0.02em;
  color: var(--text);
  margin-bottom: 0.35rem;
}

.operating-faq__a {
  font-size: 0.9rem;
  color: var(--text-mid);
  line-height: 1.6;
}

@media (max-width: 900px) {
  .operating-system__grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 767px) {
  .operating-system {
    width: min(90vw, 1120px);
    padding-block: clamp(2rem, 5vw, 3rem);
  }

  .operating-system h2 {
    font-size: 1.3rem;
  }
}
