/* ==========================================================================
   TRINOVAI INNOVATIVE EDITION — 2-Act Intro Vision + Isometric Tech Campus
   Paleta: #2F6CA3 · #5A96C8 · #90C2EA · #102336 · #1F5FA6 · #EDF3FA · #F6F9FD
   - Máx 2 familias tipográficas locales (Plus Jakarta Sans + Inter)
   - Disciplina de 3 tamaños de cuerpo (--text-heading, --text-body-size, --text-sm)
   - Cero inline styles, cero violaciones CSP, 100% responsive (320px -> 1440px)
   ========================================================================== */

/* ---------- Self-Hosted Webfonts (latin + latin-ext) ---------- */
@font-face {
  font-family: 'Inter';
  font-style: normal;
  font-weight: 400 700;
  font-display: swap;
  src: url('fonts/inter-400-latin-ext.woff2') format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: 'Inter';
  font-style: normal;
  font-weight: 400 700;
  font-display: swap;
  src: url('fonts/inter-400-latin.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: 'Plus Jakarta Sans';
  font-style: normal;
  font-weight: 600 800;
  font-display: swap;
  src: url('fonts/plus-jakarta-sans-600-latin-ext.woff2') format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: 'Plus Jakarta Sans';
  font-style: normal;
  font-weight: 600 800;
  font-display: swap;
  src: url('fonts/plus-jakarta-sans-600-latin.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

/* ---------- Design Tokens ---------- */
:root {
  --bg-canvas: #FFFFFF;
  --bg-surface: #FFFFFF;
  --bg-surface-alt: #F7FAFD;
  --bg-subtle: #F1F6FB;
  --bg-highlight: #E7F1FA;
  --bg-vision: #EDF3FA;
  --bg-hero-iso: #F6F9FD;

  --brand-step-1: #2F6CA3;
  --brand-step-2: #5A96C8;
  --brand-step-3: #90C2EA;

  --brand-action: #1F5FA6;
  --brand-action-hover: #174B87;
  --brand-link: #1F5B99;
  --pill-sky-bg: #EAF3FC;
  --pill-sky-text: #1A4772;
  --roi-metric: #1B5288;

  --text-strong: #102336;
  --text-hero-sub: #263E54;
  --text-body: #334B62;
  --text-muted: #4D667E;

  --border-hairline: #E2ECF5;
  --border-strong: #C2D6EA;
  --border-highlight: #C9DFF4;
  --shadow-workbench: 0 24px 60px -22px rgba(16, 35, 54, 0.14), 0 4px 14px -2px rgba(16, 35, 54, 0.05);
  --shadow-soft: 0 12px 30px -14px rgba(31, 95, 166, 0.12), 0 2px 6px -1px rgba(16, 35, 54, 0.04);

  --status-ok-bg: #E7F4EE;
  --status-ok-text: #1A5C44;
  --status-warn-bg: #FDF4E6;
  --status-warn-text: #854E10;
  --status-warn-border: #E5C28E;

  --font-display: "Plus Jakarta Sans", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  --font-sans: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;

  /* 3-size body scale discipline (below hero) */
  --text-heading: clamp(1.55rem, 2.7vw, 2.15rem);
  --text-body-size: 1rem;
  --text-sm: 0.875rem;

  --radius-sm: 8px;
  --radius-md: 12px;
  --radius-lg: 16px;
  --ease-out-expo: cubic-bezier(0.22, 1, 0.36, 1);
  --container-max: 1180px;
}

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

::selection {
  background-color: var(--brand-action);
  color: #FFFFFF;
}

html {
  scroll-behavior: smooth;
  background-color: var(--bg-vision);
  color: var(--text-strong);
  font-family: var(--font-sans);
  font-size: 16px;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: clip;
}

body {
  margin: 0;
  background-color: var(--bg-canvas);
  color: var(--text-body);
  font-size: var(--text-body-size);
  line-height: 1.6;
  caret-color: var(--brand-action);
  overflow-x: clip;
}

main, section, article, aside, header, footer {
  min-width: 0;
}

svg {
  flex-shrink: 0;
}

[id] {
  scroll-margin-top: 92px;
}

#inicio-pagina {
  scroll-margin-top: 0;
}

::-webkit-scrollbar {
  width: 10px;
  height: 10px;
}
::-webkit-scrollbar-track {
  background: var(--bg-surface-alt);
}
::-webkit-scrollbar-thumb {
  background: var(--border-strong);
  border-radius: 5px;
  border: 2px solid var(--bg-surface-alt);
}

:focus-visible {
  outline: 2px solid var(--brand-action);
  outline-offset: 3px;
}

h1, h2, h3, h4 {
  font-family: var(--font-display);
  color: var(--text-strong);
  margin: 0;
  text-wrap: balance;
}

p {
  margin: 0;
}

a {
  color: inherit;
  text-underline-offset: 3px;
}

.skip-link {
  position: absolute;
  left: -9999px;
  top: 12px;
  z-index: 100;
  background-color: var(--brand-action);
  color: #FFFFFF;
  padding: 10px 16px;
  border-radius: var(--radius-sm);
  font-size: var(--text-sm);
  font-weight: 600;
  text-decoration: none;
}

.skip-link:focus {
  left: 16px;
}

.container {
  max-width: var(--container-max);
  margin: 0 auto;
  padding-inline: 24px;
  width: 100%;
}

.tabular {
  font-variant-numeric: tabular-nums;
}

.w-full {
  width: 100%;
}

.mt-2 {
  margin-top: 4px;
}

.text-strong {
  color: var(--text-strong);
}

.text-muted-sm {
  font-size: var(--text-sm);
  color: var(--text-muted);
}

.text-body-sm {
  font-size: var(--text-sm);
  color: var(--text-body);
  line-height: 1.58;
}

.text-ok {
  color: var(--status-ok-text);
  font-weight: 600;
}

.text-warn {
  color: var(--status-warn-text);
  font-weight: 600;
}

/* ==========================================================================
   FLOATING WHITE PILL HEADER — Hidden on Act 1 Vision Screen, Glides In on Scroll
   ========================================================================== */
.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 40;
  padding: 14px 20px 0;
  pointer-events: none;
  opacity: 1;
  transform: translate3d(0, 0, 0);
  transition: opacity 280ms var(--ease-out-expo), transform 320ms var(--ease-out-expo);
}

.site-header.is-hidden-intro {
  opacity: 0;
  pointer-events: none;
  transform: translate3d(0, -18px, 0);
}

.header-pill {
  max-width: 1140px;
  margin: 0 auto;
  min-height: 58px;
  padding: 7px 10px 7px 20px;
  border-radius: 999px;
  background-color: rgba(255, 255, 255, 0.97);
  border: 1px solid #DCE7F3;
  box-shadow: 0 10px 28px -14px rgba(16, 35, 54, 0.14), 0 2px 8px -2px rgba(16, 35, 54, 0.05);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  pointer-events: auto;
}

.site-header.is-hidden-intro .header-pill {
  pointer-events: none;
}

.brand-link {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  text-decoration: none;
  flex-shrink: 0;
  min-height: 44px;
  padding: 2px 0;
}

.brand-mark {
  width: 32px;
  height: 32px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.brand-mark svg .lift-1,
.brand-mark svg .lift-2,
.brand-mark svg .lift-3 {
  transition: transform 240ms var(--ease-out-expo);
}

.brand-wordmark {
  font-family: var(--font-display);
  font-size: 1.3rem;
  font-weight: 800;
  letter-spacing: -0.035em;
  color: var(--text-strong);
}

.brand-dot {
  color: var(--brand-action);
}

.main-nav {
  display: flex;
  align-items: center;
  gap: 18px;
}

.main-nav a {
  text-decoration: none;
  font-size: var(--text-sm);
  font-weight: 500;
  color: var(--text-body);
  padding: 8px 10px;
  border-radius: 999px;
  min-height: 40px;
  display: inline-flex;
  align-items: center;
  transition: color 160ms var(--ease-out-expo), background-color 160ms var(--ease-out-expo);
  white-space: nowrap;
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-shrink: 0;
}

.nav-pill-cta {
  border-radius: 999px;
  padding: 9px 18px;
  min-height: 42px;
  background-color: var(--text-strong);
  border-color: var(--text-strong);
  color: #FFFFFF;
}

.wa-label-short {
  display: none;
}

.nav-toggle {
  display: none;
  align-items: center;
  justify-content: center;
  width: 42px;
  height: 42px;
  padding: 0;
  border-radius: 999px;
  border: 1px solid var(--border-hairline);
  background-color: var(--bg-surface-alt);
  color: var(--text-strong);
  cursor: pointer;
  transition: background-color 160ms var(--ease-out-expo), border-color 160ms var(--ease-out-expo), color 160ms var(--ease-out-expo);
}

.mobile-drawer {
  max-width: 1140px;
  margin: 8px auto 0;
  border-radius: var(--radius-lg);
  border: 1px solid #DCE7F3;
  background-color: rgba(255, 255, 255, 0.98);
  box-shadow: var(--shadow-soft);
  pointer-events: auto;
}

.mobile-drawer[hidden] {
  display: none;
}

.mobile-drawer-inner {
  padding: 12px 18px 18px;
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.mobile-nav-link {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 44px;
  padding: 10px 12px;
  border-radius: var(--radius-sm);
  text-decoration: none;
  font-size: var(--text-body-size);
  font-weight: 500;
  color: var(--text-strong);
  transition: color 160ms var(--ease-out-expo), background-color 160ms var(--ease-out-expo);
}

/* ==========================================================================
   BUTTONS
   ========================================================================== */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-family: var(--font-sans);
  font-size: var(--text-sm);
  font-weight: 600;
  line-height: 1.3;
  min-height: 44px;
  padding: 12px 22px;
  border-radius: var(--radius-sm);
  text-decoration: none;
  cursor: pointer;
  border: 1px solid transparent;
  transition: background-color 180ms var(--ease-out-expo),
              border-color 180ms var(--ease-out-expo),
              color 180ms var(--ease-out-expo),
              box-shadow 180ms var(--ease-out-expo),
              transform 140ms var(--ease-out-expo);
  white-space: normal;
  text-align: center;
  max-width: 100%;
}

.btn:active {
  transform: translateY(1px);
}

.btn-sm {
  min-height: 44px;
  padding: 9px 15px;
  font-size: var(--text-sm);
}

.btn-primary {
  background-color: var(--brand-action);
  color: #FFFFFF;
}

.btn-secondary {
  background-color: var(--bg-surface);
  color: var(--text-strong);
  border-color: var(--border-strong);
}

.header-pill .nav-pill-cta {
  border-radius: 999px;
  padding: 9px 18px;
  min-height: 42px;
  background-color: var(--text-strong);
  border-color: var(--text-strong);
  color: #FFFFFF;
}

/* ==========================================================================
   ACT 1 — MINIMALIST OPENING VISION SCREEN (#EDF3FA flat ground, 100svh)
   ========================================================================== */
.intro-vision {
  min-height: 100vh;
  min-height: 100svh;
  background-color: #EDF3FA;
  display: grid;
  grid-template-rows: 1fr auto 1fr;
  align-items: center;
  justify-items: center;
  padding: 24px;
  position: relative;
}

.intro-spacer {
  width: 1px;
  height: 1px;
}

.intro-center-brand {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: clamp(12px, 2vw, 18px);
  animation: heroRise 560ms var(--ease-out-expo) both;
}

.intro-brand-mark {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 48px;
  height: 48px;
}

.intro-brand-mark svg {
  width: 48px;
  height: 48px;
}

.intro-wordmark {
  font-family: var(--font-display);
  font-size: clamp(3.1rem, 7.8vw, 5.75rem);
  font-weight: 800;
  letter-spacing: -0.04em;
  line-height: 1;
  color: var(--text-strong);
}

.intro-vision-footer {
  align-self: end;
  padding-bottom: clamp(28px, 5.5vh, 52px);
  max-width: 50ch;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  animation: heroRise 640ms var(--ease-out-expo) 90ms both;
}

.intro-vision-label {
  font-family: var(--font-display);
  font-size: 0.875rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--brand-step-1);
}

.intro-vision-text {
  font-size: 1.0625rem;
  line-height: 1.55;
  color: var(--text-hero-sub);
}

.intro-scroll-cue {
  margin-top: 8px;
  width: 36px;
  height: 36px;
  border-radius: 999px;
  border: 1px solid #C8D9EC;
  background-color: rgba(255, 255, 255, 0.72);
  color: var(--brand-action);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
  transition: transform 200ms var(--ease-out-expo), background-color 200ms var(--ease-out-expo), border-color 200ms var(--ease-out-expo);
}

/* ==========================================================================
   ACT 2 — nadi.-INSPIRED ISOMETRIC TECH CAMPUS HERO (#F6F9FD)
   ========================================================================== */
.hero-isometric {
  position: relative;
  background-color: var(--bg-hero-iso);
  border-top: 1px solid #DFEAF6;
  border-bottom: 1px solid var(--border-hairline);
  padding: clamp(92px, 11vh, 116px) 0 0;
  overflow: hidden;
  isolation: isolate;
}

.hero-floor-grid {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  z-index: 0;
  pointer-events: none;
}

.hero-iso-container {
  position: relative;
  z-index: 2;
}

.hero-iso-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.09fr) minmax(0, 1fr);
  gap: 16px;
  align-items: center;
}

.hero-iso-copy {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  padding-bottom: 24px;
}

.hero-kicker {
  font-family: var(--font-display);
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--brand-step-1);
  margin-bottom: 14px;
}

.hero-title {
  font-size: clamp(2.35rem, 4.15vw, 3.55rem);
  font-weight: 800;
  letter-spacing: -0.04em;
  line-height: 1.04;
  color: var(--text-strong);
  max-width: 18ch;
}

.hero-title-accent {
  color: var(--brand-action);
}

.hero-lead {
  margin-top: 18px;
  font-size: 1.0625rem;
  line-height: 1.56;
  color: var(--text-hero-sub);
  max-width: 44ch;
}

/* Floating Interactive White Pill Bar */
.hero-pill-bar {
  margin-top: 28px;
  width: 100%;
  max-width: 615px;
  background-color: #FFFFFF;
  border: 1px solid #D5E3F2;
  border-radius: 999px;
  padding: 6px 7px 6px 18px;
  box-shadow: 0 14px 34px -14px rgba(16, 35, 54, 0.14), 0 3px 8px -2px rgba(16, 35, 54, 0.04);
  display: flex;
  align-items: center;
  gap: 10px;
}

.hero-pill-field {
  display: flex;
  flex-direction: column;
  min-width: 0;
  flex: 1 1 auto;
}

.hero-pill-label {
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.02em;
  color: var(--text-muted);
  line-height: 1.2;
}

.hero-pill-select {
  margin-top: 2px;
  width: 100%;
  border: none;
  background: transparent;
  font-family: var(--font-sans);
  font-size: 0.8125rem;
  font-weight: 700;
  color: var(--text-strong);
  padding: 2px 6px 2px 0;
  cursor: pointer;
  min-height: 28px;
  outline: none;
}

.hero-pill-select:focus-visible {
  outline: 2px solid var(--brand-action);
  border-radius: 6px;
}

.hero-pill-divider {
  width: 1px;
  height: 30px;
  background-color: var(--border-hairline);
  flex-shrink: 0;
}

.hero-pill-delivery {
  flex: 0 0 auto;
}

.hero-pill-value {
  margin-top: 2px;
  font-size: 0.8125rem;
  font-weight: 600;
  color: var(--text-strong);
  white-space: nowrap;
}

.hero-pill-btn {
  width: 44px;
  height: 44px;
  border-radius: 999px;
  border: none;
  background-color: var(--brand-action);
  color: #FFFFFF;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  cursor: pointer;
  transition: background-color 180ms var(--ease-out-expo), transform 140ms var(--ease-out-expo);
}

.hero-pill-btn:active {
  transform: scale(0.96);
}

/* 3 Clean Tabular Proof Metrics */
.hero-stats-row {
  margin: 28px 0 0;
  display: flex;
  flex-wrap: wrap;
  gap: 24px 36px;
}

.hero-stat-item dt {
  font-family: var(--font-display);
  font-size: 1.45rem;
  font-weight: 800;
  letter-spacing: -0.025em;
  line-height: 1.1;
  color: var(--text-strong);
}

.hero-stat-item dd {
  margin: 4px 0 0;
  font-size: var(--text-sm);
  color: var(--text-muted);
}

/* Isometric SVG Campus Stage */
.hero-iso-stage {
  position: relative;
  display: flex;
  align-items: flex-end;
  justify-content: center;
  margin-right: -36px;
}

.trinovai-campus-svg {
  width: 100%;
  max-width: 700px;
  height: auto;
  display: block;
}

.iso-facade-wordmark {
  font-family: "Plus Jakarta Sans", "Inter", sans-serif;
  font-size: 22px;
  font-weight: 800;
  letter-spacing: -0.6px;
}

/* Subtle Shuttle Motion along Isometric Avenue */
@keyframes shuttleGlide {
  0%, 100% {
    transform: translate3d(0, 0, 0);
  }
  50% {
    transform: translate3d(-24px, -13.8px, 0);
  }
}

.iso-shuttle-primary {
  animation: shuttleGlide 8s ease-in-out infinite;
}

.iso-shuttle-secondary {
  animation: shuttleGlide 10s ease-in-out -4s infinite;
}

/* Bottom Numbered Anchor Index Strip (01..06) */
.hero-index-strip {
  margin-top: 12px;
  padding: 16px 0 22px;
  border-top: 1px solid #DFEAF6;
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 12px;
}

.hero-index-item {
  display: flex;
  flex-direction: column;
  gap: 3px;
  padding: 6px 8px;
  border-radius: var(--radius-sm);
  text-decoration: none;
  min-height: 44px;
  transition: background-color 160ms var(--ease-out-expo), color 160ms var(--ease-out-expo);
}

.hero-index-num {
  font-size: 0.75rem;
  font-weight: 700;
  color: var(--brand-step-1);
}

.hero-index-label {
  font-size: var(--text-sm);
  font-weight: 600;
  color: var(--text-strong);
  line-height: 1.25;
}

/* Scroll Reveal Animations (default visible unless .js-reveal-ready on body) */
.js-reveal-ready .reveal-section {
  opacity: 0.01;
  transform: translateY(22px);
  transition: opacity 520ms var(--ease-out-expo), transform 520ms var(--ease-out-expo);
}

.js-reveal-ready .reveal-section.is-revealed {
  opacity: 1;
  transform: translateY(0);
}

@keyframes heroRise {
  from {
    opacity: 0.01;
    transform: translateY(10px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* ==========================================================================
   LIVE INTERACTIVE 2-SCREEN WORKBENCH
   ========================================================================== */
.section-workbench {
  padding: 56px 0 88px;
  background-color: var(--bg-canvas);
  border-bottom: 1px solid var(--border-hairline);
}

.workbench-header {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  justify-content: space-between;
  gap: 20px;
  margin-bottom: 22px;
}

.workbench-intro {
  max-width: 560px;
}

.section-title {
  font-size: var(--text-heading);
  font-weight: 700;
  letter-spacing: -0.025em;
  line-height: 1.15;
}

.section-desc {
  margin-top: 10px;
  font-size: var(--text-body-size);
  color: var(--text-body);
  max-width: 62ch;
}

.segmented-control {
  display: inline-flex;
  background-color: var(--bg-surface);
  border: 1px solid var(--border-strong);
  border-radius: 10px;
  padding: 4px;
  gap: 4px;
  max-width: 100%;
}

.seg-btn {
  border: none;
  background: transparent;
  color: var(--text-body);
  font-family: var(--font-sans);
  font-size: var(--text-sm);
  font-weight: 600;
  min-height: 44px;
  padding: 9px 16px;
  border-radius: 7px;
  cursor: pointer;
  white-space: normal;
  text-align: center;
  line-height: 1.25;
  transition: background-color 180ms var(--ease-out-expo), color 180ms var(--ease-out-expo);
}

.seg-btn[aria-pressed="true"] {
  background-color: var(--brand-action);
  color: #FFFFFF;
}

.demo-frame {
  background-color: var(--bg-surface);
  border: 1px solid var(--border-highlight);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-workbench);
  overflow: hidden;
  max-width: 100%;
}

.demo-topbar {
  background-color: var(--bg-surface-alt);
  border-bottom: 1px solid var(--border-hairline);
  padding: 10px 24px;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
}

.demo-window-dots {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  flex-shrink: 0;
}

.win-dot {
  width: 9px;
  height: 9px;
  border-radius: 50%;
}

.win-dot-1 {
  background-color: var(--brand-step-1);
}

.win-dot-2 {
  background-color: var(--brand-step-2);
}

.win-dot-3 {
  background-color: var(--brand-step-3);
}

.demo-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 6px 22px;
  min-width: 0;
  flex: 1 1 auto;
}

.demo-tab {
  border: none;
  background: transparent;
  min-height: 44px;
  padding: 10px 2px;
  border-bottom: 2px solid transparent;
  font-family: var(--font-sans);
  font-size: var(--text-sm);
  font-weight: 500;
  color: var(--text-muted);
  cursor: pointer;
  white-space: normal;
  text-align: left;
  transition: color 160ms var(--ease-out-expo), border-color 160ms var(--ease-out-expo), background-color 160ms var(--ease-out-expo);
}

.demo-tab[aria-selected="true"] {
  color: var(--brand-action);
  font-weight: 600;
  border-bottom-color: var(--brand-action);
}

.demo-url {
  font-size: var(--text-sm);
  color: var(--text-muted);
  background-color: var(--bg-surface);
  border: 1px solid var(--border-hairline);
  border-radius: 6px;
  padding: 5px 12px;
  max-width: 100%;
  overflow-wrap: anywhere;
}

.demo-body {
  padding: 32px;
  min-height: 356px;
}

.demo-split {
  display: grid;
  grid-template-columns: minmax(0, 1.38fr) minmax(0, 0.88fr);
  gap: 32px;
  align-items: start;
}

.demo-split > * {
  min-width: 0;
}

.demo-meta-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 14px;
}

.demo-meta-row > * {
  min-width: 0;
}

.demo-meta-chips {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  align-items: center;
}

.demo-code {
  display: block;
  font-size: var(--text-sm);
  font-weight: 600;
  color: var(--brand-link);
  overflow-wrap: anywhere;
}

.demo-h3 {
  font-size: var(--text-body-size);
  font-weight: 700;
  margin-top: 2px;
}

.status-chip {
  display: inline-flex;
  align-items: center;
  font-size: var(--text-sm);
  font-weight: 600;
  padding: 4px 10px;
  border-radius: 6px;
  max-width: 100%;
  line-height: 1.3;
}

.status-ok {
  background-color: var(--status-ok-bg);
  color: var(--status-ok-text);
}

.status-warn {
  background-color: var(--status-warn-bg);
  color: var(--status-warn-text);
}

.status-sky {
  background-color: var(--pill-sky-bg);
  color: var(--pill-sky-text);
}

.doc-list {
  margin-top: 14px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.doc-row {
  width: 100%;
  min-height: 54px;
  text-align: left;
  background-color: var(--bg-surface-alt);
  border: 1px solid var(--border-hairline);
  border-radius: var(--radius-sm);
  padding: 12px 16px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  cursor: pointer;
  transition: border-color 160ms var(--ease-out-expo), background-color 160ms var(--ease-out-expo), transform 140ms var(--ease-out-expo);
}

.doc-row:active {
  transform: translateY(1px);
}

.doc-row > div {
  min-width: 0;
}

.doc-row.is-pending {
  background-color: var(--status-warn-bg);
  border-color: var(--status-warn-border);
}

.doc-row strong {
  display: block;
  font-size: var(--text-sm);
  color: var(--text-strong);
}

.doc-row span.sub {
  display: block;
  font-size: var(--text-sm);
  margin-top: 2px;
  color: var(--status-ok-text);
}

.doc-row.is-pending span.sub {
  color: var(--status-warn-text);
}

.doc-badge {
  font-size: var(--text-sm);
  font-weight: 600;
  padding: 4px 10px;
  border-radius: 5px;
  flex-shrink: 0;
  white-space: nowrap;
}

.demo-choice-group {
  margin-top: 14px;
  display: inline-flex;
  flex-wrap: wrap;
  background-color: var(--bg-surface-alt);
  border: 1px solid var(--border-strong);
  border-radius: var(--radius-sm);
  padding: 3px;
  gap: 3px;
  max-width: 100%;
}

.demo-choice-seg {
  min-height: 44px;
  padding: 8px 14px;
  border-radius: 6px;
  border: none;
  background-color: transparent;
  color: var(--text-body);
  font-family: var(--font-sans);
  font-size: var(--text-sm);
  font-weight: 600;
  cursor: pointer;
  white-space: normal;
  text-align: left;
  transition: background-color 160ms var(--ease-out-expo), color 160ms var(--ease-out-expo);
}

.demo-choice-seg[aria-checked="true"] {
  background-color: var(--brand-action);
  color: #FFFFFF;
}

.demo-interactive-controls {
  margin-top: 16px;
}

.demo-outcome-panel {
  border-left: 2px solid var(--border-highlight);
  padding: 6px 0 6px 24px;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.demo-outcome-panel h4 {
  font-size: var(--text-body-size);
  font-weight: 700;
  color: var(--text-strong);
}

.demo-outcome-panel p {
  font-size: var(--text-body-size);
  color: var(--text-body);
  line-height: 1.58;
}

.demo-flow-steps {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 10px;
  border-top: 1px solid var(--border-hairline);
  padding-top: 14px;
}

.demo-flow-steps li {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
  font-size: var(--text-sm);
  color: var(--text-body);
}

.demo-flow-steps strong {
  color: var(--text-strong);
  font-weight: 600;
}

.metric-pair {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
  margin: 16px 0;
  padding: 16px 0;
  border-top: 1px solid var(--border-hairline);
  border-bottom: 1px solid var(--border-hairline);
}

.metric-cell {
  min-width: 0;
}

.metric-cell span {
  display: block;
  font-size: var(--text-sm);
  color: var(--text-muted);
}

.metric-cell strong {
  display: block;
  margin-top: 4px;
  font-size: var(--text-body-size);
  color: var(--text-strong);
}

.table-wrap {
  overflow-x: auto;
  border-top: 1px solid var(--border-hairline);
}

.data-table {
  width: 100%;
  border-collapse: collapse;
  text-align: left;
  font-size: var(--text-sm);
}

.data-table th {
  background-color: var(--bg-surface-alt);
  color: var(--text-body);
  font-weight: 600;
  padding: 12px 14px;
  border-bottom: 1px solid var(--border-hairline);
  white-space: nowrap;
}

.data-table td {
  padding: 13px 14px;
  border-bottom: 1px solid var(--border-hairline);
  color: var(--text-strong);
  background-color: var(--bg-surface);
}

.data-table tr:last-child td {
  border-bottom: none;
}

/* ==========================================================================
   ASYMMETRIC EDITORIAL SECTION — 4 PRACTICE LINES & VERIFIABLE LEDGER
   ========================================================================== */
.section-practice {
  background-color: var(--bg-surface-alt);
  border-bottom: 1px solid var(--border-hairline);
  padding: 88px 0;
}

.practice-layout {
  display: grid;
  grid-template-columns: minmax(0, 0.88fr) minmax(0, 1.12fr);
  gap: 64px;
  align-items: start;
}

.practice-aside {
  position: sticky;
  top: 96px;
}

.facts-ledger {
  margin: 32px 0 0;
  border-top: 1px solid var(--border-hairline);
}

.facts-row {
  padding: 16px 0;
  border-bottom: 1px solid var(--border-hairline);
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.facts-row dt {
  font-size: var(--text-sm);
  font-weight: 600;
  color: var(--brand-link);
}

.facts-row dd {
  margin: 0;
  font-size: var(--text-body-size);
  font-weight: 600;
  color: var(--text-strong);
}

.practice-list {
  list-style: none;
  padding: 0;
  margin: 0;
  border-top: 1px solid var(--border-hairline);
}

.practice-item {
  display: grid;
  grid-template-columns: 44px minmax(0, 1fr);
  gap: 18px;
  align-items: start;
  padding: 26px 0;
  border-bottom: 1px solid var(--border-hairline);
}

.practice-icon {
  width: 44px;
  height: 44px;
  border-radius: var(--radius-sm);
  background-color: var(--bg-highlight);
  color: var(--brand-step-1);
  display: flex;
  align-items: center;
  justify-content: center;
}

.practice-item h3 {
  font-size: var(--text-body-size);
  font-weight: 700;
  color: var(--text-strong);
}

.practice-item p {
  margin-top: 6px;
  font-size: var(--text-body-size);
  line-height: 1.6;
  color: var(--text-body);
  max-width: 58ch;
}

/* ==========================================================================
   3-WEEK ESCALATED DELIVERY METHOD (20% / 50% / 30%)
   ========================================================================== */
.section-method {
  padding: 88px 0;
  background-color: var(--bg-canvas);
  border-bottom: 1px solid var(--border-hairline);
}

.section-header-narrow {
  max-width: 68ch;
}

.milestones-grid {
  margin-top: 44px;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 28px;
  align-items: stretch;
}

.milestone-step-card {
  background-color: var(--bg-surface);
  border: 1px solid var(--border-hairline);
  border-top: 3px solid var(--brand-step-1);
  border-radius: var(--radius-md);
  padding: 28px;
  display: flex;
  flex-direction: column;
}

.milestone-step-card.step-accent-1 {
  border-top-color: var(--brand-step-1);
}

.milestone-step-card.step-accent-2 {
  border-top-color: var(--brand-step-2);
}

.milestone-step-card.step-accent-3 {
  border-top-color: var(--brand-step-3);
}

.milestone-meta {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  justify-content: space-between;
  gap: 8px;
  padding-bottom: 14px;
  margin-bottom: 18px;
  border-bottom: 1px solid var(--border-hairline);
  font-size: var(--text-sm);
}

.milestone-meta span {
  font-weight: 600;
  color: var(--text-muted);
}

.milestone-meta strong {
  font-weight: 700;
  color: var(--brand-link);
}

.milestone-step-card h3 {
  font-size: var(--text-body-size);
  font-weight: 700;
}

.milestone-step-card p {
  margin-top: 10px;
  font-size: var(--text-body-size);
  color: var(--text-body);
  line-height: 1.6;
}

/* ==========================================================================
   OPERATIONAL ROI CALCULATOR ($ COP)
   ========================================================================== */
.section-roi {
  background-color: var(--bg-surface-alt);
  border-bottom: 1px solid var(--border-hairline);
  padding: 88px 0;
}

.roi-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.95fr);
  gap: 52px;
  align-items: center;
}

.roi-grid > * {
  min-width: 0;
}

.slider-group {
  margin-top: 32px;
  display: flex;
  flex-direction: column;
  gap: 26px;
}

.slider-label-row {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 12px;
  margin-bottom: 10px;
  font-size: var(--text-sm);
}

.slider-label-row label {
  font-weight: 600;
  color: var(--text-strong);
  min-width: 0;
}

.slider-val {
  font-weight: 700;
  color: var(--roi-metric);
  font-size: var(--text-body-size);
  white-space: nowrap;
  flex-shrink: 0;
}

input[type="range"] {
  margin: 0;
  width: 100%;
  accent-color: var(--brand-action);
  height: 8px;
  min-height: 36px;
  cursor: pointer;
  background: transparent;
}

.roi-output {
  background: linear-gradient(150deg, #F4F9FE 0%, #E7F1FA 100%);
  border: 1px solid var(--border-highlight);
  color: var(--text-body);
  border-radius: var(--radius-lg);
  padding: 36px;
  box-shadow: var(--shadow-soft);
}

.roi-output-caption {
  font-size: var(--text-sm);
  font-weight: 600;
  color: var(--text-muted);
}

.roi-figures {
  margin-top: 18px;
  padding-bottom: 22px;
  border-bottom: 1px solid var(--border-highlight);
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 20px;
}

.roi-figure-label {
  display: block;
  font-size: var(--text-sm);
  font-weight: 500;
  color: var(--text-muted);
}

.roi-figure-num {
  display: block;
  margin-top: 4px;
  font-family: var(--font-display);
  font-size: clamp(1.85rem, 3vw, 2.4rem);
  font-weight: 700;
  letter-spacing: -0.025em;
  color: var(--roi-metric);
  line-height: 1.15;
}

.roi-summary {
  margin-top: 20px;
  font-size: var(--text-body-size);
  line-height: 1.6;
  color: var(--text-body);
}

.roi-summary strong {
  color: var(--text-strong);
}

.roi-action-row {
  margin-top: 24px;
}

/* ==========================================================================
   FOUNDING ENGINEERING TEAM
   ========================================================================== */
.section-team {
  padding: 88px 0;
  background-color: var(--bg-canvas);
  border-bottom: 1px solid var(--border-hairline);
}

.founders-grid {
  margin-top: 44px;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 24px;
}

.founder-card {
  background-color: var(--bg-surface);
  border: 1px solid var(--border-hairline);
  border-top: 3px solid var(--brand-step-1);
  border-radius: var(--radius-md);
  padding: 28px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.founder-card.step-accent-1 {
  border-top-color: var(--brand-step-1);
}

.founder-card.step-accent-2 {
  border-top-color: var(--brand-step-2);
}

.founder-card.step-accent-3 {
  border-top-color: var(--brand-step-3);
}

.founder-top {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
}

.founder-identity {
  display: flex;
  align-items: center;
  gap: 12px;
  min-width: 0;
}

.founder-monogram {
  width: 44px;
  height: 44px;
  border-radius: 10px;
  font-family: var(--font-display);
  font-size: var(--text-sm);
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  letter-spacing: 0.02em;
  flex-shrink: 0;
}

.monogram-step-1 {
  background-color: #E4EFFA;
  color: #1D4B76;
  border: 1px solid #C8DDF3;
}

.monogram-step-2 {
  background-color: #EAF4FC;
  color: #235A8C;
  border: 1px solid #CFE3F6;
}

.monogram-step-3 {
  background-color: #F0F7FE;
  color: #2A699E;
  border: 1px solid #D8E9F9;
}

.founder-name {
  font-size: var(--text-body-size);
  font-weight: 700;
  color: var(--text-strong);
}

.founder-exp {
  margin-top: 2px;
  font-size: var(--text-sm);
  color: var(--text-muted);
}

.linkedin-link {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-size: var(--text-sm);
  font-weight: 600;
  color: var(--brand-link);
  text-decoration: none;
  min-height: 44px;
  padding: 6px 4px;
  transition: color 160ms var(--ease-out-expo);
}

.founder-role {
  margin-top: 18px;
  font-size: var(--text-sm);
  font-weight: 600;
  color: var(--brand-link);
}

.founder-bio {
  margin-top: 10px;
  font-size: var(--text-body-size);
  color: var(--text-body);
  line-height: 1.6;
}

.founder-stack {
  margin-top: 22px;
  padding-top: 14px;
  border-top: 1px solid var(--border-hairline);
  font-size: var(--text-sm);
  color: var(--text-muted);
  line-height: 1.5;
}

.founder-stack strong {
  display: block;
  color: var(--text-strong);
  margin-bottom: 3px;
}

.governance-bar {
  margin-top: 32px;
  border-top: 1px solid var(--border-strong);
  padding-top: 28px;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 28px;
}

.governance-bar h3 {
  font-size: var(--text-body-size);
  font-weight: 700;
  color: var(--text-strong);
}

.governance-bar p {
  margin-top: 6px;
  font-size: var(--text-body-size);
  color: var(--text-body);
  line-height: 1.58;
}

/* ==========================================================================
   B2B FAQ SECTION
   ========================================================================== */
.section-faq {
  padding: 84px 0;
  background-color: var(--bg-surface-alt);
  border-bottom: 1px solid var(--border-hairline);
}

.faq-grid {
  display: grid;
  grid-template-columns: minmax(0, 0.85fr) minmax(0, 1.15fr);
  gap: 48px;
  align-items: start;
}

.faq-grid > * {
  min-width: 0;
}

.faq-list {
  border-top: 1px solid var(--border-hairline);
}

.faq-item {
  border-bottom: 1px solid var(--border-hairline);
}

.faq-item summary {
  list-style: none;
  cursor: pointer;
  min-height: 56px;
  padding: 18px 4px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  font-family: var(--font-display);
  font-size: var(--text-body-size);
  font-weight: 700;
  color: var(--text-strong);
  transition: color 160ms var(--ease-out-expo);
}

.faq-item summary::-webkit-details-marker {
  display: none;
}

.faq-chevron {
  transition: transform 200ms var(--ease-out-expo);
  color: var(--brand-action);
}

.faq-item[open] .faq-chevron {
  transform: rotate(180deg);
}

.faq-answer {
  padding: 0 4px 20px;
}

.faq-answer p {
  font-size: var(--text-body-size);
  line-height: 1.62;
  color: var(--text-body);
  max-width: 62ch;
}

/* ==========================================================================
   CLOSING CTA SECTION
   ========================================================================== */
.section-cta {
  background: linear-gradient(180deg, #F7FAFE 0%, #EAF2FB 100%);
  border-bottom: 1px solid var(--border-hairline);
  color: var(--text-body);
  padding: 88px 0;
}

.cta-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.12fr) minmax(0, 0.92fr);
  gap: 48px;
  align-items: center;
}

.cta-grid > * {
  min-width: 0;
}

.cta-title {
  color: var(--text-strong);
  font-size: var(--text-heading);
  font-weight: 700;
  letter-spacing: -0.025em;
  line-height: 1.15;
}

.cta-desc {
  margin-top: 16px;
  font-size: var(--text-body-size);
  color: var(--text-body);
  max-width: 56ch;
}

.cta-chips-label {
  margin-top: 24px;
  font-size: var(--text-sm);
  font-weight: 600;
  color: var(--text-strong);
}

.case-selector {
  margin-top: 10px;
  display: inline-grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1px;
  background-color: var(--border-strong);
  border: 1px solid var(--border-strong);
  border-radius: var(--radius-sm);
  overflow: hidden;
  width: 100%;
  max-width: 520px;
}

.case-option {
  min-height: 44px;
  padding: 10px 14px;
  border: none;
  background-color: var(--bg-surface);
  color: var(--text-strong);
  font-family: var(--font-sans);
  font-size: var(--text-sm);
  font-weight: 600;
  cursor: pointer;
  white-space: normal;
  text-align: left;
  transition: background-color 160ms var(--ease-out-expo), color 160ms var(--ease-out-expo);
}

.case-option[aria-checked="true"] {
  background-color: var(--pill-sky-bg);
  color: var(--pill-sky-text);
  box-shadow: inset 3px 0 0 var(--brand-action);
}

.cta-box {
  background-color: var(--bg-surface);
  border: 1px solid var(--border-highlight);
  border-radius: var(--radius-lg);
  padding: 30px;
  box-shadow: var(--shadow-soft);
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.cta-box label {
  font-size: var(--text-sm);
  font-weight: 600;
  color: var(--text-strong);
  display: block;
}

.cta-input {
  margin-top: 8px;
  width: 100%;
  min-height: 46px;
  background-color: var(--bg-surface-alt);
  border: 1px solid var(--border-strong);
  border-radius: var(--radius-sm);
  padding: 11px 14px;
  font-family: var(--font-sans);
  font-size: var(--text-body-size);
  color: var(--text-strong);
  transition: border-color 160ms var(--ease-out-expo), background-color 160ms var(--ease-out-expo);
}

.cta-input::placeholder {
  color: var(--text-muted);
}

.cta-input:focus {
  outline: none;
  background-color: var(--bg-surface);
  border-color: var(--brand-action);
}

.cta-secondary-links {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 8px 12px;
}

.text-action-btn {
  border: none;
  background: transparent;
  padding: 8px 4px;
  min-height: 44px;
  font-family: var(--font-sans);
  font-size: var(--text-sm);
  font-weight: 600;
  color: var(--brand-link);
  text-decoration: underline;
  text-underline-offset: 3px;
  cursor: pointer;
  transition: color 160ms var(--ease-out-expo);
}

.cta-sep {
  color: var(--border-strong);
}

.cta-note {
  font-size: var(--text-sm);
  color: var(--text-muted);
  text-align: center;
  line-height: 1.5;
}

/* ==========================================================================
   FOOTER & 404 PAGE
   ========================================================================== */
.site-footer {
  background-color: var(--bg-canvas);
  padding: 36px 0 96px;
  font-size: var(--text-sm);
  color: var(--text-muted);
}

.footer-inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.footer-brand {
  display: flex;
  align-items: center;
  gap: 10px;
}

.footer-brand strong {
  color: var(--text-strong);
}

.footer-contact {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 14px;
}

.footer-action-link {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  padding: 6px 4px;
  color: var(--brand-link);
  font-family: var(--font-sans);
  font-size: var(--text-sm);
  font-weight: 600;
  text-decoration: underline;
  text-underline-offset: 3px;
  cursor: pointer;
}

.page-404 {
  min-height: calc(100vh - 154px);
  display: flex;
  align-items: center;
  padding: 96px 0 64px;
  background: linear-gradient(180deg, #F5F9FE 0%, #FFFFFF 100%);
}

.card-404 {
  max-width: 580px;
  background-color: var(--bg-surface);
  border: 1px solid var(--border-highlight);
  border-radius: var(--radius-lg);
  padding: 36px;
  box-shadow: var(--shadow-soft);
}

.code-404 {
  font-size: var(--text-sm);
  font-weight: 600;
  color: var(--brand-link);
  margin-bottom: 10px;
}

.card-404 h1 {
  font-size: var(--text-heading);
  font-weight: 700;
  line-height: 1.15;
}

.card-404 p {
  margin-top: 14px;
  color: var(--text-body);
  font-size: var(--text-body-size);
}

.actions-404 {
  margin-top: 24px;
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

/* ==========================================================================
   TRINO MASCOT FULL-VIEWPORT SVG STAGE — 100% CSP-SAFE (no inline styles)
   ========================================================================== */
.trino-layer {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100vh;
  height: 100lvh;
  z-index: 36;
  pointer-events: none;
  overflow: hidden;
  contain: strict;
  transform: translateZ(0);
  backface-visibility: hidden;
}

.trino-stage {
  display: block;
  width: 100%;
  height: 100%;
  overflow: hidden;
  pointer-events: none;
}

.trino-actor {
  pointer-events: none;
  outline: none;
}

.trino-hit-area {
  pointer-events: auto;
  cursor: pointer;
}

.trino-actor:focus-visible .trino-hit-area {
  stroke: var(--brand-action);
  stroke-width: 2.5;
  stroke-dasharray: 4 3;
}

.trino-mouth-wow {
  display: none;
}

.trino-actor.is-surprised .trino-mouth-smile {
  display: none;
}

.trino-actor.is-surprised .trino-mouth-wow {
  display: block;
}

.trino-actor.is-offscreen,
.trino-actor.is-intro-hidden {
  opacity: 0;
  pointer-events: none;
}

.trino-actor.is-intro-hidden .trino-hit-area {
  pointer-events: none;
}

/* ==========================================================================
   HOVER & REDUCED MOTION MEDIA QUERIES
   ========================================================================== */
@media (hover: hover) {
  ::-webkit-scrollbar-thumb:hover {
    background: var(--brand-step-2);
  }
  .brand-link:hover .brand-mark svg .lift-1 {
    transform: translateY(-1.5px);
  }
  .brand-link:hover .brand-mark svg .lift-2 {
    transform: translateY(-3.5px);
  }
  .brand-link:hover .brand-mark svg .lift-3 {
    transform: translateY(-5.5px);
  }
  .main-nav a:hover,
  .mobile-nav-link:hover {
    color: var(--brand-action);
    background-color: var(--bg-subtle);
  }
  .nav-toggle:hover {
    border-color: var(--brand-action);
    background-color: var(--pill-sky-bg);
  }
  .btn-primary:hover {
    background-color: var(--brand-action-hover);
  }
  .nav-pill-cta:hover {
    background-color: var(--brand-action);
    border-color: var(--brand-action);
  }
  .intro-scroll-cue:hover {
    transform: translateY(2px);
    background-color: #FFFFFF;
    border-color: var(--brand-action);
  }
  .hero-pill-btn:hover {
    background-color: var(--brand-action-hover);
  }
  .hero-index-item:hover {
    background-color: #EBF3FB;
  }
  .btn-secondary:hover {
    background-color: var(--bg-subtle);
    border-color: var(--brand-action);
  }
  .demo-tab:hover {
    color: var(--text-strong);
  }
  .doc-row:hover {
    border-color: var(--brand-action);
  }
  .demo-choice-seg:hover {
    color: var(--text-strong);
  }
  .demo-choice-seg[aria-checked="true"]:hover {
    color: #FFFFFF;
  }
  .linkedin-link:hover,
  .text-action-btn:hover,
  .footer-action-link:hover {
    color: var(--brand-action-hover);
  }
  .faq-item summary:hover {
    color: var(--brand-action);
  }
  .case-option:hover {
    background-color: var(--bg-surface-alt);
  }
  .case-option[aria-checked="true"]:hover {
    background-color: var(--pill-sky-bg);
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
  *, *::before, *::after {
    transition-duration: 0.01ms !important;
    animation-duration: 0.01ms !important;
  }
  .js-reveal-ready .reveal-section {
    opacity: 1;
    transform: none;
  }
}

/* ==========================================================================
   RESPONSIVE ADAPTATION (980px, 767px, 640px, 375px, 320px)
   ========================================================================== */
@media (hover: none), (max-width: 980px) {
  .mobile-drawer {
    background-color: rgba(255, 255, 255, 0.99);
  }
}

@media (max-width: 980px) {
  .main-nav {
    display: none;
  }
  .nav-toggle {
    display: inline-flex;
  }
  .hero-iso-grid {
    grid-template-columns: minmax(0, 1fr);
    gap: 12px;
  }
  .hero-iso-copy {
    padding-bottom: 8px;
  }
  .hero-iso-stage {
    margin-right: 0;
  }
  .trinovai-campus-svg {
    max-width: 540px;
  }
  .hero-index-strip {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
  .practice-layout,
  .demo-split,
  .roi-grid,
  .faq-grid,
  .cta-grid {
    grid-template-columns: minmax(0, 1fr);
    gap: 32px;
  }
  .practice-aside {
    position: static;
  }
  .demo-outcome-panel {
    border-left: none;
    border-top: 1px solid var(--border-highlight);
    padding: 20px 0 0;
  }
  .milestones-grid,
  .founders-grid,
  .governance-bar {
    grid-template-columns: minmax(0, 1fr);
  }
}

@media (max-width: 768px) {
  :root {
    --shadow-workbench: 0 8px 20px -10px rgba(16, 35, 54, 0.10);
    --shadow-soft: 0 4px 12px -6px rgba(16, 35, 54, 0.08);
  }
}

@media (max-width: 767px) {
  .intro-brand-mark {
    width: 40px;
    height: 40px;
  }
  .intro-brand-mark svg {
    width: 40px;
    height: 40px;
  }
  .intro-vision-text {
    font-size: 0.975rem;
  }
  .hero-isometric {
    padding-top: 94px;
  }
  .hero-title {
    font-size: clamp(2.15rem, 8.6vw, 3.1rem);
    max-width: 14ch;
  }
  .hero-lead {
    font-size: 1rem;
    max-width: 38ch;
  }
  .hero-pill-bar {
    border-radius: 18px;
    padding: 12px 14px;
    gap: 10px;
  }
  .hero-pill-divider,
  .hero-pill-delivery {
    display: none;
  }
}

@media (max-width: 640px) {
  .container {
    padding-inline: 16px;
  }
  .site-header {
    padding: 10px 12px 0;
  }
  .header-pill {
    min-height: 54px;
    padding: 6px 8px 6px 14px;
    gap: 8px;
  }
  .mobile-drawer-inner {
    padding: 12px 16px 18px;
  }
  .header-actions .btn-sm {
    padding: 9px 12px;
  }
  .hero-stats-row {
    gap: 16px 24px;
  }
  .hero-stat-item dt {
    font-size: 1.25rem;
  }
  .hero-index-strip {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 8px;
    padding: 14px 0 18px;
  }
  .demo-window-dots,
  .demo-url {
    display: none;
  }
  .section-workbench,
  .section-practice,
  .section-method,
  .section-roi,
  .section-team,
  .section-faq,
  .section-cta {
    padding: 56px 0;
  }
  .milestone-step-card,
  .founder-card,
  .cta-box,
  .roi-output {
    padding: 22px;
  }
  .segmented-control {
    width: 100%;
    display: grid;
    grid-template-columns: minmax(0, 1fr);
  }
  .seg-btn {
    width: 100%;
    padding: 10px 12px;
  }
  .demo-topbar {
    padding: 12px 14px;
  }
  .demo-tabs {
    width: 100%;
    flex-wrap: wrap;
    gap: 8px;
  }
  .demo-tab {
    flex: 1 1 100%;
    border: 1px solid var(--border-hairline);
    border-radius: var(--radius-sm);
    background-color: var(--bg-surface);
    padding: 10px 12px;
  }
  .demo-tab[aria-selected="true"] {
    background-color: var(--pill-sky-bg);
    border-color: var(--brand-action);
    border-bottom-color: var(--brand-action);
    color: var(--pill-sky-text);
  }
  .demo-body {
    padding: 18px 14px;
  }
  .demo-choice-group {
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    width: 100%;
  }
  .metric-pair {
    grid-template-columns: minmax(0, 1fr);
  }
  .slider-label-row {
    flex-wrap: wrap;
  }
  .roi-figures {
    grid-template-columns: minmax(0, 1fr);
    gap: 16px;
  }
  .case-selector {
    grid-template-columns: minmax(0, 1fr);
  }

  /* Transform Screen 2 tables into clean mobile cards */
  .table-wrap {
    border-top: none;
    overflow-x: visible;
  }
  .data-table,
  .data-table thead,
  .data-table tbody,
  .data-table th,
  .data-table td,
  .data-table tr {
    display: block;
    width: 100%;
  }
  .data-table thead {
    position: absolute;
    width: 1px;
    height: 1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
  }
  .data-table tr {
    background-color: var(--bg-surface-alt);
    border: 1px solid var(--border-hairline);
    border-radius: var(--radius-sm);
    padding: 10px 14px;
    margin-bottom: 10px;
  }
  .data-table tr:last-child {
    margin-bottom: 0;
  }
  .data-table td {
    background-color: transparent;
    border-bottom: 1px solid var(--border-hairline);
    padding: 8px 0;
    display: flex;
    flex-direction: column;
    gap: 2px;
    white-space: normal;
  }
  .data-table td:last-child {
    border-bottom: none;
    padding-bottom: 2px;
  }
  .data-table td::before {
    content: attr(data-label);
    font-family: var(--font-sans);
    font-size: var(--text-sm);
    font-weight: 600;
    color: var(--text-muted);
  }
}

@media (max-width: 400px) {
  .wa-label-full {
    display: none;
  }
  .wa-label-short {
    display: inline;
  }
}

@media (max-width: 360px) {
  .container {
    padding-inline: 12px;
  }
  .mobile-drawer-inner {
    padding: 12px 12px 18px;
  }
  .brand-link {
    gap: 7px;
  }
  .brand-mark {
    width: 28px;
    height: 28px;
  }
  .brand-mark svg {
    width: 28px;
    height: 28px;
  }
  .brand-wordmark {
    font-size: 1.1rem;
  }
  .header-actions {
    gap: 6px;
  }
  .header-actions .btn-sm {
    padding: 8px 11px;
  }
  .hero-title {
    font-size: 1.98rem;
  }
  .hero-index-item {
    padding: 6px 4px;
  }
  .hero-index-label {
    font-size: 0.8125rem;
  }
}

/* ==========================================================================
   ANTI-SPAM HONEYPOT, LEY 1581 CONSENT & FORM FEEDBACK
   ========================================================================== */
.hp-field {
  opacity: 0;
  pointer-events: none;
  position: absolute;
  left: -9999px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

.consent-check-row {
  display: flex !important;
  align-items: flex-start;
  gap: 10px;
  padding: 10px 12px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border-hairline);
  background-color: var(--bg-surface-alt);
  font-size: 0.8125rem !important;
  font-weight: 400 !important;
  line-height: 1.48;
  color: var(--text-body) !important;
  cursor: pointer;
  transition: border-color 160ms var(--ease-out-expo), background-color 160ms var(--ease-out-expo);
}

.consent-check-row input[type="checkbox"] {
  margin: 3px 0 0;
  width: 18px;
  height: 18px;
  min-width: 18px;
  accent-color: var(--brand-action);
  cursor: pointer;
}

.consent-check-row a {
  color: var(--brand-link);
  font-weight: 600;
  text-decoration: underline;
  text-underline-offset: 2px;
}

.consent-check-row.has-error {
  border-color: var(--status-warn-border);
  background-color: var(--status-warn-bg);
  color: var(--status-warn-text) !important;
}

.form-feedback {
  margin: 0;
  padding: 8px 12px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--status-warn-border);
  background-color: var(--status-warn-bg);
  color: var(--status-warn-text);
  font-size: 0.8125rem;
  font-weight: 600;
  line-height: 1.4;
}

.form-feedback[hidden] {
  display: none;
}

/* ==========================================================================
   FOOTER LEGAL NAV & NON-INTRUSIVE PRIVACY TOAST
   ========================================================================== */
.footer-legal-nav {
  display: inline-flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px;
}

.footer-legal-link {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  padding: 6px 2px;
  color: var(--text-muted);
  font-size: var(--text-sm);
  font-weight: 500;
  text-decoration: underline;
  text-underline-offset: 3px;
  transition: color 160ms var(--ease-out-expo);
}

.btn-xs {
  min-height: 36px;
  padding: 6px 12px;
  font-size: 0.8125rem;
  border-radius: 6px;
  flex-shrink: 0;
}

.privacy-toast {
  position: fixed;
  left: 18px;
  bottom: 18px;
  z-index: 38;
  max-width: 400px;
  width: calc(100vw - 36px);
  padding: 12px 14px;
  border-radius: var(--radius-md);
  background-color: #FFFFFF;
  border: 1px solid #C9DFF4;
  box-shadow: 0 12px 28px -12px rgba(16, 35, 54, 0.16), 0 2px 6px -1px rgba(16, 35, 54, 0.06);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.privacy-toast[hidden] {
  display: none;
}

.privacy-toast-copy {
  margin: 0;
  font-size: 0.8125rem;
  line-height: 1.45;
  color: var(--text-body);
}

.privacy-toast-copy a {
  color: var(--brand-link);
  font-weight: 600;
  text-decoration: underline;
  text-underline-offset: 2px;
  white-space: nowrap;
}

@media (hover: hover) {
  .footer-legal-link:hover {
    color: var(--brand-action);
  }
  .consent-check-row a:hover,
  .privacy-toast-copy a:hover {
    color: var(--brand-action-hover);
  }
}

@media (max-width: 640px) {
  .privacy-toast {
    left: 12px;
    bottom: 12px;
    width: calc(100vw - 24px);
    flex-direction: column;
    align-items: flex-start;
  }
  .privacy-toast .btn-xs {
    align-self: flex-end;
  }
}

/* ==========================================================================
   EXECUTIVE PRINT / PDF STYLESHEET
   ========================================================================== */
@media print {
  @page {
    margin: 14mm;
  }
  html,
  body {
    background-color: #FFFFFF !important;
    color: #102336 !important;
  }
  .site-header,
  .trino-layer,
  .privacy-toast,
  .intro-scroll-cue,
  .nav-toggle,
  .mobile-drawer,
  .hp-field {
    display: none !important;
  }
  .intro-vision {
    min-height: auto;
    padding: 20px 0 24px;
    background-color: #FFFFFF;
    border-bottom: 1px solid #C9DFF4;
    grid-template-rows: auto auto;
    page-break-after: avoid;
  }
  .intro-spacer {
    display: none;
  }
  .intro-vision-footer {
    padding-bottom: 0;
  }
  .hero-isometric {
    padding-top: 24px;
    background-color: #FFFFFF;
  }
  .js-reveal-ready .reveal-section {
    opacity: 1 !important;
    transform: none !important;
  }
  .section-workbench,
  .section-practice,
  .section-method,
  .section-roi,
  .section-team,
  .section-faq,
  .section-cta {
    padding: 28px 0;
    background: #FFFFFF !important;
    box-shadow: none !important;
  }
  .demo-frame,
  .milestone-step-card,
  .founder-card,
  .roi-output,
  .cta-box {
    box-shadow: none !important;
    break-inside: avoid;
  }
  .practice-aside {
    position: static;
  }
  .site-footer {
    padding: 20px 0 0;
    border-top: 1px solid #C9DFF4;
  }
}
