:root {
  --bg: #07070d;
  --bg-soft: #0d1020;
  --panel: rgba(13, 16, 32, 0.84);
  --panel-strong: rgba(17, 24, 39, 0.96);
  --border: rgba(168, 85, 247, 0.2);
  --text: #f5f7ff;
  --muted: #aab2d5;
  --soft: #cfd5ee;
  --primary: #a855f7;
  --primary-strong: #7c3aed;
  --accent: #22d3ee;
  --success: #34d399;
  --shadow: 0 24px 80px rgba(8, 10, 24, 0.45);
  --radius: 24px;
  --radius-sm: 18px;
  --container: 1180px;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  background:
    radial-gradient(circle at top left, rgba(168, 85, 247, 0.18), transparent 32%),
    radial-gradient(circle at top right, rgba(34, 211, 238, 0.08), transparent 26%),
    linear-gradient(180deg, #05060c 0%, #090b14 100%);
  color: var(--text);
  line-height: 1.6;
}
a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }
button, input, textarea, select { font: inherit; }
.container { width: min(calc(100% - 2rem), var(--container)); margin: 0 auto; }
.section { padding: 96px 0; }
.section-tight { padding: 64px 0; }
.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.45rem 0.8rem;
  border-radius: 999px;
  background: rgba(168, 85, 247, 0.12);
  border: 1px solid rgba(168, 85, 247, 0.22);
  color: #dcc7ff;
  font-size: 0.78rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.12em;
}
.section-head { display: grid; gap: 1rem; margin-bottom: 2.2rem; max-width: 760px; }
.section-head h2, .hero-copy h1, .page-hero h1 { margin: 0; line-height: 1.02; letter-spacing: -0.04em; }
.section-head h2 { font-size: clamp(2rem, 4vw, 3.5rem); }
.section-head p, .hero-copy p, .page-hero p { margin: 0; color: var(--muted); font-size: 1.05rem; }
.site-header {
  position: sticky;
  top: 0;
  z-index: 40;
  backdrop-filter: blur(16px);
  background: rgba(7, 7, 13, 0.7);
  border-bottom: 1px solid rgba(255,255,255,0.05);
}
.navbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.25rem;
  padding: 1rem 0;
}
.brand { display: flex; align-items: center; gap: 0.9rem; min-width: 0; }
.brand img { width: 184px; max-width: 100%; }
.nav-links {
  display: flex;
  align-items: center;
  gap: 1.2rem;
  color: var(--soft);
}
.nav-links a {
  font-size: 0.96rem;
  color: var(--soft);
  transition: color 0.2s ease;
}
.nav-links a:hover, .nav-links a.active { color: #fff; }
.nav-actions { display: flex; align-items: center; gap: 0.8rem; }
.menu-toggle {
  display: none;
  width: 46px;
  height: 46px;
  border-radius: 14px;
  background: rgba(255,255,255,0.04);
  border: 1px solid rgba(255,255,255,0.08);
  color: white;
}
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.55rem;
  min-height: 48px;
  padding: 0.9rem 1.2rem;
  border-radius: 14px;
  border: 1px solid transparent;
  font-weight: 700;
  transition: transform 0.2s ease, border-color 0.2s ease, background 0.2s ease, box-shadow 0.2s ease;
}
.btn:hover { transform: translateY(-2px); }
.btn-primary {
  background: linear-gradient(135deg, var(--primary), var(--primary-strong));
  color: white;
  box-shadow: 0 16px 40px rgba(124, 58, 237, 0.35);
}
.btn-secondary {
  background: rgba(255,255,255,0.04);
  color: white;
  border-color: rgba(255,255,255,0.09);
}
.btn-ghost {
  color: var(--soft);
  border-color: rgba(168, 85, 247, 0.18);
  background: rgba(168, 85, 247, 0.08);
}
.hero {
  position: relative;
  overflow: clip;
  padding: 86px 0 70px;
}
.hero-grid, .page-hero-grid {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 2rem;
  align-items: center;
}
.hero-copy { display: grid; gap: 1.4rem; justify-items: center; text-align: center; }
.hero-copy h1 { font-size: clamp(3rem, 7vw, 5.6rem); max-width: 16ch; }
.hero-copy p { max-width: 62ch; }
.hero-actions, .cta-row { display: flex; flex-wrap: wrap; gap: 0.9rem; justify-content: center; }
.hero-metrics {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.9rem;
  margin-top: 0.5rem;
}
.metric, .mini-card, .panel, .card, .service-card, .industry-card, .solution-card, .pricing-card, .faq-item, .contact-card, .about-card {
  background: var(--panel);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  box-shadow: var(--shadow);
}
.metric { padding: 1rem; }
.metric strong { display: block; font-size: 1.4rem; margin-bottom: 0.2rem; }
.metric span { color: var(--muted); font-size: 0.94rem; }
.hero-visual {
  position: relative;
  display: grid;
  gap: 1rem;
}
.hero-stack {
  display: grid;
  gap: 1rem;
}
.panel { padding: 1.3rem; }
.panel strong { display: block; margin-bottom: 0.4rem; font-size: 1.04rem; }
.panel p, .card p, .service-card p, .industry-card p, .solution-card p, .contact-card p, .about-card p { margin: 0; color: var(--muted); }
.flow-grid, .service-grid, .industry-grid, .solution-grid, .card-grid, .stats-grid, .contact-grid, .about-grid, .faq-grid {
  display: grid;
  gap: 1.2rem;
}
.flow-grid, .card-grid, .stats-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.service-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.industry-grid, .solution-grid, .contact-grid, .about-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.faq-grid { grid-template-columns: 1fr; }
.card, .service-card, .industry-card, .solution-card, .contact-card, .about-card, .faq-item { padding: 1.4rem; }
.card h3, .service-card h3, .industry-card h3, .solution-card h3, .contact-card h3, .about-card h3, .faq-item h3 { margin: 0 0 0.65rem; font-size: 1.1rem; }
.service-card .tag, .industry-card .tag, .solution-card .tag {
  display: inline-block;
  margin-bottom: 0.7rem;
  font-size: 0.75rem;
  font-weight: 700;
  color: #d8c6ff;
  text-transform: uppercase;
  letter-spacing: 0.14em;
}
.showcase {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.2rem;
}
.kpi {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.95rem 0;
  border-bottom: 1px solid rgba(255,255,255,0.07);
}
.kpi:last-child { border-bottom: 0; }
.kpi span { color: var(--muted); }
.kpi strong { color: white; }
.page-hero { padding: 72px 0 36px; }
.page-hero h1 { font-size: clamp(2.8rem, 6vw, 4.5rem); max-width: 12ch; }
.page-hero-card {
  padding: 1.4rem;
  background: linear-gradient(180deg, rgba(168, 85, 247, 0.16), rgba(10, 12, 24, 0.92));
  border-radius: var(--radius);
  border: 1px solid rgba(168, 85, 247, 0.24);
  box-shadow: var(--shadow);
}
.page-hero-card ul, .check-list, .footer-list { margin: 0; padding-left: 1.1rem; color: var(--soft); }
.page-hero-card li, .check-list li, .footer-list li { margin: 0.45rem 0; }
.banner {
  padding: 1.3rem 1.5rem;
  border-radius: 18px;
  border: 1px solid rgba(34, 211, 238, 0.2);
  background: rgba(34, 211, 238, 0.08);
  color: #dbfbff;
}
.two-col {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.4rem;
}
.stat-pill {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  padding: 0.6rem 0.8rem;
  background: rgba(255,255,255,0.05);
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: 999px;
  color: var(--soft);
  font-size: 0.88rem;
}
.footer {
  padding: 30px 0 56px;
  border-top: 1px solid rgba(255,255,255,0.06);
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr 0.8fr;
  gap: 1.5rem;
}
.footer h4 { margin: 0 0 0.9rem; }
.footer p, .footer a, .legal, .muted { color: var(--muted); }
.footer-links { display: grid; gap: 0.65rem; }
.footer-bottom {
  margin-top: 1.2rem;
  padding-top: 1.2rem;
  border-top: 1px solid rgba(255,255,255,0.06);
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
}
.form-grid { display: grid; gap: 1rem; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }
label { display: grid; gap: 0.5rem; color: var(--soft); font-weight: 600; }
input, textarea, select {
  width: 100%;
  border-radius: 14px;
  border: 1px solid rgba(255,255,255,0.08);
  background: rgba(255,255,255,0.04);
  color: white;
  padding: 0.95rem 1rem;
}
textarea { min-height: 170px; resize: vertical; }
.callout {
  padding: 1.3rem;
  border-radius: 18px;
  background: linear-gradient(180deg, rgba(124, 58, 237, 0.18), rgba(9, 11, 20, 0.95));
  border: 1px solid rgba(168, 85, 247, 0.25);
}
.inline-list { display: flex; gap: 0.7rem; flex-wrap: wrap; }
.inline-list span {
  padding: 0.55rem 0.75rem;
  border-radius: 999px;
  background: rgba(255,255,255,0.05);
  border: 1px solid rgba(255,255,255,0.07);
  color: var(--soft);
  font-size: 0.85rem;
}
.reveal { opacity: 0; transform: translateY(18px); transition: opacity 0.6s ease, transform 0.6s ease; }
.reveal.visible { opacity: 1; transform: translateY(0); }
@media (max-width: 980px) {
  .hero-grid, .page-hero-grid, .footer-grid, .showcase, .two-col, .industry-grid, .solution-grid, .contact-grid, .about-grid,
  .flow-grid, .service-grid, .stats-grid, .card-grid { grid-template-columns: 1fr; }
  .nav-links {
    position: absolute;
    top: calc(100% + 0.75rem);
    left: 1rem;
    right: 1rem;
    background: rgba(8, 10, 20, 0.98);
    border: 1px solid rgba(255,255,255,0.08);
    border-radius: 20px;
    padding: 1rem;
    display: none;
    flex-direction: column;
    align-items: flex-start;
  }
  .nav-links.open { display: flex; }
  .menu-toggle { display: inline-flex; align-items: center; justify-content: center; }
  .nav-actions .btn { display: none; }
  .hero-copy h1 { max-width: 100%; }
}
@media (max-width: 640px) {
  .section { padding: 76px 0; }
  .hero { padding-top: 54px; }
  .form-row, .hero-metrics { grid-template-columns: 1fr; }
  .btn { width: 100%; }
  .cta-row, .hero-actions { flex-direction: column; }
}

/* === V2: Image-rich layout additions === */
.hero-img {
  width: 100%;
  border-radius: var(--radius);
  border: 1px solid var(--border);
  object-fit: cover;
  max-height: 500px;
}
.img-text-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
  align-items: center;
}
.img-text-row.reverse { direction: rtl; }
.img-text-row.reverse > * { direction: ltr; }
.img-block img {
  width: 100%;
  border-radius: var(--radius);
  border: 1px solid var(--border);
  object-fit: cover;
}
.text-block { display: grid; gap: 1rem; }
.text-block h2, .text-block h3 { margin: 0; }
.text-block p { margin: 0; color: var(--muted); }
.card-with-img { padding: 0; overflow: hidden; }
.card-with-img img {
  width: 100%;
  height: 200px;
  object-fit: cover;
}
.card-body { padding: 1.4rem; }
.card-body h3 { margin: 0 0 0.65rem; font-size: 1.1rem; }
.card-body p { margin: 0; color: var(--muted); }
.steps-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 1.2rem;
}
.step {
  padding: 1.6rem;
  background: var(--panel);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  box-shadow: var(--shadow);
}
.step-num {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 48px;
  height: 48px;
  border-radius: 14px;
  background: linear-gradient(135deg, var(--primary), var(--primary-strong));
  color: white;
  font-weight: 800;
  font-size: 1.1rem;
  margin-bottom: 1rem;
}
.step h3 { margin: 0 0 0.5rem; font-size: 1.05rem; }
.step p { margin: 0; color: var(--muted); font-size: 0.95rem; }
.result-list { display: grid; gap: 1rem; }
.result-item {
  padding: 1rem;
  border-left: 3px solid var(--primary);
  background: rgba(168, 85, 247, 0.06);
  border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
}
.result-item strong { display: block; margin-bottom: 0.3rem; color: white; }
.result-item p { margin: 0; color: var(--muted); font-size: 0.95rem; }
.service-img-card { display: grid; grid-template-columns: 200px 1fr; overflow: hidden; }
.service-img-card img { width: 100%; height: 100%; object-fit: cover; }
.service-img-card .card-body { display: grid; gap: 0.5rem; align-content: start; }
@media (max-width: 980px) {
  .img-text-row { grid-template-columns: 1fr; }
  .img-text-row.reverse { direction: ltr; }
  .steps-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .service-img-card { grid-template-columns: 1fr; }
  .service-img-card img { height: 200px; }
}
@media (max-width: 640px) {
  .steps-grid { grid-template-columns: 1fr; }
}

/* ================================================================
   V3: ENTRY GATE + FUTURISTIC HOMEPAGE
   ================================================================ */

:root {
  --primary-faint: rgba(168, 85, 247, 0.08);
  --accent-soft: rgba(34, 211, 238, 0.14);
  --surface: rgba(255,255,255,0.04);
  --surface-2: rgba(255,255,255,0.08);
  --ff-mono: 'JetBrains Mono', ui-monospace, SFMono-Regular, Menlo, monospace;
}

/* Hide page scroll while splash is active */
body.has-splash { overflow: hidden; }
body.splash-gone { overflow: auto; }

/* ----------- SPLASH GATE ----------- */
.splash {
  position: fixed;
  inset: 0;
  z-index: 100;
  display: grid;
  place-items: center;
  overflow: hidden;
  background: radial-gradient(ellipse 80% 60% at 50% 50%, #0a0c1c 0%, #05060c 100%);
  transition: opacity 0.9s cubic-bezier(0.65, 0, 0.35, 1), transform 0.9s cubic-bezier(0.65, 0, 0.35, 1), filter 0.9s;
}
.splash.exit {
  opacity: 0;
  transform: scale(1.06);
  filter: blur(12px);
  pointer-events: none;
}
.splash-canvas {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  opacity: 0.7;
}
/* WebGL splash layer (ported from 21st.dev hero-futuristic) */
.splash-webgl {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  display: block;
  z-index: 2;
  pointer-events: none;
}
/* When the WebGL FX is active, dim the other overlays so the scene is the star */
.splash-fx-on .splash-mesh { opacity: 0.45; }
.splash-fx-on .splash-grid { opacity: 0.35; }
.splash-fx-on .splash-noise { opacity: 0.05; }
/* Dark radial vignette behind the text so the white copy stays readable over the FX */
.splash-fx-on .splash::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 2;
  pointer-events: none;
  background: radial-gradient(
    ellipse 58% 48% at 50% 50%,
    rgba(5, 6, 12, 0.88) 0%,
    rgba(5, 6, 12, 0.72) 28%,
    rgba(5, 6, 12, 0.42) 55%,
    rgba(5, 6, 12, 0.1) 78%,
    transparent 100%
  );
}
/* Stronger halos on copy when FX is running */
.splash-fx-on .splash-title {
  text-shadow:
    0 2px 24px rgba(5, 6, 12, 0.9),
    0 0 14px rgba(5, 6, 12, 0.8),
    0 0 4px rgba(5, 6, 12, 0.9);
}
.splash-fx-on .splash-sub {
  text-shadow: 0 1px 12px rgba(5, 6, 12, 0.95), 0 0 6px rgba(5, 6, 12, 0.85);
}
.splash-fx-on .splash-badge {
  background: rgba(10, 12, 28, 0.55);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
}
.splash-mesh {
  position: absolute;
  inset: -20%;
  background:
    radial-gradient(ellipse 40% 30% at 20% 30%, rgba(168, 85, 247, 0.45), transparent 60%),
    radial-gradient(ellipse 30% 25% at 80% 20%, rgba(34, 211, 238, 0.35), transparent 60%),
    radial-gradient(ellipse 50% 40% at 60% 80%, rgba(124, 58, 237, 0.3), transparent 60%);
  filter: blur(40px);
  animation: meshFloat 14s ease-in-out infinite;
  z-index: 0;
}
@keyframes meshFloat {
  0%, 100% { transform: translate(0, 0) rotate(0deg); }
  33% { transform: translate(3%, -2%) rotate(1.5deg); }
  66% { transform: translate(-2%, 3%) rotate(-1deg); }
}
.splash-grid {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(168, 85, 247, 0.08) 1px, transparent 1px),
    linear-gradient(90deg, rgba(168, 85, 247, 0.08) 1px, transparent 1px);
  background-size: 56px 56px;
  mask-image: radial-gradient(ellipse 70% 60% at 50% 50%, rgba(0,0,0,0.8), transparent 80%);
  -webkit-mask-image: radial-gradient(ellipse 70% 60% at 50% 50%, rgba(0,0,0,0.8), transparent 80%);
  animation: gridDrift 22s linear infinite;
  z-index: 1;
}
@keyframes gridDrift {
  from { background-position: 0 0, 0 0; }
  to   { background-position: 56px 56px, 56px 56px; }
}
.splash-noise {
  position: absolute;
  inset: 0;
  opacity: 0.035;
  pointer-events: none;
  z-index: 2;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='120' height='120'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='1.1' numOctaves='2' stitchTiles='stitch'/><feColorMatrix values='0 0 0 0 1 0 0 0 0 1 0 0 0 0 1 0 0 0 0.9 0'/></filter><rect width='100%25' height='100%25' filter='url(%23n)'/></svg>");
}
.splash-inner {
  position: relative;
  z-index: 3;
  display: grid;
  gap: 1.5rem;
  justify-items: center;
  text-align: center;
  padding: 2rem;
  max-width: 760px;
}
.splash-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  padding: 0.5rem 0.9rem;
  border-radius: 999px;
  background: rgba(34, 211, 238, 0.08);
  border: 1px solid rgba(34, 211, 238, 0.24);
  color: #dbfbff;
  font-family: var(--ff-mono);
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.2em;
  opacity: 0;
  animation: fadeUp 0.8s 0.2s cubic-bezier(0.2, 0.9, 0.3, 1) forwards;
}
.live-dot {
  width: 8px; height: 8px;
  border-radius: 50%;
  background: #22d3ee;
  box-shadow: 0 0 0 0 rgba(34, 211, 238, 0.6);
  animation: livepulse 2s ease-out infinite;
}
@keyframes livepulse {
  0% { box-shadow: 0 0 0 0 rgba(34, 211, 238, 0.55); }
  70% { box-shadow: 0 0 0 10px rgba(34, 211, 238, 0); }
  100% { box-shadow: 0 0 0 0 rgba(34, 211, 238, 0); }
}
.splash-logo img {
  width: 260px;
  max-width: 72vw;
  opacity: 0;
  transform: translateY(12px);
  animation: fadeUp 1s 0.35s cubic-bezier(0.2, 0.9, 0.3, 1) forwards;
  filter: drop-shadow(0 10px 40px rgba(168, 85, 247, 0.45));
}
.splash-title {
  margin: 0;
  font-size: clamp(2.2rem, 5.5vw, 4.4rem);
  font-weight: 800;
  line-height: 1.05;
  letter-spacing: -0.035em;
  color: #f5f7ff;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.35em;
}
.splash-title .word {
  display: inline-block;
  opacity: 0;
  transform: translateY(24px);
  animation: wordIn 0.7s cubic-bezier(0.2, 0.9, 0.3, 1) forwards;
}
.splash-title .word:nth-child(1) { animation-delay: 0.5s; }
.splash-title .word:nth-child(2) { animation-delay: 0.58s; }
.splash-title .word:nth-child(3) { animation-delay: 0.66s; }
.splash-title .word:nth-child(4) { animation-delay: 0.74s; }
.splash-title .word:nth-child(5) { animation-delay: 0.82s; }
.splash-title .glow {
  /* Balanced neon purple — bright enough to read, not blinding */
  background: linear-gradient(
    100deg,
    #e879f9 0%,
    #c084fc 30%,
    #a855f7 50%,
    #c084fc 70%,
    #e879f9 100%
  );
  background-size: 240% 100%;
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  /* Subtle halo — replaces the dark text-shadow from .splash-fx-on */
  text-shadow: 0 0 14px rgba(192, 132, 252, 0.35);
  filter: drop-shadow(0 0 12px rgba(168, 85, 247, 0.3));
  animation: wordIn 0.7s 0.82s cubic-bezier(0.2, 0.9, 0.3, 1) forwards,
             gradShift 7s linear infinite 2s;
}

/* When the WebGL layer is on, replace its stacked dark text-shadows
   with a single soft purple halo on the glow word. Subtle, not heavy. */
.splash-fx-on .splash-title .glow {
  text-shadow: 0 0 16px rgba(192, 132, 252, 0.4);
}
@keyframes wordIn {
  to { opacity: 1; transform: translateY(0); }
}
@keyframes gradShift {
  to { background-position: -200% 0; }
}
.splash-sub {
  margin: 0;
  color: var(--muted);
  font-size: 1.05rem;
  max-width: 56ch;
  opacity: 0;
  animation: fadeUp 0.7s 1.1s cubic-bezier(0.2, 0.9, 0.3, 1) forwards;
}
@keyframes fadeUp {
  from { opacity: 0; transform: translateY(12px); }
  to { opacity: 1; transform: translateY(0); }
}
.splash-enter {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 220px;
  min-height: 64px;
  padding: 0 2rem;
  border-radius: 999px;
  border: 0;
  background: transparent;
  color: #fff;
  font-weight: 700;
  font-size: 1.05rem;
  letter-spacing: 0.06em;
  cursor: pointer;
  overflow: hidden;
  opacity: 0;
  animation: fadeUp 0.7s 1.3s cubic-bezier(0.2, 0.9, 0.3, 1) forwards;
  transition: transform 0.2s cubic-bezier(0.2, 0.9, 0.3, 1);
}
.splash-enter:hover { transform: translateY(-2px) scale(1.02); }
.splash-enter:active { transform: translateY(0) scale(0.99); }
.enter-bg {
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, #a855f7 0%, #7c3aed 45%, #22d3ee 100%);
  border-radius: inherit;
  opacity: 0.95;
}
.enter-bg::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, transparent 0%, rgba(255,255,255,0.35) 50%, transparent 100%);
  transform: translateX(-120%);
  transition: transform 0.9s cubic-bezier(0.2, 0.9, 0.3, 1);
}
.splash-enter:hover .enter-bg::after { transform: translateX(120%); }
.enter-ring {
  position: absolute;
  inset: -4px;
  border-radius: inherit;
  border: 1px solid rgba(168, 85, 247, 0.5);
  animation: ringPulse 2.4s ease-out infinite;
}
@keyframes ringPulse {
  0% { opacity: 0.8; transform: scale(1); }
  100% { opacity: 0; transform: scale(1.18); }
}
.enter-text {
  position: relative;
  z-index: 2;
  display: inline-flex;
  align-items: center;
  gap: 0.65rem;
}
.enter-arrow {
  transition: transform 0.3s cubic-bezier(0.2, 0.9, 0.3, 1);
}
.splash-enter:hover .enter-arrow { transform: translateX(5px); }
.splash-hint {
  font-family: var(--ff-mono);
  font-size: 0.72rem;
  color: var(--muted);
  letter-spacing: 0.1em;
  opacity: 0;
  animation: fadeUp 0.7s 1.6s cubic-bezier(0.2, 0.9, 0.3, 1) forwards;
}
.splash-hint kbd {
  display: inline-block;
  padding: 0.2rem 0.5rem;
  margin: 0 0.15rem;
  background: rgba(255,255,255,0.06);
  border: 1px solid rgba(255,255,255,0.12);
  border-radius: 6px;
  font-family: var(--ff-mono);
  font-size: 0.7rem;
}
.splash-foot {
  position: absolute;
  bottom: 1.5rem;
  left: 0;
  right: 0;
  z-index: 3;
  display: flex;
  justify-content: space-between;
  padding: 0 2rem;
  font-family: var(--ff-mono);
  font-size: 0.68rem;
  color: rgba(170, 178, 213, 0.6);
  letter-spacing: 0.16em;
  opacity: 0;
  animation: fadeUp 0.7s 1.9s cubic-bezier(0.2, 0.9, 0.3, 1) forwards;
}
@media (max-width: 640px) {
  .splash-foot { font-size: 0.6rem; padding: 0 1rem; }
  .splash-foot span:nth-child(2) { display: none; }
}

/* ----------- NAV DROPDOWN ----------- */
.nav-dd { position: relative; }
.nav-dd-trigger { cursor: pointer; display: inline-flex; align-items: center; gap: 0.3rem; }
.nav-dd-trigger .caret { transition: transform 0.22s; font-size: 0.7rem; opacity: 0.7; }
.nav-dd:hover .nav-dd-trigger .caret { transform: rotate(180deg); }
.nav-dd-menu {
  position: absolute;
  top: calc(100% + 0.8rem);
  left: 50%;
  transform: translateX(-50%) translateY(6px);
  display: grid;
  grid-template-columns: 1fr 1fr 1.2fr;
  gap: 1.5rem;
  min-width: 620px;
  padding: 1.4rem;
  background: rgba(10, 12, 24, 0.96);
  backdrop-filter: blur(16px);
  border: 1px solid rgba(168, 85, 247, 0.2);
  border-radius: 18px;
  box-shadow: 0 30px 80px rgba(0,0,0,0.6);
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.22s, transform 0.22s, visibility 0s linear 0.22s;
  z-index: 50;
}
.nav-dd:hover .nav-dd-menu,
.nav-dd:focus-within .nav-dd-menu {
  opacity: 1;
  visibility: visible;
  transform: translateX(-50%) translateY(0);
  transition: opacity 0.22s, transform 0.22s, visibility 0s;
}
.dd-col { display: grid; gap: 0.55rem; align-content: start; }
.dd-head {
  font-family: var(--ff-mono);
  font-size: 0.68rem;
  font-weight: 700;
  color: #dcc7ff;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  margin-bottom: 0.2rem;
}
.dd-col a {
  padding: 0.4rem 0.6rem;
  border-radius: 10px;
  font-size: 0.92rem;
  color: var(--soft);
  transition: background 0.18s, color 0.18s;
}
.dd-col a:hover { background: rgba(168, 85, 247, 0.12); color: #fff; }
.dd-col-feature { border-left: 1px solid rgba(168, 85, 247, 0.15); padding-left: 1.3rem; }
.dd-feature {
  margin-top: 0.8rem;
  padding: 0.9rem;
  background: linear-gradient(180deg, rgba(168, 85, 247, 0.18), rgba(34, 211, 238, 0.08));
  border: 1px solid rgba(168, 85, 247, 0.25);
  border-radius: 14px;
}
.dd-feature-eyebrow {
  display: inline-block;
  font-family: var(--ff-mono);
  font-size: 0.6rem;
  font-weight: 700;
  padding: 2px 6px;
  background: #22d3ee;
  color: #03121a;
  border-radius: 4px;
  letter-spacing: 0.12em;
}
.dd-feature-title { font-weight: 700; margin-top: 0.4rem; color: #fff; }
.dd-feature-desc { font-size: 0.82rem; color: var(--muted); margin-top: 0.2rem; line-height: 1.5; }

@media (max-width: 980px) {
  .nav-dd-menu { display: none; }
  .nav-dd-trigger .caret { display: none; }
}

/* ----------- GLOWY BUTTONS ----------- */
.btn-arrow { transition: transform 0.28s cubic-bezier(0.2, 0.9, 0.3, 1); }
.btn:hover .btn-arrow { transform: translateX(5px); }
.btn-glow {
  position: relative;
  background: linear-gradient(135deg, #a855f7, #7c3aed 55%, #6d28d9);
  box-shadow: 0 14px 34px rgba(124, 58, 237, 0.45), inset 0 1px 0 rgba(255,255,255,0.15);
  overflow: hidden;
}
.btn-glow::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(120deg, transparent 0%, rgba(255,255,255,0.3) 50%, transparent 100%);
  transform: translateX(-120%);
  transition: transform 0.9s cubic-bezier(0.2, 0.9, 0.3, 1);
}
.btn-glow:hover::before { transform: translateX(120%); }
.btn-shine {
  position: relative;
  overflow: hidden;
}
.btn-shine::before {
  content: "";
  position: absolute;
  inset: -1px;
  padding: 1px;
  background: linear-gradient(120deg, transparent 0%, rgba(168, 85, 247, 0.55) 50%, transparent 100%);
  border-radius: inherit;
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  -webkit-mask-composite: xor;
  mask-composite: exclude;
  transform: translateX(-120%);
  transition: transform 1s cubic-bezier(0.2, 0.9, 0.3, 1);
}
.btn-shine:hover::before { transform: translateX(120%); }
.btn-lg { min-height: 58px; padding: 1rem 1.8rem; font-size: 1.05rem; }

/* ----------- HERO V3 ----------- */
.hero-v3 {
  position: relative;
  padding: 100px 0 80px;
  overflow: hidden;
}
.hero-canvas { position: absolute; inset: 0; width: 100%; height: 100%; opacity: 0.25; z-index: 1; pointer-events: none; }

/* Layer 0: Higgsfield / Seedance ambient loop */
.hero-bg-video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: 0;
  filter: brightness(0.55) saturate(1.15);
  will-change: transform, filter;
  pointer-events: none;
}
.hero-bg-veil {
  position: absolute;
  inset: 0;
  z-index: 0;
  background:
    radial-gradient(ellipse at 50% 40%, transparent 0%, rgba(6, 5, 14, 0.55) 55%, rgba(6, 5, 14, 0.9) 100%),
    linear-gradient(180deg, rgba(6, 5, 14, 0.25) 0%, rgba(6, 5, 14, 0.75) 100%);
  pointer-events: none;
}

/* Layer 1: Spline 3D scene */
.hero-spline {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  z-index: 1;
  opacity: 0.9;
  mix-blend-mode: screen;
  will-change: transform, opacity;
  pointer-events: auto;
}
.hero-spline::part(logo) { display: none !important; }
.hero-mesh {
  position: absolute;
  inset: -10%;
  background:
    radial-gradient(ellipse 35% 30% at 20% 35%, rgba(168, 85, 247, 0.32), transparent 65%),
    radial-gradient(ellipse 30% 25% at 80% 20%, rgba(34, 211, 238, 0.22), transparent 65%),
    radial-gradient(ellipse 40% 30% at 60% 90%, rgba(124, 58, 237, 0.24), transparent 65%);
  filter: blur(50px);
  z-index: 0;
  animation: meshFloat 18s ease-in-out infinite;
}
.hero-scan {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 0%, rgba(168, 85, 247, 0.06) 50%, transparent 100%);
  background-size: 100% 300px;
  animation: scanDown 9s linear infinite;
  z-index: 1;
  pointer-events: none;
}
@keyframes scanDown {
  from { background-position: 0 -300px; }
  to { background-position: 0 100vh; }
}
.hero-v3 .container { position: relative; z-index: 2; }
.hero-v3 .hero-copy { max-width: 980px; margin: 0 auto; }
.hero-v3 h1 { font-size: clamp(2.8rem, 7vw, 5.6rem); }
.grad-text {
  background: linear-gradient(
    100deg,
    #f0abfc 0%,
    #e879f9 25%,
    #a855f7 50%,
    #c026d3 75%,
    #7c3aed 100%
  );
  background-size: 240% 100%;
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  filter: drop-shadow(0 0 20px rgba(168, 85, 247, 0.45));
  animation: gradShift 8s linear infinite;
}
.hero-proofs {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1rem;
  margin-top: 1.2rem;
  width: 100%;
  max-width: 720px;
}
.proof {
  padding: 1.1rem 1.2rem;
  background: var(--panel);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  text-align: left;
  display: grid;
  grid-template-columns: auto auto 1fr;
  gap: 0.2rem 0.5rem;
  align-items: baseline;
}
.proof .num { font-size: 2rem; font-weight: 800; color: #fff; letter-spacing: -0.02em; }
.proof .unit { font-size: 1rem; color: #dcc7ff; font-weight: 700; }
.proof .lbl { grid-column: 1 / -1; color: var(--muted); font-size: 0.84rem; margin-top: 0.2rem; line-height: 1.4; }

.hero-trust { margin-top: 1.5rem; display: grid; gap: 0.6rem; justify-items: center; }
.trust-head { font-family: var(--ff-mono); font-size: 0.7rem; letter-spacing: 0.2em; color: var(--muted); }
.trust-row { display: flex; flex-wrap: wrap; gap: 0.5rem; justify-content: center; }
.trust-chip {
  padding: 0.4rem 0.8rem;
  background: rgba(255,255,255,0.03);
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: 999px;
  font-size: 0.82rem;
  color: var(--soft);
  font-family: var(--ff-mono);
  font-weight: 600;
}

@media (max-width: 760px) {
  .hero-proofs { grid-template-columns: 1fr; }
}

/* ----------- SECTION VARIANTS ----------- */
.section-dark {
  position: relative;
  background:
    radial-gradient(ellipse 50% 40% at 20% 0%, rgba(168, 85, 247, 0.09), transparent 60%),
    radial-gradient(ellipse 40% 30% at 80% 100%, rgba(34, 211, 238, 0.05), transparent 60%),
    linear-gradient(180deg, rgba(5,6,12,0.6) 0%, rgba(9,11,20,0.8) 100%);
  border-top: 1px solid rgba(168, 85, 247, 0.08);
  border-bottom: 1px solid rgba(168, 85, 247, 0.08);
}

/* ----------- CAPABILITIES GRID ----------- */
.capabilities-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 1rem;
}
.cap {
  position: relative;
  padding: 1.5rem;
  background: var(--panel);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  transition: transform 0.25s cubic-bezier(0.2, 0.9, 0.3, 1), border-color 0.25s, box-shadow 0.25s;
  overflow: hidden;
}
.cap::before {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at var(--mx, 50%) var(--my, 0%), rgba(168, 85, 247, 0.18), transparent 60%);
  opacity: 0;
  transition: opacity 0.3s;
  pointer-events: none;
}
.cap:hover { transform: translateY(-4px); border-color: rgba(168, 85, 247, 0.45); box-shadow: 0 16px 40px rgba(124, 58, 237, 0.18); }
.cap:hover::before { opacity: 1; }
.cap-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  border-radius: 12px;
  background: linear-gradient(135deg, rgba(168, 85, 247, 0.25), rgba(34, 211, 238, 0.15));
  border: 1px solid rgba(168, 85, 247, 0.3);
  font-size: 1.3rem;
  color: #fff;
  margin-bottom: 0.9rem;
}
.cap h3 { margin: 0 0 0.5rem; font-size: 1.08rem; }
.cap p { margin: 0 0 0.8rem; color: var(--muted); font-size: 0.92rem; line-height: 1.55; }
.cap-list { list-style: none; padding: 0; margin: 0; display: grid; gap: 0.3rem; }
.cap-list li {
  position: relative;
  padding-left: 1.1rem;
  font-size: 0.85rem;
  color: var(--soft);
}
.cap-list li::before {
  content: "›";
  position: absolute;
  left: 0;
  color: #22d3ee;
  font-weight: 700;
}
.cap-highlight {
  background: linear-gradient(180deg, rgba(168, 85, 247, 0.14), rgba(13, 16, 32, 0.92));
  border-color: rgba(168, 85, 247, 0.45);
}
.cap-highlight .cap-icon { background: linear-gradient(135deg, #a855f7, #22d3ee); border-color: transparent; }

@media (max-width: 1100px) {
  .capabilities-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 560px) {
  .capabilities-grid { grid-template-columns: 1fr; }
}

/* ----------- FEATURE ROWS (phone/onboarding) ----------- */
.feature-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
  align-items: center;
}
.feature-row.reverse { direction: rtl; }
.feature-row.reverse > * { direction: ltr; }
.feature-copy { display: grid; gap: 1.1rem; align-content: start; }
.feature-copy h2 { font-size: clamp(1.8rem, 3.4vw, 2.8rem); line-height: 1.1; letter-spacing: -0.03em; margin: 0; }
.feature-copy p { color: var(--muted); margin: 0; font-size: 1rem; line-height: 1.65; }
.feature-copy .btn { justify-self: start; margin-top: 0.5rem; }

.feature-use-cases { display: grid; gap: 0.8rem; margin: 0.3rem 0 0.6rem; }
.use-case {
  display: grid;
  grid-template-columns: 40px 1fr;
  grid-template-rows: auto auto;
  gap: 0 0.9rem;
  padding: 0.9rem 1rem;
  background: var(--surface);
  border: 1px solid rgba(255,255,255,0.07);
  border-radius: 14px;
  transition: border-color 0.2s, background 0.2s;
}
.use-case:hover { border-color: rgba(168, 85, 247, 0.35); background: rgba(168, 85, 247, 0.06); }
.use-case-icon {
  grid-row: 1 / 3;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: 10px;
  background: rgba(168, 85, 247, 0.15);
  color: #dcc7ff;
  font-size: 1.1rem;
}
.use-case strong { color: #fff; font-size: 0.95rem; }
.use-case span { color: var(--muted); font-size: 0.85rem; line-height: 1.5; }

@media (max-width: 900px) {
  .feature-row { grid-template-columns: 1fr; gap: 2rem; }
  .feature-row.reverse { direction: ltr; }
}

/* ----------- PHONE CALLER VISUAL ----------- */
.phone-frame {
  position: relative;
  padding: 1.4rem;
  background: linear-gradient(180deg, rgba(13, 16, 32, 0.95), rgba(9, 11, 20, 0.98));
  border: 1px solid rgba(168, 85, 247, 0.25);
  border-radius: 22px;
  box-shadow: var(--shadow-lg, 0 30px 80px rgba(0,0,0,0.45));
  overflow: hidden;
}
.phone-frame::before {
  content: "";
  position: absolute;
  inset: -1px;
  border-radius: inherit;
  padding: 1px;
  background: linear-gradient(180deg, rgba(168, 85, 247, 0.4), rgba(34, 211, 238, 0.2), transparent);
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  -webkit-mask-composite: xor;
  mask-composite: exclude;
  pointer-events: none;
}
.phone-waveform {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 3px;
  height: 40px;
  margin-bottom: 1rem;
}
.phone-waveform span {
  width: 3px;
  background: linear-gradient(180deg, #a855f7, #22d3ee);
  border-radius: 3px;
  animation: waveBeat 1.1s ease-in-out infinite;
}
.phone-waveform span:nth-child(1) { animation-delay: 0.0s; }
.phone-waveform span:nth-child(2) { animation-delay: 0.1s; }
.phone-waveform span:nth-child(3) { animation-delay: 0.2s; }
.phone-waveform span:nth-child(4) { animation-delay: 0.3s; }
.phone-waveform span:nth-child(5) { animation-delay: 0.4s; }
.phone-waveform span:nth-child(6) { animation-delay: 0.5s; }
.phone-waveform span:nth-child(7) { animation-delay: 0.4s; }
.phone-waveform span:nth-child(8) { animation-delay: 0.3s; }
.phone-waveform span:nth-child(9) { animation-delay: 0.2s; }
.phone-waveform span:nth-child(10) { animation-delay: 0.1s; }
.phone-waveform span:nth-child(11) { animation-delay: 0.0s; }
.phone-waveform span:nth-child(12) { animation-delay: 0.2s; }
@keyframes waveBeat {
  0%, 100% { height: 8px; opacity: 0.5; }
  50% { height: 34px; opacity: 1; }
}
.phone-transcript { display: grid; gap: 0.6rem; margin-bottom: 1rem; }
.tmsg {
  padding: 0.7rem 0.9rem;
  border-radius: 12px;
  font-size: 0.88rem;
  line-height: 1.55;
  position: relative;
}
.tmsg-tag {
  display: block;
  font-family: var(--ff-mono);
  font-size: 0.62rem;
  letter-spacing: 0.14em;
  margin-bottom: 0.3rem;
  opacity: 0.7;
  font-weight: 700;
}
.tmsg-ai {
  background: linear-gradient(180deg, rgba(168, 85, 247, 0.18), rgba(124, 58, 237, 0.08));
  border: 1px solid rgba(168, 85, 247, 0.3);
  color: #f5f7ff;
}
.tmsg-ai .tmsg-tag { color: #dcc7ff; }
.tmsg-user {
  background: rgba(255,255,255,0.04);
  border: 1px solid rgba(255,255,255,0.08);
  color: var(--soft);
}
.tmsg-user .tmsg-tag { color: var(--muted); }
.phone-stack {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.4rem;
  padding-top: 0.9rem;
  border-top: 1px solid rgba(255,255,255,0.07);
}
.stack-pill {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.45rem 0.65rem;
  background: rgba(255,255,255,0.04);
  border: 1px solid rgba(255,255,255,0.07);
  border-radius: 999px;
  font-family: var(--ff-mono);
  font-size: 0.72rem;
  color: var(--soft);
}
.pill-dot {
  width: 7px; height: 7px; border-radius: 50%;
  background: #22d3ee;
  box-shadow: 0 0 8px rgba(34, 211, 238, 0.7);
}

/* ----------- ONBOARDING CARD ----------- */
.onboard-card {
  padding: 1.4rem;
  background: linear-gradient(180deg, rgba(13, 16, 32, 0.95), rgba(9, 11, 20, 0.98));
  border: 1px solid rgba(168, 85, 247, 0.25);
  border-radius: 20px;
  display: grid;
  gap: 0.55rem;
}
.onboard-head { display: flex; align-items: center; gap: 0.8rem; padding-bottom: 0.8rem; border-bottom: 1px solid rgba(255,255,255,0.07); margin-bottom: 0.5rem; }
.onboard-avatar {
  width: 44px; height: 44px; border-radius: 50%;
  background: linear-gradient(135deg, #a855f7, #22d3ee);
  display: inline-flex; align-items: center; justify-content: center;
  font-weight: 800; color: #fff;
}
.onboard-head strong { display: block; color: #fff; }
.onboard-meta { color: var(--muted); font-size: 0.85rem; font-family: var(--ff-mono); }
.onboard-task {
  display: grid;
  grid-template-columns: 24px 1fr;
  gap: 0.6rem;
  align-items: center;
  padding: 0.55rem 0.7rem;
  background: rgba(255,255,255,0.03);
  border: 1px solid rgba(255,255,255,0.06);
  border-radius: 10px;
  font-size: 0.9rem;
  color: var(--soft);
  transition: background 0.2s;
}
.onboard-task.done { color: var(--muted); text-decoration: line-through; text-decoration-color: rgba(52, 211, 153, 0.4); }
.onboard-task .tcheck {
  display: inline-flex; align-items: center; justify-content: center;
  width: 22px; height: 22px;
  border-radius: 50%;
  font-size: 0.8rem;
}
.onboard-task.done .tcheck { background: #34d399; color: #03140c; }
.onboard-task:not(.done) .tcheck { color: #dcc7ff; }
.onboard-foot {
  margin-top: 0.4rem;
  display: flex; align-items: center; gap: 0.5rem;
  font-family: var(--ff-mono); font-size: 0.72rem; color: #22d3ee;
  letter-spacing: 0.12em;
}

/* ----------- MODEL CHART ----------- */
.chart-card {
  padding: 1.8rem;
  background: rgba(13, 16, 32, 0.92);
  border: 1px solid rgba(168, 85, 247, 0.2);
  border-radius: 22px;
  box-shadow: var(--shadow);
}
.chart-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
  flex-wrap: wrap;
  margin-bottom: 1.4rem;
  padding-bottom: 1rem;
  border-bottom: 1px solid rgba(255,255,255,0.07);
  font-family: var(--ff-mono);
  font-size: 0.78rem;
  color: var(--muted);
  letter-spacing: 0.06em;
}
.chart-legend { display: inline-flex; gap: 1rem; }
.legend-item { display: inline-flex; align-items: center; gap: 0.45rem; font-size: 0.78rem; color: var(--soft); }
.legend-dot { width: 10px; height: 10px; border-radius: 3px; }
.legend-frontier { background: linear-gradient(135deg, #a855f7, #7c3aed); }
.legend-open { background: linear-gradient(135deg, #22d3ee, #0ea5e9); }

.chart { display: grid; gap: 0.85rem; }
.bar { display: grid; grid-template-columns: 1fr auto; grid-template-rows: auto auto; gap: 0.2rem 1rem; }
.bar-label { font-weight: 600; color: #fff; font-size: 0.96rem; }
.bar-tag {
  display: inline-block;
  padding: 2px 8px;
  margin-left: 0.4rem;
  font-family: var(--ff-mono);
  font-size: 0.62rem;
  letter-spacing: 0.1em;
  background: rgba(34, 211, 238, 0.14);
  color: #22d3ee;
  border: 1px solid rgba(34, 211, 238, 0.3);
  border-radius: 4px;
  text-transform: uppercase;
  font-weight: 700;
}
.bar-value { color: var(--muted); font-family: var(--ff-mono); font-size: 0.78rem; text-align: right; white-space: nowrap; align-self: center; }
.bar-track {
  grid-column: 1 / -1;
  height: 10px;
  background: rgba(255,255,255,0.05);
  border-radius: 5px;
  overflow: hidden;
  position: relative;
}
.bar-fill {
  position: absolute;
  top: 0; bottom: 0; left: 0;
  width: 0%;
  border-radius: 5px;
  transition: width 1.2s cubic-bezier(0.2, 0.9, 0.3, 1);
}
.bar.visible .bar-fill { width: var(--target); }
.bar[data-type="frontier"] .bar-fill { background: linear-gradient(90deg, #7c3aed, #a855f7); box-shadow: 0 0 12px rgba(168, 85, 247, 0.4); }
.bar[data-type="open"] .bar-fill { background: linear-gradient(90deg, #0ea5e9, #22d3ee); box-shadow: 0 0 12px rgba(34, 211, 238, 0.4); }

.chart-foot { margin-top: 1rem; padding-top: 1rem; border-top: 1px solid rgba(255,255,255,0.07); }
.chart-note { color: var(--muted); font-size: 0.82rem; line-height: 1.6; }

/* ----------- HYBRID / HARDWARE ----------- */
.hybrid-grid {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  gap: 1.2rem;
  align-items: stretch;
  margin-bottom: 2rem;
}
.hybrid-card {
  padding: 1.6rem;
  border-radius: 20px;
  background: rgba(13, 16, 32, 0.92);
  border: 1px solid var(--border);
  position: relative;
  overflow: hidden;
}
.hybrid-card h3 { margin: 0.5rem 0; font-size: 1.3rem; }
.hybrid-card p { margin: 0 0 1rem; color: var(--muted); line-height: 1.6; }
.hybrid-tag {
  display: inline-block;
  padding: 4px 10px;
  font-family: var(--ff-mono);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.16em;
  border-radius: 6px;
}
.hybrid-cloud .hybrid-tag { background: rgba(168, 85, 247, 0.2); color: #dcc7ff; border: 1px solid rgba(168, 85, 247, 0.35); }
.hybrid-local .hybrid-tag { background: rgba(34, 211, 238, 0.14); color: #22d3ee; border: 1px solid rgba(34, 211, 238, 0.35); }
.hybrid-cloud { background: linear-gradient(180deg, rgba(168, 85, 247, 0.12), rgba(13, 16, 32, 0.95)); border-color: rgba(168, 85, 247, 0.3); }
.hybrid-local { background: linear-gradient(180deg, rgba(34, 211, 238, 0.1), rgba(13, 16, 32, 0.95)); border-color: rgba(34, 211, 238, 0.3); }
.spec-row {
  display: flex;
  justify-content: space-between;
  gap: 0.7rem;
  padding: 0.6rem 0;
  border-bottom: 1px dashed rgba(255,255,255,0.06);
  font-size: 0.88rem;
}
.spec-row:last-of-type { border-bottom: 0; }
.spec-row span { color: var(--muted); }
.spec-row strong { color: #fff; text-align: right; }
.hybrid-arrow {
  align-self: center;
  display: grid;
  gap: 0.4rem;
  justify-items: center;
  font-family: var(--ff-mono);
  font-size: 0.7rem;
  color: var(--muted);
  letter-spacing: 0.14em;
}
.arrow-pulse {
  font-size: 2rem;
  background: linear-gradient(135deg, #a855f7, #22d3ee);
  -webkit-background-clip: text; background-clip: text; color: transparent;
  animation: arrowPulse 2s ease-in-out infinite;
}
@keyframes arrowPulse {
  0%, 100% { transform: scale(1); }
  50% { transform: scale(1.15); }
}

.hardware-grid {
  padding: 1.4rem;
  background: rgba(13, 16, 32, 0.7);
  border: 1px solid var(--border);
  border-radius: 18px;
  display: grid;
  gap: 0.55rem;
}
.hardware-head { margin: 0 0 0.6rem; font-size: 1.05rem; color: #fff; }
.hw-row {
  display: grid;
  grid-template-columns: 1.2fr 1.8fr 0.8fr;
  gap: 0.8rem;
  padding: 0.75rem 0.9rem;
  background: rgba(255,255,255,0.02);
  border: 1px solid rgba(255,255,255,0.06);
  border-radius: 12px;
  align-items: center;
  font-size: 0.92rem;
}
.hw-cell { color: var(--soft); }
.hw-model { font-weight: 700; color: #fff; display: flex; align-items: center; gap: 0.5rem; }
.hw-tag {
  padding: 2px 7px;
  font-family: var(--ff-mono);
  font-size: 0.62rem;
  background: rgba(255,255,255,0.06);
  border: 1px solid rgba(255,255,255,0.1);
  border-radius: 4px;
  color: var(--muted);
  font-weight: 600;
}
.hw-good { color: #34d399; font-weight: 700; }
.hw-ok { color: #fbbf24; font-weight: 700; }
.hw-bad { color: #f87171; font-weight: 700; }

@media (max-width: 900px) {
  .hybrid-grid { grid-template-columns: 1fr; }
  .hybrid-arrow { justify-content: center; }
  .arrow-pulse { transform: rotate(90deg); }
  .hw-row { grid-template-columns: 1fr; }
  .hw-cell { font-size: 0.88rem; }
}

/* ----------- FLOW VIZ + SAVINGS ----------- */
.flow-viz {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.8rem;
  margin-top: 1.2rem;
  padding: 1.2rem;
  background: rgba(13, 16, 32, 0.7);
  border: 1px solid var(--border);
  border-radius: 18px;
}
.flow-step {
  flex: 1 1 140px;
  padding: 0.9rem;
  background: rgba(255,255,255,0.04);
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: 12px;
  text-align: center;
  display: grid;
  gap: 0.2rem;
}
.flow-icon { font-size: 1.5rem; }
.flow-step strong { color: #fff; font-size: 0.9rem; }
.flow-step span { color: var(--muted); font-size: 0.78rem; font-family: var(--ff-mono); }
.flow-arrow { color: var(--muted); font-weight: 700; font-size: 1.2rem; }
.flow-branch { display: grid; gap: 0.6rem; flex: 1 1 180px; }
.flow-local { border-color: rgba(34, 211, 238, 0.35); background: rgba(34, 211, 238, 0.06); }
.flow-cloud { border-color: rgba(168, 85, 247, 0.4); background: rgba(168, 85, 247, 0.08); }

.savings-card {
  padding: 1.6rem;
  background: linear-gradient(180deg, rgba(168, 85, 247, 0.14), rgba(13, 16, 32, 0.95));
  border: 1px solid rgba(168, 85, 247, 0.32);
  border-radius: 20px;
}
.savings-head { font-family: var(--ff-mono); font-size: 0.78rem; letter-spacing: 0.16em; color: var(--muted); margin-bottom: 1rem; }
.savings-row { display: flex; justify-content: space-between; align-items: baseline; gap: 0.5rem; margin-bottom: 0.4rem; font-size: 0.94rem; color: var(--soft); }
.savings-row strong { font-family: var(--ff-mono); font-size: 1.3rem; }
.cost-high { color: #f87171; }
.cost-low { color: #34d399; }
.savings-bar { height: 10px; background: rgba(255,255,255,0.05); border-radius: 5px; overflow: hidden; margin-bottom: 1.1rem; }
.savings-bar-frontier, .savings-bar-hybrid { height: 100%; width: 0; transition: width 1.4s cubic-bezier(0.2, 0.9, 0.3, 1); border-radius: 5px; }
.savings-card.visible .savings-bar-frontier { width: var(--w); background: linear-gradient(90deg, #f87171, #dc2626); }
.savings-card.visible .savings-bar-hybrid { width: var(--w); background: linear-gradient(90deg, #22d3ee, #34d399); }
.savings-delta {
  margin-top: 0.6rem;
  padding: 1rem;
  background: rgba(52, 211, 153, 0.08);
  border: 1px solid rgba(52, 211, 153, 0.3);
  border-radius: 12px;
  display: flex;
  justify-content: space-between;
  align-items: baseline;
}
.savings-delta span { font-family: var(--ff-mono); font-size: 0.74rem; letter-spacing: 0.14em; color: #6ee7b7; }
.savings-delta strong { font-size: 1.6rem; color: #34d399; font-family: var(--ff-mono); }
.savings-foot { margin-top: 0.8rem; font-size: 0.78rem; color: var(--muted); font-family: var(--ff-mono); }

/* ----------- WORK GRID ----------- */
.work-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1.2rem;
}
.work-card {
  display: grid;
  background: var(--panel);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  overflow: hidden;
  color: inherit;
  transition: transform 0.3s cubic-bezier(0.2, 0.9, 0.3, 1), border-color 0.3s;
}
.work-card:hover { transform: translateY(-6px); border-color: rgba(168, 85, 247, 0.45); }
.work-art {
  height: 160px;
  background:
    radial-gradient(ellipse 80% 60% at 30% 30%, var(--wc-a, #a855f7), transparent 70%),
    linear-gradient(135deg, var(--wc-b, #0d1020), var(--wc-a, #a855f7));
  position: relative;
  overflow: hidden;
}
.work-art::after {
  content: "";
  position: absolute; inset: 0;
  background-image:
    linear-gradient(rgba(255,255,255,0.06) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,0.06) 1px, transparent 1px);
  background-size: 24px 24px;
  mask-image: linear-gradient(180deg, rgba(0,0,0,0.6), transparent 70%);
  -webkit-mask-image: linear-gradient(180deg, rgba(0,0,0,0.6), transparent 70%);
}
.work-body { padding: 1.4rem; display: grid; gap: 0.55rem; }
.work-tag { font-family: var(--ff-mono); font-size: 0.66rem; letter-spacing: 0.16em; color: #22d3ee; font-weight: 700; }
.work-body h3 { margin: 0; font-size: 1.2rem; color: #fff; letter-spacing: -0.02em; }
.work-body p { margin: 0; color: var(--muted); font-size: 0.92rem; line-height: 1.55; }
.work-link { color: #dcc7ff; font-weight: 700; font-size: 0.9rem; margin-top: 0.3rem; }
.work-card:hover .work-link { color: #22d3ee; }
.work-card-more .work-art-plus {
  display: grid;
  place-items: center;
  background: repeating-linear-gradient(45deg, rgba(168, 85, 247, 0.15) 0 10px, rgba(13, 16, 32, 0.95) 10px 20px);
}
.plus-mark { font-size: 3rem; color: rgba(255,255,255,0.4); font-weight: 300; }

@media (max-width: 900px) {
  .work-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 560px) {
  .work-grid { grid-template-columns: 1fr; }
}

/* ----------- STEPS V2 ----------- */
.steps-grid-v2 {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 1rem;
  counter-reset: stepper;
}
.step-v2 {
  position: relative;
  padding: 1.5rem;
  background: var(--panel);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  transition: border-color 0.2s;
}
.step-v2:hover { border-color: rgba(168, 85, 247, 0.4); }
.step-num-v2 {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 44px; height: 44px;
  border-radius: 12px;
  background: linear-gradient(135deg, rgba(168, 85, 247, 0.25), rgba(34, 211, 238, 0.15));
  border: 1px solid rgba(168, 85, 247, 0.35);
  font-family: var(--ff-mono);
  font-weight: 700;
  color: #fff;
  margin-bottom: 0.9rem;
}
.step-v2 h3 { margin: 0 0 0.4rem; }
.step-v2 p { margin: 0; color: var(--muted); font-size: 0.92rem; line-height: 1.55; }

@media (max-width: 900px) { .steps-grid-v2 { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 560px) { .steps-grid-v2 { grid-template-columns: 1fr; } }

/* ----------- FINAL CTA ----------- */
.final-cta {
  position: relative;
  padding: 3.5rem 2rem;
  text-align: center;
  border-radius: 28px;
  background: linear-gradient(180deg, rgba(168, 85, 247, 0.18), rgba(13, 16, 32, 0.92));
  border: 1px solid rgba(168, 85, 247, 0.35);
  overflow: hidden;
}
.final-cta > *:not(.final-cta-glow) { position: relative; z-index: 2; }
.final-cta h2 { margin: 0.8rem auto 0.6rem; font-size: clamp(1.8rem, 4vw, 3rem); max-width: 20ch; letter-spacing: -0.03em; }
.final-cta p { margin: 0 auto 1.5rem; max-width: 56ch; color: var(--muted); }
.final-cta-glow {
  position: absolute;
  inset: -40%;
  background: radial-gradient(ellipse 40% 30% at 50% 50%, rgba(168, 85, 247, 0.4), transparent 60%);
  filter: blur(60px);
  animation: meshFloat 12s ease-in-out infinite;
  z-index: 1;
}
.final-cta .cta-row { justify-content: center; }

/* ----------- N8N SECTION ----------- */
.n8n-mark {
  display: inline-grid;
  place-items: center;
  width: 22px; height: 22px;
  margin-right: 0.35rem;
  border-radius: 6px;
  background: linear-gradient(135deg, #ea4b71, #a855f7);
  color: #fff;
  font-family: var(--ff-mono);
  font-weight: 800;
  font-size: 0.8rem;
  vertical-align: -4px;
}
.n8n-grid {
  display: grid;
  grid-template-columns: 1fr 1.1fr;
  gap: 3rem;
  align-items: stretch;
}
.n8n-copy { display: grid; gap: 1.4rem; align-content: start; }
.n8n-points { display: grid; gap: 0.7rem; }
.n8n-point {
  display: grid;
  grid-template-columns: 44px 1fr;
  gap: 0.9rem;
  align-items: start;
  padding: 0.95rem 1.05rem;
  background: var(--surface);
  border: 1px solid rgba(255,255,255,0.07);
  border-radius: 14px;
  transition: border-color 0.2s, background 0.2s, transform 0.2s;
}
.n8n-point:hover { border-color: rgba(234, 75, 113, 0.4); background: rgba(234, 75, 113, 0.06); transform: translateX(2px); }
.n8n-point-icon {
  display: inline-flex; align-items: center; justify-content: center;
  width: 40px; height: 40px;
  border-radius: 10px;
  background: linear-gradient(135deg, rgba(234, 75, 113, 0.25), rgba(168, 85, 247, 0.2));
  border: 1px solid rgba(234, 75, 113, 0.35);
  color: #fff;
  font-size: 1.15rem;
}
.n8n-point strong { display: block; color: #fff; font-size: 0.98rem; margin-bottom: 0.15rem; }
.n8n-point span { color: var(--muted); font-size: 0.88rem; line-height: 1.55; }
.n8n-cta-row { display: flex; gap: 0.8rem; flex-wrap: wrap; margin-top: 0.4rem; }

/* --- n8n-style workflow canvas --- */
.n8n-canvas {
  background: linear-gradient(180deg, #0b0d18 0%, #06070e 100%);
  border: 1px solid rgba(234, 75, 113, 0.22);
  border-radius: 18px;
  overflow: hidden;
  box-shadow: 0 30px 80px rgba(0,0,0,0.55);
  position: relative;
  height: 100%;
}
.n8n-canvas-head {
  display: flex;
  align-items: center;
  gap: 0.9rem;
  padding: 0.8rem 1rem;
  background: rgba(255,255,255,0.03);
  border-bottom: 1px solid rgba(255,255,255,0.07);
  font-family: var(--ff-mono);
  font-size: 0.78rem;
  color: var(--muted);
}
.n8n-canvas-dots { display: inline-flex; gap: 0.35rem; }
.n8n-canvas-dots span {
  width: 10px; height: 10px; border-radius: 50%;
  background: rgba(255,255,255,0.12);
}
.n8n-canvas-dots span:nth-child(1) { background: #ea4b71; }
.n8n-canvas-dots span:nth-child(2) { background: #f59e0b; }
.n8n-canvas-dots span:nth-child(3) { background: #22d3ee; }
.n8n-canvas-title { flex: 1; color: var(--soft); }
.n8n-canvas-status {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 3px 8px;
  background: rgba(52, 211, 153, 0.12);
  border: 1px solid rgba(52, 211, 153, 0.35);
  border-radius: 4px;
  color: #6ee7b7;
  font-size: 0.7rem;
  letter-spacing: 0.1em;
}
.n8n-canvas-body {
  position: relative;
  min-height: 520px;
  padding: 1rem;
  background-image:
    radial-gradient(circle at 20% 30%, rgba(168, 85, 247, 0.06), transparent 40%),
    radial-gradient(circle at 80% 70%, rgba(34, 211, 238, 0.05), transparent 40%);
  background-color: transparent;
}
.n8n-canvas-body::before {
  content: "";
  position: absolute; inset: 0;
  background-image:
    radial-gradient(circle, rgba(255,255,255,0.05) 1px, transparent 1px);
  background-size: 22px 22px;
  pointer-events: none;
  opacity: 0.7;
}
.n8n-wires {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  stroke-dasharray: 6 4;
  animation: wireDash 3s linear infinite;
}
@keyframes wireDash {
  from { stroke-dashoffset: 0; }
  to { stroke-dashoffset: -20; }
}
.n8n-node {
  position: absolute;
  display: grid;
  grid-template-columns: 40px 1fr;
  gap: 0.6rem;
  align-items: center;
  width: 180px;
  padding: 0.6rem 0.75rem;
  background: rgba(17, 20, 34, 0.96);
  border: 1px solid rgba(168, 85, 247, 0.32);
  border-radius: 12px;
  box-shadow: 0 10px 24px rgba(0,0,0,0.4);
  backdrop-filter: blur(8px);
  z-index: 2;
  transition: border-color 0.22s, transform 0.22s;
}
.n8n-node:hover { border-color: rgba(34, 211, 238, 0.5); transform: translateX(-50%) translateY(-2px); }
.n8n-node[style*="transform"]:not([style*="translateX(-50%)"]):hover { transform: translateY(-2px); }
.node-ic {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 36px; height: 36px;
  border-radius: 8px;
  background: linear-gradient(135deg, rgba(168, 85, 247, 0.3), rgba(124, 58, 237, 0.15));
  color: #fff;
  font-size: 1.1rem;
}
.node-ic-ai {
  background: linear-gradient(135deg, #a855f7, #22d3ee);
}
.node-meta { display: grid; gap: 0.08rem; min-width: 0; }
.node-type {
  font-family: var(--ff-mono);
  font-size: 0.6rem;
  letter-spacing: 0.12em;
  color: #22d3ee;
  font-weight: 700;
  text-transform: uppercase;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.n8n-node strong { font-size: 0.88rem; color: #fff; font-weight: 600; }

.n8n-node-trigger { border-color: rgba(52, 211, 153, 0.4); }
.n8n-node-trigger .node-type { color: #34d399; }
.n8n-node-trigger .node-ic { background: linear-gradient(135deg, rgba(52, 211, 153, 0.32), rgba(34, 211, 238, 0.18)); }

.n8n-node-branch { border-color: rgba(245, 158, 11, 0.4); }
.n8n-node-branch .node-type { color: #fbbf24; }
.n8n-node-branch .node-ic { background: linear-gradient(135deg, rgba(245, 158, 11, 0.32), rgba(234, 75, 113, 0.16)); }

.n8n-node-hot { border-color: rgba(234, 75, 113, 0.5); }
.n8n-node-hot .node-type { color: #f97583; }
.n8n-node-hot .node-ic { background: linear-gradient(135deg, #ea4b71, #a855f7); }

.n8n-node-sink { border-color: rgba(34, 211, 238, 0.4); }

.n8n-canvas-foot {
  display: flex;
  justify-content: space-between;
  gap: 0.6rem;
  padding: 0.6rem 1rem;
  background: rgba(255,255,255,0.02);
  border-top: 1px solid rgba(255,255,255,0.07);
  font-family: var(--ff-mono);
  font-size: 0.7rem;
  color: var(--muted);
}

@media (max-width: 960px) {
  .n8n-grid { grid-template-columns: 1fr; }
  .n8n-canvas-body { min-height: 560px; }
  .n8n-node { width: 46%; }
  .n8n-node[style*="left: 20px"] { width: 42%; }
  .n8n-node[style*="right: 20px"] { width: 42%; }
}

/* ============== SCROLL-SCRUBBED CINEMATIC HERO ============== */
.scrub-hero {
  position: relative;
  width: 100%;
  /* 400vh = 4 viewports of scroll distance drive 193 frames.
     Higher = slower/more controlled scrub. Lower = faster. */
  height: 400vh;
  background: #06050e;
}

.scrub-hero-track {
  position: relative;
  width: 100%;
  height: 100%;
}

.scrub-hero-stage {
  position: sticky;
  top: 0;
  width: 100%;
  height: 100vh;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
}

.scrub-hero-canvas {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  display: block;
  z-index: 0;
  opacity: 0;
  transition: opacity 0.6s ease;
  will-change: contents;
}

.scrub-hero-canvas.is-ready {
  opacity: 1;
}

.scrub-hero-veil {
  position: absolute;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  background:
    radial-gradient(ellipse at 50% 50%, transparent 0%, rgba(6, 5, 14, 0.35) 60%, rgba(6, 5, 14, 0.85) 100%),
    linear-gradient(180deg, rgba(6, 5, 14, 0.45) 0%, rgba(6, 5, 14, 0.1) 50%, rgba(6, 5, 14, 0.55) 100%);
}

.scrub-hero-copy {
  position: relative;
  z-index: 2;
  text-align: center;
  padding: 0 24px;
  max-width: 1100px;
  margin: 0 auto;
  pointer-events: none;
}

.scrub-hero-copy .btn {
  pointer-events: auto;
}

.scrub-beat {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 28px;
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.6s cubic-bezier(0.2, 0.9, 0.3, 1), transform 0.6s cubic-bezier(0.2, 0.9, 0.3, 1);
  pointer-events: none;
}

.scrub-beat.is-active {
  opacity: 1;
  transform: translateY(0);
}

.scrub-beat h2 {
  font-size: clamp(2.2rem, 5.5vw, 4.6rem);
  line-height: 1.05;
  letter-spacing: -0.02em;
  color: #fff;
  margin: 0;
  text-shadow: 0 0 40px rgba(168, 85, 247, 0.35), 0 2px 24px rgba(0, 0, 0, 0.6);
}

.scrub-beat .eyebrow {
  color: rgba(255, 255, 255, 0.7);
}

.scrub-hero-scroll-hint {
  position: absolute;
  bottom: 32px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  z-index: 3;
  pointer-events: none;
  animation: scrubHintFade 3.5s ease-in-out infinite;
}

.scroll-label {
  font-family: var(--ff-mono, monospace);
  font-size: 0.7rem;
  letter-spacing: 0.3em;
  color: rgba(255, 255, 255, 0.55);
}

.scroll-line {
  width: 1px;
  height: 36px;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.7), transparent);
  animation: scrubLineDrop 1.6s ease-in-out infinite;
}

@keyframes scrubHintFade {
  0%, 100% { opacity: 0.6; transform: translateX(-50%) translateY(0); }
  50%      { opacity: 1;   transform: translateX(-50%) translateY(6px); }
}

@keyframes scrubLineDrop {
  0%   { transform: scaleY(0);   transform-origin: top; }
  50%  { transform: scaleY(1);   transform-origin: top; }
  51%  { transform: scaleY(1);   transform-origin: bottom; }
  100% { transform: scaleY(0);   transform-origin: bottom; }
}

/* Hide the hint once user has scrolled past the first beat */
.scrub-hero[data-progress="past"] .scrub-hero-scroll-hint {
  opacity: 0;
  transition: opacity 0.4s ease;
}

@media (max-width: 640px) {
  .scrub-hero { height: 300vh; } /* less scroll distance on mobile */
}

/* ============== NOVA LIVE VOICE DEMO ============== */
.nova-demo {
  margin: 28px 0 20px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  align-items: flex-start;
}

.nova-demo-btn {
  position: relative;
  padding-left: 54px;
  min-height: 54px;
  font-size: 1rem;
  letter-spacing: 0.02em;
}

.nova-demo-pulse {
  position: absolute;
  left: 20px;
  top: 50%;
  width: 14px;
  height: 14px;
  border-radius: 50%;
  background: #ff3d4d;
  transform: translateY(-50%);
  box-shadow: 0 0 0 0 rgba(255, 61, 77, 0.6);
  animation: nova-pulse 1.8s infinite;
}

@keyframes nova-pulse {
  0%   { box-shadow: 0 0 0 0 rgba(255, 61, 77, 0.65); }
  70%  { box-shadow: 0 0 0 14px rgba(255, 61, 77, 0); }
  100% { box-shadow: 0 0 0 0 rgba(255, 61, 77, 0); }
}

.nova-demo-note {
  margin: 0;
  font-size: 0.82rem;
  opacity: 0.62;
  max-width: 420px;
}

.nova-demo-status {
  display: none;
  align-items: center;
  gap: 14px;
  padding: 12px 18px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.08);
  backdrop-filter: blur(6px);
}

.nova-demo[data-state="connecting"] .nova-demo-status,
.nova-demo[data-state="live"] .nova-demo-status {
  display: inline-flex;
}

.nova-demo[data-state="connecting"] .nova-demo-btn,
.nova-demo[data-state="live"] .nova-demo-btn {
  opacity: 0.55;
  pointer-events: none;
}

.nova-demo-bars {
  display: inline-flex;
  align-items: center;
  gap: 3px;
  height: 22px;
}

.nova-demo-bars span {
  display: block;
  width: 3px;
  height: 100%;
  border-radius: 2px;
  background: linear-gradient(180deg, #ff3d4d, #ff8866);
  transform: scaleY(0.2);
  transform-origin: center;
  transition: transform 90ms ease-out;
}

.nova-demo[data-state="idle"] .nova-demo-bars span,
.nova-demo[data-state="connecting"] .nova-demo-bars span {
  animation: nova-bar-idle 1.1s ease-in-out infinite;
}

.nova-demo-bars span:nth-child(2) { animation-delay: 0.12s; }
.nova-demo-bars span:nth-child(3) { animation-delay: 0.24s; }
.nova-demo-bars span:nth-child(4) { animation-delay: 0.36s; }
.nova-demo-bars span:nth-child(5) { animation-delay: 0.48s; }

@keyframes nova-bar-idle {
  0%, 100% { transform: scaleY(0.25); }
  50%      { transform: scaleY(0.8); }
}

.nova-demo-text {
  font-size: 0.88rem;
  font-weight: 500;
  letter-spacing: 0.01em;
}

.nova-demo-end {
  margin-left: 6px;
  background: rgba(255, 61, 77, 0.15);
  color: #ff8c96;
  border: 1px solid rgba(255, 61, 77, 0.4);
  padding: 6px 14px;
  border-radius: 999px;
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  cursor: pointer;
  transition: background 0.2s, color 0.2s;
}

.nova-demo-end:hover {
  background: rgba(255, 61, 77, 0.3);
  color: #fff;
}

@media (max-width: 640px) {
  .nova-demo-btn { width: 100%; justify-content: center; }
  .nova-demo-status { width: 100%; justify-content: center; }
}

