@media (prefers-reduced-motion: no-preference) {
  html:has(#zeus-home:target),
  html:has(#zeus-home :is(#product, #security, #windows-install, #support):target) {
    scroll-behavior: smooth;
  }
}

#zeus-home {
  --home-width: 78rem;
  --home-gutter: clamp(1rem, 4vw, 3.75rem);
  --home-line: var(--z-line, #ced5e2);
  --home-panel: var(--z-surface, #fff);
  --home-ink: var(--z-text, #172239);
  --home-muted: var(--z-muted, #4e5d73);
  --home-current: var(--z-focus, #335bb0);
  --home-tint: var(--z-tint, #e9f0fc);
  min-inline-size: 0;
  margin: 0;
  background: var(--z-bg, #f6f8fc);
  color: var(--home-ink);
  font: 400 1rem/1.6 var(--z-font, system-ui, "Malgun Gothic", sans-serif);
  color-scheme: light dark;
}

#zeus-home *, #zeus-home *::before, #zeus-home *::after { box-sizing: border-box }
#zeus-home :where(h1, h2, h3, p, dl, dd) { margin: 0 }
#zeus-home :where(a, button, summary):focus-visible {
  outline: 2px solid var(--z-focus, var(--home-current));
  outline-offset: 4px;
}
#zeus-home :where(p, dd, h1, h2, h3, summary) { overflow-wrap: anywhere; word-break: keep-all }
.home-bound { inline-size: min(100% - 2 * var(--home-gutter), var(--home-width)); margin-inline: auto }

.home-hero h1, .home-product-details h2 {
  font-family: Georgia, "Malgun Gothic", var(--z-font);
}
.home-product-details {
  padding-block: clamp(3.25rem, 8vw, 7rem);
  scroll-margin-block-start: 1.5rem;
  border-block-start: 1px solid var(--home-line);
}
.home-product-details h2 {
  font-size: clamp(1.9rem, 4vw, 3.5rem);
  line-height: 1.2;
}
.home-detail-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 25rem), 1fr));
  column-gap: clamp(1.5rem, 5vw, 5rem);
  margin-block-start: 2rem;
}
.home-detail-grid article {
  padding-block: 1.4rem 1.75rem;
  border-block-start: 1px solid var(--home-line);
}
.home-detail-grid h3 { font-size: clamp(1.13rem, 2.3vw, 1.55rem) }
#zeus-home .home-detail-grid p {
  max-inline-size: 56ch;
  margin-block-start: .55rem;
  color: var(--home-muted);
}

.home-header { border-block-end: 1px solid var(--home-line) }
.home-header-inner, .home-footer-inner { display: flex; align-items: center; gap: 1rem }
.home-header-inner { min-block-size: 4.5rem; justify-content: space-between }
.home-brand {
  display: inline-flex;
  gap: .55rem;
  align-items: center;
  min-block-size: 44px;
  color: var(--home-ink);
  font-weight: 780;
  font-size: 1.125rem;
  letter-spacing: .035em;
  text-decoration: none;
}
.home-brand img { border-radius: .4rem }
.home-nav, .home-footer nav { display: flex; align-items: center; flex-wrap: wrap; column-gap: clamp(.875rem, 2.8vw, 2.25rem) }
.home-nav a, .home-footer nav a {
  display: inline-flex;
  align-items: center;
  min-block-size: 44px;
  color: var(--home-muted);
  text-decoration: none;
  font-size: .9375rem;
  font-weight: 560;
}
.home-nav a:hover, .home-footer nav a:hover { color: var(--home-ink); text-decoration: underline; text-underline-offset: .3em }

.home-link {
  display: inline-flex;
  align-items: center;
  gap: .6em;
  min-block-size: 44px;
  color: var(--home-current);
  font-family: inherit;
  font-size: .9375rem;
  font-weight: 650;
  text-decoration-thickness: 1px;
  text-underline-offset: .28em;
}

.home-hero {
  display: grid;
  grid-template-columns: minmax(0, .8fr) minmax(0, 1.3fr);
  align-items: center;
  gap: clamp(2rem, 5.1vw, 5rem);
  padding-block: clamp(3rem, 8vw, 7rem) clamp(3rem, 6.2vw, 6.5rem);
}
.home-hero-copy { padding-block-end: clamp(0rem, 2vw, 2.1rem) }
.home-kicker {
  display: flex;
  align-items: center;
  gap: .6rem;
  color: var(--home-current);
  font-size: .875rem;
  font-weight: 720;
}
.home-kicker::before { content: ""; inline-size: 1.45rem; block-size: 2px; background: currentColor; flex: none }
.home-hero h1 {
  margin-block: .65rem 1rem;
  font-size: clamp(2.55rem, 4.25vw, 4rem);
  line-height: 1.06;
  letter-spacing: -.064em;
  font-weight: 760;
}
.home-lead {
  max-inline-size: 34ch;
  color: var(--home-muted);
  font-size: clamp(1rem, 1.4vw, 1.2rem);
  line-height: 1.75;
}
.home-actions { display: flex; flex-wrap: wrap; align-items: center; gap: .625rem 1.125rem; margin-block-start: 1.55rem }
.home-actions .z-button { padding-inline: 1.15rem; min-block-size: 48px }
.home-install-card {
  padding: clamp(1rem,3vw,1.45rem);
  margin-block-end: 1.25rem;
  scroll-margin-block-start: 7rem;
  background: var(--z-surface);
  border: 1px solid var(--z-line);
  border-radius: var(--z-radius);
}
.home-install-card h3 { margin: 0 0 .4rem; }
.home-install-card p { margin: 0; line-height: var(--z-leading); color: var(--z-muted); }
.home-install-card .home-install-actions { display: flex; flex-wrap: wrap; align-items: center; gap: .5rem 1rem; margin-block-start: .85rem; }

.theme-showcase { min-inline-size: 0 }
.showcase-stage {
  padding: clamp(.5rem, 1.5vw, 1rem);
  border: 1px solid var(--home-line);
  border-radius: calc(var(--z-radius, .65rem) + .5rem);
  background: var(--z-raised, #e8edfa);
}
.home-demo {
  display: grid;
  grid-template-rows: auto auto;
  overflow: hidden;
  border: 1px solid #39465f;
  border-radius: var(--z-radius, .65rem);
  background: #151d2c;
  color: #f2f5ff;
  box-shadow: 0 12px 24px #0e1a3026;
  font-size: clamp(.625rem, .93vw, .8rem);
  line-height: 1.4;
  user-select: none;
}
@media (prefers-reduced-motion: no-preference) {
  @supports (animation-timeline: view()) and (animation-range: exit 0% exit 90%) {
    .home-demo {
      transform-origin: center top;
      animation: home-preview-on-scroll linear both;
      animation-timeline: view();
      animation-range: exit 0% exit 90%;
    }
  }
}
@keyframes home-preview-on-scroll {
  from { transform: translateY(0) scale(1) }
  to { transform: translateY(1.5rem) scale(.92) }
}
.demo-header, .demo-remote-title, .demo-side-heading, .demo-remote-tools, .demo-permission {
  display: flex;
  min-inline-size: 0;
  align-items: center;
  gap: .45rem;
}
.demo-header {
  justify-content: space-between;
  padding: .6rem .8rem;
  border-block-end: 1px solid #3b475d;
  background: #202a3d;
}
.demo-brand { display: flex; align-items: center; gap: .32rem; font-weight: 780; letter-spacing: .035em }
.demo-brand img { border-radius: 4px }
.demo-device { display: inline-flex; align-items: center; gap: .4em; color: #deebff }
.demo-device i, .demo-permission i {
  inline-size: .46rem;
  block-size: .46rem;
  background: #84d9ac;
  border-radius: 50%;
  flex: none;
}
.demo-window-menu { font-size: 1.1em; color: #b8c7e1; letter-spacing: .09em }
.demo-body { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, .45fr) }
.demo-remote, .demo-companion { min-inline-size: 0; padding: clamp(.55rem, 1.45vw, .95rem) }
.demo-remote-title { justify-content: space-between; margin-block-end: .6rem }
.demo-remote-title span, .demo-side-heading span, .demo-remote-tools { color: #c0cce2 }
.demo-desktop {
  position: relative;
  isolation: isolate;
  display: grid;
  aspect-ratio: 1.52;
  place-items: center;
  min-inline-size: 0;
  border-radius: .36rem;
  overflow: hidden;
  background: var(--show-a, #526aa4);
}
.demo-glow {
  position: absolute;
  inset: 0;
  z-index: -1;
  opacity: 0;
  background: var(--theme-a);
  transition: opacity .45s ease;
}
.demo-glow::before, .demo-glow::after {
  position: absolute;
  inset: auto;
  content: "";
  inline-size: 88%;
  block-size: 76%;
  border: 1px solid #f5f9ff38;
  border-radius: 45%;
  transform: rotate(-32deg);
}
.demo-glow::before { inset-inline-start: 24%; inset-block-start: 17%; background: var(--theme-b) }
.demo-glow::after { inset-inline-start: 39%; inset-block-start: 28%; background: #dbe8ff38 }
.demo-glow.is-active { opacity: 1 }
.demo-document {
  inline-size: 66%;
  min-block-size: 56%;
  border: 1px solid #b9c8e1;
  border-radius: .4rem;
  overflow: hidden;
  background: #f6f8fc;
  color: #1b2a44;
  box-shadow: 0 12px 25px #16244441;
}
.demo-document-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: .31rem .42rem;
  border-block-end: 1px solid #cdd7eb;
  background: #e5ecf8;
  color: #40516b;
}
.demo-document-bar i { inline-size: .35rem; block-size: .35rem; border-radius: 50%; background: #7893c0 }
.demo-document-content { display: grid; gap: .32em; padding: clamp(.37rem, 1.3vw, .9rem) }
.demo-document-content strong { margin-block-end: .22em; font-size: 1.42em; letter-spacing: -.04em }
.demo-task { display: flex; align-items: center; gap: .28rem; color: #42536b }
.demo-task i {
  display: grid;
  inline-size: .72rem;
  block-size: .72rem;
  flex: none;
  place-items: center;
  border: 1px solid #637896;
  border-radius: 2px;
  font-size: .9em;
  font-style: normal;
  line-height: 1;
}
.demo-task-done i { background: #bde4d0; color: #215643; border-color: #74a28b }
.demo-taskbar {
  position: absolute;
  inset-block-end: .4rem;
  display: flex;
  align-items: center;
  gap: .2rem;
  padding: .27rem .34rem;
  border-radius: .2rem;
  background: #1d2e588e;
}
.demo-taskbar i { inline-size: .35rem; block-size: .35rem; border-radius: 1px; background: #c4d8ff }
.demo-taskbar i:nth-child(2) { background: #95deb6 }
.demo-taskbar i:nth-child(3) { background: #f4dbae }
.demo-remote-tools { margin-block-start: .54rem; justify-content: space-between; flex-wrap: wrap }
.demo-companion { border-inline-start: 1px solid #3b475d; background: #1c273c }
.demo-side-heading { align-items: flex-start; flex-direction: column; padding-block: 0 .5rem }
.demo-permission { min-block-size: 2.05em; border-block-start: 1px solid #3b475d; color: #dbe4f6 }
.demo-permission b { margin-inline-start: auto; color: #a0e4bc; font-weight: 650 }
.demo-pad {
  display: grid;
  min-block-size: 2.85rem;
  place-items: center;
  margin-block-start: .55rem;
  border: 1px solid #52627e;
  border-radius: .375rem;
  background: #252f44;
  color: #c5d9ff;
  font-size: 1.15em;
}
.theme-caption {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: .4rem 1rem;
  padding-block: .85rem .2rem;
}
.theme-caption h2 { font-size: .9375rem; letter-spacing: -.018em }
.theme-caption p { color: var(--home-muted); font-size: .8125rem; font-variant-numeric: tabular-nums }
.theme-caption .z-button { min-block-size: 44px; font-size: .8125rem }
.theme-details summary, .home-disclosure summary { cursor: pointer }
.theme-details summary {
  inline-size: fit-content;
  min-block-size: 44px;
  padding-block: .6rem;
  color: var(--home-current);
  font-size: .875rem;
  font-weight: 650;
}
.theme-pickers { display: flex; flex-wrap: wrap; gap: .4rem; padding-block-end: .17rem }
.theme-pickers button {
  min-block-size: 44px;
  border: 1px solid var(--home-line);
  border-radius: var(--z-radius, .65rem);
  padding-inline: .62rem;
  background: var(--home-panel);
  color: var(--home-ink);
  font-family: inherit;
  font-size: .8125rem;
  font-weight: 600;
  line-height: 1.35;
  cursor: pointer;
}
.theme-pickers button:hover, .theme-pickers button[aria-pressed="true"] { background: var(--home-tint); border-color: var(--home-current) }
.theme-pickers button[aria-pressed="true"] { box-shadow: inset 0 -2px var(--home-current) }

.home-section {
  display: grid;
  grid-template-columns: minmax(0, .8fr) minmax(0, 1.3fr);
  gap: clamp(1.25rem, 5.1vw, 5rem);
  padding-block: clamp(2.75rem, 6.5vw, 5.75rem);
  scroll-margin-block-start: 1.5rem;
}
.home-section h2 { font-size: clamp(1.7rem, 3.1vw, 3rem); line-height: 1.14; letter-spacing: -.045em }
.home-section-intro p { max-inline-size: 26ch; margin-block-start: .9rem; color: var(--home-muted) }
.home-section-intro a { margin-block-start: .72rem }
.home-section#product { border-block-start: 1px solid var(--home-line) }
.home-capabilities > div {
  display: grid;
  grid-template-columns: minmax(8rem, .65fr) minmax(0, 1.35fr);
  gap: .45rem 1.25rem;
  border-block-start: 1px solid var(--home-line);
  padding-block: 1.12rem;
}
.home-capabilities > div:last-child { border-block-end: 1px solid var(--home-line) }
.home-capabilities dt { font-weight: 700; color: var(--home-ink); word-break: keep-all; overflow-wrap: anywhere }
.home-capabilities dd { color: var(--home-muted) }

@media screen and (prefers-reduced-motion: no-preference) {
  @supports (animation-timeline: view()) and (animation-range: cover 0% cover 100%) {
    #product {
      view-timeline: --home-product block;
      --feature-slide: clamp(2rem, 8vw, 7rem);
    }
    #product .home-capabilities { overflow-x: clip }
    #product .home-capabilities > div {
      position: relative;
      display: grid;
      grid-template-columns: minmax(0, 1fr);
      align-content: center;
      gap: 1rem;
      min-block-size: clamp(15rem, 49svh, 28rem);
      padding: 2.5rem clamp(1rem, 4vw, 3rem);
      --feature-turn: -23deg;
      --feature-exit-turn: 13deg;
      view-timeline: --home-feature block;
    }
    #product .home-capabilities > div:nth-child(even) {
      --feature-turn: 23deg;
      --feature-exit-turn: -13deg;
    }
    #product .home-capabilities > div::before {
      content: "";
      position: absolute;
      inset: .75rem 0;
      pointer-events: none;
      border-inline-start: 2px solid var(--home-current);
      border-radius: var(--z-radius);
      background: linear-gradient(95deg, var(--home-tint), transparent 85%);
      animation: home-feature-depth auto ease-in-out both;
      animation-timeline: --home-feature;
      animation-range: cover 0% cover 100%;
    }
    #product .home-capabilities :is(dt, dd) {
      position: relative;
      transform-origin: left center;
      animation: home-feature-copy auto ease-in-out both;
      animation-timeline: --home-feature;
      animation-range: cover 0% cover 100%;
    }
    #product .home-capabilities dt {
      --feature-rise: 3rem;
      --feature-scale: .82;
      --copy-turn: var(--feature-turn);
      --copy-exit-turn: var(--feature-exit-turn);
      font-size: clamp(2rem, 4.6vw, 4rem);
      line-height: 1.14;
      letter-spacing: -.035em;
    }
    #product .home-capabilities dd {
      --feature-rise: 1.25rem;
      --feature-scale: 1;
      --copy-turn: 0deg;
      --copy-exit-turn: 0deg;
      max-inline-size: 42ch;
    }
    @media (min-width: 53.01rem) and (min-height: 37rem) {
      #product .home-section-intro {
        position: sticky;
        inset-block-start: clamp(4rem, 26svh, 14rem);
        align-self: start;
        animation: home-intro-follow auto ease-in-out both;
        animation-timeline: --home-product;
        animation-range: contain 0% contain 100%;
      }
    }
  }
}
@keyframes home-feature-copy {
  from {
    transform: perspective(48rem) translate(var(--feature-slide), var(--feature-rise)) rotateY(var(--copy-turn)) scale(var(--feature-scale));
  }
  43%, 57% { transform: perspective(48rem) translateY(0) rotateY(0deg) scale(1) }
  to { transform: perspective(48rem) translateY(calc(var(--feature-rise) * -.4)) rotateY(var(--copy-exit-turn)) scale(var(--feature-scale)) }
}
@keyframes home-feature-depth {
  from { opacity: .18; transform: perspective(46rem) translateX(var(--feature-slide)) rotateX(16deg) rotateY(var(--feature-turn)) scale(.87) }
  43%, 57% { opacity: 1; transform: perspective(46rem) rotateX(0deg) rotateY(0deg) scale(1) }
  to { opacity: .12; transform: perspective(46rem) rotateX(-9deg) rotateY(var(--feature-exit-turn)) scale(.91) }
}
@keyframes home-intro-follow {
  from { transform: translateY(2rem) }
  to { transform: translateY(-2rem) }
}

.home-start {
  border-block: 1px solid var(--home-line);
  background: var(--home-panel);
  scroll-margin-block-start: 1.5rem;
}
.home-steps { counter-reset: home-step; margin: 0; padding: 0; list-style: none }
.home-steps li {
  position: relative;
  border-block-start: 1px solid var(--home-line);
  padding: .85rem 0 .9rem 3.15rem;
  counter-increment: home-step;
}
.home-steps li::before {
  position: absolute;
  inset: .9rem auto auto 0;
  display: grid;
  inline-size: 2.2rem;
  block-size: 2.2rem;
  place-items: center;
  border-radius: var(--z-radius, .65rem);
  background: var(--home-tint);
  color: var(--home-current);
  content: counter(home-step);
  font-weight: 680;
  font-variant-numeric: tabular-nums;
}
.home-steps h3 { font-size: 1.02rem; line-height: 1.4 }
.home-steps p, .home-disclosure p { color: var(--home-muted); margin-block-start: .35rem }
.home-release { margin-block-start: .5rem }
.home-disclosure { border-block-start: 1px solid var(--home-line) }
.home-disclosure summary {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: .7rem;
  min-block-size: 52px;
  padding-block: .6rem;
  color: var(--home-ink);
  font-weight: 680;
}
.home-disclosure summary::-webkit-details-marker { display: none }
.home-disclosure summary::after {
  content: "";
  inline-size: .55rem;
  block-size: .55rem;
  margin-inline-end: .25rem;
  flex: none;
  border-inline-end: 2px solid var(--home-current);
  border-block-end: 2px solid var(--home-current);
  transform: rotate(45deg);
}
.home-disclosure[open] summary::after { transform: rotate(225deg) }
.home-disclosure[open] > :last-child { margin-block-end: .8rem }
.home-faq { border-block-end: 1px solid var(--home-line) }
.home-footer { border-block-start: 1px solid var(--home-line) }
.home-footer-inner { min-block-size: 5rem; justify-content: space-between; flex-wrap: wrap; padding-block: .6rem }

@media (max-width: 53rem) {
  .home-hero { grid-template-columns: 1fr; gap: 1.85rem }
  .home-hero-copy { padding: 0 }
  .home-hero h1 { font-size: clamp(2.5rem, 7.5vw, 4rem) }
  .home-section { grid-template-columns: minmax(0, .7fr) minmax(0, 1.3fr) }
  .home-capabilities > div { grid-template-columns: 1fr }
  .home-demo { font-size: clamp(.65rem, 1.6vw, .82rem) }
  .demo-desktop { aspect-ratio: 1.75 }
}
@media (max-width: 36rem) {
  .home-header-inner { flex-wrap: wrap; min-block-size: 3.25rem; padding-block-start: .35rem; column-gap: .6rem; row-gap: 0 }
  .home-nav { order: 1; flex-basis: 100%; gap: clamp(.8rem, 4.2vw, 1.5rem); margin-block-start: .2rem }
  .home-section { grid-template-columns: 1fr }
  .home-section-intro h2 br { display: none }
  .home-hero { padding-block-start: 2.65rem }
  .demo-body { grid-template-columns: 1fr }
  .demo-companion {
    display: grid;
    grid-template-columns: repeat(3,minmax(0,1fr));
    gap: .34rem;
    border-inline-start: 0;
    border-block-start: 1px solid #3b475d;
  }
  .demo-side-heading { grid-column: 1 / -1; flex-direction: row; justify-content: space-between; align-items: center; padding: 0; gap: .22rem }
  .demo-permission { gap: .16rem; border-block-start: none; line-height: 1.15; flex-wrap: wrap; padding-inline-end: .1rem }
  .demo-permission i { inline-size: .32rem; block-size: .32rem }
  .demo-permission b { margin-inline-start: 0 }
  .demo-pad { display: none }
  .home-footer-inner { align-items: flex-start; flex-direction: column; gap: 0 }
}
@media (prefers-reduced-motion: reduce) {
  #zeus-home .demo-glow { transition: none }
}
@media (prefers-reduced-motion: no-preference) {
  #zeus-home .home-disclosure[open] > :not(summary) {
    animation: z-control-enter var(--z-enter) var(--z-ease-out);
  }
}
