:root {
  --midnight-blue: #09152f;
  --violet: #7866e8;
  --warm-gold: #f1c778;
  --surface: #f7f6fb;
  --text: #17203a;
  --muted-text: #596176;
  --white: #ffffff;
  --shadow: 0 24px 60px rgb(9 21 47 / 14%);
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  overflow-x: hidden;
  color: var(--text);
  background: var(--surface);
  font-family: Inter, "PingFang SC", "Microsoft YaHei", sans-serif;
  line-height: 1.65;
}

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

button { font: inherit; }

a:focus-visible, button:focus-visible {
  outline: 3px solid var(--warm-gold);
  outline-offset: 4px;
}

.site-header {
  position: absolute;
  z-index: 1;
  top: 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  padding: 1.25rem max(5vw, 1.5rem);
  color: var(--white);
}

.site-brand { font-weight: 800; letter-spacing: .06em; }
.site-nav { display: flex; gap: 2rem; margin-left: auto; margin-right: 2rem; }

.site-header > button, .button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 2.75rem;
  padding: .65rem 1rem;
  border: 1px solid transparent;
  border-radius: 999px;
  cursor: pointer;
  font-weight: 700;
}

.site-header > button { color: var(--midnight-blue); background: var(--warm-gold); }

.hero {
  overflow: hidden;
  padding: 9rem max(5vw, 1.5rem) 5rem;
  color: var(--white);
  background:
    radial-gradient(circle at 76% 25%, rgb(241 199 120 / 35%), transparent 12rem),
    radial-gradient(circle at 8% 86%, rgb(120 102 232 / 65%), transparent 20rem),
    linear-gradient(135deg, #071129 0%, var(--midnight-blue) 52%, #2a1d65 100%);
}

.hero::before {
  position: absolute;
  inset: 0;
  content: "";
  pointer-events: none;
  opacity: .65;
  background-image: radial-gradient(circle, var(--white) 1px, transparent 1.5px);
  background-size: 52px 52px;
}

.hero-grid, .product-card {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(15rem, .85fr);
  gap: clamp(2rem, 7vw, 7rem);
  align-items: center;
  max-width: 72rem;
  margin: auto;
}

.hero-grid { position: relative; min-height: 28rem; }
.eyebrow { margin: 0 0 .75rem; color: var(--warm-gold); font-size: .9rem; font-weight: 800; letter-spacing: .12em; }
h1, h2, h3 { margin-top: 0; line-height: 1.2; }
h1 { max-width: 11ch; margin-bottom: 1rem; font-size: clamp(2.5rem, 5vw, 4.8rem); }
.hero-copy { max-width: 31rem; margin-bottom: 2rem; font-size: 1.15rem; color: rgb(255 255 255 / 82%); }
.button-primary { color: var(--midnight-blue); background: var(--warm-gold); }

.hero-orbit { position: relative; width: min(22rem, 72vw); aspect-ratio: 1; margin-inline: auto; border: 1px solid rgb(255 255 255 / 30%); border-radius: 50%; }
.hero-orbit::before, .hero-orbit::after, .hero-orbit span { position: absolute; border-radius: 50%; content: ""; }
.hero-orbit::before { inset: 24%; background: linear-gradient(135deg, var(--warm-gold), #fff0bd); box-shadow: 0 0 3rem rgb(241 199 120 / 80%); }
.hero-orbit::after { inset: 8%; border: 1px solid rgb(255 255 255 / 24%); }
.hero-orbit span { width: .5rem; height: .5rem; background: var(--white); box-shadow: 0 0 1rem var(--white); }
.hero-orbit span:nth-child(1) { top: 13%; right: 13%; }
.hero-orbit span:nth-child(2) { bottom: 5%; left: 23%; width: .75rem; height: .75rem; }
.hero-orbit span:nth-child(3) { top: 44%; left: -3%; }

.section { max-width: 72rem; margin: auto; padding: 6rem max(5vw, 1.5rem); }
.products > h2, .about h2 { font-size: clamp(2rem, 4vw, 3.25rem); }
.product-card { padding: clamp(1.5rem, 4vw, 3.5rem); border-radius: 1.5rem; background: var(--white); box-shadow: var(--shadow); }
.product-card ul { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: .65rem; padding: 0; list-style: none; }
.product-card li { padding: .5rem .75rem; border-radius: .5rem; color: #413671; background: #f0edff; }
.availability { color: var(--muted-text); }
.download-actions { display: flex; flex-wrap: wrap; gap: .75rem; }
.button-secondary { color: var(--text); border-color: #d7d4e5; background: var(--white); }
.product-card figure { margin: 0; text-align: center; }
.product-card img { display: block; width: min(100%, 20rem); margin: auto; filter: drop-shadow(0 1.25rem 1.5rem rgb(9 21 47 / 20%)); }
.product-card figcaption { margin-top: 1rem; color: var(--muted-text); font-size: .875rem; }
.about { padding-top: 0; color: var(--muted-text); }
.site-footer { padding: 2rem 1.5rem; color: rgb(255 255 255 / 70%); background: var(--midnight-blue); text-align: center; }

#site-toast {
  position: fixed;
  z-index: 2;
  right: 1rem;
  bottom: 1rem;
  max-width: calc(100% - 2rem);
  padding: .85rem 1rem;
  border-radius: .75rem;
  color: var(--white);
  background: var(--midnight-blue);
  box-shadow: var(--shadow);
  opacity: 0;
  transform: translateY(1rem);
  transition: opacity .2s ease, transform .2s ease;
}

#site-toast.is-visible { display: block; opacity: 1; transform: translateY(0); }

@media (max-width: 767px) {
  .site-nav { display: none; }
  .hero-grid, .product-card { grid-template-columns: 1fr; }
  .hero { padding-block: 6rem 3rem; }
  .site-header { padding-inline: 1rem; }
  .site-header > button { padding-inline: .75rem; font-size: .875rem; }
  .hero-grid { min-height: auto; }
  .hero-orbit { width: min(17rem, 68vw); }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { scroll-behavior: auto !important; animation-duration: 0.01ms !important; }
}
