/* The STORM OS reference glow, shared by every product visual. */
body:is(.home-page, .product-page) .storm-glow-frame {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, .08);
  border-radius: 24px;
  background: #1c1c1c;
  box-shadow: 0 28px 72px -32px rgba(0, 0, 0, .5);
}
body:is(.home-page, .product-page) .storm-glow-frame::before {
  position: absolute;
  z-index: 0;
  top: 15%;
  left: -20%;
  width: 110%;
  height: 90%;
  content: "";
  pointer-events: none;
  border-radius: 50%;
  background: conic-gradient(from -35deg, #00e3db, #3145ff, #f04bdf, #00e3db);
  filter: blur(24px) saturate(1.2);
  opacity: .88;
}
body:is(.home-page, .product-page) .storm-glow-surface {
  z-index: 1;
  border: 1px solid rgba(255, 255, 255, .16);
  border-radius: 17px;
  background: rgba(24, 24, 28, .88);
  box-shadow: 0 24px 64px -24px rgba(0, 0, 0, .6);
}

/* Homepage screenshots use the same upright inset as the OS spec sheet. */
body.home-page .story-visual.storm-glow-frame {
  display: grid;
  align-content: center;
  min-height: 510px;
  padding: 32px;
}
body.home-page .story-visual .storm-glow-surface {
  position: relative;
  inset: auto;
  width: 100%;
  transform: none;
}
body.home-page .story-visual .storm-glow-surface img {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: auto;
  object-fit: contain;
}
body.home-page :is(.board-shell, .spec-sheet).storm-glow-surface { inset: 24px; }
body.home-page .software-visual.storm-glow-frame { min-width: 0; padding: 24px; }
body.home-page .software-visual:has(.is-expanded) {
  z-index: 10000;
  isolation: auto;
  overflow: visible;
  filter: none;
  transform: none;
  backdrop-filter: none;
  box-shadow: none;
}
body.home-page .system-overview-window.storm-glow-frame { padding: 32px; }
body.home-page .system-overview-window .storm-glow-surface {
  display: block;
  max-height: none;
  height: auto;
  object-fit: contain;
}
body.home-page .product-art.storm-glow-frame {
  display: grid;
  padding: 18px;
  border: 0;
  border-radius: 0;
  place-content: stretch;
  justify-items: stretch;
}
body.home-page .product-art.storm-glow-frame::after { content: none; }
body.home-page .product-art-face {
  position: relative;
  display: grid;
  min-width: 0;
  overflow: hidden;
  align-content: center;
  justify-items: center;
  gap: 8px;
  border-radius: 12px;
}
body.home-page .product-art-face img { filter: none; mix-blend-mode: normal; }
body.home-page .product-art-face b { max-width: 100%; margin: 0; font-size: clamp(22px, 2.3vw, 38px); text-align: center; }

/* Product routes inherit typography, navigation and controls from site-theme.css. */
html:has(body.product-page :focus-visible) { scroll-behavior: auto; }
body.product-page [data-product-buy] { scroll-margin-block: calc(var(--header) + 24px); }
body.product-page .product-hero {
  min-height: calc(100svh - var(--header));
  grid-template-columns: .88fr 1.12fr;
  gap: clamp(32px, 4.5vw, 72px);
  padding-block: 64px;
}
body.product-page .product-hero-copy { min-width: 0; max-width: 520px; padding-left: 0; }
body.product-page .product-breadcrumb {
  display: flex;
  width: fit-content;
  min-height: 44px;
  align-items: center;
  gap: 10px;
  margin-bottom: 20px;
  color: var(--muted);
  font-size: 12px;
  transition: color .2s ease, transform .2s ease;
}
body.product-page .product-breadcrumb:hover { color: var(--white); transform: translateX(-2px); }
body.product-page .product-hero-copy > .micro-label { display: block; margin-bottom: 18px; }
body.product-page .product-hero h1 { font-size: clamp(44px, 4.8vw, 72px); font-weight: 560; line-height: .94; letter-spacing: -.06em; }
body.product-page .product-hero p { margin: 24px 0 20px; color: var(--muted); font-size: 16px; line-height: 1.6; }
body.product-page .product-hero .product-tagline { margin-block: 22px 0; color: #bebfbb; font-size: clamp(24px, 2vw, 28px); font-weight: 560; letter-spacing: -.03em; line-height: 1.18; }
body.product-page .product-start-price { display: flex; align-items: baseline; gap: 10px; margin-bottom: 28px; }
body.product-page .product-start-price strong { font-size: 24px; font-weight: 650; letter-spacing: -.03em; }
body.product-page .product-start-price > span { color: var(--muted); font-size: 13px; }
body.product-page .hero-actions { flex-wrap: wrap; gap: 24px; }
body.product-page .hero-actions .underlink { min-height: 44px; }
body.product-page .product-hero-art.storm-glow-frame {
  display: grid;
  min-width: 0;
  min-height: 480px;
  align-content: center;
  padding: 32px;
}
body.product-page .product-interface-shell.storm-glow-surface {
  position: relative;
  inset: auto;
  width: 100%;
}
body.product-page .product-interface-shell img { display: block; height: auto; aspect-ratio: 1.6; object-fit: contain; }
body.product-page .product-os-sheet {
  position: relative;
  inset: auto;
  width: 100%;
  padding: 28px;
  backdrop-filter: blur(18px);
}
body.product-page .product-os-sheet .spec-title { margin-bottom: 16px; }
body.product-page .product-os-sheet dl > div { gap: 20px; padding-block: 16px; }
body.product-page .product-os-sheet dt { color: var(--muted); }
body.product-page .product-os-sheet :is(dt, dd) { font-size: 14px; line-height: 1.5; }
body.product-page .product-os-sheet dd { text-align: right; }
body.product-page .product-os-sheet .spec-price { margin-top: 24px; }

body.product-page .product-detail { padding-block: 80px 112px; border-top-color: var(--line-soft); }
body.product-page .product-detail-grid { grid-template-columns: 1fr 1fr; gap: 64px; align-items: start; }
body.product-page .product-detail-grid > * { min-width: 0; }
body.product-page :is(.product-detail, .product-gallery) h2 { margin-block: 16px 28px; font-size: clamp(34px, 3.2vw, 46px); font-weight: 560; letter-spacing: -.05em; line-height: 1.05; }
body.product-page .product-detail li { padding-block: 18px; color: #c6c7c2; font-size: 16px; line-height: 1.5; }
body.product-page[data-product="storm-os"] .product-detail li { position: relative; padding-left: 25px; }
body.product-page[data-product="storm-os"] .product-detail li::before { position: absolute; left: 0; top: 18px; margin: 0; }
body.product-page .product-pricing-frame { padding: 24px; }
body.product-page .product-download { position: relative; width: 100%; padding: 28px; }
body.product-page .product-download > .micro-label { display: block; margin-bottom: 24px; }
body.product-page .pricing-options { gap: 10px; margin-block: 0 24px; }
body.product-page .pricing-option { min-width: 0; min-height: 156px; padding: 20px 14px; border-color: var(--line); background: rgba(255, 255, 255, .035); }
body.product-page .pricing-option > strong { margin-block: 24px 10px; font-size: 28px; font-weight: 560; }
body.product-page .product-download .storm-button { width: 100%; margin-top: 0; }
body.product-page .product-download > .single-price { margin-block: 0 32px; font-size: 32px; letter-spacing: -.04em; line-height: 1.3; }
body.product-page .product-gallery { margin-top: 0; padding-bottom: 112px; }
body.product-page .product-gallery-action { min-height: 44px; margin-top: 24px; }
body.product-page .product-gallery-copy { max-width: 760px; margin: 0 0 28px; color: var(--muted); font-size: 16px; line-height: 1.6; }
body.product-page .gallery-grid { gap: 24px; }
body.product-page .gallery-shot { padding: 24px; }
body.product-page .gallery-shot img { position: relative; display: block; width: 100%; height: auto; }
body.product-page .product-gallery-single .gallery-shot { max-width: 1000px; margin-inline: auto; padding: 32px; }
body.product-page[data-product="storm-os"] .product-gallery-single .gallery-shot { width: 100%; }

@media (max-width: 1100px) {
  body.product-page .product-hero-art.storm-glow-frame { min-height: 430px; padding: 24px; }
  body.product-page .product-os-sheet { padding: 24px; }
  body.product-page .product-detail-grid { gap: 32px; }
  body.product-page .pricing-options { grid-template-columns: 1fr; }
  body.product-page .pricing-option { display: grid; grid-template-columns: 1fr auto; min-height: 84px; align-items: center; gap: 6px 16px; padding: 16px; }
  body.product-page .pricing-option > strong { grid-column: 2; grid-row: 1 / 3; margin: 0; }
  body.product-page .pricing-option > small { grid-column: 1; }
}
@media (max-width: 860px) {
  body.home-page .software-visual { order: 2; }
  body.home-page .story-visual.storm-glow-frame { min-height: 0; }
  body.product-page .product-hero { min-height: 0; grid-template-columns: 1fr; gap: 40px; padding-block: 40px 72px; }
  body.product-page .product-hero-copy { max-width: 650px; }
  body.product-page .product-hero-art.storm-glow-frame { min-height: 0; padding: 32px; }
  body.product-page .product-detail-grid { grid-template-columns: 1fr; gap: 40px; }
  body.product-page .gallery-grid { grid-template-columns: 1fr; }
  body.product-page .product-os-sheet { padding: 32px; }
}
@media (max-width: 600px) {
  body:is(.home-page, .product-page) .storm-glow-frame { border-radius: 20px; }
  body.home-page :is(.story-visual.storm-glow-frame, .software-visual.storm-glow-frame, .system-overview-window.storm-glow-frame) { padding: 16px; }
  body.home-page :is(.board-shell, .spec-sheet).storm-glow-surface { inset: 16px; }
  body.product-page .product-hero { gap: 32px; padding-block: 24px 56px; }
  body.product-page .product-breadcrumb { margin-bottom: 16px; }
  body.product-page .product-hero h1 { font-size: clamp(44px, 11vw, 56px); }
  body.product-page .product-hero .product-tagline { font-size: 24px; }
  body.product-page .hero-actions { gap: 12px; }
  body.product-page .hero-actions .storm-button { width: 100%; }
  body.product-page .product-hero-art.storm-glow-frame { padding: 16px; }
  body.product-page .product-os-sheet { padding: 20px; }
  body.product-page .product-os-sheet :is(dt, dd) { font-size: 13px; }
  body.product-page .product-os-sheet dl > div { gap: 12px; padding-block: 14px; }
  body.product-page .product-detail { padding-block: 56px 72px; }
  body.product-page .product-pricing-frame { padding: 16px; }
  body.product-page .product-download { padding: 20px; }
  body.product-page .product-download > .single-price { font-size: 28px; }
  body.product-page .product-gallery { margin-top: 0; padding-bottom: 72px; }
  body.product-page .gallery-grid { gap: 20px; }
  body.product-page :is(.gallery-shot, .product-gallery-single .gallery-shot) { padding: 16px; }
}
@media (prefers-reduced-motion: reduce) {
  body.product-page .product-breadcrumb { transition: none; }
  body.product-page .product-breadcrumb:hover { transform: none; }
}
