/* Cinematic homepage layer: scoped to the product home only. */
.home-shell {
  --home-bg: oklch(0.085 0.014 285);
  --home-sidebar: oklch(0.105 0.016 282);
  --home-surface: oklch(0.145 0.02 282);
  --home-surface-raised: oklch(0.18 0.027 281);
  --home-line: oklch(0.31 0.035 280 / 0.72);
}

.home-main {
  background:
    radial-gradient(circle at 52% -8%, oklch(0.38 0.13 254 / 0.22), transparent 34%),
    radial-gradient(circle at 92% 10%, oklch(0.31 0.14 318 / 0.17), transparent 28%),
    radial-gradient(circle at 16% 48%, oklch(0.26 0.1 290 / 0.12), transparent 32%),
    var(--home-bg);
}

.home-sidebar {
  background:
    radial-gradient(circle at 15% 9%, oklch(0.4 0.14 255 / 0.16), transparent 23%),
    var(--home-sidebar);
}

.home-brand-mark,
.home-new-button,
.home-primary-action {
  background: oklch(0.68 0.17 150);
}

.home-brand-mark {
  box-shadow: 0 0 0 1px oklch(0.82 0.13 150 / 0.18), 0 0 18px oklch(0.67 0.17 150 / 0.24);
}

.home-topbar {
  background: oklch(0.095 0.018 282 / 0.88);
}

.home-content {
  width: min(1440px, calc(100% - 48px));
  padding-top: 22px;
}

.home-hero.home-hero-cinematic {
  isolation: isolate;
  min-height: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  overflow: hidden;
  padding: 42px 30px 28px;
  border-radius: 16px;
  border: 1px solid oklch(0.48 0.08 282 / 0.32);
  background: oklch(0.095 0.018 282 / 0.82);
  box-shadow: none;
}

.home-hero.home-hero-cinematic::before {
  z-index: -2;
  background:
    radial-gradient(circle at 50% -8%, oklch(0.56 0.17 250 / 0.24), transparent 36%),
    radial-gradient(circle at 8% 34%, oklch(0.45 0.17 296 / 0.14), transparent 31%),
    linear-gradient(180deg, oklch(0.16 0.045 282 / 0.74), transparent 64%);
}

.home-hero.home-hero-cinematic::after {
  width: 520px;
  height: 520px;
  right: -130px;
  top: -260px;
  z-index: -1;
  background: oklch(0.56 0.18 322 / 0.12);
  filter: blur(38px);
}

.home-hero-aurora,
.home-hero-aurora i {
  position: absolute;
  pointer-events: none;
}

.home-hero-aurora {
  inset: 0;
  z-index: -1;
}

.home-hero-aurora i {
  border-radius: 50%;
  filter: blur(44px);
  opacity: 0.38;
}

.home-hero-aurora i:nth-child(1) {
  width: 240px;
  height: 180px;
  left: 16%;
  top: 18%;
  background: oklch(0.54 0.17 286 / 0.4);
}

.home-hero-aurora i:nth-child(2) {
  width: 300px;
  height: 220px;
  left: 46%;
  top: -13%;
  background: oklch(0.59 0.16 242 / 0.36);
}

.home-hero-aurora i:nth-child(3) {
  width: 220px;
  height: 180px;
  right: 7%;
  top: 25%;
  background: oklch(0.54 0.17 328 / 0.3);
}

.home-hero.home-hero-cinematic .home-hero-copy {
  z-index: 4;
  width: min(920px, 100%);
  align-self: center;
  padding: 8px 20px 14px;
  text-align: center;
}

.home-hero.home-hero-cinematic .home-hero-tag {
  min-height: 28px;
  color: oklch(0.88 0.09 281);
  background: oklch(0.2 0.06 282 / 0.62);
  box-shadow: inset 0 0 0 1px oklch(0.66 0.13 282 / 0.2);
}

.home-glitch-title {
  --mx: 50%;
  --my: 50%;
  position: relative;
  width: fit-content;
  max-width: 100%;
  margin: 13px auto 11px !important;
  color: oklch(0.96 0.01 280);
  font-size: 48px !important;
  line-height: 1.08 !important;
  letter-spacing: -0.035em !important;
  cursor: crosshair;
  text-wrap: balance;
}

.home-title-text {
  position: relative;
  z-index: 1;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 30px;
  opacity: 1;
  transition: opacity 120ms ease-out;
}

.home-title-text > span {
  color: oklch(0.78 0.15 295);
}

.home-title-text strong {
  color: oklch(0.92 0.065 36);
  font-weight: 820;
}

.home-glitch-title::before,
.home-glitch-title::after {
  display: none;
}

.home-title-canvas {
  position: absolute;
  z-index: 3;
  display: block;
  max-width: none;
  opacity: 0;
  pointer-events: none;
  contain: strict;
  transition: opacity 100ms ease-out;
}

.home-glitch-title.canvas-ready .home-title-text {
  opacity: 1;
}

.home-glitch-title.canvas-ready.is-dissolving .home-title-text {
  opacity: 0;
}

.home-glitch-title.canvas-ready.is-dissolving .home-title-canvas {
  opacity: 1;
}

.home-glitch-title.is-dissolving .home-title-canvas {
  will-change: contents;
}

.home-hero.home-hero-cinematic .home-hero-copy > p {
  max-width: 64ch;
  margin-inline: auto;
  color: oklch(0.82 0.025 282);
}

.home-hero.home-hero-cinematic .home-hero-points,
.home-hero.home-hero-cinematic .home-hero-actions {
  justify-content: center;
}

.home-hero.home-hero-cinematic .home-hero-points span {
  color: oklch(0.86 0.025 282);
}

.home-hero.home-hero-cinematic .home-hero-points svg {
  color: oklch(0.72 0.16 151);
}

.home-hero.home-hero-cinematic .home-secondary-action {
  border-color: oklch(0.48 0.08 282 / 0.7);
  background: oklch(0.16 0.035 282 / 0.72);
}

.home-live-strip {
  width: min(760px, 100%);
  min-height: 38px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 4px;
  padding: 4px;
  border-radius: 10px;
  color: oklch(0.79 0.02 282);
  background: oklch(0.13 0.025 282 / 0.76);
  box-shadow: inset 0 0 0 1px oklch(0.43 0.055 282 / 0.38);
}

.home-live-strip > span {
  min-width: 0;
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  min-height: 30px;
  padding: 0 10px;
  border-radius: 7px;
}

.home-live-strip > span:hover {
  background: oklch(0.2 0.035 282 / 0.78);
}

.home-live-strip i {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: oklch(0.7 0.18 150);
  box-shadow: 0 0 9px oklch(0.7 0.18 150 / 0.8);
}

.home-live-strip strong,
.home-live-strip small {
  font-size: 9px;
}

.home-live-strip strong {
  color: oklch(0.9 0.02 282);
}

.home-live-strip .muted i {
  background: oklch(0.56 0.02 282);
  box-shadow: none;
}

.home-live-strip .muted small {
  color: oklch(0.62 0.025 282);
}

.home-start-section,
.home-projects,
.home-agent-starter,
.home-gallery {
  position: relative;
}

.home-create-panel,
.home-feature-list button,
.home-project-item,
.home-gallery-card,
.home-agent-starter {
  background-color: oklch(0.13 0.02 282);
}

.home-create-panel::before,
.home-feature-list button::before,
.home-project-item::before,
.home-gallery-card::before {
  background: radial-gradient(circle at var(--spot-x, 50%) var(--spot-y, 50%), oklch(0.68 0.14 282 / 0.13), transparent 36%);
}

@media (max-width: 1120px) {

  .home-glitch-title {
    font-size: 42px !important;
  }
}

@media (max-width: 860px) {
  .home-content {
    width: min(100% - 28px, 720px);
  }

  .home-hero.home-hero-cinematic {
    min-height: 0;
    padding: 20px 16px;
  }

  .home-glitch-title {
    font-size: 36px !important;
  }

  .home-live-strip {
    flex-wrap: wrap;
  }

  .home-live-strip > span {
    flex: 1 1 42%;
  }
}

@media (max-width: 560px) {
  .home-content {
    width: calc(100% - 20px);
    padding-top: 10px;
  }

  .home-hero.home-hero-cinematic {
    border-radius: 12px;
    padding-inline: 10px;
  }

  .home-hero.home-hero-cinematic .home-hero-copy {
    padding-inline: 4px;
  }

  .home-glitch-title {
    font-size: 31px !important;
    line-height: 1.15 !important;
  }

  .home-title-text {
    gap: 14px;
  }

  .home-glitch-title::before,
  .home-glitch-title::after,
  .home-title-canvas {
    display: none;
  }

  .home-glitch-title.canvas-ready .home-title-text {
    opacity: 1;
  }
}

@media (prefers-reduced-motion: reduce) {

  .home-title-canvas {
    display: none;
  }

  .home-glitch-title.canvas-ready .home-title-text {
    opacity: 1;
  }
}

/* b46: static hero background (no looping video) */
.home-video-background {
  position: absolute;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  overflow: hidden;
  background:
    radial-gradient(ellipse at 50% 20%, oklch(0.35 0.08 280 / 0.35), transparent 55%),
    linear-gradient(180deg, oklch(0.14 0.03 282), oklch(0.08 0.02 282));
}
.home-content {
  position: relative;
}
