/* Hallmark · genre: modern-minimal · macrostructure: Workbench · theme: Coral · enrichment: live UI preview · nav: existing shared header · footer: existing shared index */
/* Hallmark · pre-emit critique: P4 H4 E4 S4 R4 V4 */
html, body { overflow-x: clip; }

html[data-theme="dark"] body[data-page="home"] .home-welcome-search button {
  color: #fff;
  background: linear-gradient(110deg,#4b68b6,#7764bc);
  border-color: #7181c5;
}
html[data-theme="dark"] body[data-page="home"] .home-welcome-search button:hover {
  background: linear-gradient(110deg,#5c79c6,#8b79cf);
}
html[data-theme] body[data-page="home"] .site-footer :is(.footer-observatory-head p,.footer-observatory-total output,.footer-observatory-today dd) { color: #596bb6; }
html[data-theme] body[data-page="home"] .site-footer .footer-observatory-trend li i { background: linear-gradient(180deg,#91c4e3,#756dc1); }
html[data-theme] body[data-page="home"] .site-footer :is(.footer-brand-meta dd i,.footer-observatory-trend-head small i) { background: #6f83c2; }
html[data-theme="dark"] body[data-page="home"] .site-footer :is(.footer-observatory-head p,.footer-observatory-total output,.footer-observatory-today dd) { color: #b6c6ff; }

body[data-page="home"] .home-welcome,
body[data-page="home"] .home-showcase {
  font-family: var(--font-body);
}

body[data-page="home"] .home-welcome {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  color: var(--color-ink);
  background: var(--color-stage);
}

body[data-page="home"] .home-welcome::before {
  content: "";
  position: absolute;
  z-index: -1;
  bottom: 4%;
  left: 50%;
  width: min(1320px, 112vw);
  height: min(760px, 74vw);
  transform: translateX(-50%);
  border-radius: 50%;
  background:
    radial-gradient(ellipse at 31% 55%, rgb(115 205 241 / 0.32), transparent 42%),
    radial-gradient(ellipse at 67% 55%, rgb(155 146 232 / 0.31), transparent 42%),
    radial-gradient(ellipse at 49% 31%, rgb(251 201 164 / 0.16), transparent 38%);
  filter: blur(26px);
  pointer-events: none;
}

body[data-page="home"] .home-welcome::after {
  content: "";
  position: absolute;
  z-index: -1;
  left: 50%;
  bottom: 14%;
  width: min(1100px, 96vw);
  height: min(620px, 56vw);
  border-radius: 50%;
  background:
    radial-gradient(ellipse at 28% 58%, rgb(100 186 251 / 0.56), transparent 47%),
    radial-gradient(ellipse at 72% 56%, rgb(145 121 230 / 0.46), transparent 45%),
    radial-gradient(ellipse at 51% 68%, rgb(88 221 213 / 0.34), transparent 43%);
  filter: blur(34px);
  opacity: .58;
  transform: translate3d(-50%, 0, 0) scale(.9);
  pointer-events: none;
}

@media (prefers-reduced-motion: no-preference) {
  @keyframes homeAuraBreathe {
    0%, 100% { opacity: .28; transform: translate3d(-53%, 5%, 0) scale(.9) rotate(-2deg); }
    45% { opacity: .94; transform: translate3d(-47%, -3%, 0) scale(1.08) rotate(2deg); }
    72% { opacity: .62; transform: translate3d(-51%, 1%, 0) scale(.99) rotate(-1deg); }
  }
  body[data-page="home"] .home-welcome::after {
    animation: homeAuraBreathe 3s ease-in-out infinite;
    will-change: transform, opacity;
  }
}

body[data-page="home"] .home-welcome-inner {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  width: min(100% - 40px, 1040px);
  min-height: 620px;
  margin-inline: auto;
  padding-block: clamp(150px, 18svh, 190px) 84px;
  text-align: center;
}

body[data-page="home"] .home-welcome-preview {
  position: relative;
  z-index: 1;
  display: block;
  width: min(calc(100% - 48px), 940px);
  margin: 0 auto;
  overflow: hidden;
  border: 10px solid var(--color-card);
  border-bottom: 0;
  border-radius: 22px 22px 0 0;
  background: var(--color-card);
  box-shadow: 0 26px 90px rgb(37 39 52 / 0.16);
  transition: transform var(--dur-panel) var(--ease-out), box-shadow var(--dur-panel) var(--ease-out);
}

body[data-page="home"] .home-welcome-preview picture,
body[data-page="home"] .home-welcome-preview img { display: block; width: 100%; }
body[data-page="home"] .home-welcome-preview img { height: auto; }
body[data-page="home"] .home-welcome-preview:focus-visible { outline: 3px solid var(--color-focus); outline-offset: -5px; }

body[data-page="home"] .home-welcome-mark {
  display: none;
  align-items: center;
  gap: var(--space-xs);
  margin: 0 0 var(--space-lg);
  color: var(--color-ink-soft);
  font-size: var(--text-small);
  font-weight: 600;
  letter-spacing: 0.04em;
}

body[data-page="home"] .home-welcome-mark span {
  width: 4px;
  height: 4px;
  border-radius: 50%;
  background: var(--color-accent);
}

body[data-page="home"] .home-welcome :is(h1,h2) {
  max-width: 100%;
  min-width: 0;
  min-height: 1.18em;
  margin: 0;
  color: var(--color-ink);
  font-family: var(--font-home) !important;
  font-size: clamp(2.1rem, 2.3vw, 2.6rem);
  font-style: normal;
  font-weight: 700 !important;
  letter-spacing: -0.025em !important;
  line-height: 1.18;
  overflow-wrap: anywhere;
  text-wrap: balance;
}

body[data-page="home"] .home-welcome :is(h1,h2) span { color: inherit; }
@media (prefers-reduced-motion: no-preference) {
  @keyframes homeTitleSettle {
    0% { opacity: 0.6; color: var(--color-entry-typing); }
    30% { opacity: 1; color: var(--color-entry-typing); }
    100% { opacity: 1; color: var(--color-ink); }
  }
  body[data-page="home"] .home-welcome :is(h1,h2) .home-title-character {
    display: inline-block;
    animation: homeTitleSettle 420ms ease-out both;
  }
}

body[data-page="home"] .home-welcome-description {
  max-width: 38em;
  margin: var(--space-md) 0 0;
  color: var(--color-ink-soft);
  font-size: clamp(1rem, 1.5vw, 1.375rem);
  line-height: 1.8;
  text-wrap: balance;
}

body[data-page="home"] .home-copy-rotator {
  display: inline-block;
  width: 4.8em;
  padding: .02em .22em;
  border-radius: 4px;
  text-align: left;
  white-space: nowrap;
  color: var(--color-accent);
  background: color-mix(in srgb, var(--color-accent) 10%, transparent);
  font-size: 1.06em;
  font-weight: 700;
  line-height: 1.5;
}
body[data-page="home"] .home-copy-typing::after {
  content: "";
  display: inline-block;
  width: 2px;
  height: 1em;
  margin-left: 1px;
  vertical-align: -.13em;
  background: currentColor;
  animation: homeCopyCaret .7s steps(1, end) infinite;
}
@keyframes homeCopyCaret { 0%, 74% { opacity: 1; } 75%, 100% { opacity: 0; } }
@media (prefers-reduced-motion: reduce) {
  body[data-page="home"] .home-copy-typing::after { animation: none; }
}

body[data-page="home"] .home-welcome-search {
  width: min(100%, 640px);
  margin-top: var(--space-xl);
  text-align: left;
}

body[data-page="home"] .home-welcome-search label {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

body[data-page="home"] .home-welcome-search-row {
  display: flex;
  gap: var(--space-2xs);
  padding: 6px;
  border: 1px solid var(--color-rule);
  border-radius: calc(var(--radius-control) + 6px);
  color: var(--color-ink);
  background: var(--color-card);
  box-shadow: 0 16px 46px var(--color-shadow);
}

body[data-page="home"] .home-welcome-search-row:focus-within {
  outline: 2px solid var(--color-focus);
  outline-offset: 2px;
}

body[data-page="home"] .home-welcome-search input {
  flex: 1;
  min-width: 0;
  min-height: 52px;
  padding-inline: var(--space-sm);
  border: 1px solid transparent;
  border-radius: var(--radius-control);
  outline: none;
  color: var(--color-ink);
  background: transparent;
  font: inherit;
}

body[data-page="home"] .home-welcome-search input::placeholder { color: var(--color-ink-soft); }
body[data-page="home"] .home-welcome-search input:disabled { opacity: 0.55; cursor: not-allowed; }
body[data-page="home"] .home-welcome-search input[aria-invalid="true"] { border-color: var(--color-accent); }

body[data-page="home"] .home-welcome-search button {
  min-width: 132px;
  min-height: 52px;
  padding-inline: var(--space-md);
  border: 1px solid var(--color-accent);
  border-radius: var(--radius-control);
  color: var(--color-accent-ink);
  background: var(--color-accent);
  font: inherit;
  font-size: var(--text-small);
  font-weight: 700;
  white-space: nowrap;
  cursor: pointer;
  transition: opacity var(--dur-hover) var(--ease-out), transform var(--dur-fast) var(--ease-out);
}

body[data-page="home"] .home-welcome-search button span { margin-inline-start: 0.4em; }
body[data-page="home"] .home-welcome-search button:disabled { opacity: 0.5; cursor: not-allowed; }
body[data-page="home"] .home-welcome-search button:active { transform: translateY(1px); }

body[data-page="home"] .home-welcome-links {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: var(--space-xs) var(--space-sm);
  margin-top: var(--space-md);
  color: var(--color-ink-soft);
  font-size: var(--text-small);
}

body[data-page="home"] .home-welcome-links a {
  color: var(--color-ink);
  font-weight: 600;
  white-space: nowrap;
  text-decoration: underline;
  text-decoration-color: var(--color-rule);
  text-underline-offset: 5px;
  transition: color var(--dur-hover) var(--ease-out);
}

body[data-page="home"] .home-showcase {
  padding-block: clamp(88px, 6.15vw, 118px) 76px;
  color: var(--color-ink);
  background: var(--color-stage);
}

body[data-page="home"] .home-showcase-intro {
  width: min(calc(100% - 40px), 900px);
  margin: 0 auto var(--space-lg);
  text-align: center;
}
body[data-page="home"] .home-showcase-intro p {
  margin: 0 0 var(--space-sm);
  color: var(--color-ink-soft);
  font-size: var(--text-small);
  line-height: 1.4;
}
body[data-page="home"] .home-showcase-intro h2 {
  margin: 0;
  color: var(--color-ink);
  font-family: var(--font-sans) !important;
  font-size: clamp(2.3rem, 3vw, 3.1rem);
  font-style: normal;
  font-weight: 400 !important;
  letter-spacing: -0.03em !important;
  line-height: 1.24;
  overflow-wrap: anywhere;
}
body[data-page="home"] .home-showcase-intro span {
  display: block;
  margin-top: var(--space-xs);
  color: var(--color-ink-soft);
  font-size: var(--text-body);
  line-height: 1.75;
}

body[data-page="home"] .home-showcase-tabs {
  display: flex;
  justify-content: center;
  gap: var(--space-2xs);
  width: min(100% - 24px, 760px);
  margin: 0 auto var(--space-lg);
  overflow-x: auto;
  scrollbar-width: none;
}

body[data-page="home"] .home-showcase-tabs::-webkit-scrollbar { display: none; }

body[data-page="home"] .home-showcase-tabs button {
  flex: none;
  min-width: 96px;
  min-height: 44px;
  padding: 0 var(--space-md);
  border: 1px solid transparent;
  border-radius: var(--radius-pill);
  color: var(--color-ink);
  background: var(--color-card);
  font: inherit;
  font-size: var(--text-small);
  font-weight: 650;
  white-space: nowrap;
  cursor: pointer;
  transition: background-color var(--dur-hover) var(--ease-out), color var(--dur-hover) var(--ease-out);
}

body[data-page="home"] .home-showcase-tabs button[aria-selected="true"] {
  color: var(--color-card);
  background: var(--color-ink);
}

body[data-page="home"] .home-showcase-window {
  width: 100%;
  padding-block: var(--space-xs);
  overflow: clip;
  cursor: grab;
  touch-action: pan-y;
  user-select: none;
  perspective: 1600px;
}
body[data-page="home"] .home-showcase.is-dragging .home-showcase-window { cursor: grabbing; }

body[data-page="home"] .home-showcase-track {
  display: flex;
  align-items: stretch;
  gap: 56px;
  width: max-content;
  will-change: transform;
  transform-style: preserve-3d;
  transition: transform var(--dur-panel) var(--ease-out);
}

body[data-page="home"] .home-showcase:not(.is-ready) .home-showcase-track { transition: none; }
body[data-page="home"] .home-showcase.is-dragging .home-showcase-track { transition: none; }
body[data-page="home"] .home-showcase.is-teleporting .home-showcase-track,
body[data-page="home"] .home-showcase.is-teleporting .home-showcase-card { transition: none !important; }

body[data-page="home"] .home-showcase-card {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(0, 1fr);
  align-items: center;
  gap: clamp(24px, 4vw, 56px);
  flex: 0 0 min(900px, 76vi);
  min-width: 0;
  min-height: 560px;
  padding: clamp(32px, 3.2vw, 48px);
  border: 1px solid var(--color-rule);
  border-radius: var(--radius-card);
  color: var(--color-ink);
  background: var(--color-card);
  box-shadow: 0 22px 68px var(--color-shadow-strong);
  opacity: 0.88;
  transform: scale(0.96);
  backface-visibility: hidden;
  transition: opacity 300ms var(--ease-out), transform var(--dur-panel) var(--ease-out);
}

body[data-page="home"] .home-showcase-card.is-active { opacity: 1; transform: scale(1); }
body[data-page="home"] .home-showcase-card.is-before {
  transform-origin: right center;
  transform: translateY(-7px) rotateY(8deg) rotateZ(-3deg) scale(0.95);
}
body[data-page="home"] .home-showcase-card.is-after {
  transform-origin: left center;
  transform: translateY(-7px) rotateY(-8deg) rotateZ(3deg) scale(0.95);
}
body[data-page="home"] .home-showcase-card:not(.is-active) { cursor: pointer; }
body[data-page="home"] .home-showcase.is-dragging .home-showcase-card { cursor: grabbing; }

body[data-page="home"] .home-showcase-copy { min-width: 0; }

body[data-page="home"] .home-showcase-label {
  display: inline-flex;
  align-items: center;
  min-height: 32px;
  padding-inline: var(--space-sm);
  border: 1px solid var(--color-rule);
  border-radius: var(--radius-pill);
  color: var(--color-ink-soft);
  font-size: var(--text-small);
  font-weight: 650;
}

body[data-page="home"] .home-showcase-copy h3 {
  max-width: 13em;
  margin: var(--space-lg) 0 var(--space-sm);
  color: var(--color-ink);
  font-family: var(--font-sans) !important;
  font-size: clamp(2rem, 2.8vw, 2.7rem);
  font-style: normal;
  font-weight: 400 !important;
  letter-spacing: -0.035em !important;
  line-height: 1.25;
  overflow-wrap: anywhere;
  text-wrap: balance;
}

body[data-page="home"] .home-showcase-copy p {
  max-width: 28em;
  margin: 0;
  color: var(--color-ink-soft);
  font-size: var(--text-body);
  line-height: 1.8;
}

body[data-page="home"] .home-showcase-points {
  display: grid;
  gap: var(--space-xs);
  margin: var(--space-lg) 0 0;
  padding: 0;
  list-style: none;
}

body[data-page="home"] .home-showcase-points li {
  display: flex;
  align-items: center;
  gap: var(--space-xs);
  color: var(--color-ink-soft);
  font-size: var(--text-small);
  line-height: 1.4;
}

body[data-page="home"] .home-showcase-points li::before {
  content: "✓";
  display: grid;
  flex: 0 0 24px;
  height: 24px;
  place-items: center;
  border-radius: 50%;
  color: var(--color-ink);
  background: var(--color-paper-soft);
  font-size: 0.75rem;
  font-weight: 700;
}

body[data-page="home"] .home-showcase-link {
  display: inline-flex;
  align-items: center;
  gap: var(--space-xs);
  min-height: 44px;
  margin-top: var(--space-lg);
  color: var(--color-accent);
  font-size: var(--text-small);
  font-weight: 700;
  white-space: nowrap;
  text-decoration: none;
  transition: opacity var(--dur-hover) var(--ease-out);
}
body[data-page="home"] .home-showcase-link span { display: inline-block; transition: transform var(--dur-hover) var(--ease-out); }

body[data-page="home"] .home-product-shot {
  min-width: 0;
  width: min(100%, 330px);
  height: auto;
  aspect-ratio: 5 / 6;
  margin: 0;
  justify-self: center;
  overflow: clip;
  border: 1px solid var(--color-rule);
  border-radius: calc(var(--radius-card) - 4px);
  color: var(--color-ink);
  background: var(--color-paper-soft);
  box-shadow: 0 16px 40px var(--color-shadow);
}

body[data-page="home"] .home-product-shot img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: contain;
  object-position: center;
}

body[data-page="home"] .home-showcase-controls {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-lg);
  margin-top: var(--space-md);
}
body[data-page="home"] .home-showcase-arrow {
  width: 44px;
  height: 44px;
  border: 1px solid var(--color-rule);
  border-radius: 50%;
  color: var(--color-ink);
  background: var(--color-card);
  font: inherit;
  font-size: var(--text-lead);
  cursor: pointer;
  transition: background-color var(--dur-hover) var(--ease-out), transform var(--dur-fast) var(--ease-out);
}
body[data-page="home"] .home-showcase-arrow:disabled { opacity: 0.45; cursor: not-allowed; }
body[data-page="home"] .home-showcase-arrow:active:not(:disabled) { transform: translateY(1px); }
body[data-page="home"] .home-showcase-dots { display: flex; align-items: center; gap: 4px; }
body[data-page="home"] .home-showcase-dots button {
  position: relative;
  width: 24px;
  height: 44px;
  padding: 0;
  border: 0;
  background: transparent;
  cursor: pointer;
}
body[data-page="home"] .home-showcase-dots button::after {
  content: "";
  display: block;
  width: 7px;
  height: 7px;
  margin: auto;
  border-radius: var(--radius-pill);
  background: var(--color-rule);
  transition: background-color var(--dur-hover) var(--ease-out), transform var(--dur-hover) var(--ease-out);
}
body[data-page="home"] .home-showcase-dots button[aria-current="true"]::after { background: var(--color-ink); transform: scaleX(2); }

body[data-page="home"] :is(.home-welcome, .home-showcase) :is(a, button, input):focus-visible {
  outline: 2px solid var(--color-focus);
  outline-offset: 3px;
}

@media (hover: hover) and (pointer: fine) {
  body[data-page="home"] .home-welcome-preview:hover { transform: translateY(-4px); box-shadow: 0 34px 105px rgb(37 39 52 / 0.19); }
  body[data-page="home"] .home-welcome-search button:hover:not(:disabled) { opacity: 0.86; }
  body[data-page="home"] .home-welcome-links a:hover,
  body[data-page="home"] .home-showcase-link:hover { color: var(--color-accent); }
  body[data-page="home"] .home-showcase-link:hover span { transform: translateX(3px); }
  body[data-page="home"] .home-showcase-tabs button:hover:not([aria-selected="true"]),
  body[data-page="home"] .home-showcase-arrow:hover:not(:disabled) { background: var(--color-paper-soft); }
}

@media (prefers-reduced-motion: no-preference) {
  @keyframes homeStageEnter {
    from { opacity: 0; transform: translateY(18px); }
    to { opacity: 1; transform: translateY(0); }
  }
  @keyframes homePreviewEnter {
    from { opacity: 0; transform: translateY(120px) scale(0.96); }
    to { opacity: 1; transform: translateY(0) scale(1); }
  }
  @keyframes homeAuraEnter {
    from { opacity: 0.4; transform: translateX(-50%) scale(0.84); }
    to { opacity: 1; transform: translateX(-50%) scale(1); }
  }
  html.home-entry-pending body[data-page="home"] .home-welcome :is(h1, h2, .home-welcome-description, .home-welcome-search, .home-demo-controls, .home-welcome-preview, .home-demo-feedback, .home-welcome-links),
  html.home-entry-pending body[data-page="home"] .home-welcome::before { opacity: 0; }
  body[data-page="home"] .home-welcome.is-entering h1 { animation: homeStageEnter 640ms 60ms var(--ease-out) both; }
  body[data-page="home"] .home-welcome.is-entering .home-welcome-description { animation: homeStageEnter 560ms 340ms var(--ease-out) both; }
  body[data-page="home"] .home-welcome.is-entering .home-welcome-search { animation: homeStageEnter 600ms 540ms var(--ease-out) both; }
  body[data-page="home"] .home-welcome.is-entering .home-demo-controls { animation: homeStageEnter 520ms 900ms var(--ease-out) both; }
  body[data-page="home"] .home-welcome.is-entering .home-welcome-preview { animation: homePreviewEnter 1050ms 1250ms var(--ease-out) both; }
  body[data-page="home"] .home-welcome.is-entering .home-demo-feedback { animation: homeStageEnter 520ms 1880ms var(--ease-out) both; }
  body[data-page="home"] .home-welcome.is-entering .home-welcome-links { animation: homeStageEnter 500ms 1940ms var(--ease-out) both; }
  body[data-page="home"] .home-welcome.is-entering::before { animation: homeAuraEnter 850ms 0ms var(--ease-out) both; }
}

@media (max-width: 700px) {
  body[data-page="home"] .home-welcome-inner { min-height: 0; padding-block: 132px 76px; }
  body[data-page="home"] .home-welcome-preview { width: min(calc(100% - 32px), 440px); border-width: 7px; border-bottom: 0; border-radius: 16px 16px 0 0; }
  body[data-page="home"] .home-welcome::before { bottom: 3%; width: 720px; height: 620px; }
  body[data-page="home"] .home-welcome :is(h1,h2) { min-height: 2.36em; font-size: clamp(2.15rem, 5vw, 2.5rem); }
  body[data-page="home"] .home-welcome-description { max-width: 28em; }
  body[data-page="home"] .home-showcase { padding-block: 72px 62px; }
  body[data-page="home"] .home-showcase-intro { margin-bottom: var(--space-lg); }
  body[data-page="home"] .home-showcase-intro h2 { font-size: clamp(1.9rem, 6.8vw, 2.4rem); }
  body[data-page="home"] .home-showcase-intro span { font-size: var(--text-small); }
  body[data-page="home"] .home-showcase-card { grid-template-columns: minmax(0, 1fr); gap: var(--space-md); min-height: 0; padding: var(--space-lg); }
  body[data-page="home"] .home-showcase-copy h3 { margin-top: var(--space-md); font-size: clamp(1.7rem, 6vw, 2.2rem); }
  body[data-page="home"] .home-showcase-copy p { font-size: var(--text-small); }
  body[data-page="home"] .home-showcase-link { margin-top: var(--space-sm); }
  body[data-page="home"] .home-product-shot { width: min(100%, 280px); }
}

@media (min-width: 701px) and (max-width: 900px) {
  body[data-page="home"] .home-showcase-card {
    grid-template-columns: minmax(0, 1fr);
    flex-basis: calc(100vi - 96px);
    min-height: 0;
  }
  body[data-page="home"] .home-product-shot { width: min(100%, 330px); }
}

@media (min-width: 960px) {
  body[data-page="home"] .home-welcome-inner { min-height: 500px; padding-block: clamp(86px, 11vh, 120px) 44px; }
  body[data-page="home"] .home-welcome :is(h1,h2) br { display: none; }
}

@media (max-width: 480px) {
  body[data-page="home"] .home-welcome-inner { width: min(100% - 32px, 1040px); padding-block: 120px 62px; }
  body[data-page="home"] .home-welcome-mark { flex-wrap: wrap; justify-content: center; gap: 4px var(--space-2xs); margin-bottom: var(--space-md); font-size: 0.75rem; }
  body[data-page="home"] .home-welcome :is(h1,h2) { font-size: clamp(2.15rem, 5vw, 2.5rem); }
  body[data-page="home"] .home-welcome-description { margin-top: var(--space-sm); font-size: var(--text-small); line-height: 1.7; }
  body[data-page="home"] .home-welcome-search { margin-top: var(--space-lg); }
  body[data-page="home"] .home-welcome-search-row { flex-direction: column; }
  body[data-page="home"] .home-welcome-search input,
  body[data-page="home"] .home-welcome-search button { width: 100%; min-height: 48px; }
  body[data-page="home"] .home-welcome-links { gap: 6px var(--space-xs); font-size: 0.75rem; }
  body[data-page="home"] .home-welcome-links > span { flex-basis: 100%; }
  body[data-page="home"] .home-showcase-tabs { justify-content: flex-start; width: calc(100% - 32px); margin-bottom: var(--space-md); }
  body[data-page="home"] .home-showcase-card { flex-basis: calc(100vi - 40px); padding: var(--space-md); border-radius: 18px; }
  body[data-page="home"] .home-showcase-copy h3 { font-size: 1.65rem; }
  body[data-page="home"] .home-product-shot { width: min(100%, 270px); }
}

@media (prefers-reduced-motion: reduce) {
  body[data-page="home"] .home-welcome::before,
  body[data-page="home"] .home-welcome *,
  body[data-page="home"] .home-welcome *::before,
  body[data-page="home"] .home-welcome *::after,
  body[data-page="home"] .home-showcase *,
  body[data-page="home"] .home-showcase *::before,
  body[data-page="home"] .home-showcase *::after {
    animation: none !important;
    scroll-behavior: auto !important;
    transition-duration: 0ms !important;
  }
}

body[data-page="home"] .home-welcome-inner { padding-bottom: clamp(28px, 4vw, 56px); }
body[data-page="home"] .home-welcome-demo { display: flex; flex-direction: column; align-items: center; width: 100%; margin-top: clamp(28px, 3.5vw, 46px); }
body[data-page="home"] .home-demo-controls,
body[data-page="home"] .home-demo-feedback { display: flex; align-items: center; width: min(100%, 820px); }
body[data-page="home"] .home-demo-controls { justify-content: center; gap: 12px; }
body[data-page="home"] .home-demo-eyebrow { margin-right: auto; color: var(--color-ink-soft); font-size: var(--text-small); font-weight: 650; }
body[data-page="home"] .home-demo-options { display: inline-flex; gap: 4px; padding: 4px; border: 1px solid var(--color-rule); border-radius: var(--radius-pill); background: var(--color-card); box-shadow: 0 8px 24px var(--color-shadow); }
body[data-page="home"] .home-demo-options button { min-height: 36px; padding: 0 18px; border: 0; border-radius: var(--radius-pill); background: transparent; color: var(--color-ink-soft); font: inherit; font-size: var(--text-small); font-weight: 650; cursor: pointer; transition: background-color 250ms ease, color 250ms ease, box-shadow 250ms ease; }
body[data-page="home"] .home-demo-options button[aria-pressed="true"] { color: #fff; background: linear-gradient(105deg, #365aa8, #7464bf); box-shadow: 0 3px 12px rgb(79 85 161 / 0.27); }
body[data-page="home"] .home-demo-toggle { display: grid; flex: 0 0 44px; height: 44px; place-items: center; margin-left: auto; border: 1px solid var(--color-rule); border-radius: 50%; color: var(--color-ink); background: var(--color-card); font: inherit; font-size: 0.9rem; cursor: pointer; }
body[data-page="home"] .home-demo-toggle[hidden] { display: none; }
body[data-page="home"] .home-welcome-preview { width: min(100%, 820px); margin: 14px auto 0; aspect-ratio: 11 / 7; border-bottom-width: 10px; border-radius: 22px; cursor: grab; touch-action: pan-y; }
body[data-page="home"] .home-welcome-preview.is-dragging { cursor: grabbing; }
body[data-page="home"] .home-welcome-preview .home-demo-slide { position: absolute; inset: 0; display: block; width: 100%; height: 100%; opacity: 0; pointer-events: none; transition: opacity 460ms linear; }
body[data-page="home"] .home-welcome-preview .home-demo-slide.is-active { z-index: 1; opacity: 1; }
body[data-page="home"] .home-welcome-preview .home-demo-slide img { width: 100%; height: 100%; object-fit: contain; object-position: center top; }
body[data-page="home"] .home-demo-feedback { justify-content: space-between; gap: 20px; margin-top: 12px; color: var(--color-ink-soft); font-size: 0.75rem; line-height: 1.4; text-align: left; }
body[data-page="home"] .home-demo-progress { display: block; flex: 0 1 200px; height: 3px; overflow: hidden; border-radius: var(--radius-pill); background: rgb(86 92 143 / 0.14); }
body[data-page="home"] .home-demo-progress i { display: block; width: 100%; height: 100%; transform: scaleX(0); transform-origin: left center; background: linear-gradient(90deg, #5babe6, #8272ca); }
body[data-page="home"] .home-welcome-demo.is-playing .home-demo-progress i { animation: homeDemoFill var(--home-demo-cycle, 3800ms) linear forwards; }
@keyframes homeDemoFill { to { transform: scaleX(1); } }
body[data-page="home"] .home-welcome-links { margin-top: clamp(18px, 2.5vw, 30px); }

@media (max-width: 700px) {
  body[data-page="home"] .home-welcome-inner { padding-block: 70px 34px; }
  body[data-page="home"] .home-welcome-demo { margin-top: 24px; }
  body[data-page="home"] .home-demo-eyebrow { display: none; }
  body[data-page="home"] .home-demo-controls { gap: 10px; }
  body[data-page="home"] .home-demo-toggle { margin-left: 0; }
  body[data-page="home"] .home-welcome-preview { width: 100%; aspect-ratio: 95 / 66; border-width: 6px; border-radius: 16px; }
  body[data-page="home"] .home-welcome::before { top: 30%; bottom: auto; }
}

@media (max-width: 480px) {
  body[data-page="home"] .home-welcome-inner { padding-top: 54px; }
  body[data-page="home"] .home-welcome-search { margin-top: 18px; }
  body[data-page="home"] .home-welcome-search-row { flex-direction: row; align-items: center; }
  body[data-page="home"] .home-welcome-search input { flex: 1; width: 0; min-width: 0; min-height: 46px; padding-inline: 10px; }
  body[data-page="home"] .home-welcome-search button { flex: 0 0 auto; width: auto; min-width: 94px; min-height: 46px; padding-inline: 10px; }
  body[data-page="home"] .home-demo-options button { min-height: 34px; padding-inline: 12px; font-size: 0.75rem; }
  body[data-page="home"] .home-demo-toggle { flex-basis: 38px; height: 38px; }
  body[data-page="home"] .home-demo-feedback { align-items: flex-start; font-size: 0.7rem; }
  body[data-page="home"] .home-demo-progress { flex-basis: 72px; margin-top: 6px; }
}

@media (prefers-reduced-motion: reduce) {
  body[data-page="home"] .home-welcome-preview .home-demo-slide { transition: none !important; transform: none !important; }
  body[data-page="home"] .home-welcome-demo .home-demo-progress i { animation: none !important; }
}

body[data-page="home"] .home-showcase-tabs { margin-bottom: 10px; }
body[data-page="home"] .home-showcase-activity { display: flex; align-items: center; justify-content: center; gap: 12px; width: min(calc(100% - 40px), 760px); min-height: 34px; margin: 0 auto 12px; color: var(--color-ink-soft); font-size: 0.75rem; }
body[data-page="home"] .home-showcase-progress { display: block; flex: 0 1 110px; height: 3px; overflow: hidden; border-radius: var(--radius-pill); background: rgb(86 92 143 / 0.14); }
body[data-page="home"] .home-showcase-progress i { display: block; width: 100%; height: 100%; transform: scaleX(0); transform-origin: left center; background: linear-gradient(90deg, #5babe6, #8272ca); }
body[data-page="home"] .home-showcase.is-playing .home-showcase-progress i { animation: homeDemoFill var(--home-showcase-cycle, 3600ms) linear forwards; }
body[data-page="home"] .home-showcase-activity button { min-height: 32px; padding: 0 12px; border: 1px solid var(--color-rule); border-radius: var(--radius-pill); color: var(--color-ink); background: var(--color-card); font: inherit; font-size: 0.75rem; cursor: pointer; }
body[data-page="home"] .home-showcase-activity button[hidden] { display: none; }
body[data-page="home"] .home-showcase-card { position: relative; z-index: 1; }
body[data-page="home"] .home-showcase-card.is-active { z-index: 2; }
body[data-page="home"] .home-showcase-card.is-before { opacity: 0.78; transform: translateY(22px) rotateY(9deg) rotateZ(-4deg) scale(0.92); }
body[data-page="home"] .home-showcase-card.is-after { opacity: 0.78; transform: translateY(22px) rotateY(-9deg) rotateZ(4deg) scale(0.92); }
body[data-page="home"] .home-showcase.is-dragging .home-showcase-card { transition: none; }
body[data-page="home"] .home-showcase.is-dragging .home-showcase-card.is-active { transform: scale(0.985); }

/* Frame-audited carousel: the reference takes about one second to settle. */
body[data-page="home"] .home-showcase { --dur-panel: 700ms; }
body[data-page="home"] .home-showcase-track,
body[data-page="home"] .home-showcase-card { transition-timing-function: cubic-bezier(.19,.72,.16,1); }
@media (min-width: 1101px) {
  body[data-page="home"] .home-showcase-card {
    grid-template-columns: minmax(0,.78fr) minmax(0,1.22fr);
    gap: clamp(30px,3vw,48px);
    flex-basis: min(960px,70vi);
    min-height: 620px;
    padding: clamp(38px,3.2vw,54px);
  }
  body[data-page="home"] .home-product-shot { width: min(100%,450px); max-width: none; }
  body[data-page="home"] .home-showcase-card.is-before {
    transform: translateY(36px) rotateY(7deg) rotateZ(-3deg) scale(.935);
  }
  body[data-page="home"] .home-showcase-card.is-after {
    transform: translateY(36px) rotateY(-7deg) rotateZ(3deg) scale(.935);
  }
}
@media (min-width: 960px) {
  body[data-page="home"] .home-welcome :is(h1,h2) {
    font-size: clamp(3.15rem,4.3vw,4.55rem);
    line-height: 1.16;
  }
  body[data-page="home"] .home-welcome :is(h1,h2) br { display: block; }
  body[data-page="home"] .home-welcome-description {
    max-width: 55em;
    font-size: clamp(1rem,1.15vw,1.18rem);
  }
}

@media (min-width: 901px) {
  body[data-page="home"] .home-showcase-track { gap: 38px; }
  body[data-page="home"] .home-showcase-card { flex-basis: min(760px, 62vi); }
}

@media (min-width: 960px) {
  body[data-page="home"] .home-welcome-inner { padding-top: clamp(86px, 11vh, 120px); }
  body[data-page="home"] .home-welcome-search { margin-top: 30px; }
  body[data-page="home"] .home-welcome-demo { margin-top: 26px; }
}

@media (max-width: 480px) {
  body[data-page="home"] .home-showcase-track { gap: 12px; }
  body[data-page="home"] .home-showcase-card { flex-basis: calc(100vi - 72px); padding: 16px; }
  body[data-page="home"] .home-showcase-activity { width: calc(100% - 32px); gap: 8px; font-size: 0.7rem; }
  body[data-page="home"] .home-showcase-progress { flex-basis: 38px; }
  body[data-page="home"] .home-showcase-activity button { padding-inline: 9px; }
}

/* Mobile theme changes should repaint one bounded gradient, rather than two
   oversized, blurred animation layers at the bottom of the opening screen. */
@media (max-width: 700px), (hover: none) and (pointer: coarse) {
  body[data-page="home"] .home-welcome::before,
  body[data-page="home"] .home-welcome.is-entering::before {
    inset: 0;
    width: 100%;
    height: 100%;
    border-radius: 0;
    background:
      radial-gradient(ellipse 80% 34% at 25% 76%, rgb(100 186 251 / 0.18), transparent 72%),
      radial-gradient(ellipse 90% 40% at 75% 78%, rgb(145 121 230 / 0.18), transparent 72%);
    opacity: 1;
    animation: none;
    filter: none;
    transform: none;
    will-change: auto;
  }
  body[data-page="home"] .home-welcome::after {
    content: none;
    animation: none;
    filter: none;
    transform: none;
    will-change: auto;
  }
}

@media (prefers-reduced-motion: reduce) {
  body[data-page="home"] .home-showcase-progress i { animation: none !important; }
  body[data-page="home"] .home-showcase-card.is-before,
  body[data-page="home"] .home-showcase-card.is-after { transform: none !important; }
}
