:root {
  color-scheme: dark;
  --canvas: #111615;
  --panel: #191f1d;
  --line: #303a36;
  --ink: #f2f5f3;
  --muted: #a7b3ad;
  --mint: #a9f3ce;
  --mint-hover: #c7f8df;
  --mono: 'SFMono-Regular', Consolas, 'Liberation Mono', monospace;
  font-family: Inter, -apple-system, BlinkMacSystemFont, 'PingFang SC', 'Microsoft YaHei', sans-serif;
  background: var(--canvas);
  color: var(--ink);
  font-synthesis: none;
}

*, *::before, *::after { box-sizing: border-box; }
body { margin: 0; }
img { display: block; max-width: 100%; }
[hidden] { display: none !important; }
a { color: inherit; text-decoration: none; }
p, h1, h2, h3, figure { margin: 0; }
section[id], figure[id] { scroll-margin-top: 24px; }
::selection { background: var(--mint); color: #14221b; }
:focus-visible { outline: 2px solid var(--mint); outline-offset: 5px; }

.layout { width: min(1120px, calc(100% - 96px)); margin-inline: auto; }
.site-header { border-bottom: 1px solid #28312d; }
.header-inner, .footer-inner { display: flex; align-items: center; justify-content: space-between; }
.header-inner { min-height: 72px; }
.identity { display: inline-flex; align-items: center; gap: 9px; font-size: 1.15rem; font-weight: 750; letter-spacing: -.035em; }
.identity img { flex: none; }
.header-inner nav { display: flex; align-items: center; gap: clamp(18px, 3vw, 38px); font-size: .875rem; }
.header-inner nav a { color: var(--muted); }
.header-inner nav a:hover, .site-footer a:hover { color: var(--mint); }
.header-inner nav .nav-download {
  display: flex;
  gap: 13px;
  align-items: center;
  padding: 9px 13px;
  border: 1px solid #3f6354;
  border-radius: 8px;
  color: var(--mint);
}
.nav-download:hover { background: #21322a; }

.hero-intro {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(224px, 308px);
  align-items: end;
  gap: clamp(24px, 5vw, 88px);
  padding-block: clamp(56px, 7.4vw, 105px) clamp(38px, 5.2vw, 70px);
}
.section-label { display: flex; align-items: center; gap: 10px; color: var(--muted); font-size: .82rem; letter-spacing: .08em; }
.section-label span { width: 14px; height: 1px; background: var(--mint); }
h1 {
  margin-top: 19px;
  font-size: clamp(2.55rem, 5.65vw, 5.25rem);
  line-height: 1.14;
  letter-spacing: -.045em;
  font-weight: 760;
}
h1 em { color: var(--mint); font-style: normal; }
.hero-aside { padding-bottom: 4px; }
.hero-aside > p:first-child { color: var(--muted); line-height: 1.85; font-size: 1rem; max-width: 30ch; }
.hero-aside .button { margin-top: 23px; }
.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 20px;
  min-height: 49px;
  padding: 0 16px;
  border-radius: 8px;
  font-size: .93rem;
  font-weight: 700;
  white-space: nowrap;
}
.button span { font-size: 1.2rem; line-height: 1; }
.button-primary { background: var(--mint); color: #13231b; }
.button-primary:hover { background: var(--mint-hover); }
.platform { margin-top: 12px; color: var(--muted); font: .74rem/1.5 var(--mono); letter-spacing: .015em; }

.workspace {
  position: relative;
  isolation: isolate;
  border: 1px solid #45544d;
  border-radius: 15px;
  background: #171c1a;
  box-shadow: 0 26px 95px #080b0990, 0 0 80px #75dcb410;
}
.workspace::before {
  position: absolute;
  content: '';
  pointer-events: none;
  z-index: -1;
  inset: -23px -21px 18%;
  border: 1px solid #3c544a55;
  border-bottom: 0;
  border-radius: 25px 25px 0 0;
}
.workspace-top {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  align-items: center;
  min-height: 46px;
  padding-inline: 16px;
  border-bottom: 1px solid #323a36;
  color: #cbd5d0;
  font-size: .79rem;
}
.workspace-top > span:first-child { display: inline-flex; gap: 8px; align-items: center; }
.workspace-caption { color: var(--muted); font-size: .72rem; }
.workspace-screen { width: 100%; height: auto; border-radius: 0 0 14px 14px; }

.connection { margin-block: clamp(70px, 9vw, 126px) clamp(60px, 8vw, 100px); }
h2 { font-size: clamp(1.65rem, 3vw, 2.45rem); line-height: 1.28; letter-spacing: -.06em; }
.connection-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; margin-top: 26px; }
.connection-option { padding: clamp(20px, 3.2vw, 36px); border: 1px solid var(--line); border-radius: 13px; background: var(--panel); }
.option-icon { display: grid; place-items: center; width: 39px; height: 39px; border: 1px solid #3c5c4e; border-radius: 8px; color: var(--mint); background: #22352c; }
.account-icon::before { content: ''; width: 18px; height: 12px; border: 1.5px solid var(--mint); border-radius: 2px; background: linear-gradient(var(--mint), var(--mint)) 0 2px / 100% 1px no-repeat; }
.terminal-icon { font: .84rem/1 var(--mono); }
.connection-option h3 { margin-top: 18px; font-size: 1.2rem; letter-spacing: -.035em; }
.connection-option p { margin-top: 8px; color: var(--muted); font-size: .93rem; line-height: 1.8; max-width: 39ch; }
.connection-option a { display: inline-block; margin-top: 19px; color: var(--mint); font-size: .84rem; }
.connection-option a:hover, .site-footer a:hover { text-decoration: underline; text-underline-offset: 4px; }

.release { margin-bottom: clamp(56px, 8vw, 100px); }
.release-card { display: flex; justify-content: space-between; align-items: flex-start; gap: 24px; padding: clamp(24px, 4vw, 46px); border: 1px solid #3b5b4d; border-radius: 15px; background: #1b2923; }
.release-identity { display: flex; align-items: center; gap: 14px; }
.release-identity img { flex: none; }
.release-identity .platform { margin-top: 5px; }
.release-actions { display: flex; flex-direction: column; align-items: flex-end; gap: 12px; flex: 0 1 310px; min-width: 0; }
.release-status { color: #bcd0c5; font-size: .85rem; line-height: 1.65; }
.release-actions details { color: var(--muted); width: 100%; }
.release-actions summary { cursor: pointer; text-align: right; font: .75rem/1.6 var(--mono); }
.release-actions code { display: block; margin-top: 8px; padding: 10px; border-radius: 5px; background: #121b16; color: #cce6d8; overflow-wrap: anywhere; font: .75rem/1.6 var(--mono); user-select: all; }
.site-footer { border-top: 1px solid #28312d; }
.footer-inner { min-height: 77px; color: var(--muted); font-size: .8rem; }
.footer-inner .identity { color: var(--ink); font-size: .92rem; }
.footer-inner p a { color: var(--ink); }

@media (max-width: 850px) {
  .layout { width: calc(100% - 56px); }
  .hero-intro { grid-template-columns: minmax(0, 1fr) minmax(190px, 230px); }
  .hero-aside > p:first-child { font-size: .91rem; }
}

@media (max-width: 640px) {
  .layout { width: calc(100% - 36px); }
  .header-inner { min-height: 63px; }
  .header-inner .identity { gap: 6px; font-size: 1.02rem; }
  .header-inner .identity img { width: 32px; height: 32px; }
  .header-inner nav { gap: 15px; font-size: .79rem; }
  .header-inner nav .nav-download { gap: 7px; padding: 7px 9px; }
  .hero-intro { grid-template-columns: 1fr; gap: 23px; padding-block: 47px 33px; }
  h1 { margin-top: 13px; font-size: clamp(2.3rem, 10vw, 3.75rem); }
  .hero-aside { padding-bottom: 0; }
  .hero-aside > p:first-child { max-width: 36ch; }
  .hero-aside .button { margin-top: 17px; }
  .workspace { border-radius: 11px; }
  .workspace::before { inset: -9px -7px 15%; border-radius: 16px 16px 0 0; }
  .workspace-top { padding-inline: 10px; min-height: 36px; font-size: .73rem; }
  .workspace-top img { width: 18px; height: 18px; }
  .workspace-caption { font-size: .65rem; }
  .workspace-screen { border-radius: 0 0 10px 10px; }
  .connection-grid { grid-template-columns: 1fr; gap: 10px; margin-top: 18px; }
  .release-card { flex-direction: column; gap: 17px; }
  .release-identity { gap: 10px; }
  .release-identity img { width: 58px; height: 58px; }
  .release-actions { flex: auto; align-items: flex-start; width: 100%; }
  .release-actions summary { text-align: left; }
}

@media (max-width: 360px) {
  .header-inner nav a:first-child { display: none; }
}
