/* ============================================================
   Calviq — Global Stylesheet
   Dark futuristic theme: near-black canvas, glass panels,
   glowing electric-blue / cyan accents, aurora + HUD details.
   Shared across all pages. Class names kept identical to the
   previous theme so all HTML + JS behaviour is unchanged.
   ============================================================ */

/* ---------- Design tokens ---------- */
:root {
  --bg:            #05070E;   /* near-black navy canvas */
  --bg2:           #0A0E1A;
  --surface:       rgba(255, 255, 255, 0.04);  /* glass panel */
  --surface-2:     rgba(255, 255, 255, 0.06);
  --solid:         #0C1120;   /* solid panel (forms, inputs) */
  --heading:       #FFFFFF;
  --text:          #B7BFCE;   /* body text */
  --muted:         #98A2B6;   /* secondary text (brightened for readability) */
  --border:        rgba(255, 255, 255, 0.09);
  --border-2:      rgba(255, 255, 255, 0.14);

  --blue:          #3B82F6;
  --blue-dark:     #2563EB;
  --cyan:          #22D3EE;
  --violet:        #A78BFA;
  --grad:          linear-gradient(90deg, #60A5FA, #22D3EE, #A78BFA, #60A5FA);

  --glow-blue:     0 0 30px rgba(59, 130, 246, 0.45);
  --shadow-lg:     0 24px 60px rgba(0, 0, 0, 0.55);

  --radius:        16px;
  --maxw:          1180px;
  --ease:          cubic-bezier(0.22, 1, 0.36, 1);
}

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

html { scroll-behavior: smooth; }

body {
  font-family: 'Inter', system-ui, -apple-system, sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.65;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  animation: pageFadeIn 0.45s ease both;   /* gentle load-in */
}
@keyframes pageFadeIn { from { opacity: 0; } to { opacity: 1; } }

/* ---------- Background: Aurora Nebula ----------
   A flowing WebGL nebula, painted onto #bg-canvas (injected by script.js and
   shared across every page). Phones and reduced-motion get a single still
   frame; if WebGL is unavailable the CSS fallback wash below shows through. */
#bg-canvas {
  position: fixed;
  inset: 0;
  z-index: -3;
  display: block;
  width: 100%;
  height: 100%;
  pointer-events: none;
}
/* fallback wash — sits behind the canvas, visible before it paints / if WebGL
   is missing, so the page is never flat black */
body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -4;
  pointer-events: none;
  background:
    radial-gradient(70% 55% at 22% 12%, rgba(37, 99, 235, 0.20), transparent 60%),
    radial-gradient(60% 50% at 88% 28%, rgba(34, 211, 238, 0.10), transparent 55%),
    radial-gradient(65% 60% at 60% 92%, rgba(124, 58, 237, 0.13), transparent 60%),
    var(--bg);
}

a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }
ul { list-style: none; }

/* Visible keyboard-focus ring (does not show on mouse click) */
a:focus-visible,
button:focus-visible,
.btn:focus-visible,
.card:focus-visible,
input:focus-visible,
select:focus-visible,
textarea:focus-visible {
  outline: 2px solid var(--cyan);
  outline-offset: 3px;
  border-radius: 8px;
}

h1, h2, h3, h4 {
  color: var(--heading);
  line-height: 1.12;
  font-weight: 700;
  letter-spacing: -0.03em;
}

/* Big display moments use Space Grotesk */
.hero h1,
.section-head h2,
.cta-band h2,
.final-cta h2,
.mission blockquote,
.live-demo h2 {
  font-family: 'Space Grotesk', 'Inter', sans-serif;
}

/* ---------- Layout helpers ---------- */
.container {
  width: 100%;
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 0 24px;
}

.section { padding: 120px 0; position: relative; }

.section-head {
  text-align: center;
  max-width: 680px;
  margin: 0 auto 64px;
}
.section-head h2 {
  font-size: clamp(2rem, 4vw, 3rem);
  margin-bottom: 16px;
}
.section-head p { color: var(--muted); font-size: 1.06rem; }

/* Animated gradient accent text */
.grad-text {
  background: var(--grad);
  background-size: 300% 100%;
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  animation: gradShift 8s linear infinite;
}
@keyframes gradShift { to { background-position: 300% 0; } }

/* Eyebrow — glass chip */
.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 0.76rem;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: #cfe0ff;
  margin-bottom: 22px;
  padding: 7px 16px;
  border-radius: 999px;
  border: 1px solid var(--border);
  background: var(--surface);
  -webkit-backdrop-filter: blur(8px);
          backdrop-filter: blur(8px);
}

/* ============================================================
   Buttons
   ============================================================ */
.btn {
  position: relative;
  overflow: hidden;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font: inherit;
  font-weight: 600;
  font-size: 1rem;
  padding: 14px 28px;
  border-radius: 999px;
  border: 1px solid transparent;
  cursor: pointer;
  transition: background 0.2s ease, color 0.2s ease,
              transform 0.2s ease, box-shadow 0.3s var(--ease), border-color 0.2s ease;
}
.btn > * { position: relative; z-index: 2; }

/* Primary — gradient blue pill with glow + light sweep */
.btn-primary {
  background: linear-gradient(180deg, #3B82F6, #2563EB);
  color: #fff;
  box-shadow: 0 0 0 1px rgba(59, 130, 246, 0.35), 0 8px 30px rgba(37, 99, 235, 0.45);
}
.btn-primary::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
  background: linear-gradient(115deg, transparent 30%, rgba(255, 255, 255, 0.4) 48%, transparent 66%);
  transform: translateX(-120%);
  transition: transform 0.6s ease;
}
.btn-primary:hover::before { transform: translateX(120%); }
.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 0 0 1px rgba(59, 130, 246, 0.6), 0 14px 44px rgba(37, 99, 235, 0.6);
}

/* Secondary / ghost — glass, glowing border on hover */
.btn-ghost {
  background: var(--surface);
  color: #fff;
  border-color: var(--border-2);
  -webkit-backdrop-filter: blur(8px);
          backdrop-filter: blur(8px);
}
.btn-ghost:hover {
  border-color: rgba(59, 130, 246, 0.7);
  box-shadow: 0 0 26px rgba(59, 130, 246, 0.28);
  transform: translateY(-2px);
}

/* Click ripple (spawned by script.js) */
.ripple {
  position: absolute;
  z-index: 1;
  border-radius: 50%;
  transform: scale(0);
  background: rgba(255, 255, 255, 0.35);
  pointer-events: none;
  animation: ripple 0.6s ease-out forwards;
}
@keyframes ripple { to { transform: scale(2.6); opacity: 0; } }

/* ============================================================
   Navbar (shared) — glass, transparent-ish at top
   ============================================================ */
.nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  background: rgba(5, 7, 14, 0.35);
  -webkit-backdrop-filter: blur(14px) saturate(140%);
          backdrop-filter: blur(14px) saturate(140%);
  border-bottom: 1px solid transparent;
  transition: background 0.3s ease, box-shadow 0.3s ease, border-color 0.3s ease;
}
.nav.scrolled {
  background: rgba(5, 7, 14, 0.72);
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.45);
  border-bottom-color: var(--border);
}

.nav-inner {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 74px;
}

.brand {
  position: relative;
  font-family: 'Space Grotesk', sans-serif;
  font-size: 1.4rem;
  font-weight: 700;
  letter-spacing: -0.03em;
  color: #fff;
  display: inline-flex;
  align-items: center;
}
/* dot sits above the wordmark (like a tittle over the "i"), matching the
   updated logo, instead of inline to the left */
.brand .dot {
  position: absolute;
  top: -0.62em;
  left: 1.85em;   /* centred above the "i" in Calviq */
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: var(--violet);
  box-shadow: 0 0 12px var(--violet), 0 0 22px rgba(167, 139, 250, 0.55);
}

.nav-links {
  display: flex;
  align-items: center;
  justify-content: center;
  flex: 1;
  gap: 36px;
}
.nav-links a {
  color: var(--muted);
  font-size: 0.95rem;
  font-weight: 500;
  transition: color 0.2s ease;
}
.nav-links a:hover,
.nav-links a.active { color: #fff; }

.nav-links .btn {
  position: absolute;
  right: 0;
  top: 50%;
  transform: translateY(-50%);
  padding: 10px 22px;
}
.nav-links .btn.btn-primary:hover { transform: translateY(-50%) translateY(-2px); }

/* Mobile hamburger */
.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: 0;
  cursor: pointer;
  padding: 6px;
  z-index: 2;
}
.nav-toggle span {
  width: 26px; height: 2px;
  background: #fff;
  border-radius: 2px;
  transition: transform 0.3s, opacity 0.3s;
}

/* ============================================================
   Hero
   ============================================================ */
.hero {
  position: relative;
  padding: 160px 0 90px;
  text-align: center;
  overflow: hidden;
}
.hero-home {
  min-height: 100vh;
  display: flex;
  align-items: center;
  padding: 120px 0;
}

/* Three.js orb canvas — centred square behind the hero content */
#hero-canvas {
  position: absolute;
  top: 50%; left: 50%;
  width: 760px;
  height: 760px;
  transform: translate(-50%, -46%);
  z-index: 0;
  pointer-events: none;
  display: block;
}
/* The hero now sits on the same Aurora background as the rest of the page —
   no veil or bottom fade, so there's no dark band / boundary line under it. */

/* dark-theme decorative layers injected by script.js are unused here */
.hero-mesh,
.hero-particles { display: none !important; }

.hero .container { position: relative; z-index: 2; }

.hero h1 {
  font-size: clamp(2.8rem, 6.8vw, 5.4rem);
  letter-spacing: -0.04em;
  max-width: 16ch;
  margin: 0 auto 22px;
}
/* inner-page headers (Services/Work/About/Contact) — smaller than the
   full-viewport homepage hero, which keeps its size */
.hero:not(.hero-home) h1 {
  font-size: clamp(2.2rem, 4.6vw, 3.6rem);
}

.hero p.sub {
  color: #AEB6C6;
  font-size: clamp(1.05rem, 2.2vw, 1.3rem);
  max-width: 60ch;
  margin: 0 auto 40px;
}

.hero-actions {
  display: flex;
  gap: 16px;
  justify-content: center;
  flex-wrap: wrap;
}

.hero-stats {
  display: flex;
  gap: 56px;
  justify-content: center;
  flex-wrap: wrap;
  margin-top: 72px;
}
.hero-stats .stat span {
  display: block;
  font-family: 'Space Grotesk', sans-serif;
  font-size: 2.2rem;
  font-weight: 700;
}
.hero-stats .stat small { color: var(--muted); font-size: 0.9rem; }

/* ============================================================
   Cards grid (services / features) — glass + HUD corners
   ============================================================ */
.grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(290px, 1fr));
  gap: 22px;
}

.card {
  position: relative;
  display: block;
  color: inherit;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 18px;
  padding: 32px 28px;
  overflow: hidden;
  -webkit-backdrop-filter: blur(12px);
          backdrop-filter: blur(12px);
  transition: transform 0.25s var(--ease), border-color 0.25s ease, box-shadow 0.25s ease;
}
.card > * { position: relative; z-index: 1; }

/* HUD corner ticks */
.card::before,
.card::after {
  content: "";
  position: absolute;
  width: 16px; height: 16px;
  opacity: 0.45;
  transition: opacity 0.25s ease;
  z-index: 1;
}
.card::before { top: 12px; left: 12px; border-top: 2px solid var(--cyan); border-left: 2px solid var(--cyan); }
.card::after  { bottom: 12px; right: 12px; border-bottom: 2px solid var(--cyan); border-right: 2px solid var(--cyan); }

.card:hover,
.card.card:hover {
  transform: translateY(-6px);
  border-color: rgba(59, 130, 246, 0.5);
  box-shadow: 0 22px 50px rgba(0, 0, 0, 0.5), 0 0 40px rgba(59, 130, 246, 0.15);
}
.card:hover::before,
.card:hover::after { opacity: 1; }

/* cursor-follow glow — .card-glow span injected by script.js on hover devices.
   Sits behind the card content (.card > * is z-index 1) and the HUD ticks. */
.card .card-glow {
  position: absolute;
  inset: 0;
  z-index: 0;
  border-radius: inherit;
  opacity: 0;
  pointer-events: none;
  background: radial-gradient(260px circle at var(--mx, 50%) var(--my, 50%),
    rgba(59, 130, 246, 0.20), transparent 62%);
  transition: opacity 0.35s ease;
}
.card:hover .card-glow { opacity: 1; }

/* Show the card's own cursor over its text — pointer for link cards
   (home), arrow for non-link cards (services) — never the text I-beam. */
a.card { cursor: pointer; }
article.card { cursor: default; }
.card h3, .card p, .card .tagline, .card .badge, .card .icon, .card svg { cursor: inherit; }

/* glowing icon tile */
.card .icon {
  width: 56px;
  height: 56px;
  border-radius: 14px;
  display: grid;
  place-items: center;
  margin-bottom: 20px;
  background: linear-gradient(160deg, rgba(59, 130, 246, 0.25), rgba(34, 211, 238, 0.06));
  border: 1px solid rgba(120, 180, 255, 0.22);
  color: #9ccdff;
  box-shadow: inset 0 0 24px rgba(59, 130, 246, 0.18);
  transition: color 0.25s ease, box-shadow 0.25s ease;
}
.card:hover .icon {
  color: #fff;
  box-shadow: 0 0 30px rgba(59, 130, 246, 0.5), inset 0 0 24px rgba(59, 130, 246, 0.25);
}
.card .icon svg { width: 27px; height: 27px; transition: transform 0.25s ease; }
.card:hover .icon svg { transform: scale(1.08); }

.card h3 { color: #fff; font-size: 1.25rem; margin-bottom: 6px; font-family: 'Space Grotesk', sans-serif; }
.card .tagline { color: var(--cyan); font-size: 0.85rem; font-weight: 600; margin-bottom: 12px; }
.card p { color: var(--muted); font-size: 0.97rem; }

/* flagship (Nexus) */
.card.featured {
  order: -1;   /* pull the Nexus card to the front of the grid */
  background: linear-gradient(160deg, rgba(59, 130, 246, 0.18), rgba(124, 58, 237, 0.08));
  border-color: rgba(59, 130, 246, 0.5);
}
.card.featured .icon { color: #fff; }
.card.featured:hover,
.card.featured.card:hover {
  box-shadow: 0 26px 56px rgba(0, 0, 0, 0.55), 0 0 50px rgba(59, 130, 246, 0.28);
}
.card .badge {
  position: absolute;
  top: 16px; right: 16px;
  font-size: 0.64rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: #fff;
  background: linear-gradient(90deg, #3B82F6, #22D3EE);
  padding: 5px 11px;
  border-radius: 999px;
  font-weight: 700;
  box-shadow: 0 0 18px rgba(59, 130, 246, 0.5);
}

/* service card with action link */
.card .card-cta { margin-top: 22px; }
.card .card-cta a {
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--cyan);
  display: inline-flex;
  align-items: center;
  gap: 6px;
  transition: gap 0.2s ease;
}
.card .card-cta a:hover { gap: 12px; }

/* ============================================================
   CTA band (Home + Services + About)
   ============================================================ */
.cta-band {
  position: relative;
  text-align: center;
  padding: 84px 40px;
  border-radius: 24px;
  overflow: hidden;
  background: linear-gradient(160deg, rgba(59, 130, 246, 0.16), rgba(124, 58, 237, 0.08));
  border: 1px solid rgba(59, 130, 246, 0.32);
}
.cta-band::before {
  content: "";
  position: absolute;
  top: -140px; left: 50%;
  transform: translateX(-50%);
  width: 600px; height: 400px;
  background: radial-gradient(ellipse, rgba(59, 130, 246, 0.3), transparent 70%);
  pointer-events: none;
}
.cta-band > * { position: relative; z-index: 1; }
.cta-band h2 {
  color: #fff;
  font-size: clamp(1.9rem, 4vw, 2.7rem);
  margin-bottom: 16px;
}
.cta-band p { color: #AEB6C6; max-width: 56ch; margin: 0 auto 32px; }

/* ============================================================
   About page
   ============================================================ */
.about-lead {
  font-size: clamp(1.2rem, 2.6vw, 1.7rem);
  max-width: 62ch;
  color: var(--text);
  font-weight: 400;
  margin: 0 auto;
  text-align: center;
  line-height: 1.5;
}
.mission {
  position: relative;
  margin-top: 72px;
  text-align: center;
  padding: 60px 40px;
  border-radius: 24px;
  overflow: hidden;
  background: linear-gradient(160deg, rgba(59, 130, 246, 0.14), rgba(34, 211, 238, 0.05));
  border: 1px solid rgba(59, 130, 246, 0.28);
}
.mission .eyebrow { margin-bottom: 22px; }
.mission blockquote {
  font-size: clamp(1.4rem, 3vw, 2rem);
  font-weight: 700;
  color: #fff;
  max-width: 26ch;
  margin: 0 auto;
  line-height: 1.3;
  letter-spacing: -0.02em;
}

.value-grid { margin-top: 72px; }
.value-grid .card .icon { margin-bottom: 16px; }

/* ---------- Founder note (no photo — initials badge instead) ---------- */
.founder {
  position: relative;
  margin-top: 72px;
  max-width: 640px;
  margin-left: auto;
  margin-right: auto;
  text-align: center;
  padding: 48px 40px;
  border-radius: 22px;
  background: var(--surface);
  border: 1px solid var(--border);
  -webkit-backdrop-filter: blur(12px);
          backdrop-filter: blur(12px);
}
.founder-avatar {
  width: 64px;
  height: 64px;
  margin: 0 auto 24px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  font-family: 'Space Grotesk', sans-serif;
  font-weight: 700;
  font-size: 1.15rem;
  color: #fff;
  background: linear-gradient(160deg, #3B82F6, #7C3AED);
  box-shadow: 0 0 30px rgba(59, 130, 246, 0.35);
}
.founder blockquote {
  font-size: clamp(1.15rem, 2.4vw, 1.5rem);
  font-weight: 600;
  color: #fff;
  max-width: 34ch;
  margin: 0 auto 20px;
  line-height: 1.4;
}
.founder-name { color: #fff; font-weight: 600; font-size: 0.98rem; }
.founder-role { color: var(--muted); font-size: 0.88rem; margin-top: 2px; }

/* ============================================================
   Contact page / forms
   ============================================================ */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
  align-items: start;
}

.form {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 36px;
  -webkit-backdrop-filter: blur(12px);
          backdrop-filter: blur(12px);
}
.field { margin-bottom: 20px; }
.field label {
  display: block;
  font-size: 0.88rem;
  font-weight: 500;
  margin-bottom: 8px;
  color: #DCE2EE;
}
.field input,
.field select,
.field textarea {
  width: 100%;
  font: inherit;
  font-size: 0.98rem;
  color: #fff;
  background: rgba(0, 0, 0, 0.25);
  border: 1px solid var(--border-2);
  border-radius: 10px;
  padding: 13px 15px;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}
.field input::placeholder,
.field textarea::placeholder { color: #66708a; }
.field select option { color: #fff; background: #0C1120; }
.field input:focus,
.field select:focus,
.field textarea:focus {
  outline: none;
  border-color: var(--blue);
  box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.22), 0 0 22px rgba(59, 130, 246, 0.2);
}
.field textarea { resize: vertical; min-height: 120px; }
.field select { appearance: none; cursor: pointer; }
.form .btn { width: 100%; justify-content: center; margin-top: 6px; }
.form-note { font-size: 0.82rem; color: var(--muted); text-align: center; margin-top: 16px; }

/* contact info side panel */
.contact-info h3 { font-size: 1.5rem; margin-bottom: 14px; color: #fff; }
.contact-info > p { color: var(--muted); margin-bottom: 32px; }
.info-item {
  display: flex;
  gap: 16px;
  align-items: flex-start;
  padding: 20px;
  border: 1px solid var(--border);
  border-radius: 14px;
  background: var(--surface);
  -webkit-backdrop-filter: blur(10px);
          backdrop-filter: blur(10px);
  margin-bottom: 16px;
  transition: border-color 0.25s ease, box-shadow 0.25s ease;
}
.info-item:hover { border-color: rgba(59, 130, 246, 0.45); box-shadow: 0 0 30px rgba(59, 130, 246, 0.12); }
.info-item .icon {
  width: 44px; height: 44px;
  flex: none;
  border-radius: 11px;
  display: grid; place-items: center;
  background: linear-gradient(160deg, rgba(59, 130, 246, 0.25), rgba(34, 211, 238, 0.06));
  border: 1px solid rgba(120, 180, 255, 0.22);
  color: #9ccdff;
}
.info-item .icon svg { width: 22px; height: 22px; }
.info-item strong { display: block; font-size: 1rem; color: #fff; }
.info-item span { color: var(--muted); font-size: 0.92rem; }

/* WhatsApp CTA button */
.btn-whatsapp {
  background: linear-gradient(180deg, #25D366, #1FAF54);
  color: #fff;
  width: 100%;
  justify-content: center;
  margin-top: 8px;
  box-shadow: 0 8px 26px rgba(37, 211, 102, 0.35);
}
.btn-whatsapp:hover {
  transform: translateY(-2px);
  box-shadow: 0 12px 36px rgba(37, 211, 102, 0.5);
}

/* ============================================================
   Footer (shared) — dark, minimal
   ============================================================ */
.footer {
  background: transparent;
  border-top: 1px solid var(--border);
  padding: 64px 0 32px;
  margin-top: 0;
}
.footer-top {
  display: flex;
  justify-content: space-between;
  gap: 40px;
  flex-wrap: wrap;
  padding-bottom: 44px;
}
.footer-brand { max-width: 320px; }
.footer-brand .brand { color: #fff; margin-bottom: 14px; }
.footer-brand p { color: var(--muted); font-size: 0.95rem; }
.footer-cols { display: flex; gap: 64px; flex-wrap: wrap; }
.footer-col h4 {
  color: #6b7688;
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  margin-bottom: 18px;
}
.footer-col a {
  display: block;
  color: var(--muted);
  font-size: 0.95rem;
  margin-bottom: 12px;
  transition: color 0.2s ease;
}
.footer-col a:hover { color: #fff; }
.footer-bottom {
  border-top: 1px solid var(--border);
  padding-top: 24px;
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
  color: var(--muted);
  font-size: 0.85rem;
}

/* ============================================================
   Scroll progress bar (injected by script.js)
   ============================================================ */
.scroll-progress {
  position: fixed;
  top: 0; left: 0;
  height: 3px;
  width: 100%;
  z-index: 200;
  background: linear-gradient(90deg, #3B82F6, #22D3EE);
  box-shadow: 0 0 12px rgba(34, 211, 238, 0.6);
  transform: scaleX(0);
  transform-origin: 0 50%;
}

/* ============================================================
   Aurora blobs (injected as .orb by script.js)
   ============================================================ */
.orb {
  position: fixed;
  border-radius: 50%;
  filter: blur(120px);
  opacity: 0.42;
  z-index: -1;
  pointer-events: none;
}
.orb-1 { width: 520px; height: 520px; background: #2563EB; top: -160px; left: -120px; animation: orbDrift1 26s ease-in-out infinite; }
.orb-2 { width: 460px; height: 460px; background: #22D3EE; bottom: -180px; right: -120px; animation: orbDrift2 32s ease-in-out infinite; }
.orb-3 { width: 420px; height: 420px; background: #7C3AED; top: 42%; left: 60%; opacity: 0.3; animation: orbDrift3 38s ease-in-out infinite; }
@keyframes orbDrift1 { 0%,100% { transform: translate(0,0); } 50% { transform: translate(90px,70px); } }
@keyframes orbDrift2 { 0%,100% { transform: translate(0,0); } 50% { transform: translate(-80px,-60px); } }
@keyframes orbDrift3 { 0%,100% { transform: translate(-50%,-50%); } 50% { transform: translate(-58%,-40%); } }

/* ============================================================
   Blinking cursor after the hero headline (script.js)
   ============================================================ */
.type-cursor {
  display: inline-block;
  width: 3px;
  height: 0.95em;
  margin-left: 8px;
  vertical-align: -2px;
  border-radius: 2px;
  background: var(--cyan);
  box-shadow: 0 0 10px var(--cyan);
  animation: blink 1.05s step-end infinite;
}
@keyframes blink { 0%, 100% { opacity: 1; } 50% { opacity: 0; } }

/* ============================================================
   Scroll-reveal (driven by script.js)
   ============================================================ */
.reveal {
  opacity: 0;
  transform: translateY(30px) scale(0.985);
  transition: opacity 0.7s var(--ease), transform 0.7s var(--ease);
}
.reveal.visible { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
  * { animation: none !important; transition: none !important; }
  .reveal { opacity: 1; transform: none; }
  .orb, .particle, .type-cursor { display: none !important; }
}

/* ============================================================
   Responsive (base)
   ============================================================ */
@media (max-width: 860px) {
  .contact-grid { grid-template-columns: 1fr; gap: 32px; }
}

@media (max-width: 760px) {
  .section { padding: 84px 0; }
  .hero { padding: 130px 0 70px; }
  /* Phones skip the WebGL globe (see index.html) — a soft CSS glow fills
     the space behind the headline instead, for a lighter, faster paint. */
  .hero-home {
    min-height: auto;
    padding: 150px 0 90px;
    background:
      radial-gradient(circle at 50% 34%, rgba(59, 130, 246, 0.22), transparent 52%),
      radial-gradient(circle at 50% 34%, rgba(34, 211, 238, 0.12), transparent 38%);
  }
  #hero-canvas { display: none; }

  .nav-toggle { display: flex; }
  .nav-links {
    position: absolute;
    top: 74px; left: 0; right: 0;
    flex: none;
    flex-direction: column;
    align-items: flex-start;
    justify-content: flex-start;
    gap: 0;
    background: rgba(8, 11, 20, 0.96);
    -webkit-backdrop-filter: blur(16px);
            backdrop-filter: blur(16px);
    border-bottom: 1px solid var(--border);
    box-shadow: 0 16px 30px rgba(0, 0, 0, 0.5);
    padding: 0 24px;
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.35s var(--ease), padding 0.35s var(--ease);
  }
  .nav-links.open { max-height: 400px; padding: 8px 24px 20px; }
  .nav-links a { width: 100%; padding: 14px 0; }
  .nav-links .btn {
    position: static;
    transform: none;
    margin-top: 10px;
    width: 100%;
    justify-content: center;
  }
  .nav-links .btn.btn-primary:hover { transform: translateY(-2px); }

  .hero-stats { gap: 36px; }
  .footer-top { flex-direction: column; }
  .footer-cols { gap: 40px; }
}

/* ============================================================
   HOME — added sections
   ============================================================ */

/* ---------- Grain overlay (dark sections) ---------- */
.grain {
  position: absolute;
  inset: 0;
  z-index: 0;
  opacity: 0.05;
  mix-blend-mode: overlay;
  pointer-events: none;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='2' stitchTiles='stitch'/></filter><rect width='100%25' height='100%25' filter='url(%23n)'/></svg>");
}

/* ---------- 1. Client logo strip (marquee) ---------- */
.logos { padding: 40px 0 64px; overflow: hidden; }
.logos-label {
  text-align: center;
  font-family: 'Space Grotesk', 'Inter', sans-serif;
  font-size: 0.82rem;
  font-weight: 600;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: #7E879B;
  margin-bottom: 36px;
}
.logos-marquee {
  position: relative;
  width: 100%;
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 12%, #000 88%, transparent);
          mask-image: linear-gradient(90deg, transparent, #000 12%, #000 88%, transparent);
}
.logos-track {
  display: flex;
  width: max-content;
  animation: logoScroll 34s linear infinite;
}
.logos-marquee:hover .logos-track { animation-play-state: paused; }
@keyframes logoScroll { to { transform: translateX(-50%); } }
.logo-item {
  flex: none;
  margin-right: 64px;
  opacity: 0.55;
  transition: opacity 0.25s ease, transform 0.25s ease;
}
.logo-item:hover { opacity: 1; transform: translateY(-2px); }
.logo-item svg { display: block; height: 44px; width: auto; }
/* recolour the dark wordmarks so they read on the dark bg */
.logo-item svg text { fill: #C6D0E3; }

/* ---------- 2. Process timeline (zig-zag) ---------- */
.timeline {
  list-style: none;
  max-width: 920px;
  margin: 0 auto;
  position: relative;
  padding: 10px 0;
}
.timeline::before {
  content: "";
  position: absolute;
  top: 0; bottom: 0; left: 50%;
  width: 2px;
  transform: translateX(-50%);
  background: linear-gradient(to bottom, var(--cyan), rgba(59, 130, 246, 0.15));
  box-shadow: 0 0 14px rgba(59, 130, 246, 0.35);
}
/* a glowing light that travels down the spine */
.timeline::after {
  content: "";
  position: absolute;
  left: 50%; top: 0;
  width: 2px; height: 130px;
  transform: translateX(-50%);
  background: linear-gradient(to bottom, transparent, var(--cyan), transparent);
  box-shadow: 0 0 20px 3px rgba(34, 211, 238, 0.55);
  pointer-events: none;
  animation: spineFlow 4.5s linear infinite;
}
@keyframes spineFlow { from { top: -130px; } to { top: 100%; } }
.timeline .step {
  position: relative;
  width: 50%;
  padding: 0 56px 64px;
  opacity: 0;
  transform: translateY(34px);
  transition: opacity 0.6s var(--ease), transform 0.6s var(--ease);
}
.timeline .step:last-child { padding-bottom: 0; }
.timeline .step.in { opacity: 1; transform: none; }
.timeline .step:nth-child(odd) { left: 0; text-align: right; }
.timeline .step:nth-child(even) { left: 50%; text-align: left; }
.timeline .step-num {
  position: absolute;
  top: 4px;
  z-index: 2;
  width: 56px; height: 56px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  font-family: 'Space Grotesk', sans-serif;
  font-weight: 700;
  font-size: 1.15rem;
  color: var(--muted);
  background: #0B1020;
  border: 2px solid var(--border-2);
  transition: color 0.4s ease, background 0.4s ease, border-color 0.4s ease, box-shadow 0.4s ease;
}
.timeline .step:nth-child(odd) .step-num { right: -28px; }
.timeline .step:nth-child(even) .step-num { left: -28px; }
.timeline .step-num b { position: relative; z-index: 2; font-weight: 700; }
.timeline .step.in .step-num {
  color: #fff;
  background: linear-gradient(180deg, #3B82F6, #2563EB);
  border-color: rgba(59, 130, 246, 0.7);
  box-shadow: 0 0 22px rgba(59, 130, 246, 0.6);
}
/* expanding pulse ring on the active node */
.timeline .step.in .step-num::after {
  content: "";
  position: absolute;
  inset: -5px;
  border-radius: 50%;
  border: 2px solid rgba(34, 211, 238, 0.55);
  animation: nodePulse 2.1s ease-out infinite;
  pointer-events: none;
}
@keyframes nodePulse {
  0%   { transform: scale(0.82); opacity: 0.85; }
  100% { transform: scale(1.55); opacity: 0; }
}

/* icon + phase-duration chip row above the heading */
.timeline .step-top {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 14px;
}
.timeline .step:nth-child(odd) .step-top { justify-content: flex-end; }
.timeline .step:nth-child(even) .step-top { justify-content: flex-start; }
.timeline .step-ico {
  flex: none;
  width: 38px; height: 38px;
  border-radius: 10px;
  display: grid;
  place-items: center;
  background: linear-gradient(160deg, rgba(59, 130, 246, 0.28), rgba(34, 211, 238, 0.06));
  border: 1px solid rgba(120, 180, 255, 0.24);
  color: #9ccdff;
  transition: color 0.35s ease, box-shadow 0.35s ease, transform 0.35s ease;
}
.timeline .step-ico svg { width: 20px; height: 20px; }
.timeline .step.in .step-ico {
  color: #fff;
  box-shadow: 0 0 22px rgba(59, 130, 246, 0.4);
}
.timeline .step-text:hover .step-ico { transform: translateY(-2px) scale(1.05); }
.timeline .step-phase {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--muted);
  padding: 5px 12px;
  border-radius: 999px;
  border: 1px solid var(--border);
  background: var(--surface);
  transition: color 0.35s ease, border-color 0.35s ease;
}
.timeline .step.in .step-phase {
  color: #cfe0ff;
  border-color: rgba(59, 130, 246, 0.4);
}
.timeline .step-text {
  position: relative;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 22px 26px;
  -webkit-backdrop-filter: blur(10px);
          backdrop-filter: blur(10px);
  transition: border-color 0.3s ease, box-shadow 0.3s ease, transform 0.3s ease;
}
.timeline .step.in .step-text {
  border-color: rgba(59, 130, 246, 0.35);
  box-shadow: 0 0 30px rgba(59, 130, 246, 0.1);
}
.timeline .step-text:hover {
  border-color: rgba(59, 130, 246, 0.6);
  transform: translateY(-4px);
  box-shadow: 0 16px 34px rgba(0, 0, 0, 0.4), 0 0 26px rgba(59, 130, 246, 0.15);
}
.timeline .step-text::before {
  content: "";
  position: absolute;
  top: 28px;
  width: 32px; height: 2px;
  background: var(--border-2);
}
.timeline .step:nth-child(odd) .step-text::before { right: -32px; }
.timeline .step:nth-child(even) .step-text::before { left: -32px; }
.timeline .step h3 { font-size: 1.2rem; margin-bottom: 6px; color: #fff; }
.timeline .step p { font-size: 0.98rem; color: var(--muted); }

/* ---------- 3. Stats counter bar ---------- */
.stats-bar {
  position: relative;
  padding: 76px 0;
  overflow: hidden;
}
.stats-bar::before {
  content: "";
  position: absolute;
  top: 50%; left: 50%;
  width: 760px; height: 760px;
  transform: translate(-50%, -50%);
  background: radial-gradient(circle, rgba(59, 130, 246, 0.12), transparent 65%);
  pointer-events: none;
}
.stats-row {
  position: relative;
  z-index: 1;
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 32px 64px;
  text-align: center;
}
.stats-row .stat-item { flex: 1 1 150px; max-width: 220px; }
.stats-row .counter {
  display: block;
  font-family: 'Space Grotesk', sans-serif;
  font-size: clamp(2.4rem, 5vw, 3.4rem);
  font-weight: 700;
  line-height: 1;
  background: linear-gradient(90deg, #60A5FA, #22D3EE);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  filter: drop-shadow(0 0 18px rgba(59, 130, 246, 0.35));
}
.stats-row .stat-label {
  display: block;
  margin-top: 12px;
  font-size: 0.76rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--muted);
}

/* ---------- Case studies / portfolio (Work page) ---------- */
.case-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 28px; }
.work-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(320px, 1fr)); gap: 28px; }
.case-card { display: flex; flex-direction: column; }

.case-thumb {
  position: relative;
  height: 180px;
  border-radius: 12px;
  display: grid;
  place-items: center;
  overflow: hidden;
  margin-bottom: 22px;
  transition: transform 0.3s ease;
}
.case-card:hover .case-thumb { transform: scale(1.015); }
.case-thumb::after { content: ""; position: absolute; inset: 0; }

.thumb-a { background: linear-gradient(135deg, #2563EB, #1D4ED8); }
.thumb-a::after { background-image: radial-gradient(rgba(255,255,255,0.16) 1.5px, transparent 1.5px); background-size: 18px 18px; }
.thumb-b { background: linear-gradient(135deg, #22D3EE, #2563EB); }
.thumb-b::after { background-image: repeating-linear-gradient(45deg, rgba(255,255,255,0.10) 0 2px, transparent 2px 14px); }
.thumb-c { background: linear-gradient(160deg, #1D4ED8, #0B2E85); }
.thumb-c::after { background-image: radial-gradient(circle at 28% 28%, rgba(255,255,255,0.25), transparent 55%); }
.thumb-d { background: linear-gradient(135deg, #3B82F6, #1E40AF); }
.thumb-d::after { background-image: linear-gradient(rgba(255,255,255,0.10) 1px, transparent 1px), linear-gradient(90deg, rgba(255,255,255,0.10) 1px, transparent 1px); background-size: 16px 16px; }
.thumb-e { background: linear-gradient(135deg, #2563EB, #22D3EE); }
.thumb-e::after { background-image: repeating-radial-gradient(circle at 50% 50%, rgba(255,255,255,0.14) 0 2px, transparent 2px 10px); }
.thumb-f { background: linear-gradient(160deg, #7C3AED, #2563EB 55%, #22D3EE); }
.thumb-f::after { background-image: radial-gradient(circle at 72% 22%, rgba(255,255,255,0.22), transparent 50%); }

.thumb-icon {
  position: relative;
  z-index: 1;
  width: 62px; height: 62px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: rgba(255, 255, 255, 0.16);
  border: 1px solid rgba(255, 255, 255, 0.35);
  -webkit-backdrop-filter: blur(6px);
          backdrop-filter: blur(6px);
  color: #fff;
}
.thumb-icon svg { width: 28px; height: 28px; }

.case-card h3 { font-size: 1.3rem; margin-bottom: 10px; color: #fff; }
.case-card > p { color: var(--muted); font-size: 0.98rem; margin-bottom: 20px; }
.tags { display: flex; flex-wrap: wrap; gap: 8px; margin-top: auto; }
.tag {
  font-size: 0.76rem;
  font-weight: 600;
  color: #9ccdff;
  border: 1px solid rgba(120, 180, 255, 0.4);
  background: rgba(59, 130, 246, 0.08);
  padding: 5px 12px;
  border-radius: 999px;
}

/* ---------- 4. Live demo (dark chat mockup) ---------- */
.live-demo {
  position: relative;
  padding: 120px 0;
  overflow: hidden;
}
.live-demo::before {
  content: "";
  position: absolute;
  top: -140px; left: -120px;
  width: 640px; height: 640px;
  background: radial-gradient(circle, rgba(59, 130, 246, 0.20), transparent 70%);
  pointer-events: none;
}
.live-demo::after {
  content: "";
  position: absolute;
  bottom: -160px; right: -140px;
  width: 560px; height: 560px;
  background: radial-gradient(circle, rgba(34, 211, 238, 0.14), transparent 70%);
  pointer-events: none;
}
.live-demo-inner {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 64px;
  align-items: center;
}
.live-demo-copy .eyebrow { color: #cfe0ff; }
.live-demo-copy h2 {
  color: #fff;
  font-size: clamp(1.9rem, 4vw, 2.6rem);
  max-width: 14ch;
  margin-bottom: 18px;
}
.live-demo-copy > p { color: #AEB6C6; font-size: 1.05rem; max-width: 46ch; margin-bottom: 30px; }
.live-demo-points { display: flex; flex-direction: column; gap: 14px; }
.live-demo-points li { display: flex; align-items: center; gap: 10px; color: #D4D4D4; font-size: 0.95rem; }
.live-demo-points li svg { flex: none; width: 20px; height: 20px; color: var(--cyan); }

.chat-mock {
  max-width: 400px;
  margin: 0 auto;
  background: rgba(14, 18, 28, 0.85);
  border: 1px solid var(--border-2);
  border-radius: 20px;
  overflow: hidden;
  box-shadow: var(--shadow-lg), 0 0 60px rgba(59, 130, 246, 0.12);
  -webkit-backdrop-filter: blur(10px);
          backdrop-filter: blur(10px);
}
.chat-mock-head {
  display: flex;
  align-items: center;
  gap: 7px;
  padding: 16px 18px;
  background: rgba(255, 255, 255, 0.03);
  border-bottom: 1px solid var(--border);
}
.chat-dot { width: 9px; height: 9px; border-radius: 50%; }
.chat-dot.red { background: #FF5F57; }
.chat-dot.yellow { background: #FEBC2E; }
.chat-dot.green { background: #28C840; }
.chat-mock-title { margin-left: 8px; font-size: 0.8rem; font-weight: 600; color: #9AA3AF; }
.chat-mock-body { padding: 22px 18px; display: flex; flex-direction: column; gap: 12px; min-height: 300px; max-height: 320px; overflow-y: auto; }
.bubble {
  max-width: 80%;
  padding: 11px 15px;
  border-radius: 14px;
  font-size: 0.9rem;
  line-height: 1.4;
  opacity: 0;
  transform: translateY(10px);
  transition: opacity 0.4s ease, transform 0.4s ease;
}
.bubble.show { opacity: 1; transform: none; }
.bubble-left { align-self: flex-start; background: rgba(255, 255, 255, 0.07); color: #E4E6EB; border-bottom-left-radius: 4px; }
.bubble-right { align-self: flex-end; background: linear-gradient(180deg, #3B82F6, #2563EB); color: #fff; border-bottom-right-radius: 4px; box-shadow: 0 6px 18px rgba(37, 99, 235, 0.4); }
/* booking confirmation comes from the AI (bot) — so it sits on the LEFT,
   styled as a success message */
.bubble-confirm {
  align-self: flex-start;
  background: linear-gradient(180deg, rgba(37, 211, 102, 0.22), rgba(37, 211, 102, 0.08));
  border: 1px solid rgba(37, 211, 102, 0.45);
  color: #d7ffe8;
  font-weight: 600;
  border-bottom-left-radius: 4px;
}

/* tappable preset questions under the chat */
.chat-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  padding: 14px 16px;
  border-top: 1px solid var(--border);
  background: rgba(255, 255, 255, 0.02);
}
.chat-chip {
  font: inherit;
  cursor: pointer;
  font-size: 0.82rem;
  color: #cfe0ff;
  background: rgba(59, 130, 246, 0.1);
  border: 1px solid rgba(120, 180, 255, 0.35);
  padding: 8px 14px;
  border-radius: 999px;
  transition: background 0.2s ease, transform 0.15s ease, opacity 0.2s ease;
}
.chat-chip:hover:not(:disabled) { background: rgba(59, 130, 246, 0.22); transform: translateY(-1px); }
.chat-chip:disabled { opacity: 0.4; cursor: default; }
.bubble-typing { align-self: flex-start; background: rgba(255, 255, 255, 0.07); padding: 13px 16px; display: flex; gap: 4px; align-items: center; }
.bubble-typing span { width: 6px; height: 6px; border-radius: 50%; background: #9AA3AF; animation: typingDot 1s infinite ease-in-out; }
.bubble-typing span:nth-child(2) { animation-delay: 0.15s; }
.bubble-typing span:nth-child(3) { animation-delay: 0.3s; }
@keyframes typingDot { 0%, 100% { transform: translateY(0); opacity: 0.4; } 50% { transform: translateY(-4px); opacity: 1; } }

@media (max-width: 860px) {
  .live-demo-inner { grid-template-columns: 1fr; gap: 48px; }
  .live-demo-copy { text-align: center; }
  .live-demo-copy h2 { max-width: none; margin-left: auto; margin-right: auto; }
  .live-demo-copy > p { margin-left: auto; margin-right: auto; }
  .live-demo-points { align-items: center; }
}
@media (prefers-reduced-motion: reduce) { .bubble-typing { display: none; } }

/* ---------- 6. Industries — horizontal slideshow ---------- */
.industry-marquee {
  position: relative;
  width: 100%;
  padding: 16px 0;
  overflow: hidden;   /* contain the wide track so it can't widen the page */
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent);
          mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent);
}
.industry-track {
  display: flex;
  width: max-content;
  animation: industryScroll 48s linear infinite;
}
.industry-marquee:hover .industry-track { animation-play-state: paused; }
@keyframes industryScroll { to { transform: translateX(-50%); } }
.industry-card {
  flex: none;
  margin-right: 18px;
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 16px 24px;
  border-radius: 14px;
  background: var(--surface);
  border: 1px solid var(--border);
  -webkit-backdrop-filter: blur(10px);
          backdrop-filter: blur(10px);
  transition: border-color 0.3s ease, box-shadow 0.3s ease, transform 0.3s ease;
}
.industry-card:hover {
  border-color: rgba(59, 130, 246, 0.5);
  transform: translateY(-4px);
  box-shadow: 0 14px 30px rgba(0, 0, 0, 0.4), 0 0 26px rgba(59, 130, 246, 0.15);
}
.industry-ico {
  flex: none;
  width: 44px; height: 44px;
  border-radius: 11px;
  display: grid;
  place-items: center;
  background: linear-gradient(160deg, rgba(59, 130, 246, 0.25), rgba(34, 211, 238, 0.06));
  border: 1px solid rgba(120, 180, 255, 0.22);
  color: #9ccdff;
}
.industry-ico svg { width: 24px; height: 24px; }
.industry-name { font-weight: 600; font-size: 1rem; color: #fff; white-space: nowrap; }

/* ---------- Integrations (asymmetric two-column) ---------- */
.integrations-inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 56px;
  align-items: center;
}
.integrations-copy h2 { font-size: clamp(1.9rem, 3.6vw, 2.6rem); margin-bottom: 16px; max-width: 16ch; }
.integrations-copy > p { color: var(--muted); font-size: 1.05rem; max-width: 46ch; margin-bottom: 26px; }
.integrations-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}
.integration {
  padding: 12px 20px;
  border-radius: 12px;
  background: var(--surface);
  border: 1px solid var(--border);
  -webkit-backdrop-filter: blur(10px);
          backdrop-filter: blur(10px);
  color: #dfe6f2;
  font-weight: 500;
  font-size: 0.95rem;
  transition: border-color 0.25s ease, box-shadow 0.25s ease, transform 0.25s ease;
}
.integration:hover {
  border-color: rgba(59, 130, 246, 0.5);
  box-shadow: 0 0 24px rgba(59, 130, 246, 0.15);
  transform: translateY(-3px);
}
@media (max-width: 860px) {
  .integrations-inner { grid-template-columns: 1fr; gap: 36px; text-align: center; }
  .integrations-copy h2, .integrations-copy > p { max-width: none; margin-left: auto; margin-right: auto; }
  .integrations-grid { justify-content: center; }
}

/* ---------- 7. Final CTA (full-bleed) ---------- */
.final-cta {
  position: relative;
  padding: 110px 0;
  text-align: center;
  overflow: hidden;
}
.final-cta::before {
  content: "";
  position: absolute;
  top: -120px; left: 50%;
  width: 760px; height: 500px;
  transform: translateX(-50%);
  background: radial-gradient(ellipse, rgba(59, 130, 246, 0.28), transparent 70%);
  pointer-events: none;
}
.final-cta .container { position: relative; z-index: 1; }
.final-cta h2 { color: #fff; font-size: clamp(2rem, 4.5vw, 3rem); margin-bottom: 16px; }
.final-cta p { color: #AEB6C6; font-size: 1.1rem; max-width: 48ch; margin: 0 auto 36px; }
.final-cta-actions { display: flex; gap: 16px; justify-content: center; flex-wrap: wrap; }
.btn-outline-light {
  background: var(--surface);
  color: #fff;
  border-color: var(--border-2);
  -webkit-backdrop-filter: blur(8px);
          backdrop-filter: blur(8px);
}
.btn-outline-light:hover {
  border-color: rgba(59, 130, 246, 0.7);
  box-shadow: 0 0 26px rgba(59, 130, 246, 0.28);
  transform: translateY(-2px);
}

/* ---------- Responsive: added sections ---------- */
@media (max-width: 760px) {
  .timeline { max-width: 520px; }
  .timeline::before { left: 28px; transform: none; }
  .timeline::after { left: 28px; transform: none; }
  .timeline .step-top,
  .timeline .step:nth-child(odd) .step-top,
  .timeline .step:nth-child(even) .step-top { justify-content: flex-start; }
  .timeline .step,
  .timeline .step:nth-child(odd),
  .timeline .step:nth-child(even) {
    width: 100%;
    left: 0;
    text-align: left;
    padding: 0 0 40px 84px;
  }
  .timeline .step:nth-child(odd) .step-num,
  .timeline .step:nth-child(even) .step-num { left: 0; right: auto; }
  .timeline .step:nth-child(odd) .step-text::before,
  .timeline .step:nth-child(even) .step-text::before { left: -28px; right: auto; width: 28px; }
  .timeline .step p { font-size: 0.94rem; }
  .case-grid { grid-template-columns: 1fr; }
}

@media (prefers-reduced-motion: reduce) {
  .logos-track,
  .industry-track { animation: none !important; }
  .timeline .step { opacity: 1 !important; transform: none !important; }
}

/* ============================================================
   Mobile performance
   Phones choke on stacked backdrop-blur, huge blur-radius orbs,
   and always-painting offscreen sections. Swap the glass panels
   for cheap solid fills, shrink/trim the orbs, drop the grain,
   and skip painting sections until they're near the viewport.
   ============================================================ */
@media (max-width: 760px) {
  /* backdrop-filter is the single most expensive thing to composite on
     mobile GPUs — kill it everywhere and use a solid-ish fill instead */
  .nav,
  .nav-links,
  .eyebrow,
  .btn-ghost,
  .btn-outline-light,
  .card,
  .founder,
  .form,
  .info-item,
  .timeline .step-text,
  .industry-card,
  .integration,
  .chat-mock {
    -webkit-backdrop-filter: none !important;
            backdrop-filter: none !important;
  }
  .card,
  .founder,
  .form,
  .info-item,
  .timeline .step-text,
  .industry-card,
  .integration,
  .chat-mock { background: rgba(17, 22, 35, 0.94); }
  .nav { background: rgba(5, 7, 14, 0.9); }
  .nav.scrolled { background: rgba(5, 7, 14, 0.96); }
  .nav-links { background: rgba(8, 11, 20, 0.98); }

  /* 120px blur orbs are brutal on mobile — shrink the radius and drop one */
  .orb { filter: blur(70px); opacity: 0.28; }
  .orb-3 { display: none; }

  /* SVG turbulence grain is a costly per-pixel filter — not worth it here */
  .grain { display: none; }

  /* don't render sections that are still far offscreen */
  .live-demo,
  .logos,
  #process,
  .stats-bar,
  .final-cta {
    content-visibility: auto;
    contain-intrinsic-size: 640px;
  }
}
