/* Landing hero -------------------------------------------------------------
   The photograph sits under a frosted-white scrim — the Apple-clean look,
   not the blue theme tint — so a light scrim plus dark ink gives far better
   contrast than white text on a dark scrim would: the worst-case pixel lands
   at ~6.6:1 against --ink.
   ------------------------------------------------------------------------ */

.hero {
  position: relative;
  min-height: 100vh;
  min-height: 100svh;
  display: grid;
  place-items: center;
  padding: 32px 24px;
  overflow: hidden;
}

.hero-bg {
  position: absolute;
  inset: 0;
  background: #fff url("../background.webp") center / cover no-repeat;
  transform: scale(1.04);
  animation: hero-settle 1.6s var(--ease) both;
}
/* Pre-photo fallback in dark mode must not flash the light scrim colour. */
:root[data-theme-resolved="dark"] .hero-bg { background-color: #1c1c1e; }

/* Flat, single-colour white scrim — no gradients, no blue tint. */
.hero-bg::after {
  content: "";
  position: absolute;
  inset: 0;
  background: rgba(255, 255, 255, .58);
}
/* Same photo, dark scrim: keeps the ink/muted text tokens (now light-on-dark)
   readable instead of fighting a light-mode-only overlay. */
:root[data-theme-resolved="dark"] .hero-bg::after { background: rgba(10, 10, 12, .68); }

@keyframes hero-settle {
  from { transform: scale(1.09); opacity: 0; }
  to { transform: scale(1.04); opacity: 1; }
}

.hero-content {
  position: relative;
  text-align: center;
  max-width: 720px;
}

.hero-title {
  font-size: clamp(52px, 11vw, 108px);
  line-height: 1.02;
  letter-spacing: -.035em;
  font-weight: 700;
  color: var(--ink);
  animation: rise .7s var(--ease) .1s both;
}

.hero-sub {
  margin-top: 18px;
  font-size: clamp(16px, 2.4vw, 21px);
  font-weight: 400;
  color: #33343a;
  animation: rise .7s var(--ease) .2s both;
}
:root[data-theme-resolved="dark"] .hero-sub { color: #d8d8dc; }

.hero-actions {
  margin-top: 34px;
  display: flex;
  gap: 12px;
  justify-content: center;
  flex-wrap: wrap;
  animation: rise .7s var(--ease) .3s both;
}

.hero-actions .btn-lg { box-shadow: 0 2px 14px rgba(0, 0, 0, .12); }

.hero-actions .btn:not(.btn-primary) {
  background: rgba(255, 255, 255, .82);
  border-color: rgba(0, 0, 0, .1);
}
.hero-actions .btn:not(.btn-primary):hover { background: #fff; }
:root[data-theme-resolved="dark"] .hero-actions .btn:not(.btn-primary) {
  background: rgba(36, 36, 38, .82);
  border-color: rgba(255, 255, 255, .14);
  color: var(--ink);
}
:root[data-theme-resolved="dark"] .hero-actions .btn:not(.btn-primary):hover {
  background: rgba(46, 46, 48, .92);
}

.hero-foot {
  position: absolute;
  bottom: 22px;
  left: 0;
  right: 0;
  text-align: center;
  font-size: 12.5px;
  color: #45464c;
  animation: fade-in 1s var(--ease) .6s both;
}
.hero-foot a { color: #0071c8; }
:root[data-theme-resolved="dark"] .hero-foot { color: #c4c4c8; }
:root[data-theme-resolved="dark"] .hero-foot a { color: var(--blue); }
