@import url('https://fonts.googleapis.com/css2?family=Bricolage+Grotesque:wght@400;500;700;800&family=Space+Mono:wght@400;700&display=swap');

[hidden] { display: none !important; }

:root {
  --ink: #eef4ff;
  --muted: #a9b3d9;
  --sky: #6ef7ff;
  --violet: #6a5bff;
  --base: #070b19;
  --panel: rgba(18, 26, 60, 0.78);
}

* { box-sizing: border-box; }

body {
  margin: 0;
  font-family: 'Bricolage Grotesque', sans-serif;
  color: var(--ink);
  background:
    radial-gradient(circle at 15% 10%, #20307a 0%, transparent 38%),
    radial-gradient(circle at 80% 0%, #142a58 0%, transparent 43%),
    linear-gradient(180deg, #060a17 0%, #080d1e 55%, #04070f 100%);
}

.top-ribbon {
  position: sticky;
  top: 0;
  z-index: 30;
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 1rem;
  padding: 0.8rem clamp(1rem, 4vw, 3rem);
  backdrop-filter: blur(12px);
  background: rgba(7, 10, 23, 0.86);
  border-bottom: 1px solid rgba(110, 247, 255, 0.3);
}

.brandmark img { width: clamp(160px, 30vw, 240px); display: block; }

.menu-toggle {
  justify-self: end;
  background: transparent;
  border: 1px solid rgba(110, 247, 255, 0.4);
  color: var(--sky);
  border-radius: 999px;
  padding: 0.45rem 0.8rem;
  font-family: 'Space Mono', monospace;
  font-size: 0.78rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.ribbon-links {
  display: flex;
  justify-content: center;
  gap: 1rem;
  list-style: none;
  margin: 0;
  padding: 0;
}

.ribbon-links a {
  color: var(--ink);
  text-decoration: none;
  font-weight: 600;
  font-size: 0.94rem;
  padding: 0.35rem 0.65rem;
  border-radius: 999px;
}

.ribbon-links a:hover,
.ribbon-links a[aria-current='page'] { background: rgba(110, 247, 255, 0.16); }

main {
  width: min(1400px, 96vw);
  margin: 1.2rem auto 2.2rem;
  display: grid;
  gap: 1.3rem;
}

.launchpad {
  display: grid;
  grid-template-columns: 1.3fr 1fr;
  gap: 1rem;
  align-items: stretch;
}

.launch-copy,
.launch-stats,
.notice-strip,
.widget-grid article,
.portal,
.page-sheet {
  background: var(--panel);
  border: 1px solid rgba(139, 172, 255, 0.25);
  border-radius: 18px;
}

.launch-copy { padding: 1.3rem; }
.launch-copy h1 {
  font-size: clamp(1.7rem, 5vw, 3rem);
  margin: 0 0 0.7rem;
  line-height: 1.1;
}

.launch-copy p {
  margin: 0.4rem 0;
  color: var(--muted);
  max-width: 62ch;
}

.badge-row {
  margin-top: 0.9rem;
  display: flex;
  flex-wrap: wrap;
  gap: 0.55rem;
}

.badge-row span {
  background: linear-gradient(120deg, rgba(106, 91, 255, 0.35), rgba(110, 247, 255, 0.22));
  border: 1px solid rgba(182, 229, 255, 0.32);
  border-radius: 999px;
  padding: 0.34rem 0.72rem;
  font-size: 0.82rem;
  font-family: 'Space Mono', monospace;
}

.launch-stats {
  padding: 1.2rem;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.8rem;
}

.stat {
  background: rgba(9, 13, 28, 0.72);
  border-radius: 14px;
  padding: 0.8rem;
  border: 1px solid rgba(110, 247, 255, 0.23);
}

.stat strong { display: block; font-size: 1.25rem; margin-bottom: 0.25rem; }
.stat span { color: var(--muted); font-size: 0.88rem; }

.notice-strip {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.7rem;
  padding: 0.8rem;
}

.notice-strip p {
  margin: 0;
  background: rgba(7, 12, 28, 0.72);
  border-radius: 12px;
  border: 1px solid rgba(107, 127, 214, 0.36);
  padding: 0.7rem;
  font-size: 0.9rem;
}

.portal {
  padding: 1rem;
}

.portal h2 { margin: 0 0 0.7rem; font-size: clamp(1.4rem, 4vw, 2rem); }

.portal iframe {
  width: 100%;
  min-height: 540px;
  border: 0;
  border-radius: 14px;
  background: #000;
}

.widget-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.8rem;
}

.widget-grid article {
  padding: 1rem;
}

.widget-grid h3 { margin-top: 0; font-size: 1.05rem; }
.widget-grid p { margin: 0; color: var(--muted); }

.page-sheet {
  padding: 1.2rem;
}

.page-sheet h1 { margin-top: 0; font-size: clamp(1.6rem, 4.5vw, 2.5rem); }
.page-sheet h2 { margin: 1.2rem 0 0.5rem; font-size: 1.15rem; }
.page-sheet p,
.page-sheet li { color: #d2daf7; line-height: 1.58; }

footer {
  margin-top: 1.1rem;
  border-top: 1px solid rgba(110, 247, 255, 0.24);
  padding: 1.1rem clamp(1rem, 3vw, 2rem) 1.6rem;
  background: rgba(4, 6, 16, 0.8);
}

footer p { margin: 0 0 0.45rem; color: #c8d2f7; }
.helplinks { display: flex; gap: 1rem; flex-wrap: wrap; }
.helplinks a { color: #9fefff; }

.age-wall {
  position: fixed;
  inset: 0;
  z-index: 100;
  display: grid;
  place-items: center;
  background: rgba(3, 5, 14, 0.94);
  padding: 1rem;
}

.age-panel {
  width: min(460px, 95vw);
  border-radius: 16px;
  border: 1px solid rgba(110, 247, 255, 0.35);
  background: #0b122b;
  padding: 1.15rem;
}

.age-panel h2 { margin-top: 0; }
.age-actions { display: flex; gap: 0.65rem; }
.age-actions button {
  flex: 1;
  border: 0;
  border-radius: 10px;
  padding: 0.65rem 0.8rem;
  font-weight: 700;
}

#age-yes { background: linear-gradient(120deg, #6ef7ff, #6a5bff); color: #050a18; }
#age-no { background: #2a324f; color: #f5f8ff; }

@media (max-width: 920px) {
  .launchpad { grid-template-columns: 1fr; }
  .widget-grid { grid-template-columns: 1fr 1fr; }
  .notice-strip { grid-template-columns: 1fr; }
}

@media (max-width: 760px) {
  .top-ribbon { grid-template-columns: auto auto; grid-template-areas: 'brand toggle' 'menu menu'; }
  .brandmark { grid-area: brand; }
  .menu-toggle { grid-area: toggle; }
  .ribbon-links {
    grid-area: menu;
    display: none;
    flex-direction: column;
    align-items: flex-start;
    padding-top: 0.5rem;
  }
  .ribbon-links.open { display: flex; }
  .widget-grid { grid-template-columns: 1fr; }
  .portal iframe { min-height: 430px; }
}
