/* Arban AI landing page
   Brand: Navy #0B1324 · Teal #14C9B4 · Deep teal #0A8A7C · Amber #FFB547 · Light #F3F7F6
   Type: Sora (headings) · Figtree (body) · JetBrains Mono (labels) */

:root {
  --navy: #0B1324;
  --navy-2: #0F2C37;
  --teal: #14C9B4;
  --teal-deep: #0A8A7C;
  --amber: #FFB547;
  --light: #F3F7F6;
  --white: #FFFFFF;
  --ink: #0B1324;
  --ink-2: #4A5568;
  --ink-3: #8A94A6;
  --line: #E3E9E8;
  --radius: 20px;
  --radius-lg: 32px;
  --shadow: 0 30px 80px -30px rgba(11, 19, 36, .35);
  --font-head: "Sora", system-ui, sans-serif;
  --font-body: "Figtree", Arial, sans-serif;
  --font-mono: "JetBrains Mono", ui-monospace, monospace;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 88px; }
body {
  margin: 0;
  font-family: var(--font-body);
  font-size: 17px;
  line-height: 1.6;
  color: var(--ink);
  background: var(--white);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img { display: block; max-width: 100%; }
a { color: inherit; }
h1, h2, h3 { font-family: var(--font-head); font-weight: 700; line-height: 1.1; letter-spacing: -0.025em; margin: 0; }
h2 { font-size: clamp(34px, 5vw, 60px); letter-spacing: -0.035em; }
h3 { font-size: 21px; letter-spacing: -0.015em; }
p { margin: 0; }
.mono { font-family: var(--font-mono); letter-spacing: .04em; }
.muted { color: var(--ink-3); }

.container { width: min(1200px, 100% - 32px); margin-inline: auto; }

/* ---------- Buttons & pills ---------- */
.btn {
  display: inline-flex; align-items: center; gap: 8px;
  font: 600 16px/1 var(--font-body);
  padding: 17px 26px; border-radius: 999px;
  text-decoration: none; cursor: pointer; border: 0;
  transition: transform .15s ease, background .15s ease;
}
.btn:hover { transform: translateY(-1px); }
.btn--sm { padding: 11px 18px; font-size: 15px; }
.btn--primary { background: var(--teal); color: var(--navy); box-shadow: 0 8px 28px -8px rgba(20, 201, 180, .7); }
.btn--primary:hover { background: #2BD8C3; }
.btn--ghost-dark { background: rgba(243, 247, 246, .08); color: var(--light); border: 1px solid rgba(243, 247, 246, .18); }
.btn--ghost-dark:hover { background: rgba(243, 247, 246, .14); }

.pill { display: inline-flex; align-items: center; gap: 10px; font-size: 14px; font-weight: 500; padding: 8px 16px; border-radius: 999px; }
.pill--dark { background: rgba(243, 247, 246, .07); color: var(--light); border: 1px solid rgba(243, 247, 246, .14); }
.pill__dot { width: 8px; height: 8px; border-radius: 50%; background: var(--teal); animation: pulse 2s infinite; }

.eyebrow { font-family: var(--font-mono); font-size: 13px; text-transform: uppercase; letter-spacing: .12em; color: var(--teal-deep); margin-bottom: 16px; }
.eyebrow--teal { color: var(--teal); }

/* ---------- Nav ---------- */
.nav {
  position: sticky; top: env(safe-area-inset-top, 0px); z-index: 50;
  background: rgba(255, 255, 255, .82);
  backdrop-filter: saturate(1.6) blur(14px);
  -webkit-backdrop-filter: saturate(1.6) blur(14px);
  border-bottom: 1px solid transparent; transition: border-color .2s;
}
.nav.is-scrolled { border-color: var(--line); }
.nav__inner { width: min(1280px, 100% - 32px); margin-inline: auto; height: 72px; display: flex; align-items: center; gap: 40px; }
.nav__logo img { height: 36px; width: auto; }
.nav__links { display: flex; gap: 32px; margin-right: auto; }
.nav__links a { text-decoration: none; color: var(--ink-2); font-weight: 500; font-size: 15px; }
.nav__links a:hover { color: var(--ink); }
.nav__cta { display: flex; align-items: center; gap: 12px; }
.nav__toggle { display: none; width: 44px; height: 44px; border: 0; background: transparent; cursor: pointer; padding: 12px; }
.nav__toggle span { display: block; height: 2px; background: var(--navy); border-radius: 2px; transition: transform .2s; }
.nav__toggle span + span { margin-top: 6px; }
.nav__toggle[aria-expanded="true"] span:first-child { transform: translateY(4px) rotate(45deg); }
.nav__toggle[aria-expanded="true"] span:last-child { transform: translateY(-4px) rotate(-45deg); }
.nav__mobile { display: grid; gap: 4px; padding: 8px 16px 20px; border-top: 1px solid var(--line); background: var(--white); }
.nav__mobile[hidden] { display: none; }
.nav__mobile a:not(.btn) { padding: 12px 4px; text-decoration: none; font-weight: 500; }
.nav__mobile .btn { justify-content: center; margin-top: 8px; }

/* ---------- Hero ---------- */
.hero { padding: 12px 12px 0; }
.hero__panel, .cta__panel { position: relative; overflow: hidden; background: var(--navy); border-radius: var(--radius-lg); color: var(--light); }
.hero__panel { padding: clamp(64px, 9vw, 112px) 16px clamp(40px, 6vw, 72px); text-align: center; }
.hero__grid {
  position: absolute; inset: 0; pointer-events: none;
  background-image:
    linear-gradient(rgba(243, 247, 246, .045) 1px, transparent 1px),
    linear-gradient(90deg, rgba(243, 247, 246, .045) 1px, transparent 1px);
  background-size: 56px 56px;
  mask-image: radial-gradient(ellipse 70% 70% at 50% 40%, #000 30%, transparent 78%);
  -webkit-mask-image: radial-gradient(ellipse 70% 70% at 50% 40%, #000 30%, transparent 78%);
}
.hero__glow {
  position: absolute; pointer-events: none; width: 900px; height: 600px; left: 50%; top: -260px; transform: translateX(-50%);
  background: radial-gradient(closest-side, rgba(20, 201, 180, .32), rgba(20, 201, 180, 0));
}
.hero__content { position: relative; max-width: 980px; margin-inline: auto; }
.hero__title { font-size: clamp(30px, 9.6vw, 108px); letter-spacing: -0.045em; line-height: 1; margin-top: 28px; }
.hero__title > span { display: block; }
.hero__title--teal { color: var(--teal); }
.hero__sub { font-size: clamp(18px, 1.7vw, 22px); color: rgba(243, 247, 246, .75); max-width: 560px; margin: 28px auto 0; }
.hero__actions { display: flex; flex-wrap: wrap; justify-content: center; gap: 12px; margin-top: 36px; }

/* ---------- AI hub ---------- */
.hub {
  --size: min(600px, 84vw);
  position: relative; width: var(--size); height: var(--size);
  margin: clamp(40px, 6vw, 64px) auto 0;
}
.hub::before { /* faint orbit tracks */
  content: ""; position: absolute; inset: 4%; border-radius: 50%;
  border: 1px dashed rgba(243, 247, 246, .1);
  box-shadow: inset 0 0 0 calc(var(--size) * .17) transparent;
}
.hub::after {
  content: ""; position: absolute; inset: 22%; border-radius: 50%;
  border: 1px dashed rgba(243, 247, 246, .1);
}
.hub__ring { position: absolute; inset: 0; animation: spin 80s linear infinite; }
.hub__ring--inner { animation-duration: 55s; animation-direction: reverse; }
.beam {
  position: absolute; left: 50%; top: 50%; height: 2px; width: var(--r);
  transform-origin: 0 50%; transform: rotate(var(--a));
  background: linear-gradient(90deg, rgba(20, 201, 180, .0), rgba(20, 201, 180, .25));
  overflow: hidden;
}
.beam::after { /* data packet travelling outwards */
  content: ""; position: absolute; top: -1px; left: 0; width: 40px; height: 4px; border-radius: 4px;
  background: linear-gradient(90deg, transparent, var(--teal));
  box-shadow: 0 0 12px var(--teal);
  animation: packet 2.6s ease-in infinite; animation-delay: var(--d);
}
.tile {
  position: absolute; left: 50%; top: 50%;
  width: var(--t); height: var(--t); margin: calc(var(--t) / -2) 0 0 calc(var(--t) / -2);
  transform: rotate(var(--a)) translateX(var(--r)) rotate(calc(-1 * var(--a)));
}
.tile__inner {
  width: 100%; height: 100%; border-radius: 28%;
  background: var(--white); display: grid; place-items: center;
  box-shadow: 0 10px 30px -8px rgba(0, 0, 0, .5), 0 0 0 1px rgba(255, 255, 255, .1);
  animation: spin 80s linear infinite reverse;
}
.hub__ring--inner .tile__inner { animation-duration: 55s; animation-direction: normal; }
.tile__inner img { width: 52%; height: 52%; }
.hub__core {
  position: absolute; left: 50%; top: 50%; width: 26%; height: 26%; transform: translate(-50%, -50%);
  display: grid; place-items: center;
}
.hub__core img { width: 100%; height: 100%; position: relative; filter: drop-shadow(0 0 40px rgba(20, 201, 180, .35)); }
.hub__pulse { position: absolute; inset: 0; border-radius: 50%; border: 2px solid var(--teal); animation: ripple 3s ease-out infinite; }
.hub__pulse--2 { animation-delay: 1.5s; }

.toast {
  position: absolute; z-index: 3; display: flex; align-items: center; gap: 10px;
  padding: 12px 16px; border-radius: 14px; white-space: nowrap;
  background: rgba(16, 28, 48, .85); border: 1px solid rgba(243, 247, 246, .12);
  backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px);
  font-size: 14px; font-weight: 500; color: var(--light);
  box-shadow: 0 20px 40px -12px rgba(0, 0, 0, .5);
  transition: opacity .4s ease, transform .4s ease;
}
.toast b { width: 24px; height: 24px; border-radius: 50%; display: grid; place-items: center; background: rgba(20, 201, 180, .2); color: var(--teal); font-size: 13px; flex: none; }
.toast small { color: rgba(243, 247, 246, .5); font-size: 12px; margin-left: 4px; }
.toast.is-out { opacity: 0; transform: translateY(8px); }
.toast--a { right: 104%; top: 24%; }
.toast--b { left: 104%; bottom: 22%; }

/* ---------- AI models strip ---------- */
.models { padding: 44px 16px 0; text-align: center; }
.models p { font-size: 14px; color: var(--ink-3); margin-bottom: 16px; }
.models ul { list-style: none; padding: 0; margin: 0; display: flex; justify-content: center; flex-wrap: wrap; gap: 12px 40px; }
.models li { display: flex; align-items: center; gap: 10px; font-family: var(--font-head); font-weight: 600; font-size: 22px; letter-spacing: -0.02em; }

/* ---------- Sections ---------- */
.section { padding: clamp(80px, 10vw, 128px) 0; position: relative; }
.section--tight { padding-bottom: clamp(56px, 7vw, 88px); }
.section__head { text-align: center; max-width: 820px; margin: 0 auto 56px; }
.section--light { background: var(--light); }
.section--dark { background: var(--navy); color: var(--light); overflow: hidden; }
.dark__glow { position: absolute; width: 1100px; height: 700px; left: 50%; top: -380px; transform: translateX(-50%); background: radial-gradient(closest-side, rgba(20, 201, 180, .2), transparent); pointer-events: none; }

/* ---------- Service cards ---------- */
.cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.card {
  position: relative; padding: 32px; border-radius: var(--radius); border: 1px solid var(--line); background: var(--white);
  transition: transform .25s ease, box-shadow .25s ease, border-color .25s ease;
}
.card:hover { transform: translateY(-4px); border-color: rgba(20, 201, 180, .5); box-shadow: 0 24px 48px -24px rgba(10, 138, 124, .35); }
.card__icon { width: 52px; height: 52px; border-radius: 14px; display: grid; place-items: center; background: var(--navy); margin-bottom: 24px; }
.card__icon svg { width: 24px; height: 24px; fill: none; stroke: var(--teal); stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.card h3 { margin-bottom: 8px; }
.card p { color: var(--ink-2); }

/* ---------- Supercharged ---------- */
.boost { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; position: relative; }
.boost__card { padding: 28px; border-radius: var(--radius); background: rgba(243, 247, 246, .04); border: 1px solid rgba(243, 247, 246, .1); }
.boost__what { font-family: var(--font-mono); font-size: 12px; text-transform: uppercase; letter-spacing: .12em; color: rgba(243, 247, 246, .5); }
.boost__before { margin-top: 20px; color: rgba(243, 247, 246, .4); text-decoration: line-through; text-decoration-color: rgba(243, 247, 246, .3); }
.boost__after { font-family: var(--font-head); font-weight: 700; font-size: clamp(24px, 2.4vw, 30px); letter-spacing: -0.03em; color: var(--teal); margin-top: 4px; line-height: 1.15; }
.boost__meter { height: 6px; border-radius: 999px; background: rgba(243, 247, 246, .08); margin-top: 24px; overflow: hidden; }
.boost__meter i { display: block; height: 100%; width: 0; border-radius: inherit; background: linear-gradient(90deg, var(--teal-deep), var(--teal)); box-shadow: 0 0 16px var(--teal); transition: width 1.6s cubic-bezier(.2, .8, .2, 1); }
.boost.is-visible .boost__meter i { width: 100%; }
.boost.is-visible .boost__card:nth-child(2) i { transition-delay: .15s; }
.boost.is-visible .boost__card:nth-child(3) i { transition-delay: .3s; }
.boost.is-visible .boost__card:nth-child(4) i { transition-delay: .45s; }

/* ---------- Logo wall ---------- */
.logo-wall { display: grid; gap: 16px; }
.marquee {
  display: flex; overflow: hidden;
  mask-image: linear-gradient(90deg, transparent, #000 10%, #000 90%, transparent);
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 10%, #000 90%, transparent);
}
.marquee__track { display: flex; flex-shrink: 0; gap: 16px; padding-right: 16px; animation: scroll 50s linear infinite; }
.marquee--reverse .marquee__track { animation-direction: reverse; animation-duration: 58s; }
.marquee:hover .marquee__track { animation-play-state: paused; }
.logo {
  display: flex; align-items: center; gap: 12px; flex: none;
  padding: 16px 24px; border-radius: 16px; border: 1px solid var(--line); background: var(--white);
  font-family: var(--font-head); font-weight: 600; font-size: 18px; letter-spacing: -0.01em; white-space: nowrap;
}
.logo img { width: 30px; height: 30px; }
.logo-wall__note { text-align: center; color: var(--ink-3); margin-top: 28px; }

/* ---------- Steps ---------- */
.steps { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; counter-reset: s; }
.steps li { position: relative; padding: 32px; border-radius: var(--radius); background: var(--white); border: 1px solid var(--line); }
.steps .mono { display: inline-grid; place-items: center; width: 40px; height: 40px; border-radius: 12px; background: var(--navy); color: var(--teal); font-size: 14px; margin-bottom: 24px; }
.steps h3 { margin-bottom: 8px; }
.steps p { color: var(--ink-2); }
.steps li:not(:last-child)::after {
  content: "→"; position: absolute; right: -16px; top: 50%; transform: translate(50%, -50%); z-index: 1;
  width: 32px; height: 32px; border-radius: 50%; display: grid; place-items: center;
  background: var(--teal); color: var(--navy); font-weight: 700; font-size: 15px;
}

/* ---------- CTA ---------- */
.cta { padding: 12px; }
.cta__panel { padding: clamp(80px, 11vw, 136px) 16px; text-align: center; }
.hero__glow--cta { top: auto; bottom: -320px; }
.cta__content { position: relative; }
.cta h2 { font-size: clamp(40px, 7vw, 88px); letter-spacing: -0.045em; }
.cta h2 span { display: block; }
.cta p { color: rgba(243, 247, 246, .75); font-size: 20px; margin-top: 20px; }
.cta .cta__email { font-size: 15px; color: rgba(243, 247, 246, .55); margin-top: 20px; user-select: all; }

/* ---------- Footer ---------- */
.footer { padding: 32px 0 40px; }
.footer__base { display: flex; justify-content: space-between; align-items: center; gap: 16px; font-size: 14px; color: var(--ink-3); }
.footer__base img { height: 32px; width: auto; }

/* ---------- Animations ---------- */
@keyframes pulse { 0%, 100% { box-shadow: 0 0 0 0 rgba(20, 201, 180, .5); } 50% { box-shadow: 0 0 0 7px rgba(20, 201, 180, 0); } }
@keyframes spin { to { transform: rotate(360deg); } }
@keyframes ripple { from { transform: scale(1); opacity: .7; } to { transform: scale(2.4); opacity: 0; } }
@keyframes packet { 0% { transform: translateX(-40px); opacity: 0; } 15% { opacity: 1; } 100% { transform: translateX(var(--r)); opacity: 0; } }
@keyframes scroll { to { transform: translateX(-100%); } }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
  html { scroll-behavior: auto; }
}

/* ---------- Responsive ---------- */
@media (max-width: 1100px) {
  .toast--a { right: auto; left: -6%; top: 0; }
  .toast--b { left: auto; right: -6%; bottom: 0; }
}
@media (max-width: 1000px) {
  .boost { grid-template-columns: repeat(2, 1fr); }
  .cards { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 820px) {
  .nav__links, .nav__cta .btn { display: none; }
  .nav__toggle { display: block; }
  .nav__inner { gap: 16px; justify-content: space-between; }
  .hero { padding: 8px 8px 0; }
  .cta { padding: 8px; }
  .steps { grid-template-columns: 1fr; }
  .steps li:not(:last-child)::after { content: "↓"; right: 50%; top: auto; bottom: -16px; transform: translate(50%, 50%); }
}
@media (max-width: 560px) {
  body { font-size: 16px; }
  .hero__actions .btn { width: 100%; justify-content: center; }
  .cards, .boost { grid-template-columns: 1fr; gap: 12px; }
  .card { display: grid; grid-template-columns: auto 1fr; column-gap: 16px; padding: 20px; }
  .card__icon { grid-row: span 2; margin-bottom: 0; }
  .card h3 { margin-bottom: 2px; font-size: 18px; }
  .card p { font-size: 15px; }
  .boost__card { padding: 22px; }
  .toast { font-size: 12px; padding: 8px 12px; }
  .toast small { display: none; }
  .toast--a { left: 0; top: -6%; }
  .toast--b { right: 0; bottom: -6%; }
  .logo { padding: 12px 18px; font-size: 16px; }
  .logo img { width: 24px; height: 24px; }
}

/* =========================================================
   v3 additions: rotating headline, live demo, spotlight cards,
   CTA checklist, mobile sticky button
   ========================================================= */

/* Rotating word in the hero headline: words slide up inside a box
   whose width glides to fit each word, so nothing jumps or wraps */
.hero__line2 { white-space: nowrap; }
.rotator {
  position: relative; display: inline-block; vertical-align: bottom;
  height: 1.12em; margin-bottom: -0.06em; margin-right: -0.06em; overflow: hidden;
  transition: width .6s cubic-bezier(.65, 0, .35, 1);
}
.rotator__word {
  position: absolute; left: 0; right: 0; top: 0; text-align: center; line-height: 1.12em;
  transform: translateY(105%); opacity: 0;
  transition: transform .6s cubic-bezier(.65, 0, .35, 1), opacity .6s ease;
}
.rotator__word.is-current { position: relative; display: block; transform: none; opacity: 1; }
.rotator__word.is-leaving { transform: translateY(-105%); opacity: 0; }
.rotator.is-ready .rotator__word.is-current { position: absolute; }
.play {
  width: 0; height: 0; border-style: solid; border-width: 5px 0 5px 8px;
  border-color: transparent transparent transparent currentColor;
}

/* Hero glow follows the cursor */
.hero__panel { --mx: 50%; --my: 0%; }
.hero__panel::before {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background: radial-gradient(600px circle at var(--mx) var(--my), rgba(20, 201, 180, .1), transparent 60%);
}

/* Live demo */
.section--demo { padding-top: clamp(72px, 9vw, 112px); }
.demo {
  background: var(--white); border: 1px solid var(--line); border-radius: 24px;
  box-shadow: 0 40px 100px -40px rgba(11, 19, 36, .4), 0 0 0 8px rgba(243, 247, 246, .8);
  overflow: hidden;
}
.demo__bar { display: flex; align-items: center; gap: 14px; padding: 14px 20px; border-bottom: 1px solid var(--line); background: #FBFCFC; }
.demo__dots { display: flex; gap: 6px; }
.demo__dots i { width: 11px; height: 11px; border-radius: 50%; background: #DCE3E2; }
.demo__title { font-weight: 600; font-size: 14px; }
.demo__status {
  display: inline-flex; align-items: center; gap: 8px; font-size: 13px; font-weight: 600;
  padding: 5px 12px; border-radius: 999px; background: var(--light); color: var(--ink-2);
  transition: background .3s, color .3s;
}
.demo__status::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: currentColor; }
.demo__status.is-working { background: rgba(20, 201, 180, .14); color: var(--teal-deep); }
.demo__status.is-wait { background: rgba(255, 181, 71, .22); color: #9A5B00; }
.demo__status.is-done { background: var(--navy); color: var(--teal); }
.demo__timer { margin-left: auto; font-size: 13px; color: var(--ink-3); }
.demo__timer .mono { font-size: 15px; color: var(--ink); font-variant-numeric: tabular-nums; }
.demo__body { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); }
.demo__col { padding: 24px; display: flex; flex-direction: column; gap: 12px; min-width: 0; }
.demo__col + .demo__col { border-left: 1px solid var(--line); }
.demo__label { font-size: 13px; font-weight: 600; color: var(--ink-2); display: flex; align-items: center; gap: 8px; }
.demo__label .mono { display: inline-grid; place-items: center; width: 22px; height: 22px; border-radius: 6px; background: var(--navy); color: var(--teal); font-size: 11px; }
.demo__note, .demo__quote, .demo__email { flex: 1; min-height: 250px; border-radius: 14px; padding: 16px; font-size: 14px; line-height: 1.6; }
.demo__note { background: #FFFBF3; border: 1px solid #F4E6CC; font-family: var(--font-mono); font-size: 12.5px; color: #3D3A33; }
.demo__meta { font-size: 11px; color: #9A8F7A; margin-bottom: 8px; }
.demo__quote { border: 1px solid var(--line); display: flex; flex-direction: column; }
.demo__quote ul { list-style: none; padding: 0; margin: 0; flex: 1; }
.demo__quote li {
  display: flex; justify-content: space-between; gap: 12px; padding: 9px 0; border-bottom: 1px dashed var(--line);
  font-size: 13px; animation: itemIn .4s ease both;
}
.demo__quote li b { font-weight: 600; white-space: nowrap; font-variant-numeric: tabular-nums; }
.demo__total { display: flex; justify-content: space-between; padding-top: 12px; font-weight: 700; }
.demo__total b { color: var(--teal-deep); font-size: 18px; font-variant-numeric: tabular-nums; }
.demo__email { border: 1px solid var(--line); display: flex; flex-direction: column; }
.demo__email [data-demo-email] { flex: 1; }
.demo__to { font-size: 12px; color: var(--ink-3); margin-bottom: 8px; }
.demo__actions { display: flex; align-items: center; gap: 10px; margin-top: 12px; min-height: 36px; }
.demo__approve {
  font: 600 13px/1 var(--font-body); padding: 10px 16px; border-radius: 999px; border: 0;
  background: var(--teal); color: var(--navy); opacity: 0; transform: scale(.9); transition: opacity .3s, transform .3s, background .2s;
  pointer-events: none;
}
.demo__approve.is-on { opacity: 1; transform: none; }
.demo__approve.is-click { transform: scale(.92); background: var(--teal-deep); color: var(--white); }
.demo__sent { display: none; font-size: 13px; font-weight: 700; color: var(--teal-deep); background: rgba(20, 201, 180, .14); padding: 9px 14px; border-radius: 999px; }
.demo__sent.is-on { display: inline-block; animation: itemIn .4s ease both; }
.typing::after { content: ""; display: inline-block; width: 2px; height: 1em; margin-left: 1px; vertical-align: -2px; background: var(--teal-deep); animation: blink 1s steps(1) infinite; }
.demo__facts { list-style: none; padding: 0; margin: 28px 0 0; display: flex; flex-wrap: wrap; justify-content: center; gap: 12px 32px; }
.demo__facts li { position: relative; padding-left: 26px; color: var(--ink-2); font-size: 15px; }
.demo__facts li::before {
  content: ""; position: absolute; left: 0; top: 3px; width: 18px; height: 18px; border-radius: 50%;
  background: rgba(20, 201, 180, .16) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%230A8A7C' stroke-width='3.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 12.5l4.5 4.5L19 7.5'/%3E%3C/svg%3E") center/10px no-repeat;
}

/* Service cards: spotlight that follows the cursor */
.card { overflow: hidden; --mx: 50%; --my: 50%; }
.card::before {
  content: ""; position: absolute; inset: 0; pointer-events: none; opacity: 0; transition: opacity .3s;
  background: radial-gradient(260px circle at var(--mx) var(--my), rgba(20, 201, 180, .12), transparent 70%);
}
.card:hover::before { opacity: 1; }
.card > * { position: relative; }
.card__icon { transition: transform .3s ease; }
.card:hover .card__icon { transform: rotate(-6deg) scale(1.06); }

.steps li { transition: transform .25s ease, box-shadow .25s ease; }
.steps li:hover { transform: translateY(-4px); box-shadow: 0 24px 48px -28px rgba(11, 19, 36, .3); }

/* CTA checklist */
.cta__list { list-style: none; padding: 0; margin: 24px auto 0; display: inline-grid; gap: 10px; text-align: left; }
.cta__list li { position: relative; padding-left: 32px; color: var(--light); font-size: 17px; }
.cta__list li::before {
  content: ""; position: absolute; left: 0; top: 2px; width: 22px; height: 22px; border-radius: 50%;
  background: rgba(20, 201, 180, .2) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%2314C9B4' stroke-width='3.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 12.5l4.5 4.5L19 7.5'/%3E%3C/svg%3E") center/12px no-repeat;
}

/* Mobile sticky button */
.mobile-cta { display: none; }

@keyframes blink { 50% { opacity: 0; } }
@keyframes itemIn { from { opacity: 0; transform: translateY(6px); } to { opacity: 1; transform: none; } }

@media (max-width: 900px) {
  .demo__body { grid-template-columns: 1fr; }
  .demo__col + .demo__col { border-left: 0; border-top: 1px solid var(--line); }
  .demo__note { min-height: 150px; }
  .demo__quote { min-height: 220px; }
  .demo__email { min-height: 200px; }
}
@media (max-width: 820px) {
  .mobile-cta {
    display: flex; justify-content: center; position: fixed; z-index: 60;
    left: max(16px, env(safe-area-inset-left, 0px)); right: max(16px, env(safe-area-inset-right, 0px));
    bottom: calc(16px + env(safe-area-inset-bottom, 0px));
    transform: translateY(160%); transition: transform .35s ease;
  }
  .mobile-cta.is-on { transform: none; }
  .footer { padding-bottom: 100px; }
}
@media (max-width: 560px) {
  .demo__bar { flex-wrap: wrap; gap: 10px; padding: 12px 16px; }
  .demo__dots { display: none; }
  .demo__col { padding: 16px; }
  .demo__facts { flex-direction: column; align-items: flex-start; gap: 10px; width: fit-content; margin-inline: auto; }
}

/* =========================================================
   Scroll animations (classes added by main.js as elements enter view)
   ========================================================= */
.anim-in { animation-duration: .9s; animation-timing-function: cubic-bezier(.2, .7, .2, 1); animation-fill-mode: both; animation-delay: var(--delay, 0ms); }
.anim-in[data-anim="rise"]  { animation-name: animRise; }
.anim-in[data-anim="fade"]  { animation-name: animFade; animation-duration: 1.1s; }
.anim-in[data-anim="scale"] { animation-name: animScale; animation-duration: 1s; }
.anim-in[data-anim="left"]  { animation-name: animLeft; animation-duration: 1.1s; }
.anim-in[data-anim="right"] { animation-name: animRight; animation-duration: 1.1s; }
.anim-in[data-anim="pop"]   { animation-name: animPop; animation-delay: .35s; }

@keyframes animRise  { from { opacity: 0; transform: translateY(28px); filter: blur(6px); } to { opacity: 1; transform: none; filter: none; } }
@keyframes animFade  { from { opacity: 0; } to { opacity: 1; } }
@keyframes animScale { from { opacity: 0; transform: translateY(24px) scale(.96); } to { opacity: 1; transform: none; } }
@keyframes animLeft  { from { opacity: 0; transform: translateX(-48px); } to { opacity: 1; transform: none; } }
@keyframes animRight { from { opacity: 0; transform: translateX(48px); } to { opacity: 1; transform: none; } }
@keyframes animPop   { from { opacity: 0; transform: scale(.85); } 60% { opacity: 1; transform: scale(1.04); } to { opacity: 1; transform: none; } }

/* Ambient motion: dark sections breathe, steps' arrows nudge forward */
.dark__glow { animation: breathe 7s ease-in-out infinite; }
.hero__glow--cta { animation: breathe 6s ease-in-out infinite; }
@keyframes breathe { 0%, 100% { opacity: .75; transform: translateX(-50%) scale(1); } 50% { opacity: 1; transform: translateX(-50%) scale(1.08); } }
.steps li:not(:last-child)::after { animation: nudge 2.4s ease-in-out infinite; }
@keyframes nudge { 0%, 100% { margin-right: 0; } 50% { margin-right: -5px; } }
@media (max-width: 820px) {
  @keyframes nudge { 0%, 100% { margin-bottom: 0; } 50% { margin-bottom: -5px; } }
}
.card__icon svg, .steps .mono { transition: transform .3s ease; }
.boost__card { transition: transform .25s ease, border-color .25s ease, background .25s ease; }
.boost__card:hover { transform: translateY(-4px); border-color: rgba(20, 201, 180, .35); background: rgba(20, 201, 180, .05); }

/* =========================================================
   Booking card in the final CTA (button links to Calendly once set in main.js)
   ========================================================= */
.cta__split { display: grid; grid-template-columns: 1.15fr 1fr; gap: clamp(32px, 5vw, 72px); align-items: center; max-width: 1080px; margin: 0 auto; text-align: left; }
.cta__split .cta__list { margin-left: 0; }
.book {
  position: relative; background: var(--light); color: var(--navy); border-radius: 24px;
  padding: clamp(24px, 3vw, 36px); box-shadow: 0 40px 80px -40px rgba(0, 0, 0, .6), 0 0 0 1px rgba(20, 201, 180, .25);
}
.book__head { display: flex; align-items: center; gap: 14px; }
.book__head img { width: 44px; height: 44px; flex: none; }
.book .book__kicker { font-family: var(--font-mono); font-size: 12px; letter-spacing: .12em; text-transform: uppercase; color: var(--teal-deep); margin: 0; }
.book h3 { font-size: clamp(22px, 2.2vw, 26px); color: var(--navy); margin-top: 2px; }
.book__meta { list-style: none; padding: 0; margin: 24px 0; display: grid; gap: 12px; border-block: 1px solid rgba(11, 19, 36, .1); padding-block: 20px; }
.book__meta li { display: flex; align-items: center; gap: 12px; font-size: 16px; color: #18263F; }
.book__meta svg { width: 20px; height: 20px; fill: none; stroke: var(--teal-deep); stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; flex: none; }
.book__btn { width: 100%; justify-content: center; }
.book .book__email { font-size: 14px; color: rgba(11, 19, 36, .6); margin-top: 14px; text-align: center; }
.book__email span { user-select: all; color: var(--navy); font-weight: 600; }
@media (max-width: 820px) {
  .cta__split { grid-template-columns: 1fr; text-align: center; }
  .cta__split .cta__list { margin-left: auto; }
  .book { text-align: left; max-width: 440px; margin: 0 auto; width: 100%; }
}

/* =========================================================
   Booking pop-up (opened by every "Book a free call" button)
   ========================================================= */
body:has(.modal[open]) { overflow: hidden; }
.modal {
  width: min(640px, calc(100% - 24px)); max-height: calc(100dvh - 24px);
  padding: 0; border: 0; border-radius: 28px; background: var(--white); color: var(--ink);
  box-shadow: 0 40px 120px -30px rgba(11, 19, 36, .6); overflow: auto; overscroll-behavior: contain;
}
.modal::backdrop { background: rgba(11, 19, 36, .6); backdrop-filter: blur(6px); }
.modal[open] { animation: modalIn .35s cubic-bezier(.2, .7, .2, 1); }
.modal[open]::backdrop { animation: animFade .3s ease; }
@keyframes modalIn { from { opacity: 0; transform: translateY(24px) scale(.97); } to { opacity: 1; transform: none; } }

.modal__close {
  position: sticky; top: 14px; float: right; margin: 14px 14px -54px 0; z-index: 2;
  width: 40px; height: 40px; border-radius: 50%; border: 0; background: var(--light); cursor: pointer;
  display: grid; place-items: center; transition: background .2s ease;
}
.modal__close:hover { background: var(--line); }
.modal__close svg { width: 18px; height: 18px; fill: none; stroke: var(--navy); stroke-width: 2.4; stroke-linecap: round; }

.modal__body, .modal__done { padding: clamp(24px, 5vw, 40px); display: grid; gap: 18px; }
.modal__head { display: flex; align-items: center; gap: 14px; padding-right: 44px; }
.modal__head img { width: 44px; height: 44px; flex: none; }
.modal__kicker { font-family: var(--font-mono); font-size: 12px; letter-spacing: .1em; text-transform: uppercase; color: var(--teal-deep); margin: 0; }
.modal h3 { font-size: clamp(24px, 4vw, 30px); letter-spacing: -0.03em; margin-top: 2px; }
.modal__intro { margin: 0; color: var(--ink-2); font-size: 16px; }

.field-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 14px 16px; }
.field { display: grid; gap: 6px; min-width: 0; }
.field > span, .chips legend { font-size: 14px; font-weight: 600; color: var(--ink); }
.field input, .field select, .field textarea {
  width: 100%; font: inherit; font-size: 16px; color: var(--ink); background: var(--light);
  border: 1.5px solid transparent; border-radius: 12px; padding: 12px 14px; transition: border-color .2s ease, background .2s ease;
}
.field textarea { resize: vertical; min-height: 84px; }
.field input::placeholder, .field textarea::placeholder { color: var(--ink-3); }
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: var(--teal); background: var(--white); }
.field.is-invalid input { border-color: #D64545; background: #FFF5F5; }

.chips { border: 0; padding: 0; margin: 0; display: flex; flex-wrap: wrap; gap: 8px; min-width: 0; }
.chips legend { padding: 0; margin-bottom: 8px; }
.chips label { position: relative; cursor: pointer; }
.chips input { position: absolute; opacity: 0; pointer-events: none; }
.chips span {
  display: inline-block; padding: 8px 14px; border-radius: 999px; font-size: 14px; font-weight: 500;
  background: var(--light); border: 1.5px solid var(--line); transition: all .2s ease; user-select: none;
}
.chips label:hover span { border-color: var(--teal); }
.chips input:checked + span { background: rgba(20, 201, 180, .14); border-color: var(--teal); color: var(--teal-deep); font-weight: 600; }
.chips input:focus-visible + span { outline: 2px solid var(--teal); outline-offset: 2px; }

.modal__honey { position: absolute; left: -9999px; width: 1px; height: 1px; }
.modal__error { margin: 0; padding: 10px 14px; border-radius: 12px; background: #FFF1F1; color: #B42318; font-size: 14px; }
.modal__submit { width: 100%; justify-content: center; }
.modal__submit:disabled { opacity: .7; cursor: wait; }
.modal__small { margin: -6px 0 0; text-align: center; font-size: 13px; color: var(--ink-3); }

.modal__done { justify-items: center; text-align: center; padding-block: clamp(48px, 8vw, 72px); }
.modal__done p { margin: 0; color: var(--ink-2); max-width: 40ch; }
.modal__done .btn { min-width: 200px; justify-content: center; }
.modal__tick { width: 64px; height: 64px; border-radius: 50%; background: rgba(20, 201, 180, .16); display: grid; place-items: center; animation: animPop .5s ease; }
.modal__tick svg { width: 30px; height: 30px; fill: none; stroke: var(--teal-deep); stroke-width: 3; stroke-linecap: round; stroke-linejoin: round; }
.btn--outline { background: transparent; color: var(--navy); border: 1.5px solid var(--line); }
.btn--outline:hover { border-color: var(--navy); }

@media (max-width: 560px) {
  .field-grid { grid-template-columns: 1fr; }
  .modal { border-radius: 22px; }
}

/* =========================================================
   Hero logo: assembles on load (dots fly out to the ring, arrow halves
   lock together), then stays alive with a light chasing round the dots
   ========================================================= */
.hub__core .mark { width: 100%; height: 100%; position: relative; overflow: visible; filter: drop-shadow(0 0 40px rgba(20, 201, 180, .35)); }
.mark * { transform-box: fill-box; transform-origin: center; }
.mark__bg { animation: markBg .7s cubic-bezier(.2, .7, .2, 1) both; }
.mark__dot {
  animation:
    markDot .7s cubic-bezier(.34, 1.56, .64, 1) calc(.35s + var(--i) * 70ms) both,
    markChase 3s ease-in-out calc(2.4s + var(--i) * 300ms) infinite;
}
.mark__half { animation: markHalfL .6s cubic-bezier(.2, .7, .2, 1) 1.15s both; }
.mark__half--r { animation-name: markHalfR; }
.mark__arrow { animation: markLaunch .7s cubic-bezier(.3, 0, .2, 1) 1.7s both, markFloat 4s ease-in-out 2.4s infinite; }

@keyframes markBg { from { transform: scale(.4); opacity: 0; } to { transform: none; opacity: 1; } }
@keyframes markDot { from { transform: translate(var(--dx), var(--dy)) scale(0); opacity: 0; } to { transform: none; opacity: 1; } }
@keyframes markChase { 0%, 20%, 100% { transform: none; opacity: 1; } 10% { transform: scale(1.45); opacity: .7; } }
@keyframes markHalfL { from { transform: translate(-16px, 10px); opacity: 0; } to { transform: none; opacity: 1; } }
@keyframes markHalfR { from { transform: translate(16px, 10px); opacity: 0; } to { transform: none; opacity: 1; } }
@keyframes markLaunch { 0%, 100% { transform: none; } 40% { transform: translateY(-7px) scale(1.06); } }
@keyframes markFloat { 0%, 100% { transform: none; } 50% { transform: translateY(-2.5px); } }

@media (prefers-reduced-motion: reduce) {
  .mark *, .mark { animation: none !important; }
}
.modal [hidden] { display: none !important; }
.modal { scrollbar-width: none; }
.modal::-webkit-scrollbar { display: none; }

/* =========================================================
   Theme toggle + dark mode
   Same brand (navy, teal, light), just turned down: a near-black navy page,
   slightly raised navy surfaces, hairline borders and teal as the only colour
   ========================================================= */
/* Day / night switch: a knob slides across, sun by day, moon by night */
.theme-switch {
  position: relative; width: 60px; height: 32px; flex: none; padding: 0; cursor: pointer;
  border-radius: 999px; border: 1px solid var(--line); background: var(--light);
  transition: background-color .5s ease, border-color .5s ease;
}
.theme-switch:hover { border-color: rgba(20, 201, 180, .6); }
.theme-switch:focus-visible { outline: 2px solid var(--teal); outline-offset: 3px; }
.theme-switch__knob {
  position: absolute; top: 3px; left: 3px; width: 24px; height: 24px; border-radius: 50%;
  display: grid; place-items: center; background: #FFFFFF;
  box-shadow: 0 2px 6px rgba(11, 19, 36, .18), 0 0 0 1px rgba(11, 19, 36, .04);
  transition: transform .5s cubic-bezier(.65, 0, .35, 1), background-color .5s ease, box-shadow .5s ease;
}
.theme-switch__knob svg {
  grid-area: 1 / 1; width: 14px; height: 14px; fill: none; stroke-width: 2.2; stroke-linecap: round; stroke-linejoin: round;
  transition: transform .5s cubic-bezier(.65, 0, .35, 1), opacity .35s ease;
}
.theme-switch__sun { stroke: #E89A1E; }
.theme-switch__moon { stroke: var(--teal); fill: var(--teal) !important; opacity: 0; transform: rotate(-120deg) scale(.4); }
[data-theme="dark"] .theme-switch { background: rgba(243, 247, 246, .06); border-color: rgba(243, 247, 246, .12); }
[data-theme="dark"] .theme-switch__knob { transform: translateX(28px); background: #18263F; box-shadow: 0 2px 8px rgba(0, 0, 0, .5), 0 0 0 1px rgba(20, 201, 180, .25); }
[data-theme="dark"] .theme-switch__sun { opacity: 0; transform: rotate(120deg) scale(.4); }
[data-theme="dark"] .theme-switch__moon { opacity: 1; transform: none; }

/* Logo colours follow the theme (brand kit light and on-dark versions) */
:root { --logo-disc: #0B1324; --logo-word: #0B1324; --logo-ai: #0A8A7C; }
.brand-logo { display: block; height: 36px; width: auto; }
.footer__base .brand-logo { height: 32px; }

/* Theme switch: the new theme grows out of the toggle as a circle */
/* Theme switch: the whole page cross-fades at once (logo, glows and all) */
::view-transition-old(root), ::view-transition-new(root) { animation-duration: .45s; animation-timing-function: ease; }
/* The switch animates itself, so keep it out of the page fade */
.theme-switch { view-transition-name: theme-switch; }
::view-transition-group(theme-switch), ::view-transition-old(theme-switch), ::view-transition-new(theme-switch) { animation: none; }
::view-transition-old(theme-switch) { display: none; }

:root[data-theme="dark"] {
  color-scheme: dark;
  --logo-disc: #18263F;
  --logo-word: #F3F7F6;
  --logo-ai: #14C9B4;
  --page: #070D19;
  --white: #0D1627;           /* cards, windows, pop-up */
  --raised: #111C30;          /* inputs, chips, inner panels */
  --ink: #EEF3F2;
  --ink-2: #A3AFBE;
  --ink-3: #6C7A8E;
  --line: rgba(243, 247, 246, .08);
  --teal-deep: #14C9B4;       /* teal text needs the brighter teal on dark */
  --shadow: 0 30px 80px -30px rgba(0, 0, 0, .7);
}
[data-theme="dark"] body { background: var(--page); }

/* Nav */
[data-theme="dark"] .nav { background: rgba(7, 13, 25, .72); }
[data-theme="dark"] .nav__toggle span { background: var(--ink); }
[data-theme="dark"] .nav__mobile { background: var(--page); }

/* Navy panels sit on an even darker page, so give them a hairline edge */
[data-theme="dark"] .hero__panel,
[data-theme="dark"] .cta__panel { box-shadow: inset 0 0 0 1px rgba(243, 247, 246, .06); }
[data-theme="dark"] .section--light { background: #0A1221; }
[data-theme="dark"] .section--dark { border-block: 1px solid rgba(243, 247, 246, .05); }
[data-theme="dark"] .tile__inner { background: #FFFFFF; }

/* Cards and steps */
[data-theme="dark"] .card,
[data-theme="dark"] .steps li { border-color: var(--line); }
[data-theme="dark"] .card:hover { border-color: rgba(20, 201, 180, .3); }
[data-theme="dark"] .card__icon,
[data-theme="dark"] .steps .mono,
[data-theme="dark"] .demo__label .mono { background: rgba(20, 201, 180, .1); box-shadow: inset 0 0 0 1px rgba(20, 201, 180, .2); }
[data-theme="dark"] .steps li:hover { box-shadow: 0 24px 48px -28px rgba(0, 0, 0, .8); }

/* Black logos turn white on dark */
[data-theme="dark"] .models img[src*="openai"],
[data-theme="dark"] .logo img[src*="openai"],
[data-theme="dark"] .logo img[src*="notion"],
[data-theme="dark"] .logo img[src*="mailchimp"],
[data-theme="dark"] .logo img[src*="slack"] { filter: brightness(0) invert(.94); }

/* Demo window */
[data-theme="dark"] .demo { box-shadow: 0 40px 100px -40px rgba(0, 0, 0, .8), 0 0 0 8px rgba(243, 247, 246, .03); }
[data-theme="dark"] .demo__bar { background: #0B1423; }
[data-theme="dark"] .demo__dots i { background: rgba(243, 247, 246, .12); }
[data-theme="dark"] .demo__status { background: rgba(243, 247, 246, .06); }
[data-theme="dark"] .demo__status.is-wait { background: rgba(255, 181, 71, .12); color: var(--amber); }
[data-theme="dark"] .demo__status.is-done { background: rgba(20, 201, 180, .14); }
[data-theme="dark"] .demo__note { background: rgba(255, 181, 71, .05); border-color: rgba(255, 181, 71, .16); color: #E8DDC6; }
[data-theme="dark"] .demo__approve.is-click { color: var(--navy); }

/* Booking card on the final panel */
[data-theme="dark"] .book { background: var(--white); color: var(--ink); box-shadow: 0 40px 80px -40px rgba(0, 0, 0, .8), 0 0 0 1px rgba(20, 201, 180, .2); }
[data-theme="dark"] .book h3 { color: var(--ink); }
[data-theme="dark"] .book__meta { border-color: var(--line); }
[data-theme="dark"] .book__meta li { color: var(--ink-2); }
[data-theme="dark"] .book .book__email { color: var(--ink-3); }
[data-theme="dark"] .book__email span { color: var(--ink); }

/* Pop-up form */
[data-theme="dark"] .modal { box-shadow: 0 40px 120px -30px rgba(0, 0, 0, .8), 0 0 0 1px var(--line); }
[data-theme="dark"] .modal::backdrop { background: rgba(3, 6, 12, .7); }
[data-theme="dark"] .modal__close { background: rgba(243, 247, 246, .06); }
[data-theme="dark"] .modal__close:hover { background: rgba(243, 247, 246, .12); }
[data-theme="dark"] .modal__close svg { stroke: var(--ink); }
[data-theme="dark"] .field input,
[data-theme="dark"] .field select,
[data-theme="dark"] .field textarea { background: var(--raised); }
[data-theme="dark"] .field input:focus,
[data-theme="dark"] .field select:focus,
[data-theme="dark"] .field textarea:focus { background: var(--raised); }
[data-theme="dark"] .field.is-invalid input { border-color: #F97066; background: rgba(249, 112, 102, .08); }
[data-theme="dark"] .chips span { background: var(--raised); border-color: var(--line); }
[data-theme="dark"] .chips input:checked + span { background: rgba(20, 201, 180, .14); border-color: var(--teal); }
[data-theme="dark"] .modal__error { background: rgba(249, 112, 102, .1); color: #FDA29B; }
[data-theme="dark"] .btn--outline { color: var(--ink); }
[data-theme="dark"] .btn--outline:hover { border-color: var(--ink-3); }
