:root {
  --bg: #071019;
  --bg-alt: #0b1520;
  --surface: rgba(19, 32, 46, 0.72);
  --surface-strong: rgba(25, 43, 61, 0.84);
  --text: #d8e6f1;
  --muted: #93a8b9;
  --line: rgba(120, 154, 178, 0.2);
  --accent: #66c0f4;
  --accent-soft: rgba(102, 192, 244, 0.12);
  --shadow: 0 20px 56px rgba(0, 0, 0, 0.34);
  --radius-xl: 24px;
  --radius-lg: 18px;
  --radius-md: 14px;
  --radius-sm: 10px;
  --max: 920px;
  --font: "Segoe UI Variable Text", "Segoe UI", "Inter", sans-serif;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100vh;
  font-family: var(--font);
  color: var(--text);
  background:
    radial-gradient(circle at top left, rgba(102, 192, 244, 0.08), transparent 30%),
    radial-gradient(circle at bottom right, rgba(40, 104, 152, 0.13), transparent 26%),
    linear-gradient(180deg, var(--bg), var(--bg-alt));
  overflow-x: hidden;
}

body::before,
body::after {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 0;
}

body::before {
  opacity: 0.44;
  background-image:
    radial-gradient(circle, rgba(174, 224, 255, 0.65) 0 0.8px, transparent 1.2px),
    radial-gradient(circle, rgba(102, 192, 244, 0.42) 0 0.7px, transparent 1.1px),
    radial-gradient(circle, rgba(255, 255, 255, 0.28) 0 0.6px, transparent 1px);
  background-position: 0 0, 32px 48px, 76px 18px;
  background-size: 118px 126px, 164px 176px, 210px 224px;
  animation: star-drift 24s ease-in-out infinite alternate;
}

body::after {
  background:
    linear-gradient(90deg, rgba(102, 192, 244, 0.035), transparent 18%, transparent 82%, rgba(102, 192, 244, 0.035)),
    radial-gradient(circle at 50% 12%, rgba(102, 192, 244, 0.08), transparent 36%);
}

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

@keyframes star-drift {
  from { transform: translate3d(0, 0, 0); }
  to { transform: translate3d(-10px, 7px, 0); }
}

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

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

.shell {
  position: relative;
  width: min(var(--max), 64vw);
  margin: 0 auto;
}

.topbar {
  position: sticky;
  top: 0;
  z-index: 20;
  backdrop-filter: blur(18px);
  background: rgba(7, 16, 25, 0.84);
  border-bottom: 1px solid var(--line);
}

.topbar-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 14px 0;
}

.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 700;
  letter-spacing: 0.02em;
}

.brand-mark {
  width: 38px;
  height: 38px;
  border-radius: 11px;
  display: grid;
  place-items: center;
  overflow: hidden;
  color: #eff8fe;
  background: linear-gradient(135deg, #1b3350, #2f6c9d);
  box-shadow: 0 10px 24px rgba(0, 0, 0, 0.28);
}

.brand-mark img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.brand-copy {
  display: flex;
  flex-direction: column;
  line-height: 1.05;
}

.brand-copy span:last-child {
  color: var(--muted);
  font-size: 0.78rem;
  font-weight: 500;
}

.nav {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 6px;
}

.nav a {
  padding: 8px 12px;
  border-radius: 999px;
  color: var(--muted);
  transition: transform 0.18s ease, background 0.18s ease, color 0.18s ease;
}

.nav a:hover,
.nav a[aria-current="page"] {
  background: rgba(102, 192, 244, 0.16);
  color: #f3f8fc;
  transform: translateY(-1px);
}

.hero {
  padding: 44px 0 22px;
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.35fr 0.9fr;
  gap: 18px;
  align-items: stretch;
}

.panel {
  border: 1px solid var(--line);
  border-radius: var(--radius-xl);
  background: var(--surface);
  box-shadow: var(--shadow);
  backdrop-filter: blur(16px);
}

.hero-main {
  padding: 28px;
  overflow: hidden;
  position: relative;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 7px 11px;
  border-radius: 999px;
  background: var(--accent-soft);
  color: var(--accent);
  font-size: 0.76rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.hero h1 {
  margin: 14px 0 13px;
  font-size: clamp(2.25rem, 4.4vw, 4.2rem);
  line-height: 0.96;
  letter-spacing: -0.06em;
  max-width: 11ch;
}

.hero p {
  margin: 0;
  max-width: 60ch;
  color: var(--muted);
  font-size: 0.96rem;
  line-height: 1.62;
}

.hero-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 18px;
}

.chip {
  padding: 8px 11px;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: rgba(17, 31, 44, 0.7);
  color: #d7e6f2;
  font-size: 0.84rem;
}

.hero-side {
  padding: 22px;
  display: grid;
  gap: 12px;
}

.stack-card {
  padding: 16px;
  border-radius: var(--radius-lg);
  background: var(--surface-strong);
  border: 1px solid var(--line);
}

.stack-card h2,
.section-title h2,
.mini-panel h2 {
  margin: 0 0 10px;
  font-size: 1.05rem;
  letter-spacing: -0.03em;
}

.stack-card p,
.section-title p,
.mini-panel p,
.step-card p,
.social-card p {
  margin: 0;
  color: var(--muted);
  line-height: 1.52;
}

.section {
  padding: 14px 0 26px;
}

.section-grid {
  display: grid;
  grid-template-columns: 0.95fr 1.05fr;
  gap: 18px;
}

.section-title {
  padding: 22px;
}

.section-title .eyebrow {
  margin-bottom: 14px;
}

.section-title h2 {
  font-size: clamp(1.6rem, 3vw, 2.7rem);
}

.section-body {
  padding: 22px;
}

.steps-grid {
  display: grid;
  gap: 12px;
}

.step-card {
  padding: 16px;
  border-radius: var(--radius-lg);
  background: var(--surface-strong);
  border: 1px solid var(--line);
}

.step-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 12px;
}

.step-index {
  min-width: 38px;
  height: 38px;
  border-radius: 12px;
  display: grid;
  place-items: center;
  font-weight: 800;
  background: var(--accent);
  color: white;
}

.step-badge {
  padding: 7px 11px;
  border-radius: 999px;
  background: var(--accent-soft);
  color: var(--accent);
  font-size: 0.82rem;
  font-weight: 700;
}

.link-card {
  display: grid;
  gap: 14px;
}

.link-row {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}

.link-row.column {
  flex-direction: column;
  align-items: flex-start;
}

.link-card .link-row {
  justify-content: center;
}

.btn {
  appearance: none;
  border: none;
  border-radius: 999px;
  padding: 10px 15px;
  font: inherit;
  font-weight: 700;
  cursor: pointer;
  transition: transform 0.18s ease, opacity 0.18s ease, background 0.18s ease;
}

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

.btn-primary {
  background: var(--accent);
  color: white;
}

.btn-secondary {
  background: rgba(255, 255, 255, 0.7);
  color: var(--text);
  border: 1px solid var(--line);
}

.video-box {
  display: grid;
  gap: 12px;
}

.video-thumb {
  position: relative;
  aspect-ratio: 16 / 9;
  border-radius: 20px;
  overflow: hidden;
  border: 1px solid var(--line);
  background:
    linear-gradient(135deg, rgba(8, 20, 31, 0.96), rgba(33, 91, 135, 0.8)),
    radial-gradient(circle at top right, rgba(102, 192, 244, 0.34), transparent 45%);
  box-shadow: 0 28px 60px rgba(0, 0, 0, 0.28);
}

.video-thumb::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.1), transparent 50%),
    linear-gradient(135deg, transparent 40%, rgba(255, 255, 255, 0.08) 100%);
}

.video-thumb .thumb-label {
  position: absolute;
  left: 14px;
  bottom: 14px;
  max-width: 70%;
  padding: 9px 11px;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.14);
  color: white;
  backdrop-filter: blur(12px);
  border: 1px solid rgba(255, 255, 255, 0.12);
}

.play-button {
  position: absolute;
  inset: 50% auto auto 50%;
  transform: translate(-50%, -50%);
  width: 66px;
  height: 66px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: rgba(255, 255, 255, 0.94);
  color: var(--accent);
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.26);
}

.play-button svg {
  width: 24px;
  height: 24px;
  margin-left: 3px;
}

.note {
  padding: 16px 18px;
  border-radius: var(--radius-md);
  background: rgba(15, 118, 110, 0.08);
  border: 1px dashed rgba(15, 118, 110, 0.26);
  color: #215e58;
  line-height: 1.6;
}

.muted {
  margin: 0;
  color: var(--muted);
}

.social-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
}

.social-card {
  display: block;
  padding: 0;
  overflow: hidden;
  border-radius: var(--radius-lg);
  background: var(--surface-strong);
  border: 1px solid var(--line);
  transition: transform 0.18s ease, border-color 0.18s ease, background 0.18s ease;
}

.social-card:hover {
  transform: translateY(-3px);
  border-color: rgba(102, 192, 244, 0.48);
  background: rgba(30, 52, 72, 0.9);
}

.social-visual {
  position: relative;
  height: 128px;
  overflow: hidden;
  display: grid;
  place-items: center;
  background:
    linear-gradient(135deg, rgba(4, 10, 16, 0.88), rgba(31, 77, 111, 0.86)),
    radial-gradient(circle at 20% 0%, rgba(102, 192, 244, 0.3), transparent 58%);
  border-bottom: 1px solid var(--line);
}

.social-visual::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 45%, rgba(4, 10, 16, 0.45));
  pointer-events: none;
}

.social-visual img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  opacity: 0.9;
  filter: saturate(0.96) contrast(1.06);
  transition: transform 0.28s ease, opacity 0.28s ease;
}

.social-card:hover .social-visual img {
  transform: scale(1.06);
  opacity: 1;
}

.social-card-content {
  padding: 16px 18px 18px;
}

.social-card-content h2 {
  margin: 0 0 8px;
  font-size: 1.12rem;
  letter-spacing: -0.03em;
}

.social-card .label {
  display: inline-flex;
  margin-bottom: 10px;
  padding: 7px 11px;
  border-radius: 999px;
  background: var(--accent-soft);
  color: var(--accent);
  font-size: 0.8rem;
  font-weight: 700;
}

.footer {
  padding: 8px 0 30px;
  color: var(--muted);
  font-size: 0.95rem;
}

.footer-inner {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 12px;
  padding-top: 18px;
  border-top: 1px solid var(--line);
}

.empty-state {
  padding: 14px 16px;
  border-radius: var(--radius-md);
  border: 1px dashed rgba(102, 192, 244, 0.24);
  background: rgba(17, 31, 44, 0.62);
  color: var(--muted);
}

.progress {
  display: grid;
  gap: 12px;
  margin-bottom: 18px;
}

.progress-bar {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
}

.progress-bar span {
  height: 10px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.08);
}

.progress-bar span.active {
  background: linear-gradient(90deg, #66c0f4, #8cd3ff);
}

.download-grid {
  display: grid;
  gap: 16px;
}

.download-card {
  padding: 18px;
  border-radius: var(--radius-lg);
  background: var(--surface-strong);
  border: 1px solid var(--line);
  display: grid;
  gap: 12px;
}

.download-name {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.download-name strong {
  font-size: 1rem;
}

.file-meta {
  color: var(--muted);
  font-size: 0.92rem;
}

.download-link {
  display: inline-flex;
  width: fit-content;
  align-items: center;
  gap: 10px;
  padding: 10px 14px;
  border-radius: 999px;
  background: var(--accent);
  color: #06121b;
  font-weight: 700;
}

.gate-page {
  min-height: 100vh;
  display: grid;
  place-items: center;
}

.gate-shell {
  width: min(920px, 64vw);
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 18px;
}

.gate-brand {
  grid-column: 1 / -1;
  justify-self: center;
}

.gate-panel,
.gate-side,
.gate-lock {
  padding: 22px;
}

.gate-panel h1,
.gate-lock h1 {
  margin: 16px 0 14px;
  font-size: clamp(2rem, 3.8vw, 3.4rem);
  line-height: 0.95;
  letter-spacing: -0.06em;
}

.token-card {
  margin: 18px 0 14px;
  padding: 14px;
  border-radius: var(--radius-lg);
  background: rgba(17, 31, 44, 0.82);
  border: 1px solid var(--line);
  display: grid;
  gap: 8px;
}

.token-label {
  color: var(--muted);
  font-size: 0.84rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.token-code {
  font-size: 1rem;
  letter-spacing: 0.18em;
  font-weight: 800;
  word-break: break-all;
}

.gate-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.gate-note {
  margin-top: 14px;
  padding: 11px 13px;
  border-radius: var(--radius-md);
  background: var(--accent-soft);
  color: #bfe8ff;
  border: 1px solid rgba(102, 192, 244, 0.18);
}

.gate-side {
  align-self: stretch;
  display: grid;
  gap: 16px;
}

.gate-lock {
  display: grid;
  gap: 12px;
}

.route-list {
  display: grid;
  gap: 12px;
}

.route-item {
  display: grid;
  gap: 8px;
  padding: 14px;
  border-radius: var(--radius-lg);
  background: rgba(17, 31, 44, 0.7);
  border: 1px solid var(--line);
}

.route-item code {
  color: var(--accent);
  font-size: 0.86rem;
}

.callout {
  padding: 16px 18px;
  border-radius: var(--radius-md);
  background: rgba(102, 192, 244, 0.1);
  border: 1px solid rgba(102, 192, 244, 0.2);
  color: #dfeffd;
}

/* Page-specific layouts keep the three main sections visually distinct. */
.home-stage {
  padding: 58px 0 26px;
}

.home-stage-grid {
  display: grid;
  grid-template-columns: 1.24fr 0.76fr;
  gap: 18px;
  align-items: stretch;
}

.home-copy {
  padding: 34px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  min-height: 390px;
  background:
    linear-gradient(135deg, rgba(20, 48, 73, 0.78), rgba(13, 27, 42, 0.74)),
    radial-gradient(circle at 18% 12%, rgba(102, 192, 244, 0.18), transparent 45%);
}

.home-copy h1,
.guide-copy h1,
.social-hero h1 {
  margin: 18px 0 14px;
  max-width: 12ch;
  font-size: clamp(2.35rem, 4.2vw, 4.5rem);
  line-height: 0.96;
  letter-spacing: -0.065em;
}

.home-copy p,
.guide-copy p,
.social-hero p {
  max-width: 52ch;
  margin: 0;
  color: var(--muted);
  line-height: 1.65;
}

.home-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 24px;
}

.home-spotlight {
  padding: 18px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  background: rgba(11, 24, 38, 0.86);
}

.spotlight-logo {
  min-height: 236px;
  display: grid;
  place-items: center;
  overflow: hidden;
  border-radius: var(--radius-lg);
  border: 1px solid rgba(102, 192, 244, 0.2);
  background: #050b14;
}

.spotlight-logo img {
  width: min(76%, 250px);
  aspect-ratio: 1;
  object-fit: cover;
  border-radius: 50%;
  box-shadow: 0 18px 44px rgba(0, 0, 0, 0.42);
}

.spotlight-copy {
  padding: 20px 6px 4px;
}

.spotlight-copy h2 {
  margin: 10px 0 8px;
  font-size: 1.35rem;
  letter-spacing: -0.04em;
}

.spotlight-copy p {
  margin: 0;
  color: var(--muted);
  line-height: 1.55;
}

.home-quick-section {
  padding-top: 14px;
}

.home-section-heading {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 18px;
  margin-bottom: 14px;
}

.home-section-heading h2 {
  margin: 0;
  font-size: clamp(1.55rem, 2.5vw, 2.2rem);
  letter-spacing: -0.05em;
}

.home-quick-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
}

.home-quick-card {
  min-height: 178px;
  display: flex;
  flex-direction: column;
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background: rgba(17, 33, 49, 0.72);
  transition: transform 0.18s ease, border-color 0.18s ease, background 0.18s ease;
}

.home-quick-card:hover {
  transform: translateY(-4px);
  border-color: rgba(102, 192, 244, 0.48);
  background: rgba(25, 50, 71, 0.88);
}

.quick-index {
  color: var(--accent);
  font-size: 0.75rem;
  font-weight: 800;
  letter-spacing: 0.12em;
}

.quick-title {
  margin-top: 22px;
  font-size: 1.05rem;
  font-weight: 800;
}

.quick-copy {
  margin-top: 7px;
  color: var(--muted);
  font-size: 0.9rem;
  line-height: 1.45;
}

.quick-arrow,
.social-cta {
  margin-top: auto;
  padding-top: 18px;
  color: var(--accent);
  font-size: 0.82rem;
  font-weight: 800;
}

.guide-intro {
  padding: 54px 0 30px;
}

.guide-intro-grid {
  display: grid;
  grid-template-columns: 0.86fr 1.14fr;
  gap: 26px;
  align-items: center;
}

.guide-copy {
  padding: 6px 0;
}

.guide-stats {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 26px;
}

.guide-stats span {
  display: grid;
  gap: 2px;
  min-width: 128px;
  padding: 12px 14px;
  border-left: 2px solid var(--accent);
  background: rgba(18, 39, 57, 0.58);
  color: var(--muted);
  font-size: 0.78rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.guide-stats strong {
  color: var(--text);
  font-size: 1.15rem;
  letter-spacing: -0.04em;
}

.guide-video-card {
  padding: 14px;
  background: rgba(14, 29, 44, 0.88);
}

.guide-video-card .video-thumb {
  aspect-ratio: 16 / 8.6;
}

.guide-video-caption {
  padding: 14px 4px 4px;
}

.guide-video-caption p {
  margin: 8px 0 0;
  color: var(--muted);
  font-size: 0.9rem;
}

.guide-flow-section {
  padding-top: 24px;
}

.guide-flow-grid {
  display: grid;
  grid-template-columns: 0.72fr 1.28fr;
  gap: 34px;
  align-items: start;
}

.guide-flow-heading {
  position: sticky;
  top: 94px;
}

.guide-flow-heading h2 {
  margin: 16px 0 10px;
  font-size: clamp(1.75rem, 3vw, 2.8rem);
  letter-spacing: -0.06em;
}

.guide-flow-heading p {
  max-width: 28ch;
  margin: 0;
  color: var(--muted);
  line-height: 1.6;
}

.timeline-list {
  display: grid;
  gap: 10px;
}

.timeline-item {
  display: grid;
  grid-template-columns: 44px 1fr auto;
  align-items: center;
  gap: 14px;
  min-height: 84px;
  padding: 12px 16px 12px 12px;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background: rgba(18, 37, 54, 0.7);
  transition: transform 0.18s ease, border-color 0.18s ease;
}

.timeline-item:hover {
  transform: translateX(4px);
  border-color: rgba(102, 192, 244, 0.42);
}

.timeline-number {
  width: 42px;
  height: 42px;
  display: grid;
  place-items: center;
  border-radius: 13px;
  background: var(--accent-soft);
  color: var(--accent);
  font-size: 0.78rem;
  font-weight: 800;
}

.timeline-item strong,
.timeline-item span:not(.timeline-number):not(.timeline-arrow) {
  display: block;
}

.timeline-item div span {
  margin-top: 5px;
  color: var(--muted);
  font-size: 0.88rem;
}

.timeline-arrow {
  color: var(--accent);
  font-weight: 800;
}

.timeline-item-final {
  border-color: rgba(102, 192, 244, 0.3);
  background: linear-gradient(100deg, rgba(24, 63, 90, 0.72), rgba(18, 37, 54, 0.7));
}

.social-hero {
  padding: 54px 0 26px;
}

.social-hero-grid {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 24px;
}

.social-hero h1 {
  max-width: 14ch;
}

.social-stats {
  display: flex;
  gap: 10px;
  flex-shrink: 0;
}

.social-stats span {
  min-width: 92px;
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  background: rgba(17, 35, 51, 0.72);
}

.social-stats strong,
.social-stats small {
  display: block;
}

.social-stats strong {
  color: var(--accent);
  font-size: 1.35rem;
}

.social-stats small {
  margin-top: 4px;
  color: var(--muted);
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.social-wall-section {
  padding-top: 20px;
}

.social-wall {
  display: grid;
  grid-template-columns: 1.3fr 1fr;
  grid-template-rows: repeat(2, auto);
  gap: 14px;
}

.social-wall .social-card-featured {
  grid-row: span 2;
}

.social-card-featured .social-visual {
  height: 100%;
  min-height: 300px;
}

.social-card-featured .social-card-content {
  padding: 18px 20px 20px;
}

.social-card-featured .social-card-content h2 {
  font-size: 1.35rem;
}

.gate-lock[hidden],
[data-main][hidden] {
  display: none !important;
}

@media (max-width: 980px) {
  .shell,
  .gate-shell {
    width: min(920px, calc(100% - 40px));
  }

  .home-stage-grid,
  .guide-intro-grid,
  .guide-flow-grid {
    grid-template-columns: 1fr;
  }

  .guide-flow-heading {
    position: static;
  }

  .guide-flow-heading p {
    max-width: 52ch;
  }

  .social-hero-grid {
    align-items: flex-start;
    flex-direction: column;
  }

  .social-wall {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    grid-template-rows: auto;
  }

  .social-wall .social-card-featured {
    grid-column: 1 / -1;
    grid-row: auto;
  }

  .social-card-featured .social-visual {
    min-height: 220px;
  }

  .hero-grid,
  .section-grid {
    grid-template-columns: 1fr;
  }

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

@media (max-width: 640px) {
  .shell {
    width: min(var(--max), calc(100% - 22px));
  }

  .topbar-inner {
    align-items: flex-start;
    flex-direction: column;
  }

  .hero {
    padding-top: 34px;
  }

  .hero-main,
  .hero-side,
  .section-title,
  .section-body {
    padding: 20px;
  }

  .home-stage {
    padding-top: 32px;
  }

  .home-copy {
    min-height: 0;
    padding: 24px;
  }

  .home-spotlight {
    padding: 14px;
  }

  .spotlight-logo {
    min-height: 190px;
  }

  .home-quick-grid {
    grid-template-columns: 1fr;
  }

  .home-section-heading {
    align-items: flex-start;
    flex-direction: column;
  }

  .guide-intro,
  .social-hero {
    padding-top: 34px;
  }

  .guide-copy h1,
  .social-hero h1 {
    font-size: clamp(2.2rem, 12vw, 3.4rem);
  }

  .social-stats {
    width: 100%;
  }

  .social-stats span {
    flex: 1;
  }

  .social-wall {
    grid-template-columns: 1fr;
  }

  .social-wall .social-card-featured {
    grid-column: auto;
  }

  .timeline-item {
    grid-template-columns: 40px 1fr;
  }

  .timeline-number {
    width: 38px;
    height: 38px;
  }

  .timeline-arrow {
    grid-column: 2;
  }

  .hero h1 {
    max-width: 100%;
  }

  .progress-bar {
    grid-template-columns: 1fr;
  }

  .gate-shell {
    grid-template-columns: 1fr;
    width: min(var(--max), calc(100% - 22px));
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  body::before {
    animation: none;
  }
}

/* MediaGames visual refresh: a sharper gaming hub with more depth and rhythm. */
:root {
  --bg: #050b13;
  --bg-alt: #091522;
  --surface: rgba(12, 28, 44, 0.76);
  --surface-strong: rgba(16, 38, 58, 0.88);
  --surface-quiet: rgba(9, 23, 37, 0.76);
  --text: #edf7ff;
  --muted: #8fa9bc;
  --line: rgba(132, 177, 208, 0.2);
  --accent: #66c0f4;
  --accent-bright: #a7e1ff;
  --accent-soft: rgba(102, 192, 244, 0.12);
  --signal: #ffb454;
  --shadow: 0 26px 70px rgba(0, 0, 0, 0.38);
  --shadow-soft: 0 14px 34px rgba(0, 0, 0, 0.22);
  --radius-xl: 28px;
  --radius-lg: 20px;
  --radius-md: 14px;
  --max: 1120px;
  --font: "Bahnschrift", "Segoe UI Variable Text", "Segoe UI", sans-serif;
}

body {
  background:
    radial-gradient(circle at 8% 4%, rgba(102, 192, 244, 0.12), transparent 23%),
    radial-gradient(circle at 92% 16%, rgba(34, 104, 156, 0.14), transparent 25%),
    linear-gradient(140deg, var(--bg) 0%, #06111d 48%, var(--bg-alt) 100%);
}

body::after {
  opacity: 0.9;
  background:
    linear-gradient(rgba(102, 192, 244, 0.025) 1px, transparent 1px),
    linear-gradient(90deg, rgba(102, 192, 244, 0.025) 1px, transparent 1px),
    radial-gradient(circle at 50% -12%, rgba(102, 192, 244, 0.15), transparent 34%);
  background-size: 56px 56px, 56px 56px, auto;
  mask-image: linear-gradient(to bottom, black, transparent 80%);
}

.shell,
.gate-shell {
  width: min(var(--max), calc(100% - 48px));
}

.topbar {
  background: rgba(5, 11, 19, 0.78);
  border-bottom-color: rgba(132, 177, 208, 0.15);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.12);
}

.topbar-inner {
  min-height: 72px;
  padding: 12px 0;
}

.brand {
  gap: 12px;
  letter-spacing: 0.035em;
}

.brand-mark {
  width: 42px;
  height: 42px;
  border: 1px solid rgba(167, 225, 255, 0.32);
  border-radius: 13px;
  background: linear-gradient(145deg, #1b3c5b, #0a1828);
  box-shadow: 0 0 0 4px rgba(102, 192, 244, 0.05), 0 12px 28px rgba(0, 0, 0, 0.34);
}

.brand-copy span:first-child {
  font-size: 1rem;
}

.brand-copy span:last-child {
  margin-top: 5px;
  color: #7894a8;
  font-size: 0.68rem;
  letter-spacing: 0.13em;
  text-transform: uppercase;
}

.nav {
  gap: 4px;
}

.nav a {
  padding: 9px 13px;
  border: 1px solid transparent;
  font-size: 0.88rem;
}

.nav a:hover,
.nav a[aria-current="page"] {
  border-color: rgba(102, 192, 244, 0.18);
  background: rgba(102, 192, 244, 0.1);
  color: var(--accent-bright);
  transform: none;
}

.panel {
  border-color: rgba(132, 177, 208, 0.18);
  background: linear-gradient(145deg, rgba(14, 34, 52, 0.84), rgba(8, 21, 34, 0.78));
  box-shadow: var(--shadow);
}

.eyebrow {
  padding: 8px 11px;
  border: 1px solid rgba(102, 192, 244, 0.18);
  background: rgba(102, 192, 244, 0.08);
  color: var(--accent-bright);
  font-size: 0.67rem;
  letter-spacing: 0.16em;
}

.btn {
  min-height: 44px;
  padding: 12px 17px;
  border: 1px solid transparent;
  letter-spacing: 0.01em;
  transition: transform 0.22s ease, box-shadow 0.22s ease, border-color 0.22s ease, background 0.22s ease;
}

.btn:hover {
  transform: translateY(-2px);
}

.btn-primary {
  background: linear-gradient(135deg, #7bd0fb, #4aa8dc);
  color: #04111b;
  box-shadow: 0 12px 26px rgba(55, 157, 215, 0.2);
}

.btn-primary:hover {
  box-shadow: 0 16px 32px rgba(55, 157, 215, 0.3);
}

.btn-secondary {
  background: rgba(12, 31, 48, 0.78);
  color: var(--text);
  border-color: rgba(132, 177, 208, 0.22);
}

.btn-secondary:hover {
  border-color: rgba(102, 192, 244, 0.5);
  background: rgba(22, 52, 75, 0.88);
}

.label {
  color: var(--accent-bright);
  font-size: 0.69rem;
  font-weight: 800;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.footer {
  padding-top: 28px;
  color: #6f899c;
  font-size: 0.8rem;
}

.footer-inner {
  padding-top: 20px;
  border-top-color: rgba(132, 177, 208, 0.14);
}

/* Home */
.home-stage {
  padding: 76px 0 34px;
}

.home-stage-grid {
  grid-template-columns: 1.18fr 0.82fr;
  gap: 22px;
}

.home-copy {
  position: relative;
  min-height: 480px;
  padding: 44px;
  isolation: isolate;
  border-color: rgba(102, 192, 244, 0.28);
  background:
    linear-gradient(135deg, rgba(22, 57, 84, 0.82), rgba(8, 21, 35, 0.86)),
    radial-gradient(circle at 14% 0%, rgba(167, 225, 255, 0.2), transparent 40%);
  overflow: hidden;
  animation: reveal-up 0.65s ease both;
}

.home-copy::before {
  content: "MG / 01";
  position: absolute;
  right: 30px;
  top: 28px;
  color: rgba(167, 225, 255, 0.38);
  font-size: 0.68rem;
  font-weight: 800;
  letter-spacing: 0.18em;
}

.home-copy::after {
  content: "";
  position: absolute;
  right: -90px;
  bottom: -120px;
  width: 360px;
  height: 360px;
  border: 1px solid rgba(102, 192, 244, 0.18);
  border-radius: 50%;
  box-shadow: 0 0 0 26px rgba(102, 192, 244, 0.025), 0 0 0 52px rgba(102, 192, 244, 0.02);
  pointer-events: none;
}

.home-copy h1 {
  position: relative;
  z-index: 1;
  max-width: 9ch;
  font-size: clamp(3rem, 5.4vw, 5.6rem);
  line-height: 0.9;
}

.home-copy p {
  position: relative;
  z-index: 1;
  max-width: 47ch;
  font-size: 1rem;
}

.home-actions {
  position: relative;
  z-index: 1;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px;
  margin-top: 30px;
}

.home-access-btn {
  min-height: 62px;
  padding: 18px 28px;
  border-color: rgba(167, 225, 255, 0.5);
  font-size: 1.05rem;
  font-weight: 900;
  text-transform: uppercase;
  box-shadow: 0 18px 42px rgba(55, 157, 215, 0.34), 0 0 0 6px rgba(102, 192, 244, 0.08);
}

.home-access-btn:hover {
  box-shadow: 0 22px 52px rgba(55, 157, 215, 0.44), 0 0 0 8px rgba(102, 192, 244, 0.12);
}

.home-spotlight {
  padding: 16px;
  border-color: rgba(132, 177, 208, 0.2);
  background: rgba(6, 17, 29, 0.86);
  animation: reveal-up 0.65s 0.1s ease both;
}

.spotlight-logo {
  position: relative;
  min-height: 292px;
  border-color: rgba(102, 192, 244, 0.2);
  background:
    radial-gradient(circle, rgba(37, 96, 142, 0.38), transparent 56%),
    #030811;
}

.spotlight-logo::after {
  content: "MEDIA / GAMES";
  position: absolute;
  bottom: 14px;
  color: rgba(237, 247, 255, 0.5);
  font-size: 0.62rem;
  font-weight: 800;
  letter-spacing: 0.22em;
}

.spotlight-logo img {
  position: relative;
  z-index: 1;
  width: min(72%, 260px);
  box-shadow: 0 0 55px rgba(38, 147, 220, 0.18), 0 22px 44px rgba(0, 0, 0, 0.5);
}

.spotlight-copy {
  padding: 22px 8px 7px;
}

.spotlight-copy h2 {
  font-size: 1.5rem;
}

.home-quick-section {
  padding-top: 18px;
}

.home-section-heading {
  margin-bottom: 18px;
}

.home-section-heading h2 {
  color: #dceefa;
  font-size: clamp(1.7rem, 3vw, 2.5rem);
}

.home-quick-grid {
  gap: 14px;
}

.home-quick-card {
  position: relative;
  min-height: 190px;
  padding: 20px;
  overflow: hidden;
  border-color: rgba(132, 177, 208, 0.16);
  background: linear-gradient(145deg, rgba(16, 39, 58, 0.78), rgba(8, 22, 35, 0.78));
}

.home-quick-card::after {
  content: "";
  position: absolute;
  width: 90px;
  height: 90px;
  right: -32px;
  top: -36px;
  border: 1px solid rgba(102, 192, 244, 0.16);
  border-radius: 50%;
}

.home-quick-card:hover {
  border-color: rgba(102, 192, 244, 0.48);
  background: linear-gradient(145deg, rgba(24, 59, 84, 0.9), rgba(9, 26, 41, 0.88));
  box-shadow: var(--shadow-soft);
}

.quick-index {
  font-size: 0.68rem;
  letter-spacing: 0.16em;
}

.quick-title {
  margin-top: 28px;
  font-size: 1.1rem;
}

/* Guide */
.guide-intro {
  padding: 78px 0 38px;
}

.guide-intro-grid {
  grid-template-columns: 0.92fr 1.08fr;
  gap: 42px;
}

.guide-copy h1 {
  max-width: 10ch;
  font-size: clamp(3rem, 5vw, 5.2rem);
}

.guide-stats {
  gap: 12px;
  margin-top: 30px;
}

.guide-stats span {
  min-width: 142px;
  padding: 13px 15px;
  border-left-width: 3px;
  background: rgba(18, 42, 62, 0.62);
}

.guide-video-card {
  padding: 15px;
  border-color: rgba(102, 192, 244, 0.25);
  box-shadow: 0 30px 80px rgba(0, 0, 0, 0.4);
  transform: rotate(1deg);
  animation: reveal-up 0.7s 0.1s ease both;
}

.guide-video-card:hover {
  transform: rotate(0deg) translateY(-4px);
}

.video-thumb {
  border-color: rgba(167, 225, 255, 0.24);
  background:
    linear-gradient(135deg, rgba(5, 15, 25, 0.88), rgba(20, 85, 126, 0.82)),
    radial-gradient(circle at 82% 12%, rgba(167, 225, 255, 0.25), transparent 38%);
}

.video-thumb::after {
  content: "TUTORIAL / MEDIA GAMES";
  position: absolute;
  top: 16px;
  right: 16px;
  color: rgba(237, 247, 255, 0.62);
  font-size: 0.62rem;
  font-weight: 800;
  letter-spacing: 0.14em;
}

.video-thumbnail-image {
  position: absolute;
  inset: 0;
  z-index: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  opacity: 0.9;
  filter: saturate(1.08) contrast(1.04);
  transition: transform 0.45s ease, opacity 0.3s ease;
}

.video-thumb:hover .video-thumbnail-image {
  transform: scale(1.035);
  opacity: 1;
}

.video-thumb::before,
.video-thumb::after,
.video-thumb .play-button,
.video-thumb .thumb-label {
  z-index: 2;
}

.play-button {
  width: 74px;
  height: 74px;
  border: 5px solid rgba(102, 192, 244, 0.26);
  background: #eaf8ff;
  color: #12638d;
  box-shadow: 0 0 0 8px rgba(102, 192, 244, 0.08), 0 20px 42px rgba(0, 0, 0, 0.36);
}

.guide-flow-section {
  padding-top: 28px;
}

.guide-flow-grid {
  grid-template-columns: 0.68fr 1.32fr;
  gap: 46px;
}

.guide-flow-heading h2 {
  font-size: clamp(2rem, 3.5vw, 3.2rem);
}

.timeline-list {
  position: relative;
  gap: 14px;
}

.timeline-list::before {
  content: "";
  position: absolute;
  top: 26px;
  bottom: 26px;
  left: 32px;
  width: 1px;
  background: linear-gradient(var(--accent), rgba(102, 192, 244, 0.06));
}

.timeline-item {
  position: relative;
  z-index: 1;
  grid-template-columns: 44px 1fr auto;
  min-height: 94px;
  padding: 14px 18px 14px 14px;
  border-color: rgba(132, 177, 208, 0.16);
  background: rgba(11, 29, 45, 0.82);
}

.timeline-number {
  border: 1px solid rgba(102, 192, 244, 0.28);
  background: #0b2438;
}

.timeline-item-final {
  border-color: rgba(102, 192, 244, 0.38);
  background: linear-gradient(100deg, rgba(20, 67, 96, 0.82), rgba(11, 31, 47, 0.84));
}

/* Community */
.social-hero {
  padding: 78px 0 34px;
}

.social-hero-grid {
  align-items: center;
}

.social-hero h1 {
  max-width: 10ch;
  font-size: clamp(3rem, 5vw, 5.2rem);
}

.social-stats span {
  min-width: 104px;
  border-color: rgba(102, 192, 244, 0.2);
  background: rgba(13, 33, 50, 0.8);
}

.social-stats strong {
  color: var(--accent-bright);
}

.social-wall-section {
  padding-top: 24px;
}

.social-wall {
  gap: 18px;
}

.social-card {
  border-color: rgba(132, 177, 208, 0.16);
  background: linear-gradient(145deg, rgba(16, 38, 56, 0.86), rgba(8, 22, 35, 0.84));
}

.social-card:hover {
  border-color: rgba(102, 192, 244, 0.52);
  background: linear-gradient(145deg, rgba(24, 57, 81, 0.94), rgba(10, 29, 45, 0.92));
  box-shadow: var(--shadow-soft);
}

.social-visual {
  background:
    linear-gradient(135deg, rgba(3, 11, 19, 0.86), rgba(22, 74, 108, 0.88)),
    radial-gradient(circle at 20% 0%, rgba(167, 225, 255, 0.25), transparent 58%);
}

.social-card-content {
  padding: 18px 20px 20px;
}

.social-card-content h2 {
  font-size: 1.18rem;
}

/* Access screens */
.gate-page {
  background:
    radial-gradient(circle at 50% 0%, rgba(102, 192, 244, 0.15), transparent 35%),
    linear-gradient(145deg, #040a11, #091927 72%, #06111d);
}

.gate-shell {
  width: min(1040px, calc(100% - 48px));
  gap: 22px;
}

.gate-brand {
  margin-bottom: 2px;
}

.gate-panel,
.gate-side,
.gate-lock {
  padding: 30px;
}

.gate-panel {
  border-color: rgba(102, 192, 244, 0.3);
  background:
    linear-gradient(145deg, rgba(19, 54, 80, 0.82), rgba(7, 21, 34, 0.9)),
    radial-gradient(circle at 100% 0%, rgba(102, 192, 244, 0.18), transparent 36%);
  animation: reveal-up 0.6s ease both;
}

.gate-panel h1,
.gate-lock h1 {
  max-width: 8ch;
  font-size: clamp(2.7rem, 5vw, 4.8rem);
}

.gate-panel > p,
.gate-side p,
.gate-lock p {
  color: var(--muted);
  line-height: 1.65;
}

.gate-side {
  background: rgba(8, 22, 35, 0.78);
}

.gate-side h2 {
  margin: 0;
  font-size: 1.2rem;
}

.token-card {
  margin: 24px 0 16px;
  border-color: rgba(102, 192, 244, 0.24);
  background: rgba(4, 14, 24, 0.72);
}

.token-code {
  color: var(--accent-bright);
  font-size: 1.12rem;
}

.gate-note,
.callout {
  background: rgba(102, 192, 244, 0.08);
  border-color: rgba(102, 192, 244, 0.2);
  color: #c9ebff;
}

.empty-state {
  border-color: rgba(102, 192, 244, 0.22);
  background: rgba(12, 37, 56, 0.66);
}

@keyframes reveal-up {
  from {
    opacity: 0;
    transform: translateY(14px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@media (max-width: 980px) {
  .home-copy {
    min-height: 420px;
  }

  .guide-video-card {
    transform: none;
  }

  .guide-video-card:hover {
    transform: translateY(-4px);
  }
}

@media (max-width: 640px) {
  .shell,
  .gate-shell {
    width: min(var(--max), calc(100% - 28px));
  }

  .topbar-inner {
    min-height: 0;
  }

  .home-stage,
  .guide-intro,
  .social-hero {
    padding-top: 46px;
  }

  .home-copy,
  .gate-panel,
  .gate-side,
  .gate-lock {
    padding: 24px;
  }

  .home-copy {
    min-height: 440px;
  }

  .home-copy h1,
  .guide-copy h1,
  .social-hero h1 {
    font-size: clamp(2.7rem, 14vw, 4rem);
  }

  .home-copy::before {
    right: 20px;
    top: 20px;
  }

  .spotlight-logo {
    min-height: 220px;
  }

  .guide-stats span {
    flex: 1;
    min-width: 0;
  }

  .social-hero-grid {
    gap: 20px;
  }

  .social-stats {
    margin-top: 4px;
  }

  .timeline-list::before {
    left: 29px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .home-copy,
  .home-spotlight,
  .guide-video-card,
  .gate-panel {
    animation: none;
  }

  .guide-video-card,
  .guide-video-card:hover,
  .home-quick-card:hover,
  .social-card:hover,
  .timeline-item:hover {
    transform: none;
  }
}

/* Social cards share one visual weight; the platform changes only the icon. */
.social-wall {
  grid-template-columns: repeat(3, minmax(0, 1fr));
  grid-template-rows: auto;
}

.social-wall .social-card-featured,
.social-card-featured .social-visual,
.social-card-featured .social-card-content {
  grid-row: auto;
  min-height: 0;
  height: auto;
  padding: 0;
}

.social-card-featured .social-card-content {
  padding: 18px 20px 20px;
}

.social-visual,
.social-card-featured .social-visual {
  height: 164px;
  min-height: 164px;
  display: grid;
  place-items: center;
  background:
    radial-gradient(circle at 50% 25%, rgba(102, 192, 244, 0.18), transparent 48%),
    linear-gradient(145deg, rgba(7, 20, 32, 0.98), rgba(19, 55, 79, 0.82));
}

.social-icon {
  width: 88px;
  height: 88px;
  display: grid;
  place-items: center;
  border: 1px solid currentColor;
  border-radius: 27px;
  background: rgba(4, 13, 22, 0.52);
  box-shadow: 0 0 0 8px rgba(102, 192, 244, 0.05), 0 18px 32px rgba(0, 0, 0, 0.3);
  color: var(--accent-bright);
  transition: transform 0.24s ease, box-shadow 0.24s ease;
}

.social-icon svg {
  width: 55px;
  height: 55px;
}

.social-icon-youtube {
  color: #ff7777;
}

.social-icon-tiktok {
  color: #74e9ee;
}

.social-icon-instagram {
  color: #ffb48a;
}

.social-card:hover .social-icon {
  transform: translateY(-3px) scale(1.04);
  box-shadow: 0 0 0 10px rgba(102, 192, 244, 0.08), 0 22px 38px rgba(0, 0, 0, 0.36);
}

@media (max-width: 980px) {
  .social-wall {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .social-wall .social-card-featured {
    grid-column: auto;
  }
}

@media (max-width: 640px) {
  .social-wall {
    grid-template-columns: 1fr;
  }

  .social-wall .social-card-featured {
    grid-column: auto;
  }
}

/* Ambient space layer: the interface stays still while the background drifts. */
body {
  background:
    radial-gradient(circle at 8% 4%, rgba(36, 105, 153, 0.11), transparent 23%),
    radial-gradient(circle at 92% 16%, rgba(18, 67, 106, 0.1), transparent 25%),
    linear-gradient(140deg, #02060b 0%, #040d16 48%, #06101a 100%);
}

body::before {
  opacity: 0.08;
}

body::after {
  opacity: 0.42;
}

.space-canvas {
  position: fixed !important;
  inset: 0;
  z-index: 0 !important;
  display: block;
  width: 100vw;
  height: 100vh;
  pointer-events: none;
  opacity: 0.86;
}
