/* ================================================================
   SECRET SMP — styles
   Dark · modern · mysterious · premium
   ================================================================ */

/* ---------- Tokens ---------- */
:root {
  --bg-0: #03060c;
  --bg-1: #050a17;
  --bg-2: #0a1226;

  --panel: rgba(13, 22, 44, 0.55);
  --panel-2: rgba(8, 13, 28, 0.62);

  --line: rgba(96, 165, 250, 0.14);
  --line-strong: rgba(125, 211, 252, 0.32);

  --blue: #3b82f6;
  --electric: #38bdf8;
  --cyan: #22d3ee;
  --cyan-soft: #7deefc;
  --blue-deep: #1d4ed8;

  --text: #e8eefc;
  --muted: #9db0d1;
  --muted-2: #6f85ad;

  --font-display: "Outfit", "Inter", system-ui, sans-serif;
  --font-body: "Inter", system-ui, -apple-system, sans-serif;
  --font-mono: "JetBrains Mono", ui-monospace, monospace;

  --radius: 20px;
  --radius-sm: 14px;
  --nav-h: 74px;

  --ease: cubic-bezier(0.16, 1, 0.3, 1);
  --shadow-glow: 0 20px 50px -24px rgba(34, 211, 238, 0.5);
}

/* ---------- Reset / base ---------- */
*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--nav-h) + 16px);
  -webkit-text-size-adjust: 100%;
}

body {
  background: var(--bg-0);
  color: var(--text);
  font-family: var(--font-body);
  font-size: 1rem;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}

body.nav-locked {
  overflow: hidden;
}

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

a {
  color: var(--cyan-soft);
  text-decoration: none;
}

ul {
  list-style: none;
}

::selection {
  background: rgba(56, 189, 248, 0.35);
  color: #fff;
}

:focus-visible {
  outline: 2px solid var(--cyan);
  outline-offset: 3px;
  border-radius: 6px;
}

::-webkit-scrollbar {
  width: 10px;
}
::-webkit-scrollbar-track {
  background: var(--bg-1);
}
::-webkit-scrollbar-thumb {
  background: linear-gradient(180deg, #1d4ed8, #0e7490);
  border-radius: 8px;
  border: 2px solid var(--bg-1);
}

.skip-link {
  position: fixed;
  top: -100px;
  left: 1rem;
  z-index: 300;
  padding: 0.8rem 1.2rem;
  border-radius: 10px;
  background: var(--electric);
  color: #04121f;
  font-weight: 600;
  font-size: 0.9rem;
  transition: top 0.25s var(--ease);
}
.skip-link:focus {
  top: 1rem;
}

/* ---------- Layout ---------- */
.container {
  width: 100%;
  max-width: 1160px;
  margin-inline: auto;
  padding-inline: clamp(1.25rem, 4vw, 2rem);
}

.section {
  position: relative;
  padding-block: clamp(4.5rem, 9vw, 7.5rem);
}

/* ---------- Typography helpers ---------- */
.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  padding: 0.42rem 0.95rem;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: rgba(56, 189, 248, 0.05);
  color: #9be8ff;
  font: 600 0.68rem/1 var(--font-body);
  letter-spacing: 0.26em;
  text-transform: uppercase;
  backdrop-filter: blur(6px);
}
.eyebrow::before {
  content: "";
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--cyan);
  box-shadow: 0 0 10px var(--cyan);
  flex: none;
}

.grad {
  background: linear-gradient(100deg, #7deefc 0%, #38bdf8 55%, #60a5fa 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.section-head {
  max-width: 660px;
  margin: 0 auto 3rem;
  text-align: center;
}
.section-title {
  margin: 1.1rem 0 0.9rem;
  font: 700 clamp(1.8rem, 3.8vw, 2.6rem) / 1.14 var(--font-display);
  letter-spacing: -0.01em;
  color: var(--text);
  text-wrap: balance;
}
.section-sub {
  color: var(--muted);
  font-size: 1.05rem;
  max-width: 560px;
  margin-inline: auto;
}

/* ---------- Buttons ---------- */
.btn {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.6rem;
  padding: 0.95rem 1.9rem;
  border-radius: 999px;
  border: 1px solid transparent;
  font: 600 0.82rem/1 var(--font-display);
  letter-spacing: 0.16em;
  text-transform: uppercase;
  cursor: pointer;
  white-space: nowrap;
  text-decoration: none;
  overflow: hidden;
  transition:
    transform 0.3s var(--ease),
    box-shadow 0.3s var(--ease),
    background-color 0.3s var(--ease),
    border-color 0.3s var(--ease);
}
.btn svg {
  width: 16px;
  height: 16px;
  flex: none;
  transition: transform 0.3s var(--ease);
}
.btn:hover svg {
  transform: translateY(-1px) scale(1.08);
}

.btn-primary {
  color: #04121f;
  background: linear-gradient(135deg, #7deefc 0%, #38bdf8 48%, #2563eb 100%);
  box-shadow:
    0 10px 30px -10px rgba(34, 211, 238, 0.55),
    inset 0 1px 0 rgba(255, 255, 255, 0.4);
}
.btn-primary::before {
  content: "";
  position: absolute;
  top: 0;
  left: -70%;
  width: 45%;
  height: 100%;
  background: linear-gradient(
    100deg,
    transparent,
    rgba(255, 255, 255, 0.55),
    transparent
  );
  transform: skewX(-20deg);
  transition: left 0.55s var(--ease);
}
.btn-primary:hover {
  transform: translateY(-2px) scale(1.03);
  box-shadow:
    0 18px 44px -12px rgba(34, 211, 238, 0.75),
    inset 0 1px 0 rgba(255, 255, 255, 0.4);
}
.btn-primary:hover::before {
  left: 125%;
}
.btn-primary:active {
  transform: translateY(0);
}

.btn-ghost {
  color: var(--text);
  background: rgba(56, 189, 248, 0.05);
  border-color: var(--line-strong);
  backdrop-filter: blur(8px);
}
.btn-ghost:hover {
  transform: translateY(-2px) scale(1.02);
  background: rgba(56, 189, 248, 0.12);
  border-color: rgba(125, 211, 252, 0.6);
  box-shadow: 0 14px 34px -18px rgba(56, 189, 248, 0.55);
}

.btn-sm {
  padding: 0.65rem 1.2rem;
  font-size: 0.72rem;
}
.btn-lg {
  padding: 1.15rem 2.7rem;
  font-size: 0.95rem;
}
.btn-lg.btn-primary:hover {
  transform: translateY(-3px) scale(1.03);
  box-shadow:
    0 24px 64px -16px rgba(34, 211, 238, 0.85),
    inset 0 1px 0 rgba(255, 255, 255, 0.4);
}

/* ---------- Navbar ---------- */
.nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  border-bottom: 1px solid transparent;
  transition:
    background-color 0.35s var(--ease),
    border-color 0.35s var(--ease),
    backdrop-filter 0.35s var(--ease);
}
.nav.scrolled {
  background: rgba(4, 9, 22, 0.72);
  backdrop-filter: blur(18px) saturate(1.35);
  -webkit-backdrop-filter: blur(18px) saturate(1.35);
  border-bottom-color: var(--line);
}
.nav.is-open {
  background: transparent;
  border-bottom-color: transparent;
  backdrop-filter: none;
}

.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  height: var(--nav-h);
}

.nav-brand {
  display: inline-flex;
  align-items: center;
  gap: 0.7rem;
  color: var(--text);
}
.nav-logo {
  width: 36px;
  height: 36px;
  border-radius: 9px;
  object-fit: contain;
}
.nav-wordmark {
  font: 800 1.02rem/1 var(--font-display);
  letter-spacing: 0.16em;
  color: var(--text);
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 0.3rem;
}
.nav-link {
  position: relative;
  padding: 0.55rem 0.85rem;
  border-radius: 10px;
  color: var(--muted);
  font: 600 0.9rem/1 var(--font-body);
  letter-spacing: 0.03em;
  transition: color 0.2s;
}
.nav-link::after {
  content: "";
  position: absolute;
  left: 0.85rem;
  right: 0.85rem;
  bottom: 0.32rem;
  height: 1.5px;
  border-radius: 2px;
  background: linear-gradient(90deg, var(--cyan), var(--electric));
  box-shadow: 0 0 8px rgba(34, 211, 238, 0.55);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.3s var(--ease);
}
.nav-link:hover {
  color: var(--text);
}
.nav-link:hover::after,
.nav-link.active::after {
  transform: scaleX(1);
}
.nav-link.active {
  color: var(--text);
}
.nav-cta {
  margin-left: 0.6rem;
}

.nav-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 5px;
  width: 44px;
  height: 44px;
  border-radius: 12px;
  border: 1px solid var(--line);
  background: rgba(56, 189, 248, 0.05);
  cursor: pointer;
}
.nav-toggle span {
  display: block;
  width: 20px;
  height: 2px;
  border-radius: 2px;
  background: var(--text);
  transition:
    transform 0.3s var(--ease),
    opacity 0.25s var(--ease);
}
.nav-toggle:hover {
  border-color: var(--line-strong);
}
.nav.is-open .nav-toggle span:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}
.nav.is-open .nav-toggle span:nth-child(2) {
  opacity: 0;
}
.nav.is-open .nav-toggle span:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

/* ---------- Hero (Home) ---------- */
.hero {
  position: relative;
  min-height: 100vh;
  min-height: 100svh;
  display: flex;
  align-items: center;
  overflow: hidden;
  padding: calc(var(--nav-h) + 2.5rem) 0 5.5rem;
}

.hero-media {
  position: absolute;
  inset: 0;
  z-index: 0;
  overflow: hidden;
  background:
    radial-gradient(1100px 640px at 82% -8%, rgba(37, 99, 235, 0.3), transparent 62%),
    radial-gradient(900px 620px at 8% 112%, rgba(34, 211, 238, 0.16), transparent 58%),
    linear-gradient(180deg, #04070f 0%, #070d1f 45%, #03060c 100%);
  -webkit-mask-image: linear-gradient(to bottom, #000 0%, #000 62%, transparent 100%);
  mask-image: linear-gradient(to bottom, #000 0%, #000 62%, transparent 100%);
}

.hero-glow {
  position: absolute;
  border-radius: 50%;
  filter: blur(70px);
  will-change: transform;
}
.hero-glow-1 {
  width: 46vw;
  height: 46vw;
  min-width: 320px;
  min-height: 320px;
  top: -12%;
  right: -8%;
  background: radial-gradient(circle, rgba(37, 99, 235, 0.4), transparent 65%);
  animation: drift 16s ease-in-out infinite alternate;
}
.hero-glow-2 {
  width: 38vw;
  height: 38vw;
  min-width: 280px;
  min-height: 280px;
  bottom: -14%;
  left: -8%;
  background: radial-gradient(circle, rgba(34, 211, 238, 0.22), transparent 65%);
  animation: drift 20s ease-in-out infinite alternate-reverse;
}

.hero-video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.8;
  animation: hero-zoom 2.8s var(--ease) both;
}
.no-video .hero-video {
  display: none;
}

.hero-overlay {
  position: absolute;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  animation: hero-settle 1.5s ease-out both;
  background:
    radial-gradient(120% 95% at 50% 42%, transparent 32%, rgba(3, 6, 15, 0.55) 100%),
    linear-gradient(180deg, rgba(4, 8, 18, 0.55) 0%, rgba(4, 8, 18, 0.32) 45%, rgba(3, 6, 12, 0.92) 100%);
}
.hero-overlay::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(96, 165, 250, 0.06) 1px, transparent 1px),
    linear-gradient(90deg, rgba(96, 165, 250, 0.06) 1px, transparent 1px);
  background-size: 54px 54px;
  -webkit-mask-image: radial-gradient(70% 60% at 50% 40%, #000 20%, transparent 100%);
  mask-image: radial-gradient(70% 60% at 50% 40%, #000 20%, transparent 100%);
}

.hero-particles {
  position: absolute;
  inset: 0;
  z-index: 2;
  width: 100%;
  height: 100%;
  opacity: 0.55;
  pointer-events: none;
}
.no-video .hero-particles {
  opacity: 0.85;
}

.hero-content {
  position: relative;
  z-index: 3;
  width: 100%;
  max-width: 900px;
  margin-inline: auto;
  text-align: center;
}

.hero-logo {
  position: relative;
  width: clamp(150px, 26vw, 280px);
  margin: 0 auto 1.8rem;
  animation: logo-idle 9s ease-in-out infinite;
}
.hero-logo::before {
  content: "";
  position: absolute;
  inset: -30%;
  z-index: -1;
  border-radius: 50%;
  background: conic-gradient(
    from 0deg,
    transparent 0 12%,
    rgba(34, 211, 238, 0.5) 26%,
    transparent 40% 58%,
    rgba(59, 130, 246, 0.42) 74%,
    transparent 88%
  );
  filter: blur(20px);
  animation:
    spin 14s linear infinite,
    glow-pulse 6s ease-in-out infinite;
}
.hero-logo img {
  position: relative;
  z-index: 0;
  width: 100%;
  height: auto;
  filter: drop-shadow(0 0 18px rgba(56, 189, 248, 0.45))
    drop-shadow(0 10px 30px rgba(37, 99, 235, 0.4));
}
.logo-sweep {
  position: absolute;
  inset: 0;
  z-index: 1;
  border-radius: 14px;
  overflow: hidden;
  pointer-events: none;
}
.logo-sweep::before {
  content: "";
  position: absolute;
  top: -12%;
  bottom: -12%;
  left: 0;
  width: 42%;
  background: linear-gradient(
    105deg,
    transparent,
    rgba(183, 245, 255, 0.3),
    transparent
  );
  transform: translateX(-170%) skewX(-18deg);
  animation: sweep 7s ease-in-out infinite;
}

.hero-eyebrow {
  margin-bottom: 1.1rem;
}

.hero-title {
  margin: 0 0 1rem;
  font: 800 clamp(2.7rem, 8.5vw, 5.6rem) / 1.03 var(--font-display);
  letter-spacing: 0.01em;
  background: linear-gradient(180deg, #ffffff 15%, #d6e9ff 55%, #93b9ff 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  filter: drop-shadow(0 0 30px rgba(56, 189, 248, 0.3));
  text-wrap: balance;
}

.hero-sub {
  margin: 0;
  font: 600 clamp(1.05rem, 2.6vw, 1.4rem) / 1.4 var(--font-display);
  letter-spacing: 0.04em;
  color: #cfe6ff;
}

.hero-desc {
  margin: 0.95rem auto 0;
  color: var(--muted);
  font-size: clamp(1rem, 1.7vw, 1.12rem);
  letter-spacing: 0.02em;
  max-width: 46ch;
}
.rotator {
  display: inline-block;
  color: var(--cyan-soft);
  font-weight: 600;
  text-shadow: 0 0 18px rgba(34, 211, 238, 0.35);
  transition:
    opacity 0.7s var(--ease),
    transform 0.7s var(--ease);
}
.js .rotator {
  opacity: 0;
  transform: translateY(8px);
}
.js .rotator.is-show {
  opacity: 1;
  transform: translateY(0);
}

.hero-actions {
  margin-top: 2.5rem;
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 1rem;
  flex-wrap: wrap;
}
.hero-actions .btn-ip {
  font-family: var(--font-mono);
  font-size: 0.92rem;
  letter-spacing: 0.01em;
  text-transform: none;
}

/* ---------- Hero join bar (Home) ---------- */
.hero-inner {
  position: relative;
  z-index: 3;
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.hero-join {
  width: min(100%, 980px);
  margin: 3.2rem auto 0;
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.stat-panel {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  padding: 1.5rem 1rem;
  border-radius: 20px;
  border: 1px solid var(--line);
  background: linear-gradient(180deg, rgba(16, 26, 52, 0.55), rgba(8, 13, 28, 0.6));
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
}
.stat {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.55rem;
  padding: 0.3rem 1rem;
  text-align: center;
}
.stat + .stat {
  border-left: 1px solid var(--line);
}
.stat-value {
  font: 800 clamp(1.7rem, 3.6vw, 2.35rem) / 1 var(--font-display);
  letter-spacing: -0.02em;
  background: linear-gradient(180deg, #b7f5ff 0%, #38bdf8 70%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.stat-value--violet {
  background: linear-gradient(100deg, #60a5fa 0%, #818cf8 55%, #a78bfa 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.stat-label {
  font: 600 0.68rem/1.45 var(--font-body);
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: #8ba3c9;
  text-wrap: balance;
}

/* ---------- Server info (Home) ---------- */
.info-panel {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1rem;
}
.info-card {
  position: relative;
  padding: 1.35rem 1.4rem;
  border-radius: 16px;
  border: 1px solid var(--line);
  background: linear-gradient(180deg, rgba(16, 26, 52, 0.6), rgba(8, 13, 28, 0.62));
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  transition:
    border-color 0.25s,
    transform 0.25s var(--ease),
    box-shadow 0.25s var(--ease);
}
.info-card:hover {
  border-color: rgba(125, 211, 252, 0.4);
  transform: translateY(-3px);
  box-shadow: 0 16px 38px -20px rgba(34, 211, 238, 0.45);
}
.info-label {
  display: block;
  margin-bottom: 0.6rem;
  font: 600 0.66rem/1 var(--font-body);
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: #7d93bd;
}
.info-value {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  font: 600 1.02rem/1.35 var(--font-body);
  color: var(--text);
}
.info-value.mono {
  font-family: var(--font-mono);
  font-size: 0.92rem;
  letter-spacing: 0.01em;
}
[data-copy] {
  cursor: pointer;
}
[data-copy]::after {
  content: "";
  width: 13px;
  height: 13px;
  flex: none;
  opacity: 0.5;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%2393b4ff' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Crect x='9' y='9' width='11' height='11' rx='2'/%3E%3Cpath d='M5 15H4a2 2 0 0 1-2-2V4a2 2 0 0 1 2-2h9a2 2 0 0 1 2 2v1'/%3E%3C/svg%3E")
    center / contain no-repeat;
  transition: opacity 0.2s;
}
[data-copy]:hover::after {
  opacity: 1;
}
[data-copy].copied::before {
  content: "Copied!";
  position: absolute;
  bottom: calc(100% + 8px);
  left: 50%;
  transform: translateX(-50%);
  padding: 0.32rem 0.65rem;
  border-radius: 8px;
  border: 1px solid var(--line-strong);
  background: rgba(12, 22, 44, 0.95);
  color: var(--cyan-soft);
  font: 600 0.66rem/1 var(--font-body);
  letter-spacing: 0.08em;
  white-space: nowrap;
  box-shadow: 0 10px 24px -10px rgba(34, 211, 238, 0.4);
  animation: pop-in 0.25s var(--ease);
}

.info-note {
  margin-top: 1.6rem;
  text-align: center;
  color: var(--muted);
  font-size: 0.95rem;
}
.info-note a {
  color: var(--cyan-soft);
  border-bottom: 1px solid rgba(125, 211, 252, 0.4);
  transition: border-color 0.2s, color 0.2s;
}
.info-note a:hover {
  color: #fff;
  border-color: var(--cyan-soft);
}

/* ---------- Explore band (Home) ---------- */
.explore-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.4rem;
}
.explore-card {
  position: relative;
  display: block;
  padding: 2.1rem 2rem;
  border-radius: var(--radius);
  border: 1px solid var(--line);
  background:
    radial-gradient(380px circle at var(--mx, 50%) var(--my, -20%), rgba(56, 189, 248, 0.09), transparent 65%),
    linear-gradient(180deg, rgba(17, 28, 58, 0.6), rgba(8, 13, 28, 0.66));
  overflow: hidden;
  transition:
    transform 0.35s var(--ease),
    border-color 0.35s var(--ease),
    box-shadow 0.35s var(--ease);
}
.explore-card::before {
  content: "";
  position: absolute;
  top: 0;
  left: 12%;
  right: 12%;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(125, 211, 252, 0.7), transparent);
  opacity: 0;
  transition: opacity 0.35s;
}
.explore-card:hover {
  transform: translateY(-6px);
  border-color: rgba(125, 211, 252, 0.45);
  box-shadow:
    0 26px 60px -30px rgba(34, 211, 238, 0.5),
    inset 0 1px 0 rgba(255, 255, 255, 0.04);
}
.explore-card:hover::before {
  opacity: 1;
}
.explore-num {
  font: 600 0.78rem/1 var(--font-mono);
  color: var(--electric);
  letter-spacing: 0.2em;
}
.explore-card h3 {
  margin: 1rem 0 0.5rem;
  font: 700 1.35rem/1.3 var(--font-display);
  color: var(--text);
}
.explore-card p {
  margin: 0;
  color: var(--muted);
  font-size: 0.97rem;
}
.explore-link {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  margin-top: 1.3rem;
  font: 600 0.8rem/1 var(--font-display);
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--cyan-soft);
}
.explore-link svg {
  width: 15px;
  height: 15px;
  transition: transform 0.3s var(--ease);
}
.explore-card:hover .explore-link svg {
  transform: translateX(4px);
}

/* ---------- Page hero (About) ---------- */
.page-hero {
  position: relative;
  padding: calc(var(--nav-h) + 4.5rem) 0 2.5rem;
  text-align: center;
  overflow: hidden;
  background:
    radial-gradient(900px 460px at 50% -10%, rgba(37, 99, 235, 0.24), transparent 65%),
    radial-gradient(700px 400px at 85% 110%, rgba(34, 211, 238, 0.1), transparent 60%);
}
.page-hero::after {
  content: "";
  position: absolute;
  inset: auto 0 0;
  height: 120px;
  background: linear-gradient(180deg, transparent, var(--bg-0));
  pointer-events: none;
}
.page-hero-content {
  position: relative;
  z-index: 1;
}
.page-title {
  margin: 1.2rem 0 1rem;
  font: 800 clamp(2.1rem, 5.5vw, 3.5rem) / 1.1 var(--font-display);
  letter-spacing: -0.01em;
  color: var(--text);
  text-wrap: balance;
}
.page-sub {
  max-width: 600px;
  margin-inline: auto;
  color: var(--muted);
  font-size: clamp(1rem, 1.8vw, 1.1rem);
}

/* ---------- Feature cards (About) ---------- */
.feature-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.4rem;
}
.feature-card {
  position: relative;
  padding: 2.2rem 1.9rem;
  border-radius: var(--radius);
  border: 1px solid var(--line);
  background:
    radial-gradient(380px circle at var(--mx, 50%) var(--my, -20%), rgba(56, 189, 248, 0.1), transparent 65%),
    linear-gradient(180deg, rgba(17, 28, 58, 0.62), rgba(8, 13, 28, 0.68));
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  overflow: hidden;
  transition:
    transform 0.35s var(--ease),
    border-color 0.35s var(--ease),
    box-shadow 0.35s var(--ease);
}
.feature-card::before {
  content: "";
  position: absolute;
  top: 0;
  left: 14%;
  right: 14%;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(125, 211, 252, 0.7), transparent);
  opacity: 0;
  transition: opacity 0.35s;
}
.feature-card::after {
  content: "";
  position: absolute;
  top: -60%;
  right: -30%;
  width: 55%;
  aspect-ratio: 1;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(56, 189, 248, 0.12), transparent 70%);
  opacity: 0;
  transition: opacity 0.4s;
}
.feature-card:hover {
  transform: translateY(-6px);
  border-color: rgba(125, 211, 252, 0.45);
  box-shadow:
    0 26px 60px -28px rgba(34, 211, 238, 0.5),
    inset 0 1px 0 rgba(255, 255, 255, 0.04);
}
.feature-card:hover::before,
.feature-card:hover::after {
  opacity: 1;
}

.feature-icon {
  display: grid;
  place-items: center;
  width: 56px;
  height: 56px;
  margin-bottom: 1.5rem;
  border-radius: 15px;
  color: var(--cyan-soft);
  border: 1px solid rgba(125, 211, 252, 0.25);
  background: linear-gradient(160deg, rgba(56, 189, 248, 0.16), rgba(37, 99, 235, 0.1));
  box-shadow:
    inset 0 0 20px rgba(56, 189, 248, 0.12),
    0 10px 24px -12px rgba(34, 211, 238, 0.55);
  transition:
    transform 0.35s var(--ease),
    border-color 0.35s var(--ease),
    box-shadow 0.35s var(--ease);
}
.feature-icon svg {
  width: 26px;
  height: 26px;
}
.feature-card:hover .feature-icon {
  transform: translateY(-4px) rotate(-4deg);
  border-color: rgba(125, 211, 252, 0.55);
  box-shadow:
    inset 0 0 26px rgba(56, 189, 248, 0.2),
    0 14px 30px -12px rgba(34, 211, 238, 0.7);
}

.feature-title {
  margin-bottom: 0.7rem;
  font: 700 1.22rem/1.3 var(--font-display);
  color: var(--text);
  transition: color 0.3s;
}
.feature-card:hover .feature-title {
  color: var(--cyan-soft);
}
.feature-text {
  margin: 0;
  color: var(--muted);
  font-size: 0.98rem;
  line-height: 1.65;
}

/* ---------- Pillars (About) ---------- */
.pillars {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.2rem;
}
.pillar {
  position: relative;
  padding: 1.6rem 1.45rem;
  border-radius: 18px;
  border: 1px solid var(--line);
  background: rgba(10, 17, 36, 0.5);
  transition:
    border-color 0.3s,
    transform 0.3s var(--ease);
}
.pillar:hover {
  border-color: rgba(125, 211, 252, 0.35);
  transform: translateY(-4px);
}
.pillar-num {
  font: 600 0.78rem/1 var(--font-mono);
  letter-spacing: 0.24em;
  color: var(--electric);
}
.pillar h3 {
  margin: 0.85rem 0 0.45rem;
  font: 600 1.08rem/1.3 var(--font-display);
  color: var(--text);
}
.pillar p {
  margin: 0;
  color: var(--muted);
  font-size: 0.9rem;
  line-height: 1.6;
}

/* ---------- Mini CTA (About) ---------- */
.mini-cta {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.6rem;
  flex-wrap: wrap;
  padding: 2.4rem 2.6rem;
  border-radius: 24px;
  border: 1px solid var(--line-strong);
  overflow: hidden;
  background:
    radial-gradient(560px 240px at 88% 0%, rgba(37, 99, 235, 0.22), transparent 62%),
    linear-gradient(180deg, rgba(17, 28, 58, 0.6), rgba(8, 13, 28, 0.7));
  box-shadow: 0 30px 80px -45px rgba(37, 99, 235, 0.6);
}
.mini-cta-title {
  margin: 0 0 0.4rem;
  font: 700 1.5rem/1.25 var(--font-display);
  color: var(--text);
}
.mini-cta-text {
  margin: 0;
  color: var(--muted);
  font-size: 0.98rem;
}

/* ---------- Community CTA ---------- */
.cta {
  position: relative;
  min-height: 100vh;
  min-height: 100svh;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  overflow: hidden;
  padding: calc(var(--nav-h) + 3rem) 0 5rem;
  background:
    radial-gradient(1000px 620px at 72% 18%, rgba(37, 99, 235, 0.26), transparent 62%),
    radial-gradient(820px 520px at 18% 92%, rgba(34, 211, 238, 0.14), transparent 60%),
    linear-gradient(180deg, #04070f 0%, #060c1d 52%, #03060c 100%);
}
.cta::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(96, 165, 250, 0.045) 1px, transparent 1px),
    linear-gradient(90deg, rgba(96, 165, 250, 0.045) 1px, transparent 1px);
  background-size: 54px 54px;
  -webkit-mask-image: radial-gradient(60% 55% at 50% 45%, #000 25%, transparent 100%);
  mask-image: radial-gradient(60% 55% at 50% 45%, #000 25%, transparent 100%);
  pointer-events: none;
}
.cta-ghost-wrap {
  position: absolute;
  inset: 0;
  pointer-events: none;
}
.cta-ghost {
  position: absolute;
  z-index: 0;
  right: -7%;
  top: 50%;
  transform: translateY(-50%);
  width: min(52vw, 560px);
  opacity: 0.13;
  filter: blur(1px) drop-shadow(0 0 40px rgba(56, 189, 248, 0.5));
  animation: float 9s ease-in-out infinite;
}
.cta-content {
  position: relative;
  z-index: 1;
  width: 100%;
  max-width: 780px;
}
.cta-eyebrow {
  margin-bottom: 1.1rem;
}
.cta-title {
  margin: 0 0 1.1rem;
  font: 800 clamp(2.2rem, 6vw, 4rem) / 1.08 var(--font-display);
  letter-spacing: -0.01em;
  color: var(--text);
  filter: drop-shadow(0 0 34px rgba(56, 189, 248, 0.32));
  text-wrap: balance;
}
.cta-text {
  margin: 0 0 2.8rem;
  color: var(--muted);
  font-size: clamp(1.05rem, 2vw, 1.25rem);
}
.cta-actions {
  display: flex;
  justify-content: center;
}
.cta-tags {
  margin-top: 2.8rem;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.9rem;
  color: #8fa8d4;
  font: 600 0.78rem/1 var(--font-body);
  letter-spacing: 0.16em;
  text-transform: uppercase;
}
.cta-tags i {
  width: 4px;
  height: 4px;
  border-radius: 50%;
  background: var(--electric);
  opacity: 0.6;
}

/* ---------- Footer ---------- */
.footer {
  border-top: 1px solid var(--line);
  background: linear-gradient(180deg, transparent, rgba(5, 10, 24, 0.9));
  padding-top: 3.6rem;
}
.footer-inner {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr;
  gap: 2.6rem;
  padding-bottom: 2.8rem;
}
.footer-logo-row {
  display: flex;
  align-items: center;
  gap: 0.7rem;
}
.footer-logo {
  width: 34px;
  height: 34px;
  border-radius: 8px;
  object-fit: contain;
}
.footer-name {
  font: 800 1rem/1 var(--font-display);
  letter-spacing: 0.16em;
  color: var(--text);
}
.footer-tagline {
  margin: 0.9rem 0 1.4rem;
  color: var(--muted);
  font-size: 0.95rem;
  max-width: 280px;
}
.footer-head {
  margin-bottom: 1.15rem;
  font: 600 0.74rem/1 var(--font-body);
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: #8fa8d4;
}
.footer-links {
  display: flex;
  flex-direction: column;
  gap: 0.72rem;
}
.footer-links a {
  color: var(--muted);
  font-size: 0.95rem;
  transition: color 0.2s;
}
.footer-links a:hover {
  color: var(--cyan-soft);
}
.footer-mini {
  margin-top: 1.3rem;
  color: var(--muted-2);
  font-size: 0.84rem;
  letter-spacing: 0.02em;
}
.footer-bottom {
  border-top: 1px solid rgba(96, 165, 250, 0.08);
  padding: 1.4rem 0;
}
.footer-bottom-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.8rem;
  flex-wrap: wrap;
}
.footer-copy,
.footer-made {
  margin: 0;
  color: var(--muted-2);
  font-size: 0.84rem;
}

/* ---------- Reveal animations ---------- */
.js .reveal {
  opacity: 0;
  transform: translateY(26px);
  transition:
    opacity 0.75s var(--ease),
    transform 0.75s var(--ease);
  will-change: opacity, transform;
}
.js .reveal.is-visible {
  opacity: 1;
  transform: none;
}

/* Reveal variants — different motion styles per element type */
.js .reveal-scale {
  transform: scale(0.94);
}
.js .reveal-head {
  transform: translateY(18px);
}
.js .reveal-slow {
  transform: translateY(34px) scale(0.99);
  transition-duration: 1.05s;
}
.js .reveal-footer {
  transform: translateY(20px);
  transition-duration: 0.65s;
}

.js [data-logo] {
  visibility: hidden;
}
.js [data-logo].ready {
  visibility: visible;
}

/* ---------- Keyframes ---------- */
@keyframes float {
  0%,
  100% {
    translate: 0 0;
  }
  50% {
    translate: 0 -12px;
  }
}
@keyframes spin {
  to {
    transform: rotate(360deg);
  }
}
@keyframes drift {
  from {
    transform: translate3d(0, 0, 0) scale(1);
  }
  to {
    transform: translate3d(-4%, 6%, 0) scale(1.12);
  }
}
@keyframes pop-in {
  from {
    opacity: 0;
    transform: translate(-50%, 4px);
  }
  to {
    opacity: 1;
    transform: translate(-50%, 0);
  }
}

/* ---------- Page transitions ---------- */
.js body.page-enter {
  animation: page-in 0.45s ease-out both;
}
.js body.page-exit {
  animation: page-out 0.22s ease-in both;
}

/* ---------- Cursor glow (desktop only) ---------- */
.cursor-glow {
  position: fixed;
  top: 0;
  left: 0;
  z-index: 9998;
  width: 420px;
  height: 420px;
  margin: -210px 0 0 -210px;
  border-radius: 50%;
  background: radial-gradient(
    circle,
    rgba(125, 211, 252, 0.035),
    rgba(56, 189, 248, 0.015) 45%,
    transparent 70%
  );
  mix-blend-mode: screen;
  pointer-events: none;
  opacity: 0;
  transition: opacity 0.5s var(--ease);
  will-change: transform;
}
.cursor-glow.is-on {
  opacity: 1;
}

/* ---------- Keyframes (motion pass) ---------- */
@keyframes logo-idle {
  0%,
  100% {
    translate: 0 0;
    scale: 1;
    rotate: 0deg;
  }
  50% {
    translate: 0 -9px;
    scale: 1.02;
    rotate: 0.5deg;
  }
}
@keyframes glow-pulse {
  0%,
  100% {
    opacity: 0.5;
  }
  50% {
    opacity: 0.85;
  }
}
@keyframes sweep {
  0% {
    transform: translateX(-170%) skewX(-18deg);
  }
  11% {
    transform: translateX(340%) skewX(-18deg);
  }
  100% {
    transform: translateX(340%) skewX(-18deg);
  }
}
@keyframes hero-zoom {
  from {
    transform: scale(1.06);
    opacity: 0.55;
  }
  to {
    transform: scale(1);
    opacity: 0.8;
  }
}
@keyframes hero-settle {
  from {
    opacity: 0.55;
  }
  to {
    opacity: 1;
  }
}
@keyframes page-in {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}
@keyframes page-out {
  to {
    opacity: 0;
  }
}

/* ---------- Responsive ---------- */
@media (max-width: 1020px) {
  .feature-grid {
    grid-template-columns: 1fr 1fr;
  }
  .pillars {
    grid-template-columns: 1fr 1fr;
  }
}

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

  .nav-links {
    position: fixed;
    inset: 0;
    z-index: -1;
    flex-direction: column;
    justify-content: center;
    gap: 1.5rem;
    padding: 6rem 1.5rem 3rem;
    background:
      radial-gradient(700px 480px at 50% 0%, rgba(37, 99, 235, 0.18), transparent 65%),
      rgba(4, 9, 22, 0.94);
    backdrop-filter: blur(24px) saturate(1.3);
    -webkit-backdrop-filter: blur(24px) saturate(1.3);
    opacity: 0;
    visibility: hidden;
    transition:
      opacity 0.32s var(--ease),
      visibility 0.32s;
  }
  .nav.is-open .nav-links {
    opacity: 1;
    visibility: visible;
  }

  .nav-link {
    font-size: 1.3rem;
    padding: 0.5rem 1rem;
    opacity: 0;
    transform: translateY(14px);
    transition:
      opacity 0.35s var(--ease),
      transform 0.35s var(--ease),
      color 0.2s;
  }
  .nav-link::after {
    left: 1rem;
    right: 1rem;
    bottom: 0.28rem;
  }
  .nav.is-open .nav-link {
    opacity: 1;
    transform: none;
    transition-delay: calc(0.05s * var(--i, 1));
  }
  .nav-cta {
    margin: 1.2rem 0 0;
    opacity: 0;
    transform: translateY(14px);
    transition:
      opacity 0.35s var(--ease) 0.28s,
      transform 0.35s var(--ease) 0.28s;
  }
  .nav.is-open .nav-cta {
    opacity: 1;
    transform: none;
  }

  .info-panel {
    grid-template-columns: 1fr 1fr;
  }
  .explore-grid {
    grid-template-columns: 1fr;
  }
  .footer-inner {
    grid-template-columns: 1fr;
    gap: 2rem;
  }
}

@media (max-width: 640px) {
  .feature-grid {
    grid-template-columns: 1fr;
  }
  .pillars {
    grid-template-columns: 1fr;
  }
  .info-panel {
    grid-template-columns: 1fr;
  }
  .hero-actions .btn {
    width: 100%;
    max-width: 340px;
  }
  .hero-join {
    margin-top: 2.4rem;
  }
  .stat-panel {
    padding: 1.15rem 0.4rem;
  }
  .stat {
    padding: 0.25rem 0.4rem;
    gap: 0.45rem;
  }
  .stat-value {
    font-size: clamp(1.2rem, 5.5vw, 1.55rem);
  }
  .stat-label {
    font-size: 0.56rem;
    letter-spacing: 0.14em;
  }
  .cta-ghost {
    right: auto;
    left: 50%;
    top: 6%;
    transform: translateX(-50%);
    width: min(66vw, 300px);
    opacity: 0.1;
  }
  .mini-cta {
    padding: 2rem 1.6rem;
    justify-content: center;
    text-align: center;
  }
}

/* ---------- Reduced motion ---------- */
@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
  .js .reveal {
    opacity: 1;
    transform: none;
  }
}
