/* =========================================
   1. Colors (we call these "variables")
   ========================================= */
:root {
  --bg: #F5F8FC;
  --card: #FFFFFF;
  --text: #0B2545;
  --muted: #4A5A70;
  --line: #DCE5F0;
  --accent: #0B7F78;
  --soft: rgba(11, 127, 120, .09);
  --glow: #2DD4BF;
  --blue: #3B82F6;
  --hero: #0B2545;
  --herotext: #FFFFFF;
  --heromuted: #A9BAD0;
  --mono: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
}

/* Dark colors, used when the visitor's computer is in dark mode */
@media (prefers-color-scheme: dark) {
  :root {
    --bg: #06142A;
    --card: #0D2342;
    --text: #EAF2FA;
    --muted: #A9BAD0;
    --line: #1C3A5E;
    --accent: #2DD4BF;
    --soft: rgba(45, 212, 191, .12);
    --hero: #071a33;
    color-scheme: dark;
  }
}

/* =========================================
   2. Basic page setup
   ========================================= */
* { box-sizing: border-box; }

/* Anything with the "hidden" attribute must stay hidden,
   even if another rule gives it a display value */
[hidden] { display: none !important; }

html {
  scroll-behavior: smooth;
  scroll-padding-top: 70px; /* so the sticky header does not cover section titles */
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: 'Manrope', Arial, sans-serif;
  line-height: 1.6;
  overflow-x: hidden;
}

a { color: inherit; text-decoration: none; }

.wrap {
  max-width: 1160px;
  margin: 0 auto;
  padding: 0 22px;
}

/* Every icon from the icon library */
.i {
  width: 20px;
  height: 20px;
  flex: none;
  vertical-align: middle;
}

/* Scroll progress bar */
#progress {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  z-index: 20;
  background: linear-gradient(90deg, var(--glow), var(--blue));
  transform-origin: left;
  transform: scaleX(0);
}

/* =========================================
   3. Header and menu
   ========================================= */
header {
  position: sticky;
  top: 0;
  z-index: 10;
  background: var(--hero);
  color: var(--herotext);
  border-bottom: 1px solid transparent;
  transition: box-shadow .3s, background .3s, border-color .3s;
}
/* Added by script.js after you scroll a little */
header.scrolled {
  background: rgba(11, 37, 69, .85);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-color: rgba(255, 255, 255, .08);
  box-shadow: 0 8px 30px rgba(0, 0, 0, .25);
}

nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 66px;
}

.logo {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 800;
  font-size: 18px;
}
.logo b { color: var(--glow); }

/* Logo bars move like a sound wave */
.logo .lb {
  transform-box: fill-box;
  transform-origin: center;
  animation: logo-bar 1.6s ease-in-out infinite;
}
.logo .lb:nth-child(3) { animation-delay: .15s; }
.logo .lb:nth-child(4) { animation-delay: .3s; }
.logo .lb:nth-child(5) { animation-delay: .45s; }
.logo .lb:nth-child(6) { animation-delay: .6s; }
@keyframes logo-bar {
  0%, 100% { transform: scaleY(1); }
  50%      { transform: scaleY(.55); }
}

nav ul {
  display: flex;
  align-items: center;
  gap: 26px;
  list-style: none;
  margin: 0;
  padding: 0;
  font-size: 15px;
  font-weight: 600;
}

/* Underline grows from the left on hover */
nav ul a {
  position: relative;
  color: #D5E1EF;
  transition: color .2s;
}
nav ul a::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -5px;
  width: 100%;
  height: 2px;
  background: var(--glow);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform .3s;
}
nav ul a:hover { color: #fff; }
nav ul a:hover::after { transform: scaleX(1); }

.nav-cta {
  background: var(--glow);
  color: #06142A !important;
  border-radius: 10px;
  padding: 8px 16px;
  font-weight: 800;
  transition: transform .2s, box-shadow .2s !important;
}
.nav-cta::after { display: none; }
.nav-cta:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 20px rgba(45, 212, 191, .35);
}

/* The 3-line menu button (hidden on big screens) */
.menu-btn {
  display: none;
  background: none;
  border: 0;
  padding: 8px;
  cursor: pointer;
}
.menu-btn span {
  display: block;
  width: 24px;
  height: 2px;
  margin: 5px 0;
  background: var(--herotext);
  border-radius: 2px;
  transition: transform .3s, opacity .3s;
}
/* Turns into an X when open */
.menu-btn[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.menu-btn[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.menu-btn[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* =========================================
   4. Buttons
   ========================================= */
.btn {
  position: relative;
  overflow: hidden;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--glow);
  color: #06142A;
  font-weight: 800;
  padding: 14px 24px;
  border-radius: 12px;
  transition: transform .2s, box-shadow .2s;
}
.btn .i { width: 18px; height: 18px; transition: transform .2s; }
.btn:hover {
  transform: translateY(-3px);
  box-shadow: 0 12px 30px rgba(45, 212, 191, .4);
}
.btn:hover .i { transform: translateX(3px); }

/* Shine that sweeps across the button on hover */
.btn::after {
  content: "";
  position: absolute;
  top: 0;
  left: -75%;
  width: 50%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, .55), transparent);
  transform: skewX(-20deg);
}
.btn:hover::after { animation: sweep .7s; }
@keyframes sweep {
  to { left: 130%; }
}

.btn.alt {
  background: rgba(255, 255, 255, .06);
  color: var(--herotext);
  border: 1px solid rgba(255, 255, 255, .25);
}
.btn.alt:hover {
  border-color: var(--glow);
  box-shadow: none;
}

/* =========================================
   5. Hero (big top area)
   ========================================= */
.hero {
  position: relative;
  color: var(--herotext);
  padding: 40px 0 72px;
  overflow: hidden;
  background:
    radial-gradient(900px 500px at 85% -10%, rgba(45, 212, 191, .2), transparent 60%),
    radial-gradient(700px 420px at -10% 110%, rgba(59, 130, 246, .2), transparent 60%),
    var(--hero);
}

/* Faint grid lines that slowly drift */
.hero-grid-bg {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(255, 255, 255, .05) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, .05) 1px, transparent 1px);
  background-size: 48px 48px;
  mask-image: radial-gradient(ellipse at 60% 40%, #000 20%, transparent 75%);
  -webkit-mask-image: radial-gradient(ellipse at 60% 40%, #000 20%, transparent 75%);
  animation: grid-drift 18s linear infinite;
}
@keyframes grid-drift {
  to { background-position: 48px 48px, 48px 48px; }
}

/* Soft blurry color circles that float around */
.blob {
  position: absolute;
  border-radius: 50%;
  filter: blur(80px);
  opacity: .28;
  animation: float 16s ease-in-out infinite;
}
.b1 { width: 380px; height: 380px; background: var(--glow); top: -140px; right: 8%; }
.b2 { width: 300px; height: 300px; background: var(--blue); bottom: -160px; left: 10%; animation-delay: -7s; }
@keyframes float {
  0%, 100% { transform: translate(0, 0) scale(1); }
  33%      { transform: translate(40px, -30px) scale(1.08); }
  66%      { transform: translate(-30px, 25px) scale(.95); }
}

.hero-grid {
  position: relative;
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  gap: 48px;
  align-items: start;
}

/* Things that slide up when the page first loads.
   --d is the delay, set in the HTML. */
.load {
  opacity: 0;
  animation: rise .9s cubic-bezier(.2, .7, .2, 1) forwards;
  animation-delay: var(--d, 0s);
}
@keyframes rise {
  from { opacity: 0; transform: translateY(30px); }
  to   { opacity: 1; transform: none; }
}

.badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin: 0 0 20px;
  padding: 6px 14px;
  font-size: 13px;
  font-weight: 700;
  border-radius: 999px;
  background: rgba(255, 255, 255, .06);
  border: 1px solid rgba(255, 255, 255, .16);
  color: #C9D8EA;
}
.badge i {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--glow);
  animation: blink 1.4s infinite;
}
@keyframes blink {
  50% { opacity: .2; }
}

.hero h1 {
  font-size: clamp(36px, 5.2vw, 58px);
  line-height: 1.08;
  margin: 0 0 20px;
  letter-spacing: -1.6px;
}

/* Moving gradient color inside the words "rely on" */
.shine {
  background: linear-gradient(90deg, var(--glow), #A7F3D0, var(--blue), var(--glow));
  background-size: 300% 100%;
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  animation: gradient 8s linear infinite;
}
@keyframes gradient {
  to { background-position: 300% 0; }
}

.hero-lead {
  font-size: 18px;
  max-width: 560px;
  color: #C9D8EA;
  margin: 0 0 30px;
}

.hero-btns {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.hero-points {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 22px;
  list-style: none;
  padding: 0;
  margin: 34px 0 0;
  color: var(--heromuted);
  font-size: 14px;
  font-weight: 600;
}
.hero-points li { display: flex; align-items: center; gap: 8px; }
.hero-points .i { width: 18px; height: 18px; color: var(--glow); }

/* ----- Voice call console ----- */
.console {
  background: rgba(8, 24, 46, .72);
  border: 1px solid rgba(255, 255, 255, .12);
  border-radius: 22px;
  padding: 18px;
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  box-shadow: 0 40px 80px rgba(0, 0, 0, .4), inset 0 1px 0 rgba(255, 255, 255, .06);
}
/* After it loads, it gently bobs up and down */
.console.bob {
  opacity: 1;
  animation: bob 7s ease-in-out infinite;
}
@keyframes bob {
  50% { transform: translateY(-10px); }
}

.con-head {
  display: flex;
  align-items: center;
  gap: 12px;
  padding-bottom: 14px;
  border-bottom: 1px solid rgba(255, 255, 255, .1);
}
.con-head strong { display: block; font-size: 15px; }
.con-head small  { color: var(--heromuted); font-size: 12px; }
.timer {
  margin-left: auto;
  font-family: var(--mono);
  font-size: 13px;
  color: var(--glow);
  background: rgba(45, 212, 191, .1);
  padding: 4px 10px;
  border-radius: 8px;
}

/* Green dot with a ripple ring */
.live {
  position: relative;
  display: inline-block;
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: #22C55E;
  flex: none;
}
.live::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: 50%;
  border: 2px solid #22C55E;
  animation: ripple 1.6s infinite;
}
.live.small { width: 8px; height: 8px; }
@keyframes ripple {
  to { transform: scale(2.6); opacity: 0; }
}

/* Two speakers: caller and AI */
.speakers {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  margin: 14px 0 10px;
}
.spk {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 12px;
  border-radius: 14px;
  background: rgba(255, 255, 255, .04);
  border: 1px solid rgba(255, 255, 255, .08);
  transition: border-color .3s, background .3s;
}
.spk b { font-size: 13px; }
.spk.speaking {
  border-color: rgba(45, 212, 191, .55);
  background: rgba(45, 212, 191, .08);
}

.avatar {
  display: grid;
  place-items: center;
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: rgba(255, 255, 255, .1);
  color: #fff;
  flex: none;
}
.avatar .i { width: 18px; height: 18px; }

/* The glowing AI ball */
.orb {
  position: relative;
  width: 38px;
  height: 38px;
  border-radius: 50%;
  flex: none;
  background: radial-gradient(circle at 30% 30%, #CCFBF1, var(--glow) 40%, var(--blue) 100%);
  box-shadow: 0 0 18px rgba(45, 212, 191, .5);
  animation: orb-breathe 3s ease-in-out infinite;
}
.orb::before,
.orb::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: 50%;
  border: 2px solid var(--glow);
  opacity: 0;
}
.speaking .orb::before { animation: ripple 1.2s infinite; }
.speaking .orb::after  { animation: ripple 1.2s .6s infinite; }
@keyframes orb-breathe {
  50% { transform: scale(.92); }
}

/* Small sound bars under each speaker name */
.mini-wave {
  display: flex;
  align-items: center;
  gap: 3px;
  height: 18px;
  margin-top: 2px;
}
.mini-wave i {
  width: 3px;
  height: 4px;
  border-radius: 2px;
  background: #4A6A95;
  transition: background .3s;
}
.speaking .mini-wave i {
  background: var(--glow);
  animation: talk .5s ease-in-out infinite alternate;
}
.speaking .mini-wave i:nth-child(2) { animation-duration: .38s; }
.speaking .mini-wave i:nth-child(3) { animation-duration: .62s; }
.speaking .mini-wave i:nth-child(4) { animation-duration: .44s; }
.speaking .mini-wave i:nth-child(5) { animation-duration: .56s; }
.speaking .mini-wave i:nth-child(6) { animation-duration: .4s; }
.speaking .mini-wave i:nth-child(7) { animation-duration: .66s; }
.speaking .mini-wave i:nth-child(8) { animation-duration: .48s; }
@keyframes talk {
  to { height: 17px; }
}

/* Live transcript (captions) */
.transcript {
  display: flex;
  flex-direction: column;
  gap: 12px;
  height: 220px;
  overflow: hidden;
  padding: 8px 2px;
  mask-image: linear-gradient(transparent, #000 18%);
  -webkit-mask-image: linear-gradient(transparent, #000 18%);
  transition: opacity .5s;
}
.transcript.fading { opacity: 0; }

.line {
  font-size: 14px;
  line-height: 1.5;
  animation: pop .35s ease-out;
}
.line .who {
  display: block;
  font-size: 11px;
  letter-spacing: .08em;
  text-transform: uppercase;
  font-weight: 800;
  color: var(--heromuted);
}
.line.ai .who  { color: var(--glow); }
.line .txt     { color: #C9D8EA; }
.line.ai .txt  { color: #fff; font-weight: 600; }
/* Blinking cursor while words are still appearing */
.line.now .txt::after {
  content: "";
  display: inline-block;
  width: 2px;
  height: 1em;
  margin-left: 2px;
  vertical-align: -2px;
  background: var(--glow);
  animation: blink .8s infinite;
}
@keyframes pop {
  from { opacity: 0; transform: translateY(8px); }
  to   { opacity: 1; transform: none; }
}

/* Three bouncing dots while the AI is "thinking" */
.thinking {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 12px;
  color: var(--heromuted);
  animation: pop .3s ease-out;
}
.thinking span { display: flex; gap: 4px; }
.thinking i {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--glow);
  animation: hop 1s infinite;
}
.thinking i:nth-child(2) { animation-delay: .15s; }
.thinking i:nth-child(3) { animation-delay: .3s; }
@keyframes hop {
  0%, 60%, 100% { transform: translateY(0); }
  30%           { transform: translateY(-5px); }
}

/* Action chips at the bottom of the console */
.actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  padding-top: 14px;
  border-top: 1px solid rgba(255, 255, 255, .1);
}
.actions small {
  width: 100%;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--heromuted);
}
.act {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 11px;
  font-size: 12px;
  font-weight: 700;
  border-radius: 8px;
  color: #7F94B2;
  border: 1px solid rgba(255, 255, 255, .12);
  transition: all .35s;
}
.act .i { width: 14px; height: 14px; }
.act.working {
  color: #FDE68A;
  border-color: rgba(253, 230, 138, .5);
  animation: blink 1s infinite;
}
.act.done {
  color: #86EFAC;
  border-color: rgba(134, 239, 172, .45);
  background: rgba(34, 197, 94, .12);
}

/* =========================================
   6. Moving strip of industries
   ========================================= */
.marquee {
  overflow: hidden;
  background: var(--card);
  border-bottom: 1px solid var(--line);
  padding: 18px 0;
  mask-image: linear-gradient(90deg, transparent, #000 10%, #000 90%, transparent);
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 10%, #000 90%, transparent);
}
.track {
  display: flex;
  width: max-content;
  animation: slide 40s linear infinite;
}
.marquee:hover .track { animation-play-state: paused; }
.track span {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 0 30px;
  font-weight: 700;
  color: var(--muted);
  white-space: nowrap;
}
.track .i { color: var(--accent); }
@keyframes slide {
  to { transform: translateX(-50%); }
}

/* =========================================
   7. Sections and cards
   ========================================= */
section { padding: 90px 0; }

.eyebrow {
  margin: 0 0 8px;
  font-size: 13px;
  font-weight: 800;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--accent);
}

h2 {
  font-size: clamp(28px, 4vw, 42px);
  line-height: 1.15;
  margin: 0 0 12px;
  letter-spacing: -.9px;
}

.lead {
  color: var(--muted);
  max-width: 640px;
  margin: 0 0 40px;
  font-size: 17px;
}

.grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
  gap: 18px;
}

.card {
  position: relative;
  overflow: hidden;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 18px;
  padding: 26px;
  transition: transform .3s, border-color .3s, box-shadow .3s;
}
.card:hover {
  border-color: var(--accent);
  box-shadow: 0 22px 44px rgba(11, 37, 69, .12);
}
/* A soft light that follows your mouse.
   script.js sets --mx and --my. */
.card::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: radial-gradient(260px circle at var(--mx, 50%) var(--my, 50%), rgba(45, 212, 191, .14), transparent 70%);
  opacity: 0;
  transition: opacity .3s;
}
.card:hover::after { opacity: 1; }

.card h3 { margin: 0 0 6px; font-size: 18px; }
.card p  { margin: 0; color: var(--muted); font-size: 15px; }

/* Icon boxes on cards */
.icon {
  display: grid;
  place-items: center;
  width: 50px;
  height: 50px;
  margin-bottom: 18px;
  border-radius: 14px;
  color: #fff;
  background: linear-gradient(135deg, var(--accent), var(--blue));
  box-shadow: 0 10px 24px rgba(11, 127, 120, .28);
  transition: transform .35s;
}
.icon .i { width: 24px; height: 24px; }
.icon.sm {
  width: 44px;
  height: 44px;
  margin-bottom: 16px;
  color: var(--accent);
  background: var(--soft);
  box-shadow: none;
}
.icon.sm .i { width: 22px; height: 22px; }
.card:hover .icon { transform: translateY(-3px) rotate(-6deg); }

/* =========================================
   8. Workflow demo
   ========================================= */
.flow-section {
  background:
    radial-gradient(800px 400px at 100% 0, var(--soft), transparent 70%),
    var(--bg);
}

.flow-app {
  border-radius: 22px;
  overflow: hidden;
  background: #0A1B33;
  border: 1px solid #1C3A5E;
  box-shadow: 0 40px 80px rgba(11, 37, 69, .25);
  color: #EAF2FA;
}

/* Top bar, like an app window */
.flow-bar {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 14px;
  padding: 14px 18px;
  background: #0D2342;
  border-bottom: 1px solid #1C3A5E;
  font-size: 14px;
}
.win-dots { display: flex; gap: 6px; }
.win-dots i { width: 11px; height: 11px; border-radius: 50%; background: #2A4A75; }
.win-dots i:nth-child(1) { background: #F87171; }
.win-dots i:nth-child(2) { background: #FBBF24; }
.win-dots i:nth-child(3) { background: #34D399; }

.pill {
  padding: 3px 10px;
  font-size: 12px;
  font-weight: 800;
  border-radius: 999px;
  background: #1C3A5E;
  color: #A9BAD0;
}
.pill.running { background: rgba(251, 191, 36, .15); color: #FCD34D; animation: blink 1.2s infinite; }
.pill.success { background: rgba(34, 197, 94, .15); color: #86EFAC; }
.runs { margin-left: auto; color: #A9BAD0; font-size: 13px; }
.runs b { color: #fff; font-family: var(--mono); }

/* Canvas with a dot grid, like a workflow editor */
.flow-canvas {
  overflow-x: auto;
  padding: 20px 14px;
  background-color: #0A1B33;
  background-image: radial-gradient(rgba(255, 255, 255, .09) 1px, transparent 1px);
  background-size: 22px 22px;
}
#flow-svg {
  display: block;
  width: 100%;
  min-width: 820px;
  height: auto;
  font-family: 'Manrope', Arial, sans-serif;
}

/* Parts of the diagram (made in script.js) */
.edge {
  fill: none;
  stroke: #2A4A75;
  stroke-width: 2;
  transition: opacity .3s;
}
.edge.dashed { stroke-dasharray: 4 5; }
.edge.skip { opacity: .3; }

.edge-flow {
  fill: none;
  stroke: var(--glow);
  stroke-width: 2.5;
  stroke-dasharray: 6 8;
  opacity: 0;
}
.edge-flow.on {
  opacity: 1;
  animation: dash .7s linear infinite;
}
.edge-flow.done {
  opacity: .9;
  stroke: #22C55E;
  stroke-dasharray: none;
}
@keyframes dash {
  to { stroke-dashoffset: -28; }
}

.packet {
  fill: #fff;
  filter: url(#glow);
}

.port {
  fill: #0A1B33;
  stroke: #4A6A95;
  stroke-width: 2;
}

.elabel {
  fill: #7F94B2;
  font-size: 12px;
  font-weight: 700;
}

.node .nbox {
  fill: #12294A;
  stroke: #2A4A75;
  stroke-width: 1.5;
  transition: stroke .3s, fill .3s;
}
.node.active .nbox {
  stroke: var(--glow);
  stroke-width: 2.5;
  fill: #143456;
  filter: url(#glow);
}
.node.done .nbox { stroke: #22C55E; }
.node { transition: opacity .3s; }
.node.skip { opacity: .3; }

.node .wi { color: #fff; }
.node.sub .wi { color: #9FE8DC; }
.nt { fill: #EAF2FA; font-size: 15px; font-weight: 800; }
.ns { fill: #8EA3BF; font-size: 12px; font-weight: 600; }

.ok { opacity: 0; transition: opacity .3s; }
.ok circle { fill: #22C55E; }
.ok path {
  fill: none;
  stroke: #fff;
  stroke-width: 2.2;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.node.done .ok { opacity: 1; }

/* Log and points under the canvas */
.flow-foot {
  display: grid;
  grid-template-columns: 1.3fr 1fr;
  border-top: 1px solid #1C3A5E;
}
.log {
  padding: 18px;
  border-right: 1px solid #1C3A5E;
}
.log-head {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 10px;
  font-size: 12px;
  font-weight: 800;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: #A9BAD0;
}
#flow-log {
  list-style: none;
  margin: 0;
  padding: 0;
  height: 196px;
  overflow: hidden;
  font-family: var(--mono);
  font-size: 12.5px;
}
#flow-log li {
  display: flex;
  gap: 12px;
  padding: 3px 0;
  animation: pop .3s ease-out;
}
#flow-log .t   { color: #4A6A95; min-width: 48px; }
#flow-log .tag { color: var(--glow); min-width: 80px; }
#flow-log .msg { color: #C9D8EA; }
#flow-log li.end .msg { color: #86EFAC; font-weight: 700; }

.flow-points {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 18px;
  padding: 18px 22px;
}
.flow-points div { display: flex; gap: 14px; }
.flow-points .i { width: 22px; height: 22px; color: var(--glow); margin-top: 2px; }
.flow-points p { margin: 0; font-size: 14px; color: #A9BAD0; }
.flow-points b { display: block; color: #fff; font-size: 15px; }

/* =========================================
   9. Numbers
   ========================================= */
.stats-wrap { padding: 0; }
.stats {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 18px;
  padding: 38px;
  border-radius: 24px;
  color: var(--herotext);
  background:
    radial-gradient(600px 200px at 50% 0, rgba(45, 212, 191, .18), transparent 70%),
    var(--hero);
}
.stat { text-align: center; }
.stat b {
  font-size: 46px;
  font-weight: 800;
  color: var(--glow);
  font-variant-numeric: tabular-nums;
}
.stat span {
  display: block;
  color: #C9D8EA;
  font-size: 14px;
}

/* =========================================
   10. How it works
   ========================================= */
.steps { counter-reset: s; }
.steps .card::before {
  counter-increment: s;
  content: counter(s);
  display: inline-grid;
  place-items: center;
  width: 40px;
  height: 40px;
  border-radius: 12px;
  background: var(--hero);
  color: var(--glow);
  font-weight: 800;
  margin-bottom: 14px;
}

/* Line that draws itself across the steps */
.steps-line {
  height: 3px;
  margin: 0 0 22px;
  background: var(--line);
  border-radius: 3px;
  overflow: hidden;
}
.steps-line span {
  display: block;
  height: 100%;
  background: linear-gradient(90deg, var(--glow), var(--blue));
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 1.6s cubic-bezier(.2, .7, .2, 1) .3s;
}
.steps-line.in span { transform: scaleX(1); }

/* =========================================
   11. Contact box and footer
   ========================================= */
.cta {
  position: relative;
  overflow: hidden;
  color: var(--herotext);
  text-align: center;
  border-radius: 28px;
  padding: 70px 22px;
  border: 2px solid transparent;
  /* Two backgrounds: the dark inside, and a moving
     colorful border around the edge */
  background:
    linear-gradient(var(--hero), var(--hero)) padding-box,
    linear-gradient(120deg, var(--glow), var(--blue), #8B5CF6, var(--glow)) border-box;
  background-size: 100% 100%, 300% 300%;
  animation: border-move 8s linear infinite;
}
@keyframes border-move {
  to { background-position: 0 0, 300% 0; }
}

/* Slowly turning glow behind the text */
.ring {
  position: absolute;
  width: 560px;
  height: 560px;
  left: 50%;
  top: 50%;
  margin: -280px 0 0 -280px;
  border-radius: 50%;
  background: conic-gradient(from 0deg, transparent, rgba(45, 212, 191, .2), transparent 40%);
  animation: spin 12s linear infinite;
  pointer-events: none;
}
@keyframes spin {
  to { transform: rotate(360deg); }
}
.cta > *:not(.ring) { position: relative; }

.cta p {
  color: #C9D8EA;
  margin: 0 auto 28px;
  max-width: 520px;
}

.email-row {
  display: flex;
  width: fit-content;
  max-width: 100%;
  align-items: center;
  flex-wrap: wrap;
  justify-content: center;
  gap: 10px;
  margin: 22px auto 0;
  padding: 8px 8px 8px 18px;
  border-radius: 12px;
  background: rgba(255, 255, 255, .06);
  border: 1px solid rgba(255, 255, 255, .16);
  font-weight: 700;
}
.copy-btn {
  border: 0;
  cursor: pointer;
  font: inherit;
  font-size: 13px;
  padding: 6px 14px;
  border-radius: 8px;
  background: rgba(255, 255, 255, .14);
  color: var(--herotext);
  transition: background .2s;
}
.copy-btn:hover { background: rgba(255, 255, 255, .26); }
.copy-btn.done  { background: #22C55E; }

footer {
  padding: 40px 0;
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: 14px;
}
.foot {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}
.foot p { width: 100%; margin: 0; }
.logo.dark { color: var(--text); }
.logo.dark b { color: var(--accent); }
.foot-links { display: flex; flex-wrap: wrap; gap: 22px; height: auto; }
.foot-links a:hover { color: var(--accent); }

/* Back-to-top button */
.to-top {
  position: fixed;
  right: 20px;
  bottom: 20px;
  z-index: 15;
  display: grid;
  place-items: center;
  width: 46px;
  height: 46px;
  border-radius: 14px;
  background: var(--glow);
  color: #06142A;
  font-weight: 800;
  font-size: 20px;
  box-shadow: 0 10px 25px rgba(0, 0, 0, .25);
  opacity: 0;
  transform: translateY(20px);
  pointer-events: none;
  transition: opacity .3s, transform .3s;
}
.to-top.show {
  opacity: 1;
  transform: none;
  pointer-events: auto;
}
.to-top:hover { transform: translateY(-4px); }

/* =========================================
   11b. Newer parts: industry pills, demo agents,
        FAQ and contact form
   ========================================= */

/* Industry names in the moving strip: clean pill boxes */
.marquee { padding: 16px 0; }
.track span {
  margin: 0 7px;
  padding: 8px 18px 8px 12px;
  border-radius: 999px;
  background: var(--bg);
  border: 1px solid var(--line);
  font-size: 14px;
  color: var(--text);
}
.track .i {
  width: 28px;
  height: 28px;
  padding: 6px;
  border-radius: 50%;
  background: var(--soft);
}

/* ----- Demo agents ----- */
.demo-section {
  background:
    radial-gradient(700px 360px at 0 0, var(--soft), transparent 70%),
    var(--bg);
}

.demo-app {
  display: grid;
  grid-template-columns: 300px 1fr;
  border-radius: 24px;
  overflow: hidden;
  background: #0A1B33;
  border: 1px solid #1C3A5E;
  box-shadow: 0 40px 80px rgba(11, 37, 69, .25);
  color: #EAF2FA;
}

/* Left side: the list of industries */
.demo-tabs {
  display: flex;
  flex-direction: column;
  gap: 4px;
  padding: 14px;
  background: #0D2342;
  border-right: 1px solid #1C3A5E;
}
.tab {
  position: relative;
  overflow: hidden;
  display: flex;
  align-items: center;
  gap: 12px;
  width: 100%;
  padding: 9px 12px;
  border: 1px solid transparent;
  border-radius: 12px;
  background: none;
  color: inherit;
  font: inherit;
  text-align: left;
  cursor: pointer;
  transition: background .25s, border-color .25s, transform .25s;
}
.tab:hover { background: rgba(255, 255, 255, .04); transform: translateX(3px); }
.tab .ti {
  display: grid;
  place-items: center;
  width: 36px;
  height: 36px;
  flex: none;
  border-radius: 10px;
  background: rgba(255, 255, 255, .06);
  color: var(--glow);
  transition: background .25s, color .25s;
}
.tab .ti .i { width: 18px; height: 18px; }
.tab b {
  display: block;
  font-size: 14px;
  line-height: 1.3;
  color: #fff;
}
.tab small { display: block; font-size: 12px; color: #7F94B2; }
.tab.active {
  background: rgba(45, 212, 191, .09);
  border-color: rgba(45, 212, 191, .4);
}
.tab.active .ti { background: var(--glow); color: #06142A; }
/* Progress line: grows while that demo plays. script.js sets --p */
.tab::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: 0;
  height: 2px;
  width: calc(var(--p, 0) * 100%);
  background: var(--glow);
  transition: width .4s;
}

/* Right side: the demo player */
.demo-stage {
  display: flex;
  flex-direction: column;
  gap: 16px;
  padding: 22px;
  min-width: 0;
}
.demo-top {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
}
.agent-id { display: flex; align-items: center; gap: 14px; }
.agent-id b { display: block; font-size: 20px; }
.agent-id small { color: #A9BAD0; font-size: 13px; }
.orb.big { width: 54px; height: 54px; }
.agent-id.switch { animation: pop .45s ease-out; }

.demo-controls { display: flex; gap: 8px; }
.ctrl {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 8px 13px;
  border-radius: 10px;
  border: 1px solid rgba(255, 255, 255, .16);
  background: rgba(255, 255, 255, .05);
  color: #fff;
  font: inherit;
  font-size: 13px;
  font-weight: 700;
  cursor: pointer;
  transition: background .2s, border-color .2s, color .2s;
}
.ctrl .i { width: 16px; height: 16px; }
.ctrl:hover { border-color: var(--glow); }
.ctrl[aria-pressed="true"] { background: var(--glow); color: #06142A; border-color: var(--glow); }

.console.flat {
  background: rgba(255, 255, 255, .03);
  box-shadow: none;
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
}
.console.flat .transcript { height: 250px; }

.demo-skills {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
  list-style: none;
  margin: 0;
  padding: 0;
}
.demo-skills li {
  display: flex;
  gap: 8px;
  padding: 12px;
  border-radius: 12px;
  background: rgba(255, 255, 255, .04);
  border: 1px solid rgba(255, 255, 255, .08);
  font-size: 13px;
  color: #C9D8EA;
  animation: pop .4s ease-out both;
}
.demo-skills li:nth-child(2) { animation-delay: .08s; }
.demo-skills li:nth-child(3) { animation-delay: .16s; }
.demo-skills .i { width: 16px; height: 16px; color: var(--glow); margin-top: 2px; }

.demo-note {
  margin: 16px 0 0;
  font-size: 13px;
  color: var(--muted);
  text-align: center;
}

/* ----- FAQ ----- */
.faq-wrap {
  display: grid;
  grid-template-columns: 1fr 1.4fr;
  gap: 40px;
  align-items: start;
}
.text-link { color: var(--accent); font-weight: 700; }
.text-link:hover { text-decoration: underline; }
.faq-list { display: flex; flex-direction: column; gap: 12px; }
.faq {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 16px;
  transition: border-color .3s, box-shadow .3s, opacity .7s, transform .7s;
}
.faq[open] { border-color: var(--accent); box-shadow: 0 14px 30px rgba(11, 37, 69, .08); }
.faq summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 18px 20px;
  font-weight: 800;
  cursor: pointer;
  list-style: none;
}
.faq summary::-webkit-details-marker { display: none; }
/* Plus sign that turns into a minus */
.faq summary::after {
  content: "+";
  display: grid;
  place-items: center;
  width: 28px;
  height: 28px;
  flex: none;
  border-radius: 8px;
  background: var(--soft);
  color: var(--accent);
  font-size: 18px;
  transition: transform .3s;
}
.faq[open] summary::after { content: "−"; transform: rotate(180deg); }
.faq p {
  margin: 0;
  padding: 0 20px 18px;
  color: var(--muted);
  animation: rise .35s ease-out;
}

/* ----- Contact: text on the left, form on the right ----- */
.cta.split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 44px;
  align-items: center;
  text-align: left;
  padding: 56px;
}
.cta.split p { margin: 0 0 22px; }
.cta-points {
  display: flex;
  flex-direction: column;
  gap: 10px;
  list-style: none;
  margin: 0 0 26px;
  padding: 0;
  font-weight: 600;
}
.cta-points li { display: flex; align-items: center; gap: 10px; }
.cta-points .i {
  width: 22px;
  height: 22px;
  padding: 4px;
  border-radius: 50%;
  background: rgba(45, 212, 191, .18);
  color: var(--glow);
}
.cta.split .email-row { margin: 0; }
.email-row .i { color: var(--glow); width: 18px; height: 18px; }

.lead-form {
  display: flex;
  flex-direction: column;
  gap: 14px;
  padding: 24px;
  border-radius: 20px;
  background: rgba(255, 255, 255, .05);
  border: 1px solid rgba(255, 255, 255, .12);
}
.lead-form .row { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.lead-form label {
  display: flex;
  flex-direction: column;
  gap: 6px;
  font-size: 13px;
  font-weight: 700;
  color: #C9D8EA;
}
.lead-form input,
.lead-form select,
.lead-form textarea {
  width: 100%;
  padding: 11px 13px;
  border-radius: 10px;
  border: 1px solid rgba(255, 255, 255, .16);
  background: rgba(6, 20, 42, .6);
  color: #fff;
  font: inherit;
  font-size: 15px;
  font-weight: 500;
  transition: border-color .2s, box-shadow .2s;
}
.lead-form select option { color: #0B2545; }
.lead-form input:focus,
.lead-form select:focus,
.lead-form textarea:focus {
  outline: none;
  border-color: var(--glow);
  box-shadow: 0 0 0 3px rgba(45, 212, 191, .2);
}
.lead-form .btn { justify-content: center; border: 0; cursor: pointer; font: inherit; font-weight: 800; }
.form-note { margin: 0 !important; font-size: 13px; color: #86EFAC !important; }

@media (max-width: 960px) {
  .demo-app { grid-template-columns: 1fr; }
  /* Industry list becomes a row you can swipe */
  .demo-tabs {
    flex-direction: row;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    border-right: 0;
    border-bottom: 1px solid #1C3A5E;
  }
  .tab { min-width: 210px; scroll-snap-align: start; }
  .tab:hover { transform: none; }
  .faq-wrap,
  .cta.split { grid-template-columns: 1fr; }
  .cta.split { padding: 40px 22px; }
}

@media (max-width: 640px) {
  .demo-skills { grid-template-columns: 1fr; }
  .lead-form .row { grid-template-columns: 1fr; }
  .demo-stage { padding: 16px; }
}

/* =========================================
   11c. Live calls: Cassina section and "Talk live" buttons
   ========================================= */
.nav-cta { display: inline-flex; align-items: center; gap: 8px; }
.nav-cta .live { background: #06142A; }
.nav-cta .live::after { border-color: #06142A; }

.cassina-section {
  position: relative;
  overflow: hidden;
  color: var(--herotext);
  background:
    radial-gradient(700px 420px at 85% 30%, rgba(45, 212, 191, .18), transparent 65%),
    radial-gradient(600px 400px at 0 100%, rgba(139, 92, 246, .16), transparent 65%),
    var(--hero);
}
.cassina-section .lead { color: #C9D8EA; }
.cassina-section .eyebrow { color: var(--glow); }

.cassina-grid {
  display: grid;
  grid-template-columns: 1.05fr 1fr;
  gap: 48px;
  align-items: center;
}

.cassina-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 14px;
  margin-bottom: 26px;
}
.big-call {
  border: 0;
  cursor: pointer;
  font: inherit;
  font-weight: 800;
  font-size: 16px;
  padding: 16px 26px;
  /* A soft ring that pulses, inviting a click */
  animation: call-pulse 2.2s infinite;
}
@keyframes call-pulse {
  0%   { box-shadow: 0 0 0 0 rgba(45, 212, 191, .55); }
  70%  { box-shadow: 0 0 0 16px rgba(45, 212, 191, 0); }
  100% { box-shadow: 0 0 0 0 rgba(45, 212, 191, 0); }
}
.big-call:disabled { opacity: .6; cursor: not-allowed; animation: none; }

/* Red "End call" look, used by every live button */
.is-live,
.ctrl.is-live {
  background: #EF4444 !important;
  color: #fff !important;
  border-color: #EF4444 !important;
  animation: none;
}

.phone-card {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 18px 10px 10px;
  border-radius: 14px;
  background: rgba(255, 255, 255, .06);
  border: 1px solid rgba(255, 255, 255, .16);
  transition: border-color .2s, transform .2s;
}
.phone-card:hover { border-color: var(--glow); transform: translateY(-2px); }
.phone-card small { display: block; font-size: 12px; color: var(--heromuted); }
.phone-card b { font-size: 17px; letter-spacing: .02em; }
.phone-icon {
  display: grid;
  place-items: center;
  width: 40px;
  height: 40px;
  border-radius: 10px;
  background: rgba(45, 212, 191, .15);
  color: var(--glow);
}

.cassina-notes {
  display: flex;
  flex-direction: column;
  gap: 8px;
  list-style: none;
  margin: 0;
  padding: 0;
  font-size: 14px;
  color: var(--heromuted);
}
.cassina-notes li { display: flex; align-items: center; gap: 10px; }
.cassina-notes .i { width: 16px; height: 16px; color: var(--glow); }

.cassina-box .console {
  background: rgba(8, 24, 46, .7);
  border-color: rgba(255, 255, 255, .14);
  box-shadow: 0 40px 80px rgba(0, 0, 0, .35);
}

/* Messages shown inside a console (idle, connecting, errors) */
.con-msg {
  margin: auto 0;
  padding: 18px;
  text-align: center;
  font-size: 14px;
  color: var(--heromuted);
}
.con-msg b { display: block; color: #fff; font-size: 16px; margin-bottom: 4px; }
.con-msg.error b { color: #FCA5A5; }

/* While a REAL call runs, the AI ball grows with the agent's voice.
   script.js sets --vol between 0 and 1. */
.console.live-mode .orb {
  transform: scale(calc(1 + var(--vol, 0) * .45));
  transition: transform .08s;
  animation: none;
}
.console.live-mode .live { background: #EF4444; }
.console.live-mode .live::after { border-color: #EF4444; }
.live-badge {
  margin-left: 8px;
  padding: 2px 8px;
  border-radius: 6px;
  background: #EF4444;
  color: #fff;
  font-size: 10px;
  font-weight: 800;
  letter-spacing: .08em;
}

@media (max-width: 960px) {
  .cassina-grid { grid-template-columns: 1fr; }
}

/* =========================================
   11d. Anime characters
   ========================================= */
.char { display: block; width: 100%; height: auto; overflow: visible; }

/* Blinking (each character starts at a random moment) */
.char .eye {
  transform-box: fill-box;
  transform-origin: center;
  animation: blink 6s infinite;
  animation-delay: var(--blink-delay, 0s);
}
@keyframes blink {
  0%, 93%, 100% { transform: scaleY(1); }
  95%           { transform: scaleY(.08); }
}

/* Breathing and a gentle head sway */
.char .body {
  animation: breathe 4.5s ease-in-out infinite;
}
@keyframes breathe {
  50% { transform: translateY(1.6px); }
}
.char .head,
.char .head-tilt {
  transform-box: view-box;
  transform-origin: 100px 150px;
}
.char .head { animation: sway 7s ease-in-out infinite; }
@keyframes sway {
  0%, 100% { transform: rotate(0); }
  30%      { transform: rotate(1.6deg); }
  70%      { transform: rotate(-1.4deg); }
}
.char .hair-back {
  transform-box: view-box;
  transform-origin: 100px 60px;
  animation: hair-sway 7s ease-in-out infinite;
}
@keyframes hair-sway {
  30% { transform: rotate(-1deg); }
  70% { transform: rotate(1deg); }
}
.char .head-tilt { transition: transform .4s cubic-bezier(.3, 1.5, .5, 1); }

/* Mouth: closed by default, opens and closes while talking */
.char .mouth-open {
  opacity: 0;
  transform-box: fill-box;
  transform-origin: center top;
}
.talking .char .mouth-closed { opacity: 0; }
.talking .char .mouth-open {
  opacity: 1;
  animation: mouth-talk .22s ease-in-out infinite alternate;
}
.talking .char .head { animation: sway 7s ease-in-out infinite, nod .5s ease-in-out infinite alternate; }
@keyframes mouth-talk {
  from { transform: scaleY(.25) scaleX(.85); }
  to   { transform: scaleY(1.05); }
}
@keyframes nod {
  to { translate: 0 1px; }
}
.char .mic-dot { animation: blink 1.4s infinite; }

/* A round frame that holds a character */
.char-frame {
  position: relative;
  border-radius: 50%;
  overflow: hidden;
  background:
    radial-gradient(circle at 50% 35%, color-mix(in srgb, var(--accent, #2DD4BF) 45%, transparent), transparent 70%),
    linear-gradient(160deg, #163A63, #0A1B33);
  box-shadow: 0 0 0 3px color-mix(in srgb, var(--accent, #2DD4BF) 60%, transparent),
              0 18px 40px rgba(0, 0, 0, .35);
}
.char-frame .char { margin-top: 8%; }
.char-frame.mini { width: 58px; height: 58px; flex: none; }
.talking.char-frame,
.char-frame.talking {
  box-shadow: 0 0 0 3px var(--accent, #2DD4BF),
              0 0 30px color-mix(in srgb, var(--accent, #2DD4BF) 70%, transparent);
}

/* ----- Hero: Cassina next to the call box ----- */
.hero-visual { position: relative; }
.hero-char-wrap {
  position: relative;
  z-index: 2;
  display: flex;
  align-items: flex-end;
  gap: 14px;
  margin: 0 0 10px 6px;
}
.hero-char-wrap .char-frame {
  width: 128px;
  height: 128px;
  animation: float-y 5s ease-in-out infinite;
}
@keyframes float-y {
  50% { transform: translateY(-8px); }
}
.hero-bubble {
  position: relative;
  max-width: 270px;
  margin-bottom: 40px;
  padding: 12px 14px;
  border-radius: 16px 16px 16px 4px;
  background: #fff;
  color: #0B2545;
  font-size: 14px;
  line-height: 1.45;
  box-shadow: 0 14px 30px rgba(0, 0, 0, .3);
  animation: bubble-in .6s 1.4s cubic-bezier(.3, 1.6, .5, 1) both;
}
.hero-bubble b { display: block; }
@keyframes bubble-in {
  from { opacity: 0; transform: scale(.6) translateY(10px); }
  to   { opacity: 1; transform: none; }
}
.bubble-btn,
.tc-talk {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-top: 8px;
  padding: 7px 14px;
  border: 0;
  border-radius: 999px;
  background: var(--glow);
  color: #06142A;
  font: inherit;
  font-size: 13px;
  font-weight: 800;
  cursor: pointer;
  transition: transform .2s, box-shadow .2s;
}
.bubble-btn:hover,
.tc-talk:hover { transform: translateY(-2px); box-shadow: 0 8px 20px rgba(45, 212, 191, .4); }
.bubble-btn .i,
.tc-talk .i { width: 15px; height: 15px; }

/* ----- Cassina section stage ----- */
.stage {
  position: relative;
  display: grid;
  place-items: center;
  margin-bottom: -40px;
  z-index: 1;
}
.stage .char-frame { width: 220px; height: 220px; }
.stage-rings i {
  position: absolute;
  left: 50%;
  top: 50%;
  width: 220px;
  height: 220px;
  margin: -110px 0 0 -110px;
  border-radius: 50%;
  border: 2px solid var(--accent, #2DD4BF);
  opacity: 0;
  animation: ring-out 3.6s infinite;
}
.stage-rings i:nth-child(2) { animation-delay: 1.2s; }
.stage-rings i:nth-child(3) { animation-delay: 2.4s; }
@keyframes ring-out {
  0%   { transform: scale(1); opacity: .5; }
  100% { transform: scale(1.6); opacity: 0; }
}
.stage .name-plate {
  position: absolute;
  bottom: 4px;
  padding: 5px 14px;
  border-radius: 999px;
  background: var(--accent, #2DD4BF);
  color: #06142A;
  font-weight: 800;
  font-size: 14px;
  box-shadow: 0 10px 24px rgba(0, 0, 0, .3);
}
.cassina-box .console { padding-top: 52px; }

/* ----- Meet the team ----- */
.team-section {
  position: relative;
  overflow: hidden;
  background:
    radial-gradient(800px 400px at 50% 0, var(--soft), transparent 70%),
    var(--bg);
}
.team-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(230px, 1fr));
  gap: 20px;
}
.team-card {
  --accent: #2DD4BF;
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 18px 18px 22px;
  border-radius: 24px;
  text-align: center;
  overflow: hidden;
  background:
    linear-gradient(180deg, color-mix(in srgb, var(--accent) 16%, var(--card)), var(--card) 60%);
  border: 1px solid color-mix(in srgb, var(--accent) 30%, var(--line));
  transform: perspective(900px) rotateX(var(--rx, 0deg)) rotateY(var(--ry, 0deg));
  transition: transform .25s, box-shadow .3s, border-color .3s, opacity .7s;
}
.team-card.rv { transform: perspective(900px) translateY(28px); }
.team-card.rv.in { transform: perspective(900px) rotateX(var(--rx, 0deg)) rotateY(var(--ry, 0deg)); }
.team-card:hover {
  border-color: var(--accent);
  box-shadow: 0 24px 50px color-mix(in srgb, var(--accent) 30%, transparent);
}
.team-card:hover .head-tilt { transform: rotate(-5deg); }

.tc-top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  width: 100%;
  gap: 6px;
  font-size: 11px;
  font-weight: 800;
}
.tc-chip {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 4px 9px;
  border-radius: 999px;
  background: color-mix(in srgb, var(--accent) 18%, transparent);
  color: var(--text);
}
.tc-chip .i { width: 13px; height: 13px; color: var(--accent); }
.tc-voice { color: var(--muted); }
.tc-stage {
  position: relative;
  width: 168px;
  height: 168px;
  margin: 14px 0 12px;
}
.tc-stage .char-frame { width: 100%; height: 100%; }
.tc-glow {
  position: absolute;
  inset: -14px;
  border-radius: 50%;
  background: conic-gradient(from 0deg, transparent, var(--accent), transparent 45%);
  opacity: 0;
  animation: spin 3s linear infinite;
  transition: opacity .3s;
}
.team-card:hover .tc-glow { opacity: .55; }
.team-card h3 { margin: 0; font-size: 22px; }
.tc-role { margin: 0 0 8px; font-size: 13px; font-weight: 700; color: var(--accent); filter: brightness(.85); }
.tc-line { margin: 0 0 14px; font-size: 14px; color: var(--muted); flex: 1; }
.tc-talk { margin-top: 0; padding: 10px 18px; font-size: 14px; background: var(--accent); }

/* Cassina's card is bigger */
.team-card.featured { grid-column: span 2; flex-direction: row; text-align: left; gap: 22px; padding: 24px; }
.team-card.featured .tc-stage { width: 200px; height: 200px; flex: none; margin: 0; }
.team-card.featured .tc-info { display: flex; flex-direction: column; align-items: flex-start; }
.team-card.featured .tc-top { justify-content: flex-start; flex-wrap: wrap; gap: 8px; margin-bottom: 10px; }
.tc-top > span { white-space: nowrap; }

/* Last card: "your agent could be next" */
.team-card.join {
  justify-content: center;
  border-style: dashed;
  background: linear-gradient(180deg, var(--soft), var(--card));
}
.join-plus {
  display: grid;
  place-items: center;
  width: 120px;
  height: 120px;
  margin: 10px 0 16px;
  border-radius: 50%;
  border: 2px dashed var(--accent);
  color: var(--accent);
  font-size: 48px;
  font-weight: 300;
  animation: float-y 4s ease-in-out infinite;
}
.team-card.featured h3 { font-size: 30px; }
.tc-star {
  padding: 4px 9px;
  border-radius: 999px;
  background: var(--accent);
  color: #06142A;
}

/* ----- Call window (pops up over the page) ----- */
.call-modal {
  position: fixed;
  inset: 0;
  z-index: 50;
  display: grid;
  place-items: center;
  padding: 16px;
}
.modal-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(3, 10, 22, .72);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  animation: fade-in .3s;
}
@keyframes fade-in { from { opacity: 0; } }
.modal-card {
  --accent: #2DD4BF;
  position: relative;
  display: grid;
  grid-template-columns: 300px 1fr;
  width: min(880px, 100%);
  max-height: calc(100vh - 32px);
  overflow: auto;
  border-radius: 26px;
  background: #0A1B33;
  border: 1px solid color-mix(in srgb, var(--accent) 40%, #1C3A5E);
  color: #EAF2FA;
  box-shadow: 0 40px 100px rgba(0, 0, 0, .5);
  animation: modal-in .45s cubic-bezier(.3, 1.4, .5, 1);
}
@keyframes modal-in {
  from { opacity: 0; transform: translateY(30px) scale(.94); }
}
.modal-close {
  position: absolute;
  top: 12px;
  right: 12px;
  z-index: 3;
  width: 36px;
  height: 36px;
  border: 0;
  border-radius: 10px;
  background: rgba(255, 255, 255, .08);
  color: #fff;
  font-size: 22px;
  cursor: pointer;
}
.modal-close:hover { background: rgba(255, 255, 255, .18); }
.modal-stage {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 16px;
  padding: 36px 20px;
  background:
    radial-gradient(circle at 50% 40%, color-mix(in srgb, var(--accent) 30%, transparent), transparent 65%),
    #0D2342;
}
.modal-stage .stage { margin: 0; }
.modal-stage .char-frame { width: 210px; height: 210px; }
.modal-stage .name-plate { position: static; margin-top: -20px; }
.modal-stage small { color: #A9BAD0; font-size: 13px; text-align: center; }
.modal-side {
  display: flex;
  flex-direction: column;
  gap: 14px;
  padding: 22px;
}
.modal-side .console { flex: 1; }
.modal-side .btn { justify-content: center; }

@media (max-width: 760px) {
  .team-card.featured { grid-column: auto; flex-direction: column; text-align: center; }
  .team-card.featured .tc-info { align-items: center; }
  .team-card.featured .tc-top { justify-content: center; }
  .modal-card { grid-template-columns: 1fr; }
  .modal-stage { padding: 26px 16px 18px; }
  .modal-stage .char-frame { width: 150px; height: 150px; }
  .hero-char-wrap .char-frame { width: 100px; height: 100px; }
}

/* =========================================
   11e. Loading screen, chat bubbles, new demo layout,
        and calmer "mature" details
   ========================================= */

/* ----- Loading screen ----- */
#loader {
  position: fixed;
  inset: 0;
  z-index: 100;
  display: grid;
  place-items: center;
  background:
    radial-gradient(600px 400px at 50% 40%, rgba(45, 212, 191, .14), transparent 70%),
    #071a33;
  color: #fff;
  transition: opacity .7s ease, visibility .7s;
  /* Safety net: hide by itself after 6 seconds, even if JavaScript fails */
  animation: loader-out .7s 6s forwards;
}
@keyframes loader-out {
  to { opacity: 0; visibility: hidden; }
}
body:not(.is-loading) #loader {
  opacity: 0;
  visibility: hidden;
}
.loader-inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 16px;
  transition: transform .7s ease;
}
body:not(.is-loading) .loader-inner { transform: scale(1.08); }

.loader-logo { width: 84px; height: 94px; overflow: visible; }
/* The shield outline draws itself, then fills in */
.ll-shield {
  fill: #fff;
  fill-opacity: 0;
  stroke: var(--glow);
  stroke-width: 2.5;
  stroke-linejoin: round;
  stroke-dasharray: 220;
  stroke-dashoffset: 220;
  animation: draw-shield 1.1s ease forwards, fill-shield .5s .9s ease forwards;
}
@keyframes draw-shield { to { stroke-dashoffset: 0; } }
@keyframes fill-shield { to { fill-opacity: 1; } }
/* The 5 bars move like a voice speaking */
.ll-bar {
  fill: #0B2545;
  transform-box: fill-box;
  transform-origin: center;
  opacity: 0;
  animation: bar-in .3s 1s forwards, voice 1s 1.2s ease-in-out infinite;
}
.ll-bar.mid { fill: #0B7F78; }
.ll-bar:nth-of-type(2) { animation-delay: 1.05s, 1.3s; }
.ll-bar:nth-of-type(3) { animation-delay: 1.1s, 1.4s; }
.ll-bar:nth-of-type(4) { animation-delay: 1.15s, 1.5s; }
.ll-bar:nth-of-type(5) { animation-delay: 1.2s, 1.6s; }
@keyframes bar-in { to { opacity: 1; } }
@keyframes voice {
  0%, 100% { transform: scaleY(1); }
  50%      { transform: scaleY(.45); }
}

.loader-name {
  font-size: 22px;
  font-weight: 800;
  letter-spacing: -.3px;
  opacity: 0;
  animation: rise .6s .5s forwards;
}
.loader-name b { color: var(--glow); }
.loader-bar {
  width: 180px;
  height: 3px;
  border-radius: 3px;
  background: rgba(255, 255, 255, .1);
  overflow: hidden;
}
.loader-bar span {
  display: block;
  height: 100%;
  width: 100%;
  background: linear-gradient(90deg, var(--glow), var(--blue));
  transform-origin: left;
  animation: load-fill 1.6s cubic-bezier(.4, 0, .2, 1) forwards;
}
@keyframes load-fill { from { transform: scaleX(0); } }
.loader-tag {
  font-size: 12px;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: #8EA3BF;
}

/* Hold the hero's entrance animation until the loader is gone */
.is-loading .load { animation-play-state: paused; }
.is-loading .hero-bubble { animation-play-state: paused; }

/* ----- Calmer, more professional details ----- */
.shine { animation-duration: 14s; }
.hero-grid-bg { opacity: .6; }
.blob { opacity: .18; }

/* Characters: the lips stay, a mouth opening appears on top */
.char .mouth-open { transform-origin: center; }
@keyframes mouth-talk {
  from { transform: scaleY(.15) scaleX(.8); }
  to   { transform: scaleY(1); }
}
.char-frame .char { margin-top: 4%; }
.char-frame.portrait {
  width: 100%;
  aspect-ratio: 1 / 1;
  height: auto;
  border-radius: 22px;
}
.char-frame.portrait .char { margin-top: 0; }

/* ----- Chat bubbles (used in demo, Cassina box and call window) ----- */
.console.chat .speakers { display: none; }
.console.chat .transcript {
  height: 340px;
  gap: 10px;
  padding: 14px 4px;
}
.console.chat .line {
  max-width: 82%;
  padding: 10px 14px;
  border-radius: 16px;
  font-size: 14.5px;
}
.console.chat .line .who { font-size: 10px; margin-bottom: 2px; }
.console.chat .line.caller {
  align-self: flex-start;
  background: rgba(255, 255, 255, .07);
  border: 1px solid rgba(255, 255, 255, .08);
  border-bottom-left-radius: 4px;
}
.console.chat .line.ai {
  align-self: flex-end;
  background: color-mix(in srgb, var(--accent, #2DD4BF) 18%, #0D2342);
  border: 1px solid color-mix(in srgb, var(--accent, #2DD4BF) 45%, transparent);
  border-bottom-right-radius: 4px;
}
.console.chat .line.ai .who { color: var(--accent, #2DD4BF); }
.console.chat .thinking {
  align-self: flex-end;
  padding: 9px 14px;
  border-radius: 16px;
  background: rgba(255, 255, 255, .05);
}
.console.chat .thinking i { background: var(--accent, #2DD4BF); }
/* A small "done" row when the agent finishes a task */
.event {
  align-self: center;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 12px;
  border-radius: 999px;
  background: rgba(34, 197, 94, .12);
  border: 1px solid rgba(34, 197, 94, .3);
  color: #86EFAC;
  font-size: 12px;
  font-weight: 700;
  animation: pop .35s ease-out;
}
.event .i { width: 13px; height: 13px; }

/* ----- New demo layout ----- */
.demo-picker {
  display: flex;
  gap: 10px;
  overflow-x: auto;
  padding: 4px 2px 14px;
  margin-bottom: 18px;
  scroll-snap-type: x mandatory;
  scrollbar-width: thin;
}
.demo-picker .tab {
  --accent: #2DD4BF;
  flex: none;
  width: auto;
  min-width: 0;
  scroll-snap-align: start;
  padding: 8px 16px 8px 8px;
  border-radius: 999px;
  background: var(--card);
  border: 1px solid var(--line);
  color: var(--text);
  gap: 10px;
  transform: none;
}
.demo-picker .tab:hover { transform: translateY(-2px); background: var(--card); border-color: var(--accent); }
.demo-picker .tab .char-frame.mini { width: 42px; height: 42px; box-shadow: none; }
.demo-picker .tab b { color: var(--text); font-size: 14px; }
.demo-picker .tab small { color: var(--muted); }
.demo-picker .tab.active {
  background: color-mix(in srgb, var(--accent) 14%, var(--card));
  border-color: var(--accent);
  box-shadow: 0 8px 24px color-mix(in srgb, var(--accent) 25%, transparent);
}
.demo-picker .tab::after { left: 22px; right: 22px; width: auto; transform-origin: left; transform: scaleX(var(--p, 0)); background: var(--accent); }

.demo-panel {
  --accent: #2DD4BF;
  display: grid;
  grid-template-columns: 330px 1fr;
  border-radius: 26px;
  overflow: hidden;
  background: #0A1B33;
  border: 1px solid color-mix(in srgb, var(--accent) 30%, #1C3A5E);
  box-shadow: 0 40px 80px rgba(11, 37, 69, .25);
  color: #EAF2FA;
  transition: border-color .5s;
}
.demo-profile {
  display: flex;
  flex-direction: column;
  gap: 14px;
  padding: 22px;
  background:
    radial-gradient(circle at 50% 20%, color-mix(in srgb, var(--accent) 22%, transparent), transparent 60%),
    #0D2342;
  border-right: 1px solid #1C3A5E;
}
.demo-profile .agent-id { display: block; }
.demo-profile .agent-id b { font-size: 26px; letter-spacing: -.4px; }
.demo-profile .agent-id small { display: block; font-size: 14px; color: var(--accent); font-weight: 700; }
.profile-voice { margin: -6px 0 0; font-size: 13px; color: #8EA3BF; }
.demo-profile .demo-skills { grid-template-columns: 1fr; gap: 8px; }
.demo-profile .demo-skills li { padding: 9px 12px; }
.demo-profile .demo-skills .i { color: var(--accent); }
.demo-controls { display: flex; flex-direction: column; gap: 10px; margin-top: auto; }
.demo-small-ctrls { display: flex; gap: 8px; }
.demo-small-ctrls .ctrl { flex: 1; justify-content: center; }
.live-btn {
  justify-content: center;
  border: 0;
  cursor: pointer;
  font: inherit;
  font-weight: 800;
  background: var(--accent);
}
.demo-chat { padding: 22px; min-width: 0; display: flex; }
.demo-chat .console { flex: 1; display: flex; flex-direction: column; }
.demo-chat .console.chat .transcript { flex: 1; height: auto; min-height: 380px; }

@media (max-width: 900px) {
  .demo-panel { grid-template-columns: 1fr; }
  .demo-profile { border-right: 0; border-bottom: 1px solid #1C3A5E; }
  .demo-profile .char-frame.portrait { max-width: 220px; margin: 0 auto; }
  .demo-chat { padding: 14px; }
  .demo-chat .console.chat .transcript { height: 340px; }
}

/* =========================================
   11f. Real photos and the bigger loading logo
   ========================================= */

/* A realistic portrait photo inside any character frame */
.char-photo {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 22%;
  /* very slow, gentle movement so the photo feels alive */
  animation: photo-breathe 7s ease-in-out infinite;
}
@keyframes photo-breathe {
  0%, 100% { transform: scale(1.02); }
  50%      { transform: scale(1.05) translateY(-1%); }
}

/* Sound bars at the bottom of a photo while the agent speaks */
.voice-bars {
  position: absolute;
  left: 50%;
  bottom: 9%;
  display: flex;
  align-items: center;
  gap: 3px;
  height: 22px;
  padding: 0 9px;
  border-radius: 999px;
  background: rgba(6, 20, 42, .7);
  transform: translateX(-50%);
  opacity: 0;
  transition: opacity .25s;
}
.voice-bars i {
  width: 3px;
  height: 5px;
  border-radius: 2px;
  background: var(--accent, #2DD4BF);
}
.has-photo.talking .voice-bars { opacity: 1; }
.has-photo.talking .voice-bars i { animation: talk .45s ease-in-out infinite alternate; }
.has-photo.talking .voice-bars i:nth-child(2) { animation-duration: .32s; }
.has-photo.talking .voice-bars i:nth-child(3) { animation-duration: .55s; }
.has-photo.talking .voice-bars i:nth-child(4) { animation-duration: .38s; }
.has-photo.talking .voice-bars i:nth-child(5) { animation-duration: .5s; }
.char-frame.mini .voice-bars { display: none; }
/* While talking, the photo glows in the agent's color */
.has-photo.talking { animation: speak-glow 1s ease-in-out infinite alternate; }
@keyframes speak-glow {
  to { box-shadow: 0 0 0 3px var(--accent, #2DD4BF), 0 0 40px color-mix(in srgb, var(--accent, #2DD4BF) 75%, transparent); }
}

/* ----- Bigger loading logo ----- */
.loader-logo-wrap {
  position: relative;
  display: grid;
  place-items: center;
  width: 260px;
  height: 260px;
}
.loader-logo-wrap .loader-logo {
  width: 170px;
  height: 191px;
  filter: drop-shadow(0 0 28px rgba(45, 212, 191, .45));
  animation: logo-pop 2.4s ease-in-out .9s infinite;
}
@keyframes logo-pop {
  50% { transform: scale(1.04); }
}
/* Rings that spread out from the logo, like sound */
.loader-rings i {
  position: absolute;
  inset: 30px;
  border-radius: 50%;
  border: 2px solid rgba(45, 212, 191, .5);
  opacity: 0;
  animation: ring-out 2.4s 1s infinite;
}
.loader-rings i:nth-child(2) { animation-delay: 1.8s; }
.loader-rings i:nth-child(3) { animation-delay: 2.6s; }
.loader-name { font-size: clamp(28px, 5vw, 40px); }
.loader-bar { width: 260px; height: 4px; }
.loader-bar span { animation-duration: 2.4s; }
.loader-tag { font-size: 13px; }

/* =========================================
   11g. Service animations
   ========================================= */
.services-grid { grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); }
.card.svc { padding-top: 0; display: flex; flex-direction: column; }
.card.svc p { flex: 1; }
.svc-art {
  position: relative;
  display: grid;
  place-items: center;
  height: 140px;
  margin: 0 -26px 22px;
  overflow: hidden;
  background:
    radial-gradient(circle at 50% 60%, color-mix(in srgb, var(--accent) 30%, transparent), transparent 70%),
    #0A1B33;
  border-bottom: 1px solid color-mix(in srgb, var(--accent) 30%, var(--line));
  color: #fff;
}
.svc-new {
  align-self: flex-start;
  margin: -8px 0 8px;
  padding: 2px 10px;
  border-radius: 999px;
  background: var(--accent);
  color: #fff;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: .06em;
  text-transform: uppercase;
}
.svc-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  list-style: none;
  margin: 16px 0 0;
  padding: 0;
}
.svc-tags li {
  padding: 3px 10px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 700;
  background: color-mix(in srgb, var(--accent) 12%, transparent);
  color: var(--text);
}

/* Voice: phone with rings and sound bars */
.art-voice { position: relative; display: flex; align-items: center; gap: 16px; }
.av-phone {
  position: relative;
  display: grid;
  place-items: center;
  width: 54px;
  height: 54px;
  border-radius: 50%;
  background: var(--accent);
  color: #06142A;
  animation: shake 2.4s ease-in-out infinite;
}
.av-phone .i { width: 24px; height: 24px; }
@keyframes shake {
  0%, 60%, 100% { transform: rotate(0); }
  65%, 75%, 85% { transform: rotate(-12deg); }
  70%, 80%      { transform: rotate(12deg); }
}
.av-ring {
  position: absolute;
  left: 0;
  width: 54px;
  height: 54px;
  border-radius: 50%;
  border: 2px solid var(--accent);
  animation: ring-out 2.4s infinite;
}
.av-ring.two { animation-delay: 1.2s; }
.av-bars { display: flex; align-items: center; gap: 4px; height: 50px; }
.av-bars i {
  width: 5px;
  height: 8px;
  border-radius: 3px;
  background: var(--accent);
  animation: talk .5s ease-in-out infinite alternate;
}
.av-bars i:nth-child(2n) { animation-duration: .38s; background: #fff; }
.av-bars i:nth-child(3n) { animation-duration: .62s; }

/* Workflow: nodes with a dot moving along the lines */
.art-flow { display: flex; align-items: center; }
.af-node {
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  border-radius: 12px;
  background: #12294A;
  border: 1.5px solid var(--accent);
  color: #fff;
  animation: node-glow 3s infinite;
}
.af-node:nth-child(3) { animation-delay: 1s; }
.af-node:nth-child(5) { animation-delay: 2s; }
.af-node .i { width: 20px; height: 20px; }
@keyframes node-glow {
  0%, 30%, 100% { box-shadow: none; }
  10%           { box-shadow: 0 0 18px var(--accent); }
}
.af-line {
  position: relative;
  width: 44px;
  height: 2px;
  background: #2A4A75;
}
.af-line b {
  position: absolute;
  top: -3px;
  left: 0;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #fff;
  box-shadow: 0 0 10px var(--accent);
  animation: travel 3s linear infinite;
}
.af-line:nth-child(4) b { animation-delay: 1s; }
@keyframes travel {
  0%       { left: 0; opacity: 0; }
  5%       { opacity: 1; }
  33%      { left: calc(100% - 8px); opacity: 1; }
  38%, 100% { left: calc(100% - 8px); opacity: 0; }
}

/* Full-stack app: a small window that builds itself */
.art-app {
  width: 190px;
  border-radius: 10px;
  overflow: hidden;
  background: #F8FAFC;
  box-shadow: 0 14px 30px rgba(0, 0, 0, .35);
  animation: float-y 5s ease-in-out infinite;
}
.aa-bar {
  display: flex;
  align-items: center;
  gap: 4px;
  padding: 6px 8px;
  background: #E2E8F0;
}
.aa-bar i { width: 6px; height: 6px; border-radius: 50%; background: #F87171; }
.aa-bar i:nth-child(2) { background: #FBBF24; }
.aa-bar i:nth-child(3) { background: #34D399; }
.aa-bar span { flex: 1; height: 6px; margin-left: 6px; border-radius: 3px; background: #fff; }
.aa-body { display: flex; height: 84px; }
.aa-side {
  display: flex;
  flex-direction: column;
  gap: 6px;
  width: 38px;
  padding: 8px 6px;
  background: #0B2545;
}
.aa-side i { height: 5px; border-radius: 3px; background: rgba(255, 255, 255, .35); }
.aa-side i:first-child { background: var(--accent); }
.aa-main { flex: 1; display: flex; flex-direction: column; gap: 8px; padding: 8px; }
.aa-chart { display: flex; align-items: flex-end; gap: 5px; height: 40px; }
.aa-chart i {
  flex: 1;
  border-radius: 2px 2px 0 0;
  background: var(--accent);
  transform-origin: bottom;
  animation: grow-bar 3.2s ease-in-out infinite;
}
.aa-chart i:nth-child(1) { height: 40%; }
.aa-chart i:nth-child(2) { height: 65%; animation-delay: .1s; }
.aa-chart i:nth-child(3) { height: 50%; animation-delay: .2s; }
.aa-chart i:nth-child(4) { height: 85%; animation-delay: .3s; }
.aa-chart i:nth-child(5) { height: 70%; animation-delay: .4s; }
.aa-chart i:nth-child(6) { height: 100%; animation-delay: .5s; }
@keyframes grow-bar {
  0%        { transform: scaleY(0); }
  30%, 80%  { transform: scaleY(1); }
  100%      { transform: scaleY(0); }
}
.aa-code { display: flex; flex-direction: column; gap: 4px; }
.aa-code i {
  height: 4px;
  border-radius: 2px;
  background: #94A3B8;
  animation: type-line 3.2s steps(12) infinite;
}
.aa-code i:nth-child(1) { --w: 90%; }
.aa-code i:nth-child(2) { --w: 60%; animation-delay: .5s; background: var(--accent); }
.aa-code i:nth-child(3) { --w: 75%; animation-delay: 1s; }
@keyframes type-line {
  0%       { width: 0; }
  40%, 85% { width: var(--w); }
  100%     { width: 0; }
}

/* Custom: settings sliders moving */
.art-custom { display: flex; flex-direction: column; gap: 18px; width: 170px; }
.art-custom span {
  position: relative;
  height: 4px;
  border-radius: 2px;
  background: #2A4A75;
}
.art-custom b {
  position: absolute;
  top: -6px;
  width: 16px;
  height: 16px;
  border-radius: 50%;
  background: #fff;
  border: 3px solid var(--accent);
  animation: slide-knob 4s ease-in-out infinite alternate;
}
.art-custom span:nth-child(2) b { animation-delay: -1.5s; animation-duration: 3.2s; }
.art-custom span:nth-child(3) b { animation-delay: -2.6s; animation-duration: 4.6s; }
@keyframes slide-knob {
  from { left: 0; }
  to   { left: calc(100% - 16px); }
}

/* ----- "Watch our intro" button in the hero ----- */
.intro-btn {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  margin-top: 22px;
  padding: 6px 18px 6px 6px;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, .16);
  background: rgba(255, 255, 255, .05);
  color: #fff;
  font: inherit;
  text-align: left;
  cursor: pointer;
  transition: border-color .2s, background .2s;
}
.intro-btn:hover { border-color: var(--glow); background: rgba(45, 212, 191, .08); }
.intro-btn b { display: block; font-size: 14px; }
.intro-btn small { display: block; font-size: 12px; color: var(--heromuted); }
.intro-btn .play {
  position: relative;
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  border-radius: 50%;
  background: var(--glow);
  animation: call-pulse 2.2s infinite;
}
.intro-btn .play svg { width: 18px; height: 18px; fill: #06142A; margin-left: 2px; }

/* =========================================
   11h. Intro tour
   ========================================= */
.tour {
  position: fixed;
  inset: 0;
  z-index: 70;
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: calc(18px + env(safe-area-inset-top, 0px)) 16px calc(22px + env(safe-area-inset-bottom, 0px));
  color: #fff;
  background:
    radial-gradient(900px 600px at 50% 40%, rgba(45, 212, 191, .14), transparent 70%),
    radial-gradient(700px 500px at 100% 100%, rgba(139, 92, 246, .14), transparent 70%),
    #061428;
  animation: fade-in .4s;
}
.tour-top { display: flex; align-items: center; gap: 14px; width: min(900px, 100%); }
.tour-progress { display: flex; gap: 6px; flex: 1; }
.tour-progress .seg {
  flex: 1;
  height: 4px;
  border-radius: 2px;
  background: rgba(255, 255, 255, .15);
  overflow: hidden;
}
.tour-progress .seg span {
  display: block;
  height: 100%;
  width: 100%;
  background: var(--glow);
  transform-origin: left;
  transform: scaleX(0);
}
.tour-progress .seg.done span { transform: scaleX(1); }
.tour-x {
  width: 40px;
  height: 40px;
  border: 0;
  border-radius: 12px;
  background: rgba(255, 255, 255, .08);
  color: #fff;
  font-size: 24px;
  cursor: pointer;
}
.tour-x:hover { background: rgba(255, 255, 255, .18); }

.tour-stage {
  position: relative;
  flex: 1;
  width: min(900px, 100%);
  min-height: 0;
}
.scene {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 24px;
  text-align: center;
  opacity: 0;
  visibility: hidden;
  transform: translateY(24px) scale(.98);
  transition: opacity .6s, transform .6s, visibility .6s;
}
.scene.active { opacity: 1; visibility: visible; transform: none; }
.sc-title {
  margin: 0;
  font-size: clamp(26px, 4.4vw, 46px);
  line-height: 1.15;
  letter-spacing: -1px;
}
.sc-title b { color: var(--glow); }
.sc-sub { margin: -10px 0 0; color: #A9BAD0; letter-spacing: .16em; text-transform: uppercase; font-size: 14px; }
.sc-note { margin: -12px 0 -8px; font-size: 12px; color: #7F94B2; }
.scene .sc-title { opacity: 0; }
.scene.active .sc-title { animation: rise .8s .35s forwards; }

/* Scene 1: logo */
.sc-logo { width: 150px; height: 169px; overflow: visible; filter: drop-shadow(0 0 30px rgba(45, 212, 191, .4)); }
.sl-shield { fill: #fff; fill-opacity: 0; stroke: var(--glow); stroke-width: 2.5; stroke-dasharray: 220; stroke-dashoffset: 220; }
.sl-bar { fill: #0B2545; opacity: 0; transform-box: fill-box; transform-origin: center; }
.sl-bar.mid { fill: #0B7F78; }
.scene.active .sl-shield { animation: draw-shield 1.2s ease forwards, fill-shield .5s 1s forwards; }
.scene.active .sl-bar { animation: bar-in .3s 1.2s forwards, voice 1s 1.4s ease-in-out infinite; }

/* Scene 2: missed calls */
.sc-problem { display: flex; align-items: center; gap: 40px; flex-wrap: wrap; justify-content: center; }
.sc-phone {
  position: relative;
  display: grid;
  place-items: center;
  width: 110px;
  height: 110px;
  border-radius: 50%;
  background: #EF4444;
}
.sc-phone .i { width: 46px; height: 46px; color: #fff; }
.scene.active .sc-phone { animation: shake 1.4s ease-in-out infinite; }
.sc-phone .ring {
  position: absolute;
  inset: 0;
  border-radius: 50%;
  border: 3px solid #EF4444;
}
.scene.active .sc-phone .ring { animation: ring-out 1.6s infinite; }
.scene.active .sc-phone .ring.two { animation-delay: .8s; }
.sc-missed { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 10px; text-align: left; }
.sc-missed li {
  display: flex;
  align-items: center;
  gap: 10px;
  min-width: 250px;
  padding: 12px 16px;
  border-radius: 12px;
  background: rgba(239, 68, 68, .1);
  border: 1px solid rgba(239, 68, 68, .35);
  font-weight: 700;
  opacity: 0;
}
.sc-missed li small { margin-left: auto; color: #FCA5A5; font-weight: 600; }
.sc-missed li i { width: 8px; height: 8px; border-radius: 50%; background: #EF4444; }
.sc-missed li.busy { background: rgba(251, 191, 36, .1); border-color: rgba(251, 191, 36, .4); }
.sc-missed li.busy i { background: #FBBF24; }
.scene.active .sc-missed li { animation: rise .5s forwards; }
.scene.active .sc-missed li:nth-child(1) { animation-delay: .6s; }
.scene.active .sc-missed li:nth-child(2) { animation-delay: 1.4s; }
.scene.active .sc-missed li:nth-child(3) { animation-delay: 2.2s; }
.scene.active .sc-missed li:nth-child(4) { animation-delay: 3s; }

/* Scene 3: voice agent */
.sc-voice { position: relative; display: flex; flex-direction: column; align-items: center; gap: 14px; }
.sc-voice .char-frame { width: 190px; height: 190px; }
.sc-voice.small .char-frame { width: 150px; height: 150px; }
.sc-wave { display: flex; align-items: center; gap: 5px; height: 40px; }
.sc-wave i { width: 5px; height: 6px; border-radius: 3px; background: var(--glow); }
.scene.active .sc-wave i { animation: talk .45s ease-in-out infinite alternate; }
.sc-wave i:nth-child(2n) { animation-duration: .33s !important; background: #fff; }
.sc-wave i:nth-child(3n) { animation-duration: .58s !important; }
.sc-bubble {
  max-width: 340px;
  padding: 12px 16px;
  border-radius: 16px 16px 16px 4px;
  background: #fff;
  color: #0B2545;
  font-weight: 700;
  opacity: 0;
}
.scene.active .sc-bubble { animation: bubble-in .6s 1.2s cubic-bezier(.3, 1.6, .5, 1) both; }

/* Scene 4: workflow */
.sc-flow { display: flex; align-items: center; flex-wrap: wrap; justify-content: center; row-gap: 20px; }
.sf-node {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  opacity: 0;
}
.sf-node .i {
  width: 64px;
  height: 64px;
  padding: 18px;
  border-radius: 18px;
  background: #12294A;
  border: 2px solid var(--glow);
  color: #fff;
}
.sf-node small { font-size: 13px; color: #A9BAD0; font-weight: 700; }
.sf-line { position: relative; width: 50px; height: 2px; margin-bottom: 26px; background: #2A4A75; opacity: 0; }
.sf-line b {
  position: absolute;
  top: -4px;
  left: 0;
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: #fff;
  box-shadow: 0 0 12px var(--glow);
}
.scene.active .sf-node,
.scene.active .sf-line { animation: rise .45s forwards; }
.scene.active .sf-line b { animation: travel 2.2s linear infinite; }
.scene.active .sc-flow > :nth-child(1) { animation-delay: .3s; }
.scene.active .sc-flow > :nth-child(2) { animation-delay: .6s; }
.scene.active .sc-flow > :nth-child(3) { animation-delay: .9s; }
.scene.active .sc-flow > :nth-child(4) { animation-delay: 1.2s; }
.scene.active .sc-flow > :nth-child(5) { animation-delay: 1.5s; }
.scene.active .sc-flow > :nth-child(6) { animation-delay: 1.8s; }
.scene.active .sc-flow > :nth-child(7) { animation-delay: 2.1s; }
.scene.active .sc-flow > :nth-child(8) { animation-delay: 2.4s; }
.scene.active .sc-flow > :nth-child(9) { animation-delay: 2.7s; }

/* Scene 5: app dashboard */
.sc-app {
  width: min(560px, 100%);
  border-radius: 14px;
  overflow: hidden;
  background: #F8FAFC;
  color: #0B2545;
  text-align: left;
  box-shadow: 0 30px 70px rgba(0, 0, 0, .5);
  opacity: 0;
}
.scene.active .sc-app { animation: modal-in .7s .2s forwards; }
.sa-bar { display: flex; align-items: center; gap: 6px; padding: 10px 12px; background: #E2E8F0; font-size: 12px; color: #64748B; }
.sa-bar i { width: 10px; height: 10px; border-radius: 50%; background: #F87171; }
.sa-bar i:nth-child(2) { background: #FBBF24; }
.sa-bar i:nth-child(3) { background: #34D399; }
.sa-bar span { margin-left: 10px; padding: 2px 12px; border-radius: 6px; background: #fff; }
.sa-body { display: flex; min-height: 220px; }
.sa-side { display: flex; flex-direction: column; gap: 10px; width: 90px; padding: 14px 12px; background: #0B2545; }
.sa-side b { height: 14px; border-radius: 4px; background: var(--glow); }
.sa-side i { height: 8px; border-radius: 4px; background: rgba(255, 255, 255, .25); }
.sa-main { flex: 1; display: flex; flex-direction: column; gap: 12px; padding: 14px; }
.sa-stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
.sa-stats div { padding: 8px 10px; border-radius: 10px; background: #fff; border: 1px solid #E2E8F0; opacity: 0; }
.sa-stats small { display: block; font-size: 10px; color: #64748B; }
.sa-stats b { font-size: 20px; }
.scene.active .sa-stats div { animation: rise .5s forwards; }
.scene.active .sa-stats div:nth-child(1) { animation-delay: .8s; }
.scene.active .sa-stats div:nth-child(2) { animation-delay: 1s; }
.scene.active .sa-stats div:nth-child(3) { animation-delay: 1.2s; }
.sa-chart { display: flex; align-items: flex-end; gap: 8px; height: 80px; padding: 0 4px; }
.sa-chart i { flex: 1; border-radius: 4px 4px 0 0; background: linear-gradient(180deg, var(--glow), var(--blue)); transform: scaleY(0); transform-origin: bottom; }
.sa-chart i:nth-child(1) { height: 35%; } .sa-chart i:nth-child(2) { height: 55%; }
.sa-chart i:nth-child(3) { height: 45%; } .sa-chart i:nth-child(4) { height: 70%; }
.sa-chart i:nth-child(5) { height: 60%; } .sa-chart i:nth-child(6) { height: 85%; }
.sa-chart i:nth-child(7) { height: 75%; } .sa-chart i:nth-child(8) { height: 100%; }
.scene.active .sa-chart i { animation: bar-up .6s forwards; }
.scene.active .sa-chart i:nth-child(1) { animation-delay: 1.4s; }
.scene.active .sa-chart i:nth-child(2) { animation-delay: 1.5s; }
.scene.active .sa-chart i:nth-child(3) { animation-delay: 1.6s; }
.scene.active .sa-chart i:nth-child(4) { animation-delay: 1.7s; }
.scene.active .sa-chart i:nth-child(5) { animation-delay: 1.8s; }
.scene.active .sa-chart i:nth-child(6) { animation-delay: 1.9s; }
.scene.active .sa-chart i:nth-child(7) { animation-delay: 2s; }
.scene.active .sa-chart i:nth-child(8) { animation-delay: 2.1s; }
@keyframes bar-up { to { transform: scaleY(1); } }
.sa-chat {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 10px 12px;
  border-radius: 10px;
  background: #fff;
  border: 1px solid #E2E8F0;
  font-size: 13px;
  color: #64748B;
  opacity: 0;
}
.sa-chat .i { width: 16px; height: 16px; color: var(--accent, #0B7F78); }
.scene.active .sa-chat { animation: rise .5s 2.4s forwards; }

/* Scene 6: team of agents */
.sc-team { display: grid; grid-template-columns: repeat(5, 92px); gap: 14px; }
.sc-team .char-frame { width: 92px; height: 92px; opacity: 0; }
.scene.active .sc-team .char-frame { animation: bubble-in .5s cubic-bezier(.3, 1.6, .5, 1) forwards; }

/* Scene 7: call to action */
.sc-cta { display: flex; flex-wrap: wrap; gap: 12px; justify-content: center; opacity: 0; }
.scene.active .sc-cta { animation: rise .6s 1s forwards; }
.sc-cta .btn { border: 0; cursor: pointer; font: inherit; font-weight: 800; }

/* Caption (the words being spoken) and controls */
.tour-caption {
  width: min(760px, 100%);
  min-height: 3.2em;
  margin: 10px 0 14px;
  text-align: center;
  font-size: clamp(15px, 2vw, 18px);
  line-height: 1.6;
  color: #E2E8F0;
}
.tour-caption .spoken { color: #fff; }
.tour-caption .unspoken { color: #64748B; }
.tour-controls { display: flex; align-items: center; gap: 10px; }
.tc-btn {
  display: grid;
  place-items: center;
  width: 46px;
  height: 46px;
  border: 1px solid rgba(255, 255, 255, .16);
  border-radius: 50%;
  background: rgba(255, 255, 255, .06);
  color: #fff;
  cursor: pointer;
}
.tc-btn:hover { border-color: var(--glow); }
.tc-btn svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 2.4; stroke-linecap: round; stroke-linejoin: round; }
.tc-btn.main { width: 58px; height: 58px; background: var(--glow); color: #06142A; border: 0; }
.tc-btn.main svg { fill: currentColor; stroke: none; }
.tc-btn.main .ic-pause { fill: none; stroke: currentColor; stroke-width: 3; }
.tc-btn.main .ic-play { display: none; }
.tour.paused .tc-btn.main .ic-play { display: block; }
.tour.paused .tc-btn.main .ic-pause { display: none; }
.tour.paused .scene.active * { animation-play-state: paused !important; }
.tc-btn[aria-pressed="false"] { opacity: .5; }

@media (max-width: 640px) {
  .sc-team { grid-template-columns: repeat(5, 56px); gap: 8px; }
  .sc-team .char-frame { width: 56px; height: 56px; }
  .sc-problem { gap: 20px; }
  .sc-phone { width: 80px; height: 80px; }
  .sf-line { width: 22px; }
  .sf-node .i { width: 50px; height: 50px; padding: 13px; }
  .sa-side { display: none; }
}

/* =========================================
   11i. Intro tour: richer graphics
   ========================================= */
.tour { overflow: hidden; background: #040D1C; }
.tour > *:not(.tour-bg) { position: relative; z-index: 1; }

/* Moving background */
.tour-bg { position: absolute; inset: 0; z-index: 0; overflow: hidden; pointer-events: none; }
.aur {
  position: absolute;
  width: 60vmax;
  height: 60vmax;
  border-radius: 50%;
  filter: blur(90px);
  opacity: .35;
  animation: aurora 18s ease-in-out infinite alternate;
}
.a1 { background: #0E7C74; top: -25vmax; left: -15vmax; }
.a2 { background: #3B2A8C; bottom: -30vmax; right: -20vmax; animation-delay: -6s; }
.a3 { background: #1D4ED8; top: 20%; left: 35%; width: 40vmax; height: 40vmax; opacity: .18; animation-delay: -12s; }
@keyframes aurora {
  to { transform: translate(8vmax, 6vmax) scale(1.15); }
}
.tour-stars {
  position: absolute;
  inset: -50%;
  background-image:
    radial-gradient(1px 1px at 20px 30px, rgba(255, 255, 255, .7), transparent),
    radial-gradient(1px 1px at 120px 80px, rgba(255, 255, 255, .5), transparent),
    radial-gradient(1.5px 1.5px at 200px 160px, rgba(45, 212, 191, .8), transparent),
    radial-gradient(1px 1px at 60px 190px, rgba(255, 255, 255, .4), transparent);
  background-size: 240px 220px;
  animation: stars-drift 80s linear infinite;
  opacity: .6;
}
@keyframes stars-drift { to { transform: translate(240px, 220px); } }
.tour-floor {
  position: absolute;
  left: -50%;
  right: -50%;
  bottom: -10%;
  height: 45%;
  background-image:
    linear-gradient(rgba(45, 212, 191, .22) 1px, transparent 1px),
    linear-gradient(90deg, rgba(45, 212, 191, .22) 1px, transparent 1px);
  background-size: 60px 60px;
  transform: perspective(500px) rotateX(70deg);
  transform-origin: top;
  mask-image: linear-gradient(transparent, #000 60%);
  -webkit-mask-image: linear-gradient(transparent, #000 60%);
  animation: floor-move 4s linear infinite;
}
@keyframes floor-move { to { background-position: 0 60px, 0 0; } }

/* Top bar: brand, scene name, progress and Skip */
.tour-top { width: min(1000px, 100%); gap: 18px; }
.tour-brand { display: flex; align-items: center; gap: 10px; flex: none; }
.tour-brand svg { width: 26px; height: 29px; }
.scene-label {
  font-size: 12px;
  font-weight: 800;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: #A9BAD0;
  white-space: nowrap;
}
.tour-skip {
  flex: none;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 18px;
  border: 1px solid rgba(255, 255, 255, .22);
  border-radius: 999px;
  background: rgba(255, 255, 255, .08);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  color: #fff;
  font: inherit;
  font-size: 14px;
  font-weight: 800;
  cursor: pointer;
  transition: background .2s, border-color .2s;
}
.tour-skip:hover { background: rgba(255, 255, 255, .16); border-color: #fff; }
.tour-skip svg { width: 16px; height: 16px; fill: none; stroke: currentColor; stroke-width: 2.4; stroke-linecap: round; stroke-linejoin: round; }

/* Scenes: smoother change, with a soft blur */
.scene { transform: scale(1.04); filter: blur(8px); transition: opacity .7s, transform .9s cubic-bezier(.2, .7, .2, 1), filter .7s, visibility .7s; }
.scene.active { transform: none; filter: none; }

/* Titles appear word by word (script.js wraps each word) */
.scene .sc-title { opacity: 1; animation: none !important; }
.sc-title .w { display: inline-block; opacity: 0; transform: translateY(18px); filter: blur(6px); }
.scene.active .sc-title .w { animation: word-in .6s cubic-bezier(.2, .7, .2, 1) forwards; animation-delay: calc(.35s + var(--i) * .07s); }
@keyframes word-in { to { opacity: 1; transform: none; filter: none; } }
.sc-title { text-shadow: 0 4px 30px rgba(0, 0, 0, .5); }

/* Scene 1: halo behind the logo */
.sc-logo-wrap { position: relative; display: grid; place-items: center; }
.sc-halo {
  position: absolute;
  width: 280px;
  height: 280px;
  border-radius: 50%;
  background: conic-gradient(from 0deg, transparent, rgba(45, 212, 191, .5), transparent 35%, rgba(139, 92, 246, .4), transparent 70%);
  filter: blur(18px);
  animation: spin 6s linear infinite;
}
.sc-logo { position: relative; width: 170px; height: 191px; }

/* Scene 2: phone with notifications */
.phone-mock {
  position: relative;
  width: 280px;
  height: 340px;
  padding: 18px 14px;
  border-radius: 38px;
  background: linear-gradient(160deg, #1B2B45, #0B1628);
  border: 3px solid #2A3B57;
  box-shadow: 0 40px 80px rgba(0, 0, 0, .6), inset 0 0 0 6px #0B1220;
  overflow: hidden;
}
.pm-notch { width: 90px; height: 22px; margin: -8px auto 8px; border-radius: 0 0 14px 14px; background: #050A14; }
.pm-clock { text-align: center; margin-bottom: 14px; }
.pm-clock b { display: block; font-size: 46px; font-weight: 300; letter-spacing: -1px; line-height: 1; }
.pm-clock small { color: #A9BAD0; }
.pm-notes { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 8px; text-align: left; }
.pm-notes li {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 9px 10px;
  border-radius: 14px;
  background: rgba(255, 255, 255, .1);
  backdrop-filter: blur(10px);
  font-size: 13px;
  opacity: 0;
  transform: translateY(-20px) scale(.95);
}
.pm-notes b { display: block; font-size: 13px; }
.pm-notes small { color: #A9BAD0; font-size: 11px; }
.pm-ic { display: grid; place-items: center; width: 30px; height: 30px; flex: none; border-radius: 8px; background: #EF4444; }
.pm-ic.amber { background: #F59E0B; }
.pm-ic .i { width: 15px; height: 15px; color: #fff; }
.scene.active .pm-notes li { animation: note-in .5s cubic-bezier(.3, 1.4, .5, 1) forwards; }
.scene.active .pm-notes li:nth-child(1) { animation-delay: .7s; }
.scene.active .pm-notes li:nth-child(2) { animation-delay: 1.6s; }
.scene.active .pm-notes li:nth-child(3) { animation-delay: 2.5s; }
.scene.active .pm-notes li:nth-child(4) { animation-delay: 3.4s; }
@keyframes note-in { to { opacity: 1; transform: none; } }
.scene.active .phone-mock { animation: phone-buzz 3s .7s ease-in-out infinite; }
@keyframes phone-buzz {
  0%, 8%, 100% { transform: rotate(0); }
  2%, 6%       { transform: rotate(-1.5deg); }
  4%           { transform: rotate(1.5deg); }
}

/* Scene 3 and 7: video call with Cassina */
.vcall {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  width: min(520px, 100%);
  padding: 16px 16px 18px;
  border-radius: 28px;
  background: linear-gradient(180deg, rgba(20, 44, 78, .85), rgba(8, 22, 44, .9));
  border: 1px solid rgba(45, 212, 191, .3);
  box-shadow: 0 40px 90px rgba(0, 0, 0, .55), 0 0 60px rgba(45, 212, 191, .12);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  opacity: 0;
}
.scene.active .vcall { animation: modal-in .8s .15s cubic-bezier(.3, 1.3, .5, 1) forwards; }
.vc-top { display: flex; align-items: center; gap: 10px; width: 100%; font-size: 12px; font-weight: 800; }
.vc-live { display: inline-flex; align-items: center; gap: 6px; padding: 4px 10px; border-radius: 999px; background: rgba(239, 68, 68, .2); color: #FCA5A5; }
.vc-live i { width: 7px; height: 7px; border-radius: 50%; background: #EF4444; animation: blink 1s infinite; }
.vc-title { color: #A9BAD0; }
.vc-time { margin-left: auto; font-family: var(--mono); color: var(--glow); }
.vc-main { position: relative; display: grid; place-items: center; margin: 6px 0; }
.vc-face { width: 170px; height: 170px; }
.vc-rings i {
  position: absolute;
  left: 50%;
  top: 50%;
  width: 170px;
  height: 170px;
  margin: -85px 0 0 -85px;
  border-radius: 50%;
  border: 2px solid var(--glow);
  opacity: 0;
}
.tour .talking ~ .vc-rings i,
.tour .vc-main.speaking .vc-rings i,
.tour .sc-final.speaking .vc-rings i { animation: ring-out 2s infinite; }
.vc-rings i:nth-child(2) { animation-delay: .65s !important; }
.vc-rings i:nth-child(3) { animation-delay: 1.3s !important; }
.vc-name { text-align: center; line-height: 1.3; }
.vc-name b { display: block; font-size: 20px; }
.vc-name small { color: var(--glow); font-weight: 700; }
.vc-wave { display: flex; align-items: center; gap: 4px; height: 34px; }
.vc-wave i { width: 4px; height: 5px; border-radius: 2px; background: var(--glow); opacity: .5; }
.speaking .vc-wave i,
.vcall.speaking .vc-wave i { opacity: 1; animation: talk .42s ease-in-out infinite alternate; }
.vc-wave i:nth-child(2n) { animation-duration: .3s !important; }
.vc-wave i:nth-child(3n) { animation-duration: .55s !important; background: #fff; }
.vc-pip {
  position: absolute;
  right: 16px;
  top: 48px;
  display: grid;
  place-items: center;
  gap: 2px;
  width: 78px;
  height: 92px;
  border-radius: 14px;
  background: #0B1628;
  border: 1px solid rgba(255, 255, 255, .15);
  color: #A9BAD0;
}
.vc-pip .i { width: 30px; height: 30px; }
.vc-pip small { font-size: 10px; }
.vc-bubble {
  max-width: 380px;
  padding: 10px 14px;
  border-radius: 14px;
  background: #fff;
  color: #0B2545;
  font-weight: 700;
  font-size: 14px;
  opacity: 0;
}
.scene.active .vc-bubble { animation: bubble-in .6s 1.6s cubic-bezier(.3, 1.6, .5, 1) both; }
.vc-ctrls { display: flex; gap: 12px; margin-top: 4px; }
.vc-ctrls span { display: grid; place-items: center; width: 40px; height: 40px; border-radius: 50%; background: rgba(255, 255, 255, .1); }
.vc-ctrls span.end { background: #EF4444; transform: rotate(135deg); }
.vc-ctrls .i { width: 18px; height: 18px; }

.sc-final { position: relative; display: grid; place-items: center; }
.sc-final .vc-face { width: 190px; height: 190px; }

/* Scene 4: done message */
.sf-done {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 16px;
  border-radius: 999px;
  background: rgba(34, 197, 94, .14);
  border: 1px solid rgba(34, 197, 94, .4);
  color: #86EFAC;
  font-weight: 700;
  font-size: 14px;
  opacity: 0;
}
.sf-done .i { width: 16px; height: 16px; }
.scene.active .sf-done { animation: rise .5s 3.1s forwards; }
.sf-node .i { box-shadow: 0 0 24px rgba(45, 212, 191, .25); backdrop-filter: blur(6px); }

/* Scene 5: the AI question types itself */
.sa-typing { display: inline-block; overflow: hidden; white-space: nowrap; width: 0; vertical-align: bottom; border-right: 2px solid var(--glow); }
.scene.active .sa-typing { animation: typing 1.6s 2.8s steps(34) forwards; }
@keyframes typing { to { width: 34ch; } }

/* Scene 6: names under faces */
.sc-team .member { display: flex; flex-direction: column; align-items: center; gap: 6px; opacity: 0; }
.sc-team .member .char-frame { opacity: 1; animation: none !important; }
.sc-team .member small { font-size: 12px; font-weight: 700; color: #C9D8EA; }
.scene.active .sc-team .member { animation: bubble-in .5s cubic-bezier(.3, 1.6, .5, 1) forwards; }

/* "Tap to turn on the voice" */
.tour-unmute {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin-top: 6px;
  padding: 12px 22px;
  border: 0;
  border-radius: 999px;
  background: var(--glow);
  color: #06142A;
  font: inherit;
  font-weight: 800;
  cursor: pointer;
  animation: call-pulse 2s infinite;
}
.tour-unmute .i { width: 20px; height: 20px; }

/* Fix: these animations must END fully visible (opacity 1) */
@keyframes pop-in {
  from { opacity: 0; transform: translateY(30px) scale(.94); }
  to   { opacity: 1; transform: none; }
}
.scene.active .vcall { animation: pop-in .8s .15s cubic-bezier(.3, 1.3, .5, 1) forwards; }
.scene.active .sc-app { animation: pop-in .7s .2s forwards; }

/* Fix: a scene that is too tall is scaled down to fit (script.js sets --fit) */
.scene.active { transform: scale(var(--fit, 1)); }
.tour-caption { position: relative; z-index: 2; }

/* Fix: never squeeze a scene's pictures; shrink them on short screens instead */
.scene > * { flex-shrink: 0; }
.scene { gap: 18px; }
/* (".tour > .tour-unmute" beats the ".tour > *" rule that sets position: relative) */
.tour > .tour-unmute {
  position: absolute;
  left: 50%;
  bottom: calc(150px + env(safe-area-inset-bottom, 0px));
  z-index: 3;
  margin: 0;
  transform: translateX(-50%);
}
@media (max-height: 820px) {
  .phone-mock { width: 250px; height: 290px; padding-top: 14px; }
  .pm-clock { margin-bottom: 8px; }
  .pm-clock b { font-size: 34px; }
  .pm-notes { gap: 6px; }
  .pm-notes li { padding: 7px 9px; }
  .vcall { gap: 6px; padding: 12px; }
  .vc-face, .sc-final .vc-face { width: 120px; height: 120px; }
  .vc-rings i { width: 120px; height: 120px; margin: -60px 0 0 -60px; }
  .vc-pip { top: 40px; width: 64px; height: 76px; }
  .vc-ctrls span { width: 34px; height: 34px; }
  .sc-logo { width: 130px; height: 146px; }
  .sc-halo { width: 220px; height: 220px; }
  .sc-title { font-size: clamp(24px, 3.6vw, 38px); }
  .sa-body { min-height: 180px; }
  .sa-chart { height: 60px; }
}

@media (max-width: 640px) {
  .scene-label { display: none; }
  .tour-skip { padding: 8px 12px; font-size: 13px; }
  .phone-mock { width: 240px; height: 300px; }
  .vc-pip { display: none; }
  .vc-face { width: 130px; height: 130px; }
  .sc-logo { width: 120px; height: 135px; }
}

/* =========================================
   11j. Workflow showcase (n8n style)
   ========================================= */
/* Workflow buttons */
.wf-tabs {
  display: flex;
  gap: 10px;
  overflow-x: auto;
  padding: 4px 2px 14px;
  margin-bottom: 14px;
  scrollbar-width: thin;
}
.wf-tab {
  flex: none;
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 8px 16px 8px 8px;
  border-radius: 14px;
  border: 1px solid var(--line);
  background: var(--card);
  color: var(--text);
  font: inherit;
  text-align: left;
  cursor: pointer;
  transition: border-color .25s, transform .25s, box-shadow .25s;
}
.wf-tab:hover { transform: translateY(-2px); border-color: var(--accent); }
.wf-tab b { display: block; font-size: 14px; }
.wf-tab small { display: block; font-size: 12px; color: var(--muted); }
.wf-tab-ic {
  display: grid;
  place-items: center;
  width: 38px;
  height: 38px;
  border-radius: 10px;
  background: var(--soft);
  color: var(--accent);
}
.wf-tab-ic .i { width: 18px; height: 18px; }
.wf-tab.active {
  border-color: var(--accent);
  background: color-mix(in srgb, var(--accent) 12%, var(--card));
  box-shadow: 0 10px 26px color-mix(in srgb, var(--accent) 22%, transparent);
}
.wf-tab.active .wf-tab-ic { background: var(--accent); color: #fff; }

/* Top bar */
.wf-industry {
  padding: 3px 10px;
  border-radius: 999px;
  background: rgba(255, 255, 255, .08);
  color: #A9BAD0;
  font-size: 12px;
  font-weight: 700;
}
.pill.building { background: rgba(59, 130, 246, .18); color: #93C5FD; animation: blink 1.2s infinite; }
.wf-actions { display: flex; gap: 8px; margin-left: auto; }
.wf-btn {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 8px 14px;
  border-radius: 10px;
  border: 1px solid rgba(255, 255, 255, .16);
  background: rgba(255, 255, 255, .05);
  color: #fff;
  font: inherit;
  font-size: 13px;
  font-weight: 800;
  cursor: pointer;
  transition: background .2s, border-color .2s;
}
.wf-btn .i { width: 16px; height: 16px; }
.wf-btn:hover { border-color: var(--glow); }
.wf-btn.primary { background: var(--glow); color: #06142A; border-color: var(--glow); }
.wf-btn.primary[aria-pressed="true"] { background: #FBBF24; border-color: #FBBF24; }

/* Flip from one workflow to the next */
.flow-app { transition: border-color .3s; }
.flow-app.flip-out .flow-canvas { animation: flip-out .38s ease-in forwards; }
.flow-app.flip-in .flow-canvas { animation: flip-in .55s ease-out; }
@keyframes flip-out { to { opacity: 0; transform: perspective(900px) rotateY(-25deg) translateX(-40px); } }
@keyframes flip-in { from { opacity: 0; transform: perspective(900px) rotateY(25deg) translateX(40px); } }
.flow-app.explaining { border-color: #FBBF24; }
.flow-canvas { min-height: 300px; display: flex; align-items: center; }
#flow-svg { min-width: 760px; }

/* Nodes pop in one by one */
.node .pop {
  transform-box: fill-box;
  transform-origin: center;
  opacity: 0;
  transform: scale(.6);
  transition: opacity .35s, transform .45s cubic-bezier(.3, 1.6, .5, 1);
}
.node.show .pop { opacity: 1; transform: scale(1); }
.node.active .pop { transform: scale(1.06); }

/* Lines draw themselves (the dash trick: a dash as long as the line slides into view) */
#flow-svg .edge { transition: stroke-dashoffset .6s ease, opacity .3s; }
#flow-svg .edge.drawn { stroke-dashoffset: 0 !important; }
#flow-svg .elabel { opacity: 0; transition: opacity .4s .3s; }
#flow-svg .elabel.show { opacity: 1; }

/* Result chip under each finished node */
.node .res { opacity: 0; transition: opacity .35s; }
.node.has-res .res { opacity: 1; }
.node .res rect { fill: rgba(34, 197, 94, .16); stroke: rgba(34, 197, 94, .5); }
.node .res text { fill: #86EFAC; font-size: 12px; font-weight: 700; }

/* Bottom area */
.flow-foot { grid-template-columns: 1.3fr 1fr; }
.log-head .runs { margin-left: auto; text-transform: none; letter-spacing: 0; }
.wf-panel {
  padding: 18px 20px;
  border-right: 1px solid #1C3A5E;
  background: rgba(251, 191, 36, .04);
}
.wf-panel.flash { animation: rise .45s ease-out; }
.wf-step {
  font-size: 12px;
  font-weight: 800;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: #FCD34D;
}
.wf-node-head { display: flex; align-items: center; gap: 12px; margin: 10px 0 8px; }
.wf-node-ic {
  display: grid;
  place-items: center;
  width: 40px;
  height: 40px;
  flex: none;
  border-radius: 10px;
  background: #1C3A5E;
  color: #fff;
}
.wf-node-ic .i { width: 20px; height: 20px; }
.wf-node-head b { display: block; font-size: 17px; }
.wf-node-head small { color: #8EA3BF; }
.wf-panel p { margin: 0 0 12px; color: #C9D8EA; font-size: 15px; }
.wf-out-head { font-size: 11px; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; color: #8EA3BF; margin-bottom: 6px; }
.wf-out {
  margin: 0;
  padding: 10px 12px;
  border-radius: 10px;
  background: #06142A;
  border: 1px solid #1C3A5E;
  color: #86EFAC;
  font-family: var(--mono);
  font-size: 12.5px;
  white-space: pre-wrap;
  min-height: 60px;
}
.wf-summary { padding: 18px 22px; display: flex; flex-direction: column; gap: 10px; }
.wf-summary p { margin: 0; color: #C9D8EA; font-size: 15px; }
.wf-tools-head { font-size: 11px; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; color: #8EA3BF; }
.wf-tools { display: flex; flex-wrap: wrap; gap: 6px; list-style: none; margin: 0; padding: 0; }
.wf-tools li { padding: 4px 10px; border-radius: 999px; background: rgba(45, 212, 191, .12); color: #CCFBF1; font-size: 12px; font-weight: 700; }
.wf-auto { display: flex; align-items: center; gap: 8px; margin-top: auto; font-size: 12px; color: #8EA3BF; }

@media (max-width: 960px) {
  .wf-actions { margin-left: 0; width: 100%; }
  .wf-panel { border-right: 0; border-bottom: 1px solid #1C3A5E; }
}

/* =========================================
   11k. "Live call" + "Demo" buttons on every agent
   ========================================= */
.tc-btns { display: flex; flex-wrap: wrap; gap: 8px; justify-content: center; }
.team-card.featured .tc-btns { justify-content: flex-start; }
.tc-demo {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 10px 16px;
  border-radius: 999px;
  border: 1.5px solid var(--accent);
  background: transparent;
  color: var(--text);
  font: inherit;
  font-size: 14px;
  font-weight: 800;
  cursor: pointer;
  transition: background .2s, transform .2s;
}
.tc-demo:hover { transform: translateY(-2px); background: color-mix(in srgb, var(--accent) 14%, transparent); }
.tc-demo .i { width: 15px; height: 15px; }
.modal-btns { display: flex; gap: 10px; flex-wrap: wrap; }
.modal-btns .btn { flex: 1; justify-content: center; }
.modal-btns .ctrl { padding: 0 18px; }

/* =========================================
   12. Fade-in when scrolling
   ========================================= */
.rv {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity .7s, transform .7s, border-color .3s, box-shadow .3s;
}
.rv.in { opacity: 1; transform: none; }
.card.rv.in:hover { transform: translateY(-8px); }

/* =========================================
   13. Smaller screens
   ========================================= */
@media (max-width: 960px) {
  .hero-grid { grid-template-columns: 1fr; }
  .console { max-width: 520px; }
  .flow-foot { grid-template-columns: 1fr; }
  .log { border-right: 0; border-bottom: 1px solid #1C3A5E; }
}

@media (max-width: 760px) {
  .menu-btn { display: block; }

  nav ul {
    display: none;
    position: absolute;
    top: 66px;
    left: 0;
    right: 0;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    background: var(--hero);
    padding: 8px 22px 18px;
    border-bottom: 1px solid rgba(255, 255, 255, .1);
  }
  nav ul.open {
    display: flex;
    animation: rise .3s;
  }
  nav ul a { display: block; padding: 12px 0; }
  nav ul a::after { display: none; }
  .nav-cta { text-align: center; margin-top: 8px; }

  .speakers { grid-template-columns: 1fr; }
  .stat b { font-size: 38px; }
  #flow-log .tag { min-width: 64px; }
}

/* =========================================
   14. Turn off motion for people who ask for it
   ========================================= */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation: none !important;
    transition: none !important;
  }
  .rv, .load { opacity: 1; transform: none; }
  .steps-line span { transform: none; }
}


/* =========================================
   14. Premium finish
   Calmer colors, fine lines, fewer effects.
   One accent color everywhere, instead of a color for every agent.
   ========================================= */
@media (prefers-color-scheme: dark) {
  :root {
    --bg: #070F1E;
    --card: #0D182B;
    --line: rgba(255, 255, 255, .09);
  }
}

section { padding: 112px 0; }
h1 { font-weight: 600; letter-spacing: -.035em; }
h2 { font-weight: 600; letter-spacing: -.028em; }
.card h3, .team-card h3 { font-weight: 600; letter-spacing: -.012em; }

.shine {
  background: none;
  color: var(--glow);
  -webkit-text-fill-color: currentColor;
  animation: none;
}
.eyebrow { font-size: 12px; font-weight: 600; letter-spacing: .16em; }

/* Hero: no blobs or floating */
.blob { display: none; }
.hero-grid-bg { opacity: .22; }
.hero-char-wrap .char-frame { animation: none; }
.hero-bubble { border-radius: 12px; animation-timing-function: ease-out; }
.badge { font-weight: 500; }

/* Buttons */
.btn, .nav-cta, .tc-talk, .tc-demo, .bubble-btn { border-radius: 10px; font-weight: 600; box-shadow: none; }
.btn::after { display: none; }
.btn:hover, .nav-cta:hover, .tc-talk:hover, .tc-demo:hover { transform: none; box-shadow: none; filter: brightness(1.08); }

/* Cards: flat with one fine line */
.card, .stats, .faq, .cta, .console {
  border-radius: 14px;
  box-shadow: none;
}
.card::after { display: none; }
.card:hover { transform: none; box-shadow: none; border-color: color-mix(in srgb, var(--glow) 45%, var(--line)); }
.card:hover .icon { transform: none; }
.cta { border: 1px solid var(--line); background: var(--card); }
.cta .ring { display: none; }

/* Speaker icon in the call box: plain, not a shiny ball */
.orb {
  width: 34px;
  height: 34px;
  background: color-mix(in srgb, var(--glow) 22%, transparent);
  box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--glow) 55%, transparent);
  animation: none;
}
.console.live-mode .orb {
  background: color-mix(in srgb, var(--glow) 22%, transparent);
}

/* Industries: a quiet line of words */
.marquee .track span {
  padding: 0 30px;
  border: 0;
  background: none;
  box-shadow: none;
  font-weight: 500;
  letter-spacing: .01em;
}

/* Agent cards: same look and same line positions on every card */
.team-card, .modal-card { --accent: var(--glow) !important; }
.team-card {
  align-items: flex-start;
  padding: 24px;
  border-radius: 16px;
  border: 1px solid var(--line);
  background: var(--card);
  text-align: left;
}
.team-card.rv, .team-card.rv.in { transform: none; }
.team-card:hover { transform: none; box-shadow: none; border-color: color-mix(in srgb, var(--glow) 45%, var(--line)); }
.tc-glow { display: none; }
.tc-stage { width: 112px; height: 112px; margin: 0 0 18px; }
.tc-info { display: flex; flex: 1; flex-direction: column; align-items: flex-start; width: 100%; }
.tc-top { justify-content: flex-start; gap: 8px; margin-bottom: 8px; }
.tc-chip {
  padding: 0;
  background: none;
  color: var(--muted);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: .08em;
  text-transform: uppercase;
}
.tc-star {
  padding: 2px 8px;
  border-radius: 6px;
  background: none;
  box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--glow) 55%, transparent);
  color: var(--glow);
  font-size: 11px;
  font-weight: 600;
}
.team-card h3 { font-size: 20px; }
.tc-role { margin: 2px 0 12px; font-size: 13px; font-weight: 500; color: var(--muted); }
/* Three lines are kept free, so the buttons line up on every card */
.tc-line { min-height: 4.5em; margin: 0 0 18px; line-height: 1.5; font-size: 14px; }
.tc-btns, .team-card.featured .tc-btns { justify-content: flex-start; margin-top: auto; width: 100%; }
.tc-talk, .tc-demo { flex: 1; justify-content: center; padding: 10px 12px; font-size: 13px; }
.tc-talk { background: var(--glow); color: #06142A; }
.tc-demo { background: none; border: 1px solid var(--line); color: var(--text); }
.tc-demo:hover { background: none; border-color: var(--glow); }
.team-card.featured { align-items: center; gap: 28px; }
.team-card.featured .tc-stage { width: 176px; height: 176px; margin: 0; }
.team-card.featured .tc-btns { width: auto; }
.team-card.featured .tc-talk, .team-card.featured .tc-demo { flex: none; padding: 10px 20px; }
.team-card.featured h3 { font-size: 26px; }
.team-card.join { border-style: solid; background: var(--card); justify-content: flex-start; }
.team-card.join .tc-talk { flex: none; margin-top: auto; width: 100%; }
.team-card.join .tc-line { flex: 0 0 auto; }
.join-plus {
  width: 112px;
  height: 112px;
  margin: 0 0 18px;
  border: 1px solid var(--line);
  font-size: 0;
  animation: none;
}
.join-plus .i { width: 30px; height: 30px; }

/* Portraits: one fine ring, no heavy glow */
.char-frame { box-shadow: 0 0 0 1px color-mix(in srgb, var(--glow) 45%, transparent); }
.has-photo.talking { animation: none; box-shadow: 0 0 0 2px var(--glow); }

/* The logo image from images/logo-mark.svg */
.logo { display: inline-flex; align-items: center; gap: 8px; }
.logo-mark { display: block; flex: none; }
.loader-logo, .sc-logo { object-fit: contain; }

@media (max-width: 760px) {
  section { padding: 76px 0; }
  .team-card.featured { align-items: flex-start; text-align: left; }
  .team-card.featured .tc-info, .team-card.featured .tc-top { align-items: flex-start; justify-content: flex-start; }
}

/* The moving mouth replaces the small sound bars */
.living .voice-bars { display: none; }

/* Same accent in the demo section; no rings around the big portraits */
.demo-panel, .char-frame { --accent: var(--glow) !important; }
.stage-rings { display: none; }
.stage .name-plate { font-weight: 600; }
.modal-stage { background: var(--card); }
.modal-stage .name-plate { margin-top: 14px; background: none; box-shadow: none; color: var(--text); }

/* Services: 4 in a row, or 2 + 2 on smaller screens. Never 3 + 1. */
.services-grid { grid-template-columns: repeat(4, 1fr); }
@media (max-width: 1180px) { .services-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 620px) { .services-grid { grid-template-columns: 1fr; } }

/* Contact form */
.form-trap { position: absolute; left: -9999px; width: 1px; height: 1px; opacity: 0; }
.form-note.error { color: #FCA5A5; }
.lead-form button:disabled { opacity: .7; cursor: wait; }


/* =========================================
   15. Premium finish, part 2
   Near-black navy, white main buttons, one serif accent,
   and even less color, so the photos and words stand out.
   ========================================= */
:root {
  --cta-bg: #0B2545;
  --cta-text: #FFFFFF;
  --hero: #071022;
}
@media (prefers-color-scheme: dark) {
  :root {
    --bg: #060C18;
    --card: #0B1423;
    --line: rgba(255, 255, 255, .08);
    --soft: transparent;
    --cta-bg: #F4F6F9;
    --cta-text: #071022;
  }
}
/* These areas are always dark, in both color modes */
header, .hero, .cassina-section, .stats, .svc-art, .modal-card, .console {
  --cta-bg: #F4F6F9;
  --cta-text: #071022;
}

/* Words */
body { font-weight: 400; -webkit-font-smoothing: antialiased; }
h1 { font-size: clamp(42px, 5.4vw, 72px); font-weight: 500; line-height: 1.04; letter-spacing: -.042em; }
h2 { font-size: clamp(32px, 3.8vw, 50px); font-weight: 500; line-height: 1.1; letter-spacing: -.034em; }
.shine {
  color: inherit;
  font-family: 'Instrument Serif', Georgia, serif;
  font-size: 1.1em;
  font-style: italic;
  font-weight: 400;
  letter-spacing: -.02em;
}
.hero-lead, .lead { font-weight: 400; }
.eyebrow { color: var(--muted); font-size: 11px; letter-spacing: .2em; }
.cassina-section .eyebrow { color: var(--heromuted); }
.team-card h3, .card h3 { font-weight: 500; }
section + section { border-top: 1px solid var(--line); }

/* Backgrounds: calm, with no colored corners */
.hero {
  background: radial-gradient(900px 480px at 78% -8%, rgba(76, 141, 255, .1), transparent 68%), var(--hero);
}
.hero-grid-bg { display: none; }
.cassina-section {
  background: radial-gradient(760px 460px at 80% 20%, rgba(61, 219, 176, .07), transparent 68%), var(--hero);
}
.team-section, .demo-section, .flow-section { background: var(--bg); }
.stats { background: var(--hero); border: 1px solid rgba(255, 255, 255, .08); }
.stat b { color: #fff; font-size: 44px; font-weight: 500; letter-spacing: -.03em; }

/* Main buttons are white on dark, navy on light */
.btn, .nav-cta, .tc-talk, .bubble-btn {
  background: var(--cta-bg);
  color: var(--cta-text) !important;
  font-weight: 600;
}
.btn.alt {
  background: transparent;
  border: 1px solid rgba(255, 255, 255, .22);
  color: #fff !important;
}
.btn:hover, .nav-cta:hover, .tc-talk:hover, .bubble-btn:hover { filter: none; opacity: .88; }
.btn.alt:hover { background: rgba(255, 255, 255, .07); opacity: 1; }
.tc-demo { font-weight: 500; }

/* Hero details */
.badge { background: transparent; border-color: rgba(255, 255, 255, .14); color: var(--heromuted); }
.hero-bubble {
  background: rgba(255, 255, 255, .05);
  border: 1px solid rgba(255, 255, 255, .12);
  box-shadow: none;
  color: #fff;
  backdrop-filter: blur(10px);
}
.intro-btn { padding: 6px 16px 6px 6px; background: transparent; border-color: rgba(255, 255, 255, .14); box-shadow: none; }
.intro-btn:hover { background: rgba(255, 255, 255, .05); border-color: rgba(255, 255, 255, .28); }
.intro-btn .play { background: rgba(255, 255, 255, .1); box-shadow: none; animation: none; color: #fff; }
.intro-btn .play::before, .intro-btn .play::after { display: none; }
.hero-points .i { color: var(--heromuted); }
.marquee { background: transparent; border-color: var(--line); }

/* Service pictures: one calm background, not one color per card */
.svc-art {
  background: linear-gradient(180deg, #0D1729, #09111F);
  border-bottom: 1px solid rgba(255, 255, 255, .08);
}
.svc { --accent: #3DDBB0 !important; }
.svc-new { background: none; box-shadow: inset 0 0 0 1px var(--line); color: var(--muted); }
.svc-tags li { background: none; box-shadow: inset 0 0 0 1px var(--line); color: var(--muted); font-weight: 500; }

/* Call box */
.console { background: #0B1423; border-color: rgba(255, 255, 255, .09); }
.act { background: none; border-color: rgba(255, 255, 255, .1); color: #A9BAD0; }
.act.done { background: none; border-color: rgba(61, 219, 176, .4); color: #BDEFDF; }

/* Quiet corners */
.to-top { background: rgba(255, 255, 255, .08); color: #fff; box-shadow: none; backdrop-filter: blur(10px); border: 1px solid rgba(255, 255, 255, .14); }
.cta { background: var(--card); }
.cta::before, .cta::after { display: none; }
.lead-form { background: transparent; box-shadow: none; }
.modal-card { background: #0B1423; }
.demo-panel { background: var(--card); border-color: var(--line); box-shadow: none; }

.shine { white-space: nowrap; }
.intro-btn .play svg { fill: #fff; }
.demo-profile { background: var(--card); }
.stage .name-plate { background: rgba(7, 16, 34, .86); box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .16); color: #fff; }

