@import url('https://fonts.googleapis.com/css2?family=Ubuntu:wght@300;400;500;700&family=Anek+Latin:wght@300;400;500;600;700&family=Inter:wght@200;300;400;500;600;700&display=swap');

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { font-size: 125%; scroll-behavior: smooth; }

:root {
  /* Transend color palette */
  --bg:        #09090b;
  --bg-alt:    #18181b;
  --bg-card:   #1c1c1f;
  --border:    rgba(45,212,191,0.12);
  --text:      #fafafa;
  --text-muted: rgba(250,250,250,0.58);
  --text-dim:   rgba(250,250,250,0.32);
  --nav-bg:     rgba(9,9,11,0.92);
  --hero-pattern: radial-gradient(ellipse 80% 60% at 50% -10%, rgba(251,191,36,0.09) 0%, rgba(45,212,191,0.05) 60%, transparent 78%);
  --accent:     #2dd4bf;
  --accent-dim: rgba(45,212,191,0.10);
  --accent-mid: rgba(45,212,191,0.20);
  --accent2:    #fbbf24;
  --accent2-dim: rgba(251,191,36,0.10);
  --accent2-mid: rgba(251,191,36,0.22);

  --display-font: 'Ubuntu', sans-serif;

  /* Type scale */
  --text-size-80:  0.694rem;
  --text-size-90:  0.833rem;
  --text-size-100: 1rem;
  --text-size-200: 1.2rem;
  --text-size-300: 1.44rem;
  --text-size-400: 1.728rem;
  --text-size-500: 2.074rem;
  --text-size-600: 2.488rem;
  --text-size-700: 2.986rem;
}

body {
  font-family: 'Inter', sans-serif;
  font-weight: 300;
  background: var(--bg);
  color: var(--text);
  line-height: 1.45;
  overflow-x: hidden;
  transition: background 0.3s, color 0.3s;
}

/* Display font applies to headings + eyebrow labels */
h1, h2, h3, h4, h5, h6 {
  font-family: var(--display-font);
  font-weight: 500;
  line-height: 1.15;
  letter-spacing: -0.018em;
}
h1 { font-size: var(--text-size-700); }
h2 { font-size: var(--text-size-500); }
h3 { font-size: var(--text-size-300); }
p { margin-top: 1rem; margin-bottom: 1rem; }

/* Error banner (Jinja2 server-side error display) */
.error-banner {
  background: #fef2f2;
  border-bottom: 1px solid #fecaca;
  padding: 12px 24px;
  text-align: center;
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 200;
}
.error-banner p {
  color: #991b1b;
  font-size: 0.875rem;
  font-weight: 500;
  margin: 0;
}
body.has-error-banner nav { top: 45px; }
body.has-error-banner .hero { padding-top: calc(120px + 45px); }

/* -- NAV -- */
nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 160;
  background: var(--nav-bg);
  backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--border);
  padding: 0 5vw;
  display: flex; align-items: center; justify-content: space-between;
}
.nav-logo { display: flex; align-items: center; gap: 10px; padding: 20px 0; }
.nav-wordmark {
  font-family: var(--display-font);
  font-size: 42px; font-weight: 500;
  letter-spacing: -0.04em; color: var(--text); line-height: 1;
}

.nav-links {
  display: flex; align-items: center; gap: 2px;
}
.nav-link {
  font-family: 'Inter', sans-serif; font-size: 14px; font-weight: 500;
  color: var(--text-muted); text-decoration: none;
  padding: 8px 14px; border-radius: 6px;
  transition: color 0.15s, background 0.15s;
}
.nav-link:hover { color: var(--text); background: rgba(255,255,255,0.04); }

.nav-right { display: flex; align-items: center; gap: 12px; }

.nav-cta {
  background: var(--accent2); color: #09090b;
  font-family: 'Inter', sans-serif; font-size: 14px; font-weight: 600;
  padding: 12px 28px; border-radius: 8px;
  border: none; cursor: pointer;
  transition: opacity 0.2s, transform 0.15s;
}
.nav-cta:hover { opacity: 0.88; transform: translateY(-1px); }

/* Hamburger */
.nav-hamburger {
  display: none;
  background: none; border: 1px solid var(--border);
  border-radius: 8px; padding: 8px 10px;
  cursor: pointer; color: var(--text-muted);
  transition: color 0.15s, border-color 0.15s;
}
.nav-hamburger:hover { color: var(--text); border-color: var(--accent-mid); }
.nav-hamburger .bar {
  display: block; width: 18px; height: 1.5px;
  background: currentColor; border-radius: 2px;
  transition: all 0.22s ease;
}
.nav-hamburger .bar + .bar { margin-top: 4px; }
.nav-hamburger.open .bar:nth-child(1) { transform: translateY(5.5px) rotate(45deg); }
.nav-hamburger.open .bar:nth-child(2) { opacity: 0; transform: scaleX(0); }
.nav-hamburger.open .bar:nth-child(3) { transform: translateY(-5.5px) rotate(-45deg); }

/* Mobile dropdown */
#nav-mobile-menu {
  display: none;
  position: fixed; top: 80px; left: 0; right: 0; z-index: 165;
  background: var(--nav-bg); backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--border);
  padding: 0 20px 16px;
  flex-direction: column; gap: 2px;
}
#nav-mobile-menu.open { display: flex; }
#nav-mobile-menu .nav-link {
  padding: 12px 14px; font-size: 15px;
  color: var(--text) !important;
  border-bottom: 1px solid var(--accent-mid);
  border-radius: 0;
}
#nav-mobile-menu .nav-link:last-of-type { border-bottom: none; }
#nav-mobile-menu .nav-cta {
  margin-top: 10px; width: 100%; text-align: center;
}

section { padding: 100px 5vw; }
.container { max-width: 1100px; margin: 0 auto; }

/* -- HERO -- */
.hero {
  min-height: 100vh; display: flex; align-items: center;
  padding-top: 120px; background: var(--bg);
  position: relative; overflow: hidden;
}
.hero::before {
  content: ''; position: absolute; inset: 0;
  background: var(--hero-pattern); pointer-events: none;
}
.hero::after {
  content: ''; position: absolute; inset: 0;
  background-image: linear-gradient(var(--border) 1px, transparent 1px),
                    linear-gradient(90deg, var(--border) 1px, transparent 1px);
  background-size: 64px 64px; opacity: 0.35; pointer-events: none;
}
.hero .container {
  position: relative; z-index: 1;
  display: grid; grid-template-columns: 1fr 1fr;
  gap: 80px; align-items: center;
}

.hero-eyebrow {
  font-family: var(--display-font); font-size: 14px; font-weight: 500;
  letter-spacing: 0.22em; text-transform: uppercase; color: var(--accent2);
  margin-bottom: 20px; display: flex; align-items: center; gap: 10px;
}
.hero-eyebrow::before { display: none; }

.hero h1 {
  font-family: var(--display-font);
  font-size: var(--text-size-700); font-weight: 500;
  line-height: 1.1; letter-spacing: -0.02em;
  color: var(--text); text-wrap: balance; margin-bottom: 22px;
}
.hero h1 em { font-style: normal; color: var(--accent2); }
.em-teal { font-style: normal; color: var(--accent) !important; }

.hero-sub {
  font-family: 'Inter', sans-serif;
  font-size: 19px; font-weight: 300;
  color: var(--text-muted); line-height: 1.45;
  margin-bottom: 40px; max-width: 460px;
}
.hero-ctas { display: flex; gap: 14px; align-items: center; flex-wrap: wrap; }

.btn-primary {
  background: var(--accent2); color: #09090b;
  font-family: 'Inter', sans-serif; font-size: 14px; font-weight: 600;
  padding: 12px 28px; border-radius: 8px; border: none; cursor: pointer;
  text-decoration: none; display: inline-block;
  transition: opacity 0.2s, transform 0.15s, box-shadow 0.2s;
  box-shadow: 0 4px 20px rgba(251,191,36,0.18);
}
.btn-primary:hover { opacity: 0.88; transform: translateY(-2px); box-shadow: 0 8px 28px rgba(45,212,191,0.3); }

.btn-ghost {
  font-family: 'Inter', sans-serif;
  color: var(--accent); font-size: 14px; font-weight: 600;
  text-decoration: none; display: flex; align-items: center; gap: 6px;
  border-radius: 8px; padding: 12px 28px;
  transition: color 0.2s;
  background: none; border: none; cursor: pointer;
}
.btn-ghost:hover { color: var(--text); }
.btn-ghost svg { transition: transform 0.2s; }
.btn-ghost:hover svg { transform: translateX(3px); }

/* Hero mockup card */
.hero-visual { position: relative; }
.hero-card {
  background: var(--bg-card); border: 1px solid var(--border);
  border-radius: 8px; overflow: hidden;
  box-shadow: 0 24px 64px rgba(0,0,0,0.5), 0 4px 16px rgba(0,0,0,0.3);
}
.hero-card-header {
  background: var(--bg-alt); border-bottom: 1px solid var(--border);
  padding: 12px 18px; display: flex; align-items: center; gap: 8px;
}
.dot { width: 10px; height: 10px; border-radius: 50%; }
.d1 { background: #FF5F57; } .d2 { background: #FEBC2E; } .d3 { background: #28C840; }
.card-title {
  margin-left: 6px; font-size: 12px; font-weight: 500;
  color: var(--text-dim); font-family: 'Inter', monospace;
}
.hero-card-body { padding: 20px; }

.quote-row {
  display: flex; align-items: center; justify-content: space-between;
  padding: 10px 12px; border-radius: 6px; margin-bottom: 7px; font-size: 13px;
}
.quote-row.auto { background: var(--accent2-dim); border: 1px solid var(--accent2-mid); }
.quote-row.sent-row { background: rgba(40,200,120,0.07); border: 1px solid rgba(40,200,120,0.18); }

.quote-label { font-weight: 600; color: var(--text); font-family: var(--display-font); font-size: 12px; }
.quote-sub { color: var(--text-dim); font-size: 11px; margin-top: 2px; font-family: 'Inter', sans-serif; }
.qs-auto { font-size: 11px; font-weight: 600; letter-spacing: 0.06em; text-transform: uppercase; color: var(--accent); font-family: monospace; }
.qs-sent { font-size: 11px; font-weight: 600; letter-spacing: 0.06em; text-transform: uppercase; color: #34d399; font-family: monospace; }

.time-bar {
  margin: 14px 0 8px;
  background: var(--bg-alt); border: 1px solid var(--border);
  border-radius: 7px; padding: 14px 16px;
}
.time-bar-label { font-size: 10px; color: var(--text-dim); text-transform: uppercase; letter-spacing: 0.1em; margin-bottom: 10px; font-weight: 600; font-family: monospace; }
.time-bar-track { height: 5px; background: rgba(255,255,255,0.08); border-radius: 99px; margin-bottom: 6px; overflow: hidden; }
.time-bar-fill-old { height: 100%; background: var(--text-dim); border-radius: 99px; width: 100%; }
.time-bar-fill-new { height: 100%; background: var(--accent); border-radius: 99px; width: 18%; }

.stat-row { display: grid; grid-template-columns: 1fr 1fr 1fr; gap: 8px; margin-top: 12px; }
.stat-box { background: var(--bg-alt); border: 1px solid var(--border); border-radius: 6px; padding: 10px; text-align: center; }
.stat-num { font-family: var(--display-font); font-size: 20px; font-weight: 600; color: var(--text); }
.stat-num span { color: var(--accent2); }
.stat-label { font-size: 9px; color: var(--text-dim); text-transform: uppercase; letter-spacing: 0.1em; margin-top: 2px; font-family: monospace; }

.transend-tag {
  position: absolute; top: -13px; right: 22px;
  background: var(--accent); color: #09090b;
  font-family: var(--display-font); font-size: 10px; font-weight: 600;
  letter-spacing: 0.12em; text-transform: uppercase;
  padding: 4px 11px; border-radius: 4px;
  box-shadow: 0 3px 12px rgba(45,212,191,0.3);
}
.live-dot {
  width: 6px; height: 6px; border-radius: 50%; background: #34d399;
  display: inline-block; margin-right: 5px;
  animation: pulse-dot 2s infinite;
}

/* -- SECTION SHARED -- */
.section-eyebrow {
  font-family: var(--display-font); font-size: 14px; font-weight: 500;
  letter-spacing: 0.22em; text-transform: uppercase; color: var(--accent2);
  margin-bottom: 14px; display: flex; align-items: center; gap: 10px;
}
.section-eyebrow::before { display: none; }

.section-h2 {
  font-family: var(--display-font);
  font-size: var(--text-size-500); font-weight: 500;
  line-height: 1.15; letter-spacing: -0.018em;
  color: var(--text); text-wrap: balance; margin-bottom: 14px;
}
.section-lead {
  font-family: 'Inter', sans-serif;
  font-size: 19px; color: var(--text-muted);
  max-width: 560px; line-height: 1.45; margin-bottom: 52px;
}

/* -- PAIN -- */
.pain-section {
  background: var(--bg-alt);
  border-top: 1px solid var(--border); border-bottom: 1px solid var(--border);
}
.pain-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.pain-card {
  background: var(--bg-card); border: 1px solid var(--border);
  border-radius: 8px; padding: 28px; position: relative; overflow: hidden;
  transition: border-color 0.2s, box-shadow 0.2s;
}
.pain-card:hover { border-color: var(--accent-mid); box-shadow: 0 4px 24px rgba(45,212,191,0.07); }
.pain-card::before {
  content: ''; position: absolute; top: 0; left: 0; right: 0;
  height: 3px; background: var(--accent); opacity: 0.5;
}
.pain-icon {
  width: 44px; height: 44px; background: var(--accent2-dim);
  border: 1px solid var(--accent2-mid); border-radius: 8px;
  display: flex; align-items: center; justify-content: center;
  margin-bottom: 16px; color: var(--accent2);
}
.pain-card h3 {
  font-family: var(--display-font); font-size: var(--text-size-300); font-weight: 500;
  color: var(--text); margin-bottom: 10px;
}
.pain-card p { font-family: 'Inter', sans-serif; font-size: 18px; color: var(--text-muted); line-height: 1.45; }

/* -- WHY TRANSEND -- */
.why-section { background: var(--bg); }
.why-inner { display: grid; grid-template-columns: 1fr 1fr; gap: 80px; align-items: center; }

.why-headline {
  font-family: var(--display-font);
  font-size: var(--text-size-400); font-weight: 500;
  line-height: 1.25; color: var(--text);
  letter-spacing: -0.015em; text-wrap: balance; margin-bottom: 18px;
}
.why-headline em { font-style: normal; color: var(--accent); }

.why-body {
  font-family: 'Inter', sans-serif;
  font-size: 18px; color: var(--text-muted); line-height: 1.45;
  margin-bottom: 28px;
}
.trust-pills { display: flex; gap: 8px; flex-wrap: wrap; }
.trust-pill {
  background: var(--bg-card); border: 1px solid var(--border);
  border-radius: 100px; padding: 5px 13px;
  font-family: 'Inter', sans-serif; font-size: 14px; font-weight: 500;
  color: var(--text-muted);
  display: flex; align-items: center; gap: 6px;
}
.trust-pill svg { color: var(--accent2); }

.why-visual {
  background: var(--bg-card); border: 1px solid var(--border);
  border-radius: 8px; padding: 30px;
  box-shadow: 0 4px 32px rgba(0,0,0,0.3);
}
.big-stat-num {
  font-family: var(--display-font); font-size: 68px; font-weight: 500;
  line-height: 1; color: var(--accent); letter-spacing: -0.04em; margin-bottom: 6px;
}
.big-stat-label { font-family: 'Inter', sans-serif; font-size: 16px; color: var(--text-muted); margin-bottom: 26px; max-width: 240px; line-height: 1.4; }

.mini-stats { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.mini-stat {
  background: var(--bg-alt); border: 1px solid var(--border);
  border-radius: 8px; padding: 13px;
}
.mini-stat-num {
  font-family: var(--display-font); font-size: 26px; font-weight: 500;
  color: var(--text); letter-spacing: -0.02em;
}
.mini-stat-num span { color: var(--accent2); font-size: 22px; }
.mini-stat-label { font-family: 'Inter', sans-serif; font-size: 15px; color: var(--text-muted); margin-top: 3px; }

/* -- HOW IT WORKS -- */
.how-section {
  background: var(--bg-alt);
  border-top: 1px solid var(--border); border-bottom: 1px solid var(--border);
  scroll-margin-top: 80px;
}
.how-header { text-align: center; margin-bottom: 52px; }
.how-header .section-eyebrow { justify-content: center; }
.how-header .section-eyebrow::before { display: none; }
.how-header .section-h2 { margin: 0 auto 14px; }
.how-header .section-lead { margin: 0 auto; text-align: center; }

.steps-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; }
.step {
  background: var(--bg-card); padding: 28px;
  position: relative; overflow: hidden;
  border-radius: 8px; border: 1px solid var(--border);
  transition: border-color 0.2s;
}
.step:hover { border-color: var(--accent-mid); }
.step::before {
  content: ''; position: absolute; top: 0; left: 0; right: 0;
  height: 3px; background: var(--accent2); opacity: 0.6;
}
.step-top {
  display: flex; align-items: center; justify-content: space-between;
  margin-bottom: 16px;
}
.step-num {
  font-family: var(--display-font); font-size: 60px; font-weight: 300;
  color: var(--accent2-dim); line-height: 1;
  letter-spacing: -0.04em; user-select: none;
}
.step-icon {
  width: 44px; height: 44px; background: var(--accent2-dim);
  border: 1px solid var(--accent2-mid); border-radius: 8px;
  display: flex; align-items: center; justify-content: center;
  color: var(--accent2);
}
.step h3 {
  font-family: var(--display-font); font-size: var(--text-size-300); font-weight: 500;
  color: var(--text); margin-bottom: 10px;
}
.step p { font-family: 'Inter', sans-serif; font-size: 18px; color: var(--text-muted); line-height: 1.45; }

/* -- BEFORE / AFTER -- */
.compare-section { background: var(--bg); }
.compare-inner {
  background: var(--bg-card); border: 1px solid var(--border);
  border-radius: 8px; padding: 48px 56px;
  display: grid; grid-template-columns: 1fr 1px 1fr; gap: 48px; align-items: start;
}
.compare-divider { background: var(--border); }

.compare-col h3 {
  font-family: var(--display-font); font-size: 13px; font-weight: 500;
  letter-spacing: 0.18em; text-transform: uppercase; margin-bottom: 20px;
}
.compare-col.bad h3 { color: rgba(251,191,36,0.8); }
.compare-col.good h3 { color: var(--accent); }

.compare-list { list-style: none; }
.compare-list li {
  display: flex; align-items: flex-start; gap: 10px;
  font-family: 'Inter', sans-serif; font-size: 18px; color: var(--text-muted);
  padding: 9px 0; border-bottom: 1px solid var(--border);
}
.compare-list li:last-child { border: none; }
.icon-x { color: var(--accent2); flex-shrink: 0; margin-top: 2px; }
.icon-check { color: var(--accent); flex-shrink: 0; margin-top: 2px; }

/* -- SOCIAL PROOF -- */
.proof-section { background: var(--bg-alt); border-top: 1px solid var(--border); scroll-margin-top: 80px; }
.testimonial-grid { display: grid; grid-template-columns: 1fr 1fr 1fr; gap: 16px; margin-top: 44px; }
.testimonial {
  background: var(--bg-card); border: 1px solid var(--border);
  border-radius: 8px; padding: 28px; transition: border-color 0.2s;
}
.testimonial:hover { border-color: var(--accent-mid); }
.t-stars { display: flex; gap: 6px; margin-bottom: 16px; color: var(--accent2); }
.t-stars svg { width: 24px; height: 24px; }
.t-quote { font-family: 'Inter', sans-serif; font-size: 18px; color: var(--text-muted); line-height: 1.45; font-style: italic; margin-bottom: 16px; }
.t-author { display: flex; align-items: center; gap: 10px; }
.t-avatar {
  width: 42px; height: 42px; border-radius: 50%;
  background: var(--accent-dim); border: 1px solid var(--accent-mid);
  display: flex; align-items: center; justify-content: center;
  font-family: var(--display-font); font-size: 16px; font-weight: 600; color: var(--accent);
}
.t-name { font-family: 'Inter', sans-serif; font-size: 14px; font-weight: 600; color: var(--text); }
.t-role { font-family: 'Inter', sans-serif; font-size: 14px; color: var(--text-dim); margin-top: 1px; }

/* -- FINAL CTA -- */
.final-cta {
  background: var(--bg); text-align: center;
  padding: 120px 5vw; position: relative; overflow: hidden;
  scroll-margin-top: 80px;
}
.final-cta::before {
  content: ''; position: absolute; inset: 0;
  background: radial-gradient(ellipse 70% 50% at 50% 100%, rgba(45,212,191,0.07) 0%, transparent 70%);
  pointer-events: none;
}
.final-cta .container { position: relative; z-index: 1; }
.final-cta h2 {
  font-family: var(--display-font);
  font-size: var(--text-size-500); font-weight: 500;
  letter-spacing: -0.018em; color: var(--text);
  text-wrap: balance; margin-bottom: 16px;
}
.final-cta h2 em { font-style: normal; color: var(--accent2); }
.final-cta p {
  font-family: 'Inter', sans-serif;
  font-size: 19px; color: var(--text-muted); margin-bottom: 40px;
  max-width: 440px; margin-left: auto; margin-right: auto; line-height: 1.45;
}
.cta-note { font-family: 'Inter', sans-serif; font-size: 11px; color: var(--text-dim); margin-top: 14px; }

/* -- FOOTER -- */
footer {
  background: var(--bg-alt); border-top: 1px solid var(--border);
  padding: 24px 5vw; display: flex; align-items: center; justify-content: space-between;
}
.footer-text { font-family: 'Inter', sans-serif; font-size: 12px; color: var(--text-dim); }
.footer-wordmark {
  font-family: var(--display-font);
  font-size: 24px; font-weight: 400;
  letter-spacing: -0.02em; color: var(--text-dim); line-height: 1;
}
.modal-wordmark {
  font-family: var(--display-font);
  font-size: 19px; font-weight: 500;
  letter-spacing: -0.035em; color: var(--text); line-height: 1;
}

/* Auth modal secondary CTA */
.signin-alt {
  margin-top: 18px;
  text-align: center;
  font-size: var(--text-size-90);
  color: var(--text-muted);
}
.signin-alt a {
  color: var(--accent2);
  text-decoration: none;
  font-weight: 600;
}
.signin-alt a:hover { text-decoration: underline; }

/* -- AUTH MODAL -- */
#auth-overlay {
  display: none; position: fixed; inset: 0; z-index: 1000;
  background: rgba(0,0,0,0.65); backdrop-filter: blur(8px);
  align-items: center; justify-content: center;
}
#auth-modal {
  background: var(--bg-card); border: 1px solid var(--border);
  border-radius: 14px; padding: 38px; width: 100%; max-width: 420px;
  margin: 16px; box-shadow: 0 24px 80px rgba(0,0,0,0.5); position: relative;
}
#auth-modal label {
  font-family: 'Inter', sans-serif;
}
#auth-modal input {
  font-family: 'Inter', sans-serif;
}

/* -- ANIMATIONS -- */
@keyframes fadeUp {
  from { opacity: 0; transform: translateY(18px); }
  to { opacity: 1; transform: translateY(0); }
}
.fade-up { animation: fadeUp 0.6s ease both; }
.fade-up-1 { animation-delay: 0.08s; }
.fade-up-2 { animation-delay: 0.18s; }
.fade-up-3 { animation-delay: 0.28s; }
.fade-up-4 { animation-delay: 0.38s; }

@keyframes pulse-dot {
  0%, 100% { opacity: 1; } 50% { opacity: 0.3; }
}
@media (max-width: 600px) { .desktop-br { display: none; } }

/* -- TABLET -- */
@media (max-width: 900px) {
  .hero .container { grid-template-columns: 1fr; gap: 40px; }
  .why-inner        { grid-template-columns: 1fr; gap: 48px; }
  .pain-grid        { grid-template-columns: 1fr 1fr; gap: 14px; }
  .steps-grid       { grid-template-columns: 1fr; gap: 10px; }
  .testimonial-grid { grid-template-columns: 1fr 1fr; gap: 14px; }
  .hero-visual { display: none; }
  .hero { min-height: auto; padding: 120px 5vw 80px; }
  .hero h1 { font-size: var(--text-size-600); }
  .compare-inner { grid-template-columns: 1fr; padding: 32px 24px; gap: 28px; }
  .compare-divider { display: none; }
  section { padding: 72px 5vw; }
  .final-cta { padding: 90px 5vw; }
  nav { padding: 0 4vw; }
}

/* -- MOBILE -- */
@media (max-width: 900px) {
  .nav-links { display: none; }
  .nav-hamburger { display: flex; flex-direction: column; }
  .nav-cta { display: none; }
  .nav-right .nav-cta { display: none; }
}
@media (max-width: 600px) {
  nav { top: 0; padding: 0 20px; }
  .nav-wordmark { font-size: 36px; }
  .how-section, .proof-section, .final-cta { scroll-margin-top: 72px; }

  .hero { padding: 108px 20px 60px; }
  .hero h1 { font-size: var(--text-size-400); }
  .hero-sub { margin-bottom: 28px; }
  .big-stat-num { font-size: 72px; }
  .big-stat-label { max-width: 100%; margin-bottom: 16px; }
  .mini-stats { grid-template-columns: 1fr; gap: 8px; }
  .mini-stat { padding: 14px 16px; display: flex; align-items: center; gap: 16px; }
  .mini-stat-num { font-size: 28px; min-width: 90px; }
  .mini-stat-label { text-align: left; margin-top: 0; }
  .why-visual { padding: 20px; }
  .icon-x, .icon-check { margin-top: 7px; }
  .cta-note { font-size: 11px !important; text-align: center; }
  .hero-ctas { flex-direction: column; align-items: stretch; gap: 12px; }
  .btn-primary { width: 100%; text-align: center; box-sizing: border-box; }
  .btn-ghost { justify-content: center; border: 1px solid var(--accent); padding: 12px 28px; }
  section { padding: 56px 20px; }
  .final-cta { padding: 68px 20px 40px; }
  .pain-grid { grid-template-columns: 1fr; gap: 12px; }
  .testimonial-grid { grid-template-columns: 1fr; }
  .compare-inner { padding: 22px 18px; }
  .section-h2 { font-size: var(--text-size-400); }
  h3, .pain-card h3, .step h3 { font-size: var(--text-size-200); }
  .section-lead { margin-bottom: 32px; }
  footer { flex-direction: column; gap: 10px; text-align: center; padding: 20px; }
  #auth-modal { padding: 26px 18px; }
}

/* -- HIW VIEW OVERLAY -- */
#landing-view { display: block; }
#hiw-view {
  display: none;
  position: fixed;
  top: 0; left: 0; right: 0; bottom: 0;
  z-index: 150;
  background: var(--bg);
  overflow: hidden;
  align-items: center;
  justify-content: center;
}
#hiw-view.active { display: flex; }
body.hiw-active #landing-view { display: none; }
body.hiw-active { overflow: hidden; }

/* Active nav link states */
.nav-link-hiw { }
body.hiw-active .nav-link-hiw {
  color: var(--accent);
  background: var(--accent-dim);
}
body.hiw-active .nav-link-landing {
  color: var(--text-dim);
}

/* HIW grid + glow */
#hiw-view::before {
  content: ''; position: absolute; inset: 0;
  background-image: linear-gradient(var(--border) 1px, transparent 1px),
                    linear-gradient(90deg, var(--border) 1px, transparent 1px);
  background-size: 64px 64px; opacity: 0.4; pointer-events: none; z-index: 0;
}
#hiw-view::after {
  content: ''; position: absolute; inset: 0;
  background: radial-gradient(ellipse 70% 50% at 50% -5%, rgba(45,212,191,0.07) 0%, transparent 65%);
  pointer-events: none; z-index: 0;
}

/* HIW Stage */
#hiw-view .stage {
  width: 1920px; height: 1080px;
  transform-origin: center center;
  background: transparent;
  position: relative; z-index: 1;
}
#hiw-view .frame {
  position: relative; z-index: 1;
  width: 100%; height: 100%;
  padding: 108px 120px 72px;
  display: flex; flex-direction: column;
}
#hiw-view .brand {
  display: flex; align-items: center; gap: 16px;
  position: absolute; top: 56px; left: 120px;
}
#hiw-view .brand-wordmark {
  font-family: var(--display-font);
  font-size: 36px; font-weight: 500;
  letter-spacing: -0.04em; color: var(--text); line-height: 1;
  text-decoration: none; cursor: pointer;
}
#hiw-view .brand-badge {
  font-family: var(--display-font); font-size: 11px; font-weight: 600;
  letter-spacing: 0.16em; text-transform: uppercase;
  color: var(--accent2); background: var(--accent2-dim);
  border: 1px solid var(--accent2-mid); padding: 4px 10px; border-radius: 8px;
}
#hiw-view .pager {
  position: absolute; top: 56px; right: 120px;
  display: flex; align-items: center; gap: 10px;
  font-family: var(--display-font); font-size: 12px; font-weight: 600;
  letter-spacing: 0.14em; text-transform: uppercase; color: var(--text-dim);
}
#hiw-view .pager a, #hiw-view .pager button.pager-back {
  display: inline-flex; align-items: center; justify-content: center;
  width: 28px; height: 28px; border-radius: 999px;
  background: var(--bg-alt); color: var(--text-muted);
  text-decoration: none; cursor: pointer;
  border: 1px solid var(--border);
  transition: background 0.15s, color 0.15s;
}
#hiw-view .pager a:hover, #hiw-view .pager button.pager-back:hover { background: var(--accent-dim); color: var(--accent); }
#hiw-view .pager .count { font-variant-numeric: tabular-nums; }
#hiw-view .pager .count strong { color: var(--text); font-weight: 600; }

/* HIW h1 */
#hiw-view h1 {
  font-family: var(--display-font); font-weight: 500;
  font-size: 56px; line-height: 1.05; letter-spacing: -0.025em;
  color: var(--text); white-space: nowrap;
}
#hiw-view h1 em { font-style: normal; color: var(--accent); }

/* View toggle */
#hiw-view .view-toggle { display: flex; align-items: center; gap: 2px; }
#hiw-view .vtog {
  font-family: var(--display-font); font-size: 13px; font-weight: 600;
  letter-spacing: 0.12em; text-transform: uppercase;
  padding: 5px 14px; border-radius: 999px;
  border: none; background: transparent; cursor: pointer;
  color: var(--text-muted); transition: background 160ms ease, color 160ms ease;
  white-space: nowrap;
}
#hiw-view .vtog.active { background: var(--accent-dim); color: var(--accent); }
#hiw-view .vtog:hover:not(.active) { color: var(--text); }
#hiw-view .ctl-sep { width: 1px; height: 20px; background: rgba(45,212,191,0.22); flex-shrink: 0; margin: 0 4px; }

/* HIW eyebrow */
#hiw-view .eyebrow {
  font-family: var(--display-font); font-size: 14px; font-weight: 600;
  letter-spacing: 0.20em; text-transform: uppercase; color: var(--accent2);
  display: flex; align-items: center; gap: 14px; margin-bottom: 18px;
}

/* Value + diagram zones */
#hiw-view .value-zone { margin-top: 88px; max-width: 1680px; }
#hiw-view .diagram-zone {
  flex: 1; display: flex; align-items: center; justify-content: center;
  margin-top: 16px; padding-bottom: 20vh;
}
#hiw-view .cycle { position: relative; width: 1680px; height: 640px; }
#hiw-view .cycle-svg {
  position: absolute; inset: 0; width: 100%; height: 100%;
  overflow: visible; pointer-events: none;
}
#hiw-view .guide-rect {
  fill: none; stroke: var(--text-dim); stroke-width: 1; stroke-dasharray: 3 9; opacity: 0.13;
}

/* Flow arrows */
#hiw-view .flow-path {
  fill: none; stroke: var(--accent); stroke-width: 2.2; stroke-linecap: round;
  stroke-dasharray: var(--len, 1000); stroke-dashoffset: var(--len, 1000);
  transition: stroke-dashoffset 350ms cubic-bezier(0.22, 0.7, 0.2, 1); opacity: 0.65;
}
#hiw-view .flow-path.revealed { stroke-dashoffset: 0; }
#hiw-view .flow-path.loop { stroke: #34d399; }
#hiw-view .arrow-head { fill: var(--accent); opacity: 0; transition: opacity 180ms ease 280ms; }
#hiw-view .arrow-head.revealed { opacity: 0.8; }
#hiw-view .arrow-head.loop { fill: #34d399; }

/* Nodes */
#hiw-view .node {
  position: absolute; width: 220px; transform: translate(-50%, -50%);
  text-align: center; display: flex; flex-direction: column; align-items: center; gap: 10px;
}
#hiw-view .node-icon {
  width: 96px; height: 96px; background: var(--bg-card);
  border: 1px solid var(--border); border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  color: var(--accent); box-shadow: 0 8px 24px rgba(0,0,0,0.3); position: relative;
}
#hiw-view .node-icon::after {
  content: ''; position: absolute; inset: 6px; border-radius: 50%;
  border: 1px dashed rgba(45,212,191,0.22); opacity: 0.4; pointer-events: none;
}
#hiw-view .node.win .node-icon { color: #34d399; }
#hiw-view .node-label {
  font-family: var(--display-font); font-size: 13px; font-weight: 600;
  letter-spacing: 0.18em; text-transform: uppercase; color: var(--text-dim);
}
#hiw-view .node-title {
  font-family: var(--display-font); font-weight: 500;
  font-size: 20px; line-height: 1.15; letter-spacing: -0.01em; color: var(--text);
}
#hiw-view .node-meta { font-family: 'Inter', sans-serif; font-size: 13px; color: var(--text-muted); line-height: 1.4; }
#hiw-view .node.customer { left: 140px; top: 363px; }
#hiw-view .node.inbound  { left: 700px; top: 118px; }
#hiw-view .node.sent     { left: 700px; top: 621px; }

/* Hub */
#hiw-view .hub {
  position: absolute; right: 0; top: 50%; transform: translate(0, -50%);
  width: 760px; border: 1px solid var(--border); border-radius: 18px;
  background: var(--bg-card); box-shadow: 0 16px 48px rgba(0,0,0,0.4);
}
#hiw-view .hub-drawer { position: relative; overflow: hidden; border-radius: 18px; }
#hiw-view .hub-row {
  padding: 28px 32px; min-height: 224px;
  display: grid; grid-template-columns: 56px 1fr auto;
  align-items: center; gap: 20px;
}
#hiw-view .hub-row.manual {
  position: relative; z-index: 2;
  background: linear-gradient(180deg, rgba(255,255,255,0.02), transparent);
  transition: transform 560ms cubic-bezier(0.4, 0, 0.2, 1), opacity 480ms ease;
}
#hiw-view .hub-row.manual .hub-icon  { background: var(--bg-alt); border-color: rgba(45,212,191,0.22); color: var(--text-dim); }
#hiw-view .hub-row.manual .hub-title { color: var(--text-muted); }
#hiw-view .hub-row.manual .hub-bullets { color: var(--text-dim); }
#hiw-view .hub-row.auto {
  position: absolute; top: 0; left: 0; right: 0; bottom: 0; z-index: 1;
  background: linear-gradient(0deg, rgba(45,212,191,0.06), rgba(45,212,191,0.01));
  opacity: 0; transform: translateY(14px);
  transition: transform 500ms cubic-bezier(0.22, 0.7, 0.2, 1) 200ms, opacity 400ms ease 200ms;
}
#hiw-view .hub-row.auto .hub-icon  { background: var(--accent-dim); border-color: var(--accent-mid); color: var(--accent); }
#hiw-view .hub-row.auto .hub-title { color: var(--text); }
#hiw-view .hub-row.auto .hub-eyebrow { color: var(--accent); }
#hiw-view .hub.replaced .hub-row.manual { transform: translateX(108%); opacity: 0; }
#hiw-view .hub.replaced .hub-row.auto   { opacity: 1; transform: translateY(0); }

#hiw-view .hub-time-compare { display: flex; flex-direction: column; align-items: flex-end; gap: 2px; min-width: 76px; }
#hiw-view .time-was {
  font-family: var(--display-font); font-size: 18px; font-weight: 600;
  color: var(--text-dim); letter-spacing: -0.02em; line-height: 1;
  text-decoration: line-through; text-decoration-color: var(--text-muted); text-decoration-thickness: 1.5px;
}
#hiw-view .time-was small { display: block; font-size: 13px; font-weight: 600; letter-spacing: 0.15em; text-transform: uppercase; color: var(--text-dim); margin-top: 2px; }
#hiw-view .time-divider-arrow { color: var(--accent2); font-size: 13px; text-align: right; opacity: 0.7; margin: 1px 0; }
#hiw-view .time-now { font-family: var(--display-font); font-size: 34px; font-weight: 700; color: #34d399; letter-spacing: -0.03em; line-height: 1; }
#hiw-view .time-now small { display: block; font-size: 13px; font-weight: 600; letter-spacing: 0.17em; text-transform: uppercase; color: #34d399; opacity: 0.75; margin-top: 3px; }

#hiw-view .hub-icon {
  width: 52px; height: 52px; border: 1px solid var(--border);
  border-radius: 12px; display: flex; align-items: center; justify-content: center;
}
#hiw-view .hub-body { display: flex; flex-direction: column; gap: 4px; min-width: 0; }
#hiw-view .hub-eyebrow {
  font-family: var(--display-font); font-size: 13px; font-weight: 600;
  letter-spacing: 0.18em; text-transform: uppercase; color: var(--text-dim);
}
#hiw-view .hub-title {
  font-family: var(--display-font); font-weight: 500; font-size: 20px;
  letter-spacing: -0.01em; line-height: 1.2; color: var(--text);
}
#hiw-view .hub-bullets {
  font-family: 'Inter', sans-serif; font-size: 13px; color: var(--text-muted);
  display: flex; flex-wrap: wrap; gap: 2px 12px; line-height: 1.5; margin-top: 2px;
}
#hiw-view .hub-bullets span + span::before { content: '\00B7'; margin-right: 12px; color: var(--text-dim); }
#hiw-view .hub-review-tag {
  display: inline-flex; align-items: center; gap: 6px; margin-top: 10px;
  padding: 4px 10px 4px 8px; background: rgba(251,191,36,0.08);
  border: 1px solid rgba(251,191,36,0.22); border-radius: 8px;
  font-family: var(--display-font); font-size: 13px; font-weight: 600;
  letter-spacing: 0.12em; text-transform: uppercase; color: var(--accent2);
}
#hiw-view .hub-review-tag .dot { width: 6px; height: 6px; border-radius: 50%; background: var(--accent2); flex-shrink: 0; }
#hiw-view .hub-client-tag {
  display: flex; align-items: center; gap: 9px; margin-top: 10px;
  font-family: 'Inter', sans-serif; font-size: 13px; color: var(--text-muted);
}
#hiw-view .hub-client-logos { display: flex; align-items: center; gap: 4px; flex-shrink: 0; }
#hiw-view .hub-client-logos svg { display: block; border-radius: 4px; }
#hiw-view .hub-time {
  font-family: var(--display-font); font-weight: 600;
  font-size: 28px; letter-spacing: -0.02em;
  text-align: right; line-height: 1; color: var(--text); white-space: nowrap;
}
#hiw-view .hub-time small { display: block; font-size: 13px; font-weight: 600; letter-spacing: 0.18em; text-transform: uppercase; color: var(--text-dim); margin-top: 5px; }

/* Savings ribbon */
#hiw-view .savings-ribbon {
  position: absolute; left: 50%; bottom: -28px;
  background: #34d399; color: #09090b;
  font-family: var(--display-font); letter-spacing: -0.02em;
  border-radius: 14px; padding: 12px 18px 12px 16px;
  display: flex; flex-direction: column; align-items: flex-start;
  box-shadow: 0 12px 28px rgba(52,211,153,0.30);
  opacity: 0; transform: translate(-50%, calc(50% - 8px)) scale(0.94);
  transition: opacity 520ms cubic-bezier(0.22, 0.7, 0.2, 1), transform 520ms cubic-bezier(0.22, 0.7, 0.2, 1);
  z-index: 5;
}
#hiw-view .savings-ribbon.show { opacity: 1; transform: translate(-50%, 50%); }
#hiw-view .savings-ribbon .pct { font-size: 30px; font-weight: 700; line-height: 1; }
#hiw-view .savings-ribbon .pct span { font-size: 18px; font-weight: 600; opacity: 0.85; }
#hiw-view .savings-ribbon .lbl { font-size: 13px; font-weight: 600; letter-spacing: 0.16em; text-transform: uppercase; opacity: 0.92; margin-top: 4px; }

/* Reveal */
#hiw-view [data-reveal] {
  opacity: 0;
  transition: opacity 380ms cubic-bezier(0.22, 0.7, 0.2, 1), transform 380ms cubic-bezier(0.22, 0.7, 0.2, 1);
  will-change: opacity, transform;
}
#hiw-view .node[data-reveal] { transform: translate(-50%, -50%) scale(0.94); }
#hiw-view .hub[data-reveal]  { transform: translate(0, -50%) scale(0.97); }
#hiw-view .node[data-reveal].revealed { opacity: 1; transform: translate(-50%, -50%); }
#hiw-view .hub[data-reveal].revealed  { opacity: 1; transform: translate(0, -50%); }
#hiw-view .guide-rect { opacity: 0; transition: opacity 600ms ease; }
#hiw-view .guide-rect.revealed { opacity: 0.08; }

/* Node states */
#hiw-view .nstate {
  display: flex; flex-direction: column; align-items: center; gap: 10px; width: 100%;
  transition: opacity 480ms cubic-bezier(0.22,0.7,0.2,1), transform 480ms cubic-bezier(0.22,0.7,0.2,1);
}
#hiw-view .nstate.state-b {
  position: absolute; top: 0; left: 50%;
  transform: translateX(-50%) translateY(12px);
  opacity: 0; pointer-events: none; width: 220px; text-align: center;
}
#hiw-view .node.swapped .nstate.state-a { opacity: 0; transform: translateY(-10px); pointer-events: none; }
#hiw-view .node.swapped .nstate.state-b { opacity: 1; transform: translateX(-50%) translateY(0); pointer-events: auto; transition-delay: 120ms; }
#hiw-view .node.customer .nstate.state-lost,
#hiw-view .node.customer .nstate.state-won {
  position: absolute; top: 0; left: 50%;
  transform: translateX(-50%) translateY(12px);
  opacity: 0; pointer-events: none; width: 220px; text-align: center;
}
#hiw-view .node.customer.lost-load .nstate.state-default { opacity: 0; transform: translateY(-10px); pointer-events: none; }
#hiw-view .node.customer.lost-load .nstate.state-lost    { opacity: 1; transform: translateX(-50%) translateY(0); pointer-events: auto; transition-delay: 120ms; }
#hiw-view .node.customer.load-won .nstate.state-default  { opacity: 0; transform: translateY(-10px); pointer-events: none; }
#hiw-view .node.customer.load-won .nstate.state-won      { opacity: 1; transform: translateX(-50%) translateY(0); pointer-events: auto; transition-delay: 120ms; }

#hiw-view .flow-path.faded-out, #hiw-view .arrow-head.faded-out { opacity: 0 !important; transition: opacity 500ms ease !important; }
#hiw-view .node.hidden-beat { opacity: 0 !important; transform: translate(-50%, -50%) scale(0.95) !important; }
#hiw-view .flow-path.loop-amber { stroke: var(--accent2); }
#hiw-view .arrow-head.loop-amber { fill: var(--accent2); }

#hiw-view .node-icon.manual { color: var(--accent2); background: var(--accent2-dim); border-color: var(--accent2-mid); }
#hiw-view .node-icon.lost   { color: var(--accent);  background: var(--accent-dim);  border-color: var(--accent-mid); }
#hiw-view .node-icon.won    { color: #34d399; background: rgba(52,211,153,0.10); border-color: rgba(52,211,153,0.25); }

#hiw-view .icon-check-badge {
  position: absolute; bottom: 1px; right: 1px;
  width: 24px; height: 24px; border-radius: 50%;
  background: #34d399; border: 2.5px solid var(--bg-card);
  display: flex; align-items: center; justify-content: center;
  z-index: 2; box-shadow: 0 2px 6px rgba(52,211,153,0.35);
}

#hiw-view .node-risk-badge, #hiw-view .node-lost-badge, #hiw-view .node-won-badge {
  display: inline-flex; align-items: center; gap: 5px;
  padding: 3px 10px; border-radius: 8px; margin-top: 2px;
  font-family: var(--display-font); font-size: 13px; font-weight: 600;
  letter-spacing: 0.14em; text-transform: uppercase;
}
#hiw-view .node-risk-badge { background: var(--accent2-dim); border: 1px solid var(--accent2-mid); color: var(--accent2); }
#hiw-view .node-lost-badge { background: var(--accent-dim);  border: 1px solid var(--accent-mid);  color: var(--accent); }
#hiw-view .node-won-badge  { background: rgba(52,211,153,0.10); border: 1px solid rgba(52,211,153,0.25); color: #34d399; }
#hiw-view .node-risk-badge .dot, #hiw-view .node-lost-badge .dot, #hiw-view .node-won-badge .dot { width: 5px; height: 5px; border-radius: 50%; flex-shrink: 0; }
#hiw-view .node-risk-badge .dot { background: var(--accent2); }
#hiw-view .node-lost-badge .dot { background: var(--accent); }
#hiw-view .node-won-badge  .dot { background: #34d399; }

/* Panels */
#hiw-view .panel { display: none; flex-direction: column; flex: 1; }
#hiw-view .panel.active { display: flex; }

/* Cards view */
#hiw-view .panel-cards .value-zone { margin-top: 88px; }
#hiw-view .sub { font-family: 'Inter', sans-serif; font-size: 16px; line-height: 1.55; color: var(--text-muted); max-width: 820px; margin-top: 16px; }
#hiw-view .workflow-zone { flex: 1; display: flex; align-items: center; justify-content: center; padding-bottom: 20vh; }
#hiw-view .workflow { display: flex; align-items: stretch; width: 100%; max-width: 1680px; gap: 0; }

/* HIW step cards (scoped to avoid conflict with landing .step) */
#hiw-view .step {
  flex: 1; position: relative;
  background: var(--bg-card); border: 1px solid var(--border);
  border-radius: 18px; padding: 32px 28px 28px;
  display: flex; flex-direction: column; gap: 14px;
  box-shadow: 0 8px 24px rgba(0,0,0,0.25); overflow: hidden;
}
#hiw-view .step-bar { position: absolute; top: 0; left: 0; right: 0; height: 3px; border-radius: 18px 18px 0 0; background: var(--accent2); }
#hiw-view .step.tone-teal .step-bar { background: var(--accent); }
#hiw-view .step.tone-green .step-bar { background: #34d399; }
#hiw-view .step-icon {
  width: 52px; height: 52px; border-radius: 12px;
  display: flex; align-items: center; justify-content: center;
  background: var(--accent2-dim); color: var(--accent2);
  border: 1px solid var(--accent2-mid);
}
#hiw-view .step.tone-teal .step-icon  { background: var(--accent-dim);  color: var(--accent);  border-color: var(--accent-mid); }
#hiw-view .step.tone-green .step-icon { background: rgba(52,211,153,0.10); color: #34d399; border-color: rgba(52,211,153,0.25); }
#hiw-view .step-label { font-family: var(--display-font); font-size: 13px; font-weight: 600; letter-spacing: 0.18em; text-transform: uppercase; color: var(--text-dim); }
#hiw-view .step-title { font-family: var(--display-font); font-weight: 500; font-size: 22px; letter-spacing: -0.015em; line-height: 1.15; color: var(--text); }
#hiw-view .step-body  { font-family: 'Inter', sans-serif; font-size: 14px; line-height: 1.55; color: var(--text-muted); flex: 1; }
#hiw-view .step-tag {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 4px 10px 4px 8px; border-radius: 8px; align-self: flex-start;
  font-family: var(--display-font); font-size: 13px; font-weight: 600;
  letter-spacing: 0.12em; text-transform: uppercase;
}
#hiw-view .step-tag.green { background: rgba(52,211,153,0.10); color: #34d399; border: 1px solid rgba(52,211,153,0.25); }
#hiw-view .step-tag.amber { background: var(--accent2-dim); color: var(--accent2); border: 1px solid var(--accent2-mid); }
#hiw-view .step-tag .dot { width: 5px; height: 5px; border-radius: 50%; background: currentColor; flex-shrink: 0; }
#hiw-view .connector { display: flex; align-items: center; justify-content: center; width: 44px; flex-shrink: 0; color: var(--accent2); opacity: 0.85; }

/* Cards reveal */
#hiw-view .step[data-reveal-card], #hiw-view .connector[data-reveal-card] {
  opacity: 0; transform: translateY(16px);
  transition: opacity 380ms cubic-bezier(0.22,0.7,0.2,1), transform 380ms cubic-bezier(0.22,0.7,0.2,1);
}
#hiw-view .step[data-reveal-card].revealed, #hiw-view .connector[data-reveal-card].revealed { opacity: 1; transform: translateY(0); }

/* Footer marks */
#hiw-view .footer-mark { position: absolute; left: 120px; bottom: 48px; font-family: var(--display-font); font-size: 13px; font-weight: 500; letter-spacing: 0.06em; color: var(--text-dim); }
#hiw-view .footer-mark strong { color: var(--text-muted); font-weight: 600; }
#hiw-view .footer-meta { position: absolute; right: 120px; bottom: 48px; font-family: var(--display-font); font-size: 13px; font-weight: 500; letter-spacing: 0.14em; text-transform: uppercase; color: var(--text-dim); display: flex; align-items: center; gap: 12px; }
#hiw-view .footer-meta::before { content: ''; display: block; width: 24px; height: 1px; background: var(--text-dim); opacity: 0.5; }

/* HIW bottom bar */
#hiw-view .hiw-bottom {
  position: absolute; bottom: 2.5vh; left: 50%; transform: translateX(-50%);
  z-index: 50; display: flex; align-items: center; gap: 12px;
  white-space: nowrap;
}
#hiw-view .hiw-cta-btn {
  background: var(--accent2); color: #09090b;
  font-family: 'Inter', sans-serif; font-size: 14px; font-weight: 600;
  padding: 12px 22px; border-radius: 8px; border: none; cursor: pointer;
  box-shadow: 0 4px 16px rgba(251,191,36,0.22);
  transition: opacity 0.2s, transform 0.15s; white-space: nowrap;
}
#hiw-view .hiw-cta-btn:hover { opacity: 0.88; transform: translateY(-1px); }

/* HIW Controls */
#hiw-view .controls {
  position: static; transform: none;
  z-index: 50; display: flex; align-items: center; gap: 10px;
  background: rgba(9,9,11,0.85); border: 1px solid var(--border);
  border-radius: 999px; padding: 6px 8px 6px 16px;
  font-family: var(--display-font); user-select: none; backdrop-filter: blur(12px);
}
#hiw-view .controls .count { font-size: 12px; font-weight: 600; letter-spacing: 0.10em; color: var(--text-muted); text-transform: uppercase; font-variant-numeric: tabular-nums; }
#hiw-view .controls .count strong { color: var(--text); font-weight: 600; }
#hiw-view .ctl-btn {
  appearance: none; border: none; background: var(--bg-alt);
  width: 34px; height: 34px; border-radius: 999px;
  display: inline-flex; align-items: center; justify-content: center;
  color: var(--text); cursor: pointer;
  transition: background 160ms ease, color 160ms ease, transform 120ms ease, opacity 160ms ease;
}
#hiw-view .ctl-btn:hover  { background: var(--accent-dim); color: var(--accent); }
#hiw-view .ctl-btn:active { transform: scale(0.94); }
#hiw-view .ctl-btn[data-role="next"] { background: var(--accent2); color: #09090b; }
#hiw-view .ctl-btn[data-role="next"]:hover { opacity: 0.88; }
#hiw-view .ctl-btn[data-role="replay"] {
  background: transparent; color: var(--text-muted);
  width: auto; padding: 0 12px;
  font-family: var(--display-font); font-size: 12px; font-weight: 600;
  letter-spacing: 0.1em; text-transform: uppercase;
}
#hiw-view .ctl-btn[data-role="replay"]:hover { color: var(--accent); background: var(--accent-dim); border-radius: 999px; }
#hiw-view .ctl-btn:disabled { opacity: 0.35; cursor: default; pointer-events: none; }

/* HIW responsive */
@media (max-width: 1023px) {
  #hiw-view { overflow: auto; align-items: flex-start; }
  #hiw-view .stage { width: 100% !important; height: auto !important; min-height: 100dvh; transform: none !important; }
  #hiw-view .frame { padding: 90px 40px 90px; }
  #hiw-view .brand { position: static; display: flex; align-items: center; gap: 12px; margin-bottom: 20px; }
  #hiw-view .footer-mark, #hiw-view .footer-meta, #hiw-view .pager { display: none; }
  #hiw-view h1 { font-size: 28px; white-space: normal; }
  #hiw-view .eyebrow { font-size: 11px; margin-bottom: 10px; }
  #hiw-view .vtog[data-view="diagram"] { display: none; }
  #hiw-view .diagram-zone { display: none; }
  #hiw-view .panel-diagram { display: none !important; }
  #hiw-view .workflow { flex-wrap: wrap; gap: 10px; }
  #hiw-view .step { flex: 1 1 calc(50% - 5px); min-width: 220px; padding: 18px 16px 16px; gap: 8px; }
  #hiw-view .step-icon { width: 38px; height: 38px; border-radius: 9px; }
  #hiw-view .step-icon svg { width: 20px; height: 20px; }
  #hiw-view .step-label { font-size: 11px; }
  #hiw-view .step-title { font-size: 16px; }
  #hiw-view .step-body  { font-size: 13px; }
  #hiw-view .step-tag   { font-size: 11px; padding: 3px 8px 3px 7px; }
  #hiw-view .connector  { display: none; }
  #hiw-view .ctl-btn    { width: 44px; height: 44px; }
  #hiw-view .value-zone { margin-top: 0; }
  #hiw-view .panel-cards .value-zone { margin-top: 0; }
  #hiw-view .workflow-zone { padding-bottom: 0; flex: unset; }
  #hiw-view .hiw-bottom {
    position: fixed; bottom: 0; left: 0; right: 0;
    transform: none;
    flex-direction: column; gap: 10px;
    padding: 12px 16px 24px;
    background: rgba(9,9,11,0.96);
    backdrop-filter: blur(12px);
  }
  #hiw-view .controls { width: 100%; border-radius: 12px; justify-content: space-between; padding: 8px 10px; gap: 6px; }
  #hiw-view .hiw-cta-btn { width: 100%; padding: 14px; font-size: 15px; }
}
@media (max-width: 639px) {
  #hiw-view .frame { padding: 88px 20px 160px; }
  #hiw-view h1 { font-size: 24px; line-height: 1.1; }
  #hiw-view .eyebrow { margin-bottom: 8px; }
  #hiw-view .value-zone { margin-bottom: 20px; }
  #hiw-view .workflow { flex-direction: column; gap: 0; }
  #hiw-view .step { flex: none; width: 100%; }
  #hiw-view .connector { display: flex; height: 32px; width: 100%; align-items: center; justify-content: center; }
  #hiw-view .connector svg { transform: rotate(90deg); opacity: 0.85; }
  #hiw-view .step { padding: 24px 20px 20px; }
  #hiw-view .step-title { font-size: 18px; }
}

@media (prefers-reduced-motion: reduce) {
  #hiw-view [data-reveal], #hiw-view .hub-row, #hiw-view .savings-ribbon,
  #hiw-view .flow-path, #hiw-view .arrow-head, #hiw-view .guide-rect {
    transition: opacity 180ms linear !important;
    transform: none !important;
    stroke-dashoffset: 0 !important;
  }
}
