/**
 * Premium motion & layout — body.page-premium (all marketing pages).
 * Home: cinematic hero + walkthrough. Products: dual-surface hero (hero--dual-rail). Other inner: hero--page band.
 */

.page-premium {
  --hero-ink: #0f172a;
  --hero-frost: rgba(255, 255, 255, 0.08);
}

/* —— Cinematic hero —— */
.page-premium .hero.hero--cinematic {
  position: relative;
  min-height: min(92vh, 920px);
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 0;
  background: var(--hero-ink);
  border-bottom: none;
  overflow: clip;
}

.page-premium .hero.hero--cinematic .hero__art {
  opacity: 0.35;
  z-index: 1;
}

.page-premium .hero.hero--cinematic .hero__blob--a {
  background: rgba(37, 99, 235, 0.25);
}

.page-premium .hero.hero--cinematic .hero__blob--b {
  background: rgba(14, 165, 233, 0.2);
}

.page-premium .hero__media {
  position: absolute;
  inset: 0;
  z-index: 0;
}

.page-premium .hero__video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transform: scale(1.02);
}

.page-premium .hero__media-overlay {
  position: absolute;
  inset: 0;
  z-index: 1;
  background: linear-gradient(
    105deg,
    rgba(15, 23, 42, 0.94) 0%,
    rgba(15, 23, 42, 0.78) 38%,
    rgba(15, 23, 42, 0.35) 68%,
    rgba(15, 23, 42, 0.55) 100%
  );
}

.page-premium .hero__mesh {
  position: absolute;
  inset: 0;
  z-index: 2;
  opacity: 0.4;
  background-image: radial-gradient(circle at 20% 30%, rgba(96, 165, 250, 0.15) 0%, transparent 45%),
    radial-gradient(circle at 80% 70%, rgba(129, 140, 248, 0.12) 0%, transparent 40%);
  animation: heroMeshDrift 18s ease-in-out infinite alternate;
  pointer-events: none;
}

@keyframes heroMeshDrift {
  from {
    transform: scale(1) translate(0, 0);
  }
  to {
    transform: scale(1.08) translate(-2%, 2%);
  }
}

.page-premium .hero--cinematic__inner {
  position: relative;
  z-index: 3;
  width: 100%;
  padding: 6.5rem 0 5rem;
}

.page-premium .hero--cinematic__grid {
  display: grid;
  gap: 2.75rem;
  align-items: center;
}

@media (min-width: 900px) {
  .page-premium .hero--cinematic__grid {
    grid-template-columns: 1.05fr 0.95fr;
    gap: 3.5rem;
  }
}

.page-premium .hero--cinematic .eyebrow {
  color: rgba(148, 163, 184, 0.95);
  border: 1px solid rgba(255, 255, 255, 0.12);
  padding: 0.35rem 0.75rem;
  border-radius: 999px;
  letter-spacing: 0.1em;
}

.page-premium .hero__headline {
  font-size: clamp(2.1rem, 4.2vw, 3.15rem);
  line-height: 1.12;
  font-weight: 700;
  letter-spacing: -0.035em;
  color: #fff;
  margin: 0 0 1.1rem;
  text-wrap: balance;
}

.page-premium .hero--cinematic .lead {
  color: rgba(226, 232, 240, 0.92);
  max-width: 34rem;
  font-size: 1.125rem;
  line-height: 1.65;
}

.page-premium .hero--cinematic .hero__actions {
  margin-top: 1.75rem;
  gap: 0.85rem;
  flex-wrap: wrap;
}

.page-premium .hero--cinematic .btn--primary {
  background: #fff;
  color: var(--hero-ink) !important;
  border-color: #fff;
  box-shadow: 0 4px 24px rgba(0, 0, 0, 0.2);
  position: relative;
  overflow: hidden;
}

.page-premium .hero--cinematic .btn--primary::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(105deg, transparent 40%, rgba(255, 255, 255, 0.35) 50%, transparent 60%);
  transform: translateX(-100%);
  animation: btnShine 6s ease-in-out infinite;
}

@keyframes btnShine {
  0%,
  80% {
    transform: translateX(-100%);
  }
  100% {
    transform: translateX(100%);
  }
}

.page-premium .hero--cinematic .btn--primary:hover {
  background: #f8fafc;
  transform: translateY(-2px);
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.25);
}

.page-premium .hero--cinematic .btn--secondary {
  background: var(--hero-frost);
  color: #fff !important;
  border-color: rgba(255, 255, 255, 0.35);
  backdrop-filter: blur(10px);
}

.page-premium .hero--cinematic .btn--secondary:hover {
  background: rgba(255, 255, 255, 0.14);
  border-color: rgba(255, 255, 255, 0.5);
}

.page-premium .hero__visual-stack {
  position: relative;
  will-change: transform;
}

.page-premium .hero__glass {
  border-radius: 20px;
  border: 1px solid rgba(255, 255, 255, 0.14);
  background: linear-gradient(145deg, rgba(255, 255, 255, 0.12) 0%, rgba(255, 255, 255, 0.04) 100%);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  box-shadow: 0 24px 80px rgba(0, 0, 0, 0.35), inset 0 1px 0 rgba(255, 255, 255, 0.12);
  padding: 1.1rem;
  animation: heroGlassFloat 7s ease-in-out infinite;
}

@keyframes heroGlassFloat {
  0%,
  100% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(-8px);
  }
}

.page-premium .hero__glass .mock {
  background: rgba(15, 23, 42, 0.45);
  border-color: rgba(255, 255, 255, 0.1);
  box-shadow: none;
  animation: none;
}

.page-premium .hero__glass .mock__phone {
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.12) 0%, rgba(255, 255, 255, 0.04) 100%);
  border-color: rgba(255, 255, 255, 0.12);
}

.page-premium .hero__glass .mock__browser {
  background: rgba(15, 23, 42, 0.5);
  border-color: rgba(255, 255, 255, 0.1);
}

.page-premium .hero__glass .mock__body,
.page-premium .hero__glass .muted {
  color: rgba(226, 232, 240, 0.88) !important;
}

.page-premium .hero__glass .mock__line {
  background: rgba(255, 255, 255, 0.12);
}

.page-premium .hero__abstract-img {
  display: none;
}

.page-premium .hero__scroll {
  position: absolute;
  bottom: 1.25rem;
  left: 50%;
  transform: translateX(-50%);
  z-index: 4;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.35rem;
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: rgba(226, 232, 240, 0.65);
  text-decoration: none;
  transition: color 0.2s ease;
}

.page-premium .hero__scroll:hover {
  color: #fff;
}

.page-premium .hero__scroll svg {
  animation: scrollChevron 2.2s ease-in-out infinite;
}

@keyframes scrollChevron {
  0%,
  100% {
    transform: translateY(0);
    opacity: 0.5;
  }
  50% {
    transform: translateY(6px);
    opacity: 1;
  }
}

/* —— Platform hero: dual-surface (alternate to cinematic; e.g. products.html) —— */
.page-premium .hero.hero--dual-rail {
  position: relative;
  overflow: hidden;
  min-height: min(82vh, 800px);
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 0;
  background: var(--bg);
  border-bottom: 1px solid var(--border);
}

.page-premium .hero--dual-rail__noise {
  position: absolute;
  inset: 0;
  opacity: 0.45;
  background-image: radial-gradient(circle, rgba(15, 23, 42, 0.06) 1px, transparent 1px);
  background-size: 22px 22px;
  mask-image: linear-gradient(180deg, #000 0%, transparent 85%);
  pointer-events: none;
}

.page-premium .hero--dual-rail__glow {
  position: absolute;
  inset: -35% -15% auto -15%;
  height: 75%;
  background: radial-gradient(ellipse 75% 55% at 12% 25%, rgba(37, 99, 235, 0.12), transparent 58%),
    radial-gradient(ellipse 55% 45% at 92% 12%, rgba(14, 165, 233, 0.1), transparent 52%);
  animation: dualRailGlow 18s ease-in-out infinite alternate;
  pointer-events: none;
}

@keyframes dualRailGlow {
  from {
    transform: translate(0, 0) scale(1);
  }
  to {
    transform: translate(-1.5%, 2%) scale(1.04);
  }
}

.page-premium .hero--dual-rail__inner {
  position: relative;
  z-index: 1;
  padding-top: 5.25rem;
  padding-bottom: 4.25rem;
  display: flex;
  flex-direction: column;
  gap: 2.25rem;
}

.page-premium .hero--dual-rail__intro .eyebrow {
  display: inline-block;
  margin: 0 0 0.75rem;
  padding: 0.35rem 0.75rem;
  border-radius: 999px;
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--accent);
  border: 1px solid rgba(37, 99, 235, 0.22);
  background: rgba(37, 99, 235, 0.06);
}

.page-premium .hero--dual-rail__headline {
  font-size: clamp(2rem, 4.2vw, 2.9rem);
  line-height: 1.14;
  font-weight: 700;
  letter-spacing: -0.035em;
  color: var(--text);
  margin: 0 0 1rem;
  max-width: 20ch;
  text-wrap: balance;
}

.page-premium .hero--dual-rail__sub {
  margin: 0;
  color: var(--text-muted);
  max-width: 40rem;
  font-size: 1.0625rem;
  line-height: 1.65;
}

.page-premium .hero--dual-rail__sub strong {
  color: var(--text);
  font-weight: 600;
}

.page-premium .hero--dual-rail__ctas {
  margin-top: 1.5rem;
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
}

.page-premium .hero--dual-rail__deck {
  display: grid;
  gap: 1rem;
  align-items: stretch;
}

@media (min-width: 768px) {
  .page-premium .hero--dual-rail__deck {
    grid-template-columns: 1fr auto 1fr;
    gap: 0.65rem;
    align-items: center;
  }
}

.page-premium .hero--dual-rail .dual-surface {
  display: block;
  text-decoration: none;
  color: inherit;
  padding: 1.35rem 1.4rem;
  border-radius: 16px;
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  box-shadow: var(--shadow-md);
  transition:
    transform 0.4s cubic-bezier(0.22, 1, 0.36, 1),
    box-shadow 0.4s ease,
    border-color 0.22s ease;
}

.page-premium .hero--dual-rail .dual-surface:hover {
  transform: translateY(-5px);
  box-shadow: 0 22px 55px rgba(15, 23, 42, 0.11);
}

.page-premium .hero--dual-rail .dual-surface--student {
  border-left: 4px solid var(--accent);
}

.page-premium .hero--dual-rail .dual-surface--faculty {
  border-left: 4px solid #0e7490;
}

.page-premium .dual-surface__icon {
  width: 44px;
  height: 44px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 0.85rem;
  color: var(--accent);
  background: rgba(37, 99, 235, 0.08);
  border: 1px solid rgba(37, 99, 235, 0.12);
}

.page-premium .dual-surface--faculty .dual-surface__icon {
  color: #0e7490;
  background: rgba(14, 116, 144, 0.08);
  border-color: rgba(14, 116, 144, 0.15);
}

.page-premium .dual-surface__icon svg {
  width: 24px;
  height: 24px;
}

.page-premium .dual-surface__kicker {
  display: block;
  font-size: 0.68rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--text-muted);
  margin-bottom: 0.35rem;
}

.page-premium .dual-surface__name {
  font-size: 1.15rem;
  font-weight: 700;
  letter-spacing: -0.02em;
  margin: 0 0 0.5rem;
  color: var(--text);
}

.page-premium .dual-surface__hint {
  margin: 0;
  font-size: 0.9rem;
  color: var(--text-muted);
  line-height: 1.5;
}

.page-premium .dual-surface__go {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  margin-top: 1rem;
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--accent);
}

.page-premium .dual-surface--faculty .dual-surface__go {
  color: #0e7490;
}

.page-premium .hero--dual-rail .dual-surface:hover .dual-surface__go {
  text-decoration: underline;
  text-underline-offset: 3px;
}

.page-premium .dual-surface__bridge {
  display: flex;
  flex-direction: row;
  align-items: center;
  justify-content: center;
  gap: 0.65rem;
  padding: 0.75rem 0;
  min-height: auto;
}

@media (min-width: 768px) {
  .page-premium .dual-surface__bridge {
    flex-direction: column;
    padding: 0 0.25rem;
    min-width: 5.5rem;
  }
}

.page-premium .dual-surface__bridge-line {
  flex: 1;
  height: 1px;
  max-width: 4rem;
  background: linear-gradient(90deg, transparent, var(--border), transparent);
}

@media (min-width: 768px) {
  .page-premium .dual-surface__bridge-line {
    flex: none;
    width: 1px;
    height: 2rem;
    max-width: none;
    background: linear-gradient(180deg, transparent, var(--border), transparent);
  }
}

.page-premium .dual-surface__bridge-badge {
  flex-shrink: 0;
  font-size: 0.65rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--text-muted);
  padding: 0.4rem 0.65rem;
  border-radius: 999px;
  border: 1px dashed var(--border);
  background: rgba(255, 255, 255, 0.7);
}

.page-premium .hero--dual-rail__scroll {
  position: absolute;
  bottom: 1rem;
  left: 50%;
  transform: translateX(-50%);
  z-index: 2;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.35rem;
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--text-muted);
  text-decoration: none;
  transition: color 0.2s ease;
}

.page-premium .hero--dual-rail__scroll:hover {
  color: var(--accent);
}

.page-premium .hero--dual-rail__scroll svg {
  animation: scrollChevron 2.2s ease-in-out infinite;
}

/* —— Walkthrough video band —— */
.page-premium .walkthrough {
  position: relative;
  padding: 4.5rem 0;
  background: linear-gradient(180deg, var(--bg-elevated) 0%, var(--bg) 100%);
  border-top: 1px solid var(--border);
}

.page-premium .walkthrough__grid {
  display: grid;
  gap: 2rem;
  align-items: center;
}

@media (min-width: 900px) {
  .page-premium .walkthrough__grid {
    grid-template-columns: 0.9fr 1.1fr;
    gap: 3rem;
  }
}

.page-premium .walkthrough__frame {
  position: relative;
  border-radius: 16px;
  overflow: hidden;
  border: 1px solid var(--border);
  box-shadow: var(--shadow-md);
  aspect-ratio: 16 / 9;
  background: var(--hero-ink);
}

.page-premium .walkthrough__frame video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.page-premium .walkthrough__hint {
  margin-top: 0.75rem;
  font-size: 0.85rem;
  color: var(--text-muted);
}

/* —— Section rhythm —— */
.page-premium .section {
  scroll-margin-top: 5.5rem;
}

.page-premium .pillar-card,
.page-premium .feature-card,
.page-premium .product-tile,
.page-premium .coming-soon__item {
  transition:
    transform 0.45s cubic-bezier(0.22, 1, 0.36, 1),
    box-shadow 0.45s ease,
    border-color 0.25s ease;
}

.page-premium .pillar-card:hover,
.page-premium .feature-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 20px 50px rgba(15, 23, 42, 0.1);
}

.page-premium .product-tile:hover {
  transform: translateY(-5px);
}

.page-premium .cta {
  position: relative;
  overflow: hidden;
}

.page-premium .cta::before {
  content: "";
  position: absolute;
  top: -50%;
  left: -30%;
  width: 60%;
  height: 200%;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.06), transparent);
  animation: ctaSheen 12s linear infinite;
  pointer-events: none;
}

@keyframes ctaSheen {
  0% {
    transform: rotate(12deg) translateX(-80%);
  }
  100% {
    transform: rotate(12deg) translateX(220%);
  }
}

.page-premium main .card:not(.product-tile):not(.coming-soon__item) {
  transition:
    transform 0.42s cubic-bezier(0.22, 1, 0.36, 1),
    box-shadow 0.42s ease,
    border-color 0.22s ease;
}

.page-premium main .card:not(.product-tile):not(.coming-soon__item):hover {
  transform: translateY(-4px);
  box-shadow: 0 16px 44px rgba(15, 23, 42, 0.08);
}

/* —— Inner pages: soft hero band —— */
.page-premium .hero.hero--page {
  position: relative;
  overflow: hidden;
  min-height: 60vh;
  display: flex;
  align-items: center;
  padding: 4.5rem 0 3.25rem;
  box-sizing: border-box;
  background:
    radial-gradient(ellipse 95% 70% at 100% 0%, rgba(37, 99, 235, 0.2), transparent 52%),
    radial-gradient(ellipse 80% 55% at 0% 100%, rgba(14, 165, 233, 0.16), transparent 48%),
    linear-gradient(165deg, #ffffff 0%, #f8fafc 42%, #e8eeff 100%);
  border-bottom: 1px solid var(--border);
}

.page-premium .hero.hero--page .site-container {
  position: relative;
  z-index: 2;
  width: 100%;
}

.page-premium .hero.hero--page::before {
  content: "";
  position: absolute;
  inset: -20% -10% auto -10%;
  height: 90%;
  z-index: 0;
  background: radial-gradient(ellipse 70% 55% at 18% 20%, rgba(37, 99, 235, 0.28), transparent 55%),
    radial-gradient(ellipse 55% 45% at 92% 8%, rgba(14, 165, 233, 0.24), transparent 50%),
    radial-gradient(ellipse 45% 40% at 55% 95%, rgba(99, 102, 241, 0.2), transparent 55%);
  opacity: 1;
  animation: pageHeroAura 22s ease-in-out infinite alternate;
  pointer-events: none;
}

.page-premium .hero.hero--page::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 0;
  opacity: 0.85;
  background-image: radial-gradient(circle at 1px 1px, rgba(37, 99, 235, 0.16) 1px, transparent 0);
  background-size: 26px 26px;
  mask-image: linear-gradient(180deg, #000 0%, transparent 88%);
  pointer-events: none;
}

@keyframes pageHeroAura {
  from {
    transform: translate(0, 0) scale(1);
  }
  to {
    transform: translate(-2%, 1%) scale(1.03);
  }
}

/* Inner page hero: illustration + pattern background (injected via premium.js) */
.page-premium .hero__art--page {
  position: absolute;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  overflow: hidden;
}

.page-premium .hero__art-bg--page {
  position: absolute;
  inset: 0;
  background: url("../images/hero-page-bg.svg") center / cover no-repeat;
  opacity: 1;
}

.page-premium .hero__mesh--page {
  position: absolute;
  inset: 0;
  opacity: 0.65;
  background-image: radial-gradient(circle at 20% 30%, rgba(96, 165, 250, 0.22) 0%, transparent 45%),
    radial-gradient(circle at 80% 70%, rgba(129, 140, 248, 0.18) 0%, transparent 40%);
  animation: heroMeshDrift 18s ease-in-out infinite alternate;
}

.page-premium .hero.hero--page .hero__blob--a {
  width: 280px;
  height: 280px;
  top: -80px;
  right: -40px;
  left: auto;
  background: rgba(37, 99, 235, 0.28);
}

.page-premium .hero.hero--page .hero__blob--b {
  width: 220px;
  height: 220px;
  bottom: -60px;
  left: 35%;
  background: rgba(14, 165, 233, 0.24);
}

.page-premium .hero__abstract-img--page {
  position: absolute;
  right: clamp(1rem, 5vw, 4rem);
  top: 50%;
  transform: translateY(-50%);
  width: min(42vw, 460px);
  max-height: 78%;
  height: auto;
  object-fit: contain;
  opacity: 1;
  filter: drop-shadow(0 20px 48px rgba(15, 23, 42, 0.14));
}

.page-premium .hero__art-scrim--page {
  position: absolute;
  inset: 0;
  z-index: 1;
  background: linear-gradient(
    105deg,
    rgba(255, 255, 255, 0.82) 0%,
    rgba(255, 255, 255, 0.62) 32%,
    rgba(248, 250, 252, 0.35) 58%,
    rgba(248, 250, 252, 0.08) 100%
  );
}

@media (max-width: 900px) {
  .page-premium .hero__abstract-img--page {
    width: min(52vw, 320px);
    opacity: 0.85;
    right: -4%;
  }

  .page-premium .hero__art-scrim--page {
    background: linear-gradient(
      180deg,
      rgba(255, 255, 255, 0.82) 0%,
      rgba(255, 255, 255, 0.68) 55%,
      rgba(248, 250, 252, 0.45) 100%
    );
  }
}

@media (max-width: 640px) {
  .page-premium .hero__abstract-img--page {
    display: none;
  }
}

/* —— Demo dialog —— */
.demo-dialog {
  max-width: min(960px, 96vw);
  width: 100%;
  padding: 0;
  border: none;
  border-radius: 16px;
  background: var(--bg-elevated);
  box-shadow: 0 40px 100px rgba(0, 0, 0, 0.35);
}

.demo-dialog::backdrop {
  background: rgba(15, 23, 42, 0.65);
  backdrop-filter: blur(8px);
}

.demo-dialog__inner {
  padding: 1.5rem 1.5rem 1.25rem;
  position: relative;
}

.demo-dialog__close {
  position: absolute;
  top: 0.85rem;
  right: 0.85rem;
  width: 40px;
  height: 40px;
  border: 1px solid var(--border);
  border-radius: 10px;
  background: var(--bg);
  font-size: 1.35rem;
  line-height: 1;
  cursor: pointer;
  color: var(--text);
  display: flex;
  align-items: center;
  justify-content: center;
}

.demo-dialog__close:hover {
  background: #f1f5f9;
}

.demo-dialog__frame {
  margin-top: 1rem;
  aspect-ratio: 16 / 9;
  border-radius: 12px;
  overflow: hidden;
  background: var(--hero-ink);
  border: 1px solid var(--border);
}

.demo-dialog__frame iframe {
  width: 100%;
  height: 100%;
  border: 0;
  display: block;
}

.demo-dialog__placeholder {
  height: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.75rem;
  padding: 2rem;
  text-align: center;
  color: #94a3b8;
  font-size: 0.95rem;
}

@media (prefers-reduced-motion: reduce) {
  .page-premium .hero__mesh,
  .page-premium .hero--cinematic .btn--primary::after,
  .page-premium .hero__glass,
  .page-premium .hero__scroll svg,
  .page-premium .hero--dual-rail__glow,
  .page-premium .hero--dual-rail__scroll svg,
  .page-premium .hero.hero--page::before,
  .page-premium .hero.hero--page::after,
  .page-premium .hero__mesh--page,
  .page-premium .cta::before {
    animation: none !important;
  }

  .page-premium .hero__video {
    transform: none;
  }

  .page-premium .pillar-card:hover,
  .page-premium .feature-card:hover,
  .page-premium .product-tile:hover,
  .page-premium .hero--dual-rail .dual-surface:hover,
  .page-premium main .card:not(.product-tile):not(.coming-soon__item):hover {
    transform: none;
  }
}

html.theme-dark .page-premium {
  --hero-ink: #070b10;
  --hero-frost: rgba(255, 255, 255, 0.06);
}

html.theme-dark .page-premium .hero--dual-rail__noise {
  opacity: 0.22;
  background-image: radial-gradient(circle, rgba(241, 245, 249, 0.07) 1px, transparent 1px);
}

html.theme-dark .page-premium .hero--dual-rail .dual-surface:hover {
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.4);
}

html.theme-dark .page-premium .dual-surface__bridge-badge {
  background: rgba(20, 27, 36, 0.95);
  border-color: var(--border);
  color: var(--text-muted);
}

html.theme-dark .page-premium .hero.hero--page {
  background:
    radial-gradient(ellipse 95% 70% at 100% 0%, rgba(96, 165, 250, 0.26), transparent 52%),
    radial-gradient(ellipse 80% 55% at 0% 100%, rgba(56, 189, 248, 0.2), transparent 48%),
    linear-gradient(165deg, var(--bg-elevated) 0%, var(--bg) 55%, #080b0f 100%);
}

html.theme-dark .page-premium .hero.hero--page::before {
  opacity: 1;
}

html.theme-dark .page-premium .hero.hero--page::after {
  opacity: 0.65;
  background-image: radial-gradient(circle at 1px 1px, rgba(148, 163, 184, 0.22) 1px, transparent 0);
}

html.theme-dark .page-premium .hero__art-bg--page {
  opacity: 0.9;
  filter: saturate(1.1);
}

html.theme-dark .page-premium .hero__mesh--page {
  opacity: 0.75;
}

html.theme-dark .page-premium .hero__art-scrim--page {
  background: linear-gradient(
    105deg,
    rgba(12, 16, 22, 0.82) 0%,
    rgba(12, 16, 22, 0.62) 32%,
    rgba(12, 16, 22, 0.38) 58%,
    rgba(12, 16, 22, 0.12) 100%
  );
}

html.theme-dark .page-premium .hero.hero--page .hero__blob--a {
  background: rgba(37, 99, 235, 0.38);
}

html.theme-dark .page-premium .hero.hero--page .hero__blob--b {
  background: rgba(14, 165, 233, 0.32);
}

html.theme-dark .page-premium .hero__abstract-img--page {
  opacity: 0.92;
  filter: drop-shadow(0 20px 48px rgba(0, 0, 0, 0.45));
}

html.theme-dark .page-premium .walkthrough {
  border-top-color: var(--border);
}

html.theme-dark .demo-dialog {
  box-shadow: 0 40px 100px rgba(0, 0, 0, 0.65);
}

html.theme-dark .demo-dialog::backdrop {
  background: rgba(0, 0, 0, 0.72);
}

html.theme-dark .demo-dialog__close:hover {
  background: #1a2330;
}

html.theme-dark .demo-dialog__placeholder {
  color: var(--text-muted);
}

/* Long-form legal pages */
.legal-prose .h2 {
  margin-top: 2.25rem;
  margin-bottom: 0.85rem;
}

.legal-prose .h2:first-of-type {
  margin-top: 0;
}

.legal-prose p,
.legal-prose ul {
  max-width: 52rem;
}

.legal-prose ul {
  padding-left: 1.35rem;
}
