/*
 * MM3D Slicer homepage brand layer — 2026-07-30
 * Page-scoped by body.home-page so the homepage redesign cannot affect
 * Pricing, account, workspace, support, or administration pages.
 */

body.home-page {
  --home-ink: #101820;
  --home-muted: #617080;
  --home-page: #071321;
  --home-on-dark: #f4f7fa;
  --home-muted-on-dark: rgba(232, 240, 247, 0.72);
  --home-panel: #ffffff;
  --home-line: #d5dde6;
  --home-line-strong: #b9c6d3;
  --home-blue: #087cff;
  --home-blue-bright: #1d9bff;
  --home-cobalt: #0756c7;
  --home-navy: #071426;
  --home-navy-soft: #0a1b31;
  --home-navy-deep: #030b17;
  --home-orange: #ff9d24;
  --home-orange-light: #ffb13b;
  --home-chrome: #eef3f8;
  --home-topbar-h: 72px;
  min-width: 0;
  min-height: 100vh;
  overflow-x: clip;
  background: var(--home-page);
  color: var(--home-on-dark);
  font-family: "Segoe UI", "Microsoft JhengHei", "PingFang TC", "Noto Sans TC", Arial, sans-serif;
}

body.home-page main {
  overflow-x: clip;
  overflow-y: visible;
}

/* Topbar */
body.home-page .home-nav {
  position: sticky;
  top: 0;
  z-index: 100;
  min-height: 72px;
  padding: 0 clamp(24px, 6vw, 120px);
  grid-template-columns: 1fr auto 1fr;
  gap: 32px;
  border-bottom: 1px solid rgba(200, 208, 218, 0.14);
  background: linear-gradient(120deg, #030b17, #0a2445);
  box-shadow: 0 8px 30px rgba(3, 11, 23, 0.16);
}

body.home-page .home-brand {
  gap: 8px;
  color: #fff;
  font-family: "MM3D Display Serif", "Noto Serif TC", "MM3D Chinese Serif", serif;
  font-size: 18px;
  font-weight: 900;
  font-variation-settings: "wght" 900;
  letter-spacing: 0;
}

body.home-page .home-brand span {
  color: var(--home-orange-light);
}

body.home-page .home-brand strong {
  color: #fff;
  font-size: 18px;
}

body.home-page .home-nav > nav {
  justify-self: center;
}

body.home-page .home-nav > nav > a,
body.home-page .home-nav > nav > .site-topbar-item > a,
body.home-page .home-nav-actions > a {
  min-height: 40px;
  padding: 0 12px;
  display: inline-flex;
  align-items: center;
  border-radius: 7px;
  color: rgba(255, 255, 255, 0.82);
  font-size: 18px;
  font-weight: 800;
  text-decoration: none;
}

body.home-page .home-nav > nav > a,
body.home-page .home-nav > nav > .site-topbar-item > a {
  font-size: 18px;
}

body.home-page .home-nav > nav .site-topbar-submenu-panel a {
  min-height: 36px;
  padding: 0 12px;
  font-size: 18px;
}

body.home-page .home-nav > nav > a:hover,
body.home-page .home-nav > nav > .site-topbar-item > a:hover,
body.home-page .home-nav-actions > a:hover {
  background: rgba(255, 255, 255, 0.09);
  color: #fff;
}

body.home-page .home-nav-actions > a.primary {
  border: 1px solid rgba(29, 155, 255, 0.62);
  background: linear-gradient(135deg, var(--home-blue), var(--home-cobalt));
  color: #fff;
  box-shadow: 0 8px 22px rgba(8, 124, 255, 0.2);
}

body.home-page .home-language-picker {
  position: relative;
  display: inline-flex;
  min-height: 40px;
  align-items: center;
  border: 1px solid rgba(190, 211, 236, 0.3);
  border-radius: 8px;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.11), rgba(255, 255, 255, 0.055));
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.07);
  transition: border-color 160ms ease, background-color 160ms ease, box-shadow 160ms ease;
}

body.home-page .home-language-picker .sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

body.home-page .home-language-picker::before {
  content: "文";
  position: absolute;
  left: 11px;
  color: var(--home-orange-light);
  font-family: "MM3D Chinese Serif", "Noto Serif TC", serif;
  font-size: 13px;
  font-weight: 900;
  pointer-events: none;
}

body.home-page .home-language-picker:hover {
  border-color: rgba(29, 155, 255, 0.72);
  background: linear-gradient(180deg, rgba(29, 155, 255, 0.17), rgba(255, 255, 255, 0.065));
}

body.home-page .home-language-picker:focus-within {
  border-color: var(--home-blue);
  box-shadow: 0 0 0 3px rgba(29, 155, 255, 0.22);
}

body.home-page .home-language-picker select {
  min-width: 126px;
  min-height: 38px;
  padding: 0 10px 0 33px;
  border: 0;
  outline: 0;
  background: transparent;
  color: #fff;
  font-family: "Segoe UI", Arial, sans-serif;
  font-size: 13px;
  font-weight: 700;
  cursor: pointer;
}

body.home-page .home-language-picker option {
  background: #fff;
  color: var(--home-navy);
  font-weight: 600;
}

body.home-page .home-user-menu > button {
  border-color: rgba(200, 208, 218, 0.24);
  background: rgba(255, 255, 255, 0.07);
}

body.home-page .home-user-menu > button > span {
  background: linear-gradient(145deg, var(--home-orange-light), var(--home-orange));
  color: #211405;
}

body.home-page .home-user-dropdown {
  width: 260px;
  border-color: var(--home-line);
  color: var(--home-ink);
  box-shadow: 0 24px 70px rgba(5, 20, 42, 0.16);
}

body.home-page .home-user-dropdown > span {
  color: var(--home-muted);
  font-size: 13px;
}

body.home-page .home-user-dropdown > a,
body.home-page .home-user-dropdown > button {
  color: #26394c;
  font-size: 14px;
}

body.home-page .home-user-dropdown > a:hover,
body.home-page .home-user-dropdown > button:hover {
  background: #edf5ff;
  color: var(--home-cobalt);
}

/* Hero */
body.home-page .home-hero {
  position: relative;
  isolation: isolate;
  display: grid;
  box-sizing: border-box;
  min-height: calc(100vh - var(--home-topbar-h));
  min-height: calc(100dvh - var(--home-topbar-h));
  max-height: calc(100vh - var(--home-topbar-h));
  max-height: calc(100dvh - var(--home-topbar-h));
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 24px 36px;
  align-items: stretch;
  overflow: visible;
  padding: 20px clamp(24px, 5vw, 72px) 20px;
  background: #071321;
  color: var(--home-on-dark);
}

body.home-page .home-hero::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  background:
    repeating-linear-gradient(0deg, transparent 0 47px, rgba(8, 124, 255, 0.045) 48px 49px),
    repeating-linear-gradient(90deg, transparent 0 47px, rgba(8, 124, 255, 0.035) 48px 49px),
    repeating-radial-gradient(ellipse at 91% 61%, transparent 0 58px, rgba(8, 124, 255, 0.08) 59px 60px, transparent 61px 100px);
}

body.home-page .home-hero::after {
  display: block;
  content: "";
  position: absolute;
  top: 0;
  bottom: 0;
  left: 0;
  width: min(54%, 720px);
  z-index: 0;
  pointer-events: none;
  background: radial-gradient(ellipse 78% 68% at 22% 42%, rgba(255, 157, 36, 0.2) 0%, rgba(255, 177, 59, 0.08) 46%, transparent 74%);
}

body.home-page .home-hero-copy {
  position: relative;
  z-index: 3;
  min-width: 0;
  width: 100%;
  max-width: none;
  align-self: center;
  padding: 0;
  transform: none;
}

body.home-page .home-hero-product {
  position: relative;
  max-width: none;
  margin: 0 0 14px;
  padding-bottom: 12px;
  color: #fff;
  background: none;
  -webkit-background-clip: border-box;
  background-clip: border-box;
  -webkit-text-fill-color: #fff;
  font-family: "MM3D Display Serif", "Noto Serif TC", "MM3D Chinese Serif", serif;
  font-size: clamp(32px, 2.5vw, 40px);
  font-weight: 900;
  font-variation-settings: "wght" 900;
  font-synthesis: none;
  line-height: 1.15;
  letter-spacing: 0;
  -webkit-text-stroke: 0;
  paint-order: normal;
}

body.home-page .home-hero-product::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 2px;
  width: 42px;
  height: 4px;
  border-radius: 999px;
  background: linear-gradient(90deg, var(--home-orange), var(--home-orange-light));
  box-shadow: none;
}

body.home-page .home-hero-message {
  position: relative;
  max-width: 18em;
  margin: 0 0 14px;
  padding: 0;
  color: #fff;
  background: none;
  background-clip: border-box;
  -webkit-background-clip: border-box;
  -webkit-text-fill-color: #fff;
  font-family: "MM3D Display Serif", "Noto Serif TC", "MM3D Chinese Serif", serif;
  font-size: clamp(40px, 3.4vw, 56px);
  font-weight: 700;
  font-variation-settings: "wght" 700;
  font-synthesis: none;
  line-height: 1.25;
  letter-spacing: 0;
  word-break: keep-all;
  -webkit-text-stroke: 0;
  paint-order: normal;
}

body.home-page .home-hero-message::after {
  content: none;
}

body.home-page .home-hero-message-line {
  display: block;
  color: #fff;
  -webkit-text-fill-color: #fff;
}

body.home-page .home-hero-accent {
  color: var(--home-orange-light);
  -webkit-text-fill-color: var(--home-orange-light);
}

body.home-page .home-hero-value {
  max-width: 34em;
  margin: 0 0 12px;
  color: var(--home-on-dark);
  font-size: clamp(18px, 1.35vw, 22px);
  font-weight: 600;
  line-height: 1.5;
  word-break: keep-all;
}

body.home-page .home-hero-value-em {
  color: #fff;
}

body.home-page .home-hero-lead {
  max-width: 650px;
  margin: 0;
  color: var(--home-muted-on-dark);
  font-size: clamp(16px, 1.1vw, 18px);
  font-weight: 400;
  line-height: 1.8;
  word-break: keep-all;
}

body.home-page .home-hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 16px;
}

body.home-page .home-hero .home-hero-module-btn {
  min-height: 48px;
  padding: 0 22px;
  border-radius: 8px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-family: inherit;
  font-size: 16px;
  font-weight: 950;
  letter-spacing: 0.01em;
  text-decoration: none;
  border: 1px solid rgba(255, 255, 255, 0.32);
  background: rgba(255, 255, 255, 0.08);
  color: #fff;
  box-shadow: 0 10px 25px rgba(3, 11, 23, 0.18);
}

body.home-page .home-hero .home-hero-module-btn:hover,
body.home-page .home-hero .home-hero-module-btn:focus-visible {
  border: 1px solid #f08c0c;
  background: linear-gradient(135deg, var(--home-orange-light), var(--home-orange));
  color: #241605 !important;
  box-shadow: 0 14px 30px rgba(255, 157, 36, 0.24);
}

body.home-page .home-flow-stage {
  position: relative;
  z-index: 2;
  isolation: isolate;
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  justify-self: stretch;
  align-self: start;
  width: 100%;
  height: auto;
  min-width: 0;
  min-height: 0;
  outline: none;
}

body.home-page .home-flow-stage:focus-visible {
  box-shadow: 0 0 0 3px rgba(29, 155, 255, 0.45);
  border-radius: 16px;
}

body.home-page .home-flow-stage--video {
  position: relative;
  isolation: isolate;
  align-self: center;
  justify-content: center;
}

body.home-page .home-flow-stage--video::before {
  content: "";
  position: absolute;
  z-index: 0;
  inset: 4% -6% -4% -6%;
  pointer-events: none;
  background:
    radial-gradient(ellipse 72% 62% at 50% 48%, rgba(29, 155, 255, 0.5) 0%, rgba(29, 155, 255, 0.22) 40%, transparent 74%),
    radial-gradient(ellipse 40% 32% at 58% 38%, rgba(255, 177, 59, 0.16) 0%, transparent 70%);
  filter: blur(24px);
}

body.home-page .home-flow-window {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  width: 100%;
  min-width: 0;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 14px;
  background: #0a1624;
  box-shadow:
    0 18px 48px rgba(2, 8, 18, 0.42),
    0 0 0 1px rgba(8, 124, 255, 0.06);
}

body.home-page .home-flow-window-bar {
  display: flex;
  align-items: center;
  gap: 7px;
  height: 36px;
  padding: 0 14px;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.05), rgba(255, 255, 255, 0.02));
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

body.home-page .home-flow-window-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  box-shadow: inset 0 0 0 1px rgba(0, 0, 0, 0.18);
}

body.home-page .home-flow-window-dot--close { background: #ff5f57; }
body.home-page .home-flow-window-dot--min { background: #febc2e; }
body.home-page .home-flow-window-dot--max { background: #28c840; }

body.home-page .home-flow-video {
  display: block;
  width: 100%;
  height: auto;
  max-width: 100%;
  max-height: calc(100dvh - var(--home-topbar-h) - 76px);
  aspect-ratio: 16 / 9;
  object-fit: contain;
  object-position: center;
  background: #071321;
  border: 0;
}

body.home-page .home-flow-viewport {
  position: relative;
  isolation: isolate;
  flex: 0 0 auto;
  display: block;
  width: 100%;
  height: auto;
  min-height: 0;
  padding: 0;
  overflow: visible;
  background: transparent;
}

body.home-page .home-flow-glow {
  position: absolute;
  inset: 10% 12%;
  z-index: 1;
  pointer-events: none;
  opacity: 0;
  transition: opacity 400ms ease;
  filter: blur(42px);
  background: radial-gradient(ellipse at 50% 48%, rgba(29, 155, 255, 0.55) 0%, rgba(29, 155, 255, 0.22) 34%, rgba(29, 155, 255, 0.08) 56%, rgba(29, 155, 255, 0.02) 72%, transparent 88%);
}

body.home-page .home-flow-glow[data-step="3"] {
  background:
    radial-gradient(ellipse at 48% 46%, rgba(29, 155, 255, 0.5) 0%, rgba(29, 155, 255, 0.16) 46%, transparent 84%),
    radial-gradient(ellipse at 62% 42%, rgba(255, 177, 59, 0.22) 0%, transparent 58%);
}

body.home-page .home-flow-glow[data-step="4"] {
  background:
    radial-gradient(ellipse at 58% 42%, rgba(29, 155, 255, 0.5) 0%, rgba(29, 155, 255, 0.16) 44%, transparent 84%),
    radial-gradient(ellipse at 68% 36%, rgba(255, 177, 59, 0.24) 0%, transparent 52%);
}

body.home-page .home-flow-glow.is-on {
  opacity: 1;
}

body.home-page .home-flow-slides {
  position: relative;
  z-index: 2;
  width: 100%;
  height: auto;
  aspect-ratio: 1479 / 909;
  max-height: calc(100dvh - var(--home-topbar-h) - 188px);
  min-height: 0;
  pointer-events: none;
  background: transparent;
}

body.home-page .home-flow-slide {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: contain;
  object-position: center;
  opacity: 0;
  transition: opacity 400ms ease;
  background: transparent;
  background-image: none;
  filter: none;
  mix-blend-mode: normal;
}

body.home-page .home-flow-slide[data-step="1"] { object-position: 50% 100%; }
body.home-page .home-flow-slide[data-step="2"] { object-position: 50% 100%; }
body.home-page .home-flow-slide[data-step="3"] { object-position: 50% 100%; }
body.home-page .home-flow-slide[data-step="4"] { object-position: 50% 100%; }

body.home-page .home-flow-slide.is-on {
  opacity: 1;
}

body.home-page .home-flow-caption {
  position: relative;
  z-index: 3;
  display: grid;
  flex: 0 0 auto;
  margin-top: 32px;
  padding: 0 4px;
}

body.home-page .home-flow-copy {
  grid-area: 1 / 1;
  opacity: 0;
  transition: opacity 400ms ease;
}

body.home-page .home-flow-copy.is-on {
  opacity: 1;
}

body.home-page .home-flow-num {
  margin: 0 0 6px;
  color: var(--home-blue-bright);
  font-size: 12px;
  font-weight: 850;
  letter-spacing: 0.14em;
}

body.home-page .home-flow-title {
  margin: 0 0 6px;
  color: #fff;
  font-size: 22px;
  font-weight: 850;
  line-height: 1.3;
}

body.home-page .home-flow-desc {
  margin: 0;
  max-width: 36em;
  color: var(--home-muted-on-dark);
  font-size: 15px;
  line-height: 1.65;
}

body.home-page .home-flow-progress {
  display: flex;
  align-items: center;
  flex: 0 0 auto;
  gap: 5px;
  width: 100%;
  height: 28px;
  margin: 18px 4px 0;
  padding: 0;
  list-style: none;
  overflow: visible;
}

body.home-page .home-flow-progress li {
  position: relative;
  flex: 1 1 0;
  min-width: 0;
  height: 4px;
  overflow: visible;
  color: transparent;
  font-size: 0;
  line-height: 0;
  background: rgba(232, 240, 247, 0.16);
  border-radius: 999px;
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.05);
}

body.home-page .home-flow-progress li:has(~ li.is-on) {
  background: linear-gradient(90deg, #087cff, #4db4ff);
  box-shadow: 0 0 10px rgba(29, 155, 255, 0.3);
}

body.home-page .home-flow-progress li.is-on {
  background: rgba(232, 240, 247, 0.16);
  color: transparent;
}

body.home-page .home-flow-progress li.is-on::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0;
  width: 22%;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, #087cff, #8fd4ff);
  box-shadow: 0 0 10px rgba(29, 155, 255, 0.38);
}

body.home-page .home-flow-progress li.is-on::after {
  content: "";
  position: absolute;
  top: 50%;
  left: 22%;
  z-index: 2;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  transform: translate(-50%, -50%);
  background:
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20'%3E%3Cpath fill='%23071321' d='M8 6.2v7.6L14.4 10z'/%3E%3C/svg%3E") 55% 50% / 11px 11px no-repeat,
    linear-gradient(160deg, #e7f6ff 0%, #3da9ff 70%, #1d9bff 100%);
  box-shadow:
    0 0 0 1px rgba(255, 255, 255, 0.3),
    0 0 0 3px rgba(7, 19, 33, 0.4),
    0 0 16px rgba(77, 180, 255, 0.55);
}

body.home-page .home-flow-stage:hover .home-flow-progress li.is-on::before {
  animation: home-flow-seg-fill 3s linear forwards;
}

body.home-page .home-flow-stage:hover .home-flow-progress li.is-on::after {
  animation: home-flow-head-move 3s linear forwards;
}

@keyframes home-flow-seg-fill {
  from { width: 8%; }
  to { width: 100%; }
}

@keyframes home-flow-head-move {
  from { left: 8%; }
  to { left: 100%; }
}

body.home-page .home-flow-stage.is-reduced .home-flow-glow,
body.home-page .home-flow-stage.is-reduced .home-flow-slide,
body.home-page .home-flow-stage.is-reduced .home-flow-copy {
  transition: none;
}

body.home-page .home-flow-stage.is-reduced .home-flow-progress li.is-on::before,
body.home-page .home-flow-stage.is-reduced .home-flow-progress li.is-on::after {
  animation: none;
}

@media (prefers-reduced-motion: reduce) {
  body.home-page .home-flow-stage:hover .home-flow-progress li.is-on::before,
  body.home-page .home-flow-stage:hover .home-flow-progress li.is-on::after {
    animation: none;
  }

  body.home-page .home-flow-progress li.is-on::before {
    width: 70%;
  }

  body.home-page .home-flow-progress li.is-on::after {
    left: 70%;
  }
}

/* Shared homepage section language */
body.home-page .home-section {
  width: min(1180px, calc(100% - 48px));
  padding: 96px 0;
}

body.home-page .home-section-heading {
  max-width: 760px;
}

body.home-page .home-section-heading > span {
  color: var(--home-blue);
  font-family: "MM3D Display Serif", "Noto Serif TC", "MM3D Chinese Serif", serif;
  font-size: 12px;
  font-weight: 900;
  font-variation-settings: "wght" 900;
  letter-spacing: 0.12em;
}

body.home-page .home-section-heading h2 {
  font-family: "MM3D Display Serif", "Noto Serif TC", "MM3D Chinese Serif", serif;
  font-weight: 900;
  font-variation-settings: "wght" 900;
  letter-spacing: 0;
}

body.home-page .home-section-heading h2 {
  margin: 10px 0 13px;
  color: var(--home-on-dark);
  font-size: clamp(36px, 4.3vw, 52px);
  line-height: 1.1;
  text-wrap: balance;
}

body.home-page .home-section-heading p {
  color: var(--home-muted-on-dark);
  font-size: 17px;
  line-height: 1.7;
}

/* Module overlay — page-only, temporary trigger look */
body.home-page.home-module-overlay-open {
  overflow: hidden;
}

body.home-page .home-module-overlay {
  position: fixed;
  inset: 0;
  z-index: 240;
  display: grid;
  place-items: center;
  padding: 24px 32px;
}

body.home-page .home-module-overlay[hidden] {
  display: none;
}

body.home-page .home-module-overlay-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(3, 11, 23, 0.72);
}

body.home-page .home-module-overlay-panel {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-rows: auto auto auto;
  width: min(1140px, 100%);
  height: auto;
  max-height: 100%;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 16px;
  background: rgba(10, 26, 44, 0.92);
  box-shadow: 0 28px 80px rgba(3, 11, 23, 0.45);
  opacity: 0;
  transform: translateY(10px);
}

body.home-page .home-module-overlay.is-open .home-module-overlay-panel {
  opacity: 1;
  transform: none;
  transition: opacity 220ms ease, transform 220ms ease;
}

body.home-page .home-module-overlay-close {
  position: absolute;
  top: 12px;
  right: 12px;
  z-index: 2;
  width: 40px;
  height: 40px;
  border: 1px solid rgba(10, 26, 44, 0.16);
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.72);
  color: #0a1b31;
  font-size: 26px;
  line-height: 1;
  cursor: pointer;
}

body.home-page .home-module-overlay-art {
  position: relative;
  display: grid;
  width: 100%;
  height: auto;
  min-height: 0;
  aspect-ratio: 1024 / 323;
  max-height: 220px;
  overflow: hidden;
  border-bottom: 1px solid rgba(10, 26, 44, 0.08);
  background: #bddffb;
}

body.home-page .home-module-overlay-art img {
  grid-area: 1 / 1;
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}

body.home-page .home-module-overlay-art img[hidden] {
  display: none;
}

body.home-page .home-module-overlay-copy {
  overflow: visible;
  padding: 28px 40px 16px;
}

body.home-page .home-module-overlay-panel-copy h2 {
  margin: 0 0 16px;
  color: #fff;
  font-size: clamp(36px, 4.2vw, 56px);
  font-weight: 900;
  line-height: 1.15;
}

body.home-page .home-module-overlay-panel-copy .home-module-overlay-promise {
  margin: 0 0 22px;
  color: #fff;
  font-size: clamp(22px, 2.4vw, 30px);
  font-weight: 800;
  line-height: 1.35;
}

body.home-page .home-module-overlay-panel-copy > p:not(.home-module-overlay-promise) {
  margin: 0 0 22px;
  color: var(--home-muted-on-dark);
  font-size: 16px;
  line-height: 1.75;
}

body.home-page .home-module-overlay-features {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin: 0;
  padding: 0;
  list-style: none;
}

body.home-page .home-module-overlay-features li {
  margin: 0;
  padding: 8px 14px;
  border: 1px solid rgba(29, 155, 255, 0.55);
  border-radius: 999px;
  background: linear-gradient(135deg, #087cff, #0756c7);
  color: #fff;
  font-size: 14px;
  font-weight: 700;
  line-height: 1.3;
}

body.home-page .home-module-overlay-shop {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  padding: 12px 40px 20px;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  background: rgba(3, 11, 23, 0.28);
}


/* Enterprise / OEM drawer */
body.home-page .enterprise-floating-tab {
  border-color: rgba(29, 155, 255, 0.42);
  background: linear-gradient(180deg, #0a2b55, #071426);
  color: #fff;
  box-shadow:
    inset 3px 0 0 var(--home-blue-bright),
    0 18px 42px rgba(3, 11, 23, 0.32);
}

body.home-page .enterprise-floating-tab:hover {
  background: linear-gradient(180deg, #0b3f7f, #0a1b31);
}

body.home-page .enterprise-drawer-overlay {
  background: rgba(3, 11, 23, 0.62);
}

body.home-page .enterprise-drawer {
  border-left: 1px solid rgba(29, 155, 255, 0.26);
  background:
    radial-gradient(circle at 100% 0, rgba(29, 155, 255, 0.22), transparent 35%),
    linear-gradient(145deg, #061326, #0a2b55);
  box-shadow: -24px 0 70px rgba(3, 11, 23, 0.38);
}

body.home-page .enterprise-drawer-kicker {
  color: var(--home-orange-light);
}

body.home-page .enterprise-drawer > p {
  color: rgba(255, 255, 255, 0.76);
}

body.home-page .enterprise-drawer li {
  border-color: rgba(29, 155, 255, 0.25);
  background: rgba(29, 155, 255, 0.08);
}

body.home-page .enterprise-drawer-actions a:first-child {
  background: linear-gradient(135deg, var(--home-orange-light), var(--home-orange));
  color: #241605;
}

body.home-page .enterprise-drawer-actions a:last-child {
  border-color: rgba(29, 155, 255, 0.42);
}

/* Footer */
body.home-page .home-footer {
  padding: 48px max(24px, calc((100vw - 1180px) / 2)) 22px;
  border-top: 1px solid rgba(29, 155, 255, 0.15);
  background: linear-gradient(145deg, var(--home-navy-deep), var(--home-navy-soft));
  color: #fff;
}

body.home-page .home-footer > div:first-child p {
  color: rgba(255, 255, 255, 0.65);
  font-size: 16px;
}

body.home-page .home-footer > nav {
  border-top-color: rgba(200, 208, 218, 0.16);
}

body.home-page .home-footer h3 {
  color: #fff;
  font-size: 15px;
}

body.home-page .home-footer nav a {
  color: rgba(255, 255, 255, 0.68);
  font-size: 15px;
}

body.home-page .home-footer nav a:hover {
  color: var(--home-blue-bright);
}

body.home-page .home-footer-bottom {
  border-top-color: rgba(200, 208, 218, 0.12);
  color: rgba(255, 255, 255, 0.48);
  font-size: 13px;
}

/* Keyboard focus and motion */
body.home-page a:focus-visible,
body.home-page button:focus-visible,
body.home-page summary:focus-visible {
  outline: 3px solid var(--home-blue-bright);
  outline-offset: 3px;
}

body.home-page .home-primary-cta:focus-visible,
body.home-page .enterprise-drawer-actions a:first-child:focus-visible {
  outline-color: var(--home-orange-light);
}

@media (min-width: 1680px) {
  /* I1: do not grow homepage topbar here; L2 site-topbar stays fixed. */

  body.home-page .home-hero {
    padding: 20px 6vw 20px;
    gap: 24px 40px;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  }

  body.home-page .home-hero-copy {
    max-width: none;
  }

  body.home-page .home-flow-stage {
    width: 100%;
  }

  body.home-page .home-hero-product {
    font-size: 40px;
  }

  body.home-page .home-hero-message {
    font-size: 56px;
  }

  body.home-page .home-hero-value {
    font-size: 22px;
  }

  body.home-page .home-hero-lead {
    max-width: 650px;
    font-size: 18px;
  }
}

@media (max-width: 1180px) {
  body.home-page .home-hero {
    grid-template-columns: 1fr;
    min-height: 0;
    max-height: none;
    padding: 36px clamp(24px, 6vw, 72px) 48px;
  }

  body.home-page .home-flow-stage {
    height: auto;
    align-self: stretch;
  }

  body.home-page .home-flow-viewport {
    flex: 0 0 auto;
    min-height: 0;
    padding: 0;
    max-height: none;
  }

  body.home-page .home-hero-copy {
    width: min(700px, 100%);
    max-width: 700px;
    transform: none;
  }

  body.home-page .home-hero-lead {
    max-width: 650px;
  }

  body.home-page .home-flow-slides {
    height: auto;
    aspect-ratio: 1479 / 909;
    max-height: 360px;
  }

  body.home-page .home-flow-video {
    max-height: min(56vw, 420px);
  }
}

@media (max-width: 1050px) {
  body.home-page .home-nav,
  body.home-page .site-topbar.home-nav {
    grid-template-columns: 1fr auto;
  }

  body.home-page .home-nav > nav {
    display: none;
  }
}

@media (max-width: 700px) {
  body.home-page .home-nav {
    min-height: 66px;
    padding: 0 16px;
  }

  body.home-page .home-brand,
  body.home-page .home-brand strong {
    font-size: 17px;
  }

  body.home-page #homeLoginLink {
    display: none;
  }

  body.home-page .home-nav-actions > a.primary {
    padding: 0 11px;
    font-size: 13px;
  }

  body.home-page .home-language-picker select {
    min-width: 102px;
    padding-right: 7px;
    padding-left: 30px;
    font-size: 12px;
  }

  body.home-page .home-language-picker::before {
    left: 9px;
    font-size: 12px;
  }

  body.home-page .home-user-menu > button > strong {
    display: none;
  }

  body.home-page .home-user-menu > button {
    padding-right: 5px;
  }

  body.home-page .home-hero {
    padding: 40px 20px 48px;
  }

  body.home-page .home-hero-copy {
    transform: none;
  }

  body.home-page .home-hero-product {
    margin-bottom: 12px;
    font-size: clamp(28px, 8vw, 36px);
  }

  body.home-page .home-hero-message {
    margin-bottom: 12px;
    font-size: clamp(32px, 9vw, 42px);
  }

  body.home-page .home-hero-value {
    font-size: 18px;
  }

  body.home-page .home-hero-lead {
    font-size: 16px;
    line-height: 1.75;
  }

  body.home-page .home-hero-actions {
    display: grid;
    grid-template-columns: 1fr 1fr;
  }

  body.home-page .home-flow-viewport {
    min-height: 0;
    padding: 8px 0 0;
  }

  body.home-page .home-flow-slides {
    height: auto;
    aspect-ratio: 1479 / 909;
    max-height: 260px;
  }

  body.home-page .home-flow-window-bar {
    height: 30px;
    padding: 0 12px;
  }

  body.home-page .home-flow-video {
    max-height: min(62vw, 320px);
  }

  body.home-page .home-flow-title {
    font-size: 19px;
  }

  body.home-page .home-section {
    width: 100%;
    padding: 72px 20px;
  }

  body.home-page .home-section-heading h2 {
    font-size: clamp(30px, 9vw, 40px);
  }

  body.home-page .home-module-overlay {
    padding: 16px;
  }

  body.home-page .home-module-overlay-copy,
  body.home-page .home-module-overlay-shop {
    padding-right: 20px;
    padding-left: 20px;
  }

  body.home-page .home-footer {
    padding: 42px 20px 20px;
  }

  body.home-page .home-footer > nav {
    grid-template-columns: 1fr 1fr;
    gap: 28px 18px;
  }

  body.home-page .home-footer-bottom {
    align-items: flex-start;
    flex-direction: column;
    gap: 8px;
  }

  body.home-page .enterprise-floating-tab {
    border-color: rgba(29, 155, 255, 0.42);
  }

  body.home-page .enterprise-drawer {
    border-top: 1px solid rgba(29, 155, 255, 0.28);
    border-left: 0;
  }
}

@media (max-width: 560px) {
  body.home-page .home-nav,
  body.home-page .site-topbar.home-nav {
    grid-template-columns: auto 1fr;
    gap: 6px;
  }

  body.home-page .home-brand {
    white-space: nowrap;
  }

  body.home-page .home-nav-actions {
    gap: 4px;
  }

  body.home-page .home-language-picker {
    position: absolute;
    top: 13px;
    right: 12px;
  }

  body.home-page .home-language-picker select {
    min-width: 94px;
    width: 94px;
  }

  body.home-page .home-nav-actions > a.primary {
    padding-right: 8px;
    padding-left: 8px;
    white-space: nowrap;
  }

  body.home-page #homeRegisterLink {
    display: none;
  }
}

@media (max-width: 420px) {

  body.home-page .home-hero {
    padding-right: 16px;
    padding-left: 16px;
  }

  body.home-page .home-hero-product {
    font-size: clamp(26px, 8vw, 32px);
  }

  body.home-page .home-hero-message {
    font-size: clamp(28px, 9vw, 36px);
  }

  body.home-page .home-hero-actions {
    grid-template-columns: 1fr;
  }

  body.home-page .home-footer > nav {
    grid-template-columns: 1fr;
  }
}

@keyframes home-enter-fade {
  from { opacity: 0; }
  to { opacity: 1; }
}

html.home-cover-enter body.home-page .site-topbar,
html.home-cover-enter body.home-page .home-hero h1,
html.home-cover-enter body.home-page .home-hero-copy > p,
html.home-cover-enter body.home-page .home-hero-actions,
html.home-cover-enter body.home-page .home-flow-stage,
html.home-cover-enter body.home-page main > :not(.home-hero),
html.home-cover-enter body.home-page .site-footer,
html.home-cover-enter body.home-page .home-enterprise-drawer {
  opacity: 0;
}

html.home-cover-enter.home-cover-enter-play body.home-page .site-topbar,
html.home-cover-enter.home-cover-enter-play body.home-page .home-hero h1,
html.home-cover-enter.home-cover-enter-play body.home-page .home-hero-copy > p,
html.home-cover-enter.home-cover-enter-play body.home-page .home-hero-actions,
html.home-cover-enter.home-cover-enter-play body.home-page .home-flow-stage,
html.home-cover-enter.home-cover-enter-play body.home-page main > :not(.home-hero),
html.home-cover-enter.home-cover-enter-play body.home-page .site-footer,
html.home-cover-enter.home-cover-enter-play body.home-page .home-enterprise-drawer {
  animation: home-enter-fade 0.8s ease both;
}

@media (prefers-reduced-motion: reduce) {
  body.home-page *,
  body.home-page *::before,
  body.home-page *::after {
    scroll-behavior: auto !important;
    transition-duration: 0.01ms !important;
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
  }
}
