/* The homepage's light field. Content is visible without JavaScript. */
.hero {
  isolation: isolate;
  background: radial-gradient(ellipse at 85% 37%, #34245c80 0, transparent 48%),
    radial-gradient(ellipse at 52% 87%, #123a4e55 0, transparent 45%), #0b1020;
}
.hero::before {
  width: 100%; height: 100%; inset: 0;
  background: linear-gradient(90deg, #0b102025, transparent 68%);
  z-index: -1;
}
.light-field {
  position: absolute; inset: 0; width: 100%; height: 100%;
  pointer-events: none; z-index: -2;
  mask-image: linear-gradient(90deg, #0003, #0009 44%, #000 65%),
    linear-gradient(#000 75%, transparent);
  mask-composite: intersect;
}
.hero > .container { position: relative; }
.hero-copy { position: relative; z-index: 1; }
.hero h1 .headline-line { display: block; }
.hero h1 em {
  background: linear-gradient(105deg, #a2fff0 4%, #54ddeb 44%, #b2a0ff 95%);
  background-clip: text; -webkit-background-clip: text;
  color: transparent;
}
.hero-visual { perspective: 1200px; }
.hero-visual::before {
  content: ''; position: absolute; inset: 5% -10% 3%; z-index: -1;
  background: radial-gradient(ellipse at 75% 24%, #8a57ff50, transparent 60%),
    radial-gradient(ellipse at 30% 80%, #38dafc36, transparent 56%);
  filter: blur(28px); pointer-events: none;
}
.hero-visual .screen {
  border-color: #aaa4e68a;
  box-shadow: 0 0 0 1px #b2a1fc15, 0 0 36px #925cff25,
    0 35px 85px #030715b3, 0 0 100px #22d3ee0c;
}
.hero-visual .screen-top { background: #212840; }
.hero-visual .screen-top i:first-child { background: #9675fa; }
.hero-visual .screen-top i:nth-child(2) { background: #54ddeb; }
.hero-visual .screen-top i:nth-child(3) { background: #78ddbc; }
.hero .actions .primary {
  border-color: #b09aff60;
  box-shadow: 0 6px 25px #7853f433, inset 0 1px 0 #e2d8ff25;
  transition: box-shadow .2s, background .2s, transform .2s;
}
.hero .actions .primary:hover {
  box-shadow: 0 8px 32px #7853f469, inset 0 1px 0 #e2d8ff30;
  transform: translateY(-2px);
}
.hero .strip { border-image: linear-gradient(90deg, #54ddeb50, #9f76fc77 60%, #54ddeb22) 1; }
.motion-toggle {
  position: absolute; top: 14px; right: var(--gutter); z-index: 2;
  display: flex; align-items: center; gap: 8px;
  min-height: 44px; padding: 6px 10px; border: 1px solid transparent;
  border-radius: 8px; background: #0b102050; color: #b6c1d8;
  font-size: 12px; cursor: pointer;
}
.motion-toggle[hidden] { display: none; }
.motion-toggle:hover { color: #fff; border-color: #677595; background: #11182b; }
.motion-toggle svg { width: 13px; height: 13px; }
.motion-toggle .play-icon { display: none; }
.motion-toggle[aria-pressed="true"] .play-icon { display: block; }
.motion-toggle[aria-pressed="true"] .pause-icon { display: none; }

@media (prefers-reduced-motion: no-preference) {
  .hero.motion-ready .hero-copy > .eyebrow {
    animation: arrive .75s cubic-bezier(.16,1,.3,1) both;
  }
  .hero.motion-ready .headline-line {
    animation: headline-arrive 1.2s cubic-bezier(.16,1,.3,1) .08s both;
  }
  .hero.motion-ready h1 em {
    animation: headline-arrive 1.35s cubic-bezier(.16,1,.3,1) .19s both;
  }
  .hero.motion-ready .lead { animation: arrive 1s cubic-bezier(.16,1,.3,1) .3s both; }
  .hero.motion-ready .actions { animation: arrive 1s cubic-bezier(.16,1,.3,1) .38s both; }
  .hero.motion-ready .hero-note { animation: arrive 1s cubic-bezier(.16,1,.3,1) .46s both; }
  .hero.motion-ready .hero-visual { animation: preview-arrive 1.6s cubic-bezier(.16,1,.3,1) .15s both; }
  .hero.motion-ready .strip { animation: arrive 1.1s cubic-bezier(.16,1,.3,1) .5s both; }
  .hero.motion-paused *, .hero.motion-paused *::before { animation: none !important; }
}
@keyframes arrive {
  from { opacity: .15; transform: translateY(16px); }
  to { opacity: 1; transform: translateY(0); }
}
@keyframes headline-arrive {
  from { opacity: .12; transform: translateY(30px); filter: blur(5px); }
  to { opacity: 1; transform: translateY(0); filter: blur(0); }
}
@keyframes preview-arrive {
  from { opacity: .15; transform: translateY(32px) scale(.95); }
  to { opacity: 1; transform: translateY(0) scale(1); }
}
@media (max-width: 650px) {
  .hero { padding-top: 62px; background: radial-gradient(ellipse at 95% 45%, #36245670, transparent 60%), #0b1020; }
  .motion-toggle { top: 7px; }
  .light-field { mask-image: linear-gradient(#0008, #000 58%, transparent); mask-composite: add; }
  .hero-visual::before { inset: -10% -5%; filter: blur(20px); }
}
@media (prefers-reduced-motion: reduce) {
  .hero *, .hero *::before { animation: none !important; transition: none !important; }
  .hero .actions .primary:hover { transform: none; }
}
@media (forced-colors: active) {
  .light-field, .motion-toggle { display: none; }
  .hero h1 em { color: CanvasText; background: none; }
}
