/* Homepage product photography: a real component capture, framed without cropping. */
body[data-page="home"] {
  --hero-gutter: max(72px, (100% - 1280px) / 2);
  --hero-copy-inset: 4px;
  --hero-copy-shift: 0px;
}

body[data-page="home"] .hero {
  min-height: 790px;
}

body[data-page="home"] .hero__content {
  grid-template-columns: minmax(0, 480px) minmax(0, 1fr);
  align-items: center;
  gap: clamp(72px, 6.7vw, 112px);
  width: calc(100% - 2 * var(--hero-gutter));
  margin-top: 104px;
  padding-bottom: 120px;
}

body[data-page="home"] .notice {
  width: 100%;
  margin-bottom: 42px;
  font-family: inherit;
  max-height: none;
  overflow: visible;
  -webkit-mask-image: none;
  mask-image: none;
}

body[data-page="home"] .notice:active {
  transform: translateX(4px) scale(0.985);
  color: #24559d;
}

body[data-page="home"] .hero-title { width: min(400px, 100%); }
body[data-page="home"] .hero-subtitle__lead { display: block; }
body[data-page="home"] .hero-subtitle__details { display: block; margin-top: 5px; font-size: .8em; color: #586b87; text-wrap: pretty; }
body[data-page="home"] .hero-subtitle {
  display: block;
  white-space: normal;
  font-size: clamp(20px, 1.65vw, 25px);
  line-height: 1.65;
  margin: 24px 0 42px;
  text-wrap: balance;
}

body[data-page="home"] .hero__copy {
  --hero-actions-width: min(568px, 100%);
  padding-left: var(--hero-copy-inset);
}

body[data-page="home"] .dossier .genesis-product-badge {
  left: calc(var(--hero-gutter) + var(--hero-copy-inset) + var(--hero-copy-shift) + 4px);
  right: auto;
}

body[data-page="home"] .cta-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
  width: var(--hero-actions-width);
  max-width: none;
}
body[data-page="home"] .action-card { min-height: 108px; padding: 22px; }
body[data-page="home"] .action-card__title { font-size: 18px; line-height: 1.25; }
body[data-page="home"] .action-card--download { padding-right: 22px; }
body[data-page="home"] .action-card__platform-icon { top: auto; right: 18px; bottom: 24px; width: 34px; height: 34px; transform: none; }
body[data-page="home"] .action-card--download:hover .action-card__platform-icon { transform: scale(1.04); }
body[data-page="home"] .action-card__platform-icon svg { width: 32px; height: 32px; }

.install-panel {
  --command-row-height: 26px;
  --editor-background: rgb(238 246 255 / 20%);
  box-sizing: border-box;
  width: var(--hero-actions-width);
  margin-top: 18px;
  border: 1px solid #adc5e0;
  border-radius: 12px;
  background: var(--editor-background);
  color: #253e5c;
  overflow: hidden;
  font: 12.5px/var(--command-row-height) Consolas, "Liberation Mono", monospace;
  box-shadow: 0 10px 24px -20px #50709c;
}

.install-panel__header {
  display: flex;
  padding-top: 4px;
  background: rgb(220 234 251 / 20%);
}

.install-panel__label {
  padding: 4px 20px 5px;
  border-top: 2px solid #5588c8;
  border-radius: 4px 4px 0 0;
  background: var(--editor-background);
  font-weight: 600;
  line-height: 22px;
}

.install-panel__body {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
}

.install-panel__lines,
.install-panel__notes {
  margin: 0;
  padding: 8px 12px;
  list-style: none;
  white-space: nowrap;
  user-select: none;
}

.install-panel__lines {
  padding-inline: 14px 28px;
  color: #506982;
  text-align: right;
}

.install-panel__notes {
  padding-inline: 8px 14px;
  color: #43634e;
  font-size: 12px;
}

.install-panel__notes li::before {
  content: "// ";
  color: #4f6c70;
}

.install-panel__editor {
  position: relative;
  min-width: 0;
}

.install-command,
.install-panel__syntax {
  margin: 0;
  padding: 8px 4px 8px 0;
  font: inherit;
  white-space: pre;
}

.install-panel__syntax {
  position: absolute;
  inset: 0;
  overflow: hidden;
  pointer-events: none;
  user-select: none;
}

.install-panel__syntax .cmd-command { color: #184f93; }
.install-panel__syntax .cmd-option { color: #634777; }
.install-panel__syntax .cmd-string { color: #805027; }
.install-panel__syntax .cmd-url { color: #20636a; }

.install-command {
  position: relative;
  display: block;
  box-sizing: border-box;
  width: 100%;
  min-height: calc(4lh + 28px);
  border: 0;
  border-radius: 0;
  background: transparent;
  color: inherit;
  overflow-x: auto;
  overflow-y: hidden;
  scrollbar-width: thin;
  scrollbar-color: #708bad transparent;
  resize: none;
  cursor: text;
}

.install-panel__editor.is-highlighted .install-command {
  color: transparent;
}

.install-panel__editor.is-highlighted .install-command::selection {
  color: transparent;
  background: rgb(78 139 222 / 23%);
}

.install-command:focus-visible {
  outline: 2px solid #3b6eb1;
  outline-offset: -2px;
}

.hero-product {
  position: relative;
  min-width: 0;
  margin: 0;
  padding: 28px 0;
  isolation: isolate;
}
.hero-product__stage {
  position: relative;
}
.hero-product__stage::before {
  position: absolute;
  z-index: -1;
  content: "";
  inset: -12% -12% -8% -8%;
  border-radius: 50%;
  background: radial-gradient(ellipse at 65% 40%, rgba(120, 161, 227, .24), rgba(160, 177, 227, .06) 55%, transparent 72%);
  filter: blur(28px);
}
.hero-product__stage::after {
  position: absolute;
  z-index: -1;
  content: "";
  left: 8%;
  right: 8%;
  bottom: -36px;
  height: 54px;
  border-radius: 50%;
  background: radial-gradient(ellipse, rgba(42, 65, 109, .17), transparent 68%);
  filter: blur(15px);
  pointer-events: none;
}
.hero-product__window {
  position: relative;
  overflow: hidden;
  padding: 3px;
  border: 1px solid rgba(255, 255, 255, .94);
  border-radius: 12px;
  background: linear-gradient(135deg, #fff, #e6ecf5);
  box-shadow: 0 2px 0 #e2e9f3, 0 4px 0 #d2dce9, 0 6px 0 #bdcbdc, 0 8px 0 #aabbd1, 0 24px 40px -20px rgba(39, 61, 97, .28), 0 44px 72px -32px rgba(42, 65, 109, .23);
  transition: box-shadow 400ms var(--ease);
}
.hero-product:hover .hero-product__window { box-shadow: 0 2px 0 #e2e9f3, 0 4px 0 #d2dce9, 0 6px 0 #bdcbdc, 0 8px 0 #aabbd1, 0 24px 44px -20px rgba(39, 61, 97, .32), 0 44px 76px -32px rgba(42, 65, 109, .26); }
.hero-product__screen { display: block; width: 100%; height: auto; border-radius: 8px; }
.hero-product__window::after {
  position: absolute;
  inset: 0;
  border-radius: inherit;
  content: "";
  pointer-events: none;
  box-shadow: inset 0 1px 0 #fff, inset 1px 0 0 rgba(255, 255, 255, .8);
  background: linear-gradient(125deg, rgba(255, 255, 255, .12), transparent 32%);
}

@media (min-width: 1181px) {
  body[data-page="home"] { --hero-copy-shift: -70px; }
  body[data-page="home"] .hero__copy {
    --hero-actions-width: min(568px, calc(100% + 88px));
    translate: var(--hero-copy-shift);
  }

  /* Size the screenshot before applying perspective so small type stays legible. */
  .hero-product__stage {
    left: calc(-16.8% + 80px);
    /* Reserve room for the rightward shift and the window frame. */
    width: min(124%, calc(116.8% + max(72px, (100vw - 1280px) / 2) - 168px));
    margin-block: -8.6%;
    perspective: 1550px;
    perspective-origin: 60% 50%;
  }

  .hero-product__window,
  .hero-product:hover .hero-product__window {
    transform: rotateY(-10deg);
    box-shadow:
      2px 1px 0 #c7d2e2,
      4px 3px 0 #adbed4,
      12px 18px 26px -15px rgb(42 64 101 / 28%),
      20px 34px 48px -22px rgb(42 64 101 / 22%);
  }

  .hero-product__stage::after {
    left: 22%;
    right: 0;
    bottom: -24px;
  }
}

@media (max-width: 1180px) {
  body[data-page="home"] { --hero-gutter: max(32px, (100% - 820px) / 2); }
  body[data-page="home"] .hero__content { grid-template-columns: minmax(0, 1fr); margin-top: 58px; gap: 36px; padding-bottom: 72px; }
  body[data-page="home"] .hero__copy { max-width: 620px; }
  body[data-page="home"] .hero-subtitle { max-width: 600px; }
  .hero-product { width: 92%; justify-self: center; padding: 24px 0; }
}
@media (max-width: 760px) {
  body[data-page="home"] {
    --hero-gutter: 20px;
    --hero-copy-inset: 0px;
  }
  body[data-page="home"] .hero { min-height: auto; padding-bottom: 0; }
  body[data-page="home"] .hero__content { margin-top: 32px; gap: 36px; padding-bottom: 56px; }
  body[data-page="home"] .notice { margin-bottom: 32px; }
  body[data-page="home"] .notice__title { font-size: 15px; }
  body[data-page="home"] .hero-title { width: min(380px, 100%); }
  body[data-page="home"] .hero-subtitle { font-size: 19px; margin: 20px 0 28px; padding: 0; min-height: 0; }
  body[data-page="home"] .cta-grid { gap: 12px; }
  .install-panel { margin-top: 12px; }
  .install-panel__lines { padding-inline: 13px 18px; }
  .install-panel__notes { padding-inline: 8px 13px; }
  body[data-page="home"] .action-card { min-height: 110px; padding: 18px; }
  body[data-page="home"] .action-card--download :is(.action-card__body, .action-card__meta) { padding-inline-end: 24px; }
  body[data-page="home"] .action-card__title { font-size: 18px; }
  body[data-page="home"] .action-card__platform-icon { right: 12px; width: 24px; }
  body[data-page="home"] .action-card__platform-icon svg { width: 24px; height: 24px; }
  body[data-page="home"] .action-card__body, body[data-page="home"] .action-card__meta { font-size: 13px; }
  .hero-product__window, .hero-product:hover .hero-product__window { border-radius: 7px; transform: none; box-shadow: 0 20px 40px -18px rgba(34, 61, 106, .3), 0 0 0 3px rgba(255, 255, 255, .4); }
  .hero-product__screen { border-radius: 4px; }
  .hero-product__stage::after { bottom: -36px; height: 48px; }
}
@media (prefers-reduced-motion: reduce) {
  .hero-product__window, .hero-product:hover .hero-product__window { transform: none; transition: none; }
  body[data-page="home"] .notice { transition: none; }
}
