/* ==========================================================================
   sections.css — Per-section layout & styling
   Order follows the page top-to-bottom.
   ========================================================================== */

:root {
  /* Distance from viewport edge to the container's content edge.
     Used so full-bleed rows (carousel) still align to the container. */
  --page-gutter: max(var(--container-pad), calc((100vw - var(--container-max)) / 2 + var(--container-pad)));
}

/* ==========================================================================
   SUPPORT BAR (student project — star / sponsor)
   ========================================================================== */
.promo-bar {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: 7px 16px;
  padding: 9px 50px;
  font-size: 13.5px;
  line-height: 1.4;
  color: #fff;
  text-align: center;
  background: linear-gradient(rgba(1, 0, 3, 0.5), rgba(1, 0, 3, 0.5)), var(--brand-gradient);
  border-bottom: 1px solid rgba(255, 255, 255, 0.12);
}
.promo-bar__text { margin: 0; color: rgba(255, 255, 255, 0.94); }
.promo-bar__actions { display: inline-flex; gap: 8px; }
.promo-bar__btn {
  display: inline-flex; align-items: center;
  padding: 4px 13px; border-radius: 999px;
  font-size: 12.5px; font-weight: 600; white-space: nowrap;
  color: #fff; border: 1px solid rgba(255, 255, 255, 0.4);
  transition: background 0.2s var(--ease), border-color 0.2s var(--ease), transform 0.2s var(--ease);
}
.promo-bar__btn:hover { background: rgba(255, 255, 255, 0.16); border-color: rgba(255, 255, 255, 0.7); transform: translateY(-1px); }
.promo-bar__btn--star { background: #fff; color: #2a0f3f; border-color: #fff; }
.promo-bar__btn--star:hover { background: rgba(255, 255, 255, 0.9); color: #2a0f3f; }
.promo-bar__close {
  position: absolute; right: 14px; top: 50%; transform: translateY(-50%);
  width: 26px; height: 26px;
  display: inline-flex; align-items: center; justify-content: center;
  color: rgba(255, 255, 255, 0.72); border-radius: 7px;
  transition: background 0.2s var(--ease), color 0.2s var(--ease);
}
.promo-bar__close:hover { color: #fff; background: rgba(255, 255, 255, 0.14); }
.promo-bar__close svg { width: 16px; height: 16px; }
.promo-bar.is-hidden { display: none; }
@media (max-width: 640px) {
  .promo-bar { padding: 8px 40px; font-size: 12px; }
  .promo-bar__btn { padding: 4px 11px; font-size: 12px; }
}

/* ==========================================================================
   HEADER
   ========================================================================== */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  border-bottom: 1px solid transparent;
  background: transparent;
  transition: background 0.3s var(--ease), border-color 0.3s var(--ease), backdrop-filter 0.3s var(--ease);
}
.site-header.is-scrolled {
  border-bottom-color: var(--color-border-dark);
  background: rgba(1, 0, 3, 0.72);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
}
.site-header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: var(--header-h);
}
.logo { display: inline-flex; align-items: center; gap: 7px; }
.logo__mark { width: 27px; height: 27px; }
.logo__word { font-size: 20px; font-weight: 500; letter-spacing: -0.04px; color: var(--color-text); }

.site-nav { justify-self: center; }
.site-nav__list { display: flex; align-items: center; gap: 30px; }
.site-nav__link {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-size: var(--fs-sm);
  font-weight: 500;
  letter-spacing: var(--tracking-snug);
  color: rgba(254, 255, 254, 0.82);
  transition: color var(--dur) var(--ease);
}
.site-nav__link:hover { color: var(--color-text); }
.site-nav__chevron { width: 16px; height: 16px; opacity: 0.7; }

.site-header__actions { justify-self: end; display: inline-flex; align-items: center; gap: 8px; }
.site-header__actions .btn { height: 32px; }

.site-header__burger { display: none; padding: 6px; color: var(--color-text); }

/* ==========================================================================
   1. HERO
   ========================================================================== */
/* Pull the hero up under the sticky header so the pillar flows behind it */
main { display: flow-root; }
.hero { position: relative; margin-top: calc(-1 * var(--header-h)); padding-top: calc(72px + var(--header-h)); overflow: hidden; }
.hero__pillar {
  position: absolute;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  overflow: hidden;
  opacity: 0;
  transition: opacity 1s var(--ease);
  /* Fade the animated pillar out above the screenshot, so its bright streaks
     never bleed against the frame edges — it lives behind the headline only. */
  -webkit-mask-image: linear-gradient(to bottom, #000 0%, #000 24%, transparent 44%);
  mask-image: linear-gradient(to bottom, #000 0%, #000 24%, transparent 44%);
}
.hero__pillar canvas { display: block; width: 100% !important; height: 100% !important; mix-blend-mode: screen; opacity: 0.6; }
/* Vignette: keep the pillar lit behind the headline (upper-centre) but darken
   the edges + lower area so the app-screenshot frame sits on a clean backdrop
   instead of bright streaks bleeding against its borders. */
.hero__pillar::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(118% 78% at 50% 24%, transparent 36%, rgba(1, 0, 3, 0.5) 74%, rgba(1, 0, 3, 0.92) 100%),
    linear-gradient(to bottom, rgba(1, 0, 3, 0.45) 0%, rgba(1, 0, 3, 0) 22%);
  pointer-events: none;
}
.hero > .container { position: relative; z-index: 2; }
.hero__media-wrap { z-index: 1; }
/* Smooth fade from the hero (screenshot + pillar glow) into the next section */
.hero::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 190px;
  background: linear-gradient(to bottom, transparent, var(--color-bg) 92%);
  z-index: 3;
  pointer-events: none;
}
/* Tighten the gap between the hero screenshot and the first section */
.hero + .features { padding-top: 44px; }
.hero__top {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  max-width: 760px;
  margin-inline: auto;
}

/* Eyebrow chip — small glass pill with a live-status dot */
.hero__eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-mono);
  font-size: var(--fs-xs);
  letter-spacing: 0.01em;
  color: var(--color-text-muted);
  padding: 7px 14px 7px 11px;
  border: 1px solid var(--color-border-strong);
  border-radius: var(--radius-pill);
  background: rgba(255, 255, 255, 0.025);
  -webkit-backdrop-filter: blur(6px);
  backdrop-filter: blur(6px);
}
.hero__dot {
  width: 7px;
  height: 7px;
  flex: none;
  border-radius: 50%;
  background: var(--color-positive);
  box-shadow: 0 0 8px rgba(67, 211, 127, 0.75);
  animation: heroDot 1.9s var(--ease) infinite;
}
@keyframes heroDot {
  0%, 100% { opacity: 1; transform: scale(1); }
  50%      { opacity: 0.4; transform: scale(0.8); }
}

.hero__title {
  font-size: var(--fs-display);
  line-height: 1.02;
  letter-spacing: var(--tracking-tight);
  margin: 24px 0 0;
}
.hero__lead {
  font-size: var(--fs-lead);
  line-height: 1.5;
  max-width: 560px;
  margin-top: 22px;
}

/* Engine pills — one per supported database, each with a brand-tinted dot */
.hero__engines {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 10px;
  margin: 28px 0 0;
  padding: 0;
  list-style: none;
}
.hero__engines li {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-mono);
  font-size: 12.5px;
  color: var(--color-text-muted);
  padding: 7px 14px;
  border: 1px solid var(--color-border-strong);
  border-radius: var(--radius-pill);
  background: rgba(255, 255, 255, 0.02);
  transition: transform 0.25s var(--ease), color 0.25s var(--ease),
              border-color 0.25s var(--ease), background 0.25s var(--ease);
}
.hero__engines li:hover {
  transform: translateY(-2px);
  color: var(--color-text);
  border-color: rgba(255, 255, 255, 0.18);
  background: rgba(255, 255, 255, 0.05);
}
.hero__engine-ico { width: 14px; height: 14px; flex: none; }
.hero__engines li:nth-child(1) .hero__engine-ico { color: var(--brand-purple); }
.hero__engines li:nth-child(2) .hero__engine-ico { color: var(--brand-magenta); }
.hero__engines li:nth-child(3) .hero__engine-ico { color: var(--brand-coral); }

.hero__cta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 14px;
  margin-top: 34px;
}
.hero__meta {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-top: 20px;
  font-size: var(--fs-sm);
}
.hero__meta .icon {
  width: 15px;
  height: 15px;
  flex: none;
  color: var(--brand-coral);
}

.hero__media-wrap { position: relative; margin-top: 72px; }
.hero__glow {
  position: absolute;
  inset: -280px -8% -2% 12%;
  z-index: 0;
  background:
    radial-gradient(42% 48% at 55% 42%, rgba(114, 95, 232, 0.55), transparent 70%),
    radial-gradient(44% 52% at 76% 56%, rgba(206, 71, 235, 0.50), transparent 72%),
    radial-gradient(38% 46% at 92% 80%, rgba(245, 122, 116, 0.40), transparent 72%);
  filter: blur(34px);
  pointer-events: none;
}
.hero__media { position: relative; z-index: 1; }
.hero__media img {
  width: 100%;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg) var(--radius-lg) 0 0;
  border-bottom: none;
}

/* ==========================================================================
   Shared section heading
   ========================================================================== */
.section-title { font-size: var(--fs-h2); line-height: 1.05; letter-spacing: var(--tracking-tight); }
.section-lead { font-size: var(--fs-lead); line-height: 1.375; margin-top: 16px; max-width: 480px; }

/* ==========================================================================
   2. FEATURES CAROUSEL
   ========================================================================== */
.features__head { display: flex; justify-content: space-between; align-items: flex-end; gap: 24px; }
.features__nav { display: flex; gap: 8px; flex: none; }
.carousel-btn {
  display: grid;
  place-items: center;
  width: 40px; height: 40px;
  border: 1px solid var(--color-border-strong);
  border-radius: var(--radius-md);
  color: var(--color-text);
  background: var(--color-surface);
  transition: background var(--dur) var(--ease), opacity var(--dur) var(--ease);
}
.carousel-btn:hover { background: var(--color-surface-3); }
.carousel-btn .icon { width: 18px; height: 18px; }

.features__viewport { overflow: hidden; margin-top: 44px; }
.features__track {
  display: flex;
  gap: 20px;
  padding-left: var(--page-gutter);
  padding-right: var(--container-pad);
  transition: transform 0.5s var(--ease);
}
.feature-card { width: 256px; flex: none; }
.feature-card__media {
  width: 100%;
  aspect-ratio: 256 / 172;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  background: var(--color-surface);
}
.feature-card__media img { width: 100%; height: 100%; object-fit: cover; }
.feature-card__title { font-size: var(--fs-body); font-weight: 600; margin-top: 16px; letter-spacing: -0.2px; }
.feature-card__text { font-size: var(--fs-sm); line-height: 1.4; margin-top: 6px; }

/* ==========================================================================
   3. BIG STATEMENT
   ========================================================================== */
.statement { text-align: center; padding-block: 120px; }
.statement__title {
  font-size: 56px;
  line-height: 1.08;
  letter-spacing: -1.2px;
  max-width: 900px;
  margin-inline: auto;
}

/* ==========================================================================
   4. DASHBOARD
   ========================================================================== */
.dashboard__grid { display: grid; grid-template-columns: 1.55fr 1fr; gap: 24px; }
.dashboard__card { display: flex; flex-direction: column; min-height: 360px; }
.dashboard__card-title { font-size: 18px; font-weight: 600; margin-top: 18px; letter-spacing: -0.3px; }
.dashboard__card-text { font-size: var(--fs-sm); line-height: 1.45; margin-top: 8px; max-width: 280px; }

/* Chart */
.chart { display: grid; grid-template-columns: 28px 1fr; grid-template-rows: 1fr auto; gap: 4px 8px; margin-top: auto; padding-top: 28px; }
.chart__yaxis { display: flex; flex-direction: column; justify-content: space-between; align-items: flex-end; font-size: 11px; color: var(--color-text-dim); padding-bottom: 18px; }
.chart__plot { position: relative; }
.chart__svg { width: 100%; height: 160px; display: block; }
.chart__xaxis { grid-column: 2; display: flex; justify-content: space-between; font-size: 11px; color: var(--color-text-dim); padding-top: 6px; }

/* Stats card */
.stat-block { margin-top: 26px; }
.stat-block__label { font-size: var(--fs-sm); font-weight: 500; }
.stat-block__value { font-size: 44px; font-weight: 600; letter-spacing: -1.5px; margin-top: 6px; display: flex; align-items: center; gap: 10px; }
.stat-block__value .delta { font-size: 13px; }
.stat-block__sub { font-size: var(--fs-sm); margin-top: 6px; }

.stat-row { display: flex; gap: 28px; margin-top: 28px; }
.stat-row__item { flex: 1; }
.stat-row__label { font-size: 13px; }
.stat-row__value { font-size: 22px; font-weight: 600; margin-top: 6px; display: flex; align-items: baseline; gap: 6px; letter-spacing: -0.5px; }
.stat-row__value .delta { font-size: 12px; }

/* Mini features */
.mini-features { display: grid; grid-template-columns: repeat(4, 1fr); gap: 32px; margin-top: 56px; }
.mini-feature__title { display: flex; align-items: center; gap: 8px; font-size: var(--fs-body); font-weight: 600; letter-spacing: -0.2px; }
.mini-feature__title .icon { width: 18px; height: 18px; color: var(--color-text); }
.mini-feature__text { font-size: var(--fs-sm); line-height: 1.45; margin-top: 10px; }

.dashboard__cta { text-align: center; margin-top: 56px; }
.dashboard__join { height: 48px; min-width: 190px; font-size: var(--fs-body); border-radius: var(--radius-md); }

/* ==========================================================================
   5. AI AUTO-BUILD
   ========================================================================== */
.ai__grid { display: grid; grid-template-columns: 1fr 1fr; gap: 40px; align-items: center; }
.ai__pill { margin-bottom: 36px; }
.ai__title { font-size: var(--fs-h2); line-height: 1.06; letter-spacing: var(--tracking-tight); }
.ai__text { font-size: var(--fs-body); line-height: 1.5; margin-top: 24px; max-width: 480px; }

.ai__diagram { position: relative; min-height: 420px; }
.ai__wires { position: absolute; inset: 0; width: 100%; height: 100%; z-index: 0; }
.ai-node {
  position: absolute;
  z-index: 1;
  background: var(--color-surface-2);
  border: 1px solid var(--color-border-strong);
  border-radius: var(--radius-md);
  padding: 12px 14px;
  width: 270px;
  box-shadow: var(--shadow-card);
}
.ai-node__title { display: flex; align-items: center; gap: 8px; font-size: var(--fs-sm); font-weight: 600; }
.ai-node__title .icon { width: 16px; height: 16px; }
.ai-node__title--folder .icon { color: var(--brand-coral); }
.ai-node__row { display: flex; align-items: center; gap: 6px; font-size: 13px; color: var(--color-text-muted); margin-top: 8px; }
.ai-check { width: 15px; height: 15px; color: var(--color-positive); flex: none; }
.ai-node__chip { position: absolute; z-index: 2; }

.ai-node--a { top: 8%; left: 30%; }
.ai-node--b { top: 42%; left: 18%; }
.ai-node--c { top: 76%; left: 46%; }
.ai-node--gen { top: 36%; right: 0; }

/* ==========================================================================
   6. STATS COUNTERS
   ========================================================================== */
.stats { text-align: center; }
.stats__eyebrow { font-size: var(--fs-sm); margin-bottom: 44px; }
.stats__list { display: flex; justify-content: center; gap: clamp(48px, 9vw, 130px); flex-wrap: wrap; }
.stats__item { display: flex; flex-direction: column; align-items: center; gap: 6px; }
.stats__num { font-size: 36px; font-weight: 600; letter-spacing: -1px; }
.stats__label { font-size: var(--fs-body); }

/* ==========================================================================
   7. ACCORDION + APP MOCKUP
   ========================================================================== */
.accordion-section__grid { display: grid; grid-template-columns: 1fr 1.1fr; gap: 56px; align-items: center; }
.accordion-section__title { font-size: var(--fs-h2); line-height: 1.02; letter-spacing: var(--tracking-tight); margin-bottom: 28px; }

.accordion__item { border-bottom: 1px solid var(--color-border); }
.accordion__header {
  width: 100%;
  display: flex;
  justify-content: space-between;
  align-items: center;
  text-align: left;
  padding: 20px 0;
  font-size: var(--fs-lead);
  font-weight: 500;
  color: var(--color-text-muted);
  transition: color var(--dur) var(--ease);
}
.accordion__item.is-open .accordion__header,
.accordion__header:hover { color: var(--color-text); }
.accordion__panel {
  overflow: hidden;
  max-height: 0;
  opacity: 0;
  transition: max-height 0.4s var(--ease), opacity 0.3s var(--ease);
}
.accordion__item.is-open .accordion__panel { max-height: 320px; opacity: 1; }
.accordion__text { font-size: var(--fs-body); line-height: 1.5; padding-bottom: 4px; }
.accordion__link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: var(--fs-body);
  color: var(--color-text);
  margin-top: 18px;
  margin-bottom: 8px;
  transition: gap var(--dur) var(--ease);
}
.accordion__link .icon { width: 18px; height: 18px; }
.accordion__link:hover { gap: 12px; }

.app-frame { border: 1px solid var(--color-border); border-radius: var(--radius-lg); overflow: hidden; background: var(--color-surface); height: 460px; }
.app-frame img { width: 100%; height: 100%; object-fit: cover; object-position: 100% top; }

/* ==========================================================================
   8. TESTIMONIALS
   ========================================================================== */
.testimonials__grid { display: grid; grid-template-columns: 0.8fr 1.2fr; gap: 48px; }
.testimonials__title { font-size: var(--fs-h2); line-height: 1.02; letter-spacing: var(--tracking-tight); }
.testimonials__text { font-size: var(--fs-body); line-height: 1.5; margin-top: 24px; max-width: 360px; }
.testimonials__cta { margin-top: 24px; }

.testimonials__marquee {
  display: flex;
  gap: 20px;
  height: 520px;
  overflow: hidden;
  -webkit-mask-image:
    linear-gradient(to bottom, transparent, #000 14%, #000 86%, transparent),
    linear-gradient(to right, rgba(0,0,0,0.15), #000 38%);
  -webkit-mask-composite: source-in;
  mask-image:
    linear-gradient(to bottom, transparent, #000 14%, #000 86%, transparent),
    linear-gradient(to right, rgba(0,0,0,0.15), #000 38%);
  mask-composite: intersect;
}
.marquee-col { flex: 1; overflow: hidden; }
.marquee-col__inner { display: flex; flex-direction: column; gap: 20px; will-change: transform; }
.tweet {
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  padding: 20px;
}
.tweet__head { display: flex; align-items: center; gap: 12px; margin-bottom: 14px; }
.tweet__avatar { width: 40px; height: 40px; border-radius: 50%; flex: none; }
.tweet__name { font-size: var(--fs-sm); font-weight: 600; line-height: 1.2; }
.tweet__handle { font-size: 13px; line-height: 1.2; }
.tweet__body { font-size: var(--fs-sm); line-height: 1.5; color: #c7ccd0; }
.mention { color: #7c8cff; }

/* ==========================================================================
   9. LOGO STRIP
   ========================================================================== */
.logos { text-align: center; }
.logos__title { font-size: var(--fs-sm); font-weight: 500; color: var(--color-text); margin-bottom: 32px; }
.logos__list { display: flex; justify-content: center; align-items: center; gap: clamp(28px, 5vw, 56px); flex-wrap: wrap; }
.logos__logo { height: 30px; width: auto; color: var(--color-text-muted); opacity: 0.85; transition: opacity var(--dur) var(--ease); }
.logos__logo--box { border-radius: 6px; }
.logos__list li:hover .logos__logo { opacity: 1; }
/* Database wordmarks */
.logos__name { font-size: 20px; font-weight: 600; letter-spacing: -0.3px; color: var(--color-text-muted); opacity: 0.85; transition: opacity var(--dur) var(--ease), color var(--dur) var(--ease); }
.logos__list li:hover .logos__name { opacity: 1; color: var(--color-text); }

/* ==========================================================================
   10. FINAL CTA
   ========================================================================== */
.cta { position: relative; overflow: hidden; padding-block: 110px 130px; text-align: center; }
.cta__glow {
  position: absolute;
  left: 50%; bottom: -40%;
  width: 120%; height: 110%;
  transform: translateX(-50%);
  z-index: 0;
  background:
    radial-gradient(42% 60% at 33% 78%, rgba(114, 95, 232, 0.65), transparent 70%),
    radial-gradient(48% 58% at 60% 90%, rgba(206, 71, 235, 0.58), transparent 72%),
    radial-gradient(40% 50% at 86% 96%, rgba(245, 122, 116, 0.52), transparent 72%);
  filter: blur(12px);
  pointer-events: none;
}
.cta__inner { position: relative; z-index: 1; display: flex; flex-direction: column; align-items: center; }
.cta__logo { margin-bottom: 26px; }
.cta__logo .logo__mark { width: 32px; height: 32px; }
.cta__logo .logo__word { font-size: 22px; }
.cta__title { font-size: var(--fs-h2); line-height: 1.1; letter-spacing: var(--tracking-tight); max-width: 720px; }
.cta__buttons { display: flex; gap: 14px; margin-top: 34px; }
.cta__stars { font-size: var(--fs-sm); margin-top: 18px; }

/* ==========================================================================
   FOOTER
   ========================================================================== */
.site-footer { padding-block: 28px; position: relative; z-index: 2; }
.site-footer__inner { display: flex; align-items: center; justify-content: space-between; gap: 24px; flex-wrap: wrap; }
.site-footer__copy { font-size: var(--fs-sm); }
.site-footer__nav { display: flex; gap: 28px; flex-wrap: wrap; }
.site-footer__nav a { font-size: var(--fs-sm); color: var(--color-text-muted); transition: color var(--dur) var(--ease); }
.site-footer__nav a:hover { color: var(--color-text); }
.site-footer__social { display: flex; gap: 14px; }
.site-footer__social a { color: var(--color-text-muted); transition: color var(--dur) var(--ease); }
.site-footer__social a:hover { color: var(--color-text); }
.site-footer__social .icon { width: 20px; height: 20px; }

/* ==========================================================================
   RESPONSIVE
   ========================================================================== */
@media (max-width: 1024px) {
  :root { --fs-display: 56px; --fs-h2: 40px; }
  .site-header__inner { display: flex; align-items: center; gap: 16px; }
  .site-nav, .site-header__login { display: none; }
  .site-header__actions { margin-left: auto; }
  .site-header__burger { display: inline-flex; }
  .site-nav.is-open {
    display: block;
    position: absolute;
    top: var(--header-h);
    left: 0; right: 0;
    background: var(--color-bg);
    border-bottom: 1px solid var(--color-border-dark);
    padding: 12px var(--container-pad) 20px;
    z-index: 60;
  }
  .site-nav.is-open .site-nav__list { flex-direction: column; align-items: flex-start; gap: 2px; }
  .site-nav.is-open .site-nav__link { padding: 12px 0; font-size: 16px; width: 100%; }
  .hero__media-wrap { margin-top: 48px; }
  .dashboard__grid { grid-template-columns: 1fr; }
  .mini-features { grid-template-columns: repeat(2, 1fr); }
  .ai__grid, .accordion-section__grid, .testimonials__grid { grid-template-columns: 1fr; }
  .ai__diagram { min-height: 360px; }
  .testimonials__marquee { height: 480px; }
}

@media (max-width: 640px) {
  :root { --fs-display: 40px; --fs-h2: 30px; --container-pad: 18px; }
  .section { padding-block: 64px; }
  .statement { padding-block: 80px; }
  .statement__title { font-size: 32px; }
  .features__head { flex-direction: column; align-items: flex-start; }
  .mini-features { grid-template-columns: 1fr; gap: 24px; }
  .stat-row { flex-direction: column; gap: 16px; }
  .stats__list { gap: 36px; }
  .testimonials__marquee { grid-template-columns: 1fr; }
  .marquee-col:nth-child(3) { display: none; }

  /* Results diagram: the floating absolute nodes can't fit a phone — stack them */
  .ai__diagram { min-height: 0; display: flex; flex-direction: column; gap: 14px; }
  .ai__wires { display: none; }
  .ai-node { position: static; width: 100%; }
  .ai-node--gen { position: static; }
  .ai-node__chip { display: none; }
  .cta__buttons { flex-direction: column; width: 100%; max-width: 320px; }
  .cta__buttons .btn { width: 100%; }
  .site-footer__inner { flex-direction: column; text-align: center; }
}
