/* =========================================================
   NEXORA AI — Design tokens
   ========================================================= */
:root {
  --bg: #05070d;
  --bg-alt: #070b16;
  --surface: #0d1326;
  --surface-2: #101833;
  --surface-hover: #131d3d;
  --border: rgba(148, 163, 184, 0.14);
  --border-strong: rgba(148, 163, 184, 0.28);

  --text: #eef2f9;
  --text-dim: #9aa7c2;
  --text-faint: #66739a;

  --primary: #2563eb;
  --primary-light: #3b82f6;
  --secondary: #06b6d4;
  --accent: #6366f1;

  --grad-primary: linear-gradient(135deg, #3b82f6 0%, #06b6d4 100%);
  --grad-text: linear-gradient(135deg, #60a5fa 0%, #22d3ee 50%, #818cf8 100%);
  --grad-surface: linear-gradient(160deg, rgba(59,130,246,0.10), rgba(6,182,212,0.04));

  --shadow-glow: 0 0 0 1px rgba(59,130,246,0.15), 0 20px 60px -20px rgba(37,99,235,0.45);
  --shadow-card: 0 4px 24px -8px rgba(0,0,0,0.5);

  --radius-sm: 10px;
  --radius-md: 16px;
  --radius-lg: 24px;
  --radius-full: 999px;

  --space-section: 128px;
  --ease: cubic-bezier(0.16, 1, 0.3, 1);
  --font-head: 'Outfit', system-ui, sans-serif;
  --font-body: 'Inter', system-ui, sans-serif;
}

@media (max-width: 768px) {
  :root { --space-section: 80px; }
}

/* =========================================================
   Reset
   ========================================================= */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
[hidden] { display: none !important; }
html { scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: 0.001ms !important; animation-iteration-count: 1 !important; transition-duration: 0.001ms !important; scroll-behavior: auto !important; }
}

body {
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.6;
  min-height: 100dvh;
  overflow-x: hidden;
}

img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
button { font: inherit; cursor: pointer; background: none; border: none; color: inherit; }
ul { list-style: none; }
h1, h2, h3, h4 { font-family: var(--font-head); font-weight: 600; line-height: 1.15; letter-spacing: -0.02em; }
::selection { background: var(--primary); color: #fff; }

.container {
  width: 100%;
  max-width: 1240px;
  margin-inline: auto;
  padding-inline: 24px;
}

.text-gradient {
  background: var(--grad-text);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.noise-overlay {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 2;
  opacity: 0.03;
  mix-blend-mode: overlay;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='120' height='120'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

.progress-bar {
  position: fixed;
  top: 0; left: 0;
  height: 3px;
  width: 0%;
  background: var(--grad-primary);
  z-index: 1000;
  transition: width 0.1s linear;
  box-shadow: 0 0 12px rgba(59,130,246,0.7);
}

/* =========================================================
   Buttons
   ========================================================= */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px 22px;
  border-radius: var(--radius-full);
  font-weight: 600;
  font-size: 0.95rem;
  white-space: nowrap;
  cursor: pointer;
  transition: transform 0.25s var(--ease), box-shadow 0.25s var(--ease), background 0.25s var(--ease), border-color 0.25s var(--ease), color 0.25s var(--ease);
  border: 1px solid transparent;
}
.btn svg { transition: transform 0.25s var(--ease); flex-shrink: 0; }
.btn:hover svg { transform: translateX(3px); }
.btn:disabled { opacity: 0.6; cursor: not-allowed; pointer-events: none; }
.btn:active { transform: scale(0.97); }

.btn--primary {
  background: var(--grad-primary);
  color: #fff;
  box-shadow: 0 8px 24px -8px rgba(37,99,235,0.6);
}
.btn--primary:hover { box-shadow: 0 10px 32px -6px rgba(6,182,212,0.65); transform: translateY(-2px); }

.btn--outline {
  background: rgba(255,255,255,0.02);
  color: var(--text);
  border-color: var(--border-strong);
}
.btn--outline:hover { border-color: var(--secondary); background: rgba(6,182,212,0.06); transform: translateY(-2px); }

.btn--ghost {
  color: var(--text-dim);
  padding: 12px 14px;
}
.btn--ghost:hover { color: var(--text); }

.btn--lg { padding: 15px 28px; font-size: 1rem; }
.btn--block { width: 100%; }

/* =========================================================
   Header
   ========================================================= */
.header {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  transition: background 0.35s var(--ease), border-color 0.35s var(--ease), padding 0.35s var(--ease);
  border-bottom: 1px solid transparent;
}
.header.is-scrolled {
  background: rgba(5,7,13,0.75);
  backdrop-filter: blur(16px) saturate(140%);
  -webkit-backdrop-filter: blur(16px) saturate(140%);
  border-bottom-color: var(--border);
}
.header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 78px;
}

.logo { display: flex; align-items: center; gap: 10px; }
.logo__mark { display: flex; filter: drop-shadow(0 0 10px rgba(37,99,235,0.5)); }
.logo__text { font-family: var(--font-head); font-weight: 700; font-size: 1.15rem; letter-spacing: -0.01em; }
.logo__text span { color: var(--secondary); }

.nav { display: flex; align-items: center; gap: 32px; }
.nav a {
  font-size: 0.92rem;
  color: var(--text-dim);
  font-weight: 500;
  position: relative;
  padding: 6px 0;
  transition: color 0.2s ease;
}
.nav a::after {
  content: '';
  position: absolute;
  left: 0; bottom: 0;
  width: 0; height: 2px;
  background: var(--grad-primary);
  transition: width 0.25s var(--ease);
  border-radius: 2px;
}
.nav a:hover { color: var(--text); }
.nav a:hover::after { width: 100%; }

.header__actions { display: flex; align-items: center; gap: 8px; }

.burger {
  display: none;
  flex-direction: column;
  gap: 5px;
  width: 34px;
  height: 34px;
  align-items: center;
  justify-content: center;
}
.burger span {
  width: 20px; height: 2px;
  background: var(--text);
  border-radius: 2px;
  transition: transform 0.3s var(--ease), opacity 0.3s var(--ease);
}
.burger[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.burger[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.burger[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

.mobile-nav {
  display: none;
  flex-direction: column;
  gap: 4px;
  padding: 0 24px;
  background: rgba(5,7,13,0.98);
  backdrop-filter: blur(16px);
  border-bottom: 1px solid transparent;
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.4s var(--ease), padding-block 0.4s var(--ease), border-color 0.4s var(--ease);
}
.mobile-nav.is-open {
  max-height: 480px;
  padding-block: 12px 24px;
  border-bottom-color: var(--border);
}
.mobile-nav a {
  padding: 12px 4px;
  color: var(--text-dim);
  border-bottom: 1px solid var(--border);
  font-weight: 500;
}
.mobile-nav .btn { margin-top: 14px; justify-content: center; }

@media (max-width: 900px) {
  .nav, .header__actions { display: none; }
  .burger { display: flex; }
  .mobile-nav { display: flex; }
}

/* =========================================================
   Hero
   ========================================================= */
.hero {
  position: relative;
  min-height: 100dvh;
  display: flex;
  align-items: center;
  padding-top: 110px;
  padding-bottom: 110px;
  overflow: hidden;
  background: radial-gradient(ellipse 80% 60% at 50% -10%, rgba(37,99,235,0.22), transparent 60%), var(--bg);
}

.hero__bg-wrap {
  position: absolute;
  inset: 0;
  z-index: 0;
  overflow: hidden;
  pointer-events: none;
}
.hero__bg {
  display: block;
  position: absolute;
  top: -12%;
  left: 0;
  width: 100%;
  height: 124%;
  will-change: transform;
  transform: translateY(0);
}

.hero__scrim {
  position: absolute;
  inset: 0;
  z-index: 1;
  background:
    linear-gradient(180deg, rgba(5,7,13,0.35) 0%, rgba(5,7,13,0.55) 55%, var(--bg) 100%),
    radial-gradient(ellipse 80% 55% at 50% 15%, rgba(5,7,13,0.15), rgba(5,7,13,0.75) 75%);
  pointer-events: none;
}

.hero__canvas {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  opacity: 0.55;
  z-index: 2;
}

.hero__glow {
  position: absolute;
  border-radius: 50%;
  filter: blur(90px);
  pointer-events: none;
  z-index: 2;
}
.hero__glow--a {
  width: 480px; height: 480px;
  background: rgba(37,99,235,0.35);
  top: -120px; left: -120px;
  animation: floatBlob 14s ease-in-out infinite;
}
.hero__glow--b {
  width: 420px; height: 420px;
  background: rgba(6,182,212,0.28);
  bottom: -140px; right: -100px;
  animation: floatBlob 16s ease-in-out infinite reverse;
}
@keyframes floatBlob {
  0%, 100% { transform: translate(0,0) scale(1); }
  50% { transform: translate(40px,-30px) scale(1.08); }
}

.hero__inner {
  position: relative;
  z-index: 3;
  max-width: 1220px;
  width: 100%;
  margin-inline: auto;
  display: grid;
  grid-template-columns: 0.95fr 1.1fr;
  gap: 32px;
  align-items: stretch;
}

.hero__text {
  text-align: left;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
}

.badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 16px;
  border-radius: var(--radius-full);
  background: rgba(37,99,235,0.1);
  border: 1px solid rgba(59,130,246,0.3);
  font-size: 0.82rem;
  color: #93c5fd;
  font-weight: 500;
  margin-bottom: 28px;
}
.badge__dot {
  width: 7px; height: 7px;
  border-radius: 50%;
  background: var(--secondary);
  box-shadow: 0 0 0 0 rgba(6,182,212,0.6);
  animation: pulseDot 2s infinite;
}
@keyframes pulseDot {
  0% { box-shadow: 0 0 0 0 rgba(6,182,212,0.6); }
  70% { box-shadow: 0 0 0 8px rgba(6,182,212,0); }
  100% { box-shadow: 0 0 0 0 rgba(6,182,212,0); }
}

.hero__title {
  font-size: clamp(2rem, 3.6vw, 3.2rem);
  font-weight: 700;
  margin-bottom: 22px;
}

.hero__subtitle {
  font-size: clamp(1rem, 1.3vw, 1.12rem);
  color: var(--text-dim);
  max-width: 520px;
  margin-bottom: 36px;
}

.hero__cta {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
  justify-content: flex-start;
  margin-bottom: 56px;
}

.hero__stats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
  width: 100%;
  max-width: 620px;
  padding-top: 36px;
  border-top: 1px solid var(--border);
}
.stat { display: flex; flex-direction: column; align-items: flex-start; }
.stat__num, .stat__suffix {
  font-family: var(--font-head);
  font-size: clamp(1.4rem, 2vw, 1.9rem);
  font-weight: 700;
  display: inline;
}
.stat__suffix { background: var(--grad-text); -webkit-background-clip: text; background-clip: text; color: transparent; }
.stat__label { font-size: 0.8rem; color: var(--text-faint); margin-top: 6px; }

/* ---- Hero art (robot image) ---- */
.hero__art {
  position: relative;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
}

.hero__art-glow {
  position: absolute;
  inset: 0;
  margin: auto;
  width: 72%;
  height: 72%;
  background: radial-gradient(circle, rgba(37,99,235,0.5), transparent 70%);
  filter: blur(55px);
  z-index: 0;
}

.hero__art-ring {
  position: absolute;
  inset: 0;
  margin: auto;
  width: 94%;
  height: 82%;
  border: 1.5px dashed rgba(96,165,250,0.28);
  border-radius: 50%;
  z-index: 0;
  animation: orbitSpin 50s linear infinite;
}
@keyframes orbitSpin {
  to { transform: rotate(360deg); }
}

.hero__art-img {
  position: relative;
  z-index: 1;
  height: clamp(360px, 46vw, 640px);
  width: auto;
  max-width: 100%;
  object-fit: contain;
  filter: drop-shadow(0 25px 40px rgba(0,0,0,0.55));
  animation: robotBob 5s ease-in-out infinite;
}
@keyframes robotBob {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-12px); }
}

.hero__art-badge {
  position: absolute;
  z-index: 2;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 52px;
  height: 52px;
  border-radius: 50%;
  background: var(--surface-2);
  border: 1px solid var(--border-strong);
  box-shadow: var(--shadow-card);
  animation: accentBob 4.5s ease-in-out infinite;
}
.hero__art-badge--a { top: 10%; left: 4%; animation-delay: 0s; }
.hero__art-badge--b { bottom: 14%; right: 4%; animation-delay: 0.5s; animation-duration: 5.2s; }
@keyframes accentBob {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-10px); }
}

@media (max-width: 960px) {
  .hero__inner { grid-template-columns: 1fr; gap: 32px; }
  .hero__art { height: auto; max-width: 480px; margin-inline: auto; }
  .hero__art-img { height: auto; max-height: none; width: 100%; max-width: 480px; }
}

@media (max-width: 640px) {
  .hero__stats { grid-template-columns: repeat(2, 1fr); row-gap: 28px; }
  .hero__art-img { max-width: 340px; }
  .hero__art-badge { width: 42px; height: 42px; }
}

.hero__scroll {
  position: absolute;
  bottom: 28px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  color: var(--text-faint);
  font-size: 0.75rem;
  z-index: 3;
}
.hero__scroll-line {
  width: 1px; height: 36px;
  background: linear-gradient(to bottom, var(--secondary), transparent);
  position: relative;
  overflow: hidden;
}
.hero__scroll-line::after {
  content: '';
  position: absolute;
  top: -100%; left: 0;
  width: 100%; height: 100%;
  background: var(--secondary);
  animation: scrollLine 1.8s ease-in-out infinite;
}
@keyframes scrollLine { to { top: 100%; } }

@media (max-width: 640px) { .hero__scroll { display: none; } }

/* =========================================================
   Marquee
   ========================================================= */
.marquee-section {
  padding: 48px 0;
  border-block: 1px solid var(--border);
  background: var(--bg-alt);
}
.marquee-label {
  text-align: center;
  color: var(--text-faint);
  font-size: 0.82rem;
  margin-bottom: 24px;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}
.marquee { overflow: hidden; mask-image: linear-gradient(to right, transparent, black 10%, black 90%, transparent); }
.marquee__track {
  display: flex;
  gap: 64px;
  width: max-content;
  animation: marqueeScroll 28s linear infinite;
}
.marquee__track span {
  font-family: var(--font-head);
  font-size: 1.2rem;
  font-weight: 600;
  color: var(--text-faint);
  white-space: nowrap;
  transition: color 0.3s ease;
}
.marquee__track span:hover { color: var(--secondary); }
@keyframes marqueeScroll { to { transform: translateX(-50%); } }

/* =========================================================
   Sections generic
   ========================================================= */
.section { padding-block: var(--space-section); position: relative; }
.section--alt { background: var(--bg-alt); }

.section__head {
  max-width: 640px;
  margin: 0 auto 64px;
  text-align: center;
}
.eyebrow {
  display: inline-block;
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--secondary);
  margin-bottom: 14px;
}
.eyebrow--light { color: #7dd3fc; }
.section__head h2 { font-size: clamp(1.8rem, 3.4vw, 2.6rem); margin-bottom: 16px; }
.section__head p { color: var(--text-dim); font-size: 1.05rem; }

.grid { display: grid; gap: 24px; }
.grid--3 { grid-template-columns: repeat(3, 1fr); }
@media (max-width: 960px) { .grid--3 { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 640px) { .grid--3 { grid-template-columns: 1fr; } }

/* =========================================================
   Reveal animation
   ========================================================= */
.reveal-up {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 0.7s var(--ease), transform 0.7s var(--ease);
  transition-delay: var(--d, 0s);
}
.reveal-up.is-visible { opacity: 1; transform: translateY(0); }

/* =========================================================
   Service cards
   ========================================================= */
.card--service {
  background: var(--grad-surface), var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 32px 28px;
  transition: transform 0.35s var(--ease), border-color 0.35s var(--ease), box-shadow 0.35s var(--ease), background 0.35s var(--ease);
  position: relative;
  overflow: hidden;
}
.card--service::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(240px circle at var(--mx, 50%) var(--my, 0%), rgba(59,130,246,0.12), transparent 60%);
  opacity: 0;
  transition: opacity 0.4s ease;
  pointer-events: none;
}
.card--service:hover::before { opacity: 1; }
.card--service:hover {
  transform: translateY(-6px);
  border-color: rgba(59,130,246,0.4);
  box-shadow: var(--shadow-glow);
}
.card__icon {
  width: 52px; height: 52px;
  border-radius: 14px;
  display: flex; align-items: center; justify-content: center;
  background: var(--grad-primary);
  color: #fff;
  margin-bottom: 22px;
  box-shadow: 0 8px 20px -6px rgba(37,99,235,0.55);
}
.card--service h3 { font-size: 1.2rem; margin-bottom: 10px; }
.card--service p { color: var(--text-dim); font-size: 0.94rem; margin-bottom: 18px; }
.card__link {
  display: inline-flex; align-items: center; gap: 6px;
  color: var(--secondary); font-weight: 600; font-size: 0.9rem;
}
.card__link svg { transition: transform 0.25s var(--ease); }
.card--service:hover .card__link svg { transform: translateX(4px); }

/* =========================================================
   Timeline
   ========================================================= */
.timeline {
  position: relative;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 32px;
  padding-top: 8px;
}
.timeline__line {
  position: absolute;
  top: 26px; left: 0; right: 0;
  height: 2px;
  background: var(--border);
  z-index: 0;
}
.timeline__line-fill {
  display: block;
  height: 100%;
  width: 0%;
  background: var(--grad-primary);
  transition: width 1.2s var(--ease);
}
.timeline__item { position: relative; z-index: 1; }
.timeline__num {
  width: 52px; height: 52px;
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  background: var(--surface);
  border: 1px solid var(--border-strong);
  font-family: var(--font-head);
  font-weight: 700;
  color: var(--secondary);
  margin-bottom: 20px;
}
.timeline__item h3 { font-size: 1.1rem; margin-bottom: 8px; }
.timeline__item p { color: var(--text-dim); font-size: 0.92rem; }

@media (max-width: 900px) {
  .timeline { grid-template-columns: 1fr 1fr; row-gap: 40px; }
  .timeline__line { display: none; }
}
@media (max-width: 560px) { .timeline { grid-template-columns: 1fr; } }

/* =========================================================
   Project cards
   ========================================================= */
.project-card {
  border-radius: var(--radius-lg);
  overflow: hidden;
  background: var(--surface);
  border: 1px solid var(--border);
  transition: transform 0.35s var(--ease), border-color 0.35s var(--ease);
}
.project-card:hover { transform: translateY(-6px); border-color: rgba(59,130,246,0.4); }
.project-card__top {
  height: 160px;
  position: relative;
  display: flex;
  align-items: flex-start;
  justify-content: flex-start;
  padding: 18px;
  overflow: hidden;
}
.project-card__top::after {
  content: '';
  position: absolute; inset: 0;
  background-image:
    linear-gradient(rgba(255,255,255,0.06) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,0.06) 1px, transparent 1px);
  background-size: 24px 24px;
  mask-image: radial-gradient(circle at 70% 30%, black, transparent 75%);
}
.project-card__top--1 { background: linear-gradient(135deg, #1d3a8a, #0891b2); }
.project-card__top--2 { background: linear-gradient(135deg, #4338ca, #2563eb); }
.project-card__top--3 { background: linear-gradient(135deg, #0e7490, #1e3a8a); }
.project-card__tag {
  position: relative;
  z-index: 1;
  background: rgba(5,7,13,0.5);
  backdrop-filter: blur(6px);
  padding: 6px 12px;
  border-radius: var(--radius-full);
  font-size: 0.75rem;
  font-weight: 600;
  border: 1px solid rgba(255,255,255,0.18);
}
.project-card__body { padding: 24px; }
.project-card__body h3 { font-size: 1.1rem; margin-bottom: 8px; }
.project-card__body p { color: var(--text-dim); font-size: 0.92rem; margin-bottom: 16px; }
.project-card__metric {
  font-size: 0.88rem;
  color: var(--text-dim);
  padding-top: 14px;
  border-top: 1px solid var(--border);
}
.project-card__metric strong {
  color: var(--secondary);
  font-family: var(--font-head);
  font-size: 1.05rem;
  margin-right: 4px;
}

/* =========================================================
   Founder section
   ========================================================= */
.founder {
  display: grid;
  grid-template-columns: 0.8fr 1fr;
  gap: 64px;
  align-items: center;
}
.founder__media {
  position: relative;
  max-width: 380px;
  margin-inline: auto;
  perspective: 1200px;
}
.founder__glow {
  position: absolute;
  inset: -20px;
  background: var(--grad-primary);
  filter: blur(50px);
  opacity: 0.35;
  border-radius: var(--radius-lg);
  z-index: 0;
  animation: founderGlowPulse 4s ease-in-out infinite;
}
@keyframes founderGlowPulse {
  0%, 100% { opacity: 0.28; }
  50% { opacity: 0.45; }
}

.founder__frame {
  position: relative;
  z-index: 1;
  border-radius: var(--radius-lg);
  overflow: hidden;
  border: 1px solid var(--border-strong);
  aspect-ratio: 3/4;
  box-shadow: var(--shadow-card);
  transform: rotateX(var(--ry, 0deg)) rotateY(var(--rx, 0deg)) scale(var(--fs, 1));
  transition: transform 0.4s var(--ease), box-shadow 0.4s var(--ease);
  will-change: transform;
}
.founder__frame:hover {
  box-shadow: 0 0 0 1px rgba(59,130,246,0.35), 0 30px 60px -20px rgba(37,99,235,0.55);
}
.founder__frame img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.founder__scan {
  position: absolute;
  inset: 0;
  z-index: 2;
  pointer-events: none;
  background: linear-gradient(115deg, transparent 42%, rgba(103,232,249,0.32) 50%, transparent 58%);
  background-size: 220% 220%;
  background-position: 120% -20%;
  mix-blend-mode: screen;
  animation: founderScanSweep 6s ease-in-out infinite;
}
@keyframes founderScanSweep {
  0%   { background-position: 130% -30%; opacity: 0; }
  15%  { opacity: 1; }
  55%  { background-position: -30% 130%; opacity: 1; }
  70%  { opacity: 0; }
  100% { background-position: -30% 130%; opacity: 0; }
}

.founder__grid {
  position: absolute;
  inset: 0;
  z-index: 2;
  pointer-events: none;
  opacity: 0.12;
  background-image:
    linear-gradient(rgba(148,197,255,0.5) 1px, transparent 1px),
    linear-gradient(90deg, rgba(148,197,255,0.5) 1px, transparent 1px);
  background-size: 28px 28px;
  mask-image: radial-gradient(circle at 50% 40%, #000 55%, transparent 85%);
  -webkit-mask-image: radial-gradient(circle at 50% 40%, #000 55%, transparent 85%);
}

.founder__corner {
  position: absolute;
  z-index: 3;
  width: 22px;
  height: 22px;
  border: 2px solid var(--secondary);
  opacity: 0.85;
  pointer-events: none;
  filter: drop-shadow(0 0 4px rgba(34,211,238,0.6));
}
.founder__corner--tl { top: 10px; left: 10px; border-right: none; border-bottom: none; border-radius: 6px 0 0 0; }
.founder__corner--tr { top: 10px; right: 10px; border-left: none; border-bottom: none; border-radius: 0 6px 0 0; }
.founder__corner--bl { bottom: 10px; left: 10px; border-right: none; border-top: none; border-radius: 0 0 0 6px; }
.founder__corner--br { bottom: 10px; right: 10px; border-left: none; border-top: none; border-radius: 0 0 6px 0; }
.founder__badge {
  position: absolute;
  z-index: 2;
  bottom: -18px; left: 50%;
  transform: translateX(-50%);
  display: flex; align-items: center; gap: 8px;
  background: var(--surface-2);
  border: 1px solid var(--border-strong);
  padding: 10px 18px;
  border-radius: var(--radius-full);
  font-size: 0.82rem;
  font-weight: 600;
  white-space: nowrap;
  color: var(--secondary);
  box-shadow: var(--shadow-card);
}

.founder__content .eyebrow { display: block; }
.founder__content h2 { font-size: clamp(1.8rem, 3vw, 2.4rem); margin-bottom: 10px; }
.founder__name { color: var(--secondary); font-weight: 600; margin-bottom: 18px; }
.founder__bio { color: var(--text-dim); margin-bottom: 24px; }
.founder__list { display: flex; flex-direction: column; gap: 12px; margin-bottom: 32px; }
.founder__list li { display: flex; align-items: flex-start; gap: 10px; color: var(--text-dim); font-size: 0.94rem; }
.founder__list svg { color: var(--secondary); flex-shrink: 0; margin-top: 2px; }

@media (max-width: 860px) {
  .founder { grid-template-columns: 1fr; text-align: center; }
  .founder__list li { text-align: left; }
}

/* =========================================================
   Testimonials
   ========================================================= */
.testimonials { max-width: 760px; margin-inline: auto; overflow: hidden; }
.testimonials__track {
  display: flex;
  transition: transform 0.6s var(--ease);
}
.testimonial {
  flex: 0 0 100%;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 40px;
  text-align: center;
}
.testimonial__stars { color: #fbbf24; letter-spacing: 2px; margin-bottom: 20px; font-size: 1.1rem; }
.testimonial p { font-size: 1.15rem; line-height: 1.6; margin-bottom: 28px; color: var(--text); }
.testimonial__author { display: flex; align-items: center; justify-content: center; gap: 12px; }
.testimonial__avatar {
  width: 44px; height: 44px;
  border-radius: 50%;
  background: var(--grad-primary);
  display: flex; align-items: center; justify-content: center;
  font-weight: 700; font-size: 0.85rem; color: #fff;
}
.testimonial__author div:last-child { text-align: left; font-size: 0.88rem; }
.testimonial__author strong { display: block; }
.testimonial__author span { color: var(--text-faint); }

.testimonials__dots { display: flex; justify-content: center; gap: 8px; margin-top: 28px; }
.testimonials__dots button {
  width: 8px; height: 8px;
  border-radius: 50%;
  background: var(--border-strong);
  transition: background 0.3s ease, width 0.3s ease;
}
.testimonials__dots button.is-active { background: var(--secondary); width: 24px; border-radius: 4px; }

/* =========================================================
   Pricing
   ========================================================= */
.pricing { align-items: stretch; }
.price-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 36px 30px;
  display: flex;
  flex-direction: column;
  position: relative;
  transition: transform 0.35s var(--ease), border-color 0.35s var(--ease);
}
.price-card:hover { transform: translateY(-6px); }
.price-card--featured {
  border-color: rgba(59,130,246,0.5);
  background: linear-gradient(160deg, rgba(37,99,235,0.12), var(--surface) 60%);
  box-shadow: var(--shadow-glow);
}
.price-card__tag {
  position: absolute; top: -14px; left: 50%; transform: translateX(-50%);
  background: var(--grad-primary);
  color: #fff;
  font-size: 0.75rem; font-weight: 700;
  padding: 6px 16px;
  border-radius: var(--radius-full);
  white-space: nowrap;
}
.price-card h3 { font-size: 1.3rem; margin-bottom: 8px; }
.price-card__desc { color: var(--text-dim); font-size: 0.9rem; margin-bottom: 20px; min-height: 40px; }
.price-card__amount { font-family: var(--font-head); font-size: 2.2rem; font-weight: 700; margin-bottom: 24px; }
.price-card__amount span { background: var(--grad-text); -webkit-background-clip: text; background-clip: text; color: transparent; }
.price-card ul { display: flex; flex-direction: column; gap: 14px; margin-bottom: 32px; flex: 1; }
.price-card li { display: flex; align-items: flex-start; gap: 10px; font-size: 0.9rem; color: var(--text-dim); }
.price-card li svg { color: var(--secondary); flex-shrink: 0; margin-top: 2px; }

/* =========================================================
   FAQ Accordion
   ========================================================= */
.accordion { max-width: 760px; margin-inline: auto; display: flex; flex-direction: column; gap: 12px; }
.accordion__item {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  overflow: hidden;
  transition: border-color 0.3s ease;
}
.accordion__item.is-open { border-color: rgba(59,130,246,0.4); }
.accordion__trigger {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 20px 24px;
  text-align: left;
  font-weight: 600;
  font-size: 0.98rem;
}
.accordion__trigger svg { transition: transform 0.35s var(--ease); color: var(--secondary); flex-shrink: 0; }
.accordion__item.is-open .accordion__trigger svg { transform: rotate(180deg); }
.accordion__panel {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.4s var(--ease);
}
.accordion__panel p { padding: 0 24px 22px; color: var(--text-dim); font-size: 0.92rem; }

/* =========================================================
   CTA Final
   ========================================================= */
.cta-final { position: relative; overflow: hidden; }
.cta-final__glow {
  position: absolute;
  width: 700px; height: 700px;
  background: radial-gradient(circle, rgba(37,99,235,0.28), transparent 70%);
  top: 50%; left: 50%;
  transform: translate(-50%, -50%);
  pointer-events: none;
}
.cta-final__box {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 56px;
  align-items: center;
  background: var(--surface);
  border: 1px solid var(--border-strong);
  border-radius: var(--radius-lg);
  padding: 56px;
}
.cta-final__text h2 { font-size: clamp(1.7rem, 3vw, 2.3rem); margin: 12px 0 16px; }
.cta-final__text p { color: var(--text-dim); }

.cta-form { display: flex; flex-direction: column; gap: 16px; }
.cta-form__row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.field { display: flex; flex-direction: column; gap: 6px; }
.field--honeypot {
  position: absolute;
  left: -9999px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}
.field label { font-size: 0.82rem; color: var(--text-dim); font-weight: 500; }
.field input, .field textarea, .field select {
  background: var(--bg-alt);
  border: 1px solid var(--border-strong);
  border-radius: var(--radius-sm);
  padding: 12px 14px;
  color: var(--text);
  font-family: inherit;
  font-size: 0.94rem;
  resize: vertical;
  transition: border-color 0.25s ease, box-shadow 0.25s ease;
}
.field input:focus, .field textarea:focus, .field select:focus {
  outline: none;
  border-color: var(--secondary);
  box-shadow: 0 0 0 3px rgba(6,182,212,0.18);
}
.field input::placeholder, .field textarea::placeholder { color: var(--text-faint); }
.field select {
  appearance: none;
  -webkit-appearance: none;
  cursor: pointer;
  padding-right: 40px;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='24' height='24' viewBox='0 0 24 24' fill='none' stroke='%239aa7c2' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 12px center;
}
.field select option {
  background: var(--surface-2);
  color: var(--text);
}
.cta-form__note { text-align: center; font-size: 0.8rem; color: var(--text-faint); }

@media (max-width: 900px) {
  .cta-final__box { grid-template-columns: 1fr; padding: 36px 24px; }
}
@media (max-width: 520px) {
  .cta-form__row { grid-template-columns: 1fr; }
}

/* =========================================================
   Footer
   ========================================================= */
.footer { background: var(--bg-alt); border-top: 1px solid var(--border); padding-top: 72px; }
.footer__inner {
  display: grid;
  grid-template-columns: 1.6fr 1fr 1fr 1fr;
  gap: 48px;
  padding-bottom: 48px;
}
.footer__brand p { color: var(--text-faint); font-size: 0.9rem; margin: 16px 0 20px; max-width: 320px; }
.footer__social { display: flex; gap: 12px; }
.footer__social a {
  width: 38px; height: 38px;
  border-radius: 50%;
  border: 1px solid var(--border-strong);
  display: flex; align-items: center; justify-content: center;
  color: var(--text-dim);
  transition: color 0.25s ease, border-color 0.25s ease, transform 0.25s ease;
}
.footer__social a:hover { color: var(--secondary); border-color: var(--secondary); transform: translateY(-3px); }

.footer__col h4 { font-size: 0.95rem; margin-bottom: 18px; }
.footer__col { display: flex; flex-direction: column; gap: 12px; }
.footer__col a { color: var(--text-faint); font-size: 0.9rem; transition: color 0.2s ease; }
.footer__col a:hover { color: var(--secondary); }

.footer__bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-block: 24px;
  border-top: 1px solid var(--border);
  color: var(--text-faint);
  font-size: 0.85rem;
}
.footer__legal { display: flex; gap: 20px; }
.footer__legal a:hover { color: var(--secondary); }

@media (max-width: 860px) {
  .footer__inner { grid-template-columns: 1fr 1fr; }
  .footer__bottom { flex-direction: column; gap: 12px; text-align: center; }
}
@media (max-width: 520px) {
  .footer__inner { grid-template-columns: 1fr; }
}

/* =========================================================
   Back to top
   ========================================================= */
.back-to-top {
  position: fixed;
  bottom: 28px; right: 28px;
  width: 48px; height: 48px;
  border-radius: 50%;
  background: var(--grad-primary);
  color: #fff;
  display: flex; align-items: center; justify-content: center;
  box-shadow: 0 8px 24px -6px rgba(37,99,235,0.6);
  opacity: 0;
  visibility: hidden;
  transform: translateY(10px);
  transition: opacity 0.3s ease, transform 0.3s ease, visibility 0.3s ease;
  z-index: 90;
}
.back-to-top.is-visible { opacity: 1; visibility: visible; transform: translateY(0); }
.back-to-top:hover { transform: translateY(-4px); }

/* =========================================================
   Chat placeholder (Botpress integration point)
   ========================================================= */
.chat-launcher {
  position: fixed;
  bottom: 28px; left: 28px;
  width: 58px; height: 58px;
  border-radius: 50%;
  background: var(--grad-primary);
  color: #fff;
  display: flex; align-items: center; justify-content: center;
  box-shadow: 0 8px 28px -6px rgba(37,99,235,0.65);
  z-index: 90;
  transition: transform 0.25s var(--ease), box-shadow 0.25s var(--ease);
}
.chat-launcher::before {
  content: '';
  position: absolute;
  inset: -6px;
  border-radius: 50%;
  border: 1.5px solid rgba(59,130,246,0.5);
  animation: chatPulse 2.4s ease-out infinite;
}
@keyframes chatPulse {
  0% { transform: scale(0.9); opacity: 0.8; }
  100% { transform: scale(1.35); opacity: 0; }
}
.chat-launcher:hover { transform: translateY(-4px); box-shadow: 0 12px 32px -6px rgba(6,182,212,0.7); }

.chat-preview {
  position: fixed;
  bottom: 98px; left: 28px;
  width: min(320px, calc(100vw - 48px));
  background: var(--surface-2);
  border: 1px solid var(--border-strong);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-card);
  z-index: 90;
  opacity: 0;
  visibility: hidden;
  transform: translateY(12px) scale(0.97);
  transform-origin: bottom left;
  transition: opacity 0.25s var(--ease), transform 0.25s var(--ease), visibility 0.25s var(--ease);
  overflow: hidden;
}
.chat-preview.is-open { opacity: 1; visibility: visible; transform: translateY(0) scale(1); }
.chat-preview__header {
  display: flex; align-items: center; gap: 10px;
  padding: 16px 16px;
  background: var(--grad-primary);
  color: #fff;
  font-weight: 600;
  font-size: 0.92rem;
}
.chat-preview__dot {
  width: 8px; height: 8px;
  border-radius: 50%;
  background: #4ade80;
  box-shadow: 0 0 0 3px rgba(74,222,128,0.3);
  flex-shrink: 0;
}
.chat-preview__close {
  margin-left: auto;
  color: #fff;
  opacity: 0.85;
  display: flex;
  padding: 2px;
}
.chat-preview__close:hover { opacity: 1; }
.chat-preview__body { padding: 18px 18px 20px; }
.chat-preview__body p { color: var(--text-dim); font-size: 0.9rem; line-height: 1.5; }
.chat-preview__body p + p { margin-top: 10px; }
.chat-preview__note { color: var(--text-faint); font-size: 0.8rem; }

@media (max-width: 560px) {
  .chat-launcher { bottom: 20px; left: 20px; width: 52px; height: 52px; }
  .chat-preview { bottom: 84px; left: 16px; }
}

/* =========================================================
   Focus visibility (a11y)
   ========================================================= */
a:focus-visible, button:focus-visible, input:focus-visible, textarea:focus-visible {
  outline: 2px solid var(--secondary);
  outline-offset: 3px;
  border-radius: 4px;
}
