/* ─── RESET & BASE ──────────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --bg:          #080808;
  --bg-card:     #111111;
  --bg-card-alt: #0d0d0d;
  --border:      #1e1e1e;
  --accent:      #d62828;
  --accent-dim:  #9e1c1c;
  --accent-glow: rgba(214, 40, 40, 0.2);
  --text:        #e8e8e8;
  --text-muted:  #888888;
  --text-faint:  #444444;
  --white:       #ffffff;

  --font-display: 'Bebas Neue', sans-serif;
  --font-body:    'Inter', sans-serif;

  --nav-h:       68px;
  --radius:      6px;
  --transition:  0.3s ease;
  --container:   1860px;
  --nav-surface: rgba(8, 8, 8, 0.92);
  --hero-bg:     linear-gradient(170deg, #0f0c0c 0%, #080808 40%, #050505 100%);
}

body.light-mode {
  --bg:          #f3ede6;
  --bg-card:     #fffaf4;
  --bg-card-alt: #f6efe7;
  --border:      #d8cec2;
  --accent:      #bd2424;
  --accent-dim:  #8f1b1b;
  --accent-glow: rgba(189, 36, 36, 0.14);
  --text:        #1d1815;
  --text-muted:  #655a51;
  --text-faint:  #9b9087;
  --white:       #100d0b;
  --nav-surface: rgba(243, 237, 230, 0.9);
  --hero-bg:     linear-gradient(170deg, #f8f3ed 0%, #eee7dd 45%, #e4dacd 100%);
}

html { scroll-behavior: smooth; }

body {
  background-color: var(--bg);
  color: var(--text);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.6;
  overflow-x: hidden;
}

img, svg { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
ul { list-style: none; }

/* ─── UTILITY ───────────────────────────────────────────────────── */
.container {
  width: 100%;
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 24px;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.section-tag {
  display: inline-block;
  font-family: var(--font-body);
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 12px;
}

.section-title {
  font-family: var(--font-display);
  font-size: clamp(2rem, 4vw, 3.2rem);
  letter-spacing: 0.04em;
  line-height: 1.05;
  color: var(--white);
}

.section-header {
  text-align: center;
  margin-bottom: 56px;
}

/* ─── BUTTONS ───────────────────────────────────────────────────── */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 14px 32px;
  border-radius: var(--radius);
  font-family: var(--font-body);
  font-size: 0.875rem;
  font-weight: 600;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  cursor: pointer;
  border: none;
  transition: background var(--transition), color var(--transition), transform 0.15s ease, box-shadow var(--transition);
  white-space: nowrap;
  user-select: none;
  -webkit-user-select: none;
}

.btn:hover  { transform: translateY(-2px); }
.btn:active { transform: translateY(0); }

.btn-primary {
  background: var(--accent);
  color: var(--white);
  box-shadow: 0 0 18px var(--accent-glow);
}
.btn-primary:hover {
  background: #e63030;
  box-shadow: 0 0 28px rgba(214, 40, 40, 0.4);
}

.btn-secondary {
  background: transparent;
  color: var(--text);
  border: 1px solid var(--border);
}
.btn-secondary:hover {
  border-color: var(--accent);
  color: var(--white);
}

.btn-discord {
  background: #5865F2;
  color: var(--white);
  box-shadow: 0 0 18px rgba(88, 101, 242, 0.25);
  padding: 16px 48px;
  font-size: 1rem;
}
.btn-discord:hover {
  background: #4752C4;
  box-shadow: 0 0 32px rgba(88, 101, 242, 0.4);
}

.btn-nav {
  padding: 8px 20px;
  border-radius: var(--radius);
  border: 1px solid #5865F2;
  color: #8b96f5;
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  transition: background var(--transition), color var(--transition);
}
.btn-nav:hover { background: #5865F2; color: var(--white); }

.btn-full { width: 100%; }

[aria-disabled="true"] {
  opacity: 0.45;
  pointer-events: none;
  cursor: not-allowed;
  box-shadow: none;
}

/* ─── NAVBAR ────────────────────────────────────────────────────── */
#navbar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  height: var(--nav-h);
  transition: background var(--transition), border-bottom var(--transition), backdrop-filter var(--transition);
}

#navbar.scrolled {
  background: var(--nav-surface);
  border-bottom: 1px solid var(--border);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
}

.nav-inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.nav-controls {
  display: flex;
  align-items: center;
  gap: 12px;
}

.nav-brand {
  display: flex;
  align-items: center;
  gap: 0;
  transition: opacity var(--transition);
}
.nav-brand:hover { opacity: 0.8; }

.nav-brand-name {
  font-family: var(--font-display);
  font-size: 1.9rem;
  letter-spacing: 0.1em;
  color: var(--white);
  line-height: 1;
}

.nav-brand-divider {
  width: 1px;
  height: 24px;
  background: var(--text-faint);
  margin: 0 14px;
  flex-shrink: 0;
  opacity: 0.5;
}

.nav-brand-tagline {
  font-family: var(--font-display);
  font-size: 0.85rem;
  letter-spacing: 0.15em;
  color: var(--text-muted);
  text-transform: uppercase;
  line-height: 1.2;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 36px;
}

.nav-links a {
  font-size: 0.8rem;
  font-weight: 500;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--text-muted);
  transition: color var(--transition);
}
.nav-links a:hover { color: var(--white); }

.theme-toggle {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 6px 8px;
  border: 1px solid var(--border);
  border-radius: 14px;
  background: color-mix(in srgb, var(--bg-card) 92%, transparent);
  color: var(--text);
  cursor: pointer;
  transition: background var(--transition), border-color var(--transition), color var(--transition), transform 0.15s ease, box-shadow var(--transition);
}

.theme-toggle:hover {
  transform: translateY(-1px);
  border-color: var(--accent);
  box-shadow: 0 0 20px rgba(0, 0, 0, 0.12);
}

.theme-toggle[aria-pressed="true"] {
  background: color-mix(in srgb, var(--accent) 8%, var(--bg-card));
  border-color: color-mix(in srgb, var(--accent) 28%, var(--border));
}

.theme-toggle-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 22px;
  height: 22px;
  color: var(--text);
}

.theme-toggle-icon svg {
  width: 18px;
  height: 18px;
}

.theme-toggle-track {
  position: relative;
  width: 42px;
  height: 24px;
  border-radius: 999px;
  background: color-mix(in srgb, var(--text-faint) 55%, var(--bg));
  transition: background var(--transition);
}

.theme-toggle-thumb {
  position: absolute;
  top: 3px;
  left: 3px;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: #f5f7fb;
  box-shadow: 0 1px 4px rgba(0, 0, 0, 0.25);
  transition: transform var(--transition), background var(--transition);
}

.theme-toggle[aria-pressed="true"] .theme-toggle-track {
  background: color-mix(in srgb, var(--accent) 24%, #7f8aa1);
}

.theme-toggle[aria-pressed="true"] .theme-toggle-thumb {
  transform: translateX(18px);
  background: #ffffff;
}

.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 4px;
}
.nav-toggle span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--text);
  border-radius: 2px;
  transition: transform var(--transition), opacity var(--transition);
}
.nav-toggle.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle.open span:nth-child(2) { opacity: 0; }
.nav-toggle.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ─── HERO ──────────────────────────────────────────────────────── */
#hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  overflow: hidden;
  padding: calc(var(--nav-h) + 40px) 24px 100px;

  background: var(--hero-bg);
}

/* Flickering firelight glow layer */
#hero .hero-flicker {
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: 0;
  background:
    radial-gradient(ellipse 70% 50% at 50% 40%, rgba(214,40,40,0.09) 0%, transparent 65%),
    radial-gradient(ellipse 50% 35% at 30% 70%, rgba(255,120,20,0.05) 0%, transparent 55%);
  animation: fireFlicker 4s ease-in-out infinite alternate;
}

body.light-mode #hero .hero-flicker {
  opacity: 0.3;
}

body.light-mode .feature-bg {
  opacity: 0.9;
}

body.light-mode .feature-card:hover .feature-bg {
  opacity: 1;
}
@keyframes fireFlicker {
  0%   { opacity: 0.6; transform: scale(1.00); }
  25%  { opacity: 1.0; transform: scale(1.02); }
  50%  { opacity: 0.7; transform: scale(0.99); }
  75%  { opacity: 1.0; transform: scale(1.03); }
  100% { opacity: 0.5; transform: scale(1.01); }
}

#emberCanvas {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 0;
}


.hero-overlay {
  position: absolute;
  inset: 0;
  background:
    repeating-linear-gradient(
      0deg,
      transparent,
      transparent 2px,
      rgba(0,0,0,0.05) 2px,
      rgba(0,0,0,0.05) 4px
    );
  pointer-events: none;
}

/* Subtle animated noise texture via pseudo-element */
#hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noise'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noise)' opacity='0.03'/%3E%3C/svg%3E");
  pointer-events: none;
  opacity: 0.6;
}

/* Accent line across the bottom of hero */
#hero::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--accent), transparent);
  opacity: 0.4;
}

.hero-content {
  position: relative;
  z-index: 1;
  max-width: 760px;
}

.hero-eyebrow,
.hero-subtitle,
.hero-description {
  user-select: none;
  -webkit-user-select: none;
}

.hero-eyebrow {
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: var(--text-muted);
  margin-bottom: 14px;
}

.hero-title {
  font-family: var(--font-display);
  font-size: clamp(6rem, 18vw, 14rem);
  letter-spacing: 0.12em;
  line-height: 0.9;
  color: var(--white);
  margin-bottom: 16px;
  user-select: none;
  -webkit-user-select: none;
  animation: etherFlicker 1.1s steps(1) infinite;
}

@keyframes etherFlicker {
  0%   { text-shadow: 0 0 20px rgba(214,40,40,0.5), 0 0 50px rgba(214,40,40,0.25); }
  3%   { text-shadow: none; }
  4%   { text-shadow: 0 0 20px rgba(214,40,40,0.5), 0 0 50px rgba(214,40,40,0.25); }
  5%   { text-shadow: none; }
  6%   { text-shadow: 0 0 20px rgba(214,40,40,0.5), 0 0 50px rgba(214,40,40,0.25); }
  19%  { text-shadow: 0 0 20px rgba(214,40,40,0.5), 0 0 50px rgba(214,40,40,0.25); }
  20%  { text-shadow: none; }
  21%  { text-shadow: 0 0 20px rgba(214,40,40,0.5), 0 0 50px rgba(214,40,40,0.25); }
  43%  { text-shadow: 0 0 20px rgba(214,40,40,0.5), 0 0 50px rgba(214,40,40,0.25); }
  44%  { text-shadow: none; }
  47%  { text-shadow: 0 0 20px rgba(214,40,40,0.5), 0 0 50px rgba(214,40,40,0.25); }
  48%  { text-shadow: none; }
  49%  { text-shadow: 0 0 20px rgba(214,40,40,0.5), 0 0 50px rgba(214,40,40,0.25); }
  61%  { text-shadow: 0 0 20px rgba(214,40,40,0.5), 0 0 50px rgba(214,40,40,0.25); }
  62%  { text-shadow: none; }
  63%  { text-shadow: 0 0 20px rgba(214,40,40,0.5), 0 0 50px rgba(214,40,40,0.25); }
  78%  { text-shadow: 0 0 20px rgba(214,40,40,0.5), 0 0 50px rgba(214,40,40,0.25); }
  79%  { text-shadow: none; }
  81%  { text-shadow: 0 0 20px rgba(214,40,40,0.5), 0 0 50px rgba(214,40,40,0.25); }
  82%  { text-shadow: none; }
  83%  { text-shadow: 0 0 20px rgba(214,40,40,0.5), 0 0 50px rgba(214,40,40,0.25); }
  84%  { text-shadow: none; }
  85%  { text-shadow: 0 0 20px rgba(214,40,40,0.5), 0 0 50px rgba(214,40,40,0.25); }
  100% { text-shadow: 0 0 20px rgba(214,40,40,0.5), 0 0 50px rgba(214,40,40,0.25); }
}

.hero-subtitle {
  font-family: var(--font-display);
  font-size: clamp(1rem, 3vw, 1.7rem);
  letter-spacing: 0.25em;
  color: var(--accent);
  text-transform: uppercase;
  margin-bottom: 28px;
}

.hero-description {
  font-size: 1rem;
  color: var(--text-muted);
  line-height: 1.8;
  margin-bottom: 44px;
  max-width: 520px;
  margin-left: auto;
  margin-right: auto;
}

.hero-actions {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 16px;
  flex-wrap: wrap;
}

.hero-scroll-hint {
  position: absolute;
  bottom: 32px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  opacity: 0.35;
  z-index: 1;
}
.scroll-line {
  display: block;
  width: 1px;
  height: 40px;
  background: linear-gradient(to bottom, transparent, var(--text));
  animation: scrollPulse 2s ease-in-out infinite;
}
.scroll-label {
  font-size: 0.6rem;
  letter-spacing: 0.25em;
  color: var(--text-muted);
}
@keyframes scrollPulse {
  0%, 100% { transform: scaleY(1); opacity: 1; }
  50%       { transform: scaleY(0.6); opacity: 0.5; }
}

/* ─── SERVER STATUS ─────────────────────────────────────────────── */
#server {
  padding: 48px 0;
  background: var(--bg-card-alt);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}

.server-widget {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 32px;
  flex-wrap: wrap;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 32px 36px;
  max-width: 1100px;
  margin: 0 auto;
}

.server-info {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.server-name-row {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 16px;
}

.server-status-dot {
  flex-shrink: 0;
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--text-faint);
  transition: background var(--transition), box-shadow var(--transition);
}
.server-status-dot.online {
  background: #22c55e;
  box-shadow: 0 0 8px rgba(34, 197, 94, 0.5);
  animation: pulse-dot 2.5s ease-in-out infinite;
}
.server-status-dot.offline {
  background: var(--accent);
  box-shadow: none;
}
@keyframes pulse-dot {
  0%, 100% { box-shadow: 0 0 6px rgba(34, 197, 94, 0.5); }
  50%       { box-shadow: 0 0 14px rgba(34, 197, 94, 0.8); }
}

.server-name {
  font-family: var(--font-display);
  font-size: 1.3rem;
  letter-spacing: 0.06em;
  color: var(--white);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.server-meta {
  display: flex;
  align-items: center;
  gap: 28px;
  flex-wrap: wrap;
}

.server-meta-item {
  display: flex;
  align-items: center;
  gap: 7px;
  font-size: 0.82rem;
  color: var(--text-muted);
}
.server-meta-item svg {
  width: 14px;
  height: 14px;
  flex-shrink: 0;
  color: var(--text-faint);
}

.server-actions {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  flex-wrap: wrap;
  flex-shrink: 0;
  min-width: 0;
}

.server-ip-block {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0;
  text-align: center;
}
.server-ip {
  font-family: 'Courier New', Courier, monospace;
  font-size: 0.85rem;
  color: var(--text-muted);
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: 4px;
  padding: 6px 12px;
  letter-spacing: 0.04em;
  white-space: nowrap;
}

.btn-copy {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 20px;
  background: transparent;
  color: var(--text-muted);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  cursor: pointer;
  transition: background var(--transition), color var(--transition), border-color var(--transition);
  white-space: nowrap;
}
.btn-copy svg { width: 14px; height: 14px; flex-shrink: 0; }
.btn-copy:hover:not(:disabled) {
  background: var(--bg);
  color: var(--white);
  border-color: var(--text-faint);
}
.btn-copy.copied {
  border-color: #22c55e;
  color: #22c55e;
}
.btn-copy:disabled {
  opacity: 0.35;
  cursor: not-allowed;
}

.btn-bm {
  padding: 10px 20px;
  font-size: 0.8rem;
}
.btn-bm[aria-disabled="true"],
.btn-bm[href="#"] {
  opacity: 0.35;
  pointer-events: none;
}

/* ─── FEATURES ──────────────────────────────────────────────────── */
#features {
  padding: 120px 0;
  background: var(--bg);
}

.features-grid {
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  gap: 20px;
}

.feature-card {
  grid-column: span 3;
  display: flex;
  flex-direction: column;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  transition: transform var(--transition), border-color var(--transition), box-shadow var(--transition);
}
.feature-card:hover {
  transform: translateY(-6px);
  border-color: var(--accent);
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.5), 0 0 0 1px rgba(214, 40, 40, 0.15);
}

.feature-bg {
  width: 100%;
  aspect-ratio: 16 / 9;
  object-fit: cover;
  display: block;
  opacity: 0.7;
  transition: opacity 0.5s ease, transform 0.5s ease;
  border-bottom: 2px solid var(--accent);
}

.feature-card:hover .feature-bg {
  opacity: 1;
  transform: scale(1.03);
}

.feature-card-content {
  padding: 28px 28px 32px;
}


.feature-number {
  font-family: var(--font-display);
  font-size: 2.4rem;
  letter-spacing: 0.06em;
  color: var(--accent);
  line-height: 1;
  margin-bottom: 16px;
  opacity: 0.35;
}

.feature-icon {
  width: 40px;
  height: 40px;
  margin-bottom: 24px;
  color: var(--accent);
}
.feature-icon svg { width: 100%; height: 100%; }

.feature-title {
  font-family: var(--font-display);
  font-size: 1.35rem;
  letter-spacing: 0.06em;
  color: var(--white);
  margin-bottom: 4px;
}

.feature-subtitle {
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 14px;
}

.feature-desc {
  font-size: 0.875rem;
  color: var(--text-muted);
  line-height: 1.75;
}

/* ─── STORE ─────────────────────────────────────────────────────── */
#store {
  padding: 120px 0;
  background: var(--bg-card-alt);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}

.store-block {
  display: grid;
  grid-template-columns: 1fr 400px;
  gap: 80px;
  align-items: center;
  max-width: 1100px;
  margin: 0 auto;
}

.store-desc {
  color: var(--text-muted);
  font-size: 1rem;
  line-height: 1.8;
  margin-top: 20px;
  margin-bottom: 28px;
  max-width: 520px;
}

.store-perks {
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.store-perks li {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 0.875rem;
  color: var(--text-muted);
}
.store-perks li::before {
  content: '';
  display: block;
  width: 6px;
  height: 6px;
  flex-shrink: 0;
  background: var(--accent);
  border-radius: 50%;
}

.store-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 40px 32px;
  text-align: center;
  box-shadow: 0 24px 64px rgba(0,0,0,0.5);
}

.store-card-label {
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 12px;
}

.store-card-price {
  font-family: var(--font-display);
  font-size: 2.8rem;
  letter-spacing: 0.06em;
  color: var(--white);
  margin-bottom: 2px;
}

.store-card-period {
  font-size: 0.72rem;
  font-weight: 500;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--text-faint);
  margin-bottom: 20px;
}

.store-card-perks {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 9px;
  margin-bottom: 28px;
  text-align: left;
}
.store-card-perks li {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.82rem;
  color: var(--text-muted);
}
.store-card-perks li::before {
  content: '';
  display: block;
  width: 5px;
  height: 5px;
  flex-shrink: 0;
  background: var(--accent);
  border-radius: 50%;
}

.store-card-note {
  font-size: 0.72rem;
  color: var(--text-faint);
  line-height: 1.6;
  margin-top: 14px;
}

/* ─── CREW ──────────────────────────────────────────────────────── */
#crew {
  padding: 120px 0;
  background: var(--bg-card-alt);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}

.crew-hierarchy {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 32px;
}

.crew-tier {
  width: 100%;
}

.crew-tier-lead {
  display: flex;
  justify-content: center;
  gap: 24px;
  flex-wrap: wrap;
}

.crew-grid {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 24px;
}

.crew-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 14px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-top: 2px solid var(--accent);
  border-radius: var(--radius);
  padding: 36px 28px 32px;
  width: 196px;
  transition: transform var(--transition), box-shadow var(--transition);
}

.crew-card-lead {
  width: 220px;
}

.crew-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 16px 40px rgba(0,0,0,0.5), 0 0 0 1px rgba(214,40,40,0.15);
}

.crew-avatar {
  width: 64px;
  height: 64px;
  border-radius: 50%;
  overflow: hidden;
  background: linear-gradient(135deg, #1a1a1a, #2a2a2a);
  border: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-display);
  font-size: 1.6rem;
  letter-spacing: 0.05em;
  color: var(--accent);
}

.crew-avatar-photo {
  padding: 0;
  background: #111111;
}

.crew-avatar-photo img { width: 100%; height: 100%; object-fit: cover; }

.crew-name {
  font-family: var(--font-display);
  font-size: 1.25rem;
  letter-spacing: 0.05em;
  color: var(--white);
}

.crew-role {
  font-size: 0.82rem;
  color: var(--text-muted);
  text-align: center;
  line-height: 1.5;
}

.crew-socials {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  margin-top: 14px;
}

.crew-socials a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: var(--bg);
  border: 1px solid var(--border);
  color: var(--text-muted);
  transition: background var(--transition), color var(--transition), border-color var(--transition), transform 0.15s ease;
}

.crew-socials a:hover {
  background: var(--accent);
  color: var(--white);
  border-color: var(--accent);
  transform: translateY(-2px);
}

.crew-socials svg {
  width: 16px;
  height: 16px;
}

.crew-avatar-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.crew-name {
  font-family: var(--font-display);
  font-size: 1.15rem;
  letter-spacing: 0.08em;
  color: var(--white);
  text-align: center;
}

.crew-role {
  font-size: 0.75rem;
  font-weight: 500;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--accent);
  text-shadow: 0 0 12px rgba(214, 40, 40, 0.22);
  text-align: center;
}

/* Stagger crew cards */
.crew-tier-lead .reveal:nth-child(1) { transition-delay: 0s; }
.crew-grid .reveal:nth-child(1) { transition-delay: 0.04s; }
.crew-grid .reveal:nth-child(2) { transition-delay: 0.08s; }
.crew-grid .reveal:nth-child(3) { transition-delay: 0.12s; }
.crew-grid .reveal:nth-child(4) { transition-delay: 0.16s; }

/* ─── CONTENT CREATORS ──────────────────────────────────────────── */
#creators {
  padding: 120px 0;
  background: var(--bg-card-alt);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}

.creators-grid {
  display: flex;
  justify-content: center;
  gap: 24px;
  flex-wrap: wrap;
}

.creator-card {
  display: flex;
  align-items: center;
  gap: 18px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 20px 28px;
  min-width: 280px;
  max-width: 360px;
  flex: 1;
  transition: transform var(--transition), border-color var(--transition), box-shadow var(--transition);
  text-decoration: none;
  color: inherit;
  position: relative;
}

.creator-card:hover {
  transform: translateY(-4px);
  border-color: #ff0000;
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.4), 0 0 0 1px rgba(255, 0, 0, 0.1);
}

.creator-avatar {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  overflow: hidden;
  background: linear-gradient(135deg, #1a1a1a, #2a2a2a);
  border: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  font-family: var(--font-display);
  font-size: 1.4rem;
  color: #ff0000;
}

.creator-avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.creator-avatar[data-initial]::after {
  content: attr(data-initial);
}

.creator-info {
  flex: 1;
  min-width: 0;
}

.creator-name {
  font-family: var(--font-display);
  font-size: 1.15rem;
  letter-spacing: 0.06em;
  color: var(--white);
  margin-bottom: 2px;
}

.creator-platform {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 0.75rem;
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #ff0000;
}

.creator-platform svg {
  width: 14px;
  height: 14px;
  flex-shrink: 0;
}

.creator-arrow {
  width: 20px;
  height: 20px;
  color: var(--text-faint);
  flex-shrink: 0;
  transition: color var(--transition), transform var(--transition);
}

.creator-arrow svg {
  width: 100%;
  height: 100%;
}

.creator-card:hover .creator-arrow {
  color: var(--white);
  transform: translate(2px, -2px);
}

/* Stagger creator cards */
.creators-grid .reveal:nth-child(1) { transition-delay: 0s; }
.creators-grid .reveal:nth-child(2) { transition-delay: 0.05s; }
.creators-grid .reveal:nth-child(3) { transition-delay: 0.1s; }

/* ─── DISCORD ───────────────────────────────────────────────────── */
#discord {
  padding: 140px 0;
  background: var(--bg);
  position: relative;
  overflow: hidden;
}

#discord::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse 70% 60% at 50% 50%, rgba(88, 101, 242, 0.07) 0%, transparent 70%);
  pointer-events: none;
}

.discord-block {
  position: relative;
  z-index: 1;
  text-align: center;
  max-width: 640px;
  margin: 0 auto;
}

.discord-icon {
  width: 52px;
  height: 52px;
  margin: 0 auto 28px;
  color: #5865F2;
  opacity: 0.85;
}
.discord-icon svg { width: 100%; height: 100%; }

.discord-desc {
  color: var(--text-muted);
  font-size: 1rem;
  line-height: 1.8;
  margin: 20px 0 40px;
}

/* ─── FOOTER ────────────────────────────────────────────────────── */
#footer {
  background: var(--bg-card-alt);
  border-top: 1px solid var(--border);
  padding: 32px 0;
}

.footer-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
}

.footer-brand {
  font-family: var(--font-display);
  font-size: 1.4rem;
  letter-spacing: 0.1em;
  color: var(--text-faint);
}

.footer-copy {
  font-size: 0.78rem;
  color: var(--text-faint);
  text-align: center;
  flex: 1;
}

.footer-links {
  display: flex;
  gap: 24px;
}
.footer-links a {
  font-size: 0.78rem;
  color: var(--text-faint);
  letter-spacing: 0.06em;
  transition: color var(--transition);
}
.footer-links a:hover { color: var(--text-muted); }

/* ─── SCROLL ANIMATIONS ─────────────────────────────────────────── */
.fade-in {
  opacity: 0;
  transform: translateY(16px);
  transition: opacity 0.4s ease, transform 0.4s ease;
}
.fade-in.visible {
  opacity: 1;
  transform: translateY(0);
}

.reveal {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity 0.35s ease, transform 0.35s ease;
}
.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

/* Stagger children in features grid */
.features-grid .reveal:nth-child(1) { transition-delay: 0s; }
.features-grid .reveal:nth-child(2) { transition-delay: 0.04s; }
.features-grid .reveal:nth-child(3) { transition-delay: 0.08s; }
.features-grid .reveal:nth-child(4) { transition-delay: 0.12s; }
.features-grid .reveal:nth-child(5) { transition-delay: 0.16s; }
.features-grid .reveal:nth-child(6) { transition-delay: 0.2s; }
.features-grid .reveal:nth-child(7) { transition-delay: 0.24s; }
.features-grid .reveal:nth-child(8) { transition-delay: 0.28s; }

/* ─── RESPONSIVE ────────────────────────────────────────────────── */
@media (max-width: 1024px) {
  .feature-card { grid-column: span 6; }
  .store-block {
    grid-template-columns: 1fr;
    gap: 48px;
    text-align: center;
  }
  .store-text { display: flex; flex-direction: column; align-items: center; }
  .store-perks { align-items: center; }
  .store-desc { margin-left: 0; margin-right: 0; }
  .store-cta-block {
    max-width: 400px;
    margin: 0 auto;
  }
}

@media (max-width: 768px) {
  .nav-links {
    display: none;
    position: absolute;
    top: var(--nav-h);
    left: 0;
    right: 0;
    flex-direction: column;
    align-items: flex-start;
    gap: 0;
    background: var(--nav-surface);
    border-bottom: 1px solid var(--border);
    padding: 16px 0;
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
  }
  .nav-links.open { display: flex; }
  .nav-links li { width: 100%; }
  .nav-links a {
    display: block;
    padding: 14px 24px;
  }
  .nav-controls { gap: 10px; }
  .theme-toggle {
    padding: 6px 8px;
  }
  .nav-toggle { display: flex; }

  .nav-brand-tagline { display: none; }
  .nav-brand-divider { display: none; }

  #features  { padding: 80px 0; }
  #store     { padding: 80px 0; }
  #crew      { padding: 80px 0; }
  #creators  { padding: 80px 0; }
  #discord   { padding: 100px 0; }

  .creators-grid { flex-direction: column; align-items: center; }
  .creator-card { max-width: 100%; width: 100%; }

  .features-grid { grid-template-columns: 1fr; gap: 16px; }
  .feature-card { grid-column: span 1 !important; }

  .server-widget {
    flex-direction: column;
    align-items: center;
    gap: 20px;
    text-align: center;
  }
  .server-info {
    align-items: center;
  }
  .server-name-row {
    justify-content: center;
  }
  .server-meta {
    justify-content: center;
  }
  .server-actions {
    width: 100%;
    flex-direction: column;
    align-items: center;
  }
  .server-ip-block { width: 100%; }
  .server-ip { width: 100%; display: block; }
  .btn-copy,
  .btn-bm   { width: 100%; justify-content: center; }

  .footer-inner {
    flex-direction: column;
    text-align: center;
  }
  .footer-copy { order: 3; }
  .footer-links { justify-content: center; }
}

@media (max-width: 480px) {
  .hero-title { font-size: clamp(5rem, 24vw, 7rem); }
  .store-block { gap: 36px; }
  .store-cta-block { max-width: 100%; }
}
