/*
 * Dear Friends hybrid homepage.
 *
 * The existing homepage structure remains the behavioral source of truth.
 * Every rule is scoped to .home-v3, the final experience served at `/`.
 */

body.home-v3 {
  --v3-ink: #050914;
  --v3-night: #091424;
  --v3-paper: #f7f0e4;
  --v3-muted: rgba(235, 239, 244, 0.72);
  --v3-gold: #efbd72;
  --v3-gold-deep: #b97838;
  --v3-gold-soft: rgba(239, 189, 114, 0.18);
  --v3-lavender: #a99cf7;
  --v3-line: rgba(255, 255, 255, 0.14);
  --v3-glass: rgba(5, 11, 22, 0.62);
  --v3-panel: rgba(7, 13, 29, 0.94);
  --v3-panel-solid: #070d1d;
  --v3-gold-line: rgba(239, 189, 114, 0.3);
  --v3-gold-glow: rgba(239, 189, 114, 0.2);
  /* Remap legacy website chrome without recoloring product screenshots. */
  --accent-teal: var(--v3-gold);
  --border-teal: var(--v3-gold-line);
  --accent-champagne: var(--v3-gold);
  --cyan: var(--v3-gold);
  --cyan-glow: rgba(239, 189, 114, 0.42);
  --text: var(--v3-paper);
  --text-secondary: rgba(239, 241, 245, 0.82);
  --text-muted: var(--v3-muted);
  --v3-device-chassis: linear-gradient(
    145deg,
    #eceef2 0%,
    #8f96a1 10%,
    #343a44 42%,
    #747b86 76%,
    #d9dde4 100%
  );
  --v3-device-border: rgba(231, 234, 240, 0.58);
  --v3-device-shadow:
    0 20px 46px rgba(0, 0, 0, 0.48),
    0 0 0 1px rgba(255, 255, 255, 0.1),
    0 0 44px rgba(239, 189, 114, 0.08),
    inset 0 0 0 1px rgba(255, 255, 255, 0.2);
  background: var(--v3-ink);
  color: var(--v3-paper);
}

.v3-page-ambient {
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  background:
    linear-gradient(
      180deg,
      rgba(4, 8, 18, 0.26) 0%,
      rgba(5, 9, 20, 0.44) 52%,
      rgba(5, 9, 20, 0.62) 100%
    ),
    radial-gradient(
      ellipse at 50% 18%,
      rgba(239, 189, 114, 0.08),
      transparent 48%
    ),
    url("/assets/website/v2/frames/nebula-hero/frame-0241.webp")
    center center / cover no-repeat;
  filter: saturate(0.94) contrast(1.03);
  transform: translateZ(0);
}

body.home-v3::before,
body.home-v3::after {
  content: none;
}

.home-v3 #indexStarfield {
  opacity: 0.34;
}

.home-v3 nav {
  background:
    linear-gradient(
      to bottom,
      rgba(5, 9, 20, 0.9),
      rgba(5, 9, 20, 0.42) 72%,
      transparent
    ) !important;
}

.home-v3 nav.scrolled {
  background: rgba(5, 9, 20, 0.86) !important;
  border-bottom-color: rgba(239, 189, 114, 0.14);
  box-shadow: 0 12px 34px rgba(0, 0, 0, 0.3);
}

.home-v3 .nav-links a::after {
  background: linear-gradient(90deg, var(--v3-gold), var(--v3-lavender)) !important;
}

.home-v3 .nav-links a:focus-visible,
.home-v3 a:focus-visible,
.home-v3 button:focus-visible {
  outline-color: rgba(239, 189, 114, 0.72);
}

@media (max-width: 1180px) {
  .home-v3 nav,
  .home-v3 nav.scrolled {
    min-height: 76px;
    padding: 14px 22px;
  }

  .home-v3 .nav-links {
    display: none;
    position: absolute;
    top: 100%;
    right: 0;
    left: 0;
    max-height: calc(100vh - 76px);
    overflow-y: auto;
    flex-direction: column;
    align-items: stretch;
    gap: 4px;
    padding: 18px 22px 24px;
    background: rgba(5, 9, 20, 0.985);
    border-bottom: 1px solid rgba(239, 189, 114, 0.18);
  }

  .home-v3 .nav-links.active {
    display: flex;
  }

  .home-v3 .nav-links a {
    display: block;
    padding: 10px 0;
    font-size: 16px;
  }

  .home-v3 .menu-toggle {
    display: block;
  }
}

/* Cinematic cover: ordinary native playback, never scroll-scrubbed or pinned. */
.v3-cinematic-hero {
  position: relative;
  z-index: 2;
  min-height: 100vh;
  min-height: 100svh;
  overflow: hidden;
  display: grid;
  place-items: center;
  padding: clamp(116px, 14vh, 154px) 24px clamp(92px, 10vh, 122px);
  isolation: isolate;
  background: var(--v3-ink);
}

.v3-hero-media,
.v3-hero-video,
.v3-hero-start-frame,
.v3-hero-final-frame,
.v3-hero-scrim,
.v3-hero-vignette {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}

.v3-hero-media {
  z-index: -1;
  overflow: hidden;
  background: var(--v3-ink);
}

.v3-hero-video,
.v3-hero-start-frame,
.v3-hero-final-frame {
  object-fit: cover;
  object-position: center center;
}

.v3-hero-start-frame,
.v3-hero-final-frame {
  z-index: 0;
  display: block;
  filter: saturate(0.92) contrast(1.02);
  transform: scale(1.002);
}

.v3-hero-start-frame {
  opacity: 1;
}

.v3-hero-final-frame {
  z-index: 1;
  opacity: 0;
  transition: opacity 0.45s ease;
}

.v3-hero-video {
  z-index: 2;
  display: block;
  opacity: 0;
  transition: opacity 0.7s ease;
  background: transparent;
}

.v3-cinematic-hero.is-video-ready .v3-hero-video {
  opacity: 1;
}

.v3-cinematic-hero.is-ended .v3-hero-video,
.v3-cinematic-hero.is-static .v3-hero-video {
  opacity: 0;
}

.v3-cinematic-hero.is-ended .v3-hero-start-frame,
.v3-cinematic-hero.is-static .v3-hero-start-frame {
  opacity: 0;
}

.v3-cinematic-hero.is-ended .v3-hero-final-frame,
.v3-cinematic-hero.is-static .v3-hero-final-frame {
  opacity: 1;
}

.v3-hero-scrim {
  z-index: 3;
  background:
    linear-gradient(
      180deg,
      rgba(3, 6, 14, 0.74) 0%,
      rgba(3, 6, 14, 0.3) 28%,
      rgba(3, 6, 14, 0.34) 61%,
      rgba(5, 9, 20, 0.94) 100%
    );
}

.v3-hero-vignette {
  z-index: 4;
  background:
    radial-gradient(
      ellipse at center,
      transparent 17%,
      rgba(2, 5, 12, 0.08) 43%,
      rgba(2, 5, 12, 0.72) 112%
    );
}

.v3-hero-content {
  position: relative;
  z-index: 4;
  width: min(900px, 100%);
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  color: var(--v3-paper);
  text-shadow: 0 3px 22px rgba(0, 0, 0, 0.72);
  animation: v3HeroArrive 1.15s cubic-bezier(0.22, 0.78, 0.26, 1) both;
}

@keyframes v3HeroArrive {
  from {
    opacity: 0;
    transform: translateY(18px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.v3-hero-logo {
  width: clamp(116px, 15vw, 188px);
  height: clamp(116px, 15vw, 188px);
  object-fit: contain;
  margin-bottom: clamp(12px, 2vh, 22px);
  opacity: 0.96;
  filter:
    drop-shadow(0 0 24px rgba(239, 189, 114, 0.14))
    drop-shadow(0 16px 30px rgba(0, 0, 0, 0.34));
}

.v3-brand-aura {
  position: relative;
  isolation: isolate;
}

.v3-brand-aura::before {
  content: "";
  position: absolute;
  z-index: -1;
  inset: -48px -90px;
  border-radius: 50%;
  background:
    radial-gradient(
      ellipse,
      rgba(239, 189, 114, 0.14),
      rgba(169, 156, 247, 0.05) 44%,
      transparent 72%
    );
  filter: blur(12px);
}

.v3-brand-title {
  margin: 0;
  font-family: "Prata", serif;
  font-size: clamp(50px, 8vw, 88px);
  font-weight: 400;
  line-height: 1.02;
  letter-spacing: clamp(1.5px, 0.28vw, 4px);
  color: var(--v3-paper);
  text-wrap: balance;
}

.home-v3 .v3-hero-content .hero-lead {
  position: relative;
  z-index: 1;
  max-width: 810px !important;
  margin: clamp(22px, 3.5vh, 36px) auto 0;
}

.home-v3 .v3-hero-content .hero-lead h2 {
  margin: 0 0 15px !important;
  color: rgba(255, 251, 243, 0.98);
  font-family: "Prata", serif;
  font-size: clamp(24px, 3.5vw, 38px) !important;
  font-weight: 400;
  line-height: 1.24;
}

.home-v3 .v3-hero-content .hero-lead p {
  max-width: 690px !important;
  margin: 0 auto;
  color: rgba(239, 241, 245, 0.8) !important;
  font-size: clamp(15px, 1.6vw, 18px) !important;
  line-height: 1.72 !important;
  font-weight: 300;
}

.home-v3 .v3-hero-content .hero-actions {
  position: relative;
  z-index: 1;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 14px;
  margin: clamp(26px, 4vh, 38px) auto 0 !important;
}

.home-v3 .cta-button,
.home-v3 .pricing-trial-btn,
.home-v3 .final-cta-btn,
.home-v3 .final-cta-trial-btn {
  border: 1px solid rgba(250, 218, 165, 0.78) !important;
  background:
    linear-gradient(135deg, #f1ca8b 0%, #d99e50 54%, #a86f37 100%) !important;
  color: #1a1108 !important;
  font-weight: 500 !important;
  box-shadow:
    0 12px 34px rgba(147, 89, 35, 0.3),
    inset 0 1px 0 rgba(255, 255, 255, 0.48) !important;
  animation: none !important;
}

.home-v3 .cta-button::before {
  display: none !important;
}

.home-v3 .cta-button:hover,
.home-v3 .pricing-trial-btn:hover,
.home-v3 .final-cta-btn:hover,
.home-v3 .final-cta-trial-btn:hover {
  transform: translateY(-2px);
  box-shadow:
    0 16px 40px rgba(147, 89, 35, 0.4),
    0 0 30px rgba(239, 189, 114, 0.13),
    inset 0 1px 0 rgba(255, 255, 255, 0.5) !important;
}

.home-v3 .cta-button.cta-secondary,
.home-v3 .hero-actions .cta-button.cta-secondary {
  border-color: rgba(230, 220, 255, 0.3) !important;
  background: rgba(7, 11, 26, 0.58) !important;
  color: rgba(247, 240, 228, 0.9) !important;
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.08),
    0 10px 28px rgba(0, 0, 0, 0.22) !important;
  backdrop-filter: blur(14px);
}

.home-v3 .hero-actions .store-badges {
  flex-basis: 100%;
  margin-top: 9px;
}

.home-v3 .store-badge,
.home-v3 .try-player-store {
  border-color: rgba(239, 189, 114, 0.24);
  background:
    linear-gradient(145deg, rgba(20, 24, 48, 0.76), rgba(7, 10, 24, 0.82));
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.07),
    0 10px 28px rgba(0, 0, 0, 0.2);
  backdrop-filter: blur(12px);
}

.v3-video-toggle {
  position: absolute;
  z-index: 6;
  right: max(20px, env(safe-area-inset-right));
  bottom: max(24px, env(safe-area-inset-bottom));
  width: 46px;
  height: 46px;
  display: inline-grid;
  place-items: center;
  border: 1px solid rgba(255, 255, 255, 0.22);
  border-radius: 50%;
  background: rgba(5, 9, 20, 0.54);
  color: rgba(255, 249, 239, 0.9);
  box-shadow: 0 10px 28px rgba(0, 0, 0, 0.25);
  backdrop-filter: blur(12px);
  cursor: pointer;
}

.v3-video-toggle[hidden] {
  display: none;
}

.v3-video-toggle svg {
  position: absolute;
  width: 19px;
  height: 19px;
  fill: currentColor;
}

.v3-video-toggle-play {
  display: none;
}

.v3-cinematic-hero.is-paused .v3-video-toggle-pause,
.v3-cinematic-hero.is-ended .v3-video-toggle-pause {
  display: none;
}

.v3-cinematic-hero.is-paused .v3-video-toggle-play,
.v3-cinematic-hero.is-ended .v3-video-toggle-play {
  display: block;
}

.v3-scroll-cue {
  position: absolute;
  z-index: 6;
  left: 50%;
  bottom: max(25px, env(safe-area-inset-bottom));
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 9px;
  color: rgba(247, 240, 228, 0.65);
  text-decoration: none;
  font-size: 10px;
  letter-spacing: 2.8px;
  text-transform: uppercase;
}

.v3-scroll-cue i {
  display: block;
  width: 1px;
  height: 30px;
  background: linear-gradient(var(--v3-gold), transparent);
}

/* Keep the current structure; change only atmosphere and surface language. */
.home-v3 .energy-divider {
  position: relative;
  z-index: 2;
  background:
    linear-gradient(
      90deg,
      transparent,
      rgba(239, 189, 114, 0.42) 24%,
      rgba(169, 156, 247, 0.34) 50%,
      rgba(239, 189, 114, 0.42) 76%,
      transparent
    );
}

.home-v3 .section-kicker {
  color: rgba(239, 189, 114, 0.78);
}

.home-v3 .core-library,
.home-v3 .app-showcase,
.home-v3 .meditations-section,
.home-v3 .mission-section,
.home-v3 .journal-section,
.home-v3 .sleep-section,
.home-v3 .music-section,
.home-v3 .ns-section,
.home-v3 .premium-section,
.home-v3 .pricing-section,
.home-v3 .faq-section,
.home-v3 .final-cta {
  position: relative;
  z-index: 2;
  background: transparent !important;
  isolation: isolate;
}

/* Preserve the star and shooting-star canvas while replacing old teal portals. */
.home-v3 .meditations-bg,
.home-v3 .music-bg,
.home-v3 .protocol-section-bg {
  background:
    radial-gradient(
      ellipse at 50% 28%,
      rgba(169, 156, 247, 0.07),
      rgba(239, 189, 114, 0.035) 38%,
      transparent 70%
    ) !important;
}

.home-v3 .mission-section::before,
.home-v3 .journal-section::before,
.home-v3 .ns-section::before,
.home-v3 .home-story::before {
  background:
    radial-gradient(
      ellipse at 50% 36%,
      rgba(169, 156, 247, 0.065),
      rgba(239, 189, 114, 0.035) 42%,
      transparent 72%
    ) !important;
}

/* Preserve the story artwork exactly; replace only its legacy teal light. */
.home-v3 .home-story-visual::before {
  background:
    radial-gradient(
      circle,
      rgba(239, 189, 114, 0.15),
      rgba(91, 86, 195, 0.1) 48%,
      transparent 72%
    );
}

.home-v3 .home-story-halo {
  filter: drop-shadow(0 0 13px rgba(239, 189, 114, 0.16));
}

.home-v3 .home-story-halo-wave--outer {
  stroke: rgba(239, 189, 114, 0.34);
}

.home-v3 .home-story-emblem::before {
  border-color: rgba(239, 189, 114, 0.14);
}

.home-v3 .home-story-link {
  text-decoration-color: rgba(239, 189, 114, 0.5);
}

.home-v3 .home-story-link:hover,
.home-v3 .home-story-link:focus-visible {
  text-decoration-color: rgba(239, 189, 114, 0.92);
}

.home-v3 .home-story-visual.is-playing .home-story-emblem {
  animation-name: homeStoryEmblemPulseV3;
}

@keyframes homeStoryEmblemPulseV3 {
  50% {
    box-shadow:
      0 18px 36px rgba(0, 0, 0, 0.34),
      0 0 46px rgba(239, 189, 114, 0.24),
      inset 0 1px 0 rgba(255, 255, 255, 0.12);
  }
}

.home-v3 .cat-b,
.home-v3 .themes-path-card,
.home-v3 .bridge-shell,
.home-v3 .mission-shell,
.home-v3 .faq-shell,
.home-v3 .premium-card,
.home-v3 .pricing-card,
.home-v3 .home-story-card {
  border-color: rgba(239, 189, 114, 0.19) !important;
  background:
    linear-gradient(155deg, rgba(16, 21, 43, 0.8), rgba(6, 9, 24, 0.88)) !important;
  box-shadow:
    0 20px 50px rgba(0, 0, 0, 0.28),
    inset 0 1px 0 rgba(255, 255, 255, 0.055) !important;
  backdrop-filter: blur(8px);
}

/* Let Premium sit in the nebula instead of inheriting the old full-width slab. */
.home-v3 .premium-wrap {
  position: relative;
  border: 0 !important;
  background: transparent !important;
  box-shadow: none !important;
  isolation: isolate;
}

.home-v3 .premium-wrap::before {
  content: "";
  position: absolute;
  z-index: -1;
  top: 50%;
  left: 50%;
  width: min(980px, 92vw);
  height: min(410px, 78vw);
  border-radius: 50%;
  background:
    radial-gradient(
      ellipse,
      rgba(239, 189, 114, 0.085) 0%,
      rgba(169, 156, 247, 0.045) 38%,
      transparent 72%
    );
  filter: blur(10px);
  transform: translate(-50%, -50%);
  pointer-events: none;
}

.home-v3 .premium-title,
.home-v3 .premium-grid {
  position: relative;
  z-index: 1;
}

.home-v3 .premium-title h2 {
  margin-bottom: 34px;
  text-shadow: 0 3px 22px rgba(0, 0, 0, 0.58);
}

.home-v3 .premium-card {
  background:
    linear-gradient(155deg, rgba(16, 21, 43, 0.74), rgba(6, 9, 24, 0.84)) !important;
}

.home-v3 .mission-quote {
  border-left-color: rgba(239, 189, 114, 0.72) !important;
  background:
    linear-gradient(90deg, rgba(239, 189, 114, 0.1), transparent 74%) !important;
}

.home-v3 .creator-story-trigger,
.home-v3 .creator-story-player--featured .creator-story-trigger {
  border-color: rgba(239, 189, 114, 0.38);
  background: linear-gradient(145deg, rgba(239, 189, 114, 0.12), rgba(78, 65, 132, 0.12));
  box-shadow: 0 14px 34px rgba(0, 0, 0, 0.26), 0 0 20px rgba(239, 189, 114, 0.08);
}

.home-v3 .creator-story-trigger:hover,
.home-v3 .creator-story-trigger:focus-visible,
.home-v3 .creator-story-trigger[aria-pressed="true"] {
  border-color: rgba(239, 189, 114, 0.68);
  background: linear-gradient(145deg, rgba(239, 189, 114, 0.18), rgba(78, 65, 132, 0.18));
  box-shadow: 0 16px 38px rgba(0, 0, 0, 0.28), 0 0 26px rgba(239, 189, 114, 0.13);
}

.home-v3 .creator-story-icon-shell,
.home-v3 .creator-story-player--featured .creator-story-icon-shell {
  border-color: rgba(239, 189, 114, 0.5);
  background: rgba(239, 189, 114, 0.09);
  color: var(--v3-gold);
  box-shadow: 0 0 18px rgba(239, 189, 114, 0.12);
}

.home-v3 .creator-story-progress > span {
  background: linear-gradient(90deg, var(--v3-gold), var(--v3-lavender));
  box-shadow: 0 0 8px rgba(239, 189, 114, 0.42);
}

.home-v3 .creator-story-player--featured .creator-story-trigger:hover,
.home-v3 .creator-story-player--featured .creator-story-trigger:focus-visible,
.home-v3 .creator-story-player--featured .creator-story-trigger[aria-pressed="true"],
.home-v3 .creator-story-player--featured[data-playback-state="completed"] .creator-story-trigger {
  border-color: rgba(239, 189, 114, 0.68) !important;
  background: linear-gradient(145deg, rgba(239, 189, 114, 0.18), rgba(78, 65, 132, 0.18)) !important;
  box-shadow: 0 16px 38px rgba(0, 0, 0, 0.28), 0 0 26px rgba(239, 189, 114, 0.13) !important;
}

.home-v3 .creator-story-player--featured .creator-story-trigger:focus-visible {
  outline-color: rgba(239, 189, 114, 0.58);
}

.home-v3 .creator-story-player--featured .creator-story-icon-shell {
  border-color: rgba(239, 189, 114, 0.5) !important;
  background: linear-gradient(145deg, rgba(239, 189, 114, 0.16), rgba(78, 90, 190, 0.24)) !important;
  color: var(--v3-gold) !important;
  box-shadow: 0 0 22px rgba(239, 189, 114, 0.16) !important;
}

/* Gold is reserved for website actions and selected states; lavender adds depth. */
.home-v3 .themes-path-card.is-active,
.home-v3 .path-switch-btn.active,
.home-v3 .acc-item.open,
.home-v3 .pricing-card.recommended {
  border-color: rgba(239, 189, 114, 0.5) !important;
  background:
    linear-gradient(150deg, rgba(68, 48, 72, 0.88), rgba(15, 18, 45, 0.96)) !important;
  box-shadow:
    0 16px 38px rgba(0, 0, 0, 0.3),
    0 0 26px rgba(239, 189, 114, 0.1),
    inset 0 1px 0 rgba(255, 255, 255, 0.07) !important;
}

.home-v3 .path-switch-btn.active img {
  filter: drop-shadow(0 0 10px rgba(239, 189, 114, 0.28));
}

.home-v3 .acc-item:hover .acc-arrow,
.home-v3 .acc-item.open .acc-arrow {
  border-color: rgba(239, 189, 114, 0.44);
  background: rgba(239, 189, 114, 0.09);
  color: var(--v3-gold);
}

.home-v3 .sleep-card,
.home-v3 .music-card,
.home-v3 .ns-card {
  border-color: rgba(239, 189, 114, 0.14) !important;
  background:
    linear-gradient(155deg, rgba(14, 20, 42, 0.78), rgba(6, 10, 25, 0.9)) !important;
}

.home-v3 .sleep-card:hover,
.home-v3 .music-card:hover,
.home-v3 .ns-card:hover {
  border-color: rgba(239, 189, 114, 0.4) !important;
  box-shadow:
    0 16px 40px rgba(0, 0, 0, 0.34),
    0 0 24px rgba(239, 189, 114, 0.08) !important;
}

.home-v3 .music-card:hover h4,
.home-v3 .ns-card:hover h4 {
  color: var(--v3-gold);
}

.home-v3 .mission-shell,
.home-v3 .faq-shell,
.home-v3 .pricing-wrap,
.home-v3 .final-cta-wrap {
  border-color: rgba(239, 189, 114, 0.24) !important;
  background:
    linear-gradient(155deg, rgba(12, 18, 38, 0.96), rgba(5, 9, 22, 0.98)) !important;
  box-shadow:
    0 22px 54px rgba(0, 0, 0, 0.38),
    inset 0 1px 0 rgba(255, 255, 255, 0.045),
    0 0 34px rgba(239, 189, 114, 0.055) !important;
}

.home-v3 .mission-head,
.home-v3 .faq-head {
  border-bottom-color: rgba(239, 189, 114, 0.14) !important;
  background:
    radial-gradient(ellipse at 50% 0%, rgba(239, 189, 114, 0.095), transparent 66%) !important;
}

.home-v3 .mission-close {
  border-top-color: rgba(239, 189, 114, 0.14) !important;
}

.home-v3 .mission-faq-btn,
.home-v3 .sleep-cta-btn,
.home-v3 .music-cta-btn {
  border: 1px solid rgba(239, 189, 114, 0.54) !important;
  background:
    linear-gradient(145deg, rgba(239, 189, 114, 0.16), rgba(169, 156, 247, 0.13)) !important;
  color: var(--v3-paper) !important;
  box-shadow:
    0 12px 30px rgba(0, 0, 0, 0.24),
    inset 0 1px 0 rgba(255, 255, 255, 0.08) !important;
}

.home-v3 .mission-faq-btn:hover,
.home-v3 .sleep-cta-btn:hover,
.home-v3 .music-cta-btn:hover {
  border-color: rgba(255, 220, 166, 0.76) !important;
  background:
    linear-gradient(145deg, rgba(239, 189, 114, 0.25), rgba(169, 156, 247, 0.18)) !important;
  box-shadow:
    0 16px 36px rgba(0, 0, 0, 0.3),
    0 0 24px rgba(239, 189, 114, 0.12) !important;
}

.home-v3 .faq-icon::before,
.home-v3 .faq-icon::after {
  background: rgba(239, 189, 114, 0.88) !important;
}

.home-v3 .faq-item.is-open {
  background: rgba(239, 189, 114, 0.035) !important;
}

/* The outer sampler card disappears; the interactive phone becomes the object. */
.home-v3 .try-player-section {
  padding-top: 92px;
  background: transparent;
}

.home-v3 .try-player-section::before {
  background:
    radial-gradient(
      ellipse at 50% 24%,
      rgba(169, 156, 247, 0.09),
      rgba(239, 189, 114, 0.04) 34%,
      transparent 68%
    );
}

.home-v3 .try-player-surface {
  max-width: 1120px;
  overflow: visible;
  border: 0;
  border-radius: 0;
  padding: 14px 24px 50px;
  background: transparent;
  box-shadow: none;
}

.home-v3 .try-player-header {
  max-width: 860px;
}

.home-v3 .try-sample-tab {
  border-color: rgba(225, 214, 244, 0.17);
  background:
    linear-gradient(145deg, rgba(21, 25, 52, 0.8), rgba(7, 10, 26, 0.9));
}

.home-v3 .try-sample-tab.is-active {
  border-color: rgba(239, 189, 114, 0.68);
  background:
    linear-gradient(145deg, rgba(69, 49, 83, 0.86), rgba(18, 20, 51, 0.96));
  box-shadow:
    0 12px 30px rgba(0, 0, 0, 0.26),
    0 0 0 1px rgba(239, 189, 114, 0.1) inset;
}

.home-v3 .try-sample-tab.is-active .try-sample-number,
.home-v3 .try-sample-dot.is-active {
  border-color: rgba(255, 232, 193, 0.7);
  background: var(--v3-gold);
  color: #25180c;
  box-shadow: 0 0 14px rgba(239, 189, 114, 0.24);
}

/*
 * Real phone geometry at every breakpoint. These selectors intentionally have
 * more specificity than the sampler's later inline responsive rules.
 */
.home-v3 .phone-device {
  width: min(400px, calc(100vw - 48px));
  height: auto;
  min-height: 0;
  max-height: none;
  aspect-ratio: 9 / 19.4;
  overflow: visible;
  padding: 10px;
  border: 1px solid var(--v3-device-border);
  border-radius: 52px;
  background: var(--v3-device-chassis);
  box-shadow: var(--v3-device-shadow);
}

.home-v3 .phone-device::before {
  display: block;
  inset: 5px;
  border-color: rgba(255, 255, 255, 0.16);
}

.home-v3 .phone-glass {
  height: 100%;
  min-height: 0;
  border-radius: 42px;
  box-shadow:
    0 0 0 1px rgba(0, 0, 0, 0.8),
    inset 0 0 0 1px rgba(255, 255, 255, 0.04);
}

.home-v3 .phone-screen {
  border-radius: 42px;
}

.home-v3 .phone-btn-silent,
.home-v3 .phone-btn-volup,
.home-v3 .phone-btn-voldn,
.home-v3 .phone-btn-power {
  display: block;
}

.home-v3 .phone-island,
.home-v3 .phone-home-bar {
  display: block;
}

.home-v3 .phone-status {
  display: flex;
}

.home-v3 .ws-art::before {
  background:
    linear-gradient(
      180deg,
      rgba(2, 5, 16, 0.72) 0%,
      rgba(2, 5, 16, 0.28) 21%,
      transparent 48%
    );
}

.home-v3 .ws-title {
  white-space: normal;
  overflow: hidden;
  text-overflow: clip;
  overflow-wrap: anywhere;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
}

.home-v3 .try-player-cta {
  margin-top: 42px;
}

/* Carousel, Journal, and sampler now share one complete metallic chassis. */
.home-v3 .app-phone-frame,
.home-v3 .showcase-phone {
  position: relative;
  isolation: isolate;
  overflow: visible;
  border: 1px solid var(--v3-device-border) !important;
  background: var(--v3-device-chassis) !important;
  box-shadow: var(--v3-device-shadow) !important;
}

.home-v3 .showcase-phone,
.home-v3 .journal-phone {
  padding: 7px !important;
  border-radius: 38px !important;
}

.home-v3 .showcase-phone::before,
.home-v3 .journal-phone::before {
  content: "";
  position: absolute;
  z-index: 3;
  inset: 4px;
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 34px;
  box-shadow:
    inset 0 0 0 1px rgba(0, 0, 0, 0.6),
    inset 0 1px 0 rgba(255, 255, 255, 0.12);
  pointer-events: none;
}

.home-v3 .showcase-phone > picture,
.home-v3 .showcase-phone > picture > img,
.home-v3 .journal-phone > img {
  position: relative;
  z-index: 1;
  border-radius: 30px;
  background: #03050c;
  box-shadow: 0 0 0 1px rgba(0, 0, 0, 0.82);
}

/* Reuse the sampler's actual dark hardware, scaled with the smaller chassis. */
.home-v3 .app-phone-frame .phone-btn-silent,
.home-v3 .app-phone-frame .phone-btn-volup,
.home-v3 .app-phone-frame .phone-btn-voldn,
.home-v3 .app-phone-frame .phone-btn-power {
  position: absolute;
  z-index: 4;
  display: block;
  width: 3px;
  border: 0;
  border-radius: 3px;
  background: #1c1c1f;
  box-shadow: inset 0 0 2px rgba(255, 255, 255, 0.15);
  pointer-events: none;
}

.home-v3 .app-phone-frame .phone-btn-silent {
  top: 13.7%;
  left: -2px;
  height: 3.4%;
}

.home-v3 .app-phone-frame .phone-btn-volup {
  top: 19.5%;
  left: -2px;
  height: 6%;
}

.home-v3 .app-phone-frame .phone-btn-voldn {
  top: 26.7%;
  left: -2px;
  height: 6%;
}

.home-v3 .app-phone-frame .phone-btn-power {
  top: 22%;
  right: -2px;
  height: 9%;
}

@media (max-width: 768px) {
  .v3-page-ambient {
    background:
      linear-gradient(
        180deg,
        rgba(4, 8, 18, 0.22) 0%,
        rgba(5, 9, 20, 0.42) 54%,
        rgba(5, 9, 20, 0.62) 100%
      ),
      radial-gradient(
        ellipse at 50% 16%,
        rgba(239, 189, 114, 0.08),
        transparent 48%
      ),
      url("/assets/website/v2/frames/nebula-hero-mobile/frame-0121.webp")
      center center / cover no-repeat;
  }
}

.home-v3 .showcase-btn {
  border-color: rgba(239, 189, 114, 0.24) !important;
  background: rgba(7, 11, 26, 0.66) !important;
}

.home-v3 .showcase-btn:hover,
.home-v3 .showcase-btn:focus-visible {
  border-color: rgba(239, 189, 114, 0.6) !important;
}

.home-v3 .showcase-dot.active {
  background: var(--v3-gold) !important;
  box-shadow: 0 0 12px rgba(239, 189, 114, 0.34) !important;
}

/* The final page arrival is solid and legible above the fixed nebula overlay. */
.home-v3 .site-footer {
  position: relative;
  z-index: 3;
  isolation: isolate;
  padding: 30px 20px 48px;
  background:
    linear-gradient(
      180deg,
      rgba(5, 9, 20, 0) 0%,
      rgba(5, 9, 20, 0.88) 14%,
      #050914 42%,
      #050914 100%
    ) !important;
}

.home-v3 .newsletter-bar {
  border: 1px solid rgba(239, 189, 114, 0.34) !important;
  background:
    linear-gradient(150deg, rgba(15, 21, 43, 0.98), rgba(7, 11, 27, 0.985)) !important;
  box-shadow:
    0 20px 48px rgba(0, 0, 0, 0.34),
    0 0 30px rgba(239, 189, 114, 0.07),
    inset 0 1px 0 rgba(255, 255, 255, 0.055) !important;
  padding: 30px 22px !important;
  backdrop-filter: blur(14px);
}

.home-v3 .newsletter-bar::before {
  opacity: 0.72 !important;
  background:
    linear-gradient(
      120deg,
      rgba(255, 225, 180, 0.72),
      rgba(239, 189, 114, 0.5),
      rgba(169, 156, 247, 0.48)
    ) !important;
}

.home-v3 .newsletter-bar h3,
.home-v3 .footer-col h4 {
  color: var(--v3-paper) !important;
}

.home-v3 .newsletter-bar p {
  color: rgba(235, 239, 244, 0.72) !important;
}

.home-v3 .newsletter-form input {
  border-color: rgba(239, 189, 114, 0.2) !important;
  background: rgba(3, 7, 18, 0.9) !important;
  color: var(--v3-paper) !important;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.035);
}

.home-v3 .newsletter-form input::placeholder {
  color: rgba(235, 239, 244, 0.42);
}

.home-v3 .newsletter-form input:focus {
  outline: 2px solid rgba(239, 189, 114, 0.38);
  outline-offset: 2px;
  border-color: rgba(239, 189, 114, 0.55) !important;
}

.home-v3 .newsletter-form button {
  border: 1px solid rgba(255, 226, 181, 0.7) !important;
  background:
    linear-gradient(135deg, #f1ca8b 0%, #d99e50 56%, #a86f37 100%) !important;
  color: #1a1108 !important;
  box-shadow:
    0 12px 30px rgba(147, 89, 35, 0.28),
    inset 0 1px 0 rgba(255, 255, 255, 0.45);
}

.home-v3 .newsletter-form button:hover {
  transform: translateY(-1px);
  box-shadow:
    0 16px 36px rgba(147, 89, 35, 0.36),
    0 0 24px rgba(239, 189, 114, 0.1),
    inset 0 1px 0 rgba(255, 255, 255, 0.48);
}

.home-v3 .footer-card {
  border: 1px solid rgba(239, 189, 114, 0.16) !important;
  background:
    linear-gradient(160deg, rgba(8, 14, 30, 0.985), rgba(4, 8, 19, 0.99)) !important;
  box-shadow:
    0 22px 52px rgba(0, 0, 0, 0.34),
    inset 0 1px 0 rgba(255, 255, 255, 0.04) !important;
}

.home-v3 .footer-logo img {
  filter:
    drop-shadow(0 0 18px rgba(239, 189, 114, 0.14))
    drop-shadow(0 12px 24px rgba(0, 0, 0, 0.24)) !important;
}

.home-v3 .footer-links a,
.home-v3 .footer-meta,
.home-v3 .footer-meta a[style] {
  color: rgba(235, 239, 244, 0.68) !important;
}

.home-v3 .footer-links a:hover,
.home-v3 .footer-meta a:hover {
  color: var(--v3-gold) !important;
}

.home-v3 .footer-copy {
  color: rgba(235, 239, 244, 0.48) !important;
  border-top-color: rgba(239, 189, 114, 0.32) !important;
}

@media (max-width: 768px) {
  .v3-cinematic-hero {
    min-height: 100svh;
    padding:
      max(104px, calc(env(safe-area-inset-top) + 86px))
      18px
      max(102px, calc(env(safe-area-inset-bottom) + 84px));
  }

  .v3-hero-video,
  .v3-hero-start-frame,
  .v3-hero-final-frame {
    object-position: 50% center;
  }

  .v3-hero-logo {
    width: clamp(104px, 31vw, 138px);
    height: clamp(104px, 31vw, 138px);
    margin-bottom: 8px;
  }

  .v3-brand-title {
    font-size: clamp(44px, 14vw, 62px);
    line-height: 1.04;
  }

  .home-v3 .v3-hero-content .hero-lead {
    margin-top: 18px;
  }

  .home-v3 .v3-hero-content .hero-lead h2 {
    font-size: clamp(22px, 6.6vw, 29px) !important;
  }

  .home-v3 .v3-hero-content .hero-lead p {
    max-width: 36rem !important;
    font-size: 14px !important;
    line-height: 1.58 !important;
  }

  .home-v3 .v3-hero-content .hero-actions {
    width: 100%;
    gap: 10px;
    margin-top: 23px !important;
  }

  .home-v3 .v3-hero-content .cta-button {
    width: min(100%, 340px);
    min-width: 0;
    padding: 14px 24px;
  }

  .home-v3 .hero-actions .store-badges {
    display: none;
  }

  .v3-video-toggle {
    right: max(16px, env(safe-area-inset-right));
    bottom: max(18px, env(safe-area-inset-bottom));
  }

  .v3-scroll-cue {
    bottom: max(20px, env(safe-area-inset-bottom));
  }

  .home-v3 .try-player-section {
    padding-top: 66px;
  }

  .home-v3 .try-player-surface {
    width: 100%;
    max-width: 440px;
    overflow: visible;
    border: 0;
    border-radius: 0;
    padding: 18px 0 42px;
    background: transparent;
    box-shadow: none;
  }

  .home-v3 .phone-device {
    width: min(366px, calc(100vw - 32px));
    height: auto;
    min-height: 0;
    max-height: none;
    aspect-ratio: 9 / 19.4;
    padding: 8px;
    border-radius: 47px;
  }

  .home-v3 .phone-device::before {
    display: block;
    inset: 4px;
    border-radius: 44px;
  }

  .home-v3 .phone-glass,
  .home-v3 .phone-screen {
    height: 100%;
    min-height: 0;
    border-radius: 39px;
  }

  .home-v3 .phone-btn-silent,
  .home-v3 .phone-btn-volup,
  .home-v3 .phone-btn-voldn,
  .home-v3 .phone-btn-power,
  .home-v3 .phone-island,
  .home-v3 .phone-home-bar {
    display: block;
  }

  .home-v3 .phone-status {
    display: flex;
  }

  .home-v3 .ws-player {
    padding-top: 54px;
    padding-bottom: 24px;
  }

  .home-v3 .ws-art {
    position: absolute !important;
    inset: 0 -14px auto !important;
    width: auto;
    height: 54%;
    min-height: 0;
    max-height: none;
    flex: none;
    margin: 0;
    border-radius: 0;
  }

  .home-v3 .ws-art img {
    object-position: center top;
  }

  .home-v3 .ws-art::after {
    inset: 38% 0 -1px;
    background:
      linear-gradient(
        180deg,
        rgba(7, 11, 52, 0) 0%,
        rgba(7, 11, 52, 0.38) 28%,
        #070b34 86%
      );
  }

  .home-v3 .ws-hero-space {
    display: block;
    height: 300px;
    flex: 0 0 300px;
  }

  .home-v3 .showcase-phone,
  .home-v3 .journal-phone {
    border-radius: 38px !important;
  }

  .home-v3 .showcase-phone > picture,
  .home-v3 .showcase-phone > picture > img,
  .home-v3 .journal-phone > img {
    border-radius: 30px;
  }
}

@media (max-width: 360px) {
  .home-v3 .phone-device {
    width: min(330px, calc(100vw - 24px));
    border-radius: 43px;
  }

  .home-v3 .phone-device::before {
    border-radius: 40px;
  }

  .home-v3 .phone-glass,
  .home-v3 .phone-screen {
    border-radius: 35px;
  }

  .home-v3 .ws-player {
    padding-left: 12px;
    padding-right: 12px;
  }

  .home-v3 .ws-art {
    inset: 0 -12px auto !important;
  }

  .home-v3 .ws-hero-space {
    height: 270px;
    flex-basis: 270px;
  }
}

@media (max-width: 950px) and (max-height: 600px) and (orientation: landscape) {
  .home-v3 .phone-device {
    width: min(310px, calc(100vw - 40px));
    height: auto;
    max-height: none;
    aspect-ratio: 9 / 19.4;
  }

  .home-v3 .ws-art {
    position: relative !important;
    inset: auto !important;
    width: 100%;
    height: auto;
    min-height: 76px;
    max-height: 100px;
    flex: 1 1 86px;
    margin: 4px 0 6px;
    border-radius: 17px;
  }

  .home-v3 .ws-hero-space {
    display: none;
  }
}

@media (prefers-reduced-motion: reduce) {
  .v3-hero-content {
    animation: none;
  }

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

  .v3-hero-final-frame {
    transition: none;
  }
}
