:root {
  --agd-ink: #10131a;
  --agd-muted: #626875;
  --agd-line: #e2e5eb;
  --agd-soft: #f5f7fa;
  --agd-cyan: #63d8ff;
  --agd-mint: #92efce;
  --agd-gold: #ffd166;
  --agd-night: #07111d;
  --agd-shell: 1180px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body.agd-body {
  margin: 0;
  background: #fff;
  color: var(--agd-ink);
  font-family: ui-sans-serif, -apple-system, BlinkMacSystemFont, "PingFang SC", "Microsoft YaHei", sans-serif;
  -webkit-font-smoothing: antialiased;
}

.agd-body a,
.agd-body button {
  -webkit-tap-highlight-color: transparent;
}

.agd-body svg {
  width: 1.15em;
  height: 1.15em;
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 1.8;
}

.agd-shell {
  width: min(calc(100% - 48px), var(--agd-shell));
  margin: 0 auto;
}

.agd-skip {
  position: fixed;
  top: 8px;
  left: 8px;
  z-index: 1000;
  padding: 10px 14px;
  border-radius: 8px;
  background: #fff;
  color: #000;
  transform: translateY(-150%);
}

.agd-skip:focus {
  transform: translateY(0);
}

.agd-header {
  position: sticky;
  top: 0;
  z-index: 100;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  background: rgba(7, 17, 29, 0.94);
  color: #fff;
  backdrop-filter: blur(18px);
}

.agd-header__inner {
  display: grid;
  grid-template-columns: minmax(240px, 1fr) auto minmax(240px, 1fr);
  align-items: center;
  gap: 28px;
  width: min(calc(100% - 48px), var(--agd-shell));
  min-height: 72px;
  margin: 0 auto;
}

.agd-brand {
  display: inline-flex;
  align-items: center;
  gap: 11px;
  width: fit-content;
  color: #fff;
  text-decoration: none;
}

.agd-brand__mark {
  display: grid;
  place-items: center;
  width: 38px;
  height: 38px;
  border-radius: 12px;
  background: linear-gradient(135deg, var(--agd-cyan), var(--agd-mint) 52%, var(--agd-gold));
  color: #06111d;
  font-size: 22px;
  box-shadow: 0 8px 30px rgba(99, 216, 255, 0.24);
}

.agd-brand__text {
  display: grid;
  gap: 1px;
}

.agd-brand__text strong {
  font-size: 15px;
  line-height: 1.2;
}

.agd-brand__text small {
  color: rgba(255, 255, 255, 0.58);
  font-size: 10px;
  letter-spacing: 0.05em;
}

.agd-nav {
  display: flex;
  align-items: center;
  gap: 28px;
}

.agd-nav a,
.agd-home-link {
  color: rgba(255, 255, 255, 0.78);
  font-size: 13px;
  font-weight: 650;
  text-decoration: none;
}

.agd-nav a:hover,
.agd-home-link:hover {
  color: #fff;
}

.agd-home-link {
  display: inline-flex;
  align-items: center;
  justify-self: end;
  gap: 7px;
  padding: 10px 14px;
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 999px;
}

.agd-hero {
  position: relative;
  overflow: hidden;
  min-height: 560px;
  background:
    radial-gradient(circle at 76% 48%, rgba(99, 216, 255, 0.17), transparent 24%),
    radial-gradient(circle at 88% 24%, rgba(255, 209, 102, 0.14), transparent 18%),
    linear-gradient(145deg, #07111d 0%, #0b1727 58%, #09101a 100%);
  color: #fff;
}

.agd-hero::before {
  position: absolute;
  inset: 0;
  background-image: linear-gradient(rgba(255, 255, 255, 0.025) 1px, transparent 1px), linear-gradient(90deg, rgba(255, 255, 255, 0.025) 1px, transparent 1px);
  background-size: 48px 48px;
  content: "";
  mask-image: linear-gradient(to right, #000, transparent 84%);
}

.agd-hero__grid {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(400px, 0.95fr);
  align-items: center;
  gap: 64px;
  min-height: 560px;
  padding: 74px 0 64px;
}

.agd-kicker {
  display: flex;
  align-items: center;
  gap: 9px;
  margin: 0 0 18px;
  color: #6f7785;
  font-size: 12px;
  font-weight: 750;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.agd-kicker span {
  width: 28px;
  height: 2px;
  background: linear-gradient(90deg, var(--agd-cyan), var(--agd-gold));
}

.agd-hero .agd-kicker {
  color: rgba(255, 255, 255, 0.66);
}

.agd-hero h1 {
  max-width: 720px;
  margin: 0;
  font-size: clamp(56px, 6.3vw, 92px);
  font-weight: 720;
  letter-spacing: -0.065em;
  line-height: 0.96;
}

.agd-hero h1 span {
  background: linear-gradient(90deg, #fff 0%, #94e8ff 52%, #ffe2a0 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.agd-hero__lead {
  max-width: 650px;
  margin: 28px 0 0;
  color: rgba(255, 255, 255, 0.7);
  font-size: 18px;
  line-height: 1.8;
}

.agd-hero__meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  margin-top: 28px;
}

.agd-hero__meta span,
.agd-hero__meta strong {
  padding: 7px 11px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 999px;
  font-size: 12px;
}

.agd-hero__meta strong {
  border-color: rgba(99, 216, 255, 0.34);
  background: rgba(99, 216, 255, 0.12);
  color: var(--agd-cyan);
}

.agd-orbit {
  position: relative;
  aspect-ratio: 1;
  max-width: 440px;
  justify-self: end;
}

.agd-orbit__ring {
  position: absolute;
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 50%;
}

.agd-orbit__ring--outer {
  inset: 4%;
  animation: agd-spin 28s linear infinite;
}

.agd-orbit__ring--outer::before,
.agd-orbit__ring--outer::after {
  position: absolute;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--agd-cyan);
  box-shadow: 0 0 22px var(--agd-cyan);
  content: "";
}

.agd-orbit__ring--outer::before {
  top: 15%;
  left: 13%;
}

.agd-orbit__ring--outer::after {
  right: 4%;
  bottom: 28%;
  background: var(--agd-gold);
  box-shadow: 0 0 22px var(--agd-gold);
}

.agd-orbit__ring--inner {
  inset: 20%;
  border-style: dashed;
  animation: agd-spin 20s linear infinite reverse;
}

.agd-orbit__core {
  position: absolute;
  inset: 34%;
  display: grid;
  place-content: center;
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 50%;
  background: radial-gradient(circle at 35% 30%, rgba(255, 255, 255, 0.16), rgba(99, 216, 255, 0.08) 44%, rgba(7, 17, 29, 0.92));
  box-shadow: 0 0 80px rgba(99, 216, 255, 0.16), inset 0 0 30px rgba(255, 255, 255, 0.05);
  text-align: center;
}

.agd-orbit__core span {
  font-size: 54px;
  font-weight: 760;
  letter-spacing: -0.08em;
}

.agd-orbit__core small {
  margin-top: 4px;
  color: var(--agd-cyan);
  font-size: 9px;
  letter-spacing: 0.18em;
}

.agd-orbit__node {
  position: absolute;
  padding: 8px 12px;
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 999px;
  background: rgba(7, 17, 29, 0.82);
  color: rgba(255, 255, 255, 0.76);
  font-size: 12px;
  backdrop-filter: blur(12px);
}

.agd-orbit__node--one { top: 8%; left: 18%; }
.agd-orbit__node--two { right: 0; top: 45%; }
.agd-orbit__node--three { bottom: 7%; left: 12%; }

@keyframes agd-spin {
  to { transform: rotate(360deg); }
}

.agd-source-banner {
  border-bottom: 1px solid var(--agd-line);
  background: #f8fafc;
}

.agd-source-banner .agd-shell {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 16px 0;
}

.agd-source-banner svg {
  flex: 0 0 auto;
  width: 24px;
  height: 24px;
  color: #147a67;
}

.agd-source-banner p {
  margin: 0;
  color: #525966;
  font-size: 13px;
  line-height: 1.65;
}

.agd-source-banner code {
  color: #1e5b72;
}

.agd-download-section {
  padding: 88px 0 110px;
}

.agd-section-heading {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 24px;
  margin-bottom: 36px;
}

.agd-section-heading h2 {
  margin: 0;
  font-size: clamp(34px, 4vw, 56px);
  font-weight: 690;
  letter-spacing: -0.045em;
  line-height: 1.05;
}

.agd-section-heading > a {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  color: #30343c;
  font-size: 13px;
  font-weight: 700;
  text-decoration: none;
}

.agd-platform-tabs {
  display: inline-flex;
  gap: 6px;
  max-width: 100%;
  margin-bottom: 24px;
  padding: 5px;
  border: 1px solid var(--agd-line);
  border-radius: 999px;
  background: #f6f7f9;
  overflow-x: auto;
}

.agd-platform-tabs button {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 42px;
  padding: 0 20px;
  border: 0;
  border-radius: 999px;
  background: transparent;
  color: #525866;
  font: inherit;
  font-size: 13px;
  font-weight: 700;
  white-space: nowrap;
  cursor: pointer;
}

.agd-platform-tabs button[aria-selected="true"] {
  background: var(--agd-ink);
  color: #fff;
  box-shadow: 0 8px 24px rgba(16, 19, 26, 0.16);
}

.agd-platform-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: currentColor;
  opacity: 0.48;
}

.agd-platform-tabs button[aria-selected="true"] .agd-platform-dot {
  background: var(--agd-cyan);
  box-shadow: 0 0 12px var(--agd-cyan);
  opacity: 1;
}

.agd-platform-panel[hidden] {
  display: none;
}

.agd-platform-panel {
  display: grid;
  grid-template-columns: minmax(0, 1.45fr) minmax(330px, 0.75fr);
  gap: 18px;
  animation: agd-panel-in 0.3s ease both;
}

@keyframes agd-panel-in {
  from { opacity: 0; transform: translateY(8px); }
  to { opacity: 1; transform: translateY(0); }
}

.agd-product-card,
.agd-cli-card {
  border: 1px solid var(--agd-line);
  border-radius: 24px;
  background: #fff;
}

.agd-product-card {
  padding: 34px;
  box-shadow: 0 26px 70px rgba(16, 19, 26, 0.08);
}

.agd-product-card__intro > p:first-child,
.agd-cli-card__heading p {
  margin: 0 0 7px;
  color: #707784;
  font-size: 11px;
  font-weight: 750;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.agd-product-card__intro h3,
.agd-cli-card h3 {
  margin: 0;
  font-size: 27px;
  letter-spacing: -0.035em;
}

.agd-product-card__intro h3 span,
.agd-cli-card h3 span {
  display: inline-flex;
  margin-left: 7px;
  padding: 4px 7px;
  border-radius: 6px;
  background: #dfeeff;
  color: #245fa7;
  font-size: 10px;
  letter-spacing: 0;
  vertical-align: middle;
}

.agd-product-card__intro > p:last-child,
.agd-cli-card > p {
  max-width: 650px;
  margin: 12px 0 0;
  color: var(--agd-muted);
  font-size: 14px;
  line-height: 1.75;
}

.agd-download-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
  margin-top: 28px;
}

.agd-download-card {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: center;
  gap: 13px;
  min-height: 92px;
  padding: 16px;
  border-radius: 15px;
  background: var(--agd-ink);
  color: #fff;
  text-decoration: none;
  box-shadow: 0 12px 28px rgba(16, 19, 26, 0.14);
  transition: transform 0.18s ease, box-shadow 0.18s ease, background 0.18s ease;
}

.agd-download-card:hover,
.agd-download-card:focus-visible {
  background: #1b2029;
  box-shadow: 0 18px 36px rgba(16, 19, 26, 0.22);
  transform: translateY(-3px);
}

.agd-download-card:focus-visible,
.agd-platform-tabs button:focus-visible,
.agd-command button:focus-visible,
.agd-faq summary:focus-visible {
  outline: 3px solid rgba(74, 182, 255, 0.42);
  outline-offset: 3px;
}

.agd-download-card__icon {
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  border-radius: 12px;
  background: linear-gradient(135deg, var(--agd-cyan), var(--agd-mint) 52%, var(--agd-gold));
  color: #07111d;
}

.agd-download-card__icon svg {
  width: 20px;
  height: 20px;
  stroke-width: 2.1;
}

.agd-download-card__copy {
  display: grid;
  gap: 4px;
}

.agd-download-card__copy strong {
  font-size: 14px;
}

.agd-download-card__copy small {
  color: rgba(255, 255, 255, 0.56);
  font-size: 10px;
  line-height: 1.45;
}

.agd-download-card__arrow {
  color: rgba(255, 255, 255, 0.5);
}

.agd-requirements {
  margin-top: 22px;
  padding-top: 20px;
  border-top: 1px solid var(--agd-line);
}

.agd-requirements strong,
.agd-cli-card label {
  color: #4c5260;
  font-size: 11px;
}

.agd-requirements p {
  margin: 6px 0 0;
  color: var(--agd-muted);
  font-size: 12px;
  line-height: 1.7;
}

.agd-cli-card {
  align-self: stretch;
  padding: 28px;
  background: #f7f8fa;
}

.agd-cli-card__heading {
  display: flex;
  align-items: flex-start;
  gap: 12px;
}

.agd-cli-card__heading > span {
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  border-radius: 12px;
  background: #10131a;
  color: #fff;
}

.agd-cli-card label {
  display: block;
  margin-top: 24px;
  font-weight: 700;
}

.agd-command {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 10px;
  margin-top: 8px;
  padding: 12px 12px 12px 15px;
  border: 1px solid #dfe3e9;
  border-radius: 12px;
  background: #fff;
}

.agd-command code {
  overflow-x: auto;
  color: #3d4654;
  font-size: 11px;
  line-height: 1.6;
  white-space: nowrap;
}

.agd-command button {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 8px 10px;
  border: 0;
  border-radius: 8px;
  background: #eceff3;
  color: #313640;
  font: inherit;
  font-size: 11px;
  font-weight: 700;
  cursor: pointer;
}

.agd-command button svg {
  width: 15px;
  height: 15px;
}

.agd-safety {
  padding: 100px 0;
  background: var(--agd-night);
  color: #fff;
}

.agd-section-heading--light .agd-kicker {
  color: rgba(255, 255, 255, 0.56);
}

.agd-section-heading--light h2 {
  max-width: 720px;
}

.agd-safety-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
}

.agd-safety-grid article {
  padding: 28px;
  border: 1px solid rgba(255, 255, 255, 0.11);
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.045);
}

.agd-safety-grid article > svg {
  width: 30px;
  height: 30px;
  color: var(--agd-mint);
}

.agd-safety-grid h3 {
  margin: 24px 0 0;
  font-size: 18px;
}

.agd-safety-grid p {
  margin: 10px 0 0;
  color: rgba(255, 255, 255, 0.58);
  font-size: 13px;
  line-height: 1.75;
}

.agd-faq {
  padding: 100px 0 120px;
}

.agd-faq-list {
  border-top: 1px solid var(--agd-line);
}

.agd-faq details {
  border-bottom: 1px solid var(--agd-line);
}

.agd-faq summary {
  position: relative;
  padding: 24px 46px 24px 0;
  font-size: 17px;
  font-weight: 680;
  list-style: none;
  cursor: pointer;
}

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

.agd-faq summary::after {
  position: absolute;
  top: 50%;
  right: 6px;
  width: 22px;
  height: 22px;
  border: 1px solid #d3d7de;
  border-radius: 50%;
  color: #4c5260;
  content: "+";
  font-size: 17px;
  font-weight: 400;
  line-height: 19px;
  text-align: center;
  transform: translateY(-50%);
}

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

.agd-faq details p {
  max-width: 760px;
  margin: -6px 0 24px;
  color: var(--agd-muted);
  font-size: 14px;
  line-height: 1.85;
}

.agd-footer {
  padding: 36px 0;
  border-top: 1px solid var(--agd-line);
  background: #f7f8fa;
}

.agd-footer .agd-shell {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.agd-footer strong {
  font-size: 14px;
}

.agd-footer p {
  margin: 6px 0 0;
  color: var(--agd-muted);
  font-size: 11px;
}

.agd-footer .agd-shell > div:last-child {
  display: flex;
  gap: 20px;
}

.agd-footer a {
  color: #3d4450;
  font-size: 12px;
  font-weight: 650;
  text-decoration: none;
}

@media (max-width: 940px) {
  .agd-header__inner {
    grid-template-columns: 1fr auto;
  }

  .agd-nav {
    display: none;
  }

  .agd-hero__grid {
    grid-template-columns: 1fr 320px;
    gap: 24px;
  }

  .agd-hero h1 {
    font-size: clamp(52px, 8.2vw, 72px);
  }

  .agd-platform-panel {
    grid-template-columns: 1fr;
  }

  .agd-cli-card {
    min-height: auto;
  }
}

@media (max-width: 720px) {
  .agd-shell,
  .agd-header__inner {
    width: min(calc(100% - 32px), var(--agd-shell));
  }

  .agd-header__inner {
    min-height: 64px;
  }

  .agd-brand__mark {
    width: 34px;
    height: 34px;
    border-radius: 10px;
  }

  .agd-brand__text small,
  .agd-home-link svg {
    display: none;
  }

  .agd-home-link {
    padding: 9px 11px;
    font-size: 11px;
  }

  .agd-hero {
    min-height: auto;
  }

  .agd-hero__grid {
    grid-template-columns: 1fr;
    min-height: auto;
    padding: 64px 0 52px;
  }

  .agd-hero h1 {
    font-size: clamp(48px, 14vw, 68px);
  }

  .agd-hero__lead {
    font-size: 16px;
    line-height: 1.7;
  }

  .agd-orbit {
    width: min(100%, 340px);
    justify-self: center;
  }

  .agd-source-banner .agd-shell {
    align-items: flex-start;
  }

  .agd-download-section,
  .agd-safety,
  .agd-faq {
    padding: 68px 0;
  }

  .agd-section-heading {
    align-items: flex-start;
    flex-direction: column;
    margin-bottom: 26px;
  }

  .agd-section-heading h2 {
    font-size: 38px;
  }

  .agd-platform-tabs {
    display: flex;
    width: 100%;
  }

  .agd-platform-tabs button {
    flex: 1 0 auto;
    justify-content: center;
  }

  .agd-product-card,
  .agd-cli-card {
    padding: 22px;
    border-radius: 18px;
  }

  .agd-download-grid,
  .agd-safety-grid {
    grid-template-columns: 1fr;
  }

  .agd-download-card {
    min-height: 82px;
  }

  .agd-footer .agd-shell {
    align-items: flex-start;
    flex-direction: column;
  }

  .agd-footer .agd-shell > div:last-child {
    flex-wrap: wrap;
  }
}

@media (max-width: 420px) {
  .agd-brand__text strong {
    font-size: 13px;
  }

  .agd-hero h1 {
    font-size: 46px;
  }

  .agd-orbit {
    width: 288px;
  }

  .agd-orbit__core span {
    font-size: 40px;
  }

  .agd-platform-tabs {
    justify-content: flex-start;
  }

  .agd-platform-tabs button {
    flex: 0 0 auto;
    padding: 0 16px;
  }

  .agd-command {
    grid-template-columns: 1fr;
  }

  .agd-command button {
    justify-self: start;
  }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .agd-orbit__ring { animation: none; }
  .agd-download-card,
  .agd-platform-panel { transition: none; animation: none; }
}
