:root {
  --bg: #07111f;
  --bg-alt: #0c1729;
  --panel: rgba(10, 19, 36, 0.88);
  --panel-strong: #0e1b32;
  --panel-soft: rgba(255, 255, 255, 0.04);
  --text: #f5f8ff;
  --muted: #b8c3d9;
  --line: rgba(173, 196, 255, 0.14);
  --accent: #79a7ff;
  --accent-strong: #a388ff;
  --accent-soft: rgba(121, 167, 255, 0.14);
  --danger-soft: rgba(255, 133, 164, 0.12);
  --shadow: 0 24px 60px rgba(0, 0, 0, 0.32);
  --radius-lg: 28px;
  --radius-md: 22px;
  --radius-sm: 16px;
  --max: 1180px;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-width: 320px;
  color: var(--text);
  font: 16px/1.65 "Aptos", "Segoe UI Variable", "Segoe UI", sans-serif;
  background:
    radial-gradient(circle at top left, rgba(121, 167, 255, 0.18), transparent 28%),
    radial-gradient(circle at top right, rgba(163, 136, 255, 0.14), transparent 26%),
    linear-gradient(180deg, #050b16 0%, var(--bg) 36%, #081321 100%);
}

a {
  color: #d7e6ff;
  text-decoration: none;
}

a:hover {
  color: #ffffff;
}

a:focus-visible,
button:focus-visible {
  outline: 3px solid #b8d3ff;
  outline-offset: 3px;
}

img {
  max-width: 100%;
  display: block;
}

.skip-link,
.sr-only {
  position: absolute;
}

.skip-link {
  left: 1rem;
  top: -4rem;
  z-index: 100;
  padding: 0.75rem 1rem;
  border-radius: 999px;
  background: #fff;
  color: #081321;
}

.skip-link:focus {
  top: 1rem;
}

.sr-only {
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.container {
  width: min(calc(100% - 2rem), var(--max));
  margin: 0 auto;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  backdrop-filter: blur(18px);
  background: rgba(5, 11, 22, 0.72);
  border-bottom: 1px solid rgba(173, 196, 255, 0.08);
}

.nav-shell {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  min-height: 78px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.9rem;
  color: var(--text);
}

.brand-mark {
  width: 2.85rem;
  height: 2.85rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 1rem;
  overflow: hidden;
  background: transparent;
  border: 0;
  box-shadow: none;
}

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

.brand-text {
  display: flex;
  flex-direction: column;
  gap: 0.1rem;
}

.brand-text strong,
h1,
h2,
h3 {
  font-family: "Iowan Old Style", "Palatino Linotype", Georgia, serif;
}

.brand-text span:last-child {
  color: var(--muted);
  font-size: 0.9rem;
}

.site-nav {
  display: flex;
  align-items: center;
  gap: 1.25rem;
}

.site-nav a {
  color: var(--muted);
  font-weight: 600;
}

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

.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 0.3rem;
  padding: 0.5rem;
  border: 0;
  background: transparent;
}

.nav-toggle span {
  width: 1.4rem;
  height: 2px;
  border-radius: 999px;
  background: #fff;
}

.hero,
.page-hero {
  padding: 5rem 0 3rem;
}

.hero-grid,
.detail-hero {
  display: grid;
  gap: 1.5rem;
  align-items: stretch;
}

.hero-grid {
  grid-template-columns: minmax(0, 1.4fr) minmax(300px, 0.9fr);
}

.hero-copy,
.hero-panel,
.detail-meta {
  display: grid;
  gap: 1rem;
}

.eyebrow {
  display: inline-flex;
  width: fit-content;
  padding: 0.5rem 0.8rem;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(173, 196, 255, 0.18);
  color: #d0dcff;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

h1 {
  margin: 0;
  font-size: clamp(2.7rem, 5vw, 4.7rem);
  line-height: 1.02;
  letter-spacing: -0.04em;
}

h2 {
  margin: 0 0 0.8rem;
  font-size: clamp(1.6rem, 3vw, 2.35rem);
  line-height: 1.08;
}

h3 {
  margin: 0 0 0.65rem;
  font-size: 1.3rem;
  line-height: 1.15;
}

p {
  margin: 0 0 1rem;
}

.lede,
.muted {
  color: var(--muted);
}

.narrow {
  max-width: 48rem;
}

.actions,
.inline-links,
.link-group,
.meta-strip,
.breadcrumb-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.85rem;
}

.button,
.store-placeholder {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 2.85rem;
  padding: 0.75rem 1.1rem;
  border-radius: 999px;
  font-weight: 700;
}

.button-primary {
  background: linear-gradient(135deg, var(--accent), var(--accent-strong));
  color: #07111f;
  box-shadow: var(--shadow);
}

.button-secondary {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(173, 196, 255, 0.18);
  color: var(--text);
}

.hero-panel,
.hero-copy,
.page-hero .container,
.hero-stat-card,
.meta-card,
.mini-card,
.card {
  position: relative;
}

.hero-home .hero-copy,
.hero-home .hero-panel,
.page-hero .container,
.card,
.site-footer,
.hero-stat-card,
.mini-card,
.meta-card {
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background:
    linear-gradient(180deg, rgba(18, 29, 52, 0.92), rgba(9, 16, 30, 0.94)),
    rgba(10, 19, 36, 0.86);
  box-shadow: var(--shadow);
}

.hero-home .hero-copy,
.hero-home .hero-panel {
  padding: 2rem;
}

.hero-stat-card,
.mini-card,
.meta-card,
.card {
  padding: 1.4rem;
}

.kicker,
.meta-label {
  display: block;
  margin-bottom: 0.45rem;
  color: #aebce0;
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.status-badge,
.pill {
  display: inline-flex;
  width: fit-content;
  padding: 0.45rem 0.75rem;
  border-radius: 999px;
  font-size: 0.8rem;
  font-weight: 700;
}

.status-soon {
  background: rgba(121, 167, 255, 0.15);
  color: #bfd6ff;
}

.status-dev {
  background: rgba(118, 255, 210, 0.12);
  color: #acffe9;
}

.status-ghost {
  background: rgba(255, 255, 255, 0.06);
  color: #d9e3fb;
}

.pill {
  background: rgba(255, 255, 255, 0.05);
  color: #d0dcff;
}

.section {
  padding: 1.3rem 0 3rem;
}

.section-alt {
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.015), rgba(255, 255, 255, 0));
}

.section-heading {
  margin-bottom: 1.5rem;
}

.card-grid,
.stack-grid {
  display: grid;
  gap: 1.1rem;
}

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

.card-grid-three {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.card-grid-four {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.stack-grid {
  grid-template-columns: 1fr;
}

.card-top {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 1rem;
  margin-bottom: 1rem;
}

.content-list {
  margin: 0;
  padding-left: 1.1rem;
}

.content-list li {
  margin-bottom: 0.7rem;
  color: #dce6fb;
}

.numbered-list {
  padding-left: 1.25rem;
}

.legal-layout {
  display: grid;
}

.legal-card {
  max-width: 56rem;
}

.legal-card h2 {
  margin-top: 1.7rem;
}

.legal-card h2:first-child {
  margin-top: 0;
}

.legal-card h3 {
  margin-top: 1rem;
}

.meta-strip,
.breadcrumb-row {
  color: var(--muted);
  font-size: 0.95rem;
}

.breadcrumb-row a {
  color: #c4d7ff;
}

.notice-box {
  margin: 1rem 0 1.2rem;
  padding: 1rem 1.1rem;
  border-radius: var(--radius-sm);
  border: 1px solid rgba(173, 196, 255, 0.16);
  background: rgba(121, 167, 255, 0.08);
}

.notice-danger {
  background: var(--danger-soft);
  border-color: rgba(255, 133, 164, 0.22);
}

.store-placeholder {
  border: 1px dashed rgba(173, 196, 255, 0.24);
  color: #aebce0;
  background: rgba(255, 255, 255, 0.03);
  cursor: not-allowed;
}

.cta-card {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.site-footer {
  width: min(calc(100% - 2rem), var(--max));
  margin: 2rem auto 1.25rem;
  padding: 1.6rem;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr 0.9fr;
  gap: 1.5rem;
}

.site-footer h2 {
  margin-bottom: 0.9rem;
  font-size: 1.15rem;
}

.site-footer a {
  display: block;
  margin-bottom: 0.5rem;
  color: var(--muted);
}

.footer-meta {
  padding-top: 1rem;
  margin-top: 1rem;
  border-top: 1px solid var(--line);
  color: var(--muted);
}

@media (max-width: 980px) {
  .hero-grid,
  .card-grid-two,
  .card-grid-three,
  .card-grid-four,
  .footer-grid,
  .detail-hero {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 760px) {
  .nav-toggle {
    display: inline-flex;
  }

  .site-nav {
    position: absolute;
    top: calc(100% + 0.5rem);
    right: 1rem;
    left: 1rem;
    display: none;
    flex-direction: column;
    align-items: flex-start;
    padding: 1rem;
    border: 1px solid var(--line);
    border-radius: var(--radius-md);
    background: rgba(7, 17, 31, 0.96);
    box-shadow: var(--shadow);
  }

  .site-nav.is-open {
    display: flex;
  }

  .hero,
  .page-hero {
    padding-top: 4rem;
  }

  .hero-home .hero-copy,
  .hero-home .hero-panel,
  .site-footer,
  .card,
  .meta-card,
  .hero-stat-card,
  .mini-card {
    padding: 1.15rem;
  }

  h1 {
    font-size: clamp(2.2rem, 10vw, 3.5rem);
  }
}
