/* ============================================================
   EKKHO — style.css
   MIDNIGHT SUNSET theme · Clash Display + Inter
   deep ink-navy base · one sunset gradient identity
   (amber #ffb03a → hot pink #ff3d7f → violet #8b5cf6)
   ============================================================ */

:root {
  --bg: #0a0c15;
  --bg-2: #0d101c;
  --panel: #12152a;
  --line: rgba(244, 245, 250, 0.09);
  --line-2: rgba(244, 245, 250, 0.16);
  --ink: #f4f5fa;
  --mut: #9aa0b8;
  /* the ONE sunset gradient identity — bright on dark */
  --amber: #ffb03a;
  --pink: #ff3d7f;
  --violet: #8b5cf6;
  --grad: linear-gradient(95deg, var(--amber), var(--pink) 52%, var(--violet));
  --grad-v: linear-gradient(180deg, var(--amber), var(--pink) 52%, var(--violet));
  --dark: #0d0f1a;         /* demo mockups — lifted just off the page base */
  --dark-ink: #f4f5fa;
  --dark-mut: #9aa0b8;
  --font-display: "Clash Display", "Space Grotesk", "Inter", sans-serif;
  --font-text: "Inter", system-ui, sans-serif;
  --nav-h: 72px;
  --radius: 18px;
}

* { margin: 0; padding: 0; box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font-text);
  font-size: 16px;
  line-height: 1.62;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

/* ScrollSmoother mandatory structure — plain block flow without JS */
#smooth-wrapper { overflow: hidden; }
#smooth-content { will-change: transform; }

/* Film-grain overlay (inline SVG, no external assets) */
body::after {
  content: "";
  position: fixed;
  inset: -50%;
  pointer-events: none;
  z-index: 2000;
  opacity: 0.05;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='240' height='240'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='2'/%3E%3C/filter%3E%3Crect width='240' height='240' filter='url(%23n)'/%3E%3C/svg%3E");
}

::selection { background: rgba(255, 61, 127, 0.4); color: #0a0c15; }

a { color: inherit; text-decoration: none; }
ul, ol { list-style: none; }
button { font: inherit; color: inherit; background: none; border: 0; cursor: pointer; }

:focus-visible {
  outline: 2px solid var(--pink);
  outline-offset: 3px;
  border-radius: 4px;
}

.container { width: min(1200px, 92vw); margin-inline: auto; }
.section { padding: clamp(90px, 12vw, 150px) 0; position: relative; }

.skip-link {
  position: fixed;
  top: -60px;
  left: 16px;
  z-index: 3000;
  background: var(--grad);
  color: #0a0c15;
  font-weight: 600;
  padding: 10px 18px;
  border-radius: 999px;
  transition: top 0.2s ease;
}
.skip-link:focus { top: 14px; }

/* ---------------- Typography ---------------- */
.eyebrow {
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--pink);
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 22px;
}

.h1, .h2, h3 { font-family: var(--font-display); font-weight: 700; letter-spacing: -0.01em; }

.h2 {
  font-size: clamp(2.1rem, 4.4vw, 3.4rem);
  line-height: 1.09;
  margin-bottom: 20px;
}
/* one sunset gradient serves every gradient-text context on the dark base */
.h2 em, .clone-quote em, .h1-grad .ch, .h1-grad:not(.split) {
  font-style: normal;
  background: var(--grad);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.section-head { max-width: 720px; margin-bottom: clamp(48px, 6vw, 80px); }
.section-sub { color: var(--mut); font-size: clamp(1rem, 1.4vw, 1.15rem); max-width: 56ch; }

.pulse-dot {
  width: 8px; height: 8px; border-radius: 50%;
  background: var(--pink);
  flex: none;
  box-shadow: 0 0 0 0 rgba(255, 61, 127, 0.5);
  animation: pulseDot 2.2s ease-out infinite;
}
@keyframes pulseDot {
  0% { box-shadow: 0 0 0 0 rgba(255, 61, 127, 0.5); }
  70% { box-shadow: 0 0 0 12px rgba(255, 61, 127, 0); }
  100% { box-shadow: 0 0 0 0 rgba(255, 61, 127, 0); }
}

/* ---------------- Buttons ---------------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  background: var(--grad);
  color: #0a0c15;
  font-weight: 600;
  font-size: 15px;
  padding: 15px 30px;
  border-radius: 999px;
  position: relative;
  overflow: hidden;
  white-space: nowrap;
  box-shadow: 0 6px 24px rgba(255, 61, 127, 0.35);
  transition: box-shadow 0.3s ease, transform 0.3s ease;
  will-change: transform;
}
.btn::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(100deg, transparent 30%, rgba(255, 255, 255, 0.5) 50%, transparent 70%);
  transform: translateX(-110%);
  transition: transform 0.6s ease;
}
.btn:hover { box-shadow: 0 10px 44px rgba(255, 61, 127, 0.5), 0 2px 16px rgba(255, 176, 58, 0.4); }
.btn:hover::before { transform: translateX(110%); }
.btn-lg { padding: 18px 38px; font-size: 16px; }
.btn-sm { padding: 12px 22px; font-size: 14px; }

.btn-ghost {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 16px 30px;
  border-radius: 999px;
  border: 1px solid rgba(244, 245, 250, 0.25);
  color: var(--ink);
  font-weight: 500;
  font-size: 15px;
  transition: border-color 0.3s ease, background 0.3s ease;
  white-space: nowrap;
}
.btn-ghost:hover { border-color: var(--pink); background: rgba(255, 61, 127, 0.08); }

/* ---------------- Custom cursor ---------------- */
.cursor-dot, .cursor-ring {
  position: fixed;
  top: 0; left: 0;
  pointer-events: none;
  z-index: 2600;
  border-radius: 50%;
  display: none;
}
.cursor-dot {
  width: 8px; height: 8px;
  background: var(--pink);
  transition: opacity 0.12s ease;
}
.cursor-ring {
  width: 38px; height: 38px;
  border: 1.5px solid rgba(244, 245, 250, 0.4);
  transition: width 0.25s ease, height 0.25s ease, border-color 0.25s ease, background 0.25s ease, opacity 0.12s ease;
}
/* pointer left the document (into an iframe / out of the window) — fade out,
   the iframe's own cursor takes over inside */
body.cursor-hidden .cursor-dot, body.cursor-hidden .cursor-ring { opacity: 0; }
.cursor-ring.grow {
  width: 62px; height: 62px;
  border-color: var(--pink);
  background: rgba(255, 61, 127, 0.08);
}
body.has-cursor .cursor-dot, body.has-cursor .cursor-ring { display: block; }
body.has-cursor, body.has-cursor a, body.has-cursor button { cursor: none; }

/* ---------------- Scroll progress ---------------- */
.scroll-progress {
  position: fixed;
  top: 0; left: 0; right: 0;
  height: 3px;
  z-index: 1500;
  background: var(--grad);
  transform-origin: left;
  transform: scaleX(0);
  pointer-events: none;
}

/* ---------------- Nav ---------------- */
.nav {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 1000;
  height: var(--nav-h);
  transition: background 0.35s ease, border-color 0.35s ease, backdrop-filter 0.35s ease;
  border-bottom: 1px solid transparent;
}
.nav.scrolled {
  background: rgba(10, 12, 21, 0.78);
  -webkit-backdrop-filter: blur(14px);
  backdrop-filter: blur(14px);
  border-bottom-color: var(--line);
}
.nav-inner {
  width: min(1320px, 94vw);
  margin-inline: auto;
  height: 100%;
  display: flex;
  align-items: center;
  gap: 32px;
}
.logo {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 21px;
  letter-spacing: 0.02em;
  color: var(--ink);
}
.logo-echo {
  position: relative;
  display: inline-block;
  background: var(--grad);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
/* echo motif: the trailing O repeats, offset and fading */
.logo-echo::before,
.logo-echo::after {
  content: "O";
  position: absolute;
  top: 0;
  background: var(--grad);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  pointer-events: none;
}
.logo-echo::before { left: 0.14em; opacity: 0.4; }
.logo-echo::after { left: 0.3em; opacity: 0.16; }

.nav-links { display: flex; gap: 28px; margin-left: auto; }
.nav-links a {
  font-size: 14px;
  font-weight: 500;
  color: var(--mut);
  position: relative;
  transition: color 0.25s ease;
}
.nav-links a::after {
  content: "";
  position: absolute;
  left: 0; bottom: -6px;
  width: 100%; height: 1.5px;
  background: var(--grad);
  transform: scaleX(0);
  transform-origin: right;
  transition: transform 0.3s ease;
}
.nav-links a:hover { color: var(--ink); }
.nav-links a:hover::after { transform: scaleX(1); transform-origin: left; }

.burger {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 7px;
  padding: 10px;
  min-width: 44px;
  min-height: 44px;
  margin-left: auto;
  z-index: 1200;
}
.burger span {
  display: block;
  width: 26px; height: 2px;
  background: var(--ink);
  transition: transform 0.35s ease, opacity 0.35s ease;
}
.burger[aria-expanded="true"] span:first-child { transform: translateY(4.5px) rotate(45deg); }
.burger[aria-expanded="true"] span:last-child { transform: translateY(-4.5px) rotate(-45deg); }

/* Mobile overlay menu */
.mobile-menu {
  position: fixed;
  inset: 0;
  z-index: 1100;
  background: rgba(10, 12, 21, 0.96);
  -webkit-backdrop-filter: blur(18px);
  backdrop-filter: blur(18px);
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 0 8vw;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.4s ease, visibility 0.4s ease;
}
.mobile-menu.open { opacity: 1; visibility: visible; }
.mobile-menu-links { display: flex; flex-direction: column; gap: 6px; }
.mobile-menu-links a {
  font-family: var(--font-display);
  font-size: clamp(2rem, 9vw, 3.2rem);
  font-weight: 700;
  letter-spacing: -0.01em;
  color: var(--ink);
  padding: 8px 0;
  display: flex;
  align-items: baseline;
  gap: 18px;
  transform: translateY(30px);
  opacity: 0;
  transition: transform 0.5s cubic-bezier(0.22, 1, 0.36, 1), opacity 0.5s ease;
}
.mobile-menu.open .mobile-menu-links a { transform: none; opacity: 1; }
.mobile-menu-links a:nth-child(1) { transition-delay: 0.08s; }
.mobile-menu-links a:nth-child(2) { transition-delay: 0.14s; }
.mobile-menu-links a:nth-child(3) { transition-delay: 0.20s; }
.mobile-menu-links a:nth-child(4) { transition-delay: 0.26s; }
.mobile-menu-links a:nth-child(5) { transition-delay: 0.32s; }
.mobile-menu-links a:nth-child(6) { transition-delay: 0.38s; }
.mobile-menu-links a i {
  font-style: normal;
  font-family: var(--font-text);
  font-size: 13px;
  font-weight: 500;
  color: var(--mut);
}
.mobile-menu-links a.mobile-cta {
  background: var(--grad);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.mobile-menu-foot { position: absolute; bottom: 34px; left: 8vw; color: var(--mut); font-size: 13px; letter-spacing: 0.12em; text-transform: uppercase; }

/* ---------------- Hero ---------------- */
.hero {
  position: relative;
  min-height: 100svh;
  display: flex;
  align-items: center;
  overflow: hidden;
}
#hero-canvas {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  z-index: 1;
}
.hero-blob {
  position: absolute;
  border-radius: 50%;
  filter: blur(110px);
  z-index: 0;
  pointer-events: none;
}
.hero-blob-a { width: 46vw; height: 46vw; background: rgba(255, 61, 127, 0.15); top: -14%; right: -10%; }
.hero-blob-b { width: 36vw; height: 36vw; background: rgba(255, 176, 58, 0.12); bottom: -18%; left: -8%; }

/* dark halo behind the headline — guarantees contrast over the sunset glow */
.hero-vignette {
  position: absolute;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  background:
    radial-gradient(ellipse 80% 66% at 30% 56%, rgba(10, 12, 21, 0.85), rgba(10, 12, 21, 0.38) 55%, transparent 80%),
    linear-gradient(180deg, rgba(10, 12, 21, 0.7), transparent 26%, transparent 72%, rgba(10, 12, 21, 0.85));
}

.hero-content { position: relative; z-index: 2; padding-top: var(--nav-h); }

.h1 {
  font-size: clamp(2.6rem, 6.6vw, 5.9rem);
  line-height: 1.06;
  letter-spacing: -0.012em;
  margin: 10px 0 28px;
}
.h1-line { display: block; overflow: hidden; padding-bottom: 0.08em; margin-bottom: -0.08em; }
.h1 .ch { display: inline-block; will-change: transform; }

.hero-sub {
  color: #c0c5dc;
  font-size: clamp(1.02rem, 1.5vw, 1.22rem);
  max-width: 52ch;
  margin-bottom: 40px;
}
.hero-ctas { display: flex; gap: 18px; flex-wrap: wrap; align-items: center; }

/* Rotating hero word */
.rotator {
  display: inline-block;
  position: relative;
  overflow: hidden;
  vertical-align: bottom;
  height: 1.5em;
  /* no-JS fallback: reserve the widest word; JS zeroes this and drives an
     animated exact-fit width via inline style */
  min-width: 6.2em;
}
.rotator i {
  position: absolute;
  left: 0; top: 0;
  font-style: normal;
  white-space: nowrap;
  line-height: 1.5em;
  font-weight: 600;
  background: var(--grad);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  opacity: 0;
  transform: translateY(110%);
  transition: transform 0.55s cubic-bezier(0.22, 1, 0.36, 1), opacity 0.55s ease;
}
.rotator i.on { opacity: 1; transform: none; }
.rotator i.off { opacity: 0; transform: translateY(-110%); }

.scroll-hint {
  position: absolute;
  bottom: 34px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 2;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  color: var(--mut);
  font-size: 11px;
  letter-spacing: 0.3em;
  text-transform: uppercase;
}
.scroll-hint i {
  width: 1.5px; height: 52px;
  background: var(--line-2);
  position: relative;
  overflow: hidden;
  display: block;
}
.scroll-hint i::after {
  content: "";
  position: absolute;
  top: -40%;
  left: 0;
  width: 100%; height: 40%;
  background: var(--grad);
  animation: scrollDrop 1.8s ease-in-out infinite;
}
@keyframes scrollDrop {
  0% { top: -40%; }
  100% { top: 110%; }
}

/* ---------------- Marquee ---------------- */
.marquee {
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  padding: 22px 0;
  overflow: hidden;
  background: rgba(255, 255, 255, 0.03);
}
.marquee-track {
  display: flex;
  width: max-content;
  animation: marquee 28s linear infinite;
}
.marquee-inner {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: clamp(1.1rem, 2.4vw, 1.7rem);
  letter-spacing: 0.02em;
  text-transform: uppercase;
  white-space: nowrap;
  color: var(--ink);
  padding-right: 12px;
}
.marquee-inner b {
  background: var(--grad);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  padding: 0 14px;
}
@keyframes marquee {
  from { transform: translateX(0); }
  to { transform: translateX(-50%); }
}

/* ---------------- Section tints ---------------- */
.tint { background: linear-gradient(180deg, rgba(255, 176, 58, 0.045), rgba(139, 92, 246, 0.05) 55%, transparent); }

/* ---------------- Stats ---------------- */
.stats { padding: clamp(60px, 8vw, 90px) 0; }
.stats-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 28px;
}
.stat b {
  display: block;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(2.4rem, 4.5vw, 3.8rem);
  line-height: 1.04;
  background: var(--grad);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  margin-bottom: 10px;
}
.stat > span:last-child { color: var(--mut); font-size: 14px; }

/* ---------------- Service cards ---------------- */
.cards {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 22px;
}
/* horizontal-scroll mode — added by JS only when the pin is active */
#services.hscroll .cards-viewport { overflow: visible; }
#services.hscroll .cards { display: flex; width: max-content; }
#services.hscroll .card { flex: 0 0 384px; }

.card {
  position: relative;
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 34px 30px 30px;
  overflow: hidden;
  box-shadow: 0 18px 44px rgba(0, 0, 0, 0.35);
  transform-style: preserve-3d;
  transition: border-color 0.3s ease;
  will-change: transform;
}
.card::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  padding: 1px;
  background: linear-gradient(140deg, rgba(255, 176, 58, 0.9), rgba(255, 61, 127, 0.75));
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  -webkit-mask-composite: xor;
  mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  mask-composite: exclude;
  opacity: 0.25;
  transition: opacity 0.35s ease;
  pointer-events: none;
}
.card::after {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(420px circle at var(--mx, 50%) var(--my, 50%), rgba(255, 176, 58, 0.12), transparent 60%);
  opacity: 0;
  transition: opacity 0.3s ease;
  pointer-events: none;
}
.card:hover::before { opacity: 1; }
.card:hover::after { opacity: 1; }
.card-icon {
  width: 52px; height: 52px;
  border-radius: 14px;
  background: rgba(255, 176, 58, 0.12);
  border: 1px solid rgba(255, 176, 58, 0.45);
  display: grid;
  place-items: center;
  margin-bottom: 22px;
  color: #ffb03a;
}
.card-icon svg { width: 26px; height: 26px; }
.card-num {
  position: absolute;
  top: 26px; right: 28px;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 15px;
  color: rgba(244, 245, 250, 0.5);
}
.card h3 { font-size: 1.3rem; margin-bottom: 12px; letter-spacing: -0.005em; }
.card p { color: var(--mut); font-size: 0.95rem; margin-bottom: 20px; }
.card-tags { display: flex; flex-wrap: wrap; gap: 8px; }
.card-tags li {
  font-size: 12px;
  font-weight: 500;
  color: var(--mut);
  border: 1px solid var(--line-2);
  border-radius: 999px;
  padding: 5px 12px;
}
.card-flag {
  position: absolute;
  top: 22px; right: -34px;
  transform: rotate(38deg);
  background: var(--grad);
  color: #0a0c15;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 5px 40px;
}

/* ---------------- Demos (dark mockups, lifted + glowing off the dark page) ---------------- */
.demo-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 22px;
  align-items: start;
}
.browser {
  background: var(--dark);
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.5), 0 0 70px rgba(255, 61, 127, 0.07);
}
.browser-bar {
  display: flex;
  align-items: center;
  gap: 7px;
  padding: 11px 14px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.09);
  background: rgba(255, 255, 255, 0.03);
}
.b-dot { width: 10px; height: 10px; border-radius: 50%; background: rgba(255, 255, 255, 0.14); flex: none; }
.b-dot:nth-child(1) { background: #ff5f57; }
.b-dot:nth-child(2) { background: #febc2e; }
.b-dot:nth-child(3) { background: #28c840; }
.b-url {
  margin-inline: auto;
  font-size: 11px;
  color: var(--dark-mut);
  background: rgba(255, 255, 255, 0.06);
  border-radius: 999px;
  padding: 4px 14px;
  max-width: 55%;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.b-live {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.1em;
  color: var(--amber);
}
.b-live i, .voice-rec i, .flow-status-dot {
  width: 7px; height: 7px;
  border-radius: 50%;
  background: currentColor;
  animation: blink 1.4s ease-in-out infinite;
}
@keyframes blink { 0%, 100% { opacity: 1; } 50% { opacity: 0.25; } }

.browser-body {
  height: 300px;
  position: relative;
  overflow: hidden;
}
.demo-caption { padding: 16px 18px 18px; color: var(--dark-mut); font-size: 0.9rem; border-top: 1px solid rgba(255, 255, 255, 0.09); }
.demo-caption b { color: var(--dark-ink); }

/* Pause all demo CSS animation while off-screen */
.demo:not(.is-active) .browser-body *,
.demo:not(.is-active) .b-live i {
  animation-play-state: paused !important;
}

/* --- Chat demo --- */
.chat-body {
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding: 16px;
  overflow-y: auto;
  scrollbar-width: none;
}
.chat-body::-webkit-scrollbar { display: none; }
.msg {
  max-width: 82%;
  padding: 10px 14px;
  border-radius: 14px;
  font-size: 0.86rem;
  line-height: 1.45;
  animation: msgIn 0.35s cubic-bezier(0.22, 1, 0.36, 1);
}
@keyframes msgIn {
  from { opacity: 0; transform: translateY(10px) scale(0.97); }
  to { opacity: 1; transform: none; }
}
.msg.user {
  align-self: flex-end;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.13);
  color: var(--dark-ink);
  border-bottom-right-radius: 4px;
}
.msg.agent {
  align-self: flex-start;
  background: linear-gradient(120deg, rgba(255, 176, 58, 0.16), rgba(255, 61, 127, 0.14));
  border: 1px solid rgba(255, 176, 58, 0.4);
  color: var(--dark-ink);
  border-bottom-left-radius: 4px;
}
.msg.typing { display: inline-flex; gap: 5px; padding: 13px 16px; }
.msg.typing i {
  width: 6px; height: 6px;
  border-radius: 50%;
  background: var(--dark-ink);
  opacity: 0.5;
  animation: typingDot 1s ease-in-out infinite;
}
.msg.typing i:nth-child(2) { animation-delay: 0.15s; }
.msg.typing i:nth-child(3) { animation-delay: 0.3s; }
@keyframes typingDot { 0%, 100% { transform: translateY(0); opacity: 0.4; } 50% { transform: translateY(-4px); opacity: 1; } }

/* --- Voice demo --- */
.voice-body { display: flex; flex-direction: column; padding: 16px 18px; }
.voice-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.12em;
  color: var(--dark-mut);
  margin-bottom: 8px;
}
.voice-rec { color: #ff5f57; display: inline-flex; align-items: center; gap: 6px; }
.waveform {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 3px;
  min-height: 120px;
}
.waveform span {
  width: 4px;
  border-radius: 3px;
  background: var(--grad-v);
  height: var(--h, 30%);
  animation: wave 1.05s ease-in-out infinite alternate;
  animation-delay: var(--d, 0s);
  transform-origin: center;
}
@keyframes wave {
  from { transform: scaleY(0.25); opacity: 0.55; }
  to { transform: scaleY(1); opacity: 1; }
}
.voice-transcript {
  position: relative;
  height: 3.4em;
  margin-top: 10px;
}
.vt-line {
  position: absolute;
  inset: 0;
  font-size: 0.82rem;
  color: var(--dark-mut);
  opacity: 0;
  animation: vLine 9s linear infinite;
}
.vt-line.vt-a::before { content: "AGENT · "; color: var(--amber); font-weight: 600; font-size: 0.72rem; letter-spacing: 0.08em; display: block; }
.vt-line.vt-b::before { content: "CALLER · "; color: var(--pink); font-size: 0.72rem; font-weight: 600; letter-spacing: 0.08em; display: block; }
.vt-line:nth-child(1) { animation-delay: 0s; }
.vt-line:nth-child(2) { animation-delay: 3s; }
.vt-line:nth-child(3) { animation-delay: 6s; }
@keyframes vLine {
  0% { opacity: 0; transform: translateY(8px); }
  4%, 30% { opacity: 1; transform: none; }
  36%, 100% { opacity: 0; transform: translateY(-6px); }
}

/* --- Flow demo --- */
.flow-body {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 22px;
  padding: 20px;
}
.flow-pipe {
  display: grid;
  grid-template-columns: 1fr 26px 1fr 26px 1fr 26px 1fr;
  align-items: center;
  gap: 4px;
}
.flow-node {
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 12px;
  padding: 12px 6px;
  text-align: center;
  color: var(--dark-ink);
  animation: nodeOn 4.8s ease-in-out infinite;
  animation-delay: calc(var(--i) * 1.2s);
}
.flow-node b { display: block; font-family: var(--font-display); font-weight: 600; font-size: 0.82rem; letter-spacing: 0; }
.flow-node span { font-size: 11px; color: var(--dark-mut); }
@keyframes nodeOn {
  0%, 22% {
    border-color: var(--pink);
    box-shadow: 0 0 26px rgba(255, 61, 127, 0.45), inset 0 0 16px rgba(255, 176, 58, 0.18);
    transform: translateY(-3px);
  }
  34%, 100% { border-color: rgba(255, 255, 255, 0.18); box-shadow: none; transform: none; }
}
.flow-link { height: 2px; background: rgba(255, 255, 255, 0.12); border-radius: 2px; overflow: hidden; }
.flow-link i {
  display: block;
  height: 100%;
  background: var(--grad);
  transform: scaleX(0);
  transform-origin: left;
  animation: linkFill 4.8s ease-in-out infinite;
  animation-delay: calc(var(--i) * 1.2s + 0.55s);
}
@keyframes linkFill {
  0% { transform: scaleX(0); opacity: 1; }
  20% { transform: scaleX(1); opacity: 1; }
  32%, 100% { transform: scaleX(1); opacity: 0.18; }
}
.flow-status {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.78rem;
  color: var(--dark-mut);
  justify-content: center;
}
.flow-status-dot { color: var(--amber); }

/* ---------------- Echo section (sunset-glow chapter on the midnight base) ---------------- */
.clone {
  background:
    radial-gradient(ellipse 60% 50% at 85% 20%, rgba(255, 61, 127, 0.13), transparent 70%),
    radial-gradient(ellipse 50% 40% at 10% 90%, rgba(255, 176, 58, 0.1), transparent 70%),
    radial-gradient(ellipse 55% 45% at 45% 55%, rgba(139, 92, 246, 0.07), transparent 75%),
    #0b0d18;
  color: var(--dark-ink);
  overflow: hidden;
}
.clone .eyebrow { color: var(--amber); }
.clone .h2 { color: var(--dark-ink); }
.clone .section-sub, .clone-copy p { color: var(--dark-mut); }
.clone-grid {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: clamp(40px, 6vw, 90px);
  align-items: center;
}
.clone-copy p { margin-bottom: 18px; max-width: 56ch; }
.clone-quote {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: clamp(1.15rem, 2vw, 1.5rem);
  line-height: 1.3;
  color: var(--dark-ink);
  border-left: 3px solid;
  border-image: var(--grad-v) 1;
  padding-left: 22px;
  margin: 30px 0;
}
.ai-badge {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  border: 1px solid rgba(255, 176, 58, 0.45);
  background: rgba(255, 176, 58, 0.07);
  border-radius: 14px;
  padding: 13px 18px;
}
.ai-badge svg { width: 26px; height: 26px; color: var(--amber); flex: none; }
.ai-badge span { font-size: 12px; color: var(--dark-mut); line-height: 1.4; }
.ai-badge b { display: block; color: var(--dark-ink); font-size: 13px; }

.clone-visual { position: relative; display: grid; place-items: center; min-height: 420px; }
.clone-card {
  width: min(340px, 84vw);
  background: linear-gradient(165deg, rgba(255, 61, 127, 0.12), rgba(11, 14, 32, 0.92) 45%);
  border: 1px solid rgba(255, 61, 127, 0.4);
  border-radius: 22px;
  padding: 22px;
  box-shadow: 0 40px 90px rgba(0, 0, 0, 0.55), 0 0 70px rgba(255, 61, 127, 0.14);
  transform: rotate(-3deg);
}
.clone-card-top {
  display: flex;
  justify-content: space-between;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.12em;
  color: var(--dark-mut);
  margin-bottom: 18px;
}
.clone-live { color: var(--amber); display: inline-flex; align-items: center; gap: 6px; }
.clone-live i { width: 7px; height: 7px; border-radius: 50%; background: currentColor; animation: blink 1.4s infinite; }
.clone-face { position: relative; display: grid; place-items: center; padding: 8px 0 14px; overflow: hidden; border-radius: 14px; }
.clone-face svg { width: 150px; height: 150px; }
.clone-scan {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 20%, rgba(255, 176, 58, 0.16) 50%, transparent 80%);
  animation: scan 2.8s ease-in-out infinite;
}
@keyframes scan {
  0% { transform: translateY(-100%); }
  100% { transform: translateY(100%); }
}
.clone-wave {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 3px;
  height: 44px;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  margin-bottom: 14px;
}
.clone-wave span {
  width: 4px;
  border-radius: 3px;
  background: var(--grad-v);
  height: var(--h, 40%);
  animation: wave 1s ease-in-out infinite alternate;
  animation-delay: var(--d, 0s);
}
.clone-meta { display: flex; justify-content: space-between; font-size: 11px; font-weight: 700; letter-spacing: 0.1em; color: var(--dark-mut); }

.clone-chip {
  position: absolute;
  background: rgba(13, 15, 26, 0.94);
  border: 1px solid rgba(255, 255, 255, 0.16);
  color: var(--dark-ink);
  border-radius: 999px;
  padding: 9px 18px;
  font-size: 12px;
  font-weight: 600;
  box-shadow: 0 14px 40px rgba(0, 0, 0, 0.45);
  animation: float 5s ease-in-out infinite;
}
.chip-a { top: 6%; left: -2%; animation-delay: 0s; }
.chip-b { bottom: 6%; right: -3%; animation-delay: 1.4s; }
.chip-c { bottom: -4%; left: 8%; animation-delay: 2.6s; }
@keyframes float {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-12px); }
}

/* ---------------- Content, automated ---------------- */
.content-grid {
  display: grid;
  grid-template-columns: 0.95fr 1.05fr;
  gap: clamp(40px, 6vw, 90px);
  align-items: center;
}
/* desktop rhythm: echo is copy-left/visual-right, this section alternates */
.content-visual { order: -1; }
.content-visual .brand-film { margin-top: 0; }
.content-visual .brand-film::after { content: none; }
.content-copy p { color: var(--mut); max-width: 56ch; }
.content-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 24px 0 32px;
}
.content-chips li {
  font-size: 12px;
  font-weight: 500;
  color: var(--mut);
  border: 1px solid var(--line-2);
  border-radius: 999px;
  padding: 6px 14px;
}
.content-disclosure { margin-top: 20px; color: rgba(154, 160, 184, 0.85); font-size: 0.78rem; }

/* ---------------- Process ---------------- */
.process-pin { position: relative; }
.process-line {
  position: absolute;
  top: 0; left: 0;
  width: 100%;
  height: 10px;
  overflow: visible;
  display: none; /* desktop pinned mode only */
}
.steps {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 0;
}
.step {
  position: relative;
  padding: 34px 22px 0;
  border-top: 1px solid var(--line-2);
}
.step::before {
  content: "";
  position: absolute;
  top: -5px; left: 22px;
  width: 9px; height: 9px;
  border-radius: 50%;
  background: var(--grad);
  box-shadow: 0 0 18px rgba(255, 61, 127, 0.7);
}
.step-num {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 2rem;
  line-height: 1.04;
  background: var(--grad);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  opacity: 0.75;
  display: block;
  margin-bottom: 12px;
}
.step h3 { font-size: 1.15rem; margin-bottom: 10px; }
.step p { color: var(--mut); font-size: 0.88rem; }
/* pinned mode (JS, desktop) */
@media (min-width: 1024px) {
  #process.pinned .process-line { display: block; }
}

/* ---------------- Work / cases ---------------- */
.cases { display: flex; flex-direction: column; }
.case {
  display: grid;
  grid-template-columns: 1.15fr 1fr;
  gap: clamp(28px, 5vw, 70px);
  align-items: center;
  padding: clamp(36px, 5vw, 56px) 0;
  border-top: 1px solid var(--line);
}
.case:last-child { border-bottom: 1px solid var(--line); }
.case-tag {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--pink);
  display: block;
  margin-bottom: 14px;
}
.case h3 { font-size: clamp(1.5rem, 2.6vw, 2.1rem); margin-bottom: 14px; }
.case-info p { color: var(--mut); max-width: 48ch; }
.case-metrics {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
}
.case-metrics dt {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(1.7rem, 3vw, 2.5rem);
  line-height: 1.04;
  background: var(--grad);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  margin-bottom: 6px;
}
.case-metrics dd { color: var(--mut); font-size: 0.8rem; }

/* ---------------- Booking (dark sunset-ember finale, widget reskinned to match) ---------------- */
.book {
  background:
    radial-gradient(ellipse 58% 46% at 85% 6%, rgba(255, 61, 127, 0.13), transparent 70%),
    radial-gradient(ellipse 52% 44% at 6% 96%, rgba(255, 176, 58, 0.11), transparent 70%),
    radial-gradient(ellipse 60% 52% at 50% 55%, rgba(139, 92, 246, 0.09), transparent 75%),
    #0b0d18;
  color: var(--ink);
}
.book .eyebrow { color: var(--pink); }
.book .h2 { color: var(--ink); }
.book .h2 em {
  font-style: normal;
  background: var(--grad);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.book-panel {
  text-align: center;
  max-width: 760px;
  margin-inline: auto;
  background: rgba(18, 21, 40, 0.72);
  -webkit-backdrop-filter: blur(14px);
  backdrop-filter: blur(14px);
  border: 1px solid rgba(255, 255, 255, 0.13);
  border-radius: 28px;
  padding: clamp(44px, 7vw, 80px) clamp(24px, 5vw, 64px);
  position: relative;
  overflow: hidden;
  box-shadow: 0 30px 90px rgba(0, 0, 0, 0.5), 0 0 90px rgba(255, 61, 127, 0.1);
}
.book-panel::before {
  content: "";
  position: absolute;
  top: -40%; left: 50%;
  transform: translateX(-50%);
  width: 70%; height: 60%;
  background: radial-gradient(ellipse, rgba(255, 176, 58, 0.14), transparent 70%);
  filter: blur(30px);
  pointer-events: none;
}
.book-sub { color: #c6cadf; max-width: 52ch; margin: 0 auto 40px; position: relative; }
.book-embed {
  border: 1.5px dashed rgba(244, 245, 250, 0.25);
  border-radius: 18px;
  padding: clamp(30px, 5vw, 48px);
  position: relative;
  background: rgba(255, 255, 255, 0.04);
}
.book-embed-inner { display: flex; flex-direction: column; align-items: center; gap: 18px; }
.book-embed-icon { color: var(--mut); }
.book-embed-icon svg { width: 34px; height: 34px; }
.book-embed p { color: var(--mut); font-size: 0.9rem; }

/* ---------------- Footer ---------------- */
.footer { border-top: 1px solid var(--line); padding: 70px 0 34px; background: var(--bg-2); }
.footer-grid {
  display: flex;
  justify-content: space-between;
  gap: 40px;
  flex-wrap: wrap;
  margin-bottom: 54px;
}
.footer-brand { max-width: 380px; display: flex; flex-direction: column; align-items: flex-start; gap: 16px; }
.footer-brand p { color: var(--mut); font-size: 0.95rem; }
.footer-nav { display: grid; grid-template-columns: repeat(2, auto); gap: 12px 48px; align-content: start; }
.footer-nav a { color: var(--mut); font-size: 0.92rem; padding: 10px 0; transition: color 0.25s ease; }
.footer-nav a:hover { color: var(--ink); }
.footer-small {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  flex-wrap: wrap;
  border-top: 1px solid var(--line);
  padding-top: 26px;
}
.footer-small p { color: rgba(154, 160, 184, 0.85); font-size: 0.78rem; max-width: 72ch; }
.footer-small a {
  color: var(--ink);
  text-decoration: underline;
  text-underline-offset: 3px;
  display: inline-block;
  padding: 6px 0;
}

/* ---------------- Generative video layers ---------------- */
/* hero underlay: bottom-most layer, under canvas blobs + vignette */
.hero-video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: 0;
  opacity: 0.52;
  pointer-events: none;
}

/* brand film band: one full-width cinematic player under the live demos */
.brand-film {
  position: relative;
  margin: clamp(48px, 6vw, 80px) 0 0;
  aspect-ratio: 16 / 9;
  border-radius: 26px;
  overflow: hidden;
  background: #0a0c15;
  border: 1px solid rgba(255, 255, 255, 0.14);
  box-shadow: 0 30px 80px rgba(0, 0, 0, 0.5), 0 0 90px rgba(255, 61, 127, 0.12), 0 0 50px rgba(255, 176, 58, 0.07);
  will-change: transform;
}
.brand-film video {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}
/* scrim keeps the overlay caption legible over any keyframe */
.brand-film::after {
  content: "";
  position: absolute;
  inset: auto 0 0 0;
  height: 42%;
  background: linear-gradient(180deg, transparent, rgba(10, 12, 21, 0.55));
  pointer-events: none;
}
.brand-film-cap {
  position: absolute;
  left: clamp(18px, 3vw, 34px);
  bottom: clamp(16px, 3vw, 28px);
  z-index: 1;
  display: flex;
  flex-direction: column;
  gap: 3px;
  color: #f4f5fa;
  font-size: clamp(0.82rem, 1.1vw, 0.95rem);
  font-weight: 500;
  text-shadow: 0 1px 8px rgba(10, 12, 21, 0.8);
}
.brand-film-cap small {
  font-size: 0.72rem;
  font-weight: 400;
  letter-spacing: 0.04em;
  color: rgba(244, 245, 250, 0.65);
}

/* echo showreel: vertical phone frame, overlapping the clone card */
.clone-stage {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
}
.phone-fig {
  position: relative;
  z-index: 2;
  margin: 0 0 0 -56px;
  transform: rotate(2deg);
}
.phone-frame {
  position: relative;
  width: 196px;
  aspect-ratio: 9 / 16;
  border-radius: 30px;
  border: 1px solid rgba(255, 255, 255, 0.18);
  background: #0a0c15;
  padding: 8px;
  overflow: hidden;
  box-shadow: 0 30px 70px rgba(0, 0, 0, 0.55), 0 0 60px rgba(139, 92, 246, 0.16);
}
.phone-frame video {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 23px;
}
.phone-notch {
  position: absolute;
  top: 15px;
  left: 50%;
  transform: translateX(-50%);
  width: 56px;
  height: 12px;
  border-radius: 999px;
  background: #0a0c15;
  border: 1px solid rgba(255, 255, 255, 0.1);
}
.echo-caption {
  margin-top: 16px;
  text-align: center;
  font-size: 0.82rem;
  color: var(--dark-mut);
}

/* ---------------- Quiet text-link CTAs ---------------- */
.quiet-cta { margin-top: 34px; }
.quiet-cta a {
  display: inline-block;
  padding: 12px 0;
  font-size: 0.95rem;
  font-weight: 500;
  background: var(--grad);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  border-bottom: 1px solid rgba(255, 61, 127, 0.4);
  transition: border-color 0.25s ease;
}
.quiet-cta a:hover { border-color: var(--pink); }

/* ---------------- FAQ (accessible accordion) ---------------- */
.faq-list { display: flex; flex-direction: column; max-width: 860px; }
.faq-item { border-top: 1px solid var(--line); }
.faq-item:last-child { border-bottom: 1px solid var(--line); }
.faq-q {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: 22px 4px;
  min-height: 44px;
  text-align: left;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: clamp(1.05rem, 1.8vw, 1.3rem);
  letter-spacing: -0.005em;
  color: var(--ink);
  transition: color 0.25s ease;
}
.faq-q:hover { color: var(--pink); }
.faq-q i {
  flex: none;
  width: 14px; height: 14px;
  position: relative;
  transition: transform 0.3s ease;
}
.faq-q i::before, .faq-q i::after {
  content: "";
  position: absolute;
  top: 50%; left: 0;
  width: 100%; height: 2px;
  border-radius: 2px;
  background: var(--grad);
  transform: translateY(-50%);
}
.faq-q i::after { transform: translateY(-50%) rotate(90deg); transition: transform 0.3s ease; }
.faq-q[aria-expanded="true"] i { transform: rotate(45deg); }
.faq-a[hidden] { display: none !important; }
.faq-a p {
  color: var(--mut);
  max-width: 64ch;
  padding: 0 4px 24px;
  animation: faqIn 0.3s cubic-bezier(0.22, 1, 0.36, 1);
}
@keyframes faqIn {
  from { opacity: 0; transform: translateY(-6px); }
  to { opacity: 1; transform: none; }
}

/* ---------------- Book section extras ---------------- */
.book-who {
  margin: 26px auto 0;
  color: #c6cadf;
  font-size: 0.98rem;
  position: relative;
}
.book-who b { color: var(--ink); }
.book-who span { color: var(--mut); font-size: 0.88rem; }
.book-guarantee {
  margin: 18px auto 40px;
  max-width: 52ch;
  color: var(--mut);
  font-size: 0.88rem;
  position: relative;
}
.step p a { color: var(--ink); text-decoration: underline; text-underline-offset: 3px; }

/* ---------------- Services pin counter ---------------- */
.pin-counter {
  margin-top: 26px;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 0.9rem;
  letter-spacing: 0.14em;
  color: var(--mut);
}
.pin-counter b {
  background: var(--grad);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  font-weight: 700;
}

/* visually hidden, screen-reader only */
.vh {
  position: absolute;
  width: 1px; height: 1px;
  padding: 0; margin: -1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
  border: 0;
}

/* ---------------- Responsive ---------------- */
@media (max-width: 1024px) {
  .cards { grid-template-columns: repeat(2, 1fr); }
  .demo-grid { grid-template-columns: 1fr; max-width: 620px; margin-inline: auto; }
  .steps { grid-template-columns: repeat(2, 1fr); gap: 34px 22px; }
  .stats-grid { grid-template-columns: repeat(2, 1fr); gap: 40px 28px; }
}

@media (max-width: 760px) {
  .nav-links, .nav .btn { display: none; }
  .burger { display: flex; }
  .cards { grid-template-columns: 1fr; }
  .clone-grid { grid-template-columns: 1fr; }
  .clone-visual { min-height: 380px; margin-top: 20px; }
  .content-grid { grid-template-columns: 1fr; }
  .content-visual { order: 0; margin-top: 20px; }
  .case { grid-template-columns: 1fr; gap: 26px; }
  .case-metrics { grid-template-columns: repeat(3, 1fr); gap: 12px; }
  .steps { grid-template-columns: 1fr; }
  .hero-ctas .btn-lg, .hero-ctas .btn-ghost { width: 100%; justify-content: center; }
  .scroll-hint { display: none; }
  .flow-node span { display: none; }
  .flow-node b { font-size: 0.7rem; }
  .phone-fig { margin: -26px 0 0; }
  .phone-frame { width: 172px; }
  /* brand film goes full-bleed-ish on small screens */
  .brand-film { margin-inline: -3vw; border-radius: 16px; }
}

/* ---------------- Reduced motion ---------------- */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
  html { scroll-behavior: auto; }
  .marquee-track { animation: none; transform: none; }
  .scroll-hint { display: none; }
  .cursor-dot, .cursor-ring { display: none !important; }
  /* voice-demo transcript: show all three lines statically */
  .voice-transcript { height: auto; }
  .vt-line { position: static; opacity: 1; transform: none; animation: none; }
  .vt-line + .vt-line { margin-top: 8px; }
}
