:root {
  color-scheme: dark;
  --ink: #eaf2ff;
  --muted: #92a3ba;
  --quiet: #65788f;
  --surface: #091728;
  --surface-2: #0d1d30;
  --line: rgba(137, 172, 214, 0.18);
  --line-strong: rgba(81, 157, 255, 0.42);
  --blue: #3489ff;
  --blue-soft: #70b1ff;
  --yellow: #ffd54a;
  --yellow-ink: #231c00;
  --green: #58e0a7;
  --header-height: 82px;
  font-family: Inter, "Segoe UI", "Microsoft YaHei UI", "PingFang SC", system-ui, sans-serif;
  font-synthesis: none;
}

* { box-sizing: border-box; }
[hidden] { display: none !important; }

html {
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--header-height) + 28px);
}

body {
  margin: 0;
  min-width: 320px;
  color: var(--ink);
  background:
    radial-gradient(circle at 78% 5%, rgba(34, 113, 217, 0.20), transparent 30rem),
    radial-gradient(circle at 15% 33%, rgba(25, 70, 131, 0.12), transparent 24rem),
    #050c16;
  font-size: 16px;
  line-height: 1.7;
  overflow-x: hidden;
}

button, a { font: inherit; }
a { color: inherit; }
button, summary, a { -webkit-tap-highlight-color: transparent; }
:focus-visible { outline: 3px solid var(--yellow); outline-offset: 4px; }

.site-grid {
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  opacity: 0.38;
  background-image:
    linear-gradient(rgba(105, 149, 202, 0.055) 1px, transparent 1px),
    linear-gradient(90deg, rgba(105, 149, 202, 0.055) 1px, transparent 1px);
  background-size: 48px 48px;
  mask-image: linear-gradient(to bottom, black, transparent 82%);
}

.skip-link {
  position: fixed;
  top: 12px;
  left: 12px;
  z-index: 100;
  padding: 8px 14px;
  color: #07111f;
  background: var(--yellow);
  transform: translateY(-160%);
  transition: transform 160ms ease;
}
.skip-link:focus { transform: translateY(0); }

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  min-height: var(--header-height);
  display: grid;
  grid-template-columns: minmax(180px, 1fr) auto minmax(180px, 1fr);
  align-items: center;
  gap: 32px;
  width: min(1440px, calc(100% - 48px));
  margin: 0 auto;
  border-bottom: 1px solid var(--line);
  background: rgba(5, 12, 22, 0.84);
  backdrop-filter: blur(18px);
}

.brand { display: inline-flex; width: 168px; text-decoration: none; }
.brand img, footer img { width: 100%; height: auto; object-fit: contain; }
.main-nav { display: flex; align-items: center; gap: 30px; }
.main-nav a {
  color: var(--muted);
  font-size: 13px;
  font-weight: 650;
  letter-spacing: 0.04em;
  text-decoration: none;
  transition: color 160ms ease;
}
.main-nav a:hover { color: var(--ink); }

.language-switch {
  justify-self: end;
  display: flex;
  padding: 3px;
  border: 1px solid var(--line);
  border-radius: 99px;
  background: rgba(12, 29, 48, 0.8);
}
.language-switch button {
  min-width: 40px;
  min-height: 32px;
  padding: 0 10px;
  border: 0;
  border-radius: 99px;
  color: var(--quiet);
  background: transparent;
  cursor: pointer;
  font-size: 12px;
  font-weight: 750;
}
.language-switch button[aria-pressed="true"] { color: var(--ink); background: #193554; }

main, footer { width: min(1240px, calc(100% - 48px)); margin-inline: auto; }

.hero {
  min-height: calc(100svh - var(--header-height));
  display: grid;
  grid-template-columns: minmax(0, 1.35fr) minmax(330px, 0.65fr);
  gap: clamp(50px, 8vw, 118px);
  align-items: center;
  padding: clamp(70px, 10vw, 140px) 0;
}

.eyebrow {
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 0 0 18px;
  color: var(--blue-soft);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}
.status-dot { width: 7px; height: 7px; border-radius: 50%; background: var(--green); box-shadow: 0 0 16px var(--green); }

.hero h1, .section h2, .section-split h2 {
  margin: 0;
  letter-spacing: -0.045em;
  line-height: 1.08;
  text-wrap: balance;
}
.hero h1 { max-width: 760px; font-size: clamp(48px, 7vw, 94px); white-space: pre-line; }
.hero-lede { max-width: 680px; margin: 28px 0 0; color: var(--muted); font-size: clamp(16px, 1.7vw, 20px); }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 36px; }
.button {
  min-height: 50px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 32px;
  padding: 0 20px;
  border: 1px solid transparent;
  text-decoration: none;
  font-size: 14px;
  font-weight: 750;
}
.button-primary { color: #06101c; background: var(--yellow); }
.button-primary:hover { background: #ffe27c; }
.button-secondary { color: var(--ink); border-color: var(--line-strong); background: rgba(12, 29, 48, 0.5); }
.button-secondary:hover { border-color: var(--blue-soft); background: rgba(35, 84, 139, 0.32); }
.release-status { min-height: 26px; margin: 16px 0 0; color: var(--quiet); font-size: 13px; }
.release-status.is-warning { color: #e9bd5d; }
.release-status.is-ready { color: var(--green); }

.free-card {
  position: relative;
  padding: 30px;
  border: 1px solid rgba(255, 213, 74, 0.45);
  background:
    linear-gradient(135deg, rgba(255, 213, 74, 0.07), transparent 52%),
    rgba(9, 23, 40, 0.92);
  box-shadow: 0 24px 80px rgba(0, 0, 0, 0.25);
}
.free-card::before, .free-card::after {
  content: "";
  position: absolute;
  width: 16px;
  height: 16px;
  border-color: var(--yellow);
}
.free-card::before { top: -1px; left: -1px; border-top: 2px solid; border-left: 2px solid; }
.free-card::after { right: -1px; bottom: -1px; border-right: 2px solid; border-bottom: 2px solid; }
.free-card-topline { display: flex; justify-content: space-between; gap: 20px; padding-bottom: 18px; border-bottom: 1px solid var(--line); color: var(--yellow); font-size: 11px; font-weight: 800; letter-spacing: 0.12em; }
.free-kicker { margin: 28px 0 0; color: var(--quiet); font-size: 12px; }
.free-price { margin: -4px 0 4px; color: var(--yellow); font-size: clamp(70px, 9vw, 104px); font-weight: 800; letter-spacing: -0.08em; line-height: 1; }
.free-card h2 { margin: 8px 0 14px; font-size: 23px; letter-spacing: -0.02em; }
.free-card > p:not(.free-kicker):not(.free-price) { color: var(--muted); font-size: 14px; }
.free-seal { display: flex; align-items: center; gap: 10px; margin-top: 24px; padding: 12px 0 0; border-top: 1px solid var(--line); color: var(--ink); font-size: 12px; }
.free-seal > span:first-child { display: grid; place-items: center; width: 22px; height: 22px; border-radius: 50%; color: #062014; background: var(--green); font-weight: 900; }

.trust-rail {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  border-block: 1px solid var(--line);
}
.trust-rail > div { display: flex; align-items: center; gap: 12px; min-height: 78px; padding: 0 24px; border-right: 1px solid var(--line); color: var(--muted); font-size: 13px; }
.trust-rail > div:last-child { border-right: 0; }
.rail-index { color: var(--blue-soft); font-family: ui-monospace, "Cascadia Mono", monospace; font-size: 10px; }

.section { padding: clamp(90px, 12vw, 160px) 0; }
.section-heading { max-width: 760px; margin-bottom: 56px; }
.section-heading h2, .section-split h2 { font-size: clamp(38px, 5.5vw, 68px); }
.section-heading > p:last-child, .section-split > div:first-child > p:last-child { color: var(--muted); font-size: 17px; }

.capability-grid { display: grid; grid-template-columns: repeat(4, 1fr); border-top: 1px solid var(--line); border-left: 1px solid var(--line); }
.capability-card { min-height: 280px; padding: 28px; border-right: 1px solid var(--line); border-bottom: 1px solid var(--line); background: rgba(8, 21, 36, 0.58); }
.capability-card-wide { grid-column: span 2; }
.card-number { display: block; margin-bottom: 56px; color: var(--blue-soft); font-family: ui-monospace, monospace; font-size: 11px; }
.capability-card h3 { margin: 0 0 14px; font-size: 22px; }
.capability-card p { margin: 0; color: var(--muted); font-size: 14px; }

.section-split { display: grid; grid-template-columns: minmax(0, 0.9fr) minmax(420px, 1.1fr); gap: clamp(60px, 10vw, 140px); align-items: center; padding: clamp(90px, 12vw, 150px) 0; border-top: 1px solid var(--line); }
.version-stack { border-top: 1px solid var(--line); }
.version-stack article { display: grid; grid-template-columns: 78px 1fr auto; gap: 22px; align-items: center; padding: 26px 0; border-bottom: 1px solid var(--line); }
.version-build { display: grid; place-items: center; width: 62px; height: 62px; border: 1px solid var(--line-strong); color: var(--blue-soft); font: 700 15px ui-monospace, monospace; }
.version-stack strong { font-size: 18px; }
.version-stack p { margin: 4px 0 0; color: var(--muted); font-size: 13px; }
.version-state { color: var(--green); font-size: 11px; font-weight: 800; letter-spacing: 0.08em; text-transform: uppercase; }

.verify-section { border-top: 1px solid var(--line); }
.verify-layout { display: grid; grid-template-columns: minmax(0, 1fr) minmax(360px, 0.72fr); gap: clamp(60px, 8vw, 110px); }
.verification-steps { margin: 0; padding: 0; list-style: none; }
.verification-steps li { display: grid; grid-template-columns: 54px 1fr; gap: 24px; padding: 30px 0; border-top: 1px solid var(--line); }
.verification-steps li:last-child { border-bottom: 1px solid var(--line); }
.verification-steps > li > span { color: var(--blue-soft); font: 700 11px ui-monospace, monospace; }
.verification-steps h3 { margin: 0 0 8px; font-size: 20px; }
.verification-steps p { margin: 0; color: var(--muted); font-size: 14px; }

.release-panel { align-self: start; border: 1px solid var(--line-strong); background: rgba(9, 23, 40, 0.9); }
.panel-head { display: flex; justify-content: space-between; padding: 13px 18px; border-bottom: 1px solid var(--line); color: var(--blue-soft); font-size: 10px; font-weight: 800; letter-spacing: 0.1em; text-transform: uppercase; }
.release-panel h3 { margin: 26px 24px 16px; font-size: 22px; }
.release-panel dl { margin: 0; }
.release-panel dl > div { display: grid; grid-template-columns: 105px 1fr; padding: 13px 24px; border-top: 1px solid var(--line); }
.release-panel dt { color: var(--quiet); font-size: 12px; }
.release-panel dd { margin: 0; overflow-wrap: anywhere; font: 600 12px ui-monospace, "Cascadia Mono", monospace; }
.release-panel .hash-row { display: block; }
.hash-row dd { margin-top: 8px; color: var(--blue-soft); }
.release-notes, .official-url { margin: 0; padding: 18px 24px; border-top: 1px solid var(--line); }
.release-notes > span, .official-url > span { color: var(--quiet); font-size: 12px; }
.release-notes p { margin: 7px 0 0; color: var(--muted); font-size: 13px; }
.official-url code { display: block; margin-top: 7px; color: var(--yellow); font-size: 11px; overflow-wrap: anywhere; }

.service-boundary { border-block: 1px solid var(--line); }
.boundary-table { border-top: 1px solid var(--line); }
.boundary-table > div { display: grid; grid-template-columns: 42px 1fr; gap: 18px; padding: 24px 0; border-bottom: 1px solid var(--line); }
.boundary-table > div > span { display: grid; place-items: center; width: 32px; height: 32px; border: 1px solid var(--line); color: var(--blue-soft); }
.boundary-table .boundary-free > span { border-color: rgba(88, 224, 167, 0.4); color: var(--green); }
.boundary-table p { margin: 4px 0 0; color: var(--muted); font-size: 14px; }

.compact-heading { max-width: 690px; }
.privacy-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1px; background: var(--line); border: 1px solid var(--line); }
.privacy-grid article { padding: 30px; background: #071321; }
.privacy-grid strong { color: var(--blue-soft); font: 700 11px ui-monospace, monospace; }
.privacy-grid h3 { margin: 44px 0 8px; font-size: 20px; }
.privacy-grid p { margin: 0; color: var(--muted); font-size: 14px; }

.faq-section { border-top: 1px solid var(--line); }
.faq-list { border-top: 1px solid var(--line); }
.faq-list details { border-bottom: 1px solid var(--line); }
.faq-list summary { position: relative; padding: 24px 52px 24px 0; cursor: pointer; list-style: none; font-size: 18px; font-weight: 650; }
.faq-list summary::-webkit-details-marker { display: none; }
.faq-list summary::after { content: "+"; position: absolute; right: 8px; color: var(--blue-soft); font: 400 26px/1 ui-monospace, monospace; }
.faq-list details[open] summary::after { content: "−"; }
.faq-list details p { max-width: 880px; margin: -6px 0 26px; color: var(--muted); }

footer { min-height: 180px; display: flex; justify-content: space-between; align-items: center; gap: 40px; border-top: 1px solid var(--line); color: var(--quiet); font-size: 12px; }
footer > div:first-child { width: 140px; }
footer p { margin: 6px 0 0; }
.footer-meta { text-align: right; }
.noscript { position: fixed; inset: auto 16px 16px; z-index: 99; padding: 12px 16px; color: #241d00; background: var(--yellow); font-size: 13px; }

@media (max-width: 1020px) {
  .site-header { grid-template-columns: 1fr auto; }
  .main-nav { display: none; }
  .hero { grid-template-columns: 1fr; min-height: auto; }
  .free-card { max-width: 580px; }
  .trust-rail { grid-template-columns: repeat(2, 1fr); }
  .trust-rail > div:nth-child(2) { border-right: 0; }
  .trust-rail > div:nth-child(-n+2) { border-bottom: 1px solid var(--line); }
  .capability-grid { grid-template-columns: repeat(2, 1fr); }
  .section-split, .verify-layout { grid-template-columns: 1fr; }
  .section-split { gap: 50px; }
  .release-panel { max-width: 650px; }
}

@media (max-width: 640px) {
  :root { --header-height: 68px; }
  .site-header, main, footer { width: min(100% - 28px, 1240px); }
  .site-header { gap: 10px; }
  .brand { width: 132px; }
  .language-switch button { min-width: 36px; padding: 0 7px; }
  .hero { padding-top: 62px; gap: 54px; }
  .hero h1 { font-size: clamp(36px, 11vw, 46px); }
  .hero-actions { display: grid; }
  .button { justify-content: space-between; }
  .free-card { padding: 22px; }
  .free-card-topline { display: grid; gap: 4px; }
  .free-price { font-size: 76px; }
  .trust-rail { grid-template-columns: 1fr; }
  .trust-rail > div { min-height: 62px; border-right: 0; border-bottom: 1px solid var(--line); }
  .trust-rail > div:last-child { border-bottom: 0; }
  .capability-grid, .privacy-grid { grid-template-columns: 1fr; }
  .capability-card-wide { grid-column: auto; }
  .capability-card { min-height: 230px; }
  .version-stack article { grid-template-columns: 66px 1fr; }
  .version-state { grid-column: 2; }
  .verification-steps li { grid-template-columns: 38px 1fr; gap: 12px; }
  .release-panel dl > div { grid-template-columns: 92px 1fr; padding-inline: 18px; }
  .release-panel h3, .release-notes, .official-url { padding-inline: 18px; }
  footer { align-items: flex-start; flex-direction: column; justify-content: center; }
  .footer-meta { text-align: left; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { scroll-behavior: auto !important; transition: none !important; animation: none !important; }
}
