/* =========================================================
   StellarAegis — Serval-style dark, brand-aligned
   Layout/structure: serval.com (dark mesh, purple ramp, mono accents)
   Brand identity (per stellaraegis-v1-final.html):
     Wordmark: Stellar + 4-point sparkle + egis
     Typeface: Plus Jakarta Sans 500/700 / -0.035em tracking
     Purple ramp: #7C3AED primary · #A78BFA light · #5B21B6 deep (Tailwind violet)
     Mono accents: Fragment Mono · 16px card radius · 999px pill CTAs
   ========================================================= */

:root {
  --bg:           #080808;
  --bg-elevated:  #0d0d0d;
  --surface:      #141414;
  --surface-2:    #1a1a1a;
  --border:       #1c1c1c;
  --border-soft:  rgba(255, 255, 255, 0.08);
  --border-faint: rgba(255, 255, 255, 0.06);

  --text:         #ffffff;
  --text-2:       rgba(255, 255, 255, 0.72);
  --text-3:       rgba(255, 255, 255, 0.55);
  --text-muted:   #ababab;

  /* brand violet ramp */
  --purple:       #7C3AED;   /* Violet 600 — primary */
  --purple-bright:#8B5CF6;   /* Violet 500 */
  --purple-light: #A78BFA;   /* Violet 400 — used on dark surfaces */
  --purple-deep:  #5B21B6;   /* Violet 800 */
  --purple-glow:  rgba(124, 58, 237, 0.20);
  --purple-soft:  rgba(167, 139, 250, 0.10);

  --radius-card:  16px;
  --radius-sm:    10px;
  --radius-pill:  999px;

  --max-w:        1240px;
  --gutter:       clamp(20px, 4vw, 48px);

  --font-sans:    'Plus Jakarta Sans', system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Helvetica, Arial, sans-serif;
  --font-mono:    'Fragment Mono', 'JetBrains Mono', ui-monospace, "SF Mono", Menlo, Consolas, monospace;
}

/* ---------- reset ---------- */
*, *::before, *::after { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
html { -webkit-font-smoothing: antialiased; -moz-osx-font-smoothing: grayscale; text-rendering: optimizeLegibility; scroll-behavior: smooth; }
body {
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-sans);
  font-weight: 400;
  font-size: 16px;
  line-height: 1.5;
  min-height: 100vh;
  letter-spacing: -0.005em;
  overflow-x: hidden;
}
a { color: inherit; text-decoration: none; }
img, svg { display: block; max-width: 100%; }
ul { list-style: none; padding: 0; margin: 0; }

/* ---------- layout primitives ---------- */
.wrap {
  width: 100%;
  max-width: var(--max-w);
  margin: 0 auto;
  padding-left: var(--gutter);
  padding-right: var(--gutter);
}
.section {
  padding: clamp(80px, 12vw, 160px) 0;
  position: relative;
}
.section--tight { padding: clamp(60px, 8vw, 100px) 0; }
.section-eyebrow {
  font-family: var(--font-mono);
  font-size: 13px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--purple-light);
  margin: 0 0 24px;
  display: inline-flex;
  align-items: center;
  gap: 10px;
}
.section-eyebrow::before {
  content: "";
  width: 6px; height: 6px;
  border-radius: 50%;
  background: var(--purple);
  box-shadow: 0 0 12px var(--purple);
}
.section-title {
  font-size: clamp(40px, 5.4vw, 68px);
  line-height: 1.05;
  letter-spacing: -0.04em;
  font-weight: 500;
  margin: 0 0 24px;
  color: var(--text);
  max-width: 22ch;
}
.section-lead {
  font-size: clamp(17px, 1.5vw, 20px);
  line-height: 1.5;
  color: var(--text-2);
  max-width: 60ch;
  margin: 0 0 48px;
}

/* ---------- header / nav ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(8, 8, 8, 0.72);
  backdrop-filter: saturate(140%) blur(14px);
  -webkit-backdrop-filter: saturate(140%) blur(14px);
  border-bottom: 1px solid var(--border-faint);
}
.site-header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  height: 72px;
  width: 100%;
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 var(--gutter);
}
/* ---------- brand wordmark: StellarAegis with sparkle above the A ----------
   Per latest brand spec (variant A2): one continuous wordmark "StellarAegis"
   with a sparkle floating above the capital A, like a crown.
   Dark-mode coloring:
     "Stellar" → --purple-light · "A" + "egis" → white · sparkle → --purple-light
   Plus Jakarta Sans 700 · letter-spacing -0.035em
*/
.brand {
  display: inline-flex;
  align-items: center;
  line-height: 1;
  font-family: var(--font-sans);
  font-weight: 700;
  letter-spacing: -0.035em;
  color: var(--text);
  font-size: clamp(16px, 4.6vw, 22px);
  white-space: nowrap;
  min-width: 0;
  flex-shrink: 1;
  /* crisp text rendering at small sizes */
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: geometricPrecision;
  font-feature-settings: "kern" 1, "calt" 1;
  /* keep the floating sparkle visible — never clip it */
  overflow: visible;
}
.brand .stellar {
  color: var(--purple-light);
  transition: color .25s ease;
}
.brand .egis {
  color: var(--text);
}
/* The "A" letter that hosts the sparkle above it */
.brand .a-host {
  position: relative;
  display: inline-block;
  color: var(--text);
}
/* The sparkle floats above the cap of the A.
   Render hints below keep tiny sparkle crisp at 22px font size — no glow halo. */
.brand .sparkle {
  position: absolute;
  top: -0.5em;
  left: 50%;
  transform: translateX(-50%);
  width: 0.62em;
  height: 0.62em;
  color: var(--purple-light);
  /* keep edges sharp at small sizes; glow lives on hover only */
  filter: none;
  shape-rendering: geometricPrecision;
  transform-origin: center;
  transition: transform .5s cubic-bezier(.2,.8,.2,1), filter .25s ease;
  display: inline-block;
  pointer-events: none;
  /* nudge to pixel grid so spikes don't half-pixel-alias */
  backface-visibility: hidden;
  -webkit-backface-visibility: hidden;
}
.brand:hover .sparkle {
  transform: translateX(-50%) rotate(45deg) scale(1.15);
  filter: drop-shadow(0 0 6px rgba(167, 139, 250, 0.55));
}
.brand:hover .stellar { color: #ffffff; }
.site-footer .brand { font-size: 24px; }   /* slightly larger in footer */
.site-nav { display: flex; align-items: center; gap: 28px; flex-shrink: 0; }
.nav-link {
  font-size: 14px;
  color: var(--text-2);
  transition: color .2s ease;
}
.nav-link:hover { color: var(--text); }

/* ---------- shiny CTA (Serval-style animated purple border) ---------- */
.btn {
  --shiny-bg: #000000;
  --shiny-fg: #ffffff;
  --shiny-stroke: #303030;
  --shiny-highlight: var(--purple);
  --shiny-hover: rgba(167, 139, 250, 0.18);

  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 14px 26px;
  font-family: var(--font-sans);
  font-size: 15px;
  font-weight: 500;
  letter-spacing: -0.01em;
  color: var(--shiny-fg);
  background: var(--shiny-bg);
  border-radius: var(--radius-pill);
  border: 0;
  cursor: pointer;
  isolation: isolate;
  transition: transform .25s ease;
}
.btn::before {
  /* animated purple gradient border */
  content: "";
  position: absolute;
  inset: -1px;
  z-index: -2;
  border-radius: inherit;
  background: conic-gradient(
    from var(--angle, 0deg),
    var(--shiny-stroke) 0%,
    var(--shiny-highlight) 12%,
    var(--shiny-stroke) 25%,
    var(--shiny-stroke) 50%,
    var(--shiny-highlight) 62%,
    var(--shiny-stroke) 75%,
    var(--shiny-stroke) 100%
  );
  animation: gradient-angle 4s linear infinite;
}
.btn::after {
  /* inner fill keeps the border thin */
  content: "";
  position: absolute;
  inset: 1px;
  z-index: -1;
  background: var(--shiny-bg);
  border-radius: inherit;
  box-shadow: inset 0 -2.5em 3.5em -0.5em rgba(124, 58, 237, 0.18);
  transition: box-shadow .3s ease, background .3s ease;
}
.btn:hover { transform: translateY(-1px); }
.btn:hover::after {
  background: linear-gradient(135deg, var(--shiny-hover), var(--shiny-hover));
  box-shadow: inset 0 -2.5em 3.5em -0.5em rgba(124, 58, 237, 0.32);
}
.btn .arrow {
  display: inline-block;
  transition: transform .25s ease;
}
.btn:hover .arrow { transform: translateX(3px); }

@property --angle {
  syntax: "<angle>";
  inherits: false;
  initial-value: 0deg;
}
@keyframes gradient-angle {
  to { --angle: 360deg; }
}
@supports not (background: conic-gradient(from 0deg, red, blue)) {
  .btn::before { background: linear-gradient(135deg, var(--shiny-stroke), var(--shiny-highlight), var(--shiny-stroke)); animation: none; }
}

.btn--ghost {
  --shiny-bg: transparent;
  background: transparent;
  border: 1px solid var(--border-soft);
  color: var(--text);
}
.btn--ghost::before, .btn--ghost::after { display: none; }
.btn--ghost:hover {
  border-color: var(--purple);
  color: var(--purple-light);
}
.btn--lg { padding: 16px 30px; font-size: 16px; }

/* ---------- hero ---------- */
.hero {
  position: relative;
  padding: clamp(80px, 14vw, 160px) 0 clamp(60px, 10vw, 120px);
  overflow: hidden;
}
.hero::before {
  /* radial purple glow behind hero */
  content: "";
  position: absolute;
  top: -20%;
  left: 50%;
  transform: translateX(-50%);
  width: 900px;
  height: 900px;
  background: radial-gradient(circle at center, var(--purple-glow) 0%, rgba(124, 58, 237, 0.04) 35%, transparent 65%);
  pointer-events: none;
  z-index: 0;
}
.hero__inner {
  position: relative;
  z-index: 1;
  text-align: center;
  max-width: 920px;
  margin: 0 auto;
}
.hero-eyebrow {
  font-family: var(--font-mono);
  font-size: 13px;
  letter-spacing: 0.05em;
  color: var(--text-3);
  margin: 0 0 28px;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 8px 16px;
  border: 1px solid var(--border-soft);
  border-radius: var(--radius-pill);
  background: rgba(255,255,255,0.02);
}
.hero-eyebrow .dot {
  width: 7px; height: 7px;
  border-radius: 50%;
  background: var(--purple);
  box-shadow: 0 0 0 0 rgba(124, 58, 237, 0.55);
  animation: pulse 2.4s ease-out infinite;
}
@keyframes pulse {
  0%   { box-shadow: 0 0 0 0 rgba(124, 58, 237, 0.45); }
  70%  { box-shadow: 0 0 0 10px rgba(124, 58, 237, 0); }
  100% { box-shadow: 0 0 0 0 rgba(124, 58, 237, 0); }
}
.hero-title {
  font-size: clamp(48px, 8vw, 96px);
  line-height: 1.02;
  letter-spacing: -0.045em;
  font-weight: 500;
  margin: 0 0 32px;
  color: var(--text);
}
.hero-title .accent {
  color: var(--purple-light);
  font-style: italic;
  font-weight: 500;
}
.hero-sub {
  font-size: clamp(17px, 1.6vw, 21px);
  line-height: 1.5;
  color: var(--text-2);
  max-width: 64ch;
  margin: 0 auto 44px;
}
.hero-actions {
  display: inline-flex;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
  justify-content: center;
}

/* ---------- quote band ---------- */
.quote-band {
  padding: clamp(80px, 12vw, 160px) 0;
  text-align: center;
  border-top: 1px solid var(--border-faint);
  border-bottom: 1px solid var(--border-faint);
  position: relative;
}
.quote-band__title {
  font-size: clamp(40px, 6vw, 76px);
  line-height: 1.05;
  letter-spacing: -0.04em;
  font-weight: 500;
  margin: 0 auto;
  max-width: 18ch;
}
.quote-band__title .accent { color: var(--purple-light); font-style: italic; }
.quote-band__cta {
  margin-top: 40px;
  font-family: var(--font-mono);
  font-size: 14px;
  color: var(--text-2);
  display: inline-flex;
  align-items: center;
  gap: 10px;
  border-bottom: 1px solid var(--border-soft);
  padding: 8px 0;
  transition: color .2s ease, border-color .2s ease;
}
.quote-band__cta:hover { color: var(--purple-light); border-bottom-color: var(--purple-light); }

/* ---------- card grid ---------- */
.grid {
  display: grid;
  gap: 20px;
  grid-template-columns: repeat(12, 1fr);
}
.card {
  grid-column: span 4;
  background: var(--surface);
  border: 1px solid var(--border-soft);
  border-radius: var(--radius-card);
  padding: 32px;
  transition: border-color .3s ease, transform .3s ease, background .3s ease;
  position: relative;
  overflow: hidden;
}
.card:hover {
  border-color: rgba(124, 58, 237, 0.35);
  transform: translateY(-2px);
}
.card::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  pointer-events: none;
  background: radial-gradient(400px circle at var(--mx, 50%) var(--my, 0%), rgba(124, 58, 237, 0.06), transparent 60%);
  opacity: 0;
  transition: opacity .3s ease;
}
.card:hover::after { opacity: 1; }
.card__icon {
  width: 44px;
  height: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 10px;
  background: linear-gradient(180deg, rgba(124,58,237,.18), rgba(124,58,237,.06));
  color: var(--purple-light);
  margin-bottom: 24px;
  border: 1px solid rgba(124, 58, 237, 0.18);
}
.card__icon svg { width: 22px; height: 22px; }
.card__title {
  font-size: 22px;
  line-height: 1.2;
  letter-spacing: -0.02em;
  font-weight: 500;
  margin: 0 0 12px;
  color: var(--text);
}
.card__desc {
  font-size: 15px;
  line-height: 1.55;
  color: var(--text-2);
  margin: 0;
}
.card__num {
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--text-3);
  margin-bottom: 16px;
  display: block;
}

/* 6-card layout for "Built for Enterprise" */
.grid--3 .card { grid-column: span 4; }
.grid--2 .card { grid-column: span 6; }

/* ---------- platform / agents 3-up ---------- */
.platform-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  margin-top: 56px;
}
.agent-card {
  background: var(--surface);
  border: 1px solid var(--border-soft);
  border-radius: var(--radius-card);
  padding: 36px 32px;
  position: relative;
  overflow: hidden;
  transition: border-color .3s ease, transform .3s ease;
  display: flex;
  flex-direction: column;
}
.agent-card:hover {
  border-color: rgba(124, 58, 237, 0.4);
  transform: translateY(-2px);
}
.agent-card__visual {
  height: 180px;
  border-radius: 12px;
  margin-bottom: 28px;
  background:
    radial-gradient(circle at 50% 50%, rgba(124,58,237,.18), transparent 60%),
    linear-gradient(135deg, rgba(124,58,237,.06), rgba(255,255,255,.02));
  border: 1px solid var(--border-faint);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--purple-light);
}
.agent-card__visual svg { width: 56px; height: 56px; opacity: .9; }
.agent-card__label {
  font-family: var(--font-mono);
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--purple-light);
  margin-bottom: 12px;
}
.agent-card__title {
  font-size: 24px;
  letter-spacing: -0.02em;
  font-weight: 500;
  margin: 0 0 12px;
}
.agent-card__desc {
  font-size: 15px;
  line-height: 1.55;
  color: var(--text-2);
  margin: 0;
}

/* ---------- enterprise feature grid (6 cards) ---------- */
.feature-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1px;
  background: var(--border-faint);
  border: 1px solid var(--border-faint);
  border-radius: var(--radius-card);
  overflow: hidden;
  margin-top: 48px;
}
.feature-cell {
  background: var(--bg);
  padding: 36px 32px;
  display: flex;
  flex-direction: column;
  transition: background .3s ease;
}
.feature-cell:hover { background: var(--bg-elevated); }
.feature-cell__icon {
  width: 36px; height: 36px;
  color: var(--purple-light);
  margin-bottom: 20px;
}
.feature-cell__title {
  font-size: 19px;
  font-weight: 500;
  letter-spacing: -0.015em;
  margin: 0 0 10px;
  color: var(--text);
}
.feature-cell__desc {
  font-size: 14.5px;
  line-height: 1.55;
  color: var(--text-2);
  margin: 0;
}

/* ---------- integrations preview ---------- */
.integrations-band {
  padding: clamp(80px, 12vw, 140px) 0;
  text-align: center;
  position: relative;
}
.integrations-grid {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 14px;
  max-width: 980px;
  margin: 56px auto 40px;
}
.tool-tile {
  aspect-ratio: 1 / 1;
  background: var(--surface);
  border: 1px solid var(--border-soft);
  border-radius: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-2);
  font-family: var(--font-mono);
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  text-align: center;
  padding: 8px;
  transition: all .25s ease;
  position: relative;
}
.tool-tile:hover {
  border-color: rgba(124, 58, 237, 0.35);
  background: var(--surface-2);
  color: var(--purple-light);
  transform: translateY(-2px);
}

/* ---------- big CTA band ---------- */
.cta-band {
  position: relative;
  padding: clamp(100px, 14vw, 180px) 0;
  text-align: center;
  border-top: 1px solid var(--border-faint);
  overflow: hidden;
}
.cta-band::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(600px circle at 50% 30%, var(--purple-soft), transparent 60%),
    radial-gradient(800px circle at 50% 100%, rgba(91, 33, 182, 0.18), transparent 65%);
  pointer-events: none;
}
.cta-band__inner { position: relative; z-index: 1; }
.cta-band__eyebrow {
  font-family: var(--font-mono);
  font-size: 14px;
  color: var(--purple-light);
  margin: 0 0 20px;
  letter-spacing: 0.04em;
}
.cta-band__title {
  font-size: clamp(48px, 7vw, 88px);
  line-height: 1.02;
  letter-spacing: -0.045em;
  font-weight: 500;
  margin: 0 auto 40px;
  max-width: 16ch;
}
.cta-band__title .accent { color: var(--purple-light); font-style: italic; }

/* ---------- footer ---------- */
.site-footer {
  border-top: 1px solid var(--border-faint);
  padding: 56px 0 36px;
  background: var(--bg);
}
.site-footer__inner {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 48px;
  width: 100%;
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 var(--gutter);
}
.footer-brand .brand { margin-bottom: 16px; }
.footer-tagline {
  font-size: 14px;
  color: var(--text-3);
  max-width: 36ch;
  line-height: 1.55;
  margin: 0;
}
.footer-col h4 {
  font-family: var(--font-mono);
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--text-3);
  font-weight: 400;
  margin: 0 0 16px;
}
.footer-col ul { display: flex; flex-direction: column; gap: 10px; }
.footer-col a {
  font-size: 14px;
  color: var(--text-2);
  transition: color .2s ease;
}
.footer-col a:hover { color: var(--purple-light); }
.footer-bottom {
  width: 100%;
  max-width: var(--max-w);
  margin: 48px auto 0;
  padding: 24px var(--gutter) 0;
  border-top: 1px solid var(--border-faint);
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--text-3);
}
.footer-status { display: inline-flex; align-items: center; gap: 8px; }
.footer-status::before {
  content: "";
  width: 6px; height: 6px;
  border-radius: 50%;
  background: var(--purple);
  box-shadow: 0 0 8px var(--purple);
}

/* ---------- contact / book-a-demo page ---------- */
.demo-hero { padding: clamp(80px, 14vw, 160px) 0 clamp(60px, 8vw, 100px); text-align: center; }
.demo-mailto {
  margin-top: 36px;
  display: inline-flex;
  align-items: center;
  gap: 12px;
  padding: 14px 0;
  font-family: var(--font-mono);
  font-size: clamp(16px, 1.7vw, 20px);
  color: var(--text);
  border-bottom: 1px solid var(--border-soft);
  transition: color .25s ease, border-color .25s ease, gap .25s ease;
}
.demo-mailto:hover { color: var(--purple-light); border-bottom-color: var(--purple-light); gap: 18px; }

/* ---------- integrations page specifics ---------- */
.cat-block { margin-top: 64px; }
.cat-header {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  margin-bottom: 24px;
  padding-bottom: 16px;
  border-bottom: 1px solid var(--border-faint);
}
.cat-name {
  font-size: 22px;
  letter-spacing: -0.02em;
  font-weight: 500;
  margin: 0;
}
.cat-meta { font-family: var(--font-mono); font-size: 12px; color: var(--text-3); }
.cat-grid {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 14px;
}

/* ---------- responsive ---------- */

/* tablets and small laptops */
@media (max-width: 1024px) {
  .platform-grid { grid-template-columns: 1fr; }
  .feature-grid { grid-template-columns: repeat(2, 1fr); }
  .grid--3 .card { grid-column: span 6; }
  .integrations-grid, .cat-grid { grid-template-columns: repeat(4, 1fr); }
  .site-footer__inner { grid-template-columns: 1fr 1fr; gap: 36px; }
}

/* hide text nav links from this width down so they can't collide with the brand wordmark.
   covers tablets in portrait and phones in landscape. only the Book a demo button stays. */
@media (max-width: 900px) {
  .nav-link { display: none; }
  .site-nav { gap: 0; }
}

/* phones and small tablets */
@media (max-width: 640px) {
  :root { --gutter: 18px; }

  .site-header__inner {
    height: 60px;
    gap: 12px;
  }

  /* compact CTA button */
  .site-nav .btn {
    padding: 10px 16px;
    font-size: 13px;
    gap: 6px;
  }
  .site-nav .btn .arrow { display: none; }

  /* hero */
  .hero { padding: 70px 0 60px; }
  .hero::before { width: 600px; height: 600px; }
  .hero-eyebrow { font-size: 11px; padding: 6px 12px; margin-bottom: 24px; }
  .hero-title { font-size: clamp(36px, 11vw, 56px); }
  .hero-sub { font-size: 16px; margin-bottom: 32px; }
  .hero-actions { flex-direction: column; width: 100%; gap: 12px; }
  .hero-actions .btn { width: 100%; }

  /* general sections — tighter on mobile so adjacent sections don't feel disconnected */
  .section { padding: 44px 0; }
  .section--tight { padding: 36px 0; }
  .section-title { font-size: clamp(30px, 8vw, 44px); max-width: 18ch; margin-bottom: 16px; }
  .section-lead { font-size: 16px; margin-bottom: 28px; }
  .section-eyebrow { font-size: 12px; margin-bottom: 14px; }

  /* quote band */
  .quote-band { padding: 64px 0; }
  .quote-band__title { font-size: clamp(30px, 9vw, 44px); }
  .quote-band__cta { margin-top: 28px; font-size: 13px; }

  /* AI-Native Platform agent cards */
  .platform-grid { gap: 16px; margin-top: 36px; }
  .agent-card { padding: 28px 24px; }
  .agent-card__visual { height: 140px; margin-bottom: 22px; }
  .agent-card__visual svg { width: 44px; height: 44px; }
  .agent-card__title { font-size: 22px; }

  /* Built for Enterprise grid -> single column */
  .feature-grid { grid-template-columns: 1fr; margin-top: 36px; }
  .feature-cell { padding: 28px 24px; }

  /* generic card grids */
  .grid--3 .card, .grid--2 .card { grid-column: span 12; }
  .card { padding: 28px 24px; }

  /* integrations preview + catalog */
  .integrations-band { padding: 64px 0; }
  .integrations-grid { grid-template-columns: repeat(3, 1fr); gap: 10px; margin: 36px auto 32px; }
  .cat-grid { grid-template-columns: repeat(3, 1fr); gap: 10px; }
  .cat-block { margin-top: 44px; }
  .cat-name { font-size: 18px; }
  .cat-meta { font-size: 11px; }
  .cat-header { flex-direction: column; align-items: flex-start; gap: 4px; }
  .tool-tile { font-size: 9.5px; padding: 6px; border-radius: 12px; }

  /* CTA band */
  .cta-band { padding: 80px 0; }
  .cta-band__eyebrow { font-size: 13px; margin-bottom: 14px; }
  .cta-band__title { font-size: clamp(36px, 10vw, 56px); margin-bottom: 32px; }

  /* footer */
  .site-footer { padding: 44px 0 32px; }
  .site-footer__inner { grid-template-columns: 1fr; gap: 32px; }
  .site-footer .brand { font-size: 22px; }
  .footer-bottom { flex-direction: column; gap: 12px; align-items: flex-start; padding-top: 20px; margin-top: 36px; }

  /* contact / book-a-demo */
  .demo-mailto { font-size: 15px; gap: 10px; word-break: break-all; }
}

/* very narrow phones (iPhone SE, small Android) */

/* very narrow phones (iPhone SE, small Android) */
@media (max-width: 380px) {
  :root { --gutter: 14px; }

  .site-header__inner { gap: 8px; }
  .brand { font-size: 15px; }
  .site-nav .btn { padding: 9px 14px; font-size: 12.5px; }

  .hero-title { font-size: clamp(32px, 11vw, 44px); }
  .section-title, .quote-band__title, .cta-band__title { font-size: clamp(28px, 9vw, 40px); }

  .integrations-grid, .cat-grid { grid-template-columns: repeat(2, 1fr); }
  .tool-tile { font-size: 11px; aspect-ratio: 16/10; }
}

/* ---------- reveal-on-scroll ----------
   Gated by `html.js` so if JavaScript fails to load (or the IntersectionObserver
   never fires), all elements stay visible by default — never an empty page. */
html.js .reveal {
  opacity: 0;
  transform: translateY(16px);
  transition: opacity .8s ease, transform .8s ease;
}
html.js .reveal.in {
  opacity: 1;
  transform: translateY(0);
}

/* ---------- reduced motion ---------- */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
  html.js .reveal { opacity: 1; transform: none; }
}
