/* ============================================================
   LyvoRig — Landing Page Styles
   Navy + Cyan · IBM Plex Sans/Mono · Industrial / Technical
   ============================================================ */

:root {
  /* Brand */
  --navy-900: #0A172E;
  --navy-800: #0E1C36;
  --navy-700: #15264A;
  --navy-600: #1A2E54;
  --navy-500: #28406F;
  --navy-200: #B7C1D2;
  --cyan-500: #00C8E0;
  --cyan-600: #00A8C0;
  --cyan-700: #008596;
  --cyan-50:  #E5FAFD;

  /* Neutrals (warm-cool balanced, low chroma) */
  --bg-white: #FFFFFF;
  --bg-alt:   #F5F7FA;
  --bg-cool:  #EEF2F8;
  --line:     #E1E6EE;
  --line-soft:#EEF1F6;
  --text:     #15264A;
  --text-mid: #4B5A78;
  --text-mute:#8A95AA;

  /* Activity class colors (data-viz) */
  --c-p:   #00C8E0;          /* productive · cyan */
  --c-u:   #F5A623;          /* unproductive · amber */
  --c-npt: #E55A4C;          /* NPT · red */

  /* Type */
  --ff-sans: "IBM Plex Sans", "Helvetica Neue", Arial, sans-serif;
  --ff-mono: "IBM Plex Mono", ui-monospace, "SF Mono", Menlo, monospace;

  /* Layout */
  --container: 1240px;
  --pad-x: clamp(20px, 4vw, 48px);

  /* Radii */
  --r-sm: 4px;
  --r-md: 8px;
  --r-lg: 14px;

  /* Shadows */
  --sh-card: 0 1px 0 rgba(15,30,60,0.04), 0 12px 32px -16px rgba(15,30,60,0.18);
  --sh-soft: 0 1px 0 rgba(15,30,60,0.04), 0 4px 16px -10px rgba(15,30,60,0.12);
}

* { box-sizing: border-box; }

html, body {
  margin: 0;
  padding: 0;
  background: var(--bg-white);
  color: var(--text);
  font-family: var(--ff-sans);
  font-size: 16px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

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

a { color: inherit; text-decoration: none; }

.container {
  width: 100%;
  max-width: var(--container);
  margin: 0 auto;
  padding-left: var(--pad-x);
  padding-right: var(--pad-x);
}

/* ============================================================
   Buttons / links
   ============================================================ */

.btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: var(--ff-sans);
  font-weight: 600;
  font-size: 15px;
  letter-spacing: 0.01em;
  border-radius: 999px;
  padding: 12px 22px;
  border: 1px solid transparent;
  cursor: pointer;
  transition: transform .15s ease, background .15s ease, box-shadow .15s ease, color .15s ease;
  white-space: nowrap;
}
.btn--sm { padding: 9px 16px; font-size: 13px; }
.btn--lg { padding: 16px 26px; font-size: 16px; }
.btn--xl { padding: 20px 32px; font-size: 17px; }

.btn--primary {
  background: var(--cyan-500);
  color: var(--navy-900);
  box-shadow:
    inset 0 1px 0 rgba(255,255,255,0.45),
    0 8px 22px -10px rgba(0,200,224,0.55),
    0 1px 0 rgba(0,0,0,0.08);
}
.btn--primary:hover {
  background: #1ad6ec;
  transform: translateY(-1px);
  box-shadow:
    inset 0 1px 0 rgba(255,255,255,0.5),
    0 12px 26px -10px rgba(0,200,224,0.7);
}
.btn--primary:active { transform: translateY(0); }

.link-text {
  font-weight: 500;
  font-size: 14px;
  color: var(--text);
  border-bottom: 1px solid transparent;
  padding-bottom: 2px;
}
.link-text:hover { border-bottom-color: var(--cyan-500); }
.link-text--light { color: rgba(255,255,255,0.85); }
.link-text--light:hover { color: #fff; border-bottom-color: var(--cyan-500); }

/* ============================================================
   Eyebrow (signature treatment — uppercase letter-spaced label)
   ============================================================ */

.eyebrow {
  font-family: var(--ff-mono);
  font-size: clamp(8.5px, 0.85vw, 11px);
  font-weight: 500;
  letter-spacing: clamp(0.10em, 0.16em, 0.18em);
  color: var(--cyan-700);
  margin: 0 0 16px;
  text-transform: none; /* already spaced */
  white-space: nowrap;
}
.eyebrow--light { color: rgba(255,255,255,0.65); }

/* ============================================================
   Nav
   ============================================================ */

.nav {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(14,28,54,0.85);
  backdrop-filter: saturate(140%) blur(10px);
  -webkit-backdrop-filter: saturate(140%) blur(10px);
  border-bottom: 1px solid rgba(255,255,255,0.06);
}
.nav__inner {
  max-width: var(--container);
  margin: 0 auto;
  padding: 14px var(--pad-x);
  display: flex;
  align-items: center;
  gap: 32px;
  color: rgba(255,255,255,0.85);
}
.nav__brand {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-right: auto;
}
.nav__logo { height: 26px; width: auto; filter: brightness(1.05) saturate(1.1); }
.nav__wordmark {
  color: #fff;
  font-weight: 600;
  font-size: 17px;
  letter-spacing: -0.01em;
}
.tm {
  font-size: 0.55em;
  vertical-align: super;
  line-height: 1;
  margin-left: 1px;
  font-weight: 500;
  letter-spacing: 0;
  opacity: 0.75;
}
.footer__wordmark {
  color: #fff;
  font-weight: 600;
  font-size: 18px;
  letter-spacing: -0.01em;
}
.nav__links {
  display: flex;
  gap: 28px;
  font-size: 14px;
  font-weight: 400;
}
.nav__links a {
  color: rgba(255,255,255,0.7);
  transition: color .15s ease;
}
.nav__links a:hover { color: #fff; }
.nav__cta {
  display: flex;
  align-items: center;
  gap: 22px;
}
.nav__cta .link-text {
  color: rgba(255,255,255,0.85);
  border-bottom-color: transparent;
}
.nav__cta .link-text:hover { border-bottom-color: var(--cyan-500); color: #fff; }

@media (max-width: 880px) {
  .nav__links { display: none; }
}

/* ============================================================
   Hero
   ============================================================ */

.hero {
  position: relative;
  background: radial-gradient(ellipse at 70% 0%, #1a3768 0%, var(--navy-800) 45%, var(--navy-900) 100%);
  color: #fff;
  overflow: hidden;
  padding-top: 80px;
}
.hero__bg {
  position: absolute;
  inset: 0;
  pointer-events: none;
  opacity: 0.7;
  mask-image: linear-gradient(to bottom, #000 0%, #000 60%, transparent 100%);
  -webkit-mask-image: linear-gradient(to bottom, #000 0%, #000 60%, transparent 100%);
}
.hero__grid { width: 100%; height: 100%; }
.hero__inner {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr);
  gap: 72px;
  align-items: center;
  padding-top: 40px;
  padding-bottom: 100px;
}
@media (max-width: 980px) {
  .hero__inner { grid-template-columns: 1fr; gap: 52px; padding-bottom: 64px; }
}

.hero__title {
  font-size: clamp(40px, 5vw, 64px);
  font-weight: 600;
  line-height: 1.05;
  letter-spacing: -0.02em;
  margin: 12px 0 20px;
  text-wrap: balance;
}
.hero__title-accent { color: var(--cyan-500); }
.hero__sub {
  font-size: clamp(16px, 1.3vw, 18px);
  line-height: 1.6;
  color: rgba(255,255,255,0.78);
  max-width: 560px;
  margin: 0 0 32px;
}
.hero__ctas {
  display: flex;
  align-items: center;
  gap: 24px;
  margin-bottom: 56px;
}
.hero__stats {
  list-style: none;
  display: grid;
  grid-template-columns: repeat(3, minmax(0,1fr));
  gap: 24px;
  padding: 24px 0 0;
  margin: 0;
  border-top: 1px solid rgba(255,255,255,0.1);
  max-width: 560px;
}
.hero__stats li { display: flex; flex-direction: column; gap: 6px; }
.hero__stat-num {
  font-family: var(--ff-sans);
  font-size: 26px;
  font-weight: 600;
  letter-spacing: -0.02em;
  color: #fff;
}
.hero__stat-lbl {
  font-family: var(--ff-mono);
  font-size: 11px;
  line-height: 1.4;
  letter-spacing: 0.02em;
  color: rgba(255,255,255,0.55);
}

/* Hero visual — voice → structured data */
.hero__visual {
  position: relative;
}
.vflow {
  display: flex;
  flex-direction: column;
  align-items: stretch;
  gap: 14px;
  position: relative;
  filter: drop-shadow(0 30px 50px rgba(0,0,0,0.35));
}

.vflow__card {
  background: rgba(255,255,255,0.04);
  border: 1px solid rgba(255,255,255,0.1);
  border-radius: var(--r-lg);
  padding: 18px 20px;
  backdrop-filter: blur(8px);
}
.vflow__card--voice { background: linear-gradient(180deg, rgba(255,255,255,0.07), rgba(255,255,255,0.02)); }
.vflow__card--data  { background: rgba(8,18,40,0.65); }

.vflow__head {
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: var(--ff-mono);
  font-size: 11px;
  letter-spacing: 0.08em;
  color: rgba(255,255,255,0.6);
  margin-bottom: 12px;
}
.vflow__dot {
  width: 8px; height: 8px;
  border-radius: 50%;
  background: #ff5247;
  box-shadow: 0 0 0 4px rgba(255,82,71,0.18);
  animation: pulseDot 1.6s ease-in-out infinite;
}
@keyframes pulseDot {
  0%, 100% { box-shadow: 0 0 0 4px rgba(255,82,71,0.18); }
  50%      { box-shadow: 0 0 0 8px rgba(255,82,71,0.06); }
}
.vflow__head-label { flex: 1; }
.vflow__time { color: rgba(255,255,255,0.85); font-weight: 500; }
.vflow__chip {
  font-family: var(--ff-mono);
  font-size: 10px;
  padding: 3px 7px;
  border: 1px solid rgba(0,200,224,0.4);
  color: var(--cyan-500);
  border-radius: 4px;
  letter-spacing: 0.1em;
}

.vflow__wave {
  height: 60px;
  display: flex;
  align-items: center;
  margin: 6px 0 12px;
}
.vflow__wave-svg { width: 100%; height: 100%; overflow: visible; }
.wave-bars rect {
  fill: var(--cyan-500);
}

.vflow__transcript {
  font-size: 13.5px;
  color: rgba(255,255,255,0.78);
  line-height: 1.5;
  font-style: italic;
  border-left: 2px solid var(--cyan-500);
  padding-left: 12px;
}
.vflow__quote { display: block; }

.vflow__arrow {
  display: flex;
  align-items: center;
  gap: 10px;
  align-self: center;
  font-family: var(--ff-mono);
  font-size: 10px;
  letter-spacing: 0.18em;
  color: rgba(0,200,224,0.85);
  text-transform: uppercase;
}
.vflow__arrow svg { width: 16px; height: 36px; }

.vflow__table {
  width: 100%;
  border-collapse: collapse;
  font-family: var(--ff-mono);
  font-size: 12px;
  color: rgba(255,255,255,0.85);
}
.vflow__table thead th {
  text-align: left;
  padding: 6px 8px;
  font-size: 10px;
  letter-spacing: 0.08em;
  color: rgba(255,255,255,0.45);
  font-weight: 500;
  border-bottom: 1px solid rgba(255,255,255,0.08);
}
.vflow__table tbody td {
  padding: 7px 8px;
  border-bottom: 1px solid rgba(255,255,255,0.04);
}
.vflow__table tbody tr:last-child td { border-bottom: 0; }
.vflow__row--hl td {
  background: rgba(0,200,224,0.06);
}

.cls {
  display: inline-block;
  padding: 1px 6px;
  border-radius: 3px;
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.04em;
}
.cls--p   { background: rgba(0,200,224,0.18); color: var(--cyan-500); }
.cls--u   { background: rgba(245,166,35,0.18); color: #f5a623; }
.cls--npt { background: rgba(229,90,76,0.18); color: #e55a4c; }

.vflow__foot {
  margin-top: 12px;
  font-family: var(--ff-mono);
  font-size: 10.5px;
  letter-spacing: 0.06em;
  color: rgba(255,255,255,0.55);
}

.dot {
  display: inline-block;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  margin-right: 6px;
  vertical-align: 1px;
}
.dot--ok  { background: var(--cyan-500); }
.dot--p   { background: var(--c-p); }
.dot--u   { background: var(--c-u); }
.dot--npt { background: var(--c-npt); }

/* Hero band */
.hero__band {
  position: relative;
  border-top: 1px solid rgba(255,255,255,0.07);
  background: rgba(0,0,0,0.15);
}
.hero__band-inner {
  display: flex;
  align-items: center;
  gap: 32px;
  padding-top: 22px;
  padding-bottom: 22px;
  color: rgba(255,255,255,0.6);
  flex-wrap: wrap;
}
.hero__band-inner .eyebrow {
  margin: 0;
  color: rgba(255,255,255,0.45);
  letter-spacing: 0.18em;
}
.hero__band-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  gap: 28px;
  flex-wrap: wrap;
  font-family: var(--ff-mono);
  font-size: 12px;
  letter-spacing: 0.04em;
  color: rgba(255,255,255,0.75);
}
.hero__band-list li {
  position: relative;
  padding-left: 12px;
}
.hero__band-list li::before {
  content: "";
  position: absolute;
  left: 0; top: 50%;
  width: 4px; height: 4px;
  background: var(--cyan-500);
  border-radius: 50%;
  transform: translateY(-50%);
}

/* ============================================================
   Sections
   ============================================================ */

.section {
  padding: clamp(72px, 9vw, 120px) 0;
}
.section--light { background: var(--bg-white); }
.section--alt   { background: var(--bg-alt); }
.section--white { background: var(--bg-white); }
.section--dark  { background: var(--navy-800); color: #fff; }
.section--cta   {
  background: linear-gradient(180deg, var(--navy-800) 0%, var(--navy-900) 100%);
  color: #fff;
}

.section__head {
  max-width: 920px;
  margin: 0 0 56px;
}
.section__head--center { margin-left: auto; margin-right: auto; text-align: center; }

.section__title {
  font-size: clamp(28px, 3.4vw, 44px);
  font-weight: 600;
  line-height: 1.15;
  letter-spacing: -0.018em;
  margin: 0;
  text-wrap: balance;
}
.section__title--light { color: #fff; }
.section__title .muted {
  display: block;
  margin-top: 8px;
  color: var(--text-mute);
  font-weight: 400;
}

/* ============================================================
   Problem section
   ============================================================ */

.problem {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.15fr);
  gap: 64px;
  align-items: start;
}
@media (max-width: 980px) {
  .problem { grid-template-columns: 1fr; gap: 40px; }
}

.problem__copy .lede {
  font-size: 19px;
  line-height: 1.5;
  color: var(--text);
  margin: 0 0 16px;
}
.problem__copy p {
  color: var(--text-mid);
  font-size: 16px;
  line-height: 1.6;
  margin: 0 0 28px;
}
.problem__list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 0;
  border-top: 1px solid var(--line);
}
.problem__list li {
  display: grid;
  grid-template-columns: 110px 1fr;
  gap: 24px;
  padding: 20px 0;
  border-bottom: 1px solid var(--line);
  align-items: baseline;
}
.problem__list-num {
  font-family: var(--ff-sans);
  font-weight: 600;
  font-size: 28px;
  letter-spacing: -0.02em;
  color: var(--navy-700);
}
.problem__list-txt {
  font-size: 15px;
  color: var(--text-mid);
  line-height: 1.55;
}
.problem__list-txt strong { color: var(--text); font-weight: 600; }

/* DDR comparison */
.ddr {
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  background: #fff;
  padding: 20px 22px;
  margin-bottom: 16px;
  box-shadow: var(--sh-soft);
}
.ddr--after {
  border-color: rgba(0,200,224,0.4);
  box-shadow: 0 1px 0 rgba(15,30,60,0.04), 0 14px 32px -16px rgba(0,150,180,0.35);
}
.ddr__head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 14px;
}
.ddr__title {
  font-size: 14px;
  font-weight: 600;
  color: var(--text);
}
.ddr__title--accent { color: var(--cyan-700); }
.ddr__meta {
  font-family: var(--ff-mono);
  font-size: 11px;
  letter-spacing: 0.04em;
  color: var(--text-mute);
}

.ddr__chart {
  display: flex;
  flex-direction: column;
  gap: 4px;
  padding: 8px 0;
}
.ddr__row {
  display: grid;
  grid-template-columns: 50px 1fr;
  align-items: center;
  gap: 10px;
  min-height: 26px;
  position: relative;
}
.ddr__chart--after .ddr__row { grid-template-columns: 50px 1fr; }
.ddr__time {
  font-family: var(--ff-mono);
  font-size: 11px;
  color: var(--text-mute);
}
.ddr__bar {
  position: relative;
  height: 22px;
  display: flex;
  align-items: center;
  border-radius: 4px;
  padding: 0 10px;
  font-size: 12px;
  font-weight: 500;
  color: #fff;
  width: var(--w);
  margin-left: calc(var(--ofs, 0) * 1%);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.ddr__bar[data-offset] { margin-left: calc(attr(data-offset number, 0) * 1%); }
/* fallback for browsers w/o attr support in calc */

.ddr__bar--p   { background: linear-gradient(180deg, #00C8E0, #00A2BC); color: #062a32; }
.ddr__bar--u   { background: linear-gradient(180deg, #F5B547, #d4901f); color: #3a2400; }
.ddr__bar--npt { background: linear-gradient(180deg, #E55A4C, #b94235); color: #fff; }
.ddr__bar-label {
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.01em;
}
.ddr__row--coarse .ddr__bar {
  background: repeating-linear-gradient(45deg, #B7C1D2 0 8px, #c8d0de 8px 16px);
  color: var(--navy-700);
}

.ddr__foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  padding-top: 12px;
  margin-top: 6px;
  border-top: 1px solid var(--line-soft);
  font-size: 12px;
  color: var(--text-mute);
  flex-wrap: wrap;
}
.ddr__count {
  font-family: var(--ff-mono);
  font-weight: 600;
  letter-spacing: 0.04em;
  color: var(--text);
  font-size: 11px;
}
.ddr__count--accent { color: var(--cyan-700); }
.ddr__note { font-size: 12px; }

/* DDR continuous timeline (S80-B) */
.ddr__timeline {
  display: flex;
  width: 100%;
  height: 36px;
  overflow: visible;
  margin-top: 38px;
}
.ddr__seg {
  position: relative;
  width: var(--w);
  height: 36px;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: visible;
  flex-shrink: 0;
}
.ddr__seg:first-child { border-radius: 5px 0 0 5px; }
.ddr__seg:last-child  { border-radius: 0 5px 5px 0; }
.ddr__seg-label {
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.01em;
  text-align: center;
  padding: 0 4px;
  max-width: 100%;
  overflow: hidden;
  white-space: nowrap;
  text-overflow: ellipsis;
}
.ddr__seg--above .ddr__seg-label {
  position: absolute;
  bottom: calc(100% + 5px);
  left: 50%;
  transform: translateX(-50%);
  white-space: nowrap;
  color: var(--text);
  font-size: 10px;
  pointer-events: none;
  z-index: 1;
  max-width: none;
  overflow: visible;
  text-overflow: clip;
}
.ddr__seg--above::after {
  content: '';
  position: absolute;
  top: 0;
  left: 50%;
  width: 1px;
  height: 5px;
  background: rgba(0,0,0,0.25);
  transform: translateX(-50%);
}
.ddr__axis {
  display: flex;
  justify-content: space-between;
  margin-top: 5px;
  font-family: var(--ff-mono);
  font-size: 10px;
  color: var(--text-mute);
}
.lg-key {
  display: inline-flex;
  align-items: center;
  margin-right: 14px;
  font-family: var(--ff-mono);
  font-size: 10.5px;
  letter-spacing: 0.04em;
  color: var(--text-mid);
}

/* ============================================================
   How it works
   ============================================================ */

.how {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 1px;
  background: rgba(255,255,255,0.08);
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: var(--r-lg);
  overflow: hidden;
}
@media (max-width: 980px) {
  .how { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 580px) {
  .how { grid-template-columns: 1fr; }
}

.how__step {
  background: var(--navy-800);
  padding: 32px 28px 28px;
  display: flex;
  flex-direction: column;
  gap: 14px;
  position: relative;
}
.how__num {
  font-family: var(--ff-mono);
  font-size: 13px;
  letter-spacing: 0.12em;
  color: var(--cyan-500);
}
.how__title {
  font-size: 19px;
  font-weight: 600;
  margin: 0;
  letter-spacing: -0.01em;
  color: #fff;
}
.how__body {
  font-size: 14.5px;
  line-height: 1.55;
  color: rgba(255,255,255,0.7);
  margin: 0;
}
.how__viz {
  margin-top: auto;
  padding-top: 16px;
  min-height: 130px;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* Tap mic viz */
.tap { position: relative; width: 100px; height: 100px; }
.tap__ring {
  position: absolute;
  inset: 0;
  border: 1px solid rgba(0,200,224,0.35);
  border-radius: 50%;
  animation: tapPulse 2.2s ease-out infinite;
}
.tap__ring--2 { animation-delay: 1.1s; }
@keyframes tapPulse {
  0%   { transform: scale(0.6); opacity: 0.9; }
  100% { transform: scale(1.3); opacity: 0; }
}
.tap__btn {
  position: absolute;
  inset: 22px;
  border-radius: 50%;
  background: var(--cyan-500);
  color: var(--navy-900);
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 8px 22px -10px rgba(0,200,224,0.7);
}

/* Extract viz */
.extract {
  width: 100%;
  background: rgba(0,0,0,0.25);
  border: 1px solid rgba(255,255,255,0.07);
  border-radius: 8px;
  padding: 10px 12px;
  font-family: var(--ff-mono);
}
.extract__src {
  font-size: 11.5px;
  color: rgba(255,255,255,0.55);
  font-style: italic;
  margin: 0 0 8px;
  padding-bottom: 8px;
  border-bottom: 1px dashed rgba(255,255,255,0.1);
}
.extract__fields {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.extract__fields li {
  display: flex;
  justify-content: space-between;
  font-size: 11px;
}
.extract__fields li span { color: rgba(255,255,255,0.5); }
.extract__fields li b    { color: var(--cyan-500); font-weight: 500; }

/* Classification tree */
.cls-tree {
  width: 100%;
  font-family: var(--ff-mono);
  font-size: 11px;
}
.cls-tree__row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 6px 4px;
  border-bottom: 1px solid rgba(255,255,255,0.05);
}
.cls-tree__row:last-child { border-bottom: 0; }
.cls-tree__row--sub { padding-left: 14px; }
.cls-tree__row--sub2 { padding-left: 24px; }
.cls-tree__lbl { color: rgba(255,255,255,0.5); }
.cls-tree__val {
  color: rgba(255,255,255,0.92);
  font-weight: 500;
  letter-spacing: 0.02em;
}

/* XML preview */
.xml {
  width: 100%;
  font-family: var(--ff-mono);
  font-size: 10.5px;
  line-height: 1.5;
  margin: 0;
  background: rgba(0,0,0,0.3);
  padding: 12px 14px;
  border-radius: 6px;
  border: 1px solid rgba(255,255,255,0.06);
  color: rgba(255,255,255,0.85);
  overflow: hidden;
  white-space: pre;
}
.xml-tag  { color: var(--cyan-500); }
.xml-attr { color: rgba(255,255,255,0.55); }
.xml-str  { color: #f5b547; }

/* ============================================================
   Three pillars
   ============================================================ */

.pillars {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 24px;
}
@media (max-width: 980px) {
  .pillars { grid-template-columns: 1fr; }
}

.pillar {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  padding: 32px 28px 28px;
  display: flex;
  flex-direction: column;
  gap: 18px;
  transition: transform .2s ease, box-shadow .2s ease, border-color .2s ease;
}
.pillar:hover {
  transform: translateY(-2px);
  border-color: rgba(0,200,224,0.35);
  box-shadow: var(--sh-card);
}
.pillar--accent {
  background: var(--navy-800);
  color: #fff;
  border-color: var(--navy-800);
}
.pillar--accent .pillar__num { color: var(--cyan-500); border-color: rgba(0,200,224,0.3); }
.pillar--accent .pillar__tag { color: rgba(255,255,255,0.5); }
.pillar--accent .pillar__body { color: rgba(255,255,255,0.75); }
.pillar--accent .pillar__chain { color: rgba(255,255,255,0.8); }
.pillar--accent .pillar__chain i { color: var(--cyan-500); }

.pillar__head {
  display: flex;
  align-items: center;
  gap: 12px;
  justify-content: space-between;
}
.pillar__num {
  font-family: var(--ff-mono);
  font-size: 12px;
  letter-spacing: 0.1em;
  color: var(--cyan-700);
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 3px 10px;
}
.pillar__tag {
  font-family: var(--ff-mono);
  font-size: 10px;
  letter-spacing: 0.18em;
  color: var(--text-mute);
}
.pillar__title {
  font-size: 22px;
  font-weight: 600;
  line-height: 1.2;
  letter-spacing: -0.01em;
  margin: 0;
}
.pillar__body {
  font-size: 15px;
  line-height: 1.55;
  color: var(--text-mid);
  margin: 0;
}
.pillar__chain {
  margin-top: auto;
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  font-family: var(--ff-mono);
  font-size: 11px;
  color: var(--text);
  padding-top: 16px;
  border-top: 1px solid var(--line-soft);
  align-items: center;
}
.pillar--accent .pillar__chain { border-top-color: rgba(255,255,255,0.08); }
.pillar__chain i {
  font-style: normal;
  color: var(--cyan-700);
}

/* ============================================================
   Ecosystem
   ============================================================ */

.eco {
  display: grid;
  grid-template-columns: repeat(2, minmax(0,1fr));
  gap: 0;
  background: var(--bg-alt);
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  overflow: hidden;
}
@media (max-width: 720px) {
  .eco { grid-template-columns: 1fr; }
}
.eco__card {
  background: #fff;
  padding: 32px 28px;
  border-right: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}
.eco__card:nth-child(2n) { border-right: 0; }
.eco__card:nth-last-child(-n+2) { border-bottom: 0; }
@media (max-width: 720px) {
  .eco__card { border-right: 0; }
  .eco__card:not(:last-child) { border-bottom: 1px solid var(--line); }
}
.eco__row {
  display: flex;
  align-items: baseline;
  gap: 14px;
  margin-bottom: 8px;
}
.eco__lbl {
  font-family: var(--ff-mono);
  font-size: 12px;
  letter-spacing: 0.1em;
  color: var(--cyan-700);
}
.eco__title {
  font-size: 19px;
  font-weight: 600;
  margin: 0;
  letter-spacing: -0.01em;
}
.eco__card p {
  margin: 0;
  font-size: 15px;
  color: var(--text-mid);
  line-height: 1.55;
}

/* ============================================================
   CTA section
   ============================================================ */

.cta {
  display: grid;
  grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr);
  gap: 56px;
  align-items: center;
}
@media (max-width: 980px) {
  .cta { grid-template-columns: 1fr; gap: 40px; }
}

.cta__title {
  font-size: clamp(32px, 3.6vw, 48px);
  font-weight: 600;
  line-height: 1.1;
  letter-spacing: -0.02em;
  margin: 12px 0 20px;
  color: #fff;
  text-wrap: balance;
}
.cta__title--accent { color: var(--cyan-500); }
.cta__sub {
  font-size: 17px;
  line-height: 1.6;
  color: rgba(255,255,255,0.78);
  max-width: 620px;
  margin: 0 0 36px;
}
.cta__actions { display: flex; flex-direction: column; gap: 12px; align-items: flex-start; }
.cta__fineprint {
  margin: 0;
  font-family: var(--ff-mono);
  font-size: 11.5px;
  letter-spacing: 0.06em;
  color: rgba(255,255,255,0.55);
}

.cta__card {
  background: rgba(255,255,255,0.04);
  border: 1px solid rgba(255,255,255,0.1);
  border-radius: var(--r-lg);
  padding: 28px;
  backdrop-filter: blur(8px);
}
.cta__card-eyebrow {
  font-family: var(--ff-mono);
  font-size: 11px;
  letter-spacing: 0.18em;
  color: var(--cyan-500);
  margin: 0 0 18px;
}
.cta__card-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 0;
}
.cta__card-list li {
  display: grid;
  grid-template-columns: 50px 1fr;
  gap: 14px;
  padding: 16px 0;
  border-bottom: 1px solid rgba(255,255,255,0.08);
  align-items: center;
}
.cta__card-list li:last-child { border-bottom: 0; }
.cta__card-num {
  font-size: 34px;
  font-weight: 300;
  color: var(--cyan-500);
  letter-spacing: -0.02em;
  line-height: 1;
}
.cta__card-list span b {
  color: #fff;
  font-weight: 600;
  font-size: 14px;
}
.cta__card-list span i {
  font-style: normal;
  color: rgba(255,255,255,0.55);
  font-size: 12.5px;
}
.cta__card-foot {
  display: flex;
  align-items: center;
  gap: 0;
  margin-top: 18px;
  padding-top: 16px;
  border-top: 1px solid rgba(255,255,255,0.08);
  font-size: 12.5px;
  color: rgba(255,255,255,0.7);
}

/* ============================================================
   Footer
   ============================================================ */

.footer {
  background: var(--navy-900);
  color: rgba(255,255,255,0.7);
}
.footer__inner {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1.2fr;
  gap: 56px;
  padding: 72px var(--pad-x) 48px;
}
@media (max-width: 880px) {
  .footer__inner { grid-template-columns: 1fr 1fr; gap: 40px; }
}
@media (max-width: 540px) {
  .footer__inner { grid-template-columns: 1fr; }
}

.footer__logos {
  display: flex;
  align-items: center;
  gap: 18px;
  margin-bottom: 16px;
}
.footer__logo { height: 32px; width: auto; }
.footer__divider {
  width: 1px;
  height: 22px;
  background: rgba(255,255,255,0.15);
}
.footer__m46ia { height: 34px; width: auto; filter: brightness(1.4) contrast(1.05); }
.footer__tag {
  font-size: 13.5px;
  line-height: 1.55;
  color: rgba(255,255,255,0.6);
  margin: 0;
  max-width: 420px;
}

.footer__col {
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.footer__col-title {
  font-family: var(--ff-mono);
  font-size: 11px;
  letter-spacing: 0.14em;
  color: rgba(255,255,255,0.45);
  margin: 0 0 6px;
  text-transform: uppercase;
}
.footer__col a {
  color: rgba(255,255,255,0.78);
  font-size: 14px;
  transition: color .15s ease;
}
.footer__col a:hover { color: var(--cyan-500); }
.footer__contact {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: 14px;
}
.footer__contact-icon {
  width: 18px;
  height: 18px;
  flex: 0 0 18px;
  display: block;
}
.footer__mute {
  color: rgba(255,255,255,0.45);
  font-size: 13px;
}

.footer__bar {
  border-top: 1px solid rgba(255,255,255,0.06);
  padding: 18px 0;
}
.footer__bar-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 12px;
  color: rgba(255,255,255,0.45);
  flex-wrap: wrap;
  gap: 12px;
}
.footer__bar-meta {
  font-family: var(--ff-mono);
  letter-spacing: 0.06em;
}

/* ============================================================
   Demo preview section
   ============================================================ */
.demo-preview {
  background: var(--bg, #0a0a0a);
  border-top: 1px solid rgba(255,255,255,0.06);
  border-bottom: 1px solid rgba(255,255,255,0.06);
  padding: 72px 40px;
  text-align: center;
}
.demo-preview__inner {
  max-width: 720px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 32px;
}
.demo-preview__title {
  font-size: clamp(24px, 3vw, 38px);
  font-weight: 700;
  color: var(--text, #f0f0f0);
  margin: 0;
}
.demo-preview__lead {
  font-size: 16px;
  color: rgba(255,255,255,0.55);
  line-height: 1.65;
  margin: 0;
}
.demo-preview__frame {
  position: relative;
  width: 100%;
  max-width: 720px;
  aspect-ratio: 16 / 9;
  border-radius: 12px;
  overflow: hidden;
  border: 1px solid rgba(255,255,255,0.08);
  cursor: pointer;
  background: #080d14;
  padding: 0;
  display: block;
  transition: border-color 0.2s;
}
.demo-preview__frame:hover { border-color: rgba(0,212,255,0.35); }
.demo-frame__bg {
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse at 50% 40%, rgba(0,212,255,0.07) 0%, transparent 65%);
}
.demo-frame__content {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 12px;
}
.demo-frame__logo {
  font-size: clamp(22px, 3vw, 36px);
  font-weight: 700;
  color: #fff;
  letter-spacing: -0.02em;
}
.demo-frame__tagline {
  font-size: clamp(13px, 1.4vw, 16px);
  color: rgba(255,255,255,0.5);
  letter-spacing: 0.04em;
}
.demo-frame__play-ring {
  position: absolute;
  bottom: 20px;
  right: 20px;
  width: 52px;
  height: 52px;
  border-radius: 50%;
  background: rgba(0,212,255,0.12);
  border: 1px solid rgba(0,212,255,0.35);
  display: flex;
  align-items: center;
  justify-content: center;
  color: rgba(0,212,255,0.9);
  transition: background 0.2s, border-color 0.2s;
}
.demo-preview__frame:hover .demo-frame__play-ring {
  background: rgba(0,212,255,0.22);
  border-color: rgba(0,212,255,0.7);
}

/* ============================================================
   Demo dialog (fullscreen iframe)
   ============================================================ */
.demo-dialog {
  position: relative;
  background: #0a0f1a;
  border: 1px solid rgba(0, 212, 255, 0.30);
  border-radius: 16px;
  box-shadow:
    0 0 0 1px rgba(0, 212, 255, 0.06),
    0 8px 32px rgba(0, 0, 0, 0.5),
    0 0 80px rgba(0, 0, 0, 0.4);
  padding: 0;
  margin: auto;
  width: 88vw;
  max-width: 88vw;
  height: 86vh;
  max-height: 86vh;
  overflow: hidden;
}
.demo-dialog::backdrop {
  background: rgba(0, 0, 0, 0.55);
  backdrop-filter: blur(2px);
}
.demo-dialog__close {
  position: absolute;
  top: 12px;
  right: 12px;
  z-index: 10;
  background: rgba(0,0,0,0.55);
  border: 1px solid rgba(255,255,255,0.18);
  border-radius: 50%;
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  cursor: pointer;
  transition: background 0.15s;
}
.demo-dialog__close:hover { background: rgba(255,255,255,0.12); }

/* Mobile: fullscreen hasta iteración separada */
@media (max-width: 768px) {
  .demo-dialog {
    width: 100vw;
    max-width: 100vw;
    height: 100vh;
    max-height: 100vh;
    border-radius: 0;
    border: none;
    margin: 0;
  }
}
@media (max-width: 768px) and (orientation: landscape) {
  .demo-dialog__close {
    top: 56px; /* clear browser URL bar (~44px) which 100vh includes on Chrome iOS */
  }
}
.demo-rotate-hint {
  display: none;
}
@media (max-width: 768px) and (orientation: portrait) {
  .demo-rotate-hint {
    display: flex;
    position: absolute;
    inset: 0;
    z-index: 20;
    background: rgba(0, 0, 0, 0.82);
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 14px;
    color: rgba(255, 255, 255, 0.7);
    font-size: 14px;
    font-family: var(--ff-mono);
    letter-spacing: 0.04em;
    pointer-events: none;
  }
  .demo-rotate-hint p { margin: 0; }
}
.demo-dialog__stage {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}
.demo-dialog__iframe {
  width: 100%;
  height: 100%;
  border: none;
}

/* ============================================================
   Responsive tweaks for hero/stats density
   ============================================================ */

@media (max-width: 640px) {
  .hero__ctas { flex-direction: column; align-items: flex-start; gap: 16px; }
  .hero__stats { grid-template-columns: 1fr; gap: 14px; }
  .vflow__card { padding: 14px 16px; }
  .vflow__table thead th,
  .vflow__table tbody td { padding: 5px 6px; font-size: 11px; }
}

/* ============================================================
   480px — Mobile (390px iPhone covered)
   ============================================================ */
@media (max-width: 480px) {

  /* Demo preview */
  .demo-preview { padding: 48px 20px; }
  .demo-preview__title { font-size: clamp(20px, 6vw, 26px); }
  .demo-preview__lead { font-size: 14px; }
  .demo-preview__frame { max-width: 100%; }

  /* Eyebrow: reduce font-size + letter-spacing so spaced text fits at 350px */
  .eyebrow { font-size: 8px; letter-spacing: 0.04em; }

  /* Hero: no horizontal padding — .container inside already provides var(--pad-x) */
  .hero { padding: 64px 0 40px; }
  .hero__eyebrow { font-size: 9px; letter-spacing: 0.05em; }
  .hero__title { font-size: clamp(26px, 8vw, 36px); }
  .hero__lead { font-size: 15px; }
  .hero__ctas { gap: 12px; }
  .hero__band { padding: 20px 0; }
  .hero__band-list { gap: 8px 14px; font-size: 12px; }

  /* vflow — table scrolls internally; visual clipped by hero overflow:hidden */
  .vflow__card--data { overflow-x: auto; }
  .vflow__table { min-width: 320px; }
  .vflow__head-label { font-size: 9px; letter-spacing: 0.04em; }

  /* Demo frame: darken background for mobile legibility */
  .demo-preview__frame { background: rgba(10, 20, 40, 0.8); }

  /* Problem section: tighter layout */
  .problem__copy .lede { font-size: 16px; }
  .problem__copy p     { font-size: 14px; }
  .problem__list li    { grid-template-columns: 72px 1fr; gap: 16px; }
  .problem__list-num   { font-size: 22px; }
  /* Force grid track to not expand beyond available width — prevents DDR timeline
     min-width:480px from propagating up and making body wider than viewport */
  .problem__viz { min-width: 0; }

  /* DDR — both charts reduce top margin; after-chart labels moved below axis
     (overflow-x:auto forces overflow-y:auto which clips above-positioned labels,
     so we reposition them below the axis within the padding-bottom area instead) */
  .ddr__timeline { margin-top: 8px; }
  .ddr__seg-label { font-size: 9px; }
  .ddr__chart--after { padding-bottom: 40px; }
  .ddr__chart--after .ddr__timeline { min-width: 0; }
  .ddr__chart--after .ddr__seg--above .ddr__seg-label {
    top: calc(100% + 24px);
    bottom: auto;
  }
  .ddr__chart--after .ddr__seg--above::after {
    top: auto;
    bottom: 0;
  }

  /* DDR row: 3 children (time · bar · time) need 3 columns */
  .ddr__row { grid-template-columns: 40px 1fr 40px; }

  /* DDR head: meta text wraps on narrow viewport */
  .ddr__head { flex-wrap: wrap; gap: 4px 8px; }
  .ddr__meta { font-size: 10px; }

  /* DDR count: long text must wrap */
  .ddr__count { white-space: normal; line-height: 1.4; font-size: 11px; }

  .ddr__foot { flex-direction: column; align-items: flex-start; gap: 6px; }
  .ddr__note { flex-wrap: wrap; gap: 6px; }
  .lg-key { font-size: 9px; margin-right: 8px; }

  /* Section spacing: no horizontal padding — .container inside provides var(--pad-x) */
  .section { padding: 48px 0; }
  .section__title { font-size: clamp(20px, 6vw, 26px); }
  .section__lead { font-size: 14px; }

  /* How it works */
  .how__step { padding: 20px; }

  /* Footer — 1-col already set at 540px; tighten padding */
  .footer__inner { padding: 40px 20px 32px; }
  .footer { padding: 0; }

  /* Footer bar — decorative; hide on mobile */
  .footer__bar-meta { display: none; }
}
