/* ---------- Tokens (matched to apton.ai light theme) ---------- */
:root {
  --bg: #eceaf8;
  --bg-2: #fafaff;
  --bg-3: #f7f5ff;
  --bg-4: #e3e1ff;
  --surface: #ffffff;
  --surface-2: #fcfcfb;
  --border: rgba(71, 103, 255, 0.10);
  --border-2: rgba(71, 103, 255, 0.22);
  --text: #100D39;
  --text-2: #1a1a2e;
  --muted: #4c4b57;
  --muted-2: #636363;
  --primary: #4767FF;
  --primary-2: #5A4BFF;
  --accent: #8b5cf6;
  --accent-2: #00F0FF;
  --primary-glow: rgba(71, 103, 255, 0.28);
  --radius: 16px;
  --radius-lg: 22px;
  --max: 1200px;
  --font-sans: 'Inter', system-ui, -apple-system, Segoe UI, Roboto, sans-serif;
  --font-display: 'Space Grotesk', 'Inter', sans-serif;
}

* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
body {
  font-family: var(--font-sans);
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }

.container { max-width: var(--max); margin: 0 auto; padding: 0 24px; }
.container.narrow { max-width: 820px; }
.muted { color: var(--muted); }
.eyebrow {
  display: inline-block;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--primary);
  padding: 6px 12px;
  border: 1px solid var(--border-2);
  border-radius: 999px;
  background: rgba(71, 103, 255, 0.06);
}

h1, h2, h3, h4, h5 {
  font-family: var(--font-display);
  font-weight: 700;
  letter-spacing: -0.02em;
  margin: 0 0 16px;
  line-height: 1.15;
  color: var(--text);
}
h1 { font-size: clamp(40px, 6vw, 76px); }
h2 { font-size: clamp(30px, 4vw, 48px); }
h3 { font-size: 22px; }
h4 { font-size: 18px; }

.gradient-text {
  background: linear-gradient(90deg, #4767FF 0%, #5A4BFF 50%, #8b5cf6 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 14px 22px;
  border-radius: 999px;
  font-weight: 600;
  font-size: 15px;
  cursor: pointer;
  transition: transform .15s ease, background .2s ease, box-shadow .2s ease, border-color .2s ease;
  border: 1px solid transparent;
  white-space: nowrap;
}
.btn-sm { padding: 10px 16px; font-size: 14px; }
.btn-primary {
  background: linear-gradient(135deg, #4767FF, #5A4BFF);
  color: #fff;
  box-shadow: 0 8px 24px var(--primary-glow);
}
.btn-primary:hover { transform: translateY(-1px); box-shadow: 0 12px 32px var(--primary-glow); }
.btn-ghost {
  background: #fff;
  color: var(--text);
  border-color: var(--border-2);
}
.btn-ghost:hover { background: var(--bg-3); border-color: var(--primary); }

/* ---------- Nav ---------- */
.nav {
  position: sticky; top: 0; z-index: 50;
  backdrop-filter: blur(14px);
  background: rgba(236, 234, 248, 0.78);
  border-bottom: 1px solid var(--border);
}
.btn.btn-pill { padding: 14px 26px; border-radius: 999px; font-size: 15px; }
.btn-arrow span { transition: transform .15s ease; display: inline-block; }
.btn-arrow:hover span { transform: translateX(3px); }
.nav-inner {
  display: flex; align-items: center; justify-content: space-between;
  height: 92px;
}
.brand {
  display: inline-flex; align-items: center; gap: 8px;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 26px;
  color: var(--text);
  letter-spacing: -0.02em;
}
.brand-logo { width: 38px; height: 38px; }
.brand-logo-full { height: 70px; width: auto; display: block; }
.brand-text {
  background: linear-gradient(90deg, #4767FF 0%, #5A4BFF 60%, #00D4FF 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.brand-dot { -webkit-text-fill-color: initial; color: var(--text); }
.nav-links { display: flex; gap: 28px; }
.nav-links a {
  color: var(--muted);
  font-size: 14px;
  font-weight: 500;
  transition: color .15s ease;
}
.nav-links a:hover, .nav-links a.active { color: var(--primary); }
@media (max-width: 860px) {
  .nav-links { display: none; }
}

/* ---------- Hero ---------- */
.hero {
  position: relative;
  padding: 60px 0 90px;
  overflow: hidden;
  background: #eceaf8;
}
.hero-inner {
  position: relative;
  text-align: center;
  max-width: 920px;
}
.hero-inner .eyebrow { margin-bottom: 24px; }
.hero p.lede {
  font-size: 17px;
  color: var(--muted);
  max-width: 560px;
  margin: 20px 0 32px;
  line-height: 1.55;
}
.hero-cta { display: flex; gap: 14px; flex-wrap: wrap; }
.hero-inner .hero-cta { justify-content: center; }

/* Split hero */
.hero-split { padding: 40px 0 80px; background: #eceaf8; }
.hero-grid {
  position: relative;
  display: grid;
  grid-template-columns: 1.05fr 1fr;
  gap: 40px;
  align-items: center;
  min-height: 620px;
}
.hero-text h1 {
  font-size: clamp(44px, 5.6vw, 78px);
  font-weight: 800;
  letter-spacing: -0.025em;
  line-height: 1.05;
  color: #0a0a14;
  margin-bottom: 28px;
}
.hero-art { display: flex; justify-content: center; align-items: center; }
.hero-art img, .hero-art .hero-svg { width: 100%; max-width: 680px; height: auto; }
.hero-art .hero-svg { aspect-ratio: 760 / 700; pointer-events: none; }
@media (max-width: 900px) {
  .hero-grid { grid-template-columns: 1fr; text-align: left; min-height: 0; }
  .hero-art { order: -1; }
  .hero-text h1 { font-size: clamp(36px, 9vw, 56px); }
}

.bg-grid {
  position: absolute; inset: 0;
  background-image:
    linear-gradient(rgba(71, 103, 255, 0.06) 1px, transparent 1px),
    linear-gradient(90deg, rgba(71, 103, 255, 0.06) 1px, transparent 1px);
  background-size: 56px 56px;
  mask-image: radial-gradient(ellipse at center, #000 30%, transparent 75%);
  -webkit-mask-image: radial-gradient(ellipse at center, #000 30%, transparent 75%);
}
.bg-glow {
  position: absolute;
  width: 800px; height: 800px;
  left: 50%; top: -200px; transform: translateX(-50%);
  background: radial-gradient(circle at center, rgba(71, 103, 255, 0.18) 0%, rgba(139, 92, 246, 0.10) 35%, transparent 70%);
  filter: blur(40px);
  pointer-events: none;
}

/* ---------- Logos ---------- */
.logos { padding: 80px 0 90px; background: #fff; overflow: hidden; }
.logos-heading {
  text-align: center;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(36px, 5.4vw, 72px);
  line-height: 1.05;
  letter-spacing: -0.02em;
  margin: 0 0 56px;
  color: #0c0a1f;
}
.logos-heading .accent { color: #5A4BFF; }

.logo-marquee {
  position: relative;
  width: 100%;
  mask-image: linear-gradient(to right, transparent, #000 8%, #000 92%, transparent);
  -webkit-mask-image: linear-gradient(to right, transparent, #000 8%, #000 92%, transparent);
}
.logo-track {
  display: flex;
  gap: 18px;
  width: max-content;
  animation: logo-scroll 40s linear infinite;
}
.logo-marquee:hover .logo-track { animation-play-state: paused; }

@keyframes logo-scroll {
  from { transform: translateX(0); }
  to   { transform: translateX(-50%); }
}

.logo-pill {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  padding: 10px 22px 10px 10px;
  background: #fff;
  border: 1px solid #e8e4dc;
  border-radius: 999px;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 18px;
  color: #0c0a1f;
  white-space: nowrap;
  flex-shrink: 0;
  transition: box-shadow .2s, border-color .2s, transform .2s;
}
.logo-pill:hover {
  border-color: #c9c2ff;
  box-shadow: 0 0 0 4px rgba(90,75,255,0.12);
}
.logo-pill.is-active {
  border-color: #5A4BFF;
  box-shadow: 0 0 0 4px rgba(90,75,255,0.18);
}
.lp-icon {
  width: 36px; height: 36px; border-radius: 50%;
  display: inline-flex; align-items: center; justify-content: center;
  color: #fff; font-weight: 700; font-size: 16px;
  flex-shrink: 0;
}

/* ---------- Section heads ---------- */
.section-head {
  text-align: center;
  max-width: 740px;
  margin: 0 auto 56px;
}
.section-head .eyebrow { margin-bottom: 20px; }

/* ---------- Sections ---------- */
.offerings, .features, .testimonials, .faq, .cta {
  padding: 100px 0;
  position: relative;
}
.offerings { padding: 0; }
.offerings { background: linear-gradient(180deg, #f7f5ff 0%, #ffffff 100%); }

/* ---------- Timeline rows (offerings) ---------- */
.timeline { position: relative; }
.tl-row {
  display: grid;
  grid-template-columns: 1fr 96px 1fr;
  align-items: center;
  gap: 32px;
  padding: 0;
  min-height: 100vh;
  text-decoration: none;
  color: inherit;
}

.tl-illu {
  display: flex;
  justify-content: center;
  align-items: center;
}
.tl-svg {
  width: 100%;
  max-width: min(80vh, 720px);
  height: auto;
  aspect-ratio: 1 / 1;
  pointer-events: none;
}

.tl-spine {
  position: relative;
  align-self: stretch;
  display: flex;
  justify-content: center;
  align-items: center;
}
.tl-spine::before {
  content: '';
  position: absolute;
  left: 50%;
  top: 0;
  bottom: 0;
  width: 2px;
  background: #5A4BFF;
  transform: translateX(-50%) scaleY(var(--spine-progress, 1));
  transform-origin: top center;
  will-change: transform;
}
.tl-row:first-child .tl-spine::before { top: 50%; }
.tl-row:last-child  .tl-spine::before { bottom: 50%; }

.tl-badge {
  position: relative;
  z-index: 1;
  width: 72px;
  height: 72px;
  border-radius: 18px;
  background: #5A4BFF;
  color: #fff;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 10px 28px rgba(90,75,255,0.35);
}
.tl-badge svg { width: 32px; height: 32px; }

.tl-text { max-width: 640px; }
.tl-eyebrow {
  display: inline-block;
  color: #5A4BFF;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 20px;
  letter-spacing: -0.005em;
  margin-bottom: 26px;
}
.tl-text h3 {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(40px, 4.8vw, 68px);
  line-height: 1.05;
  letter-spacing: -0.025em;
  color: #0c0a1f;
  margin: 0 0 28px;
}
.tl-text p {
  color: #5b5670;
  font-size: clamp(17px, 1.3vw, 22px);
  line-height: 1.6;
  margin: 0;
  max-width: 600px;
}

.tl-row:hover .tl-text h3 { color: #5A4BFF; transition: color .2s; }

@media (max-width: 900px) {
  .tl-row {
    grid-template-columns: 56px 1fr;
    gap: 20px;
    padding: 40px 0;
  }
  .tl-illu { grid-column: 1 / -1; order: 2; }
  .tl-spine { order: 0; }
  .tl-text  { order: 1; }
  .tl-svg { max-width: 360px; }
}
.features { background: #fff; }
.testimonials { background: linear-gradient(180deg, #ffffff 0%, #fafaff 100%); }

/* ---------- Sub-page hero (split layout) ---------- */
.hero-product {
  position: relative;
  padding: 70px 0 90px;
  background: linear-gradient(180deg, #eceaf8 0%, #f5f3ff 100%);
  overflow: hidden;
}
.hero-product .hero-grid {
  display: grid;
  grid-template-columns: 1.05fr 1fr;
  gap: 50px;
  align-items: center;
  min-height: 540px;
}
.hero-product .hero-text h1 {
  font-size: clamp(40px, 5.4vw, 72px);
  line-height: 1.05;
  letter-spacing: -0.025em;
  color: #0a0a14;
  margin-bottom: 22px;
}
.hero-product .hero-text .lede {
  font-size: 18px;
  line-height: 1.6;
  color: #4c4b57;
  margin: 0 0 30px;
  max-width: 560px;
}
.hero-product .hero-art object,
.hero-product .hero-art img {
  width: 100%;
  max-width: 540px;
  margin-left: auto;
}
@media (max-width: 900px) {
  .hero-product .hero-grid { grid-template-columns: 1fr; min-height: 0; }
  .hero-product .hero-art { order: -1; }
}

/* ---------- Stats strip ---------- */
.stats-strip {
  background: #fff;
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  padding: 48px 0;
}
.stats-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
  text-align: center;
}
.stat-num {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(36px, 4vw, 56px);
  line-height: 1;
  letter-spacing: -0.02em;
  color: var(--primary);
  margin-bottom: 8px;
}
.stat-label {
  color: var(--muted);
  font-size: 14px;
  letter-spacing: 0.02em;
}
@media (max-width: 760px) { .stats-grid { grid-template-columns: 1fr 1fr; } }

/* ---------- Steps (numbered process) ---------- */
.steps-section { background: #fff; padding: 100px 0; }
.steps-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 22px;
  margin-top: 56px;
}
@media (max-width: 900px) { .steps-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 600px) { .steps-grid { grid-template-columns: 1fr; } }
.step {
  position: relative;
  background: #f7f5ff;
  border: 1px solid var(--border);
  border-radius: 18px;
  padding: 28px 24px;
}
.step-num {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: 12px;
  background: linear-gradient(135deg, #4767FF, #5A4BFF);
  color: #fff;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 17px;
  margin-bottom: 18px;
}
.step h4 {
  font-size: 19px;
  margin: 0 0 10px;
  letter-spacing: -0.01em;
}
.step p { color: var(--muted); font-size: 14.5px; line-height: 1.55; margin: 0; }

/* ---------- Use cases (alternating image + text rows) ---------- */
.usecases { background: #f7f5ff; padding: 100px 0; }
.usecase-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: center;
  padding: 50px 0;
}
.usecase-row + .usecase-row { border-top: 1px solid var(--border); }
.usecase-row.reverse .usecase-text { order: -1; }
.usecase-img {
  background: linear-gradient(135deg, #ece7ff, #ddd6f7);
  border-radius: 22px;
  aspect-ratio: 4 / 3;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 40px;
}
.usecase-img svg { width: 100%; height: 100%; max-height: 280px; }
.usecase-text h3 {
  font-size: clamp(26px, 2.6vw, 36px);
  line-height: 1.15;
  margin: 0 0 14px;
  letter-spacing: -0.02em;
}
.usecase-text .eyebrow { margin-bottom: 14px; }
.usecase-text p {
  color: var(--muted);
  font-size: 16.5px;
  line-height: 1.6;
  margin: 0 0 22px;
}
.usecase-text ul {
  list-style: none;
  padding: 0;
  margin: 0;
}
.usecase-text li {
  position: relative;
  padding-left: 28px;
  margin-bottom: 10px;
  color: var(--text);
  font-size: 15px;
}
.usecase-text li::before {
  content: '';
  position: absolute;
  left: 0; top: 7px;
  width: 16px; height: 16px;
  border-radius: 50%;
  background: linear-gradient(135deg, #4767FF, #5A4BFF);
}
.usecase-text li::after {
  content: '';
  position: absolute;
  left: 5px; top: 11px;
  width: 6px; height: 3px;
  border-left: 2px solid #fff;
  border-bottom: 2px solid #fff;
  transform: rotate(-45deg);
}
@media (max-width: 900px) {
  .usecase-row { grid-template-columns: 1fr; gap: 28px; }
  .usecase-row.reverse .usecase-text { order: 0; }
}

/* ---------- Integrations strip ---------- */
.integrations-section { background: #fff; padding: 80px 0; text-align: center; }
.int-grid {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 16px;
  margin-top: 40px;
}
@media (max-width: 900px) { .int-grid { grid-template-columns: repeat(3, 1fr); } }
.int-cell {
  background: #f7f5ff;
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 22px 12px;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 14px;
  color: var(--text);
  text-align: center;
}

/* ---------- Featured quote ---------- */
.featured-quote {
  background: linear-gradient(135deg, #4767FF 0%, #5A4BFF 50%, #8b5cf6 100%);
  padding: 90px 0;
  color: #fff;
  text-align: center;
}
.featured-quote blockquote {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: clamp(22px, 2.6vw, 34px);
  line-height: 1.3;
  letter-spacing: -0.015em;
  max-width: 880px;
  margin: 0 auto 28px;
}
.featured-quote cite {
  font-style: normal;
  font-size: 15px;
  opacity: 0.85;
}
.featured-quote cite strong { display: block; font-weight: 700; opacity: 1; }

/* ---------- Team grid ---------- */
.team-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 22px;
  margin-top: 56px;
}
@media (max-width: 900px) { .team-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 600px) { .team-grid { grid-template-columns: 1fr; } }
.team-card {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 18px;
  padding: 22px;
  transition: transform .2s, border-color .2s, box-shadow .2s;
}
.team-card:hover {
  transform: translateY(-3px);
  border-color: var(--primary);
  box-shadow: 0 14px 30px rgba(71,103,255,0.08);
}
.team-avatar {
  width: 100%;
  aspect-ratio: 1 / 1;
  border-radius: 14px;
  background: linear-gradient(135deg, var(--c1, #5A4BFF), var(--c2, #8b5cf6));
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 42px;
  letter-spacing: -0.02em;
  margin-bottom: 18px;
}
.team-card h4 {
  font-size: 18px;
  margin: 0 0 4px;
  letter-spacing: -0.01em;
}
.team-role {
  color: var(--primary);
  font-size: 14px;
  font-weight: 600;
  margin: 0 0 10px;
}
.team-bio {
  color: var(--muted);
  font-size: 14px;
  line-height: 1.55;
  margin: 0;
}

/* ---------- Milestones (timeline) ---------- */
.milestones-section { background: #f7f5ff; padding: 100px 0; }
.milestones {
  position: relative;
  max-width: 760px;
  margin: 56px auto 0;
  padding-left: 36px;
}
.milestones::before {
  content: '';
  position: absolute;
  left: 12px; top: 0; bottom: 0;
  width: 2px;
  background: linear-gradient(to bottom, #5A4BFF 0%, #8b5cf6 100%);
}
.milestone {
  position: relative;
  padding: 14px 0 32px;
}
.milestone::before {
  content: '';
  position: absolute;
  left: -30px; top: 22px;
  width: 14px; height: 14px;
  border-radius: 50%;
  background: #5A4BFF;
  box-shadow: 0 0 0 4px #f7f5ff, 0 0 0 5px #5A4BFF;
}
.milestone-year {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 14px;
  color: var(--primary);
  letter-spacing: 0.04em;
  text-transform: uppercase;
  margin-bottom: 6px;
}
.milestone h4 {
  font-size: 20px;
  margin: 0 0 6px;
  letter-spacing: -0.01em;
}
.milestone p {
  color: var(--muted);
  font-size: 15px;
  line-height: 1.55;
  margin: 0;
}

/* ---------- Locations strip ---------- */
.locations-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 18px;
  margin-top: 40px;
}
@media (max-width: 900px) { .locations-grid { grid-template-columns: 1fr 1fr; } }
.location-card {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 22px;
  text-align: left;
}
.location-flag {
  font-size: 28px;
  margin-bottom: 10px;
}
.location-card h5 {
  font-size: 17px;
  margin: 0 0 4px;
  letter-spacing: -0.01em;
}
.location-card p {
  color: var(--muted);
  font-size: 13.5px;
  line-height: 1.5;
  margin: 0;
}

/* ---------- Blog ---------- */
.blog { padding: 80px 0 100px; background: #fff; }

.blog-featured {
  display: grid;
  grid-template-columns: 1.05fr 1fr;
  gap: 36px;
  align-items: center;
  background: #f7f5ff;
  border: 1px solid var(--border);
  border-radius: 24px;
  padding: 28px;
  margin-bottom: 56px;
}
.blog-featured-img {
  position: relative;
  height: 360px;
  border-radius: 16px;
  background: linear-gradient(135deg, #4767FF 0%, #5A4BFF 50%, #8b5cf6 100%);
  overflow: hidden;
}
.blog-featured-img::before {
  content: '';
  position: absolute; inset: 0;
  background-image:
    linear-gradient(rgba(255,255,255,0.08) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,0.08) 1px, transparent 1px);
  background-size: 32px 32px;
  mask-image: radial-gradient(ellipse at 30% 30%, #000 30%, transparent 75%);
  -webkit-mask-image: radial-gradient(ellipse at 30% 30%, #000 30%, transparent 75%);
}
.blog-tag {
  position: absolute; top: 16px; left: 16px;
  background: rgba(255,255,255,0.16);
  backdrop-filter: blur(8px);
  color: #fff;
  font-size: 12px;
  font-weight: 600;
  padding: 6px 12px;
  border-radius: 999px;
  letter-spacing: 0.04em;
}
.blog-featured-text h2 {
  font-size: clamp(28px, 3vw, 38px);
  line-height: 1.15;
  letter-spacing: -0.02em;
  margin: 14px 0 14px;
}
.blog-meta {
  display: inline-block;
  color: var(--primary);
  font-weight: 600;
  font-size: 13px;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}
.blog-featured-text p {
  color: var(--muted);
  font-size: 16px;
  line-height: 1.65;
  margin: 0 0 24px;
}

.blog-author {
  display: flex; align-items: center; gap: 12px;
  margin: 0 0 22px;
}
.blog-author.small { margin: 0; }
.blog-author .blog-avatar {
  width: 40px; height: 40px;
  border-radius: 10px;
  display: inline-flex; align-items: center; justify-content: center;
  color: #fff; font-weight: 700; font-size: 14px;
  font-family: var(--font-display);
  flex-shrink: 0;
}
.blog-author strong {
  display: block;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 15px;
  color: var(--text);
  line-height: 1.2;
}
.blog-author span {
  display: block;
  color: var(--muted);
  font-size: 13px;
  margin-top: 2px;
}

@media (max-width: 900px) {
  .blog-featured { grid-template-columns: 1fr; }
  .blog-featured-img { height: 220px; }
}

.blog-filters {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin: 0 0 32px;
}
.blog-chip {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 14px;
  padding: 9px 18px;
  border-radius: 999px;
  border: 1px solid var(--border-2);
  background: #fff;
  color: var(--text);
  cursor: pointer;
  transition: background .15s, color .15s, border-color .15s;
}
.blog-chip:hover { border-color: var(--primary); }
.blog-chip.is-active {
  background: linear-gradient(135deg, #4767FF, #5A4BFF);
  color: #fff;
  border-color: transparent;
}

.blog-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  margin-bottom: 80px;
}
@media (max-width: 900px) { .blog-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 600px) { .blog-grid { grid-template-columns: 1fr; } }

.blog-card {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 18px;
  overflow: hidden;
  transition: transform .2s, box-shadow .2s, border-color .2s;
  cursor: pointer;
}
.blog-card:hover {
  transform: translateY(-4px);
  border-color: var(--primary);
  box-shadow: 0 20px 40px rgba(71,103,255,0.10);
}
.blog-card-img {
  height: 180px;
  background: var(--g, linear-gradient(135deg, #5A4BFF, #8b5cf6));
  position: relative;
}
.blog-card-img::before {
  content: '';
  position: absolute; inset: 0;
  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: 24px 24px;
  mask-image: radial-gradient(ellipse at 70% 40%, #000 30%, transparent 75%);
  -webkit-mask-image: radial-gradient(ellipse at 70% 40%, #000 30%, transparent 75%);
}
.blog-card-body { padding: 22px; }
.blog-card-tag {
  display: inline-block;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--primary);
  margin-bottom: 12px;
}
.blog-card h3 {
  font-size: 19px;
  line-height: 1.3;
  letter-spacing: -0.01em;
  margin: 0 0 10px;
}
.blog-card p {
  color: var(--muted);
  font-size: 14.5px;
  line-height: 1.55;
  margin: 0 0 18px;
}

.blog-cta {
  background: linear-gradient(135deg, #f7f5ff 0%, #ece9ff 100%);
  border: 1px solid var(--border);
  border-radius: 22px;
  padding: 48px;
  text-align: center;
}
.blog-cta h3 {
  font-size: clamp(24px, 2.4vw, 32px);
  margin: 0 0 10px;
}
.blog-cta p { color: var(--muted); margin: 0 0 24px; }
.blog-subscribe {
  display: flex;
  gap: 10px;
  max-width: 440px;
  margin: 0 auto;
}
.blog-subscribe input {
  flex: 1;
  padding: 14px 18px;
  border-radius: 999px;
  border: 1px solid var(--border-2);
  background: #fff;
  font-family: var(--font-sans);
  font-size: 15px;
  color: var(--text);
  outline: none;
}
.blog-subscribe input:focus { border-color: var(--primary); }
@media (max-width: 600px) {
  .blog-subscribe { flex-direction: column; }
}
.faq { background: #fff; }
.cta { background: linear-gradient(180deg, #fafaff 0%, #e3e9ff 100%); }

/* ---------- Cards ---------- */
.cards-3 {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 22px;
}
@media (max-width: 900px) { .cards-3 { grid-template-columns: 1fr; } }

.card {
  background: #ffffff;
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 32px;
  color: var(--text);
  transition: transform .2s ease, border-color .2s ease, box-shadow .2s ease;
}
.card:hover {
  transform: translateY(-4px);
  border-color: var(--primary);
  box-shadow: 0 20px 50px rgba(71, 103, 255, 0.10);
}
.card-icon {
  font-size: 28px;
  width: 56px; height: 56px;
  display: grid; place-items: center;
  background: linear-gradient(135deg, rgba(71, 103, 255, 0.10), rgba(139, 92, 246, 0.10));
  border: 1px solid var(--border-2);
  border-radius: 14px;
  margin-bottom: 22px;
  overflow: hidden;
}
.card-icon img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.card .tag {
  color: var(--primary);
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.04em;
  margin: -8px 0 14px;
}
.card p { color: var(--muted); margin: 0; }

/* ---------- Features ---------- */
.features-title {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(40px, 5vw, 64px);
  line-height: 1.05;
  letter-spacing: -0.02em;
  color: #0c0a1f;
  margin: 0 0 18px;
  text-align: center;
}
.features-sub {
  text-align: center;
  color: #5b5670;
  font-size: 18px;
  line-height: 1.6;
  max-width: 760px;
  margin: 0 auto;
}
.feature-grid {
  margin-top: 64px;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 22px;
}
@media (max-width: 900px) { .feature-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 600px) { .feature-grid { grid-template-columns: 1fr; } }

.feat {
  background: #ece7ff;
  border-radius: 22px;
  padding: 22px 22px 28px;
  display: flex;
  flex-direction: column;
  gap: 22px;
  transition: transform .25s ease, box-shadow .25s ease;
}
.feat:hover {
  transform: translateY(-3px);
  box-shadow: 0 20px 38px rgba(90,75,255,0.12);
}
.feat-illu {
  background: #fff;
  border-radius: 16px;
  padding: 24px;
  height: 220px;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}
.feat-illu img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.feat-illu svg,
.feat-illu img {
  width: 100%;
  height: 100%;
  max-height: 200px;
  object-fit: contain;
  display: block;
}

/* ---------- Feature SVG animations ---------- */
@keyframes feat-march    { to   { stroke-dashoffset: -16; } }
@keyframes feat-pulse    { 0%,100% { opacity: 1; transform: scale(1); } 50% { opacity: 0.45; transform: scale(0.7); } }
@keyframes feat-float-y  { 0%,100% { transform: translateY(0); } 50% { transform: translateY(-4px); } }
@keyframes feat-draw     { from { stroke-dashoffset: 900; } to { stroke-dashoffset: 0; } }
@keyframes feat-dash     { to   { stroke-dashoffset: -24; } }
@keyframes feat-wig      { 0%,100% { transform: rotate(-2deg); } 50% { transform: rotate(2deg); } }

/* Marching ants on every dashed stroke */
.feat-illu svg [stroke-dasharray] {
  animation: feat-march 2.4s linear infinite;
}

/* Pulsing purple dots (small accent dots) */
.feat-illu svg circle[fill="#5A4BFF"] {
  transform-box: fill-box;
  transform-origin: center;
  animation: feat-pulse 2.2s ease-in-out infinite;
}
.feat-illu svg circle[fill="#5A4BFF"]:nth-of-type(2n) { animation-delay: .25s; }
.feat-illu svg circle[fill="#5A4BFF"]:nth-of-type(3n) { animation-delay: .5s; }
.feat-illu svg circle[fill="#5A4BFF"]:nth-of-type(5n) { animation-delay: .75s; }

/* Card 1 — Build Smarter Agents: dashed inner squares wobble */
.feat:nth-child(1) .feat-illu svg rect[stroke-dasharray] {
  transform-box: fill-box;
  transform-origin: center;
  animation: feat-wig 3s ease-in-out infinite, feat-march 2.4s linear infinite;
}

/* Card 2 — Train: floating shapes drift */
.feat:nth-child(2) .feat-illu svg circle[fill="#5A4BFF"],
.feat:nth-child(2) .feat-illu svg circle[fill="#bcb4f0"],
.feat:nth-child(2) .feat-illu svg rect[fill="#5A4BFF"],
.feat:nth-child(2) .feat-illu svg rect[fill="#bcb4f0"],
.feat:nth-child(2) .feat-illu svg polygon {
  transform-box: fill-box;
  transform-origin: center;
  animation: feat-float-y 2.6s ease-in-out infinite;
}
.feat:nth-child(2) .feat-illu svg polygon:nth-of-type(2) { animation-delay: .2s; }
.feat:nth-child(2) .feat-illu svg polygon:nth-of-type(3) { animation-delay: .4s; }
/* Right-stack horizontal accent lines pulse from blue to faded */
.feat:nth-child(2) .feat-illu svg line[stroke="#5A4BFF"] {
  animation: feat-pulse 2.4s ease-in-out infinite;
}

/* Card 3 — Enterprise Reliability: padlock subtly breathes */
.feat:nth-child(3) .feat-illu svg rect[fill="#5A4BFF"] {
  transform-box: fill-box;
  transform-origin: center;
  animation: feat-pulse 2.4s ease-in-out infinite;
}

/* Card 4 — Real-Time Metrics: wave draws repeatedly */
.feat:nth-child(4) .feat-illu svg path[stroke="#15131e"] {
  stroke-dasharray: 900;
  stroke-dashoffset: 900;
  animation: feat-draw 4s ease-in-out infinite alternate;
}

/* Card 5 — Scalability: connecting curves animate flow */
.feat:nth-child(5) .feat-illu svg path[stroke="#5A4BFF"] {
  stroke-dasharray: 6 6;
  animation: feat-dash 1.2s linear infinite;
}

/* Card 6 — Exceptional Reliability: connector dashes flow */
.feat:nth-child(6) .feat-illu svg line[stroke-dasharray] {
  animation: feat-march 1.4s linear infinite;
}
.feat h4 {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 22px;
  line-height: 1.2;
  letter-spacing: -0.01em;
  color: #0c0a1f;
  margin: 0;
}
.feat p {
  color: #5b5670;
  font-size: 16px;
  line-height: 1.55;
  margin: 0;
}

/* ---------- Testimonials ---------- */
.testi-title {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(40px, 5vw, 64px);
  line-height: 1.05;
  letter-spacing: -0.02em;
  color: #0c0a1f;
  margin: 0 0 14px;
  text-align: center;
}
.testi-sub {
  text-align: center;
  color: #5b5670;
  font-size: 18px;
  margin: 0 0 56px;
}

.testi-marquee {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 22px;
  height: 720px;
  max-height: 80vh;
  overflow: hidden;
  padding: 0 max(24px, 4vw);
  mask-image: linear-gradient(to bottom, transparent, #000 8%, #000 92%, transparent);
  -webkit-mask-image: linear-gradient(to bottom, transparent, #000 8%, #000 92%, transparent);
}
.testi-col {
  position: relative;
  overflow: hidden;
  height: 100%;
  min-height: 0;
}
.testi-track {
  display: flex;
  flex-direction: column;
  gap: 22px;
  animation: testi-scroll var(--dur, 40s) linear infinite;
}
.testi-col:nth-child(2) .testi-track { animation-direction: reverse; }

@keyframes testi-scroll {
  from { transform: translateY(0); }
  to   { transform: translateY(-50%); }
}

.testi-card {
  background: #fff;
  border: 1.5px solid #c9c2ff;
  border-radius: 18px;
  padding: 22px;
  flex-shrink: 0;
}
.testi-head {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 18px;
}
.testi-avatar {
  width: 44px;
  height: 44px;
  border-radius: 10px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 15px;
  flex-shrink: 0;
  object-fit: cover;
}
.testi-head strong {
  display: block;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 17px;
  color: #0c0a1f;
  line-height: 1.2;
}
.testi-head span {
  display: block;
  color: #6b6680;
  font-size: 14px;
  margin-top: 2px;
}
.testi-card p {
  color: #4a4760;
  font-size: 15px;
  line-height: 1.6;
  margin: 0;
}

@media (max-width: 900px) {
  .testi-marquee { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 600px) {
  .testi-marquee { grid-template-columns: 1fr; height: 600px; }
}

/* ---------- FAQ ---------- */
.faq-list { display: flex; flex-direction: column; gap: 10px; }
.faq details {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 18px 22px;
  transition: border-color .2s ease;
}
.faq details[open] { border-color: var(--primary); }
.faq summary {
  cursor: pointer;
  list-style: none;
  font-weight: 600;
  font-size: 16px;
  color: var(--text);
  display: flex; justify-content: space-between; align-items: center;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: '+';
  font-size: 22px;
  color: var(--primary);
  transition: transform .2s ease;
}
.faq details[open] summary::after { content: '−'; }
.faq details p { color: var(--muted); margin: 14px 0 0; }

/* ---------- CTA ---------- */
.cta-card {
  background: linear-gradient(135deg, #4767FF 0%, #5A4BFF 100%);
  border: 1px solid var(--border-2);
  border-radius: var(--radius-lg);
  padding: 64px 32px;
  text-align: center;
  color: #fff;
  box-shadow: 0 30px 60px rgba(71, 103, 255, 0.24);
}
.cta-card h2 { color: #fff; }
.cta-card p { color: rgba(255,255,255,0.85); }
.cta-card .btn-ghost { background: rgba(255,255,255,0.12); color: #fff; border-color: rgba(255,255,255,0.4); }
.cta-card .btn-ghost:hover { background: rgba(255,255,255,0.22); border-color: #fff; }
.cta-card .btn-primary { background: #fff; color: var(--primary); box-shadow: 0 8px 20px rgba(0,0,0,0.12); }
.cta-card .btn-primary:hover { background: #f7f5ff; }
.cta-card .hero-cta { margin-top: 22px; }

/* ---------- Footer ---------- */
.footer {
  border-top: 1px solid var(--border);
  background: #fafaff;
  padding: 56px 0 24px;
}
.footer-inner {
  display: grid;
  grid-template-columns: 1.4fr 2fr;
  gap: 40px;
}
@media (max-width: 800px) { .footer-inner { grid-template-columns: 1fr; } }
.footer-brand p { color: var(--muted); margin-top: 14px; max-width: 360px; }
.footer-cols {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
}
@media (max-width: 600px) { .footer-cols { grid-template-columns: 1fr 1fr; } }
.footer-cols h5 {
  font-size: 13px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--text);
  margin-bottom: 12px;
}
.footer-cols a {
  display: block;
  color: var(--muted);
  font-size: 14px;
  padding: 4px 0;
}
.footer-cols a:hover { color: var(--primary); }

/* ---------- Sub-page hero ---------- */
.hero.hero-sub { padding: 90px 0 70px; }
.hero.hero-sub h1 { font-size: clamp(34px, 5vw, 60px); }

/* ---------- Card link ---------- */
.card-link {
  display: inline-block;
  margin-top: 18px;
  color: var(--primary);
  font-weight: 600;
  font-size: 14px;
}
.card[href]:hover .card-link { color: var(--primary-2); }

/* ---------- Contact ---------- */
.contact-section { padding: 60px 0 100px; background: #fff; }
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  gap: 40px;
}
@media (max-width: 800px) { .contact-grid { grid-template-columns: 1fr; } }

.contact-info h3 { font-size: 18px; margin-bottom: 8px; color: var(--text); }
.contact-list, .check-list { list-style: none; padding: 0; margin: 14px 0 0; }
.contact-list li {
  display: flex; justify-content: space-between; gap: 14px;
  padding: 12px 0;
  border-bottom: 1px solid var(--border);
  font-size: 15px;
}
.contact-list li span { color: var(--muted); }
.contact-list li a { color: var(--text); }
.contact-list li a:hover { color: var(--primary); }
.check-list li {
  position: relative;
  padding: 6px 0 6px 26px;
  color: var(--muted);
  font-size: 15px;
}
.check-list li::before {
  content: '✓';
  position: absolute; left: 0; top: 6px;
  color: var(--primary);
  font-weight: 700;
}

.contact-form {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 28px;
  display: flex; flex-direction: column; gap: 16px;
  box-shadow: 0 20px 50px rgba(71, 103, 255, 0.08);
}
.field { display: flex; flex-direction: column; gap: 6px; }
.field label { font-size: 13px; color: var(--muted); font-weight: 500; }
.field input, .field select, .field textarea {
  background: #fff;
  border: 1px solid var(--border-2);
  border-radius: 10px;
  color: var(--text);
  font-family: inherit;
  font-size: 15px;
  padding: 12px 14px;
  outline: none;
  transition: border-color .15s ease, box-shadow .15s ease;
}
.field input:focus, .field select:focus, .field textarea:focus {
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(71, 103, 255, 0.14);
}
.field textarea { resize: vertical; min-height: 120px; }

/* ---------- Prose (legal) ---------- */
.prose { padding: 40px 0 100px; background: #fff; }
.prose h2 {
  font-size: 22px;
  margin: 36px 0 10px;
}
.prose p { color: var(--muted); margin: 0 0 12px; }
.prose a { color: var(--primary); }
.prose a:hover { text-decoration: underline; }

.footer-bottom {
  margin-top: 40px;
  padding-top: 20px;
  border-top: 1px solid var(--border);
  display: flex; justify-content: space-between; align-items: center;
  flex-wrap: wrap; gap: 12px;
  color: var(--muted);
  font-size: 13px;
}
