/* ==========================================================================
   AIM landing — content sections layer.
   Hero, logos strip, vision callout, aurora CTA.
   Stage-specific styles live in landing-stage.css.
   ========================================================================== */

/* ==========================================================================
   HERO — Schlieren WebGL background.

   The actual visual is rendered by landing-schlieren.js into a <canvas>
   injected into .aim-hero__bg. CSS here only:
     • establishes the bg layer / clipping region
     • hides the legacy aurora placeholders (kept in DOM for compat)
     • styles the canvas + error overlay
   ========================================================================== */
.aim-hero {
  position: relative;
  /* Pull the section up under the (transparent) sticky nav so the schlieren
     bg can extend behind it. Content stays where it was: padding-top is the
     original 120px PLUS the nav height we just stole back. */
  margin-top: calc(-1 * var(--aim-nav-h));
  padding: calc(120px + var(--aim-nav-h)) 0 88px;
  overflow: hidden;
  isolation: isolate;
  background: #f1ece1;
}

/* Bg layer is constrained to the upper viewport portion of the (very tall)
   hero so the schlieren plume sits behind the headline, not beneath the
   stage. Height & DPR are observed live by the JS module. */
.aim-hero__bg {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: min(100vh, 960px);
  min-height: 720px;
  z-index: -1;
  pointer-events: none;
  overflow: hidden;
  contain: paint;
  background: #f1ece1;
}

/* legacy aurora placeholders — disabled; JS canvas is the visual now */
.aim-hero__grid,
.aim-hero__glow,
.aim-hero__glow--a,
.aim-hero__glow--b { display: none !important; }
.aim-hero__bg::before,
.aim-hero__bg::after { content: none; }

/* injected by landing-schlieren.js */
.aim-hero__schlieren {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  display: block;
  /* Overall intensity dialled down 2x so the schlieren reads as a soft
     atmospheric layer behind the headline, not a competing foreground. */
  opacity: 0.38;
  /* Long, soft fade — starts in the upper half and dies completely well
     before the canvas bottom, so there's no visible horizontal edge where
     the schlieren meets the cream stage area below. */
  mask-image: linear-gradient(180deg,
    #000        0%,
    #000       30%,
    rgba(0,0,0,0.85) 55%,
    rgba(0,0,0,0.45) 78%,
    rgba(0,0,0,0.12) 92%,
    transparent 100%);
  -webkit-mask-image: linear-gradient(180deg,
    #000        0%,
    #000       30%,
    rgba(0,0,0,0.85) 55%,
    rgba(0,0,0,0.45) 78%,
    rgba(0,0,0,0.12) 92%,
    transparent 100%);
}

/* error overlay — surfaces any WebGL / shader failure (no silent fallbacks) */
.aim-hero__schlieren-error {
  position: absolute;
  left: 16px;
  bottom: 16px;
  z-index: 2;
  padding: 8px 12px;
  background: #ffe6e0;
  border: 1px solid #c0392b;
  color: #7a1f10;
  font-family: var(--aim-font-mono);
  font-size: 11px;
  letter-spacing: 0.04em;
  border-radius: 2px;
  pointer-events: auto;
}

.aim-hero__inner {
  position: relative;
  text-align: center;
  max-width: 1100px;
  margin: 0 auto;
}

/* HUGE serif headline (fin.ai signature) */
.aim-hero__headline {
  font-family: var(--aim-font-serif);
  font-weight: 400;
  font-size: clamp(44px, 8vw, 108px);
  line-height: 0.98;
  letter-spacing: -0.022em;
  color: var(--aim-ink);
  margin: 8px 0 28px;
}
.aim-hero__line { display: block; }
.aim-hero__line--accent {
  font-style: italic;
  color: var(--aim-accent);
}

.aim-hero__lead {
  max-width: 640px;
  margin: 0 auto 28px;
  font-size: clamp(15px, 1.25vw, 18px);
  color: var(--aim-ink-3);
  line-height: 1.55;
}

.aim-hero__bullets {
  display: inline-flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 8px 24px;
  margin: 0 auto 36px;
  font-family: var(--aim-font-mono);
}
.aim-hero__bullet {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 12px;
  color: var(--aim-ink-2);
  letter-spacing: 0.02em;
}
.aim-hero__bullet-tick {
  display: inline-flex;
  width: 18px;
  height: 18px;
  align-items: center;
  justify-content: center;
  color: var(--aim-accent);
}

.aim-hero__actions {
  display: flex;
  justify-content: center;
  gap: 12px;
  flex-wrap: wrap;
  margin-bottom: 64px;
}

.aim-hero__engine {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 10px 16px;
  border: 1px solid var(--aim-line);
  border-radius: 999px;
  background: rgba(255,255,255,0.6);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  font-family: var(--aim-font-mono);
  font-size: 11.5px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--aim-ink-3);
}
.aim-hero__engine-dot {
  width: 7px; height: 7px;
  border-radius: 50%;
  background: var(--aim-accent);
  box-shadow: 0 0 0 4px rgba(255,92,43,0.18);
}

@media (max-width: 720px) {
  .aim-hero { padding: 72px 0 56px; }
  .aim-hero__bullets { flex-direction: column; align-items: flex-start; gap: 10px; text-align: left; max-width: 320px; }
  .aim-hero__engine { font-size: 10.5px; padding: 9px 14px; }
}

/* ==========================================================================
   LOGOS STRIP
   ========================================================================== */
.aim-logos {
  padding: 56px 0 72px;
  background: var(--aim-bg);
  border-bottom: 1px solid var(--aim-line);
}
.aim-logos__eyebrow {
  font-family: var(--aim-font-mono);
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--aim-ink-4);
  text-align: center;
  margin: 0 0 36px;
}
.aim-logos__grid {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 32px 24px;
  align-items: center;
  justify-items: center;
  max-width: 1200px;
  margin: 0 auto;
}
.aim-logos__item {
  font-size: 18px;
  letter-spacing: -0.01em;
  color: var(--aim-ink-4);
  font-weight: 500;
  opacity: 0.75;
  transition: color 0.2s var(--aim-ease), opacity 0.2s var(--aim-ease);
  white-space: nowrap;
}
.aim-logos__item:hover { color: var(--aim-ink); opacity: 1; }
.aim-logos__item--serif {
  font-family: var(--aim-font-serif);
  font-size: 22px;
  font-style: italic;
}
.aim-logos__item--mono {
  font-family: var(--aim-font-mono);
  font-size: 15px;
  letter-spacing: 0.03em;
}

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

/* ==========================================================================
   VISION CALLOUT (above footer)
   ========================================================================== */
.aim-vision {
  padding: 56px 0 96px;
  background: var(--aim-bg);
}
.aim-vision__card {
  position: relative;
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  gap: 64px;
  padding: 56px;
  background: transparent;
  border: 1px solid var(--aim-line);
  border-radius: 0;
}
.aim-vision__col--head { display: flex; flex-direction: column; justify-content: flex-start; }
.aim-vision__headline {
  font-family: var(--aim-font-serif);
  font-weight: 400;
  font-size: clamp(28px, 3.4vw, 40px);
  line-height: 1.08;
  letter-spacing: -0.02em;
  color: var(--aim-ink);
}
.aim-vision__col--body { display: flex; flex-direction: column; gap: 18px; }
.aim-vision__lead {
  font-size: 16px;
  color: var(--aim-ink-3);
  line-height: 1.6;
}
.aim-vision__cta {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 14px;
  font-weight: 500;
  color: var(--aim-ink);
  text-decoration: underline;
  text-decoration-color: var(--aim-line-strong);
  text-underline-offset: 5px;
  align-self: flex-start;
  transition: text-decoration-color 0.2s var(--aim-ease), color 0.2s var(--aim-ease);
}
.aim-vision__cta:hover { color: var(--aim-accent); text-decoration-color: var(--aim-accent); }

@media (max-width: 800px) {
  .aim-vision__card { grid-template-columns: 1fr; gap: 24px; padding: 40px 28px; }
}

/* ==========================================================================
   AURORA FINAL CTA
   ========================================================================== */
.aim-aurora {
  position: relative;
  isolation: isolate;
  padding: 140px 0 200px;
  background: var(--aim-bg);
  overflow: hidden;
  border-top: 1px solid var(--aim-line);
}
.aim-aurora__bg {
  position: absolute;
  inset: 0;
  z-index: -1;
  pointer-events: none;
}
.aim-aurora__band {
  position: absolute;
  border-radius: 50%;
  filter: blur(90px);
  opacity: 0.7;
}
.aim-aurora__band--a {
  width: 80%; height: 420px;
  background: radial-gradient(ellipse, rgba(255,92,43,0.32), transparent 70%);
  bottom: -120px; left: 10%;
}
.aim-aurora__band--b {
  width: 60%; height: 380px;
  background: radial-gradient(ellipse, rgba(255,180,120,0.28), transparent 70%);
  bottom: -80px; left: 5%;
}
.aim-aurora__band--c {
  width: 40%; height: 320px;
  background: radial-gradient(ellipse, rgba(255,220,180,0.32), transparent 70%);
  bottom: -60px; right: 10%;
}
.aim-aurora__horizon {
  position: absolute;
  bottom: 0;
  left: 0; right: 0;
  height: 1px;
  background: linear-gradient(to right, transparent, rgba(255,92,43,0.6), transparent);
  filter: blur(0.5px);
}

.aim-aurora__inner { position: relative; text-align: center; max-width: 880px; margin: 0 auto; }
.aim-aurora__headline {
  font-family: var(--aim-font-serif);
  font-weight: 400;
  font-size: clamp(40px, 6vw, 80px);
  line-height: 1.0;
  letter-spacing: -0.022em;
  margin: 8px 0 22px;
  color: var(--aim-ink);
}
.aim-aurora__lead {
  font-size: 17px;
  color: var(--aim-ink-2);
  margin: 0 0 32px;
}
.aim-aurora__actions {
  display: flex;
  justify-content: center;
  gap: 12px;
  flex-wrap: wrap;
}

@media (max-width: 720px) {
  .aim-aurora { padding: 96px 0 140px; }
}
