/* ==========================================================================
   Vaani public site. Plain CSS, no build step.
   Red on black. Colours are tokens on :root.
   Motion (scroll effects, preloader, cursor) lives in motion.js; the
   `.has-motion` class on <html> marks that it's running.
   ========================================================================== */

:root {
  --bg: #070606;
  --bg-2: #0e0b0b;
  --card: #141011;
  --ink: #f6f1ef;
  --ink-2: rgba(246, 241, 239, .64);
  --ink-3: rgba(246, 241, 239, .36);
  --line: rgba(246, 241, 239, .1);

  --red: #ff1f2d;
  --red-hot: #ff4553;
  --red-deep: #c40812;
  --red-glow: rgba(255, 31, 45, .45);
  --on-red: #070606;

  --radius: 20px;
  --shadow: 0 30px 60px -30px rgba(0, 0, 0, .9);

  --font: "Inter", system-ui, -apple-system, "Segoe UI", sans-serif;
  --mono: "JetBrains Mono", ui-monospace, "SFMono-Regular", Consolas, monospace;
  --indic: "Noto Sans Telugu", "Noto Sans Devanagari", var(--font);
  --gutter: clamp(16px, 4vw, 40px);
  --max: 1240px;
  --ease: cubic-bezier(.2, .8, .2, 1);
  color-scheme: dark;
}

/* ---------- Base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 80px; -webkit-text-size-adjust: 100%; background: var(--bg); }
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font);
  font-size: 17px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
/* Film grain over everything. */
body::after {
  content: "";
  position: fixed; inset: 0;
  pointer-events: none;
  z-index: 90;
  opacity: .07;
  mix-blend-mode: overlay;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}
::selection { background: var(--red); color: var(--on-red); }
img, svg, canvas { display: block; max-width: 100%; }
a { color: inherit; }
h1, h2, h3, p { margin: 0; }
button { font: inherit; color: inherit; }
:focus-visible { outline: 2px solid var(--red); outline-offset: 3px; border-radius: 6px; }

[hidden] { display: none !important; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip-link { position: absolute; left: 16px; top: -60px; z-index: 200; background: var(--red); color: var(--on-red); padding: 10px 14px; border-radius: 10px; }
.skip-link:focus { top: 12px; }

.wrap { width: 100%; max-width: var(--max); margin: 0 auto; padding: 0 var(--gutter); }
.mono { font-family: var(--mono); font-size: .82em; letter-spacing: -.01em; }
.muted { color: var(--ink-3); }

/* Lenis smooth scroll (from lenis/dist/lenis.css) */
html.lenis, html.lenis body { height: auto; }
/* Lenis does the smoothing; native smooth scrolling would fight it frame by frame. */
html.lenis { scroll-behavior: auto !important; }
.lenis:not(.lenis-autoToggle).lenis-stopped { overflow: clip; }
.lenis [data-lenis-prevent] { overscroll-behavior: contain; }

/* ---------- Type ---------- */
.display {
  font-weight: 700;
  letter-spacing: -.05em;
  line-height: .93;
  font-family: var(--font), var(--indic);
}
.h2 { font-size: clamp(2.3rem, 6vw, 4.8rem); }
.lede { color: var(--ink-2); font-size: clamp(1rem, 1.3vw, 1.15rem); max-width: 34rem; margin-top: 22px; }
.eyebrow {
  display: inline-flex; align-items: center; gap: 10px;
  font-family: var(--mono); font-size: .78rem; text-transform: uppercase; letter-spacing: .1em;
  color: var(--ink-2); margin-bottom: 22px;
}
.node-dot {
  display: inline-block; width: .19em; height: .19em; margin-left: .05em;
  border-radius: 50%; background: var(--red);
  animation: dotPulse 2.4s ease-out infinite;
}
@keyframes dotPulse { 0% { box-shadow: 0 0 0 0 var(--red-glow); } 70%, 100% { box-shadow: 0 0 0 .3em transparent; } }

.pulse-dot { width: 8px; height: 8px; border-radius: 50%; background: var(--red); position: relative; flex: none; display: inline-block; }
.pulse-dot::after { content: ""; position: absolute; inset: -4px; border-radius: 50%; border: 2px solid var(--red); opacity: 0; animation: ping 1.8s ease-out infinite; }
@keyframes ping { 0% { transform: scale(.6); opacity: .8; } 100% { transform: scale(1.8); opacity: 0; } }

/* Split-text pieces created by motion.js */
.w { display: inline-block; overflow: hidden; vertical-align: top; padding-bottom: .08em; margin-bottom: -.08em; }
.w__i { display: inline-block; will-change: transform; }
.ch { display: inline-block; will-change: transform; }

/* ---------- Buttons ---------- */
.btn {
  position: relative;
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 54px; padding: 0 28px; border-radius: 999px;
  font-weight: 600; font-size: .98rem; text-decoration: none; letter-spacing: -.01em;
  border: 1px solid transparent; cursor: pointer; overflow: hidden; isolation: isolate;
  transition: background .25s ease, border-color .25s ease, color .25s ease, box-shadow .25s ease;
}
.btn svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
/* A fill that sweeps up from below on hover */
.btn::before { content: ""; position: absolute; inset: 0; z-index: -1; border-radius: inherit; transform: translateY(101%); transition: transform .45s var(--ease); }
.btn:hover::before { transform: none; }
.btn--fill { background: var(--red); color: #fff; box-shadow: 0 10px 40px -10px var(--red-glow); }
.btn--fill::before { background: var(--ink); }
.btn--fill:hover { color: var(--bg); box-shadow: 0 10px 50px -8px var(--red-glow); }
.btn--ghost { border-color: var(--line); background: rgba(255,255,255,.02); }
.btn--ghost::before { background: var(--red); }
.btn--ghost:hover { border-color: var(--red); color: #fff; }
.btn--dark { background: var(--bg); color: var(--ink); }
.btn--dark::before { background: var(--ink); }
.btn--dark:hover { color: var(--bg); }
.btn--line { border-color: rgba(7, 6, 6, .35); color: var(--on-red); }
.btn--line::before { background: var(--bg); }
.btn--line:hover { color: var(--ink); border-color: var(--bg); }
.btn--sm { min-height: 42px; padding: 0 18px; font-size: .88rem; }
.btn--icon { width: 54px; min-height: 54px; padding: 0; border-color: var(--line); background: transparent; font-size: 1.1rem; }
.btn--icon::before { background: var(--red); }
.btn--icon:hover:not(:disabled) { border-color: var(--red); }
.btn:disabled { opacity: .35; cursor: not-allowed; }
.btn:disabled::before { display: none; }

/* ---------- Preloader ---------- */
.preloader { display: none; }
.has-motion:not(.skip-intro) .preloader {
  position: fixed; inset: 0; z-index: 300;
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 22px;
  background: var(--bg); color: var(--ink);
}
.preloader__bars { display: flex; align-items: center; gap: 6px; height: 64px; }
.preloader__bars i { width: 6px; height: 100%; border-radius: 6px; background: var(--red); animation: wave 1s ease-in-out infinite; }
.preloader__bars i:nth-child(2) { animation-delay: -.15s; }
.preloader__bars i:nth-child(3) { animation-delay: -.3s; }
.preloader__bars i:nth-child(4) { animation-delay: -.45s; }
.preloader__bars i:nth-child(5) { animation-delay: -.6s; }
.preloader__bars i:nth-child(6) { animation-delay: -.75s; }
.preloader__bars i:nth-child(7) { animation-delay: -.9s; }
.preloader__word { font-weight: 800; letter-spacing: -.06em; font-size: clamp(3rem, 12vw, 9rem); line-height: .95; overflow: hidden; }
.preloader__foot { position: absolute; left: var(--gutter); right: var(--gutter); bottom: 34px; display: flex; justify-content: space-between; color: var(--ink-3); }
.preloader__count { color: var(--red); font-size: 1rem; }
.preloader__line { position: absolute; left: 0; right: 0; bottom: 0; height: 3px; background: var(--line); }
.preloader__line i { display: block; height: 100%; width: 100%; background: var(--red); transform: scaleX(0); transform-origin: left; }

/* ---------- Cursor + progress ---------- */
.cursor-ring { display: none; }
@media (hover: hover) and (pointer: fine) {
  .has-motion .cursor-ring {
    position: fixed; left: 0; top: 0; z-index: 250; pointer-events: none; border-radius: 50%;
    width: 40px; height: 40px; margin: -20px 0 0 -20px; border: 1px solid rgba(255, 31, 45, .6);
    display: grid; place-items: center;
    transition: width .3s var(--ease), height .3s var(--ease), margin .3s var(--ease), background .3s ease, border-color .3s ease, opacity .3s ease;
  }
  .has-motion .cursor-ring.is-hover { width: 72px; height: 72px; margin: -36px 0 0 -36px; background: rgba(255, 31, 45, .12); border-color: var(--red); }
  .has-motion .cursor-ring.has-label { width: 86px; height: 86px; margin: -43px 0 0 -43px; background: var(--red); border-color: var(--red); }
  .cursor-ring span { font-family: var(--mono); font-size: .72rem; text-transform: uppercase; letter-spacing: .08em; color: #fff; opacity: 0; transition: opacity .2s; }
  .cursor-ring.has-label span { opacity: 1; }
  .has-motion .cursor-ring.is-hidden { opacity: 0; }
}
.progress { position: fixed; left: 0; right: 0; top: 0; height: 3px; z-index: 120; pointer-events: none; }
.progress i { display: block; height: 100%; background: linear-gradient(90deg, var(--red-deep), var(--red), var(--red-hot)); transform: scaleX(0); transform-origin: left; box-shadow: 0 0 12px var(--red-glow); }

/* ---------- Nav ---------- */
.nav { position: fixed; top: 0; left: 0; right: 0; z-index: 100; transition: background .3s ease, border-color .3s ease, transform .5s var(--ease); border-bottom: 1px solid transparent; }
.nav.is-scrolled { background: rgba(7, 6, 6, .72); backdrop-filter: blur(16px) saturate(140%); -webkit-backdrop-filter: blur(16px) saturate(140%); border-color: var(--line); }
.nav.is-hidden { transform: translateY(-100%); }
.nav__inner { max-width: var(--max); margin: 0 auto; padding: 14px var(--gutter); display: flex; align-items: center; gap: 24px; }
.logo { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; font-weight: 800; font-size: 1.2rem; letter-spacing: -.05em; }
.logo__mark { display: inline-flex; align-items: center; gap: 2.5px; height: 24px; padding: 0 6px; border-radius: 7px; background: var(--red); }
.logo__mark i { width: 2.5px; border-radius: 2px; background: var(--bg); animation: bars 1.2s ease-in-out infinite; }
.logo__mark i:nth-child(1) { height: 6px; animation-delay: -.2s; }
.logo__mark i:nth-child(2) { height: 13px; animation-delay: -.5s; }
.logo__mark i:nth-child(3) { height: 9px; animation-delay: -.8s; }
.logo__mark i:nth-child(4) { height: 5px; animation-delay: -.1s; }
@keyframes bars { 50% { transform: scaleY(.45); } }
.nav__links { display: flex; gap: 30px; margin-left: auto; }
.nav__links a { position: relative; text-decoration: none; font-size: .92rem; color: var(--ink-2); transition: color .2s; }
.nav__links a::after { content: ""; position: absolute; left: 0; right: 0; bottom: -4px; height: 1px; background: var(--red); transform: scaleX(0); transform-origin: right; transition: transform .35s var(--ease); }
.nav__links a:hover { color: var(--ink); }
.nav__links a:hover::after { transform: scaleX(1); transform-origin: left; }
@media (max-width: 860px) {
  .nav__links { display: none; }
  .nav .btn { margin-left: auto; }
}

/* ---------- Hero ---------- */
.hero { position: relative; min-height: 100svh; padding: clamp(110px, 14vw, 160px) 0 64px; overflow: hidden; display: flex; flex-direction: column; justify-content: center; }
.hero__glow {
  position: absolute; left: 62%; top: 40%; width: 64vw; height: 64vw; max-width: 900px; max-height: 900px;
  transform: translate(-50%, -50%);
  background: radial-gradient(closest-side, rgba(255, 31, 45, .42), rgba(196, 8, 18, .16) 45%, transparent 72%);
  filter: blur(30px); pointer-events: none;
}
.hero__grid-bg {
  position: absolute; inset: -10%; pointer-events: none;
  background-image: linear-gradient(var(--line) 1px, transparent 1px), linear-gradient(90deg, var(--line) 1px, transparent 1px);
  background-size: 72px 72px;
  mask-image: radial-gradient(ellipse at 40% 40%, #000 5%, transparent 60%);
  -webkit-mask-image: radial-gradient(ellipse at 40% 40%, #000 5%, transparent 60%);
  opacity: .7;
}
.hero__grid { position: relative; display: grid; grid-template-columns: 1.5fr 1fr; gap: clamp(32px, 5vw, 72px); align-items: center; }
.hero__title { font-size: clamp(2.4rem, 4.9vw, 5.1rem); }
.hero__title .line { display: block; padding-bottom: .04em; }
.hero__title .line--muted { color: var(--ink-3); }
.hero__lede { margin-top: 28px; max-width: 32rem; color: var(--ink-2); font-size: clamp(1.02rem, 1.4vw, 1.2rem); font-family: var(--font), var(--indic); }
.hero__cta { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 34px; }
.hero__chips { list-style: none; margin: clamp(40px, 6vw, 72px) 0 0; padding: 22px 0 0; border-top: 1px solid var(--line); display: flex; flex-wrap: wrap; gap: 10px 28px; font-size: .9rem; color: var(--ink-2); font-family: var(--font), var(--indic); }
.hero__chips li { display: inline-flex; align-items: center; gap: 10px; }
.hero__chips li::before { content: ""; width: 6px; height: 6px; background: var(--red); transform: rotate(45deg); }
.scroll-hint { position: absolute; left: 50%; bottom: 18px; transform: translateX(-50%); display: flex; flex-direction: column; align-items: center; gap: 8px; color: var(--ink-3); font-size: .8rem; text-transform: uppercase; letter-spacing: .14em; }
.scroll-hint i { width: 1px; height: 40px; background: linear-gradient(var(--red), transparent); animation: drip 1.8s var(--ease) infinite; transform-origin: top; }
@keyframes drip { 0% { transform: scaleY(0); transform-origin: top; } 50% { transform: scaleY(1); transform-origin: top; } 51% { transform-origin: bottom; } 100% { transform: scaleY(0); transform-origin: bottom; } }

/* Incoming call card */
.callcard-wrap { justify-self: end; width: 100%; max-width: 400px; perspective: 1000px; }
.callcard {
  position: relative; background: linear-gradient(160deg, #1a1213, #0b0909 60%); color: var(--ink);
  border: 1px solid rgba(255, 31, 45, .22);
  border-radius: 28px; padding: 22px;
  box-shadow: 0 40px 100px -30px rgba(255, 31, 45, .35);
  transform-style: preserve-3d;
}
.callcard__top { display: flex; justify-content: space-between; align-items: center; font-size: .85rem; color: var(--ink-2); }
.callcard__live { display: inline-flex; align-items: center; gap: 8px; color: var(--ink); }
.callcard__rings { position: relative; width: 150px; height: 150px; margin: 26px auto 14px; display: grid; place-items: center; }
.callcard__rings > span { position: absolute; inset: 0; border-radius: 50%; border: 1.5px solid var(--red); opacity: 0; animation: ring 2.4s ease-out infinite; }
.callcard__rings > span:nth-child(2) { animation-delay: .8s; }
.callcard__rings > span:nth-child(3) { animation-delay: 1.6s; }
@keyframes ring { 0% { transform: scale(.45); opacity: .9; } 100% { transform: scale(1.15); opacity: 0; } }
.callcard__avatar { width: 72px; height: 72px; border-radius: 50%; background: var(--red); display: grid; place-items: center; animation: wiggle 2.4s ease-in-out infinite; box-shadow: 0 0 40px var(--red-glow); }
.callcard__avatar svg { width: 30px; height: 30px; fill: none; stroke: #fff; stroke-width: 2; stroke-linejoin: round; }
@keyframes wiggle { 0%, 60%, 100% { transform: rotate(0); } 65% { transform: rotate(-12deg); } 70% { transform: rotate(10deg); } 75% { transform: rotate(-8deg); } 80% { transform: rotate(6deg); } }
.callcard__number { text-align: center; color: var(--ink-3); }
.callcard__hello { text-align: center; font-family: var(--indic); font-size: 1.9rem; font-weight: 600; letter-spacing: -.02em; margin-top: 6px; min-height: 1.5em; }
.callcard__hello span { display: inline-block; transition: opacity .35s ease, transform .35s ease, filter .35s ease; }
.callcard__hello span.is-out { opacity: 0; transform: translateY(10px); filter: blur(6px); }
.callcard__wave { display: flex; align-items: center; justify-content: center; gap: 4px; height: 44px; margin: 14px 0 18px; }
.callcard__wave i { width: 4px; border-radius: 4px; background: var(--red); height: 20%; animation: wave 1.1s ease-in-out infinite; }
.callcard__wave i:nth-child(3n) { animation-delay: -.3s; background: var(--red-hot); }
.callcard__wave i:nth-child(4n) { animation-delay: -.6s; background: var(--red-deep); }
.callcard__wave i:nth-child(5n) { animation-delay: -.15s; }
.callcard__wave i:nth-child(7n) { animation-delay: -.9s; }
@keyframes wave { 0%, 100% { height: 18%; } 50% { height: 95%; } }
.callcard__result { display: flex; align-items: center; gap: 12px; background: rgba(255,255,255,.04); border: 1px solid var(--line); border-radius: 14px; padding: 12px 14px; font-size: .9rem; transform: translateZ(30px); }
.tick { width: 24px; height: 24px; border-radius: 50%; background: var(--red); color: #fff; display: grid; place-items: center; font-weight: 700; font-size: .8rem; flex: none; }

@media (max-width: 900px) {
  .hero__grid { grid-template-columns: 1fr; }
  .callcard-wrap { justify-self: start; max-width: 100%; }
  .scroll-hint { display: none; }
}

/* ---------- Statement (red) ---------- */
.statement { background: var(--red); color: var(--on-red); padding: clamp(80px, 14vw, 180px) 0; position: relative; overflow: hidden; }
.statement__label { display: block; margin-bottom: 28px; opacity: .7; text-transform: uppercase; letter-spacing: .14em; }
.statement__text { font-size: clamp(1.9rem, 4.6vw, 4.2rem); font-weight: 700; letter-spacing: -.045em; line-height: 1.04; max-width: 22ch; font-family: var(--font), var(--indic); }

/* ---------- Sections ---------- */
.section { padding: clamp(80px, 12vw, 160px) 0; position: relative; }
.section--tint { background: var(--bg-2); }
.section-head { margin-bottom: clamp(36px, 5vw, 64px); }
.section-head--split { display: flex; justify-content: space-between; align-items: flex-end; gap: 32px; flex-wrap: wrap; }
.section-head--split .lede { margin-top: 0; max-width: 24rem; }

/* Spotlight that follows the pointer on tilt cards (motion.js sets --mx/--my) */
[data-tilt] { position: relative; transform-style: preserve-3d; }
[data-tilt]::after {
  content: ""; position: absolute; inset: 0; border-radius: inherit; pointer-events: none; opacity: 0; transition: opacity .3s ease;
  background: radial-gradient(420px circle at var(--mx, 50%) var(--my, 50%), rgba(255, 31, 45, .16), transparent 45%);
}
[data-tilt]:hover::after { opacity: 1; }

/* ---------- Call log ---------- */
.log-grid { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(32px, 6vw, 96px); align-items: center; }
.calllog { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow); overflow: hidden; }
.calllog__head { display: flex; justify-content: space-between; align-items: center; padding: 16px 20px; border-bottom: 1px solid var(--line); font-weight: 600; font-size: .95rem; }
.calllog__count { color: var(--ink-2); font-weight: 400; }
.calllog__count b { color: var(--red); font-weight: 600; }
.calllog__viewport { height: 330px; overflow: hidden; mask-image: linear-gradient(transparent, #000 14%, #000 86%, transparent); -webkit-mask-image: linear-gradient(transparent, #000 14%, #000 86%, transparent); }
.calllog__list { list-style: none; margin: 0; padding: 0 20px; animation: scrollUp 22s linear infinite; }
.calllog:hover .calllog__list { animation-play-state: paused; }
.calllog__list li { display: grid; grid-template-columns: 72px 1fr auto; gap: 12px; align-items: center; padding: 14px 0; border-bottom: 1px dashed var(--line); font-size: .93rem; }
.calllog__list li > .mono { color: var(--ink-3); }
@keyframes scrollUp { from { transform: translateY(0); } to { transform: translateY(-50%); } }
.tag { font-style: normal; font-size: .74rem; font-weight: 600; padding: 4px 10px; border-radius: 999px; background: rgba(255,255,255,.07); color: var(--ink-2); white-space: nowrap; }
.tag--ok { background: rgba(255, 31, 45, .14); color: var(--red-hot); }
.tag--warn { background: var(--red); color: #fff; }
@media (max-width: 860px) { .log-grid { grid-template-columns: 1fr; } }

/* ---------- Live demo ---------- */
.demo { background: #0b0808; overflow: hidden; }
.demo__glow { position: absolute; left: 50%; top: 40%; width: 1100px; height: 1100px; transform: translate(-50%, -30%); background: radial-gradient(closest-side, rgba(255, 31, 45, .22), transparent 70%); pointer-events: none; }
/* Incoming / outgoing call demos (hosted on Vapi) */
.calltypes { position: relative; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; perspective: 1400px; }
.calltype {
  display: grid; grid-template-rows: auto auto auto 1fr auto; gap: 10px; min-height: 280px;
  padding: clamp(22px, 3vw, 34px); border-radius: 28px; text-decoration: none; overflow: hidden;
  border: 1px solid var(--line); transition: border-color .3s ease, box-shadow .3s ease;
}
.calltype--in { background: var(--red); color: var(--on-red); border-color: var(--red); box-shadow: 0 40px 80px -40px var(--red-glow); }
.calltype--out { background: linear-gradient(160deg, #1a1213, #0b0909 65%); color: var(--ink); border-color: rgba(255, 31, 45, .35); }
.calltype--out:hover { border-color: var(--red); box-shadow: 0 40px 80px -40px var(--red-glow); }
.calltype__icon { width: 56px; height: 56px; border-radius: 16px; display: grid; place-items: center; margin-bottom: 14px; }
.calltype--in .calltype__icon { background: var(--bg); color: var(--red); }
.calltype--out .calltype__icon { background: var(--red); color: #fff; box-shadow: 0 0 30px var(--red-glow); }
.calltype__icon svg { width: 26px; height: 26px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.calltype__tag { text-transform: uppercase; letter-spacing: .1em; opacity: .75; }
.calltype__title { font-size: clamp(1.5rem, 2.6vw, 2.2rem); font-weight: 700; letter-spacing: -.045em; line-height: 1; }
.calltype__text { font-size: .98rem; opacity: .78; max-width: 30ch; }
.calltype__go { display: inline-flex; align-items: center; gap: 10px; justify-self: start; margin-top: 12px; padding: 12px 20px; border-radius: 999px; font-weight: 600; font-size: .95rem; transition: gap .3s var(--ease); }
.calltype--in .calltype__go { background: var(--bg); color: var(--ink); }
.calltype--out .calltype__go { background: var(--red); color: #fff; }
.calltype:hover .calltype__go { gap: 18px; }
.calltypes__note { margin-top: 14px; font-size: .82rem; color: var(--ink-3); }
.demo__or { position: relative; display: flex; align-items: center; gap: 16px; margin: clamp(48px, 7vw, 80px) 0 24px; color: var(--ink-2); text-transform: uppercase; letter-spacing: .1em; }
.demo__or::after { content: ""; flex: 1; height: 1px; background: var(--line); }
@media (max-width: 760px) { .calltypes { grid-template-columns: 1fr; } .calltype { min-height: 0; } }

.demo__grid { position: relative; display: grid; grid-template-columns: minmax(0, 340px) minmax(0, 1fr); gap: 24px; align-items: start; }

.agents { display: grid; gap: 10px; }
.agent {
  display: grid; grid-template-columns: 44px 1fr; gap: 14px; align-items: center; text-align: left;
  padding: 14px; border-radius: 16px; border: 1px solid var(--line); background: transparent; cursor: pointer;
  transition: background .25s, border-color .25s, transform .35s var(--ease);
}
.agent:hover { background: rgba(255,255,255,.03); transform: translateX(4px); }
.agent[aria-selected="true"] { background: linear-gradient(120deg, rgba(255,31,45,.14), rgba(255,31,45,.02)); border-color: rgba(255, 31, 45, .6); }
.agent__avatar { width: 44px; height: 44px; border-radius: 12px; display: grid; place-items: center; font-weight: 700; font-size: 1.1rem; background: rgba(255,255,255,.07); transition: background .25s; }
.agent[aria-selected="true"] .agent__avatar { background: var(--red); color: #fff; box-shadow: 0 0 24px var(--red-glow); }
.agent__name { font-weight: 600; display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.agent__role { font-size: .85rem; color: var(--ink-2); }
.agent__langs { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 8px; }
.agent__langs span { font-family: var(--indic); font-size: .72rem; padding: 2px 8px; border-radius: 999px; border: 1px solid var(--line); color: var(--ink-2); }
.agent__badge { font-family: var(--mono); font-size: .65rem; text-transform: uppercase; letter-spacing: .06em; padding: 2px 7px; border-radius: 6px; background: rgba(255,255,255,.08); color: var(--ink-2); font-weight: 500; }
.agent__badge--live { background: var(--red); color: #fff; }

.console { background: linear-gradient(180deg, #151011, #0d0a0a); border: 1px solid var(--line); border-radius: 28px; padding: clamp(16px, 2.4vw, 28px); display: grid; gap: 18px; min-width: 0; box-shadow: 0 50px 100px -40px rgba(255, 31, 45, .25); }
.console__bar { display: flex; justify-content: space-between; align-items: center; gap: 16px; flex-wrap: wrap; }
.console__who { display: flex; align-items: center; gap: 12px; }
.console__avatar { width: 40px; height: 40px; border-radius: 12px; background: var(--red); color: #fff; display: grid; place-items: center; font-weight: 700; }
.console__name { font-weight: 600; }
.console__biz { font-size: .85rem; color: var(--ink-2); }
.console__status { display: inline-flex; align-items: center; gap: 10px; font-size: .9rem; padding: 8px 14px; border-radius: 999px; background: rgba(255,255,255,.05); }
.status-dot { width: 8px; height: 8px; border-radius: 50%; background: var(--ink-3); transition: background .2s; }
.console[data-state="connecting"] .status-dot { background: #ffb020; animation: blink 1s infinite; }
.console[data-state="live"] .status-dot,
.console[data-state="sample"] .status-dot { background: var(--red); box-shadow: 0 0 10px var(--red); animation: blink 1.4s infinite; }
.console[data-state="error"] .status-dot { background: var(--red-deep); }
@keyframes blink { 50% { opacity: .35; } }
.console__timer { color: var(--ink-2); }

.console__stage { position: relative; display: grid; place-items: center; height: clamp(200px, 30vw, 280px); border-radius: 20px; background: radial-gradient(closest-side, rgba(255,31,45,.06), transparent); }
.orb { width: clamp(200px, 30vw, 280px); height: clamp(200px, 30vw, 280px); }
.console__notice { position: absolute; left: 12px; right: 12px; bottom: 12px; padding: 10px 14px; border-radius: 12px; font-size: .86rem; background: rgba(255, 255, 255, .05); border: 1px solid var(--line); color: var(--ink-2); backdrop-filter: blur(6px); }
.console__notice--error { background: rgba(255, 31, 45, .12); border-color: rgba(255, 31, 45, .4); color: #ffc9cd; }

.console__transcript { height: 220px; overflow-y: auto; display: flex; flex-direction: column; gap: 10px; padding: 4px 2px; scroll-behavior: smooth; overscroll-behavior: contain; }
.transcript__empty { margin: auto; color: var(--ink-3); font-size: .9rem; }
.msg { max-width: 82%; padding: 10px 14px; border-radius: 16px; font-size: .95rem; line-height: 1.45; font-family: var(--font), var(--indic); animation: msgIn .35s var(--ease); overflow-wrap: anywhere; }
.msg--agent { align-self: flex-start; background: rgba(255,255,255,.07); border-bottom-left-radius: 5px; }
.msg--caller { align-self: flex-end; background: var(--red); color: #fff; border-bottom-right-radius: 5px; }
.msg--partial { opacity: .65; }
.msg__who { display: block; font-family: var(--mono); font-size: .66rem; text-transform: uppercase; letter-spacing: .06em; opacity: .6; margin-bottom: 2px; }
@keyframes msgIn { from { opacity: 0; transform: translateY(10px) scale(.97); } }

.console__try { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; font-size: .82rem; color: var(--ink-3); }
.console__try span { font-family: var(--indic); padding: 6px 12px; border-radius: 999px; border: 1px dashed var(--line); color: var(--ink-2); }
.console__controls { display: flex; gap: 12px; }
.btn--call { flex: 1; }
.console[data-state="live"] .btn--call,
.console[data-state="connecting"] .btn--call,
.console[data-state="sample"] .btn--call { background: var(--ink); color: var(--bg); box-shadow: none; }
.console[data-state="live"] .btn--call svg { transform: rotate(135deg); }
.console .btn--icon[aria-pressed="true"] { background: var(--red); border-color: var(--red); }
.console__fine { font-size: .76rem; color: var(--ink-3); }

@media (max-width: 900px) {
  .demo__grid { grid-template-columns: 1fr; }
  .agents { grid-auto-flow: column; grid-auto-columns: minmax(240px, 1fr); overflow-x: auto; scroll-snap-type: x mandatory; padding-bottom: 6px; scrollbar-width: none; }
  .agents::-webkit-scrollbar { display: none; }
  .agent { scroll-snap-align: start; }
  .agent:hover { transform: none; }
}

/* ---------- Six jobs ---------- */
.jobs { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; perspective: 1400px; }
.job { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 18px 18px 26px; transition: border-color .3s ease; }
.job:hover { border-color: rgba(255, 31, 45, .45); }
.job h3 { font-size: 1.3rem; letter-spacing: -.03em; margin: 6px 0 8px; }
.job > p:last-child { color: var(--ink-2); font-size: .95rem; }
.job__num { color: var(--red); margin-top: 20px; }
.job__obj { height: 168px; border-radius: 14px; background: var(--bg); border: 1px solid var(--line); padding: 14px; overflow: hidden; display: flex; flex-direction: column; justify-content: center; gap: 8px; font-size: .82rem; transform: translateZ(24px); }
@media (max-width: 1000px) { .jobs { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 640px) { .jobs { grid-template-columns: 1fr; } }

.obj-cal__head, .obj-cal__body { display: grid; grid-template-columns: repeat(5, 1fr); gap: 6px; }
.obj-cal__head span { font-family: var(--mono); font-size: .7rem; color: var(--ink-3); text-align: center; }
.obj-cal__body i { height: 28px; border-radius: 6px; background: rgba(255,255,255,.04); }
.obj-cal__body i.on { background: rgba(255,255,255,.14); }
.obj-cal__body i.new { background: var(--red); box-shadow: 0 0 18px var(--red-glow); animation: pop 3s ease-in-out infinite; }
@keyframes pop { 0%, 30% { transform: scale(.4); opacity: 0; } 45%, 100% { transform: none; opacity: 1; } }

.bubble { align-self: flex-start; padding: 7px 11px; border-radius: 12px 12px 12px 4px; background: rgba(255,255,255,.07); font-family: var(--font), var(--indic); max-width: 100%; }
.bubble--in { align-self: flex-end; background: var(--red); color: #fff; border-radius: 12px 12px 4px 12px; }
.obj-lang .bubble { animation: langCycle 6s ease-in-out infinite; }
.obj-lang .bubble--te { animation-delay: 2s; }
.obj-lang .bubble--hi { animation-delay: 4s; }
@keyframes langCycle { 0%, 100% { opacity: .35; transform: translateX(0); } 10%, 30% { opacity: 1; transform: translateX(6px); background: rgba(255, 31, 45, .22); } 40% { opacity: .35; transform: translateX(0); } }

.obj-transfer p { display: flex; align-items: center; gap: 10px; font-weight: 600; }
.obj-transfer p.mono { font-weight: 400; color: var(--ink-2); }
.obj-transfer__bar { height: 6px; border-radius: 6px; background: rgba(255,255,255,.08); overflow: hidden; }
.obj-transfer__bar i { display: block; height: 100%; width: 40%; background: var(--red); border-radius: 6px; animation: transfer 2.6s ease-in-out infinite; box-shadow: 0 0 12px var(--red); }
@keyframes transfer { 0% { width: 0; } 80%, 100% { width: 100%; } }

.obj-sheet { gap: 0; padding: 0; justify-content: flex-start; }
.obj-sheet__row { display: grid; grid-template-columns: 48px 1fr 1fr; padding: 9px 14px; border-bottom: 1px solid var(--line); font-family: var(--mono); font-size: .72rem; }
.obj-sheet__row--head { color: var(--ink-3); background: rgba(255,255,255,.03); }
.obj-sheet__row--new { background: rgba(255, 31, 45, .16); animation: rowIn 3.5s ease infinite; }
@keyframes rowIn { 0%, 20% { opacity: 0; transform: translateY(-8px); } 35%, 100% { opacity: 1; transform: none; } }

.obj-out p { display: flex; align-items: center; gap: 8px; }
.obj-out .tag { margin-left: auto; }
.obj-out .mono { color: var(--red); }

/* ---------- Industries ---------- */
.industries-section { overflow: hidden; }
.carousel-ctrl { display: flex; align-items: center; gap: 10px; }
.carousel-ctrl .mono { margin-right: 8px; color: var(--ink-2); }
.industries {
  display: grid; grid-auto-flow: column; grid-auto-columns: minmax(280px, 380px); gap: 18px;
  overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none;
  padding: 4px max(var(--gutter), calc((100vw - var(--max)) / 2 + var(--gutter))) 8px;
  scroll-padding-inline: max(var(--gutter), calc((100vw - var(--max)) / 2 + var(--gutter)));
}
.industries::-webkit-scrollbar { display: none; }
/* Desktop with motion: the section pins and the track slides sideways as you scroll down. */
.industries-section.is-pinned .industries { overflow: visible; scroll-snap-type: none; width: max-content; will-change: transform; }
.industries-section.is-pinned .carousel-ctrl .btn { display: none; }
/* While pinned, the whole scene (heading + cards) has to fit one screen. */
.industries-section.is-pinned { height: 100vh; padding: clamp(72px, 10vh, 120px) 0 clamp(24px, 4vh, 48px); display: flex; flex-direction: column; justify-content: center; }
.industries-section.is-pinned .section-head { margin-bottom: clamp(20px, 4vh, 48px); }
.industries-section.is-pinned .ind { min-height: min(380px, 50vh); }
.industries-section.is-pinned .ind h3 { margin-top: clamp(12px, 3vh, 28px); }
.ind { scroll-snap-align: start; background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 26px; display: flex; flex-direction: column; min-height: 380px; transition: border-color .3s ease; }
.ind:hover { border-color: rgba(255, 31, 45, .45); }
.ind__num { color: var(--red); font-size: 1rem; }
.ind h3 { font-size: 1.7rem; letter-spacing: -.04em; margin-top: 28px; line-height: 1.05; }
.ind__sub { color: var(--ink-2); font-size: .9rem; margin-top: 8px; }
.ind__chat { margin-top: auto; padding-top: 24px; display: flex; flex-direction: column; gap: 8px; font-size: .86rem; font-family: var(--font), var(--indic); }
.ind__chat p { padding: 8px 12px; border-radius: 12px; max-width: 90%; }
.ind__chat .in { align-self: flex-end; background: var(--ink); color: var(--bg); border-bottom-right-radius: 4px; }
.ind__chat .out { align-self: flex-start; background: rgba(255,255,255,.07); border-bottom-left-radius: 4px; }
.ind__chat .done { align-self: flex-start; background: rgba(255, 31, 45, .16); color: var(--red-hot); font-weight: 600; font-size: .8rem; }

/* ---------- Tapes (crossing marquees) ---------- */
.tapes { position: relative; padding: 70px 0; overflow: hidden; background: var(--bg); }
.marquee { overflow: hidden; padding: 20px 0; width: 110%; margin-left: -5%; }
.marquee--red { background: var(--red); color: var(--on-red); transform: rotate(-3deg); position: relative; z-index: 2; box-shadow: 0 20px 40px -20px rgba(0,0,0,.8); }
.marquee--black { background: var(--ink); color: var(--bg); transform: rotate(2.5deg); margin-top: -26px; }
.marquee__track { display: flex; width: max-content; animation: marquee 40s linear infinite; }
.marquee--black .marquee__track { animation-direction: reverse; }
.has-motion .marquee__track { animation: none; }
.marquee__track span { font-size: clamp(1.4rem, 2.8vw, 2.3rem); font-weight: 800; letter-spacing: -.04em; padding: 0 28px; white-space: nowrap; display: inline-flex; align-items: center; font-family: var(--font), var(--indic); text-transform: uppercase; }
.marquee__track span::after { content: "✱"; margin-left: 56px; font-size: .8em; }
@keyframes marquee { to { transform: translateX(-50%); } }

/* ---------- Process ---------- */
.process { display: grid; grid-template-columns: 1fr 1.1fr; gap: clamp(32px, 6vw, 96px); align-items: start; }
.process__head { position: sticky; top: 120px; }
.process__meter { margin-top: 36px; height: 4px; border-radius: 4px; background: var(--line); overflow: hidden; max-width: 320px; }
.process__meter i { display: block; height: 100%; width: 20%; background: var(--red); border-radius: 4px; transition: width .5s var(--ease); box-shadow: 0 0 10px var(--red); }
.process__count { margin-top: 12px; color: var(--ink-2); }
.steps-wrap { position: relative; padding-left: 28px; }
.steps__rail { position: absolute; left: 0; top: 0; bottom: 0; width: 2px; background: var(--line); border-radius: 2px; }
.steps__rail i { display: block; width: 100%; height: 100%; background: linear-gradient(var(--red-hot), var(--red-deep)); transform: scaleY(0); transform-origin: top; box-shadow: 0 0 14px var(--red); }
.steps { list-style: none; margin: 0; padding: 0; display: grid; gap: 14px; }
.step { display: grid; grid-template-columns: 56px 1fr; gap: 18px; padding: 26px; border-radius: var(--radius); border: 1px solid var(--line); background: var(--card); opacity: .4; transition: opacity .5s ease, border-color .5s ease, transform .5s var(--ease), background .5s ease; }
.step.is-active { opacity: 1; border-color: rgba(255, 31, 45, .55); transform: translateX(-6px); background: linear-gradient(120deg, rgba(255,31,45,.1), var(--card) 60%); }
.step__num { width: 44px; height: 44px; border-radius: 50%; display: grid; place-items: center; border: 1px solid var(--line); font-size: .85rem; transition: background .4s, border-color .4s, box-shadow .4s; }
.step.is-active .step__num { background: var(--red); color: #fff; border-color: var(--red); box-shadow: 0 0 24px var(--red-glow); }
.step h3 { font-size: 1.5rem; letter-spacing: -.035em; }
.step p { color: var(--ink-2); margin-top: 6px; font-size: .96rem; }
.step__get { padding-top: 12px; margin-top: 12px !important; border-top: 1px dashed var(--line); font-size: .88rem !important; }
.step__get b { color: var(--ink); font-weight: 600; }
@media (max-width: 860px) {
  .process { grid-template-columns: 1fr; }
  .process__head { position: static; }
  .steps-wrap { padding-left: 18px; }
  .step { opacity: 1; padding: 20px; grid-template-columns: 48px 1fr; }
  .step.is-active { transform: none; }
}

/* ---------- CTA (red) ---------- */
.cta { color: var(--on-red); overflow: hidden; }
.cta__bg { position: absolute; inset: 0; background: var(--red); }
.cta__inner { position: relative; }
.cta .lede { color: rgba(7, 6, 6, .75); }
.cta__title { font-size: clamp(2.6rem, 7.6vw, 6.6rem); }
.cta__cols { display: grid; grid-template-columns: repeat(3, 1fr); gap: 32px; margin-top: clamp(48px, 7vw, 88px); padding-top: 32px; border-top: 1px solid rgba(7, 6, 6, .25); }
.cta__cols h3 { font-size: 1.25rem; letter-spacing: -.03em; margin: 10px 0 8px; }
.cta__cols p:not(.cta__when) { color: rgba(7, 6, 6, .72); font-size: .95rem; }
.cta__when { font-weight: 500; }
@media (max-width: 760px) { .cta__cols { grid-template-columns: 1fr; } }

/* ---------- Footer ---------- */
.footer { background: var(--bg); color: var(--ink); padding: clamp(56px, 9vw, 110px) 0 28px; overflow: hidden; }
.footer__big { font-size: clamp(2.2rem, 9.2vw, 8.8rem); white-space: nowrap; }
.footer__row { display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; margin-top: 40px; padding-top: 20px; border-top: 1px solid var(--line); font-size: .88rem; color: var(--ink-2); }
.footer__row a { text-decoration: none; }
.footer__row a:hover { color: var(--red); }
.footer__big .ch { transition: color .3s ease; }
.footer__big .ch:hover { color: var(--red); }

/* ---------- Reveal ---------- */
/* Without motion.js, main.js fades these in with IntersectionObserver. */
.reveal { opacity: 0; transform: translateY(24px); transition: opacity .8s ease, transform .8s var(--ease); }
.reveal.is-in { opacity: 1; transform: none; }
/* With motion.js, GSAP drives them, so CSS transitions must not fight it. */
.has-motion .reveal { transition: none; }
/* Hide the hero pieces until the intro timeline plays them in. */
.has-motion [data-hero-in], .has-motion [data-hero-card], .has-motion [data-hero-chips], .has-motion .hero__title { visibility: hidden; }

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