/* =========================================================================
   sections.css — the page itself
   ========================================================================= */

/* ---- Hero ambient glow behind the device ---- */
.hero-aura {
  position: fixed;
  left: 50%; top: 66%;
  width: min(1100px, 96vw); height: min(720px, 70vh);
  transform: translate(-50%, -50%);
  z-index: 0;
  pointer-events: none;
  background:
    radial-gradient(46% 50% at 38% 40%, rgba(91, 173, 247, 0.29), transparent 70%),
    radial-gradient(46% 52% at 72% 52%, rgba(56, 112, 255, 0.24), transparent 72%),
    radial-gradient(40% 44% at 56% 80%, rgba(91, 173, 247, 0.15), transparent 75%);
  filter: blur(20px);
  opacity: 0.9;
  transition: opacity 0.6s var(--ease-out);
}

/* ---- The MacBook product shot (two appearances stacked) ---- */
.mac-shot {
  position: relative;
  display: block;
  width: 100%;
  aspect-ratio: 2600 / 1691;
}
.mac-shot__img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: contain;
  transition: opacity 0.5s var(--ease-out);
  /* the device renders crisp; let big upscales in the showcase stay smooth */
  image-rendering: auto;
}
.mac-shot__img--dark { opacity: 0; }
:root[data-theme="dark"] .mac-shot__img--light { opacity: 0; }
:root[data-theme="dark"] .mac-shot__img--dark { opacity: 1; }

/* =========================================================================
   HERO
   ========================================================================= */
.hero {
  position: relative;
  min-height: 100svh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-start;
  text-align: center;
  padding-top: clamp(92px, 12vh, 156px);
  padding-bottom: 0;
  overflow: hidden;
}
/* Legibility scrim between the WebGL field (z-0) and the copy (z-2): keeps the
   headline readable over the loud first-paint of the loudness field. Dark theme
   swaps the gradient color in dark.css. */
.hero::before {
  content: "";
  position: absolute; inset: 0; z-index: 1;
  pointer-events: none;
  background: linear-gradient(180deg, rgba(250, 251, 253, 0.92) 0%, rgba(250, 251, 253, 0.55) 42%, rgba(250, 251, 253, 0) 74%);
}
.hero__inner { display: flex; flex-direction: column; align-items: center; position: relative; z-index: 2; }

/* App icon crowning the hero — swapped by theme */
.hero__icon {
  width: clamp(80px, 11vw, 116px);
  aspect-ratio: 1;
  margin-bottom: clamp(18px, 2.4vh, 30px);
  background: url("../assets/img/icon-light.png") center / contain no-repeat;
  filter: drop-shadow(0 18px 38px rgba(16, 24, 40, 0.24));
}
:root[data-theme="dark"] .hero__icon {
  background-image: url("../assets/img/icon-dark.png");
  filter: drop-shadow(0 20px 44px rgba(0, 0, 0, 0.6));
}

/* device sits below the copy, large, floating */
.hero__device {
  position: relative;
  z-index: 1;
  width: min(1120px, 94vw);
  margin: clamp(8px, 2vh, 28px) auto 0;
  filter: drop-shadow(0 40px 80px rgba(16, 24, 40, 0.22));
  will-change: transform;
}
:root[data-theme="dark"] .hero__device { filter: drop-shadow(0 44px 90px rgba(0, 0, 0, 0.6)); }
:root[data-theme="dark"] .hero-aura { opacity: 1; filter: blur(26px); }
.hero__title {
  font-size: var(--t-h1);
  font-weight: 600;
  letter-spacing: -0.035em;
  line-height: 0.98;
}
.hero__title .line { display: block; overflow: visible; }
.hero__lead {
  max-width: 36ch;
  margin: var(--s-5) auto 0;
  color: var(--ink-2);
}
.hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: var(--s-3);
  justify-content: center;
  margin-top: var(--s-6);
}
.hero__fineprint {
  display: inline-flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 6px 14px;
  margin-top: var(--s-5);
  color: var(--ink-3);
  font-size: var(--t-xs);
  letter-spacing: 0.02em;
}
.hero__fineprint > span { color: var(--ink); }

/* =========================================================================
   FOOTER
   ========================================================================= */
.footer {
  position: relative;
  z-index: var(--z-content);
  /* no background — transparent so the fixed .hero-aura ambient gradient (blue/teal/orange) shows through behind the footer/pricing */
  padding-top: clamp(80px, 12vh, 160px);
  padding-bottom: var(--s-7);
}
.footer__grid {
  display: grid;
  grid-template-columns: 2fr 1fr;
  gap: var(--s-7);
  padding-block: var(--s-7);
  border-top: 1px solid var(--hair);
}
.footer__brand .nav__brand { font-size: 1.45rem; margin-bottom: var(--s-4); }
.footer__brand .nav__mark { width: 40px; height: 40px; }
.footer__col { display: flex; flex-direction: column; gap: var(--s-3); }
.footer__col h3 { font-size: var(--t-xs); text-transform: uppercase; letter-spacing: 0.12em; color: var(--ink-3); margin-bottom: var(--s-2); font-weight: 600; }
.footer__col a { color: var(--ink-2); font-size: var(--t-sm); transition: color 0.2s; }
.footer__col a:hover { color: var(--ink); }
.footer__base {
  display: flex; justify-content: space-between; align-items: center;
  padding-top: var(--s-6); border-top: 1px solid var(--hair);
  color: var(--ink-3); font-size: var(--t-xs);
}

/* the brand mark (nav + footer) is the app icon, swapped by theme */
.nav__mark {
  background: url("../assets/img/icon-light.png") center / contain no-repeat;
}
:root[data-theme="dark"] .nav__mark {
  background-image: url("../assets/img/icon-dark.png");
}

/* =========================================================================
   RESPONSIVE
   ========================================================================= */
@media (max-width: 900px) {
  .footer__grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 680px) {
  .hero__title { font-size: clamp(2.4rem, 9vw, 3.4rem); }
  .footer__grid { grid-template-columns: 1fr; gap: var(--s-6); }
  .footer__base { flex-direction: column; gap: 10px; }
}
