:root {
  --green-900: #153a22;
  --green-800: #24542e;
  --green-700: #34783a;
  --green-600: #4d9b3e;
  --green-500: #66b83c;
  --green-400: #83d34b;
  --lime: #b9ef58;
  --gold: #ffc94b;
  --cream: #fff9e8;
  --brown: #5b351d;
  --ink: #172018;
  --muted: #68736a;
  --surface: #ffffff;
  --surface-soft: #f4f8f1;
  --border: rgba(25, 76, 38, .12);
  --shadow: 0 22px 60px rgba(28, 58, 33, .14);
  --radius-xl: 30px;
  --radius-lg: 22px;
  --radius-md: 16px;
  --container: 1180px;
}

* { box-sizing: border-box; }

html {
  scroll-behavior: smooth;
  scroll-padding-top: 86px;
}

body {
  margin: 0;
  color: var(--ink);
  background: var(--surface);
  font-family: Inter, "PingFang SC", "Microsoft YaHei", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  line-height: 1.65;
  text-rendering: optimizeLegibility;
}

img { max-width: 100%; height: auto; }

a { color: inherit; text-decoration: none; }

button, input, a { -webkit-tap-highlight-color: transparent; }

button { font: inherit; }

code {
  font-family: "Cascadia Code", Consolas, monospace;
}

.container {
  width: min(calc(100% - 40px), var(--container));
  margin-inline: auto;
}

.narrow { max-width: 850px; }

.sr-only,
.skip-link:not(:focus) {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0,0,0,0);
  white-space: nowrap;
  border: 0;
}

.skip-link:focus {
  position: fixed;
  z-index: 9999;
  top: 12px;
  left: 12px;
  padding: 10px 16px;
  border-radius: 10px;
  background: #fff;
  color: #000;
}

/* Header */
.site-header {
  position: sticky;
  z-index: 50;
  top: 0;
  height: 76px;
  border-bottom: 1px solid rgba(255,255,255,.14);
  background: rgba(18, 38, 21, .82);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
}

.nav-wrap {
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 28px;
}

.brand {
  display: flex;
  align-items: center;
  min-width: 0;
}

.brand img {
  display: block;
  width: auto;
  height: 52px;
  object-fit: contain;
}

.site-nav {
  display: flex;
  align-items: center;
  gap: 26px;
  color: rgba(255,255,255,.86);
  font-size: 15px;
  font-weight: 650;
}

.site-nav a {
  transition: color .2s ease, transform .2s ease;
}

.site-nav a:hover {
  color: #fff;
  transform: translateY(-1px);
}

.nav-home {
  padding: 9px 15px;
  border: 1px solid rgba(255,255,255,.22);
  border-radius: 999px;
  background: rgba(255,255,255,.08);
}

.nav-toggle {
  display: none;
  width: 44px;
  height: 44px;
  border: 0;
  border-radius: 12px;
  background: rgba(255,255,255,.1);
  cursor: pointer;
}

.nav-toggle span:not(.sr-only) {
  display: block;
  width: 20px;
  height: 2px;
  margin: 4px auto;
  border-radius: 10px;
  background: #fff;
}

/* Hero */
.hero {
  position: relative;
  min-height: 710px;
  overflow: hidden;
  display: flex;
  align-items: center;
  color: #fff;
  isolation: isolate;
}

.hero-bg {
  position: absolute;
  z-index: -3;
  inset: 0;
  background:
    url("/assets/images/hero-day.webp")
    center center / cover no-repeat;
  transform: scale(1.015);
}

.hero-shade {
  position: absolute;
  z-index: -2;
  inset: 0;
  background:
    linear-gradient(90deg, rgba(12, 34, 20, .82) 0%, rgba(14, 45, 23, .58) 44%, rgba(10, 25, 18, .12) 76%),
    linear-gradient(0deg, rgba(9, 28, 14, .52) 0%, transparent 42%);
}

.hero-content {
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(300px, .65fr);
  align-items: center;
  gap: 80px;
  padding-block: 84px 92px;
}

.hero-copy { max-width: 700px; }

.status-pill {
  width: fit-content;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 8px 14px;
  border: 1px solid rgba(255,255,255,.2);
  border-radius: 999px;
  background: rgba(17, 50, 25, .44);
  backdrop-filter: blur(10px);
  color: rgba(255,255,255,.92);
  font-size: 14px;
  font-weight: 700;
}

.status-dot {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: #82f26b;
  box-shadow: 0 0 0 6px rgba(130,242,107,.14), 0 0 18px rgba(130,242,107,.8);
}

.hero h1 {
  margin: 22px 0 18px;
  font-size: clamp(48px, 6vw, 84px);
  line-height: 1.04;
  letter-spacing: -.04em;
  text-shadow: 0 5px 24px rgba(0,0,0,.24);
}

.hero h1 span {
  color: #f4ffdc;
  font-size: .66em;
  letter-spacing: -.02em;
}

.hero-lead {
  max-width: 650px;
  margin: 0;
  color: rgba(255,255,255,.87);
  font-size: clamp(17px, 2vw, 20px);
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: stretch;
  gap: 14px;
  margin-top: 30px;
}

.button {
  display: inline-flex;
  min-height: 52px;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px 22px;
  border: 0;
  border-radius: 15px;
  cursor: pointer;
  font-weight: 800;
  line-height: 1.25;
  transition: transform .2s ease, box-shadow .2s ease, background .2s ease;
}

.button:hover {
  transform: translateY(-2px);
}

.button-primary {
  flex-direction: column;
  color: #183415;
  background: linear-gradient(135deg, #c7f568, #70cf42);
  box-shadow: 0 13px 30px rgba(104, 202, 67, .28);
}

.button-primary:hover {
  box-shadow: 0 17px 36px rgba(104, 202, 67, .36);
}

.button-glass {
  color: #fff;
  border: 1px solid rgba(255,255,255,.26);
  background: rgba(255,255,255,.11);
  backdrop-filter: blur(12px);
}

.button-secondary {
  color: #fff;
  background: linear-gradient(135deg, var(--green-700), var(--green-500));
  box-shadow: 0 12px 28px rgba(51, 126, 58, .22);
}

.button-light {
  color: var(--green-900);
  background: #fff;
}

.button-large {
  min-width: 250px;
  min-height: 66px;
  padding: 14px 28px;
  font-size: 18px;
}

.button-sub {
  display: block;
  font-size: 12px;
  font-weight: 650;
  opacity: .72;
}

.hero-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 22px;
}

.hero-tags span {
  padding: 6px 11px;
  border: 1px solid rgba(255,255,255,.16);
  border-radius: 999px;
  background: rgba(13, 37, 20, .3);
  color: rgba(255,255,255,.82);
  font-size: 13px;
}

.hero-panel {
  position: relative;
  overflow: hidden;
  padding: 30px;
  border: 1px solid rgba(255,255,255,.2);
  border-radius: var(--radius-xl);
  background: rgba(17, 43, 22, .52);
  box-shadow: 0 30px 80px rgba(0,0,0,.25);
  backdrop-filter: blur(20px);
}

.panel-glow {
  position: absolute;
  width: 180px;
  height: 180px;
  right: -70px;
  top: -70px;
  border-radius: 50%;
  background: rgba(190, 241, 91, .24);
  filter: blur(10px);
}

.hero-panel img {
  width: 102px;
  height: 102px;
  border-radius: 24px;
  box-shadow: 0 15px 40px rgba(0,0,0,.25);
}

.eyebrow {
  margin: 18px 0 7px;
  color: var(--green-600);
  font-size: 12px;
  font-weight: 900;
  letter-spacing: .14em;
  text-transform: uppercase;
}

.hero-panel .eyebrow { color: #b9ee78; }

.hero-panel > strong {
  display: block;
  margin-bottom: 20px;
  font-size: 25px;
}

.hero-panel dl {
  margin: 0;
}

.hero-panel dl div {
  display: flex;
  justify-content: space-between;
  gap: 18px;
  padding: 11px 0;
  border-top: 1px solid rgba(255,255,255,.12);
}

.hero-panel dt { color: rgba(255,255,255,.64); }
.hero-panel dd { margin: 0; font-weight: 750; }

/* Quick info */
.quick-info {
  position: relative;
  z-index: 3;
  margin-top: -34px;
}

.quick-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  overflow: hidden;
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  background: var(--surface);
  box-shadow: var(--shadow);
}

.quick-grid article {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 24px 28px;
}

.quick-grid article + article {
  border-left: 1px solid var(--border);
}

.quick-icon { font-size: 31px; }
.quick-grid strong { display: block; font-size: 17px; }
.quick-grid p { margin: 2px 0 0; color: var(--muted); font-size: 13px; }

/* Sections */
.section { padding: 100px 0; }
.section-soft { background: var(--surface-soft); }

.section-heading {
  max-width: 720px;
  margin: 0 auto 46px;
  text-align: center;
}

.section-heading-left {
  margin-inline: 0;
  text-align: left;
}

.section-heading .eyebrow { margin-top: 0; }

.section-heading h2 {
  margin: 5px 0 12px;
  font-size: clamp(32px, 4vw, 48px);
  line-height: 1.15;
  letter-spacing: -.025em;
}

.section-heading p {
  margin: 0;
  color: var(--muted);
  font-size: 17px;
}

/* Download */
.download-card {
  display: grid;
  grid-template-columns: 1fr auto;
  align-items: center;
  gap: 34px;
  padding: 34px;
  border: 1px solid var(--border);
  border-radius: var(--radius-xl);
  background:
    radial-gradient(circle at 8% 0%, rgba(184,238,91,.13), transparent 36%),
    var(--surface);
  box-shadow: var(--shadow);
}

.download-main {
  min-width: 0;
  display: flex;
  align-items: center;
  gap: 24px;
}

.download-icon img {
  display: block;
  width: 112px;
  height: 112px;
  border-radius: 25px;
  box-shadow: 0 16px 36px rgba(44, 86, 38, .18);
}

.download-copy h3 {
  margin: 7px 0 8px;
  font-size: 28px;
}

.download-copy > p {
  max-width: 690px;
  margin: 0;
  color: var(--muted);
}

.release-badge {
  display: inline-flex;
  padding: 5px 10px;
  border-radius: 999px;
  background: #fff3cc;
  color: #7d5a00;
  font-size: 12px;
  font-weight: 850;
}

.meta-list {
  display: flex;
  flex-wrap: wrap;
  gap: 9px 15px;
  margin-top: 17px;
  color: #4f5e51;
  font-size: 13px;
}

.meta-list b { font-weight: 700; }

.download-action {
  min-width: 270px;
  text-align: center;
}

.safe-tip {
  margin: 11px 0 0;
  color: var(--muted);
  font-size: 12px;
}

.safe-tip code {
  color: var(--green-700);
  font-weight: 750;
}

.checksum-card {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  margin-top: 18px;
  padding: 19px 22px;
  border: 1px dashed rgba(55,120,61,.28);
  border-radius: var(--radius-md);
  background: #f8fbf6;
}

.checksum-card strong {
  display: block;
  margin-bottom: 4px;
}

.checksum-card code {
  overflow-wrap: anywhere;
  color: #526055;
  font-size: 13px;
}

.copy-button {
  flex: none;
  padding: 8px 13px;
  border: 1px solid var(--border);
  border-radius: 10px;
  background: var(--surface);
  color: var(--green-800);
  cursor: pointer;
  font-weight: 750;
}

/* Steps */
.steps {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 18px;
  margin: 0;
  padding: 0;
  list-style: none;
  counter-reset: steps;
}

.steps li {
  position: relative;
  min-height: 275px;
  padding: 30px 25px;
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  background: var(--surface);
  box-shadow: 0 12px 34px rgba(34, 66, 35, .07);
}

.step-number {
  position: absolute;
  top: 17px;
  right: 20px;
  color: rgba(70,130,65,.14);
  font-size: 32px;
  font-weight: 950;
}

.step-icon { font-size: 39px; }

.steps h3 {
  margin: 17px 0 9px;
  font-size: 20px;
}

.steps p {
  margin: 0;
  color: var(--muted);
  font-size: 14px;
}

.center-action {
  margin-top: 34px;
  text-align: center;
}

/* Notes */
.notes-layout {
  display: grid;
  grid-template-columns: 1.35fr .65fr;
  gap: 60px;
  align-items: start;
}

.release-list {
  display: grid;
  gap: 14px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.release-list li {
  position: relative;
  padding: 16px 20px 16px 48px;
  border: 1px solid var(--border);
  border-radius: 14px;
  background: var(--surface);
}

.release-list li::before {
  content: "✓";
  position: absolute;
  left: 17px;
  top: 15px;
  display: grid;
  width: 22px;
  height: 22px;
  place-items: center;
  border-radius: 50%;
  background: #e8f7d8;
  color: var(--green-700);
  font-size: 12px;
  font-weight: 900;
}

.server-card {
  position: sticky;
  top: 105px;
  padding: 31px;
  border-radius: var(--radius-xl);
  color: #fff;
  background:
    radial-gradient(circle at 95% 0%, rgba(218,255,135,.2), transparent 36%),
    linear-gradient(145deg, var(--green-900), var(--green-700));
  box-shadow: var(--shadow);
}

.server-card .eyebrow { color: #bbf082; margin-top: 0; }
.server-card h3 { margin: 3px 0 22px; font-size: 29px; }
.server-card > p { margin: 0 0 7px; color: rgba(255,255,255,.64); }

.server-address {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 13px 14px;
  border: 1px solid rgba(255,255,255,.15);
  border-radius: 13px;
  background: rgba(255,255,255,.08);
}

.server-address code { font-size: 18px; font-weight: 800; }
.server-address .copy-button {
  border-color: rgba(255,255,255,.14);
  color: #fff;
  background: rgba(255,255,255,.1);
}
.server-card small {
  display: block;
  margin-top: 13px;
  color: rgba(255,255,255,.62);
}

/* FAQ */
.faq-list { display: grid; gap: 12px; }

.faq-list details {
  overflow: hidden;
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  background: var(--surface);
}

.faq-list summary {
  position: relative;
  padding: 19px 55px 19px 22px;
  cursor: pointer;
  font-weight: 780;
  list-style: none;
}

.faq-list summary::-webkit-details-marker { display: none; }

.faq-list summary::after {
  content: "+";
  position: absolute;
  right: 22px;
  top: 50%;
  transform: translateY(-50%);
  color: var(--green-700);
  font-size: 24px;
  font-weight: 500;
}

.faq-list details[open] summary::after { content: "−"; }

.faq-list details p {
  margin: 0;
  padding: 0 22px 20px;
  color: var(--muted);
}

/* CTA + Footer */
.cta {
  color: #fff;
  background:
    linear-gradient(110deg, rgba(19,55,25,.94), rgba(48,119,49,.9)),
    url("/assets/images/hero-sunset.webp") center 62% / cover no-repeat;
}

.cta-inner {
  min-height: 320px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 40px;
}

.cta .eyebrow { color: #c6f384; margin-top: 0; }
.cta h2 { margin: 4px 0 8px; font-size: clamp(30px, 4vw, 48px); }
.cta p { margin: 0; color: rgba(255,255,255,.78); }

.site-footer {
  padding: 52px 0 26px;
  background: #132218;
  color: rgba(255,255,255,.74);
}

.footer-grid {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 35px;
}

.footer-grid img {
  width: auto;
  height: 58px;
  object-fit: contain;
}

.footer-grid p { margin: 5px 0 0; }

.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
}

.footer-links a:hover { color: #fff; }

.footer-bottom {
  display: flex;
  justify-content: space-between;
  gap: 30px;
  margin-top: 34px;
  padding-top: 22px;
  border-top: 1px solid rgba(255,255,255,.1);
  font-size: 12px;
}

.footer-bottom p { margin: 0; }

.toast {
  position: fixed;
  z-index: 100;
  left: 50%;
  bottom: 28px;
  transform: translate(-50%, 25px);
  padding: 10px 16px;
  border-radius: 999px;
  background: rgba(19,34,24,.94);
  color: #fff;
  box-shadow: 0 14px 38px rgba(0,0,0,.24);
  opacity: 0;
  pointer-events: none;
  transition: opacity .2s ease, transform .2s ease;
}

.toast.show {
  opacity: 1;
  transform: translate(-50%, 0);
}

/* Dark scheme */
@media (prefers-color-scheme: dark) {
  :root {
    --ink: #eef6ec;
    --muted: #aab8aa;
    --surface: #152019;
    --surface-soft: #101813;
    --border: rgba(198,235,190,.1);
    --shadow: 0 22px 60px rgba(0,0,0,.28);
  }

  body { background: var(--surface); }

  .quick-grid,
  .download-card,
  .steps li,
  .release-list li,
  .faq-list details {
    background: #17251b;
  }

  .download-card {
    background:
      radial-gradient(circle at 8% 0%, rgba(184,238,91,.08), transparent 36%),
      #17251b;
  }

  .release-badge {
    background: rgba(255,201,75,.14);
    color: #ffd871;
  }

  .meta-list { color: #b3c1b2; }

  .checksum-card { background: #152219; }
  .copy-button { background: #1b2b20; color: #bce987; }
  .footer-grid img { content: url("/assets/images/logo-night.webp"); }
}

/* Responsive */
@media (max-width: 980px) {
  .site-nav {
    position: fixed;
    top: 76px;
    left: 20px;
    right: 20px;
    display: none;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    padding: 12px;
    border: 1px solid rgba(255,255,255,.14);
    border-radius: 18px;
    background: rgba(17,34,21,.97);
    box-shadow: 0 25px 55px rgba(0,0,0,.28);
  }

  .site-nav.open { display: flex; }

  .site-nav a {
    padding: 12px 14px;
    border-radius: 10px;
  }

  .site-nav a:hover { background: rgba(255,255,255,.07); }
  .nav-toggle { display: block; }

  .hero { min-height: auto; }
  .hero-content {
    grid-template-columns: 1fr;
    gap: 34px;
    padding-block: 76px 90px;
  }

  .hero-copy { max-width: 760px; }
  .hero-panel { max-width: 570px; }

  .quick-grid { grid-template-columns: 1fr; }
  .quick-grid article + article {
    border-left: 0;
    border-top: 1px solid var(--border);
  }

  .download-card {
    grid-template-columns: 1fr;
  }

  .download-action { min-width: 0; }
  .download-action .button { width: 100%; }

  .steps { grid-template-columns: repeat(2, 1fr); }
  .notes-layout { grid-template-columns: 1fr; }
  .server-card { position: static; }
}

@media (max-width: 640px) {
  .container { width: min(calc(100% - 26px), var(--container)); }
  .site-header { height: 68px; }
  .brand img { height: 43px; }
  .site-nav { top: 68px; left: 13px; right: 13px; }

  .hero-bg {
    background-position: 58% center;
  }

  .hero-shade {
    background:
      linear-gradient(180deg, rgba(10,30,16,.45) 0%, rgba(10,34,17,.76) 57%, rgba(8,24,13,.9) 100%);
  }

  .hero-content {
    gap: 27px;
    padding-block: 62px 68px;
  }

  .hero h1 {
    margin-top: 18px;
    font-size: clamp(43px, 14vw, 62px);
  }

  .hero h1 span {
    display: inline-block;
    margin-top: 7px;
    font-size: .56em;
  }

  .hero-lead { font-size: 16px; }
  .hero-actions { flex-direction: column; }
  .hero-actions .button { width: 100%; }
  .hero-tags { gap: 7px; }
  .hero-panel { padding: 24px; }
  .hero-panel img { width: 82px; height: 82px; border-radius: 20px; }

  .quick-info { margin-top: -20px; }
  .quick-grid article { padding: 20px; }

  .section { padding: 72px 0; }
  .section-heading { margin-bottom: 32px; }
  .section-heading h2 { font-size: 34px; }
  .section-heading p { font-size: 15px; }

  .download-card { padding: 23px; }
  .download-main {
    align-items: flex-start;
    gap: 17px;
  }
  .download-icon img { width: 76px; height: 76px; border-radius: 18px; }
  .download-copy h3 { font-size: 22px; }
  .meta-list { display: grid; grid-template-columns: 1fr; }

  .steps { grid-template-columns: 1fr; }
  .steps li { min-height: auto; }

  .checksum-card {
    align-items: flex-start;
    flex-direction: column;
  }

  .cta-inner {
    min-height: 360px;
    flex-direction: column;
    align-items: flex-start;
    justify-content: center;
  }

  .footer-grid,
  .footer-bottom {
    align-items: flex-start;
    flex-direction: column;
  }

  .footer-grid img { height: 50px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: .001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .001ms !important;
  }
}
