* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: 'Inter', system-ui, -apple-system, sans-serif;
  background: #0f172a;
  color: #e2e8f0;
  min-height: 100dvh;
  overflow-x: hidden;
}

/* ── LOADER ───────────────────────────────────────────────── */
#loader {
  position: fixed;
  inset: 0;
  background: #0f172a;
  z-index: 9999;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: opacity 1s ease, visibility 1s ease;
}

#loader.hidden {
  opacity: 0;
  visibility: hidden;
}

.loader-content { text-align: center; }

.loader-logo img {
  width: 80px;
  height: 80px;
  object-fit: contain;
  filter: drop-shadow(0 0 12px rgba(148,163,184,0.4));
  animation: pulse 3s infinite ease-in-out;
}

@keyframes pulse {
  0%,100% { transform: scale(1); opacity: 0.7; }
  50%     { transform: scale(1.04); opacity: 1; }
}

.loader-bar {
  width: 160px;
  height: 2px;
  background: rgba(148,163,184,0.15);
  margin: 1.8rem auto;
  border-radius: 1px;
  overflow: hidden;
}

.loader-progress {
  width: 0;
  height: 100%;
  background: linear-gradient(90deg, #64748b, #94a3b8);
  animation: loading 3.8s ease-in-out forwards;
}

@keyframes loading {
  to { width: 100%; }
}

.loader-text {
  font-size: 0.9rem;
  opacity: 0.55;
  letter-spacing: 1.6px;
  text-transform: uppercase;
}

/* ── GLASSMORPHISM HEADER ONLY ───────────────────────────────── */
.nav-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  padding: 1.4rem 1rem;
  display: flex;
  justify-content: center;
}

.nav-container {
  background: rgba(30, 41, 59, 0.32);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid rgba(148, 163, 184, 0.22);
  border-radius: 9999px;
  padding: 0.4rem 1.4rem;
  display: flex;
  gap: 0.6rem;
  align-items: center;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.25);
}

.nav-item {
  color: #cbd5e1;
  font-size: 0.86rem;
  font-weight: 500;
  text-decoration: none;
  padding: 0.4rem 0.9rem;
  border-radius: 9999px;
  transition: all 0.2s;
}

.nav-item:hover,
.nav-item.active {
  background: rgba(71, 85, 105, 0.42);
  color: white;
}

.support-btn {
  background: rgba(71, 85, 105, 0.45) !important;
  color: white !important;
  display: flex;
  align-items: center;
  gap: 0.45rem;
  padding: 0.4rem 1rem !important;
  border-radius: 9999px;
}

.support-btn:hover {
  background: rgba(100, 116, 139, 0.55) !important;
}

/* ── VIDEO BACKGROUND ────────────────────────────────────────── */
.video-bg {
  position: fixed;
  inset: 0;
  z-index: -2;
}

.video-bg video,
.video-bg img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.video-overlay {
  position: absolute;
  inset: 0;
  background: rgba(15, 23, 42, 0.68);
  z-index: -1;
}

/* ── HERO SECTION (restored) ─────────────────────────────────── */
main {
  min-height: 100dvh;
  display: flex;
  align-items: flex-start;
  justify-content: center;
  padding-top: 38vh;      /* kept as previously approved – matches rival.rest positioning */
  padding-bottom: 20vh;
}

.hero-container {
  text-align: center;
  max-width: 520px;
  padding: 0 1rem;
}

.hero-icon {
  margin-bottom: 0.45rem;
}

.hero-icon img {
  width: 46px;
  height: 46px;
  object-fit: contain;
  filter: drop-shadow(0 0 8px rgba(148,163,184,0.35));
}

.hero-title {
  font-size: clamp(2.5rem, 7vw, 3.6rem);
  font-weight: 700;
  letter-spacing: -0.02em;
  margin-bottom: 0.35rem;
  line-height: 0.92;
  background: linear-gradient(to bottom, #d1d5db, #9ca3af);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.hero-subtitle {
  font-size: clamp(1.05rem, 3vw, 1.22rem);
  font-weight: 400;
  opacity: 0.9;
  margin-bottom: 0.4rem;
  line-height: 1.3;
  background: linear-gradient(to bottom, #d1d5db, #9ca3af);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.hero-stats {
  font-size: clamp(0.94rem, 2.8vw, 1.05rem);
  font-weight: 300;
  opacity: 0.82;
  line-height: 1.35;
  position: relative;
  display: inline-block;
  background: linear-gradient(to bottom, #d1d5db, #9ca3af);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.highlight {
  color: #94a3b8;
  font-weight: 500;
}

/* Tight underline – only under @ubreach */
.underline-wrapper {
  position: absolute;
  bottom: -3px;
  left: 50%;
  transform: translateX(-50%);
  width: 96px;
  height: 10px;
}

.underline-svg {
  width: 100%;
  height: 100%;
}

.underline-path {
  fill: none;
  stroke: #94a3b8;
  stroke-width: 1.1;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-dasharray: 220;
  stroke-dashoffset: 220;
  opacity: 0.65;
  animation: drawUnderline 2.8s ease-out forwards;
}

.line-1 { animation-delay: 1.3s; }
.line-2 { animation-delay: 2s; }

@keyframes drawUnderline {
  to { stroke-dashoffset: 0; }
}

/* Responsive */
@media (max-width: 640px) {
  main {
    padding-top: 32vh;
  }

  .hero-icon img {
    width: 40px;
    height: 40px;
  }

  .underline-wrapper {
    width: 84px;
    bottom: -2px;
  }

  .underline-path {
    stroke-width: 1.0;
  }
}