body.has-video-hero main {
  padding-top: 0;
}

body.has-video-hero .site-nav {
  max-width: none;
  padding: 0 var(--sp-space-8);
}

.hero {
  --sp-hero-frame-gutter: 0.75rem;
  position: relative;
  min-height: 100svh;
  display: flex;
  padding: var(--sp-hero-frame-gutter);
  padding-top: calc(var(--sp-header-height) + var(--sp-hero-frame-gutter));
  background: var(--sp-color-bg);
}

.hero-frame {
  position: relative;
  flex: 1;
  display: flex;
  min-width: 0;
  border-radius: var(--sp-corners-lg);
  border: 1px solid oklch(1 0 0 / 0.16);
  overflow: clip;
  background: var(--sp-primitive-warm-950);
}

.hero-layout {
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: 1fr minmax(440px, 34vw);
  align-items: stretch;
  width: 100%;
  min-height: calc(100svh - var(--sp-header-height) - (2 * var(--sp-hero-frame-gutter)));
}

.hero-pane {
  grid-column: 2;
  display: flex;
  flex-direction: column;
  background: oklch(0.13 0.01 45 / 0.55);
  backdrop-filter: blur(24px) saturate(140%);
  -webkit-backdrop-filter: blur(24px) saturate(140%);
  border-left: 1px solid oklch(1 0 0 / 0.14);
  padding: var(--sp-space-6) clamp(var(--sp-space-8), 3.5vw, var(--sp-space-12)) var(--sp-space-10);
  color: var(--sp-primitive-white);
  box-shadow: -24px 0 64px oklch(0 0 0 / 0.35);
}

@supports not (backdrop-filter: blur(1px)) {
  .hero-pane {
    background: oklch(0.13 0.01 45 / 0.85);
  }
}

.hero-pane .hero-eyebrow {
  margin-top: auto;
}

.hero-eyebrow {
  font-family: var(--sp-font-mono);
  font-size: var(--sp-text-xs);
  font-weight: var(--sp-font-bold);
  text-transform: uppercase;
  letter-spacing: 0.2em;
  color: oklch(1 0 0 / 0.7);
  margin-bottom: var(--sp-space-6);
}

.hero-title {
  font-family: var(--sp-font-brand);
  font-size: clamp(2.25rem, 3.5vw, 3.25rem);
  font-weight: var(--sp-font-bold);
  line-height: var(--sp-leading-tight);
  letter-spacing: var(--sp-tracking-tight);
  margin-bottom: var(--sp-space-6);
  color: var(--sp-primitive-white);
}

.hero-title .highlight {
  color: var(--sp-primitive-white);
  display: block;
}

.hero-title-dot {
  color: var(--sp-color-primary-hover);
}

.hero-subtitle {
  font-size: clamp(1rem, 1.4vw, 1.15rem);
  color: oklch(1 0 0 / 0.78);
  margin: 0 0 var(--sp-space-8);
  line-height: var(--sp-leading-relaxed);
}

.hero-pane .hero-ctas {
  justify-content: flex-start;
  margin-top: 0;
}

.hero-pane .hero-cta-secondary {
  color: var(--sp-primitive-white);
  border-color: oklch(1 0 0 / 0.35);
}

.hero-pane .hero-cta-secondary:hover {
  background: oklch(1 0 0 / 0.12);
  border-color: var(--sp-primitive-white);
  color: var(--sp-primitive-white);
}

.hero-pane .hero-cta:focus-visible {
  outline: 2px solid var(--sp-primitive-white);
  outline-offset: 2px;
}

@media (max-width: 900px) {
  .hero {
    --sp-hero-frame-gutter: 0.5rem;
    padding-top: calc(var(--sp-header-height) + var(--sp-hero-frame-gutter));
  }

  .hero-frame {
    flex-direction: column;
    border-radius: var(--sp-corners-md);
  }

  .hero-layout {
    display: flex;
    flex: 1;
    min-height: 0;
  }

  .hero-pane {
    grid-column: auto;
    flex: 1;
    justify-content: center;
    border-left: none;
    border-top: 1px solid oklch(1 0 0 / 0.10);
    background: none;
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
    box-shadow: none;
    padding: var(--sp-space-8) var(--sp-space-6) var(--sp-space-10);
  }

  .hero-pane .hero-eyebrow {
    margin-top: 0;
  }
}

@media (max-width: 600px) {
  .hero-title {
    font-size: var(--sp-text-3xl);
  }

  .hero-subtitle {
    font-size: var(--sp-text-base);
  }

  .hero-pane .hero-ctas {
    flex-direction: column;
    align-items: stretch;
  }

  .hero-pane .hero-cta {
    justify-content: center;
    min-height: 44px;
  }
}
.has-motion [data-reveal] {
  opacity: 0;
  transform: translateY(0.5rem);
  transition:
    opacity 500ms ease calc(var(--reveal-index, 0) * 100ms),
    transform 800ms cubic-bezier(0.215, 0.61, 0.355, 1) calc(var(--reveal-index, 0) * 100ms);
  will-change: opacity, transform;
}

.has-motion [data-reveal].is-revealed {
  opacity: 1;
  transform: none;
  will-change: auto;
}

.hero-title-line {
  display: block;
  padding-bottom: 0.14em;
  margin-bottom: -0.14em;
}

.has-motion .hero-title-line[data-reveal] {
  opacity: 1;
  transform: none;
  overflow: hidden;
  will-change: auto;
}

.has-motion .hero-title-inner {
  display: block;
  transform: translateY(110%);
  transition: transform 1000ms cubic-bezier(0.22, 1, 0.36, 1) calc(var(--reveal-index, 0) * 100ms);
  will-change: transform;
}

.has-motion .hero-title-line.is-revealed .hero-title-inner {
  transform: none;
  will-change: auto;
}

.has-motion .hero-bg-video {
  opacity: 0;
  transform: scale(1.06);
  transition: opacity 1200ms ease, transform 1800ms cubic-bezier(0.215, 0.61, 0.355, 1);
}

.has-motion .hero-bg-video.is-ready {
  opacity: 1;
  transform: none;
}

@media (prefers-reduced-motion: reduce) {
  .has-motion [data-reveal],
  .has-motion [data-reveal].is-revealed,
  .has-motion .hero-title-inner,
  .has-motion .hero-title-line.is-revealed .hero-title-inner {
    opacity: 1;
    transform: none;
    transition: none;
  }

  .has-motion .hero-title-line[data-reveal] {
    overflow: visible;
  }

  .hero-bg-video {
    display: none;
  }

  .hero-frame {
    background:
      radial-gradient(ellipse 80% 60% at 20% 20%, oklch(1 0 0 / 0.08), transparent 70%),
      var(--sp-primitive-warm-950);
  }
}

/* ── Per-platform download CTAs ──────────────────────────────────────────────
   Pill buttons mirroring the admin bridge-setup .download-cta, each carrying
   its OS glyph as a currentColor mask so the icon follows text color. */
.hero-pane .hero-ctas-downloads {
  margin-top: 0.75rem;
  flex-wrap: wrap;
}

.hero-pane .hero-cta-download {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  color: var(--sp-primitive-white);
  border: 1px solid oklch(1 0 0 / 0.35);
  border-radius: 999px;
}

.hero-pane .hero-cta-download:hover {
  background: oklch(1 0 0 / 0.12);
  border-color: var(--sp-primitive-white);
  color: var(--sp-primitive-white);
}

.hero-cta-os-icon {
  width: 1.05em;
  height: 1.05em;
  flex: none;
  background-color: currentColor;
  -webkit-mask: var(--os-glyph) center / contain no-repeat;
  mask: var(--os-glyph) center / contain no-repeat;
}

/* Apple mark */
.os-macos {
  --os-glyph: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M16.36 12.76c-.02-2.05 1.68-3.03 1.75-3.08-.95-1.39-2.43-1.58-2.96-1.6-1.26-.13-2.46.74-3.1.74-.64 0-1.63-.72-2.68-.7-1.38.02-2.65.8-3.36 2.03-1.43 2.48-.37 6.15 1.03 8.16.68.99 1.49 2.1 2.56 2.06 1.03-.04 1.42-.66 2.66-.66 1.24 0 1.59.66 2.68.64 1.11-.02 1.81-1 2.48-1.99.78-1.14 1.1-2.24 1.12-2.3-.02-.01-2.15-.82-2.18-3.3zM14.32 6.7c.57-.69.95-1.65.85-2.6-.82.03-1.8.54-2.39 1.23-.52.61-.98 1.58-.86 2.51.91.07 1.84-.46 2.4-1.14z'/%3E%3C/svg%3E");
}

/* Windows mark */
.os-windows {
  --os-glyph: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M3 5.5 10.5 4.4v7.1H3V5.5zm0 13 7.5 1.1v-7H3v5.9zm8.5 1.2L21 21V12.5h-9.5v7.2zm0-15.4v7.2H21V3l-9.5 1.3z'/%3E%3C/svg%3E");
}

/* Linux: terminal prompt glyph — recognizable, and honest about the headless
   install (Tux does not survive a 1em mask). */
.os-linux {
  --os-glyph: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M3 4a2 2 0 0 1 2-2h14a2 2 0 0 1 2 2v16a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2V4zm2 .5v15h14v-15H5zm2.2 3.3 4.2 4.2-4.2 4.2 1.4 1.4 5.6-5.6-5.6-5.6-1.4 1.4zM12 16h5v2h-5v-2z'/%3E%3C/svg%3E");
}
