/* ============================================
   VARIABLES & RESET
   ============================================ */
:root {
  --white:    #FFFFFF;
  --off:      #F9F8F6;
  --dark:     #1A1612;
  --dark2:    #231E19;
  --off2:     #F1EEE9;
  --border:   #E8E4DE;
  --border2:  #D5D0C8;
  --text:     #0F1117;
  --text2:    #44403C;
  --muted:    #78716C;
  --orange:   #F97316;
  --orange2:  #EA6800;
  --orangeL:  rgba(249,115,22,0.10);
  --orangeB:  rgba(249,115,22,0.20);
  --navy:     #0F172A;
  --navy2:    #1E293B;
  --green:    #16A34A;
  --blue:     #2563EB;
  --r:        10px;
  --r-sm:     6px;
  --r-lg:     16px;
  --r-xl:     24px;
  --tr:       0.22s cubic-bezier(.4,0,.2,1);
  --shadow:   0 1px 3px rgba(0,0,0,.08), 0 4px 16px rgba(0,0,0,.06);
  --shadow-lg: 0 4px 24px rgba(0,0,0,.10), 0 16px 48px rgba(0,0,0,.08);
  --font-d:   'Bricolage Grotesque', sans-serif;
  --font-b:   'General Sans', sans-serif;
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; font-size: 16px; }
body {
  font-family: var(--font-b);
  background: var(--white);
  color: var(--text);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
a { text-decoration: none; color: inherit; }
ul, ol { list-style: none; }
button { font-family: inherit; cursor: pointer; }
img { max-width: 100%; display: block; }

.wrap {
  max-width: 1140px;
  margin: 0 auto;
  padding: 0 28px;
}

/* ============================================
   REVEAL ANIMATION
   ============================================ */
.reveal-up {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity .6s ease, transform .6s ease;
}
.reveal-up.in { opacity: 1; transform: none; }

/* ============================================
   SHARED TYPOGRAPHY
   ============================================ */
.eyebrow {
  display: inline-block;
  font-size: .75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: .1em;
  color: var(--orange);
  margin-bottom: 14px;
}
.eyebrow.light { color: rgba(249,115,22,.75); }

.section-head {
  text-align: center;
  max-width: 620px;
  margin: 0 auto 56px;
}
.section-head h2 {
  font-family: 'Bricolage Grotesque', sans-serif;
  font-size: clamp(2rem, 3.5vw, 2.9rem);
  font-weight: 800;
  letter-spacing: -.03em;
  line-height: 1.15;
  color: var(--text);
  margin-bottom: 14px;
}
.section-head p {
  font-size: 1.05rem;
  color: var(--muted);
  line-height: 1.75;
}

/* ============================================
   BUTTONS
   ============================================ */
.btn-primary {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--orange);
  color: #fff;
  font-weight: 600;
  font-size: .95rem;
  padding: 12px 24px;
  border-radius: var(--r);
  border: none;
  transition: all var(--tr);
  position: relative;
  overflow: hidden;
}
.btn-primary::after {
  content: '';
  position: absolute;
  top: 0; left: -110%; width: 60%; height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,.22), transparent);
  transform: skewX(-18deg);
  transition: left .5s ease;
}
.btn-primary:hover::after { left: 150%; }
.btn-primary:hover { background: var(--orange2); box-shadow: 0 4px 20px rgba(249,115,22,.35); transform: translateY(-1px); }
.btn-primary.large { padding: 14px 30px; font-size: 1rem; }

.btn-outline {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: transparent;
  color: var(--text);
  font-weight: 600;
  font-size: .95rem;
  padding: 12px 24px;
  border-radius: var(--r);
  border: 1.5px solid var(--border2);
  transition: all var(--tr);
}
.btn-outline:hover { border-color: var(--orange); color: var(--orange); background: var(--orangeL); }
.btn-outline.dark { border-color: var(--border2); color: var(--text); }
.btn-outline.dark:hover { border-color: var(--orange); color: var(--orange); background: var(--orangeL); }

/* ============================================
   NAVIGATION
   ============================================ */
.nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 200;
  background: var(--dark);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid transparent;
  transition: border-color var(--tr), box-shadow var(--tr);
}
.nav.stuck {
  border-bottom-color: rgba(255,255,255,.08);
  box-shadow: 0 1px 16px rgba(0,0,0,.3);
}
.nav-wrap {
  max-width: 1140px;
  margin: 0 auto;
  padding: 0 28px;
  height: 64px;
  display: flex;
  align-items: center;
  gap: 0;
  position: relative;
}
.logo {
  flex-shrink: 0;
  display: flex;
  align-items: center;
}
.logo-img {
  height: 34px;
  width: auto;
  display: block;
}
.nav-links {
  display: flex;
  gap: 2px;
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
}
.nav-links a {
  font-size: .88rem;
  font-weight: 500;
  color: rgba(255,255,255,.65);
  padding: 7px 14px;
  border-radius: var(--r-sm);
  transition: all var(--tr);
}
.nav-links a:hover { color: #fff; background: rgba(255,255,255,.08); }
.nav-right {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-shrink: 0;
  margin-left: auto;
}
.link-login {
  font-size: .88rem;
  font-weight: 500;
  color: rgba(255,255,255,.65);
  padding: 7px 12px;
  transition: color var(--tr);
}
.link-login:hover { color: #fff; }
.cta-nav {
  display: inline-flex;
  align-items: center;
  background: var(--orange);
  color: #fff;
  font-family: 'General Sans', sans-serif;
  font-size: .875rem;
  font-weight: 600;
  padding: 9px 20px;
  border-radius: 8px;
  border: none;
  cursor: pointer;
  letter-spacing: .01em;
  transition: all var(--tr);
  white-space: nowrap;
}
.cta-nav:hover {
  background: var(--orange2);
  box-shadow: 0 4px 18px rgba(249,115,22,.35);
  transform: translateY(-1px);
}
.burger {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  padding: 4px;
  margin-left: auto;
}
.burger span {
  display: block;
  width: 22px; height: 2px;
  background: var(--text);
  border-radius: 2px;
}
.mobile-menu {
  display: none;
  flex-direction: column;
  padding: 12px 28px 20px;
  background: var(--white);
  border-top: 1px solid var(--border);
  gap: 2px;
}
.mobile-menu.open { display: flex; }
.mobile-menu a {
  font-size: .9rem;
  font-weight: 500;
  color: var(--text2);
  padding: 9px 10px;
  border-radius: var(--r-sm);
}
.mobile-menu .cta-nav { margin-top: 8px; text-align: center; }

/* ============================================
   HERO
   ============================================ */
.hero {
  position: relative;
  overflow: hidden;
  min-height: 100vh;
  display: flex;
  align-items: center;
  padding: 140px 28px 80px;
}

/* Background video */
.hero-bg-vid {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  z-index: 0;
}

/* Gradient overlay — video bleeds softly through the left, fades fully on the right */
.hero-vid-overlay {
  position: absolute;
  inset: 0;
  z-index: 1;
  background:
    linear-gradient(
      to right,
      rgba(255,255,255,.82) 0%,
      rgba(255,255,255,.78) 18%,
      rgba(255,255,255,.65) 32%,
      rgba(255,255,255,.40) 50%,
      rgba(255,255,255,.18) 68%,
      rgba(255,255,255,.08) 100%
    ),
    linear-gradient(
      to top,
      rgba(255,255,255,.75) 0%,
      rgba(255,255,255,0)   18%
    );
}

.hero-wrap {
  position: relative;
  z-index: 2;
  max-width: 1140px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr 1.5fr;
  gap: 48px;
  align-items: center;
  width: 100%;
}
.hero-left { max-width: 540px; }
.hero-tag {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  background: var(--orangeL);
  border: 1px solid var(--orangeB);
  color: var(--orange2);
  font-size: .78rem;
  font-weight: 700;
  padding: 5px 13px;
  border-radius: 100px;
  margin-bottom: 24px;
  letter-spacing: .02em;
  animation: slideIn .6s ease both;
}
@keyframes slideIn {
  from { opacity:0; transform: translateY(14px); }
  to   { opacity:1; transform: none; }
}
.hero-h1 {
  font-family: 'Bricolage Grotesque', sans-serif;
  font-size: clamp(3rem, 5.5vw, 4.6rem);
  font-weight: 800;
  letter-spacing: -.03em;
  line-height: 1.1;
  color: var(--text);
  margin-bottom: 20px;
  animation: slideIn .6s .1s ease both;
}
.hero-h1 .highlight {
  color: var(--orange);
  position: relative;
}
.hero-p {
  font-size: 1.08rem;
  color: var(--muted);
  line-height: 1.75;
  margin-bottom: 32px;
  animation: slideIn .6s .18s ease both;
}
.hero-ctas {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  margin-bottom: 36px;
  animation: slideIn .6s .26s ease both;
}
.hero-social {
  display: flex;
  align-items: center;
  gap: 12px;
  animation: slideIn .6s .34s ease both;
}
.avatars {
  display: flex;
}
.av {
  width: 32px; height: 32px;
  border-radius: 50%;
  border: 2px solid #fff;
  display: flex; align-items: center; justify-content: center;
  font-size: .62rem; font-weight: 700; color: #fff;
  margin-left: -8px;
  flex-shrink: 0;
}
.av:first-child { margin-left: 0; }
.hero-social p {
  font-size: .82rem;
  color: var(--muted);
}
.hero-social p strong { color: var(--text); }

/* Right side — app window floats above the video background */
.hero-right {
  position: relative;
  animation: slideIn .7s .2s ease both;
  min-height: 500px;
}
.mockup-shell {
  margin-top: -40px;
  border-radius: var(--r-xl);
  overflow: hidden;
  box-shadow: var(--shadow-lg), 0 0 0 1px var(--border);
  background: var(--white);
}
.mockup-bar {
  display: flex;
  align-items: center;
  gap: 8px;
  background: var(--off);
  border-bottom: 1px solid var(--border);
  padding: 10px 16px;
  font-size: .7rem;
  color: var(--muted);
}
.demo-bar-title { flex: 1; font-weight: 600; color: var(--text2); transition: opacity .3s ease; }
.demo-dots { display: flex; gap: 5px; margin-left: auto; }
.ddot {
  width: 6px; height: 6px; border-radius: 50%;
  background: var(--border2); cursor: pointer;
  transition: background .3s ease, transform .2s ease;
}
.ddot.active { background: var(--orange); transform: scale(1.3); }
.dot {
  width: 10px; height: 10px;
  border-radius: 50%;
  flex-shrink: 0;
}
.dot.r { background: #FF5F57; }
.dot.y { background: #FFBD2E; }
.dot.g { background: #28CA41; }
.mockup-bar span { margin-left: 8px; }
.mockup-body {
  display: flex;
  height: 440px;
}
.mock-sidebar {
  width: 185px; flex-shrink: 0;
  background: var(--navy);
  padding: 14px 10px;
  display: flex; flex-direction: column;
  gap: 4px;
}
.mock-logo {
  padding: 0 6px 12px;
  margin-bottom: 6px;
  border-bottom: 1px solid rgba(255,255,255,.08);
}
.mock-logo-img {
  height: 18px;
  width: auto;
  display: block;
}
.mock-nav { display: flex; flex-direction: column; gap: 2px; }
.mnav-item {
  display: flex; align-items: center; gap: 8px;
  font-size: .68rem; font-weight: 500;
  color: rgba(255,255,255,.45);
  padding: 6px 8px;
  border-radius: 6px;
  cursor: default;
}
.mnav-item.active { background: rgba(249,115,22,.15); color: var(--orange); }
.mock-main {
  flex: 1;
  background: var(--off);
  padding: 14px;
  display: flex; flex-direction: column; gap: 12px;
  overflow: hidden;
}
.mock-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.mock-title { font-size: .8rem; font-weight: 700; color: var(--text); }
.mock-user {
  width: 24px; height: 24px;
  border-radius: 50%;
  background: var(--orange);
  display: flex; align-items: center; justify-content: center;
  font-size: .6rem; font-weight: 700; color: #fff;
}
.mock-kpis { display: grid; grid-template-columns: repeat(3,1fr); gap: 8px; }
.mock-kpi {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 10px;
}
.mkpi-l { font-size: .6rem; color: var(--muted); margin-bottom: 2px; }
.mkpi-v { font-size: 1.1rem; font-weight: 800; color: var(--text); font-family: var(--font-d); margin-bottom: 6px; }
.mkpi-bar { height: 3px; background: var(--border); border-radius: 2px; overflow: hidden; }
.mkpi-fill { height: 100%; background: var(--orange); border-radius: 2px; }
.mock-chart {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 12px;
  flex: 1;
}
.mbar-row {
  display: flex;
  align-items: flex-end;
  gap: 6px;
  height: 100%;
  max-height: 80px;
}
.mbar-col { flex: 1; display: flex; flex-direction: column; align-items: center; gap: 4px; height: 100%; justify-content: flex-end; }
.mbar { width: 100%; background: var(--orangeL); border-radius: 3px 3px 0 0; }
.mbar.hi { background: var(--orange); }
.mbar-col span { font-size: .52rem; color: var(--muted); }

/* ============================================
   DEMO STAGE (cycling app screens)
   ============================================ */
.demo-stage {
  flex: 1;
  position: relative;
  overflow: hidden;
  background: var(--off);
  display: flex;
  flex-direction: column;
}

/* Individual screens */
.dscreen {
  position: absolute;
  inset: 0;
  padding: 12px 14px 28px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  opacity: 0;
  transform: translateX(18px);
  transition: opacity .45s ease, transform .45s ease;
  pointer-events: none;
}
.dscreen.active {
  opacity: 1;
  transform: none;
  pointer-events: all;
}
.dscreen.exit {
  opacity: 0;
  transform: translateX(-18px);
}

/* Screen header */
.ds-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-shrink: 0;
}
.ds-title { font-size: .8rem; font-weight: 700; color: var(--text); }
.ds-sub   { font-size: .62rem; color: var(--muted); margin-top: 1px; }
.ds-btn {
  font-size: .62rem; font-weight: 700;
  background: var(--orange); color: #fff;
  border: none; border-radius: 5px;
  padding: 4px 10px; cursor: default;
  flex-shrink: 0;
}

/* Shared table */
.ds-table { display: flex; flex-direction: column; gap: 0; flex: 1; overflow: hidden; }
.dt-head {
  display: grid;
  grid-template-columns: 2fr .7fr .8fr 1fr;
  gap: 4px;
  padding: 5px 8px;
  font-size: .58rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .06em;
  color: var(--muted);
  border-bottom: 1px solid var(--border);
  flex-shrink: 0;
}
.dt-row {
  display: grid;
  grid-template-columns: 2fr .7fr .8fr 1fr;
  gap: 4px;
  align-items: center;
  padding: 6px 8px;
  border-bottom: 1px solid var(--border);
  background: var(--white);
  border-radius: 0;
}
.dt-row:hover { background: var(--off); }
.dt-name  { font-size: .68rem; font-weight: 600; color: var(--text); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.dt-owner { font-size: .62rem; color: var(--muted); }
.dt-badge {
  font-size: .55rem; font-weight: 700;
  padding: 2px 6px; border-radius: 4px;
  display: inline-block; white-space: nowrap;
}
.dt-badge.on     { background: rgba(22,163,74,.12);  color: #16A34A; }
.dt-badge.risk   { background: rgba(249,115,22,.12); color: var(--orange); }
.dt-badge.done   { background: rgba(37,99,235,.1);  color: var(--blue); }
.dt-badge.pending{ background: rgba(100,116,139,.1); color: #64748B; }
.dt-prog { display: flex; align-items: center; gap: 5px; font-size: .6rem; color: var(--muted); font-weight: 600; }
.dtp-bar { flex: 1; height: 4px; background: var(--border); border-radius: 3px; overflow: hidden; }
.dtp-bar span { display: block; height: 100%; background: var(--orange); border-radius: 3px; }
.dt-badge.done ~ .dtp-bar span, .dtp-bar span[style*="100%"] { background: var(--green); }

/* Risk level badges */
.risk-lvl {
  font-size: .55rem; font-weight: 800;
  padding: 2px 6px; border-radius: 4px;
  display: inline-block; white-space: nowrap;
}
.risk-lvl.high { background: rgba(239,68,68,.1);  color: #EF4444; }
.risk-lvl.med  { background: rgba(249,115,22,.1); color: var(--orange); }
.risk-lvl.low  { background: rgba(22,163,74,.1);  color: var(--green); }

/* Strategy Map */
.smap {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0;
  padding: 4px 0;
}
.smap-row {
  display: flex;
  justify-content: center;
  gap: 10px;
  width: 100%;
}
.smap-row.mid    { gap: 8px; }
.smap-row.bottom { gap: 6px; flex-wrap: wrap; }
.smap-connector-row {
  display: flex;
  justify-content: center;
  gap: 0;
  height: 14px;
  align-items: center;
}
.smap-connector-row.three {
  justify-content: space-around;
  width: 90%;
  margin: 0 auto;
}
.smap-vline {
  width: 1px; height: 14px;
  background: var(--border2);
}
.smap-node {
  font-size: .65rem; font-weight: 700;
  padding: 6px 12px;
  border-radius: 6px;
  color: #fff;
  text-align: center;
  white-space: nowrap;
}
.smap-node.root   { background: var(--navy); font-size: .72rem; padding: 7px 18px; }
.smap-node.orange { background: var(--orange); }
.smap-node.blue   { background: var(--blue); }
.smap-node.green  { background: var(--green); }
.smap-leaf {
  font-size: .58rem; font-weight: 600;
  padding: 4px 8px;
  border-radius: 5px;
  background: var(--white);
  border: 1px solid var(--border);
  color: var(--text2);
  white-space: nowrap;
}

/* Dashboard screen */
.ds-kpis {
  display: grid;
  grid-template-columns: repeat(3,1fr);
  gap: 7px;
  flex-shrink: 0;
}
.ds-kpi {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: 7px;
  padding: 9px;
}
.dskpi-v  { font-family: var(--font-d); font-size: 1.2rem; font-weight: 800; color: var(--text); line-height: 1; }
.dskpi-l  { font-size: .58rem; color: var(--muted); margin: 3px 0 6px; }
.dskpi-bar { height: 3px; background: var(--border); border-radius: 2px; overflow: hidden; }
.dskpi-bar div { height: 100%; background: var(--orange); border-radius: 2px; }

.ds-chart { background: var(--white); border: 1px solid var(--border); border-radius: 7px; padding: 10px; flex: 1; display: flex; flex-direction: column; gap: 8px; }
.dsc-label { font-size: .65rem; font-weight: 700; color: var(--muted); text-transform: uppercase; letter-spacing: .06em; }
.dsc-bars { display: flex; align-items: flex-end; gap: 6px; flex: 1; max-height: 68px; }
.dscb { flex: 1; display: flex; flex-direction: column; align-items: center; gap: 4px; height: 100%; justify-content: flex-end; }
.dscb-fill { width: 100%; background: var(--orangeL); border-radius: 3px 3px 0 0; }
.dscb-fill.hi { background: var(--orange); }
.dscb span { font-size: .52rem; color: var(--muted); }

/* AI Plan Generator screen */
.ai-badge {
  font-size: .6rem; font-weight: 800;
  background: linear-gradient(135deg,#F97316,#FBBF24);
  color: #fff; padding: 3px 9px;
  border-radius: 100px; letter-spacing: .04em; flex-shrink: 0;
}
.ai-prompt-box {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: 8px; padding: 10px; flex-shrink: 0;
}
.ai-prompt-label { font-size: .58rem; font-weight: 700; color: var(--muted); text-transform: uppercase; letter-spacing: .08em; margin-bottom: 6px; }
.ai-prompt-text  { font-size: .65rem; color: var(--text2); line-height: 1.5; margin-bottom: 8px; font-style: italic; }
.ai-generate-btn {
  background: var(--orange); color: #fff; border: none;
  border-radius: 5px; padding: 5px 12px;
  font-size: .65rem; font-weight: 700; cursor: default;
}
.ai-results { display: flex; flex-direction: column; gap: 5px; flex: 1; overflow: hidden; }
.ai-result-row {
  display: flex; align-items: center; gap: 8px;
  background: var(--white); border: 1px solid var(--border);
  border-radius: 6px; padding: 6px 9px;
}
.ai-persp {
  font-size: .58rem; font-weight: 700;
  padding: 2px 7px; border-radius: 4px; flex-shrink: 0;
}
.ai-persp.orange { background: var(--orangeL); color: var(--orange); }
.ai-persp.blue   { background: rgba(37,99,235,.1); color: var(--blue); }
.ai-persp.green  { background: rgba(22,163,74,.1); color: var(--green); }
.ai-obj { font-size: .65rem; color: var(--text2); font-weight: 500; }
.ai-actions { display: flex; gap: 8px; align-items: center; flex-shrink: 0; }
.ai-regen-btn {
  font-size: .65rem; font-weight: 600; color: var(--muted);
  background: var(--off); border: 1px solid var(--border);
  border-radius: 5px; padding: 4px 10px; cursor: default;
}

/* Insights screen */
.insights-grid { display: flex; flex-direction: column; gap: 7px; flex: 1; overflow: hidden; }
.insight-card {
  background: var(--white); border: 1px solid var(--border);
  border-left: 3px solid transparent;
  border-radius: 0 7px 7px 0; padding: 9px 11px;
  flex: 1;
}
.insight-card.high { border-left-color: #EF4444; }
.insight-card.warn { border-left-color: var(--orange); }
.insight-card.good { border-left-color: var(--green); }
.ins-top  { margin-bottom: 4px; }
.ins-pill { font-size: .58rem; font-weight: 700; border-radius: 100px; padding: 2px 7px; display: inline-block; }
.ins-pill.high { background: rgba(239,68,68,.1); color: #EF4444; }
.ins-pill.warn { background: var(--orangeL); color: var(--orange); }
.ins-pill.good { background: rgba(22,163,74,.1); color: var(--green); }
.ins-title { font-size: .72rem; font-weight: 700; color: var(--text); margin-bottom: 3px; }
.ins-desc  { font-size: .62rem; color: var(--muted); line-height: 1.45; margin-bottom: 4px; }
.ins-link  { font-size: .62rem; font-weight: 700; color: var(--orange); cursor: default; }

/* Analytics screen */
.analytics-stats {
  display: grid; grid-template-columns: repeat(4,1fr);
  gap: 6px; flex-shrink: 0;
}
.astat {
  background: var(--white); border: 1px solid var(--border);
  border-radius: 7px; padding: 8px; text-align: center;
}
.astat-v {
  font-family: var(--font-d); font-size: 1.3rem;
  font-weight: 800; color: var(--text); line-height: 1;
}
.astat-l { font-size: .58rem; color: var(--muted); margin-top: 2px; }
.astat.good .astat-v { color: var(--green); }
.astat.warn .astat-v { color: var(--orange); }
.astat.high .astat-v { color: #EF4444; }
.analytics-body {
  display: grid; grid-template-columns: 1fr 100px;
  gap: 8px; flex: 1; overflow: hidden; min-height: 0;
}
.analytics-chart {
  background: var(--white); border: 1px solid var(--border);
  border-radius: 7px; padding: 10px;
  display: flex; flex-direction: column; gap: 6px;
}
.ac-label { font-size: .62rem; font-weight: 700; color: var(--muted); text-transform: uppercase; letter-spacing: .06em; }
.ac-area { flex: 1; min-height: 0; }
.ac-area svg { width: 100%; height: 100%; display: block; }
.ac-labels {
  display: flex; justify-content: space-between;
  font-size: .52rem; color: var(--muted);
}
.analytics-ring {
  background: var(--white); border: 1px solid var(--border);
  border-radius: 7px; padding: 10px;
  display: flex; flex-direction: column; align-items: center; gap: 6px;
}
.ring-wrap { position: relative; width: 64px; height: 64px; }
.ring-wrap svg { width: 64px; height: 64px; transform: rotate(-90deg); }
.ring-val {
  position: absolute; inset: 0;
  display: flex; align-items: center; justify-content: center;
  font-family: var(--font-d); font-size: .85rem;
  font-weight: 800; color: var(--text);
}

/* Progress bar at bottom of demo stage */
.demo-progress {
  position: absolute;
  bottom: 0; left: 0; right: 0;
  height: 3px;
  background: var(--border);
  z-index: 10;
}
.demo-progress-fill {
  height: 100%;
  width: 0%;
  background: var(--orange);
  border-radius: 0 2px 2px 0;
  transition: width .1s linear;
}

/* Floating notification cards */
.hero-float-card {
  position: absolute;
  display: flex; align-items: center; gap: 10px;
  background: rgba(255,255,255,0.95);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border: 1px solid rgba(255,255,255,0.7);
  border-radius: var(--r);
  padding: 11px 15px;
  font-size: .76rem;
  font-weight: 600;
  color: var(--text);
  box-shadow: 0 4px 24px rgba(0,0,0,.13), 0 1px 4px rgba(0,0,0,.06);
  white-space: nowrap;
  pointer-events: none;
  /* JS controls transform — no CSS animation on these */
  transition: transform .42s cubic-bezier(.4,0,.2,1), opacity .38s ease;
  will-change: transform, opacity;
}
.card-1 {
  bottom: 72px;
  left: -8px;
}
.card-2 {
  top: 90px;
  right: 8px;
}
.hero-float-card svg { flex-shrink: 0; }
/* float1 removed — cards animated by JS */
.pulse-dot {
  width: 8px; height: 8px; border-radius: 50%;
  background: var(--orange);
  animation: pulse 1.8s infinite;
}
@keyframes pulse {
  0%,100% { opacity:1; transform: scale(1); }
  50%      { opacity:.5; transform: scale(1.6); }
}

/* ============================================
   METRICS BAND
   ============================================ */
.metrics {
  background: var(--dark);
  padding: 52px 28px;
  border-top: none;
  border-bottom: none;
}
.metrics-wrap {
  max-width: 900px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0;
  flex-wrap: wrap;
}
.metric {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  padding: 0 52px;
}
.m-num {
  font-family: var(--font-d);
  font-size: 3rem;
  font-weight: 800;
  color: var(--orange);
}
.m-num.m-text {
  font-size: 1.6rem;
  letter-spacing: -.02em;
  line-height: 1.1;
  color: var(--orange);
  line-height: 1;
  margin-bottom: 8px;
  letter-spacing: -.04em;
}
.m-lbl {
  font-size: .82rem;
  color: rgba(255,255,255,.5);
  font-weight: 500;
  max-width: 160px;
  line-height: 1.5;
}
.m-sep {
  width: 1px; height: 52px;
  background: rgba(255,255,255,.1);
  flex-shrink: 0;
}

/* ============================================
   LOGO CLOUD
   ============================================ */
.logos {
  padding: 56px 0;
  border-bottom: 1px solid var(--border);
}
.logos-label {
  text-align: center;
  font-size: .75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: .1em;
  color: var(--muted);
  margin-bottom: 28px;
}
.logos-overflow {
  overflow: hidden;
  mask-image: linear-gradient(90deg, transparent, black 12%, black 88%, transparent);
  -webkit-mask-image: linear-gradient(90deg, transparent, black 12%, black 88%, transparent);
}
.logos-track {
  display: flex;
  width: max-content;
  gap: 64px;
  animation: marquee2 24s linear infinite;
}
.logos-track:hover { animation-play-state: paused; }
.logos-track span {
  font-family: var(--font-d);
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--border2);
  letter-spacing: -.02em;
  white-space: nowrap;
  transition: color var(--tr);
  cursor: default;
}
.logos-track span:hover { color: var(--muted); }
@keyframes marquee2 {
  from { transform: translateX(0); }
  to   { transform: translateX(-50%); }
}

/* ============================================
   USE CASES
   ============================================ */
.use-cases {
  padding: 100px 0;
  background: var(--off);
}
.uc-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}
.uc-card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
  padding: 28px 26px;
  transition: all var(--tr);
  position: relative;
  overflow: hidden;
}
.uc-card::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 2px;
  background: var(--orange);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform .35s ease;
}
.uc-card:hover { box-shadow: var(--shadow-lg); transform: translateY(-4px); border-color: var(--border2); }
.uc-card:hover::before { transform: scaleX(1); }
.uc-icon {
  width: 44px; height: 44px;
  background: var(--orangeL);
  border-radius: var(--r-sm);
  display: flex; align-items: center; justify-content: center;
  color: var(--orange);
  margin-bottom: 16px;
  transition: all var(--tr);
}
.uc-card:hover .uc-icon { background: var(--orange); color: #fff; }
.uc-card h3 {
  font-family: var(--font-d);
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--text);
  margin-bottom: 10px;
  letter-spacing: -.02em;
}
.uc-card p { font-size: .88rem; color: var(--muted); line-height: 1.7; margin-bottom: 16px; }
.uc-link {
  font-size: .82rem;
  font-weight: 600;
  color: var(--orange);
  transition: gap var(--tr);
  display: inline-block;
}
.uc-link:hover { letter-spacing: .02em; }

/* ============================================
   FEATURES (TABBED)
   ============================================ */
.features { padding: 100px 0; background: var(--white); }
.feat-layout {
  display: grid;
  grid-template-columns: 320px 1fr;
  gap: 48px;
  align-items: start;
}
.feat-tabs { display: flex; flex-direction: column; gap: 8px; }
.ftab {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  padding: 18px 20px;
  background: none;
  border: 1.5px solid var(--border);
  border-radius: var(--r-lg);
  text-align: left;
  transition: all var(--tr);
  cursor: pointer;
}
.ftab:hover { border-color: var(--border2); background: var(--off); }
.ftab.active {
  border-color: var(--orange);
  background: var(--orangeL);
}
.ftab-icon {
  width: 34px; height: 34px;
  border-radius: 8px;
  background: var(--off2);
  display: flex; align-items: center; justify-content: center;
  color: var(--muted);
  flex-shrink: 0;
  transition: all var(--tr);
}
.ftab.active .ftab-icon { background: var(--orange); color: #fff; }
.ftab-title {
  font-size: .9rem;
  font-weight: 700;
  color: var(--text);
  margin-bottom: 3px;
}
.ftab-sub { font-size: .78rem; color: var(--muted); }

.feat-panels { position: relative; }
.fpanel { display: none; }
.fpanel.active {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 36px;
  align-items: center;
  animation: fadeIn .4s ease;
}
@keyframes fadeIn { from { opacity:0; transform: translateY(10px); } to { opacity:1; transform: none; } }
.fpanel-text h3 {
  font-family: var(--font-d);
  font-size: 1.5rem;
  font-weight: 800;
  color: var(--text);
  letter-spacing: -.03em;
  margin-bottom: 14px;
  line-height: 1.2;
}
.fpanel-text p { font-size: .92rem; color: var(--muted); line-height: 1.75; margin-bottom: 22px; }
.fpanel-list { display: flex; flex-direction: column; gap: 10px; }
.fpanel-list li {
  display: flex; align-items: center; gap: 10px;
  font-size: .88rem;
  color: var(--text2);
  font-weight: 500;
}

/* Feature Visual Cards */
.fpanel-visual {}
.fvis-card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
  padding: 20px;
  box-shadow: var(--shadow);
}
.fvis-header {
  font-size: .7rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .08em;
  color: var(--muted);
  margin-bottom: 16px;
  padding-bottom: 12px;
  border-bottom: 1px solid var(--border);
}
.fvis-item {
  display: flex; align-items: flex-start; gap: 12px;
  margin-bottom: 14px;
}
.fvis-item:last-child { margin-bottom: 0; }
.fvis-dot {
  width: 8px; height: 8px;
  border-radius: 50%;
  flex-shrink: 0;
  margin-top: 4px;
}
.fvis-dot.orange { background: var(--orange); }
.fvis-dot.green  { background: var(--green); }
.fvis-dot.blue   { background: var(--blue); }
.fvis-title { font-size: .82rem; font-weight: 600; color: var(--text); margin-bottom: 6px; }
.fvis-prog { height: 4px; background: var(--border); border-radius: 3px; overflow: hidden; margin-bottom: 4px; }
.fvis-fill { height: 100%; background: var(--orange); border-radius: 3px; }
.fvis-fill.green { background: var(--green); }
.fvis-fill.blue  { background: var(--blue); }
.fvis-meta { font-size: .7rem; color: var(--muted); }

/* Alignment tree panel */
.align-card {}
.align-tree { text-align: center; padding: 8px 0; }
.atree-root {
  display: inline-block;
  background: var(--navy);
  color: #fff;
  font-size: .75rem;
  font-weight: 700;
  padding: 8px 16px;
  border-radius: var(--r-sm);
  margin-bottom: 20px;
  position: relative;
}
.atree-root::after {
  content: '';
  position: absolute;
  bottom: -14px; left: 50%;
  width: 1px; height: 14px;
  background: var(--border2);
}
.atree-branches {
  display: flex;
  justify-content: center;
  gap: 16px;
}
.atree-branch {
  display: flex; flex-direction: column;
  align-items: center; gap: 8px;
}
.atree-node {
  font-size: .72rem; font-weight: 700; color: #fff;
  padding: 6px 12px; border-radius: var(--r-sm);
}
.atree-node.orange { background: var(--orange); }
.atree-node.blue   { background: var(--blue); }
.atree-node.green  { background: var(--green); }
.atree-leaf {
  font-size: .68rem;
  color: var(--muted);
  background: var(--off);
  border: 1px solid var(--border);
  padding: 4px 10px;
  border-radius: 4px;
}

/* KPI panel */
.kpi-list { display: flex; flex-direction: column; gap: 12px; }
.kpi-row {
  display: flex; align-items: center; gap: 10px;
  font-size: .78rem;
}
.kpi-row > span:first-child { width: 110px; flex-shrink: 0; font-weight: 500; color: var(--text2); }
.kpi-bar { flex: 1; height: 5px; background: var(--off2); border-radius: 3px; overflow: hidden; }
.kpi-fill { height: 100%; background: var(--orange); border-radius: 3px; }
.kpi-fill.warn { background: #EF4444; }
.kpi-pct { font-size: .72rem; font-weight: 700; width: 36px; text-align: right; }
.kpi-pct.up   { color: var(--green); }
.kpi-pct.warn { color: #EF4444; }

/* Dashboard panel */
.db-card {}
.db-widgets {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: 10px;
}
.db-widget {
  background: var(--off);
  border: 1px solid var(--border);
  border-radius: var(--r-sm);
  padding: 12px;
  text-align: center;
}
.db-widget.big { grid-column: 1 / -1; background: var(--orangeL); border-color: var(--orangeB); }
.dbw-val {
  font-family: var(--font-d);
  font-size: 1.6rem; font-weight: 800;
  color: var(--text); letter-spacing: -.04em;
}
.db-widget.big .dbw-val { font-size: 2rem; color: var(--orange); }
.dbw-lbl { font-size: .65rem; color: var(--muted); margin-top: 2px; }

/* ============================================
   PROOF BAND
   ============================================ */
.proof-band {
  background: var(--off);
  padding: 90px 0;
  overflow: hidden;
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}
.proof-band .wrap {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 72px;
  align-items: center;
}
.proof-left {}
.proof-stat {
  font-family: var(--font-d);
  font-size: 6rem;
  font-weight: 800;
  color: var(--orange);
  line-height: 1;
  letter-spacing: -.06em;
  margin-bottom: 16px;
}
.proof-desc {
  font-size: 1.05rem;
  color: var(--muted);
  line-height: 1.7;
  margin-bottom: 36px;
}
.proof-quote {
  border-left: 3px solid var(--orange);
  padding-left: 20px;
  background: var(--white);
  border-radius: 0 var(--r) var(--r) 0;
  padding: 18px 20px;
  border: 1px solid var(--border);
  border-left: 3px solid var(--orange);
}
.proof-quote p {
  font-size: .92rem;
  color: var(--text2);
  line-height: 1.75;
  font-style: italic;
  margin-bottom: 16px;
}
.proof-author {
  display: flex; align-items: center; gap: 12px;
}
.proof-avatar {
  width: 36px; height: 36px;
  border-radius: 50%;
  background: var(--orange);
  display: flex; align-items: center; justify-content: center;
  font-size: .68rem; font-weight: 700; color: #fff;
  flex-shrink: 0;
}
.proof-author strong { display: block; font-size: .88rem; color: var(--text); }
.proof-author span { font-size: .75rem; color: var(--muted); }

/* Proof cards */
.proof-cards { display: flex; flex-direction: column; gap: 12px; }
.pcard {
  display: flex; align-items: center; gap: 14px;
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--r);
  padding: 16px 18px;
  box-shadow: var(--shadow);
}
.pcard-icon {
  width: 34px; height: 34px;
  border-radius: 8px;
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0;
}
.pcard-icon.green  { background: rgba(22,163,74,.12); color: var(--green); }
.pcard-icon.orange { background: var(--orangeL); color: var(--orange); }
.pcard-icon.blue   { background: rgba(37,99,235,.1); color: var(--blue); }
.pcard-title { font-size: .82rem; font-weight: 700; color: var(--text); }
.pcard-sub { font-size: .72rem; color: var(--muted); margin-top: 2px; }
.pcard-pct {
  margin-left: auto;
  font-family: var(--font-d);
  font-size: 1rem; font-weight: 800;
  color: var(--orange);
}
.pcard-pct.warn { color: #F97316; }
.pcard-pct.good { color: var(--green); }
.proof-mini-stats {
  display: flex;
  gap: 20px;
  padding: 14px 18px;
  background: var(--orangeL);
  border: 1px solid var(--orangeB);
  border-radius: var(--r);
  flex: none;
}
.proof-mini-stats div {
  font-size: .78rem;
  color: var(--text2);
}
.proof-mini-stats span {
  font-family: var(--font-d);
  font-weight: 800;
  font-size: 1.1rem;
  color: var(--orange);
  margin-right: 6px;
}

/* ============================================
   INTEGRATIONS
   ============================================ */
.integrations { padding: 100px 0; background: var(--off); }
.int-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  justify-content: center;
}
.int-chip {
  display: flex; align-items: center; gap: 8px;
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: 100px;
  padding: 10px 18px;
  font-size: .85rem;
  font-weight: 600;
  color: var(--text2);
  transition: all var(--tr);
  cursor: default;
}
.int-chip:hover { border-color: var(--orange); color: var(--orange); background: var(--orangeL); }
.int-chip.more {
  background: var(--orangeL);
  border-color: var(--orangeB);
  color: var(--orange);
  font-weight: 700;
}

/* ============================================
   TESTIMONIALS
   ============================================ */
.testi-section { padding: 100px 0 100px; background: var(--white); overflow: hidden; }
.testi-overflow {
  overflow: hidden;
  mask-image: linear-gradient(90deg, transparent, black 8%, black 92%, transparent);
  -webkit-mask-image: linear-gradient(90deg, transparent, black 8%, black 92%, transparent);
  margin-top: 48px;
}
.testi-track {
  display: flex;
  gap: 22px;
  width: max-content;
  animation: testi-scroll 32s linear infinite;
}
.testi-track:hover { animation-play-state: paused; }
@keyframes testi-scroll {
  from { transform: translateX(0); }
  to   { transform: translateX(-50%); }
}
.testi-card {
  background: var(--off);
  border: 1.5px solid var(--border);
  border-radius: var(--r-lg);
  padding: 28px 26px;
  transition: all var(--tr);
  position: relative;
  width: 360px;
  flex-shrink: 0;
}
.testi-card:hover { box-shadow: var(--shadow-lg); border-color: var(--border2); transform: translateY(-3px); }
.testi-card.feat {
  background: var(--white);
  border-color: var(--orange);
  box-shadow: 0 0 0 1px var(--orange), 0 8px 32px rgba(249,115,22,.12);
}
.tcard-logo {
  font-family: var(--font-d);
  font-size: .8rem; font-weight: 800;
  color: var(--muted);
  margin-bottom: 14px;
  letter-spacing: .04em;
  text-transform: uppercase;
}
.testi-card p {
  font-size: .9rem;
  color: var(--text2);
  line-height: 1.8;
  margin-bottom: 22px;
}
.tcard-author {
  display: flex; align-items: center; gap: 12px;
}
.tav {
  width: 36px; height: 36px;
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-size: .65rem; font-weight: 700; color: #fff;
  flex-shrink: 0;
}
.tav.orange { background: var(--orange); }
.tav.blue   { background: var(--blue); }
.tav.green  { background: var(--green); }
.tcard-author strong { display: block; font-size: .85rem; color: var(--text); }
.tcard-author span { font-size: .75rem; color: var(--muted); }

/* ============================================
   PRICING
   ============================================ */
.pricing { padding: 100px 0; background: var(--off); }
.price-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  align-items: start;
}
.price-card {
  background: var(--white);
  border: 1.5px solid var(--border);
  border-radius: var(--r-lg);
  padding: 32px 28px;
  transition: all var(--tr);
  position: relative;
}
.price-card:hover { box-shadow: var(--shadow-lg); }
.price-card.featured {
  border-color: var(--orange);
  box-shadow: 0 0 0 1px var(--orange), 0 8px 32px rgba(249,115,22,.1);
}
.pc-badge {
  position: absolute;
  top: -12px; left: 50%; transform: translateX(-50%);
  background: var(--orange);
  color: #fff;
  font-size: .68rem; font-weight: 700;
  padding: 4px 14px;
  border-radius: 100px;
  text-transform: uppercase;
  letter-spacing: .06em;
  white-space: nowrap;
}
.pc-name {
  font-size: .75rem; font-weight: 700;
  text-transform: uppercase; letter-spacing: .1em;
  color: var(--muted); margin-bottom: 12px;
}
.pc-price {
  font-family: var(--font-d);
  font-size: 2.8rem; font-weight: 800;
  color: var(--text); letter-spacing: -.04em;
  line-height: 1; margin-bottom: 10px;
}
.pc-price sup { font-size: 1.4rem; vertical-align: super; font-weight: 600; }
.pc-price small { font-size: .95rem; color: var(--muted); font-weight: 500; letter-spacing: 0; }
.pc-price.custom { font-size: 2rem; }
.pc-desc { font-size: .85rem; color: var(--muted); margin-bottom: 22px; line-height: 1.6; }
.pc-btn {
  display: block; text-align: center;
  padding: 11px; border-radius: var(--r);
  font-weight: 600; font-size: .88rem;
  border: 1.5px solid var(--border2);
  color: var(--text);
  transition: all var(--tr);
  margin-bottom: 22px;
}
.pc-btn:hover { border-color: var(--orange); color: var(--orange); background: var(--orangeL); }
.pc-btn.primary {
  background: var(--orange); color: #fff;
  border-color: var(--orange);
  position: relative; overflow: hidden;
}
.pc-btn.primary::after {
  content: ''; position: absolute;
  top: 0; left: -110%; width: 60%; height: 100%;
  background: linear-gradient(90deg,transparent,rgba(255,255,255,.22),transparent);
  transform: skewX(-18deg); transition: left .5s ease;
}
.pc-btn.primary:hover::after { left: 150%; }
.pc-btn.primary:hover { background: var(--orange2); border-color: var(--orange2); box-shadow: 0 4px 16px rgba(249,115,22,.3); }
.pc-divider { height: 1px; background: var(--border); margin-bottom: 20px; }
.pc-list { display: flex; flex-direction: column; gap: 9px; }
.pc-list li {
  font-size: .85rem; color: var(--text2);
  padding-left: 20px; position: relative;
}
.pc-list li::before {
  content: '✓'; position: absolute; left: 0;
  color: var(--orange); font-weight: 700;
}

/* ============================================
   CTA SECTION
   ============================================ */
.cta-section {
  padding: 90px 0;
  background: var(--white);
  border-top: 1px solid var(--border);
}
.cta-box {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 48px;
  flex-wrap: wrap;
  background: var(--orangeL);
  border: 1px solid var(--orangeB);
  border-radius: var(--r-xl);
  padding: 52px 56px;
}
.cta-left h2 {
  font-family: 'Bricolage Grotesque', sans-serif;
  font-size: clamp(1.8rem, 3.5vw, 2.8rem);
  font-weight: 800;
  letter-spacing: -.03em;
  color: var(--text);
  line-height: 1.15;
  margin-bottom: 12px;
}
.cta-left p {
  font-size: 1rem;
  color: var(--muted);
  max-width: 420px;
  line-height: 1.7;
}
.cta-right {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 12px;
  flex-shrink: 0;
}
.cta-note {
  font-size: .75rem;
  color: var(--muted);
}

/* ============================================
   FEATURE PANEL ANIMATIONS
   ============================================ */

/* Base: fills start at 0, animate to --w */
.fvis-fill, .kpi-fill { width: 0; }

/* Panel entrance */
@keyframes fpanelIn {
  from { opacity: 0; transform: translateX(16px); }
  to   { opacity: 1; transform: none; }
}
.fpanel.active { animation: fpanelIn .4s ease both; }

/* Progress / KPI bars fill left to right */
@keyframes fillBar {
  from { width: 0; }
  to   { width: var(--w, 80%); }
}
.fpanel.active .fvis-fill {
  animation: fillBar .9s cubic-bezier(.4,0,.2,1) both;
}
.fpanel.active .fvis-item:nth-child(1) .fvis-fill { animation-delay: .35s; }
.fpanel.active .fvis-item:nth-child(2) .fvis-fill { animation-delay: .55s; }
.fpanel.active .fvis-item:nth-child(3) .fvis-fill { animation-delay: .75s; }

.fpanel.active .kpi-fill {
  animation: fillBar .8s cubic-bezier(.4,0,.2,1) both;
}
.fpanel.active .kpi-row:nth-child(1) .kpi-fill { animation-delay: .2s; }
.fpanel.active .kpi-row:nth-child(2) .kpi-fill { animation-delay: .38s; }
.fpanel.active .kpi-row:nth-child(3) .kpi-fill { animation-delay: .56s; }
.fpanel.active .kpi-row:nth-child(4) .kpi-fill { animation-delay: .74s; }

/* Goal / KPI rows slide up */
@keyframes rowIn {
  from { opacity: 0; transform: translateY(10px); }
  to   { opacity: 1; transform: none; }
}
.fpanel.active .fvis-item {
  opacity: 0;
  animation: rowIn .45s ease both;
}
.fpanel.active .fvis-item:nth-child(1) { animation-delay: .2s; }
.fpanel.active .fvis-item:nth-child(2) { animation-delay: .36s; }
.fpanel.active .fvis-item:nth-child(3) { animation-delay: .52s; }

.fpanel.active .kpi-row {
  opacity: 0;
  animation: rowIn .4s ease both;
}
.fpanel.active .kpi-row:nth-child(1) { animation-delay: .1s; }
.fpanel.active .kpi-row:nth-child(2) { animation-delay: .24s; }
.fpanel.active .kpi-row:nth-child(3) { animation-delay: .38s; }
.fpanel.active .kpi-row:nth-child(4) { animation-delay: .52s; }

/* Alignment tree: root → branches → leaves cascade in */
@keyframes popIn {
  from { opacity: 0; transform: scale(.5); }
  60%  { transform: scale(1.08); }
  to   { opacity: 1; transform: scale(1); }
}
@keyframes lineGrow {
  from { height: 0; opacity: 0; }
  to   { height: 14px; opacity: 1; }
}
.fpanel.active .atree-root          { animation: popIn .4s .1s ease both; }
.fpanel.active .smap-vline          { animation: lineGrow .25s ease both; }
.fpanel.active .smap-connector-row.three .smap-vline:nth-child(1) { animation-delay: .42s; }
.fpanel.active .smap-connector-row.three .smap-vline:nth-child(2) { animation-delay: .52s; }
.fpanel.active .smap-connector-row.three .smap-vline:nth-child(3) { animation-delay: .62s; }
.fpanel.active .atree-branch:nth-child(1) .atree-node { animation: popIn .4s .48s ease both; }
.fpanel.active .atree-branch:nth-child(2) .atree-node { animation: popIn .4s .60s ease both; }
.fpanel.active .atree-branch:nth-child(3) .atree-node { animation: popIn .4s .72s ease both; }
.fpanel.active .atree-branch:nth-child(1) .atree-leaf { animation: popIn .35s .72s ease both; }
.fpanel.active .atree-branch:nth-child(2) .atree-leaf { animation: popIn .35s .84s ease both; }
.fpanel.active .atree-branch:nth-child(3) .atree-leaf { animation: popIn .35s .96s ease both; }
/* start hidden */
.atree-root, .atree-node, .atree-leaf, .smap-vline { opacity: 0; }

/* Dashboard widgets pulse in */
@keyframes pulseIn {
  from { opacity: 0; transform: scale(.75); }
  65%  { transform: scale(1.05); }
  to   { opacity: 1; transform: scale(1); }
}
.fpanel.active .db-widget {
  opacity: 0;
  animation: pulseIn .5s ease both;
}
.fpanel.active .db-widget:nth-child(1) { animation-delay: .15s; }
.fpanel.active .db-widget:nth-child(2) { animation-delay: .35s; }
.fpanel.active .db-widget:nth-child(3) { animation-delay: .55s; }

/* Feature list items stagger in */
.fpanel.active .fpanel-list li {
  opacity: 0;
  animation: rowIn .4s ease both;
}
.fpanel.active .fpanel-list li:nth-child(1) { animation-delay: .05s; }
.fpanel.active .fpanel-list li:nth-child(2) { animation-delay: .18s; }
.fpanel.active .fpanel-list li:nth-child(3) { animation-delay: .31s; }

/* ============================================
   THOUGHT LEADERS
   ============================================ */
.thought-leaders {
  padding: 100px 0;
  background: var(--white);
  border-bottom: 1px solid var(--border);
}
.tl-inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 72px;
  align-items: start;
}
.tl-heading {
  font-family: 'Bricolage Grotesque', sans-serif;
  font-size: clamp(2rem, 3.5vw, 2.8rem);
  font-weight: 800;
  letter-spacing: -.03em;
  line-height: 1.15;
  color: var(--text);
  margin-bottom: 16px;
}
.tl-desc {
  font-size: .97rem;
  color: var(--muted);
  line-height: 1.8;
  margin-bottom: 36px;
}
.tl-creds { display: flex; flex-direction: column; gap: 0; }
.tl-cred {
  display: flex; align-items: center; gap: 20px;
  padding: 16px 0; border-top: 1px solid var(--border);
}
.tl-cred:last-child { border-bottom: 1px solid var(--border); }
.tl-num {
  font-family: var(--font-d);
  font-size: 2.2rem; font-weight: 800;
  color: var(--orange); line-height: 1; min-width: 64px;
}
.tl-lbl { font-size: .88rem; color: var(--text2); font-weight: 500; }
.tl-pillar {
  padding: 24px 0; border-top: 1px solid var(--border);
  position: relative; padding-left: 0;
  transition: padding-left .3s ease;
}
.tl-pillar:last-child { border-bottom: 1px solid var(--border); }
.tl-pillar::before {
  content: '';
  position: absolute; left: 0; top: 0;
  width: 3px; height: 0;
  background: var(--orange); border-radius: 2px;
  transition: height .35s cubic-bezier(.4,0,.2,1);
}
.tl-pillar:hover { padding-left: 14px; }
.tl-pillar:hover::before { height: 100%; }
.tl-pillar-num {
  font-size: .7rem; font-weight: 700; color: var(--orange);
  letter-spacing: .1em; text-transform: uppercase; margin-bottom: 8px;
}
.tl-pillar h3 {
  font-family: var(--font-d);
  font-size: 1.05rem; font-weight: 700;
  color: var(--text); margin-bottom: 8px; letter-spacing: -.02em;
  transition: color .25s ease;
}
.tl-pillar:hover h3 { color: var(--orange); }
.tl-pillar p { font-size: .88rem; color: var(--muted); line-height: 1.75; }
@media (max-width: 768px) {
  .tl-inner { grid-template-columns: 1fr; gap: 40px; }
}

/* Wave dividers between dark/light sections */
.wave2 { display: block; line-height: 0; overflow: hidden; }
.wave2 svg { display: block; width: 100%; height: 56px; }

/* ============================================
   FAQ
   ============================================ */
.faq2 { padding: 100px 0; background: var(--off); }
.faq-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  justify-content: center;
  margin-bottom: 32px;
}
.faq-tab {
  font-family: var(--font-body);
  font-size: 13px;
  font-weight: 600;
  padding: 8px 18px;
  border-radius: 100px;
  border: 1px solid var(--border2);
  background: var(--white);
  color: var(--muted);
  cursor: pointer;
  transition: all 0.2s ease;
}
.faq-tab:hover { color: var(--orange); border-color: var(--orange); background: var(--white); }
.faq-tab.active {
  background: var(--orange);
  border-color: var(--orange);
  color: #fff;
}
.faq2-list { max-width: 720px; margin: 0 auto; display: flex; flex-direction: column; gap: 10px; }
.faq2-item {
  background: var(--white);
  border: 1.5px solid var(--border);
  border-radius: var(--r-lg);
  overflow: hidden;
  transition: border-color var(--tr);
}
.faq2-item.open { border-color: var(--orange); }
.faq2-q {
  width: 100%; display: flex; align-items: center;
  justify-content: space-between; gap: 16px;
  padding: 20px 24px; background: none; border: none;
  color: var(--text); font-family: 'General Sans', sans-serif;
  font-size: .95rem; font-weight: 600; text-align: left;
  cursor: pointer; transition: color var(--tr);
}
.faq2-q:hover { color: var(--orange); }
.faq2-ico { flex-shrink: 0; color: var(--muted); transition: transform var(--tr), color var(--tr); }
.faq2-item.open .faq2-ico { transform: rotate(180deg); color: var(--orange); }
.faq2-a { max-height: 0; overflow: hidden; transition: max-height .38s cubic-bezier(.4,0,.2,1); }
.faq2-item.open .faq2-a { max-height: 220px; }
.faq2-a p { padding: 0 24px 20px; font-size: .9rem; color: var(--muted); line-height: 1.8; }

/* ============================================
   DEMO MODAL
   ============================================ */
.demo-modal-overlay {
  position: fixed; inset: 0; z-index: 900;
  background: rgba(10,8,6,.6);
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
  display: flex; align-items: center; justify-content: center;
  padding: 20px;
  opacity: 0; pointer-events: none;
  transition: opacity .25s ease;
}
.demo-modal-overlay.open {
  opacity: 1; pointer-events: all;
}
.demo-modal {
  background: var(--white);
  border: 1.5px solid var(--border);
  border-radius: 20px;
  padding: 40px;
  width: 100%; max-width: 540px;
  max-height: 90vh; overflow-y: auto;
  position: relative;
  transform: translateY(20px);
  transition: transform .3s cubic-bezier(.22,1,.36,1);
}
.demo-modal-overlay.open .demo-modal { transform: translateY(0); }
.demo-modal-close {
  position: absolute; top: 16px; right: 16px;
  width: 36px; height: 36px; border-radius: 50%;
  background: var(--off); border: none;
  display: flex; align-items: center; justify-content: center;
  cursor: pointer; color: var(--muted);
  transition: background var(--tr), color var(--tr);
}
.demo-modal-close:hover { background: var(--border); color: var(--text); }
.demo-modal-head { margin-bottom: 28px; }
.demo-modal-head h2 {
  font-family: 'Bricolage Grotesque', sans-serif;
  font-size: clamp(1.5rem, 3vw, 2rem);
  font-weight: 800; color: var(--text);
  letter-spacing: -.03em;
  margin: 6px 0 8px; line-height: 1.2;
}
.demo-modal-head p { font-size: .9rem; color: var(--muted); line-height: 1.7; }
.demo-form { display: flex; flex-direction: column; gap: 16px; }
.demo-form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.demo-field { display: flex; flex-direction: column; gap: 6px; }
.demo-field label { font-size: .82rem; font-weight: 600; color: var(--text); }
.demo-field label span { color: var(--orange); }
.demo-field input,
.demo-field select,
.demo-field textarea {
  padding: 10px 14px;
  border: 1.5px solid var(--border);
  border-radius: var(--r);
  font-family: 'General Sans', sans-serif;
  font-size: .9rem; color: var(--text);
  background: var(--white);
  transition: border-color var(--tr), box-shadow var(--tr);
  outline: none;
}
.demo-field input::placeholder,
.demo-field textarea::placeholder { color: var(--muted); }
.demo-field input:focus,
.demo-field select:focus,
.demo-field textarea:focus {
  border-color: var(--orange);
  box-shadow: 0 0 0 3px rgba(249,115,22,.1);
}
.demo-field input.error,
.demo-field select.error,
.demo-field textarea.error { border-color: #EF4444; }
.demo-field textarea { resize: vertical; min-height: 90px; }
.demo-submit {
  margin-top: 4px;
  background: var(--orange); color: #fff;
  border: none; border-radius: var(--r);
  padding: 13px 28px; font-size: .95rem; font-weight: 600;
  font-family: 'General Sans', sans-serif;
  cursor: pointer; width: 100%;
  transition: background var(--tr), box-shadow var(--tr);
}
.demo-submit:hover { background: var(--orange2); box-shadow: 0 4px 20px rgba(249,115,22,.35); }
.demo-submit:disabled { opacity: .6; cursor: not-allowed; }
.demo-privacy { font-size: .78rem; color: var(--muted); text-align: center; margin-top: 4px; }
.demo-success {
  text-align: center; padding: 20px 0;
}
.demo-success-icon {
  width: 64px; height: 64px; border-radius: 50%;
  background: rgba(249,115,22,.08);
  display: flex; align-items: center; justify-content: center;
  margin: 0 auto 20px;
}
.demo-success h3 {
  font-family: var(--font-d); font-size: 1.3rem;
  font-weight: 700; color: var(--text); margin-bottom: 10px;
}
.demo-success p { font-size: .9rem; color: var(--muted); line-height: 1.7; }
@media (max-width: 540px) {
  .demo-modal { padding: 28px 20px; }
  .demo-form-row { grid-template-columns: 1fr; }
}

/* ============================================
   FOOTER
   ============================================ */
.footer {
  background: var(--dark);
  border-top: none;
  padding: 64px 0 0;
}
.foot-main {
  display: grid;
  grid-template-columns: 220px 1fr;
  gap: 60px;
  padding-bottom: 48px;
  border-bottom: 1px solid rgba(255,255,255,.08);
}
.flogo { margin-bottom: 10px; }
.flogo-img { height: 30px; width: auto; display: block; }
.foot-brand p {
  font-size: .82rem; color: rgba(255,255,255,.45);
  line-height: 1.65; margin-bottom: 0;
}
.fsocial { display: flex; gap: 8px; }
.fsocial a {
  width: 32px; height: 32px;
  border-radius: var(--r-sm);
  border: 1px solid rgba(255,255,255,.1);
  background: rgba(255,255,255,.07);
  display: flex; align-items: center; justify-content: center;
  color: rgba(255,255,255,.45);
  transition: all var(--tr);
}
.fsocial a:hover { color: var(--orange); border-color: var(--orangeB); background: var(--orangeL); }
.fcols { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; }
.fcol h4 {
  font-size: .75rem; font-weight: 700;
  text-transform: uppercase; letter-spacing: .1em;
  color: #ffffff; margin-bottom: 14px;
}
.fcol a {
  display: block; font-size: .85rem;
  color: rgba(255,255,255,.45); margin-bottom: 9px;
  transition: color var(--tr);
}
.fcol a:hover { color: var(--orange2); }
.foot-bar {
  display: flex; justify-content: space-between;
  align-items: center;
  padding: 20px 0;
  font-size: .78rem;
  color: rgba(255,255,255,.3);
  border-top: 1px solid rgba(255,255,255,.08);
  flex-wrap: wrap; gap: 8px;
}
.foot-bar a { color: var(--orange); }

/* Scroll to top */
.back-top {
  position: fixed; bottom: 28px; right: 28px; z-index: 150;
  width: 40px; height: 40px; border-radius: 50%;
  background: var(--orange); border: none; color: #fff;
  display: flex; align-items: center; justify-content: center;
  box-shadow: 0 4px 16px rgba(249,115,22,.35);
  opacity: 0; transform: translateY(16px); pointer-events: none;
  transition: all var(--tr); cursor: pointer;
}
.back-top.show { opacity: 1; transform: none; pointer-events: all; }
.back-top:hover { background: var(--orange2); transform: translateY(-2px); }

/* ============================================
   RESPONSIVE
   ============================================ */
@media (max-width: 1024px) {
  .hero-wrap { grid-template-columns: 1fr; gap: 48px; }
  .hero-left { max-width: 100%; }
  .hero-right { max-width: 540px; margin: 0 auto; }
  .feat-layout { grid-template-columns: 1fr; }
  .feat-tabs { flex-direction: row; overflow-x: auto; gap: 10px; }
  .ftab { min-width: 220px; }
  .fpanel.active { grid-template-columns: 1fr; }
  .proof-band .wrap { grid-template-columns: 1fr; gap: 40px; }
  .proof-stat { font-size: 4rem; }
  .testi-grid { grid-template-columns: 1fr 1fr; }
  .price-grid { grid-template-columns: 1fr 1fr; }
  .price-card:nth-child(3) { grid-column: 1 / -1; max-width: 480px; margin: 0 auto; width: 100%; }
  .foot-main { grid-template-columns: 1fr; gap: 36px; }
  .fcols { grid-template-columns: repeat(2, 1fr); }
  .uc-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 768px) {
  .nav-links, .nav-right { display: none; }
  .burger { display: flex; }
  .hero { padding: 110px 20px 60px; }
  .hero-h1 { font-size: 2.4rem; }
  .metrics-wrap { flex-direction: column; gap: 28px; }
  .m-sep { width: 60px; height: 1px; }
  .metric { padding: 0; }
  .uc-grid, .testi-grid, .price-grid { grid-template-columns: 1fr; }
  .price-card:nth-child(3) { max-width: none; }
  .cta-box { flex-direction: column; align-items: flex-start; }
  .cta-right { align-items: flex-start; }
  .fcols { grid-template-columns: repeat(2, 1fr); }
  .hero-float-card { display: none; }
}
@media (max-width: 520px) {
  .hero-ctas { flex-direction: column; }
  .btn-primary, .btn-outline { width: 100%; justify-content: center; }
  .fcols { grid-template-columns: 1fr; }
}
