:root {
  color-scheme: light;
  --text: #17251e;
  --muted: #405148;
  --line: rgba(23, 37, 30, 0.22);
  --green: #237a3c;
  --green-ink: #fff;
}

* {
  box-sizing: border-box;
}

body {
  min-width: 320px;
  min-height: 100vh;
  margin: 0;
  background: #cfe3ec url("assets/appbg.png") center center / cover no-repeat fixed;
  color: var(--text);
  font-family: "Segoe UI", Tahoma, Geneva, Verdana, sans-serif;
  line-height: 1.55;
}

a {
  color: inherit;
  text-underline-offset: 0.2em;
}

a:hover {
  color: var(--green);
}

button {
  font: inherit;
}

.page-shell {
  min-height: 100vh;
  padding: 0 24px;
}

.topbar,
main,
.site-footer {
  width: min(1000px, 100%);
  margin: 0 auto;
}

.topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 92px;
  border-bottom: 1px solid var(--line);
}

.topbar {
  border-bottom-color: rgba(255, 255, 255, 0.3);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
}

.brand-logo {
  width: 42px;
  height: 42px;
}

.brand-wordmark {
  width: 150px;
  height: auto;
}

.topbar nav,
.site-footer nav {
  display: flex;
  align-items: center;
  gap: 20px;
}

.topbar nav a,
.site-footer nav a {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  font-weight: 600;
  text-decoration: none;
}

.topbar nav a {
  color: #f7fbf8;
  text-shadow: 0 1px 4px rgba(9, 30, 43, 0.6);
}

.menu-toggle {
  display: none;
}

.icon {
  width: 18px;
  height: 18px;
  flex: 0 0 auto;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
  transition: color 150ms ease, transform 150ms ease;
}

.icon-brand {
  stroke-width: 1.7;
}

.icon-external {
  width: 14px;
  height: 14px;
}

a:hover .icon,
button:hover .icon {
  transform: translateY(-1px);
}

.hero {
  padding: 72px 0 52px;
}

.eyebrow,
.command-label {
  margin: 0 0 12px;
  color: var(--green);
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.08em;
}

h1,
h2,
h3,
p {
  margin-top: 0;
}

h1 {
  max-width: 18ch;
  margin-bottom: 16px;
  font-size: 48px;
  line-height: 1.08;
}

.hero h1,
.hero .lede {
  color: #fff;
  text-shadow: 0 2px 8px rgba(9, 30, 43, 0.6);
}

.hero .eyebrow,
.command-label {
  color: #c5f2a5;
  text-shadow: 0 1px 4px rgba(9, 30, 43, 0.7);
}

.command-note {
  color: #fff;
  text-shadow: 0 1px 4px rgba(9, 30, 43, 0.7);
}

.lede {
  max-width: 60ch;
  margin-bottom: 32px;
  color: var(--muted);
  font-size: 18px;
}

.command-label {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 8px;
}

.command-wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: rgba(8, 27, 36, 0.92);
}

.command-wrap pre {
  min-width: 0;
  margin: 0;
  overflow-wrap: anywhere;
  white-space: pre-wrap;
}

#ps-command {
  color: #fff;
  font-family: Consolas, "Courier New", monospace;
  font-size: 15px;
}

.copy-button,
.button {
  display: inline-flex;
  min-height: 44px;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 9px 14px;
  border: 1px solid var(--line);
  border-radius: 4px;
  color: var(--text);
  font-weight: 700;
  text-align: center;
  text-decoration: none;
  white-space: normal;
}

.copy-button {
  flex: 0 0 auto;
  border-color: var(--green);
  background: #eef7ef;
  color: var(--green);
  cursor: pointer;
}

.copy-button:hover,
.copy-button.success {
  background: var(--green);
  color: var(--green-ink);
}

.copy-button.error {
  border-color: #a43a32;
  background: #fff1ef;
  color: #8d2d27;
}

.copy-button .icon-success,
.copy-button .icon-error {
  display: none;
}

.copy-button.success .icon-copy,
.copy-button.error .icon-copy {
  display: none;
}

.copy-button.success .icon-success,
.copy-button.error .icon-error {
  display: block;
}

.command-note {
  margin: 8px 0 36px;
  color: var(--muted);
  font-size: 0.9rem;
}

.download-section h2,
.about-section h2 {
  margin-bottom: 16px;
  font-size: 24px;
}

.download-options {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 24px;
}

.download-option {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
  min-width: 0;
  padding: 16px 0;
  border-top: 1px solid var(--line);
}

.download-option h3 {
  margin-bottom: 4px;
  font-size: 17px;
}

.download-option p {
  margin-bottom: 0;
  color: var(--muted);
  font-size: 0.92rem;
}

.button.primary {
  border-color: var(--green);
  background: var(--green);
  color: var(--green-ink);
}

.button.secondary {
  border-color: rgba(23, 37, 30, 0.35);
  background: rgba(255, 255, 255, 0.82);
  color: var(--text);
}

.button:hover,
.copy-button:hover {
  text-decoration: none;
}

.about-section {
  padding: 24px 0 40px;
  border-top: 1px solid var(--line);
}

.about-section p {
  max-width: 70ch;
  color: var(--muted);
}

.about-section strong {
  color: var(--text);
}

.text-link {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  font-weight: 600;
}

.beta-note {
  margin-bottom: 0;
  font-size: 0.9rem;
}

.site-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  min-height: 68px;
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: 0.9rem;
}

.site-footer p {
  margin: 0;
}

:focus-visible {
  outline: 2px solid var(--green);
  outline-offset: 3px;
}

@media (max-width: 600px) {
  .page-shell {
    padding: 0 18px;
  }

  .topbar {
    min-height: 76px;
  }

  .brand {
    gap: 8px;
  }

  .brand-logo {
    width: 34px;
    height: 34px;
  }

  .brand-wordmark {
    width: 120px;
  }

  .site-footer nav {
    gap: 14px;
  }

  .topbar {
    position: relative;
    flex-wrap: wrap;
    padding: 12px 0;
  }

  .menu-toggle {
    display: inline-flex;
    width: 42px;
    height: 42px;
    align-items: center;
    justify-content: center;
    border: 1px solid var(--line);
    border-radius: 4px;
    background: rgba(255, 255, 255, 0.76);
    color: var(--text);
    cursor: pointer;
  }

  .menu-toggle .icon-close,
  .menu-toggle[aria-expanded="true"] .icon-menu {
    display: none;
  }

  .menu-toggle[aria-expanded="true"] .icon-close {
    display: block;
  }

  .topbar nav {
    display: none;
    width: 100%;
    justify-content: flex-end;
    gap: 20px;
    padding: 14px 2px 4px;
  }

  .topbar nav.is-open {
    display: flex;
  }

  .hero {
    padding: 48px 0 36px;
  }

  h1 {
    font-size: 38px;
  }

  .lede {
    font-size: 16px;
  }

  .command-wrap {
    align-items: stretch;
    flex-direction: column;
  }

  .copy-button,
  .download-options,
  .download-option,
  .download-option .button {
    width: 100%;
  }

  .download-options {
    grid-template-columns: 1fr;
    gap: 8px;
  }

  .site-footer {
    align-items: flex-start;
    flex-direction: column;
    justify-content: center;
    padding: 16px 0;
  }
}

@media (max-width: 600px) {
  body {
    background-attachment: scroll;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    transition-duration: 0.01ms !important;
  }
}

:root {
  color-scheme: dark;
  --text: #f1f5f7;
  --muted: #b6c5cf;
  --line: rgba(214, 231, 240, 0.18);
  --green: #8de26b;
  --green-ink: #102112;
  --navy: #071522;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: 24px;
}

body {
  position: relative;
  isolation: isolate;
  min-width: 320px;
  background: var(--navy);
  color: var(--text);
  font-family: Inter, Aptos, "Segoe UI Variable", "Segoe UI", sans-serif;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

body::before {
  position: fixed;
  z-index: -1;
  inset: -1.5%;
  content: "";
  background-image:
    linear-gradient(90deg, rgba(4, 14, 25, 0.91) 0%, rgba(4, 14, 25, 0.76) 46%, rgba(4, 14, 25, 0.22) 100%),
    linear-gradient(180deg, #071522 0, rgba(7, 21, 34, 0.96) 90px, rgba(7, 21, 34, 0.42) 28%, rgba(7, 21, 34, 0.42) 64%, #071522 100%),
    url("assets/appbg.png");
  background-position: center, center, center 48%;
  background-size: cover;
  transform: scale(1.02);
  animation: landscape-drift 48s ease-in-out infinite alternate;
  will-change: transform;
}

a {
  color: inherit;
  text-decoration-thickness: 1px;
  transition: color 160ms ease, border-color 160ms ease, background-color 160ms ease;
}

a:hover {
  color: #b6f09b;
}

.page-shell {
  position: relative;
  z-index: 0;
  min-height: 100vh;
  padding: 0 clamp(20px, 5vw, 80px);
  animation: page-enter 650ms ease-out both;
}

.topbar,
main,
.site-footer {
  width: min(1120px, 100%);
}

.topbar {
  min-height: 82px;
  border-bottom: 1px solid rgba(225, 237, 244, 0.16);
}

.brand {
  gap: 10px;
}

.brand-logo {
  width: 38px;
  height: 38px;
  border-radius: 9px;
}

.brand-wordmark {
  width: 142px;
}

.topbar nav {
  gap: 26px;
}

.topbar nav a,
.site-footer nav a {
  color: rgba(245, 249, 251, 0.84);
  font-size: 0.94rem;
  text-shadow: none;
}

.topbar nav a:hover,
.site-footer nav a:hover {
  color: var(--green);
}

.icon {
  width: 17px;
  height: 17px;
}

.hero {
  padding: 64px 0 42px;
}

.eyebrow,
.command-label {
  color: #b9f49d;
  text-shadow: none;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.12em;
}

.eyebrow {
  margin-bottom: 15px;
}

h1 {
  max-width: none;
  margin-bottom: 18px;
  font-size: 56px;
  font-weight: 680;
  line-height: 1.08;
}

.hero h1,
.hero .lede {
  color: #f5f8fa;
  text-shadow: none;
}

.headline-accent {
  color: #9ae77a;
}

.lede {
  max-width: 58ch;
  margin-bottom: 30px;
  color: rgba(239, 246, 250, 0.84);
  font-size: 17px;
  line-height: 1.7;
}

.command-section {
  max-width: 860px;
}

.command-label {
  gap: 9px;
  margin-bottom: 10px;
  color: rgba(231, 241, 246, 0.8);
}

.command-label .icon {
  color: var(--green);
}

.command-wrap {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 14px;
  padding: 14px;
  border: 1px solid rgba(204, 225, 238, 0.22);
  border-radius: 9px;
  background: rgba(4, 17, 29, 0.88);
  box-shadow: 0 18px 48px rgba(0, 0, 0, 0.22);
  backdrop-filter: blur(12px);
}

.command-wrap pre {
  display: flex;
  min-width: 0;
  align-items: center;
  overflow: hidden;
  white-space: pre-wrap;
  overflow-wrap: anywhere;
}

#ps-command {
  color: #f1f8fb;
  font-family: "Cascadia Code", "SFMono-Regular", Consolas, monospace;
  font-size: 14px;
  line-height: 1.65;
  overflow-wrap: anywhere;
}

.copy-button,
.button {
  min-height: 48px;
  padding: 10px 16px;
  border-radius: 6px;
  font-size: 0.9rem;
  font-weight: 650;
  transition: color 160ms ease, background-color 160ms ease, border-color 160ms ease, transform 160ms ease, box-shadow 160ms ease;
}

.copy-button {
  border-color: var(--green);
  background: var(--green);
  color: var(--green-ink);
}

.copy-button:hover,
.copy-button.success {
  border-color: #a9f18b;
  background: #a9f18b;
  color: #102112;
  box-shadow: 0 5px 20px rgba(141, 226, 107, 0.16);
}

.copy-button:active,
.button:active {
  transform: translateY(1px) scale(0.985);
}

.copy-button.error {
  border-color: #f28a83;
  background: #f28a83;
  color: #34110f;
}

.command-note {
  max-width: 76ch;
  margin: 10px 0 34px;
  color: rgba(226, 237, 243, 0.72);
  font-size: 0.84rem;
  text-shadow: none;
}

.download-section h2,
.about-section h2 {
  margin-bottom: 14px;
  color: #f3f7f9;
  font-size: 21px;
  font-weight: 650;
}

.download-options {
  gap: 16px;
}

.download-option {
  min-height: 158px;
  padding: 19px;
  border: 1px solid rgba(209, 228, 238, 0.17);
  border-radius: 8px;
  background: rgba(8, 24, 38, 0.7);
  box-shadow: 0 12px 34px rgba(0, 0, 0, 0.12);
  transition: transform 180ms ease, border-color 180ms ease, background-color 180ms ease;
}

.download-option:hover {
  transform: translateY(-3px);
  border-color: rgba(154, 231, 122, 0.48);
  background: rgba(8, 24, 38, 0.84);
}

.download-option h3 {
  margin-bottom: 4px;
  color: #f0f5f7;
  font-size: 1rem;
  font-weight: 650;
}

.download-option p {
  color: rgba(222, 234, 240, 0.7);
  font-size: 0.88rem;
}

.download-option .button {
  width: 100%;
  justify-content: center;
  white-space: nowrap;
}

.button.primary {
  border-color: var(--green);
  background: var(--green);
  color: var(--green-ink);
}

.button.primary:hover {
  border-color: #a9f18b;
  background: #a9f18b;
  color: #102112;
  box-shadow: 0 6px 18px rgba(141, 226, 107, 0.14);
}

.button.secondary {
  border-color: rgba(218, 233, 241, 0.3);
  background: rgba(225, 238, 245, 0.07);
  color: #f1f6f8;
}

.button.secondary:hover {
  border-color: rgba(218, 233, 241, 0.62);
  background: rgba(225, 238, 245, 0.13);
  color: #fff;
}

.about-section {
  margin-top: 30px;
  padding: 28px 0 34px;
  border-top: 1px solid rgba(225, 237, 244, 0.17);
}

.about-section p {
  max-width: 70ch;
  color: rgba(226, 237, 243, 0.76);
}

.about-section strong {
  color: #f2f7f9;
}

.text-link {
  color: #b9f49d;
  font-size: 0.92rem;
}

.text-link:hover {
  color: #d3ffc0;
}

.site-footer {
  min-height: 78px;
  border-top: 1px solid rgba(225, 237, 244, 0.14);
  color: rgba(218, 231, 238, 0.62);
  font-size: 0.82rem;
}

.site-footer nav {
  gap: 18px;
}

.site-footer nav a {
  font-size: 0.84rem;
}

.beta-note {
  color: rgba(218, 231, 238, 0.64);
  font-size: 0.82rem;
}

.topbar a:focus-visible,
.site-footer a:focus-visible,
.button:focus-visible,
.copy-button:focus-visible,
.menu-toggle:focus-visible {
  outline: 2px solid #b9f49d;
  outline-offset: 4px;
}

.eyebrow,
.hero h1,
.hero .lede,
.command-section {
  animation: rise-in 580ms cubic-bezier(0.2, 0.7, 0.2, 1) both;
}

.hero h1 {
  animation-delay: 70ms;
}

.hero .lede {
  animation-delay: 140ms;
}

.command-section {
  animation-delay: 210ms;
}

[data-reveal].reveal-ready {
  opacity: 0;
  transform: translateY(14px);
  transition: opacity 520ms ease, transform 520ms ease;
}

[data-reveal].reveal-ready.is-visible {
  opacity: 1;
  transform: translateY(0);
}

@keyframes page-enter {
  from { opacity: 0; transform: translateY(8px); }
  to { opacity: 1; transform: translateY(0); }
}

@keyframes rise-in {
  from { opacity: 0; transform: translateY(12px); }
  to { opacity: 1; transform: translateY(0); }
}

@keyframes landscape-drift {
  from { transform: scale(1.02) translate3d(0, 0, 0); }
  to { transform: scale(1.04) translate3d(0, -0.45%, 0); }
}

@media (max-width: 700px) {
  .page-shell {
    padding: 0 20px;
  }

  .topbar {
    min-height: 72px;
  }

  .brand-logo {
    width: 34px;
    height: 34px;
  }

  .brand-wordmark {
    width: 126px;
  }

  .menu-toggle {
    display: inline-flex;
    width: 42px;
    height: 42px;
    align-items: center;
    justify-content: center;
    border: 1px solid rgba(224, 238, 245, 0.28);
    border-radius: 6px;
    background: rgba(7, 21, 34, 0.76);
    color: #f1f6f8;
    cursor: pointer;
    transition: background-color 160ms ease, border-color 160ms ease;
  }

  .menu-toggle:hover {
    border-color: rgba(185, 244, 157, 0.7);
    background: rgba(7, 21, 34, 0.95);
  }

  .topbar nav {
    display: none;
    width: 100%;
    justify-content: flex-end;
    gap: 22px;
    padding: 12px 2px 2px;
  }

  .topbar nav.is-open {
    display: flex;
  }

  .hero {
    padding: 46px 0 32px;
  }

  h1 {
    font-size: 36px;
    line-height: 1.12;
  }

  .lede {
    max-width: 52ch;
    font-size: 16px;
  }

  .command-wrap {
    grid-template-columns: minmax(0, 1fr);
    gap: 12px;
    padding: 12px;
  }

  .copy-button {
    width: 100%;
  }

  .command-note {
    margin-bottom: 28px;
  }

  .download-options {
    grid-template-columns: 1fr;
    gap: 10px;
  }

  .download-option {
    min-height: 142px;
  }

  .site-footer {
    align-items: flex-start;
    flex-direction: column;
    justify-content: center;
    gap: 10px;
    padding: 18px 0;
  }
}

@media (max-width: 380px) {
  .page-shell {
    padding-right: 17px;
    padding-left: 17px;
  }

  .hero {
    padding-top: 38px;
  }

  h1 {
    font-size: 32px;
  }

  .eyebrow,
  .command-label {
    font-size: 0.66rem;
  }

  .download-option {
    padding: 16px;
  }

  .download-option .button {
    white-space: normal;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    scroll-behavior: auto !important;
    transition-duration: 0.01ms !important;
  }

  [data-reveal].reveal-ready {
    opacity: 1;
    transform: none;
  }
}
