/* Home hero: one rounded panel of reeded glass. */

.hero { padding: 12px; }
.hero-panel {
  position: relative; isolation: isolate; overflow: hidden;
  border-radius: var(--radius-panel);
  min-height: max(660px, min(100svh - 24px, 940px));
  color: var(--white);
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(300px, 380px);
  grid-template-rows: 1fr auto auto;
  column-gap: clamp(24px, 4vw, 72px);
  padding: 112px clamp(24px, 4.4vw, 64px) 0;
  background: var(--sky-night);
}

/* the glass: canvas on top of the CSS version; the CSS version shows when
   WebGL is missing or before the first frame */
.hero-glass, .hero-glass canvas, .hero-fallback, .hero-scrim { position: absolute; inset: 0; }
.hero-glass { z-index: -2; }
.hero-glass canvas { width: 100%; height: 100%; opacity: 0; transition: opacity 1.2s var(--ease); }
.gl-on .hero-glass canvas { opacity: 1; }
.hero-fallback {
  background:
    repeating-linear-gradient(90deg,
      rgba(4, 50, 75, .16) 0, rgba(252, 255, 255, .10) 3px, rgba(252, 255, 255, .02) 7px,
      rgba(252, 255, 255, 0) 14px, rgba(4, 50, 75, .10) 21px, rgba(4, 50, 75, .16) 22px),
    radial-gradient(14% 42% at 63% 50%, rgba(4, 24, 46, .62), transparent 70%),
    radial-gradient(12% 22% at 44% 40%, rgba(255, 141, 116, .55), transparent 70%),
    radial-gradient(16% 36% at 50% 42%, rgba(216, 57, 149, .85), transparent 72%),
    radial-gradient(40% 50% at 12% -4%, rgba(252, 255, 255, .55), transparent 70%),
    radial-gradient(60% 60% at 10% 100%, rgba(4, 24, 46, .55), transparent 70%),
    linear-gradient(180deg, #2BA6D3 0%, #0593C6 45%, #03496E 100%);
  filter: saturate(1.05);
}
/* a soft local scrim keeps the headline and paragraph readable at every moment */
.hero-scrim {
  z-index: -1; pointer-events: none;
  background:
    radial-gradient(36% 22% at 40% 54%, rgba(4, 34, 56, .52), rgba(4, 34, 56, 0) 100%),
    radial-gradient(48% 34% at 26% 60%, rgba(4, 34, 56, .62), rgba(4, 34, 56, .28) 55%, rgba(4, 34, 56, 0) 100%),
    radial-gradient(28% 24% at 86% 80%, rgba(4, 34, 56, .56), rgba(4, 34, 56, 0) 100%),
    linear-gradient(0deg, rgba(4, 34, 56, .42), rgba(4, 34, 56, 0) 24%),
    linear-gradient(180deg, rgba(4, 30, 48, .14), rgba(4, 30, 48, 0) 16%);
}

.hero-copy { grid-column: 1; grid-row: 1 / span 2; align-self: end; padding-bottom: 44px; max-width: 760px; }
.hero h1 {
  font-size: clamp(40px, 5.4vw, 80px);
  font-weight: 300; line-height: 1.12; letter-spacing: -.005em;
  text-shadow: 0 1px 24px rgba(4, 30, 48, .25);
}
.hero h1 span { display: block; }
.hero-lede { margin-top: 22px; max-width: 34em; font-size: 17px; line-height: 1.75; color: rgba(252, 255, 255, .94); text-shadow: 0 1px 14px rgba(4, 30, 48, .35); }
.hero-actions .btn-light { height: 52px; padding: 0 28px; }
.play { width: 34px; height: 34px; border-radius: 999px; display: grid; place-items: center; box-shadow: inset 0 0 0 1px rgba(252, 255, 255, .5); background: rgba(252, 255, 255, .12); }

/* the frosted card: one R&D spend under three bases */
.glass-card {
  grid-column: 2; grid-row: 1; align-self: start;
  position: relative; padding: 14px 14px 16px; border-radius: 26px;
  background: linear-gradient(180deg, rgba(252, 255, 255, .26), rgba(252, 255, 255, .12));
  box-shadow: inset 0 0 0 1px rgba(252, 255, 255, .32), inset 0 1px 0 rgba(252, 255, 255, .45), 0 30px 60px -30px rgba(4, 30, 48, .55);
  backdrop-filter: blur(22px) saturate(1.35); -webkit-backdrop-filter: blur(22px) saturate(1.35);
}
.glass-card::before { content: ""; display: block; width: 52px; height: 4px; margin: 0 auto 12px; border-radius: 4px; background: rgba(252, 255, 255, .7); }
.glass-card .card-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 0 6px 12px; font-size: 13px; color: rgba(252, 255, 255, .9); }
.glass-card .card-head b { font-weight: 500; font-size: 15px; color: var(--white); }
.tile {
  border-radius: 18px; padding: 16px 18px;
  background: rgba(252, 255, 255, .16);
  box-shadow: inset 0 0 0 1px rgba(252, 255, 255, .22);
}
.tile + .tile { margin-top: 10px; }
.tile .label { display: flex; justify-content: space-between; font-size: 13px; color: rgba(252, 255, 255, .88); }
.tile .figure { margin-top: 6px; font-size: 32px; font-weight: 300; letter-spacing: -.02em; line-height: 1.1; }
.tile .figure small { font-size: .55em; margin-right: 2px; }
.demo-tag { font-size: 12px; padding: 1px 8px; border-radius: 999px; background: rgba(4, 30, 48, .28); color: var(--white); }
.bases { list-style: none; display: grid; gap: 0; }
.bases li { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; padding: 10px 0; border-top: 1px solid rgba(252, 255, 255, .2); font-size: 15px; }
.bases li:first-child { border-top: 0; padding-top: 2px; }
.bases li span:last-child { font-size: 13px; color: rgba(252, 255, 255, .85); text-align: right; }
.bases .dot { display: inline-block; width: 6px; height: 6px; border-radius: 6px; background: var(--white); margin-right: 10px; vertical-align: 3px; }
.bases li:nth-child(2) .dot { background: var(--pink); box-shadow: 0 0 0 3px rgba(216, 57, 149, .25); }

.hero-side { grid-column: 2; grid-row: 2; align-self: end; padding-bottom: 52px; font-size: 14px; line-height: 1.7; color: rgba(252, 255, 255, .9); }

/* the strip: hairline-separated notes along the bottom */
.hero-strip {
  grid-column: 1 / -1; grid-row: 3;
  list-style: none; display: grid; grid-template-columns: repeat(5, minmax(0, 1fr));
  border-top: 1px solid rgba(252, 255, 255, .28);
}
.hero-strip li { padding: 20px 20px 26px 0; font-size: 14px; line-height: 1.6; color: rgba(252, 255, 255, .86); }
.hero-strip li + li { padding-left: 20px; border-left: 1px solid rgba(252, 255, 255, .16); }
.hero-strip b { display: flex; align-items: center; gap: 8px; margin-bottom: 4px; font-size: 16px; font-weight: 500; color: var(--white); }
.hero-strip svg { width: 16px; height: 16px; flex: none; opacity: .9; }

/* load: glass resolves (shader uniform), headline settles, card rises */
@media (prefers-reduced-motion: no-preference) {
  .js .hero h1 span, .js .hero-lede, .js .hero-actions { animation: settle 1.1s var(--ease) both; }
  .js .hero h1 span:nth-child(2) { animation-delay: .08s; }
  .js .hero-lede { animation-delay: .22s; }
  .js .hero-actions { animation-delay: .3s; }
  .js .glass-card { animation: rise 1.3s .35s var(--ease) both; }
}
@keyframes settle { from { opacity: 0; transform: translateY(18px); filter: blur(6px); } }
@keyframes rise { from { opacity: 0; transform: translateY(40px); } }

/* ---------- smaller screens: headline, actions, card, then the strip ---------- */
@media (max-width: 1080px) {
  .hero-panel { grid-template-columns: minmax(0, 1fr) minmax(280px, 330px); }
  .hero-strip { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .hero-strip li:nth-child(4) { padding-left: 0; border-left: 0; }
  .hero-strip li:nth-child(n+4) { border-top: 1px solid rgba(252, 255, 255, .16); }
}
@media (max-width: 860px) {
  .hero { padding: 8px; }
  .hero-panel {
    grid-template-columns: minmax(0, 1fr); grid-template-rows: auto;
    min-height: 0; padding-top: 108px; border-radius: 26px;
  }
  .hero-copy { grid-row: auto; padding-bottom: 36px; }
  .glass-card { grid-column: 1; grid-row: auto; max-width: 420px; width: 100%; }
  .hero-side { grid-column: 1; grid-row: auto; padding: 24px 0 32px; }
  .hero-strip { grid-column: 1; grid-row: auto; grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .hero-strip li, .hero-strip li + li { padding: 16px 12px 18px 0; border-left: 0; border-top: 1px solid rgba(252, 255, 255, .16); }
  .hero-strip li:nth-child(1), .hero-strip li:nth-child(2) { border-top: 0; }
  .hero-strip li:nth-child(even) { padding-left: 16px; border-left: 1px solid rgba(252, 255, 255, .16); }
  .hero-scrim { background:
    linear-gradient(180deg, rgba(4, 30, 48, .22), rgba(4, 30, 48, 0) 14%),
    radial-gradient(90% 30% at 30% 34%, rgba(4, 34, 56, .38), rgba(4, 34, 56, 0) 100%),
    linear-gradient(0deg, rgba(4, 34, 56, .5), rgba(4, 34, 56, 0) 45%); }
  .over-hero .bar { width: calc(100% - 2 * var(--gutter) - 8px); }
}
@media (max-width: 420px) {
  .hero h1 { font-size: 34px; }
  .hero-lede { font-size: 16px; }
  .hero-strip li { font-size: 13px; }
  .hero-strip b { font-size: 15px; }
  .tile .figure { font-size: 28px; }
}
