.home {
  --bg: #10191b;
  --text: #f4f4ed;
  --muted: #c3ceca;
  --accent: #77e6c6;
  --scene-line: #c5d6cd4a;
  overflow-wrap: break-word;
}
.home .shell { width: min(1424px, calc(100% - clamp(40px, 10vw, 160px))); }
body:has(.product-preview[open]) { overflow: hidden; }
.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
}

.home .site-header {
  position: relative;
  z-index: 1;
  min-height: 77px;
  padding-block: 20px;
  border-color: var(--scene-line);
}
.home .brand { white-space: nowrap; }
.home .site-header .brand { font-size: 1.31rem; font-weight: 650; }
.home .site-header nav { gap: 32px; font-size: .94rem; font-weight: 550; }
.site-header .guide-nav { gap: 4px; }

.hero-scene { position: relative; isolation: isolate; }
.hero-scene::before {
  /* Extend the landscape behind the navigation while both landmarks stay in document order. */
  content: "";
  position: absolute;
  z-index: -1;
  inset: -6rem 0 0;
  background: linear-gradient(90deg, #091213e6 4%, #091213bd 31%, #0a151730 70%),
    linear-gradient(0deg, #10191bf5 1%, #11222719 35%, #12202824 90%),
    #102024 url('/assets/forest-hero.webp') 50% 43% / cover no-repeat;
}
.hero {
  display: grid;
  grid-template-columns: minmax(0, 1.08fr) minmax(0, .92fr);
  align-items: center;
  gap: clamp(34px, 6.5vw, 110px);
  padding-block: 56px 64px;
}
.hero-copy { max-width: 640px; }
.hero-platform {
  display: flex;
  align-items: center;
  gap: 12px;
  color: #c5d9d4;
  font-size: .875rem;
  font-weight: 600;
  letter-spacing: .02em;
}
.hero-platform::before { content: ""; width: 32px; height: 2px; background: var(--accent); }
.hero h1 {
  margin-top: 20px;
  font-size: clamp(3.35rem, 5.25vw, 5.3rem);
  line-height: 1.04;
  font-weight: 650;
  letter-spacing: -.071em;
  text-wrap: initial;
}
.hero h1 span { display: block; }
.hero h1 em { font-style: normal; color: var(--accent); }
.hero-detail {
  max-width: 38ch;
  margin-top: 24px;
  color: var(--muted);
  font-size: clamp(1rem, 1.3vw, 1.25rem);
  line-height: 1.55;
}
.installers {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
  max-width: 520px;
  margin: 32px 0 4px;
}
.package-link {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-content: center;
  gap: 3px 4px;
  padding: 14px 16px;
  border: 1px solid #bdd1cc65;
  border-radius: 6px;
  background: #142326ed;
  color: var(--text);
  font-size: 1.06rem;
  line-height: 1.25;
}
.package-link strong { font-weight: 650; }
.package-link small { grid-column: 1 / -1; color: var(--muted); font-size: .81rem; font-weight: 500; }
.download-arrow { font-size: 1.25rem; line-height: 1; }
.package-link:hover { background: #223b3b; color: var(--text); border-color: var(--accent); }
.package-primary { background: var(--accent); border-color: var(--accent); color: #10372e; }
.package-primary small { color: #245043; }
.package-primary:hover { background: #94f1d6; color: #10372e; }
.install-links {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0 12px;
  margin-top: 4px;
  color: #afc3bd;
  font-size: .81rem;
}
.install-links a { display: inline-flex; align-items: center; min-height: 44px; text-decoration: underline; text-underline-offset: 3px; }
.install-links a:not([hidden]) ~ a::before {
  content: "";
  width: 3px;
  height: 3px;
  margin-right: 12px;
  background: #a0b7ae;
  border-radius: 50%;
}

.hero-product {
  justify-self: end;
  width: min(100%, 480px);
  padding: 18px;
  background: #101820;
  border: 1px solid #95afa87a;
  border-radius: 11px;
  box-shadow: 0 12px 52px #0308086b;
}
.demo-header { display: flex; align-items: center; justify-content: space-between; gap: 8px; margin-bottom: 14px; }
.demo-header strong { font-size: 1.44rem; letter-spacing: -.04em; font-weight: 625; line-height: 1.2; }
.demo-header small { display: block; margin-bottom: 5px; color: #aabcb8; font-size: .75rem; line-height: 1.4; }
.demo-header button {
  min-height: 44px;
  padding: 0;
  border: 0;
  background: none;
  color: var(--accent);
  font-size: .81rem;
  white-space: nowrap;
}
.demo-header button:hover { text-decoration: underline; text-underline-offset: 3px; }
.demo-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
/* Native 1366 × 880 panel image. Each viewport scales one rectangle from the same screenshot. */
.demo-crop { position: relative; overflow: hidden; }
.demo-crop img { position: absolute; display: block; max-width: none; height: auto; }
.demo-stat { aspect-ratio: 254 / 147; }
.demo-stat img { width: 537.795%; top: -153.74%; }
.demo-state img { left: -109.45%; }
.demo-players img { left: -214.96%; }
.demo-chart {
  grid-column: 1 / -1;
  aspect-ratio: 577 / 290;
  outline: 1px solid #394650;
  outline-offset: -1px;
  border-radius: 6px;
}
.demo-chart img { width: 236.74%; left: -48.18%; top: -191.03%; }

.getting-started {
  min-height: 210px;
  padding-block: 42px 48px;
  background: #162124;
  border-top: 1px solid var(--scene-line);
}
.start-paths {
  display: grid;
  grid-template-columns: .75fr 1fr 1.15fr;
  gap: clamp(18px, 4.2vw, 70px);
}
.start-paths h2 { font-size: clamp(1.85rem, 2.4vw, 2.45rem); letter-spacing: -.055em; line-height: 1.1; }
.start-path { min-width: 0; padding: 3px 8px 3px clamp(16px, 2.5vw, 40px); border-left: 1px solid var(--scene-line); }
.start-path h3 { font-size: clamp(1.15rem, 1.55vw, 1.5rem); letter-spacing: -.04em; line-height: 1.25; }
.start-path a { display: inline-flex; align-items: center; justify-content: space-between; gap: 14px; }
.start-path a span { color: var(--accent); font-weight: 500; }
.start-path p { margin-top: 10px; max-width: 39ch; color: var(--muted); font-size: .94rem; line-height: 1.48; }

.section { padding-block: clamp(32px, 5vw, 64px); border-top: 1px solid var(--line); }
.migration-grid, .updates { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: clamp(16px, 2.5vw, 32px); }
.migration-grid { margin-top: 24px; }
.migration-option, .release-panel { min-width: 0; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: clamp(16px, 2.4vw, 28px); }
.migration-option h3 { font-size: clamp(1.12rem, 2vw, 1.42rem); text-wrap: initial; }
.migration-option > p { color: var(--muted); margin-top: 8px; font-size: .95rem; }

.feature-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 0 clamp(20px, 3vw, 40px); margin-top: 8px; }
.feature-card { padding-block: 22px; border-bottom: 1px solid var(--line); }
.feature-card p { color: var(--muted); max-width: 42ch; margin-top: 8px; font-size: .95rem; }
.migration-option { display: flex; flex-direction: column; align-items: start; }
.migration-option p { margin-bottom: 14px; }
.migration-option .text-link { margin-top: auto; }
.migration-option code { overflow-wrap: anywhere; font-size: .9em; color: var(--text); }
.updates { align-items: start; }
.updates > div:first-child p { color: var(--muted); max-width: 49ch; margin-top: 12px; }
.updates .text-link { margin-top: 16px; }
.release-panel { min-height: 156px; }
.release-panel .edition { color: var(--accent); font-size: .9rem; font-weight: 600; }
.release-panel h3 { font-size: 1.55rem; margin-block: 8px 4px; }
#release-date { font-size: .9rem; color: var(--quiet); }
.release-panel ul { margin: 10px 0 0; padding-left: 20px; color: var(--muted); font-size: .9rem; overflow-wrap: anywhere; }
.release-panel li + li { margin-top: 4px; }
.release-panel .error { color: #e9c796; margin-top: 8px; }
.text-button { border: 0; background: none; padding: 10px 0 0; color: var(--accent); text-decoration: underline; text-underline-offset: 4px; }

.faq { display: grid; grid-template-columns: minmax(170px, .7fr) minmax(0, 1.3fr); gap: clamp(20px, 4vw, 56px); }
.faq details { border-bottom: 1px solid var(--line); }
.faq details:first-child { border-top: 1px solid var(--line); }
.faq summary { list-style: none; position: relative; padding: 14px 30px 14px 0; font-weight: 600; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; position: absolute; right: 4px; top: 12px; color: var(--accent); font-size: 1.2rem; font-weight: 400; }
.faq details[open] summary::after { content: "−"; }
.faq details p { padding-bottom: 16px; color: var(--muted); }

.product-preview { width: min(1540px, calc(100vw - 32px)); max-width: none; max-height: calc(100dvh - 24px); padding: 0; color: var(--text); background: var(--bg); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; }
.product-preview::backdrop { background: #080f139e; }
.preview-dialog-bar { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 8px 14px; background: var(--surface); border-bottom: 1px solid var(--line); }
.preview-dialog-bar h2 { font-size: .96rem; letter-spacing: 0; text-wrap: initial; }
.preview-close { min-height: 44px; background: var(--raised); color: var(--text); border: 1px solid var(--line); border-radius: 5px; padding: 6px 10px; font-size: .86rem; white-space: nowrap; }
.preview-close:hover { border-color: var(--accent); }
.preview-image-scroll { overflow: auto; max-height: calc(100dvh - 108px); }
.preview-image-scroll:focus-visible { outline-offset: -3px; }
.preview-image-scroll img { display: block; width: 100%; height: auto; }

@media (max-width: 900px) {
  .home .shell { width: calc(100% - 52px); }
  .hero { gap: 26px; }
  .hero h1 { font-size: clamp(2.75rem, 6vw, 4.06rem); }
  .hero-detail { font-size: 1.06rem; }
  .package-link { padding: 12px; font-size: .94rem; }
  .hero-product { padding: 14px; }
  .demo-header strong { font-size: 1.31rem; }
  .demo-header button { font-size: .75rem; }
  .start-paths { grid-template-columns: .7fr 1fr 1fr; gap: 12px; }
}
@media (max-width: 720px) {
  .home .shell { width: calc(100% - 36px); }
  .home .site-header {
    min-height: 62px;
    flex-direction: row;
    align-items: center;
    gap: 12px;
    padding-block: 8px;
  }
  .home .site-header .brand { font-size: 1.125rem; gap: 8px; }
  .home .site-header .brand img { width: 31px; height: 31px; }
  .home .site-header nav { width: auto; gap: 12px; font-size: .81rem; }
  .home .site-header .guide-nav { display: none; }
  .hero-scene::before {
    inset-block-start: -4rem;
    background: linear-gradient(90deg, #0d181be6, #10202432),
      linear-gradient(0deg, #10191b 0%, #10191b42 43%, #0b171b16 82%),
      #102024 url('/assets/forest-hero.webp') 59% top / auto 680px no-repeat;
  }
  .hero { grid-template-columns: minmax(0, 1fr); gap: 20px; padding-block: 25px 30px; }
  .hero-platform { font-size: .81rem; }
  .hero-platform::before { width: 24px; }
  .hero h1 { margin-top: 12px; font-size: clamp(2.5rem, 10vw, 3.69rem); letter-spacing: -.055em; }
  .hero-detail { margin-top: 14px; max-width: 37ch; font-size: 1rem; }
  .installers { grid-template-columns: 1.13fr 1fr; gap: 8px; margin-top: 19px; }
  .package-link { padding: 12px 10px; font-size: .875rem; }
  .package-link small { font-size: .75rem; }
  .download-arrow { font-size: 1.06rem; }
  .install-links { column-gap: 8px; font-size: .75rem; }
  .install-links a:not([hidden]) ~ a::before { margin-right: 8px; }
  .hero-product { justify-self: start; width: min(100%, 520px); padding: 12px; }
  .demo-header { margin-bottom: 9px; }
  .demo-header strong { font-size: 1.25rem; }
  .demo-grid { gap: 6px; }
  .getting-started { padding-block: 30px 22px; }
  .start-paths { grid-template-columns: 1fr; gap: 0; }
  .start-paths h2 { margin-bottom: 12px; font-size: 1.75rem; }
  .start-path { padding: 14px 0; border-left: 0; border-top: 1px solid var(--scene-line); }
  .start-path h3 { font-size: 1.19rem; }
  .start-path h3 a { width: 100%; }
  .start-path p { margin-top: 4px; font-size: .875rem; }
  .start-path:last-child { padding-bottom: 0; }
  .feature-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 640px) {
  .migration-grid, .updates, .faq, .feature-grid { grid-template-columns: minmax(0, 1fr); }
  .feature-card { padding-block: 16px; }
  .feature-card p { max-width: none; }
  .preview-image-scroll img { min-width: 800px; max-width: none; }
}
@media (max-width: 355px) {
  .home .shell { width: calc(100% - 28px); }
  .home .site-header { flex-direction: column; align-items: start; gap: 0; padding-block: 12px 0; }
  .home .site-header nav { gap: 20px; }
  .hero-scene::before { inset-block-start: -6rem; }
  .installers { grid-template-columns: 1fr; gap: 6px; }
  .package-link { padding: 10px 12px; font-size: .94rem; }
  .install-links { column-gap: 12px; }
  .install-links a:not([hidden]) ~ a::before { content: none; }
}
