:root {
  color-scheme: dark;
  --bg: #0b1018;
  --bg-top: #121a2a;
  --bg-bottom: #092e36;
  --panel: rgba(17, 24, 39, 0.82);
  --panel-strong: rgba(15, 23, 42, 0.92);
  --line: rgba(178, 214, 235, 0.14);
  --text: #eaf6ff;
  --muted: #a8bfd3;
  --accent: #22e6a8;
  --accent-strong: #44c7ff;
  --accent-alt: #f5b94c;
  --warm: #f5b94c;
  --shadow: 0 26px 80px rgba(0, 0, 0, 0.42);
  --radius: 22px;
}

body[data-theme="light"] {
  color-scheme: light;
  --bg: #fff9ef;
  --bg-top: #fffdf8;
  --bg-bottom: #e9f6f3;
  --panel: rgba(255, 252, 246, 0.86);
  --panel-strong: rgba(255, 255, 255, 0.94);
  --line: rgba(70, 96, 104, 0.18);
  --text: #15202b;
  --muted: #506371;
  --accent: #0aa77f;
  --accent-strong: #087fb3;
  --accent-alt: #c98713;
  --warm: #b97410;
  --shadow: 0 22px 58px rgba(38, 49, 56, 0.16);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  scrollbar-gutter: stable;
  overflow-x: clip;
}

body {
  margin: 0;
  min-height: 100vh;
  position: relative;
  overflow-x: clip;
  background:
    linear-gradient(180deg, rgba(18, 26, 42, 0.96) 0%, rgba(11, 16, 24, 0.96) 42%, rgba(9, 46, 54, 0.98) 100%),
    radial-gradient(circle at 76% 18%, rgba(68, 199, 255, 0.16), transparent 28%),
    radial-gradient(circle at 22% 12%, rgba(34, 230, 168, 0.12), transparent 26%);
  color: var(--text);
  font-family: Inter, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  line-height: 1.55;
}

body[data-theme="light"] {
  background:
    linear-gradient(180deg, rgba(255, 253, 248, 0.98) 0%, rgba(255, 249, 239, 0.98) 44%, rgba(233, 246, 243, 0.98) 100%),
    radial-gradient(circle at 76% 18%, rgba(8, 127, 179, 0.12), transparent 30%),
    radial-gradient(circle at 22% 12%, rgba(10, 167, 127, 0.12), transparent 28%);
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  background:
    linear-gradient(rgba(68, 199, 255, 0.045) 1px, transparent 1px),
    linear-gradient(90deg, rgba(34, 230, 168, 0.038) 1px, transparent 1px),
    radial-gradient(circle at 78% 16%, rgba(34, 230, 168, 0.09), transparent 28%);
  background-size: 24px 24px, 24px 24px, auto;
  mask: linear-gradient(180deg, rgba(0, 0, 0, 0.55), transparent 92%);
  opacity: 0.65;
  z-index: 0;
}

body[data-theme="light"]::before {
  background:
    linear-gradient(rgba(8, 127, 179, 0.055) 1px, transparent 1px),
    linear-gradient(90deg, rgba(10, 167, 127, 0.045) 1px, transparent 1px),
    radial-gradient(circle at 78% 16%, rgba(10, 167, 127, 0.08), transparent 28%);
  opacity: 0.56;
}

body > * {
  position: relative;
  z-index: 1;
}

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

a:hover {
  color: var(--accent-strong);
}

main {
  width: min(1180px, calc(100% - 32px));
  margin: 0 auto;
  padding: 24px 0 40px;
}

.site-header,
.site-footer {
  width: min(1180px, calc(100% - 32px));
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  flex-wrap: wrap;
}

.site-header {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  justify-content: initial;
  padding: 18px 0 8px;
}

.site-footer {
  padding: 14px 0 24px;
  color: var(--muted);
  font-size: 0.96rem;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  font-weight: 800;
  letter-spacing: 0.01em;
}

.brand img {
  width: 42px;
  height: 42px;
  border-radius: 50%;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.24);
}

.site-nav {
  display: inline-flex;
  align-items: center;
  justify-self: start;
  gap: 18px;
  color: var(--muted);
  flex-wrap: wrap;
}

.site-nav a[aria-current="page"] {
  color: var(--text);
}

.theme-toggle {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  justify-self: end;
  min-height: 40px;
  padding: 0 12px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--panel);
  color: var(--text);
  box-shadow: 0 10px 24px rgba(0, 0, 0, 0.16);
  cursor: pointer;
  font: inherit;
  font-size: 0.92rem;
  font-weight: 800;
}

.theme-toggle:hover {
  border-color: rgba(68, 199, 255, 0.38);
  color: var(--accent-strong);
}

.theme-toggle-icon {
  width: 16px;
  height: 16px;
  border-radius: 50%;
  background: var(--accent-alt);
  box-shadow: inset -5px -4px 0 rgba(7, 19, 31, 0.58);
}

body[data-theme="light"] .theme-toggle-icon {
  background: var(--accent-strong);
  box-shadow: 0 0 0 4px rgba(8, 127, 179, 0.14);
}

.hero {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 28px;
  align-items: start;
  min-height: clamp(420px, 54vh, 620px);
  padding-top: clamp(28px, 5vh, 72px);
}

.hero-art-section {
  margin-top: -96px;
}

.hero-copy {
  min-width: 0;
}

.hero-copy h1,
.page-hero h1 {
  margin: 0;
  line-height: 0.96;
  letter-spacing: 0;
  max-width: 100%;
  word-break: normal;
}

.hero-copy h1 {
  font-size: clamp(3.4rem, 8vw, 6.2rem);
}

.page-hero h1 {
  font-size: clamp(2.7rem, 6vw, 4.8rem);
}

.eyebrow,
.section-kicker {
  margin: 0 0 12px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-size: 0.76rem;
  font-weight: 700;
  color: var(--accent-strong);
}

.lede {
  max-width: 62ch;
  margin: 18px 0 0;
  color: var(--muted);
  font-size: clamp(1.05rem, 1.6vw, 1.2rem);
}

.cta-row {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 28px;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 0 18px;
  border-radius: 14px;
  border: 1px solid transparent;
  font-weight: 800;
  transition: transform 0.18s ease, border-color 0.18s ease, background-color 0.18s ease;
}

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

.button-primary {
  background: linear-gradient(135deg, var(--accent) 0%, var(--accent-strong) 58%, var(--accent-alt) 100%);
  color: #07131f;
  box-shadow: 0 16px 34px rgba(34, 230, 168, 0.16);
}

.button-secondary {
  background: rgba(255, 255, 255, 0.03);
  border-color: var(--line);
  color: var(--text);
}

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

.stats div,
.feature-band article,
.content-grid > div,
.footer-band,
.page-card {
  border: 1px solid var(--line);
  background: var(--panel);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}

.stats div {
  padding: 16px;
}

.stats dt {
  color: var(--accent-strong);
  font-size: 0.82rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-bottom: 6px;
}

.stats dd {
  margin: 0;
  color: var(--text);
  font-weight: 700;
}

.hero-art {
  position: relative;
  min-height: 720px;
  min-width: 0;
}

.logo-orbit {
  position: absolute;
  top: 72px;
  right: 0;
  width: min(56vw, 460px);
  aspect-ratio: 1;
  border-radius: 50%;
  background:
    radial-gradient(circle at 42% 36%, rgba(34, 230, 168, 0.42), transparent 28%),
    radial-gradient(circle at 68% 26%, rgba(68, 199, 255, 0.28), transparent 30%),
    linear-gradient(135deg, #08234a 0%, #08919e 100%);
  padding: 14px;
  box-shadow: 0 28px 60px rgba(0, 0, 0, 0.36);
}

.logo-orbit img {
  width: 100%;
  height: 100%;
  display: block;
  border-radius: 50%;
}

.glyph-panel {
  position: absolute;
  border: 1px solid var(--line);
  background: var(--panel-strong);
  border-radius: 24px;
  box-shadow: var(--shadow);
  backdrop-filter: blur(8px);
}

.glyph-panel-main {
  left: 0;
  top: 120px;
  width: min(100%, 590px);
  padding: 18px;
}

.glyph-panel-side {
  left: 44px;
  top: 430px;
  width: min(320px, 58%);
  padding: 16px;
}

.glyph-header {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
  color: var(--muted);
  font-size: 0.92rem;
  margin-bottom: 16px;
}

.glyph-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--accent-strong);
  box-shadow: 0 0 0 6px rgba(68, 199, 255, 0.12);
}

.timeline-strip {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr 1.3fr 1fr 1fr 0.8fr;
  gap: 10px;
}

.zone {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 52px;
  padding: 8px 10px;
  border-radius: 16px;
  color: #08131f;
  font-size: 0.92rem;
  font-weight: 800;
}

.zone.intro {
  background: linear-gradient(135deg, #a6f3d7, #55d7c8);
}

.zone.verse {
  background: linear-gradient(135deg, #7fd0ff, #3f8cff);
}

.zone.chorus {
  background: linear-gradient(135deg, #f6dd9b, #f5b94c);
}

.zone.bridge {
  background: linear-gradient(135deg, #c6ecff, #6cbefb);
}

.zone.outro {
  background: linear-gradient(135deg, #82e2d4, #318fdf);
}

.wave-grid {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  gap: 8px;
  align-items: end;
  height: 132px;
  margin-top: 18px;
}

.wave-grid span {
  display: block;
  width: 100%;
  border-radius: 999px 999px 10px 10px;
  background: linear-gradient(180deg, var(--accent-strong), var(--accent-alt));
  opacity: 0.94;
  height: 28%;
}

.wave-grid span:nth-child(2n) {
  height: 58%;
}

.wave-grid span:nth-child(3n) {
  height: 78%;
}

.wave-grid span:nth-child(4n) {
  height: 42%;
}

.wave-grid span:nth-child(5n) {
  height: 88%;
}

.mini-caption {
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-size: 0.74rem;
  margin-bottom: 12px;
}

.mini-bars {
  display: grid;
  gap: 12px;
}

.mini-bars div {
  display: grid;
  grid-template-columns: 88px 1fr;
  align-items: center;
  gap: 12px;
}

.mini-bars span {
  color: var(--text);
  font-size: 0.94rem;
}

.mini-bars i {
  display: block;
  height: 8px;
  border-radius: 999px;
  background: linear-gradient(90deg, rgba(34, 230, 168, 0.2), var(--accent-strong));
}

.mini-bars div:nth-child(1) i { width: 92%; }
.mini-bars div:nth-child(2) i { width: 86%; }
.mini-bars div:nth-child(3) i { width: 76%; }
.mini-bars div:nth-child(4) i { width: 68%; }

.feature-band {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 16px;
  margin-top: 12px;
}

.feature-band article,
.content-grid > div,
.footer-band,
.page-card {
  padding: 22px;
}

.feature-band h2,
.content-grid h2,
.footer-band h2,
.page-card h2 {
  margin: 0 0 10px;
  font-size: 1.2rem;
}

.content-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
  margin-top: 16px;
}

.store-band {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  margin-top: 16px;
  padding: 22px;
  border: 1px solid var(--line);
  background: linear-gradient(135deg, rgba(17, 24, 39, 0.94), rgba(15, 23, 42, 0.88));
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}

body[data-theme="light"] .store-band {
  background: linear-gradient(135deg, rgba(255, 252, 246, 0.94), rgba(233, 246, 243, 0.88));
}

.store-copy {
  min-width: 0;
}

.store-badge {
  display: inline-flex;
  flex: 0 0 auto;
  width: 300px;
  height: 90px;
}

.store-badge img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.footer-band {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  margin-top: 16px;
}

.page-shell {
  display: grid;
  gap: 16px;
}

.site-header,
.site-footer,
.hero,
.feature-band,
.content-grid,
.footer-band,
.page-shell,
.page-hero {
  position: relative;
}

.hero::before,
.page-shell::before {
  content: "";
  position: absolute;
  inset: -24px -18px auto -18px;
  height: 100%;
  pointer-events: none;
  background:
    linear-gradient(rgba(68, 199, 255, 0.06) 1px, transparent 1px),
    linear-gradient(90deg, rgba(34, 230, 168, 0.05) 1px, transparent 1px);
  background-size: 24px 24px;
  mask: linear-gradient(180deg, rgba(0, 0, 0, 0.45), transparent 88%);
  opacity: 0.55;
}

.page-hero {
  padding: 34px 0 8px;
  max-width: 760px;
}

.plain-list {
  margin: 0;
  padding-left: 20px;
  color: var(--muted);
  line-height: 1.8;
}

.small-note {
  margin-top: 14px;
  color: var(--muted);
  font-size: 0.94rem;
}

.feature-band article ul {
  margin: 14px 0 0;
  padding-left: 18px;
  color: var(--muted);
  line-height: 1.7;
}

.feature-band article li + li {
  margin-top: 8px;
}

@media (max-width: 1024px) {
  .hero {
    grid-template-columns: 1fr;
    min-height: auto;
    padding-top: 16px;
  }

  .hero-art-section {
    margin-top: 12px;
  }

  .hero-art {
    min-height: 700px;
  }

  .feature-band {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 900px) {
  .site-header {
    grid-template-columns: 1fr auto;
    justify-content: start;
  }

  .brand {
    grid-column: 1 / -1;
  }

  .site-nav {
    grid-column: 1;
  }

  .theme-toggle {
    grid-column: 2;
    justify-self: end;
  }
}

@media (max-width: 720px) {
  .site-header,
  .site-footer,
  main {
    width: min(100% - 24px, 1180px);
  }

  .site-header,
  .site-footer {
    align-items: flex-start;
    gap: 12px;
  }

  .site-header {
    grid-template-columns: 1fr auto;
  }

  .site-footer {
    flex-direction: column;
  }

  .brand {
    grid-column: 1 / -1;
    width: 100%;
  }

  .site-nav {
    grid-column: 1;
    width: auto;
    gap: 12px 16px;
  }

  .site-nav a {
    padding: 6px 0;
  }

  .theme-toggle {
    grid-column: 2;
    justify-self: end;
    min-height: 34px;
    padding: 0 10px;
  }

  .hero-copy h1 {
    font-size: clamp(2.25rem, 12vw, 3.4rem);
    overflow-wrap: anywhere;
  }

  .hero {
    gap: 18px;
  }

  .hero-copy .lede {
    max-width: none;
  }

  .stats,
  .feature-band,
  .content-grid {
    grid-template-columns: 1fr;
  }

  .store-band {
    flex-direction: column;
    align-items: flex-start;
  }

  .hero-art-section {
    margin-top: 0;
  }

  .hero-art {
    display: grid;
    gap: 14px;
    min-height: auto;
    padding-bottom: 4px;
  }

  .logo-orbit {
    position: relative;
    inset: auto;
    width: min(76vw, 300px);
    margin: 0 auto;
  }

  .glyph-panel-main {
    position: relative;
    inset: auto;
    width: 100%;
    padding: 14px;
  }

  .glyph-panel-side {
    position: relative;
    inset: auto;
    left: auto;
    bottom: auto;
    width: 100%;
    padding: 14px;
  }

  .timeline-strip {
    grid-template-columns: 1fr 1fr;
  }

  .zone {
    min-height: 46px;
    font-size: 0.86rem;
  }

  .wave-grid {
    height: 108px;
  }

  .mini-bars div {
    grid-template-columns: 74px 1fr;
  }

  .feature-band article,
  .content-grid > div,
  .store-band,
  .footer-band,
  .page-card {
    padding: 18px;
  }

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

  .page-hero {
    padding-top: 24px;
  }
}
