/* Rounding — Nova radii, same as Layout's `userChrome.rounding.mode = full`:
   pill for buttons and nav, 24px for cards and panels. */
:root {
  --radius-pill: 9999px;
  --radius-panel: 24px;
}

/* Basic reset */
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: ui-sans-serif, system-ui, -apple-system, Segoe UI, Roboto, Ubuntu, Cantarell, Noto Sans, Arial, "Apple Color Emoji", "Segoe UI Emoji";
  color: rgba(255,255,255,0.92);
  background: #070a12;
  line-height: 1.5;
}

/* Layout helpers */
.container {
  width: min(1100px, calc(100% - 2rem));
  margin: 0 auto;
}
.section { padding: 4.5rem 0; }
.main { position: relative; z-index: 1; }

/* Top notice */
.notice {
  position: sticky;
  top: 0;
  z-index: 20;
  padding: 0.65rem 1rem;
  text-align: center;
  background: linear-gradient(90deg, #ff2a2a, #ff6a00);
  color: rgba(0,0,0,0.85);
  font-weight: 700;
}

/* Hero */
.hero {
  position: relative;
  z-index: 1;
  min-height: 100svh; /* Full viewport height on mobile too */
  display: grid;
  place-items: center;
  padding: 3.5rem 0 2.5rem;
}

.hero__inner {
  text-align: center;
  display: grid;
  gap: 0.9rem;
  justify-items: center;
}

.hero__logo {
  width: 75px;
  height: 75px;
  border-radius: var(--radius-pill);
  position: relative;
  overflow: hidden;
  display: block;
  background: radial-gradient(circle at center, #01050b 0%, #0b1624 100%);
  border: 0.35rem solid rgba(255,255,255,0.90);
  box-shadow:
    2px 1.5px 0 rgba(151,151,151,0.5),
    inset 2px 1.5px 0 rgba(151,151,151,0.5),
    0 12px 60px rgba(0,0,0,0.55);
  text-decoration: none;
  perspective: 420px;
}

.hero__logo-enter {
  display: block;
  animation: logo-enter 0.9s ease-out both;
}
@keyframes logo-enter {
  from { opacity: 0; }
  to   { opacity: 1; }
}

.hero__title {
  margin: 0.25rem 0 0;
  font-size: clamp(2.4rem, 5vw, 4.2rem);
  font-weight: 500;
  letter-spacing: 0.2px;
  text-shadow: 0 14px 70px rgba(0,0,0,0.65);
}

.hero__tagline {
  margin: 0;
  font-size: 1.15rem;
  color: rgba(255,255,255,0.82);
}

.hero__cta {
  display: flex;
  gap: 0.75rem;
  flex-wrap: wrap;
  justify-content: center;
  margin-top: 0.6rem;
}

.hero__note {
  margin: 0.4rem 0 0;
  max-width: 70ch;
  color: rgba(255,255,255,0.62);
  line-height: 1.6;
}

/* Scroll hint */
.scroll-hint {
  margin-top: 1.2rem;
  text-decoration: none;
  color: rgba(255,255,255,0.75);
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.5rem 0.9rem;
  border-radius: var(--radius-pill);
  border: 1px solid rgba(255,255,255,0.14);
  background: rgba(255,255,255,0.05);
  backdrop-filter: blur(8px);
}
.scroll-hint__arrow {
  display: inline-block;
  animation: scroll-bob 1.2s ease-in-out infinite;
}
@keyframes scroll-bob {
  0%, 100% { transform: translateY(0); opacity: 0.8; }
  50% { transform: translateY(3px); opacity: 1; }
}


/* Nav */
.nav {
  display: inline-flex;
  gap: 0.6rem;
  flex-wrap: wrap;
  justify-content: center;
  margin-top: 1.25rem;
  padding: 0.65rem 0.75rem;
  background: rgba(255,255,255,0.06);
  border: 1px solid rgba(255,255,255,0.12);
  border-radius: var(--radius-pill);
  backdrop-filter: blur(8px);
}
.nav a {
  color: rgba(255,255,255,0.85);
  text-decoration: none;
  padding: 0.45rem 0.7rem;
  border-radius: var(--radius-pill);
}
.nav a:hover,
.nav a:focus-visible {
  outline: none;
  background: rgba(255,255,255,0.10);
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.45rem;
  padding: 0.72rem 1.1rem;
  border-radius: var(--radius-pill);
  border: 1px solid rgba(255,255,255,0.14);
  background: rgba(255,255,255,0.06);
  color: rgba(255,255,255,0.92);
  text-decoration: none;
  font-weight: 800;
  backdrop-filter: blur(10px);
  transition: background 120ms ease, border-color 120ms ease;
}
.btn:hover,
.btn:focus-visible {
  outline: none;
  background: rgba(255,255,255,0.09);
  border-color: rgba(255,255,255,0.22);
}
.btn--primary {
  background: linear-gradient(135deg, rgba(255,80,120,0.35), rgba(110,80,255,0.35));
  border-color: rgba(255,255,255,0.18);
}
.btn--ghost {
  background: transparent;
}
.btn--disabled {
  opacity: 0.55;
  cursor: not-allowed;
  pointer-events: none;
}

/* Typography */
h2 {
  font-size: clamp(1.6rem, 2.2vw, 2.2rem);
  margin: 0 0 0.9rem;
  letter-spacing: 0.2px;
}
h3 {
  margin: 0 0 0.5rem;
  letter-spacing: 0.2px;
}
.lead { color: rgba(255,255,255,0.78); max-width: 70ch; }
.muted { color: rgba(255,255,255,0.66); }

/* Cards */
.cards {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1rem;
  margin-top: 1.2rem;
}
.card {
  padding: 1.15rem 1.15rem;
  border-radius: var(--radius-panel);
  border: 1px solid rgba(255,255,255,0.12);
  background: rgba(255,255,255,0.05);
  backdrop-filter: blur(10px);
  box-shadow: 0 10px 40px rgba(0,0,0,0.35);
}
.card--glass {
  background: rgba(255,255,255,0.07);
}
.card__title { margin-bottom: 0.75rem; }

/* Two column grid */
.grid2 {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 1.2rem;
  align-items: start;
}

/* Bullets */
.bullets {
  margin: 1rem 0 0;
  padding-left: 1.2rem;
}
.bullets li { margin: 0.35rem 0; }

/* CSS-only gallery (scroll-snap) */
.snap {
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: 90%;
  gap: 0.75rem;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  padding-bottom: 0.25rem;
  -webkit-overflow-scrolling: touch;
}
.snap__item {
  scroll-snap-align: start;
  margin: 0;
  border-radius: var(--radius-panel);
  overflow: hidden;
  border: 1px solid rgba(255,255,255,0.12);
  background: rgba(0,0,0,0.25);
}
.snap__item img {
  display: block;
  width: 100%;
  height: auto;
}

/* Iframe frame */
.frame {
  border-radius: var(--radius-panel);
  border: 1px solid rgba(255,255,255,0.12);
  background: rgba(255,255,255,0.04);
  overflow: hidden;
  box-shadow: 0 14px 60px rgba(0,0,0,0.45);
}
.frame iframe {
  width: 100%;
  height: min(760px, 75vh);
  border: 0;
  display: block;
}

/* Stats */
.stats {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 0.75rem;
  margin-top: 1.1rem;
}
.stat {
  padding: 1rem 0.9rem;
  border-radius: var(--radius-panel);
  border: 1px solid rgba(255,255,255,0.12);
  background: rgba(255,255,255,0.05);
  text-align: center;
  backdrop-filter: blur(10px);
}
.stat__value {
  font-size: 1.25rem;
  font-weight: 950;
}
.stat__label {
  margin-top: 0.25rem;
  color: rgba(255,255,255,0.70);
}

/* Support links */
.links {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
  margin-top: 0.9rem;
}
.pill {
  text-decoration: none;
  color: rgba(255,255,255,0.9);
  padding: 0.6rem 0.85rem;
  border-radius: var(--radius-pill);
  border: 1px solid rgba(255,255,255,0.14);
  background: rgba(255,255,255,0.06);
  backdrop-filter: blur(8px);
}
.pill:hover,
.pill:focus-visible {
  outline: none;
  background: rgba(255,255,255,0.09);
}

.nav--sticky {
  position: sticky;
  top: 0;
  z-index: 15;
  padding: 0.75rem 0;
  backdrop-filter: blur(10px);
  background: rgba(6, 8, 16, 0.55);
  border-bottom: 1px solid rgba(255,255,255,0.10);
}

.nav__inner {
  display: flex;
  justify-content: center;
  gap: 0.6rem;
  flex-wrap: wrap;
}

.nav a {
  color: rgba(255,255,255,0.88);
  text-decoration: none;
  padding: 0.45rem 0.75rem;
  border-radius: var(--radius-pill);
}
.nav a:hover,
.nav a:focus-visible {
  outline: none;
  background: rgba(255,255,255,0.10);
}
.nav.nav--sticky{
  display: flex;
  justify-content: center;
  margin-top: 0;

  /* Keep it floating-like (no full-width bar) */
  background: transparent;
  border: none;
  border-radius: 0;
  padding: 1rem 0;
  top: 1rem;
  backdrop-filter: none;
}

.nav.nav--sticky .nav__inner.container{
  width: fit-content;
  max-width: none;
  margin: 0;
  padding: 0.65rem 0.85rem;

  display: flex;
  justify-content: center;
  gap: 0.6rem;
  flex-wrap: wrap;

  background: rgba(255,255,255,0.06);
  border: 1px solid rgba(255,255,255,0.12);
  border-radius: var(--radius-pill);
  backdrop-filter: blur(10px);
}

/* Avoid anchor targets hiding behind sticky nav */
.section { scroll-margin-top: 5rem; }

:root{
  --container-wide: 1300px;
  --container-normal: 1200px; /* main content width */
  --container-narrow: 760px; /* when stacked */
}

/* Keep your existing container behavior, but base it on vars */
.container{
  width: min(var(--container-wide), calc(100% - 2rem));
  margin: 0 auto;
}

.section > .container,
.footer .container{
  width: min(var(--container-normal), calc(100% - 2rem));
}

.card.card--glass{
  max-width: 920px;
  margin-left: auto;
  margin-right: auto;
}

/* Footer */
.footer {
  padding: 2rem 0 3.5rem;
  border-top: 1px solid rgba(255,255,255,0.10);
  background: rgba(0,0,0,0.18);
  position: relative;
  z-index: 1;
}
.footer__inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
  flex-wrap: wrap;
}
.footer__left {
  display: flex;
  flex-direction: column;
  gap: 0.15rem;
}

/* CTA row */
.cta {
  display: flex;
  gap: 0.75rem;
  flex-wrap: wrap;
  margin-top: 1.2rem;
}

/* Responsive */
/* When grid2 stacks (your 980px breakpoint), also narrow & center the blocks */
@media (max-width: 980px){
  .section > .container,
  .footer .container{
    width: min(var(--container-narrow), calc(100% - 2rem));
  }

  .grid2{
    justify-items: center;
  }
  .grid2 > *{
    width: 100%;
    max-width: var(--container-narrow);
  }

  .grid2 > div:first-child{
    text-align: center;
  }
  .bullets{
    display: inline-block; /* lets the list sit centered as a block */
    text-align: left;      /* but list items remain left-aligned */
  }

  /* Center big blocks so they don't feel like they start from the left edge */
  .cards,
  .stats,
  .frame{
    margin-left: auto;
    margin-right: auto;
  }
}
@media (min-width: 700px) {
  .nav.nav--sticky .nav__inner { flex-wrap: nowrap; }
}
@media (max-width: 560px) {
  .cards { grid-template-columns: 1fr; }
  .stats { grid-template-columns: repeat(2, 1fr); }
}

.logo-stars {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  overflow: visible;
}
.logo-stars .star {
  fill: #fff;
  opacity: 0;
  transform-box: fill-box;
  transform-origin: center;
  transform: scale(0.3);
  animation: logo-twinkle var(--d, 3s) ease-in-out var(--t, 0s) infinite;
}
@keyframes logo-twinkle {
  0%   { opacity: 0;                      transform: scale(0.3); }
  45%  { opacity: var(--o, 0.9);          transform: scale(1); }
  60%  { opacity: calc(var(--o, 0.9) * 0.85); transform: scale(0.92); }
  100% { opacity: 0;                      transform: scale(0.3); }
}

.logo-plane {
  position: absolute;
  left: 14.85%;
  top: 17.81%;
  width: 65.8%;
  height: 65.8%;
  pointer-events: none;
  transform: rotateZ(50deg);
  transform-style: preserve-3d;
}
.logo-plane__spin {
  display: block;
  width: 100%;
  height: 100%;
  transform-style: preserve-3d;
  will-change: transform;
}
.logo-plane img {
  display: block;
  width: 100%;
  height: 100%;
  transform: rotateZ(-50deg);
  filter: drop-shadow(0 0 14px rgba(255,255,255,0.10));
}

@media (prefers-reduced-motion: reduce) {
  .hero__logo-enter { animation: none; }
  .logo-stars .star { animation: none; opacity: var(--o, 0.9); transform: none; }
}
