/* ============================================================
   DAWNFALL — Landing page
   Requires: shared.css
   ============================================================ */

/* ── Navbar ──────────────────────────────────────────────── */

.nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  transition: background 200ms, border-color 200ms, backdrop-filter 200ms;
}

.nav.scrolled {
  background: rgba(7, 9, 15, 0.88);
  border-bottom: 1px solid var(--border);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
}

.nav-inner {
  display: flex;
  align-items: center;
  gap: 32px;
  height: var(--nav-h);
}

.nav-logo { text-decoration: none; flex-shrink: 0; }

.nav-logo-text {
  font-size: 18px;
  font-weight: 900;
  letter-spacing: -0.02em;
  color: var(--text);
}

.nav-logo-text span {
  background: var(--brand-gradient);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

.nav-links {
  display: flex;
  list-style: none;
  gap: 2px;
}

.nav-links a {
  display: block;
  padding: 6px 14px;
  border-radius: var(--r-sm);
  font-size: 14px;
  font-weight: 600;
  color: var(--text-muted);
  transition: color 120ms, background 120ms;
  text-decoration: none;
}

.nav-links a:hover {
  color: var(--text);
  background: rgba(255,255,255,0.05);
}

.nav-actions { margin-left: auto; display: flex; gap: 10px; align-items: center; }

.nav-link-btn {
  padding: 6px 14px;
  border-radius: var(--r-sm);
  font-size: 14px;
  font-weight: 600;
  color: var(--text-muted);
  text-decoration: none;
  transition: color 120ms, background 120ms;
  white-space: nowrap;
}
.nav-link-btn:hover {
  color: var(--text);
  background: rgba(255, 255, 255, 0.05);
}

.lang-label {
  font-size: 12px;
  font-weight: 600;
  color: var(--text-dim);
  white-space: nowrap;
  user-select: none;
}

.lang-picker { position: relative; }

.lang-picker-btn {
  display: flex;
  align-items: center;
  gap: 7px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--border);
  border-radius: var(--r-sm);
  color: var(--text-muted);
  cursor: pointer;
  font-size: 13px;
  font-weight: 600;
  font-family: inherit;
  padding: 5px 10px 5px 12px;
  transition: border-color 150ms, color 150ms, background 150ms;
  white-space: nowrap;
}
.lang-picker-btn:hover,
.lang-picker.open .lang-picker-btn {
  border-color: var(--border-brand);
  color: var(--text);
  background: rgba(52, 209, 200, 0.06);
}

.lang-picker-chevron {
  opacity: 0.55;
  transition: transform 200ms ease;
  flex-shrink: 0;
}
.lang-picker.open .lang-picker-chevron { transform: rotate(180deg); }

.lang-picker-menu {
  display: none; /* toggled by JS */
  position: absolute;
  top: calc(100% + 7px);
  right: 0;
  min-width: 130px;
  list-style: none;
  padding: 4px;
  margin: 0;
  background: rgba(10, 13, 20, 0.97);
  border: 1px solid var(--border);
  border-radius: var(--r-md);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.55), 0 0 0 1px rgba(255,255,255,0.04);
  z-index: 200;
}
.lang-picker.open .lang-picker-menu {
  display: block;
  animation: fadeUp 140ms ease both;
}

.lang-picker-option {
  padding: 8px 14px;
  border-radius: var(--r-sm);
  font-size: 13px;
  font-weight: 600;
  color: var(--text-muted);
  cursor: pointer;
  transition: background 100ms, color 100ms;
  user-select: none;
}
.lang-picker-option:hover  { background: rgba(52, 209, 200, 0.08); color: var(--text); }
.lang-picker-option.active { color: var(--brand-2); }

.nav-burger {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 6px;
  margin-left: auto;
}

.nav-burger span {
  display: block;
  width: 22px;
  height: 2px;
  background: var(--text);
  border-radius: 999px;
  transition: all 200ms;
}

/* ── Hero ────────────────────────────────────────────────── */

.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: calc(var(--nav-h) + 60px) 24px 100px;
  overflow: hidden;
}

.hero-glows {
  position: absolute;
  inset: 0;
  pointer-events: none;
  background:
    radial-gradient(ellipse 90% 70% at 50% -5%,
      rgba(27, 187, 201, 0.18) 0%,
      rgba(52, 209, 200, 0.06) 45%,
      transparent 70%
    ),
    radial-gradient(ellipse 40% 40% at 15% 60%,
      rgba(144, 248, 181, 0.06) 0%,
      transparent 60%
    );
}

/* Keep these empty — HTML still references them but they're invisible */
.glow, .glow-blue, .glow-violet, .glow-cyan { display: none; }

.hero-content {
  position: relative;
  z-index: 1;
  max-width: 780px;
  animation: fadeUp 0.8s ease both;
}

.hero-eyebrow {
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--brand-2);
  margin-bottom: 18px;
}

.hero-title {
  font-size: clamp(56px, 9vw, 110px);
  font-weight: 900;
  letter-spacing: -0.04em;
  line-height: 1.0;
  color: var(--text);
  margin-bottom: 24px;
}

.hero-title-brand {
  background: var(--brand-gradient);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  display: block;
}

.hero-subtitle {
  font-size: 18px;
  color: var(--text-muted);
  line-height: 1.75;
  max-width: 580px;
  margin: 0 auto 38px;
}

.hero-ctas {
  display: flex;
  gap: 14px;
  justify-content: center;
  flex-wrap: wrap;
  margin-bottom: 30px;
}

.hero-version {
  display: none;
  align-items: center;
  gap: 8px;
  background: rgba(255,255,255,0.05);
  border: 1px solid var(--border);
  border-radius: 999px;
  padding: 5px 16px;
  font-size: 12px;
  color: var(--text-muted);
  margin: 0 auto;
}

.hero-scroll-hint {
  position: absolute;
  bottom: 36px;
  left: 50%;
  transform: translateX(-50%);
  color: var(--text-dim);
  animation: bounce 2s ease-in-out infinite;
}

@keyframes bounce {
  0%, 100% { transform: translateX(-50%) translateY(0); }
  50%       { transform: translateX(-50%) translateY(7px); }
}

/* ── Server info bar ─────────────────────────────────────── */

.server-bar {
  background: rgba(255,255,255,0.025);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}

.server-bar-inner {
  display: flex;
  align-items: center;
  height: 50px;
  overflow-x: auto;
  gap: 0;
}

.server-bar-item {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 0 22px;
  font-size: 13px;
  color: var(--text-muted);
  white-space: nowrap;
  flex-shrink: 0;
}

.server-bar-dot {
  width: 8px; height: 8px;
  border-radius: 50%;
  background: var(--success);
  box-shadow: 0 0 7px var(--success);
  animation: pulseGlow 2s ease-in-out infinite;
  flex-shrink: 0;
}

.server-bar-ip {
  font-family: 'Courier New', monospace;
  font-size: 13px;
  letter-spacing: 0.04em;
  color: var(--text);
}

.server-bar-copy {
  background: none;
  border: none;
  cursor: pointer;
  color: var(--text-dim);
  padding: 4px;
  border-radius: 4px;
  display: flex;
  align-items: center;
  transition: color 120ms;
}
.server-bar-copy:hover { color: var(--brand-2); }

.server-bar-sep { width: 1px; height: 20px; background: var(--border); flex-shrink: 0; }

/* ── Features ─────────────────────────────────────────────── */

.features-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 18px;
}

.feature-card {
  background: rgba(255,255,255,0.025);
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
  padding: 28px 24px;
  transition: border-color 200ms, background 200ms;
}
.feature-card:hover {
  border-color: var(--border-brand);
  background: rgba(52, 209, 200, 0.04);
}

.feature-icon {
  width: 52px; height: 52px;
  background: rgba(52, 209, 200, 0.10);
  border: 1px solid var(--border-brand);
  border-radius: var(--r-md);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 18px;
  color: var(--brand-2);
}

.feature-title { font-size: 16px; font-weight: 800; margin-bottom: 10px; letter-spacing: -0.01em; }
.feature-body  { font-size: 14px; color: var(--text-muted); line-height: 1.65; }

/* ── Alternate section background ────────────────────────── */

.section-alt {
  background: rgba(255,255,255,0.018);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}

.section-header { margin-bottom: 52px; }

/* ── Game modes grid ──────────────────────────────────────── */

.modes-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: 24px;
}

.modes-loading {
  grid-column: 1 / -1;
  display: flex;
  justify-content: center;
  padding: 60px 0;
}

.spinner {
  width: 32px; height: 32px;
  border: 2px solid var(--border);
  border-top-color: var(--brand-2);
  border-radius: 50%;
  animation: spin 0.8s linear infinite;
}

.mode-card {
  background: rgba(255,255,255,0.025);
  border: 1px solid var(--border);
  border-radius: var(--r-xl);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: border-color 200ms, transform 200ms, box-shadow 200ms;
}
.mode-card:hover {
  border-color: var(--border-brand);
  transform: translateY(-4px);
  box-shadow: 0 16px 48px rgba(0,0,0,0.45), 0 0 24px rgba(52,209,200,0.07);
}

.mode-thumb {
  width: 100%;
  aspect-ratio: 16 / 8;
  object-fit: cover;
  background: rgba(255,255,255,0.04);
}

.mode-thumb-placeholder {
  width: 100%;
  aspect-ratio: 16 / 8;
  background: linear-gradient(135deg, rgba(27,187,201,0.07), rgba(201,176,233,0.07));
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--border-brand);
  opacity: 0.7;
}

.mode-body {
  padding: 20px 22px 24px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  flex: 1;
}

.mode-header { display: flex; align-items: flex-start; gap: 10px; }

.mode-label { font-size: 18px; font-weight: 800; letter-spacing: -0.02em; flex: 1; }

.mode-desc { font-size: 14px; color: var(--text-muted); line-height: 1.6; }

.mode-tags { display: flex; gap: 6px; flex-wrap: wrap; }

.mode-tag {
  height: 24px;
  padding: 0 10px;
  background: rgba(255,255,255,0.05);
  border: 1px solid var(--border);
  border-radius: 999px;
  font-size: 11px;
  font-weight: 600;
  color: var(--text-muted);
  display: inline-flex;
  align-items: center;
}

.mode-meta {
  font-size: 12px;
  color: var(--text-dim);
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
  margin-top: auto;
  padding-top: 10px;
  border-top: 1px solid var(--border-soft);
}

.mode-meta-item { display: flex; align-items: center; gap: 5px; }

/* ── How to Play ──────────────────────────────────────────── */

.htp-layout {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 80px;
  align-items: center;
}

.htp-steps { display: flex; flex-direction: column; }

.htp-step {
  display: flex;
  gap: 22px;
  padding: 28px 0;
  border-bottom: 1px solid var(--border-soft);
}
.htp-step:last-child { border-bottom: none; }

.htp-step-num {
  font-size: 11px;
  font-weight: 900;
  letter-spacing: 0.06em;
  color: var(--brand-2);
  background: rgba(52, 209, 200, 0.10);
  border: 1px solid var(--border-brand);
  border-radius: var(--r-sm);
  width: 36px; height: 36px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  margin-top: 2px;
}

.htp-step-body h3 { font-size: 16px; font-weight: 800; margin-bottom: 7px; letter-spacing: -0.01em; }
.htp-step-body p  { font-size: 14px; color: var(--text-muted); line-height: 1.65; }

/* ── Community ────────────────────────────────────────────── */

.community-layout {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 80px;
  align-items: center;
}

.community-actions { display: flex; gap: 12px; flex-wrap: wrap; margin-top: 28px; }

.community-stats {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}

.stat-card {
  background: rgba(255,255,255,0.025);
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
  padding: 24px 20px;
  text-align: center;
  transition: border-color 200ms;
}
.stat-card:hover { border-color: var(--border-brand); }

.stat-value {
  font-size: 34px;
  font-weight: 900;
  letter-spacing: -0.03em;
  background: var(--brand-gradient);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  line-height: 1.1;
  margin-bottom: 6px;
}

.stat-label {
  font-size: 11px;
  color: var(--text-dim);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.07em;
}

/* ── Footer ───────────────────────────────────────────────── */

.footer { border-top: 1px solid var(--border); }

.footer-inner {
  display: flex;
  justify-content: space-between;
  gap: 48px;
  padding-top: 64px;
  padding-bottom: 64px;
  flex-wrap: wrap;
}

.footer-logo {
  font-size: 22px;
  font-weight: 900;
  letter-spacing: -0.02em;
  color: var(--text);
}

.footer-logo span {
  background: var(--brand-gradient);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

.footer-tagline { font-size: 13px; color: var(--text-dim); margin-top: 8px; }

.footer-links { display: flex; gap: 48px; flex-wrap: wrap; }

.footer-col {
  display: flex;
  flex-direction: column;
  gap: 10px;
  min-width: 120px;
}

.footer-col-title {
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--text-dim);
  margin-bottom: 4px;
}

.footer-col a {
  font-size: 13px;
  color: var(--text-muted);
  text-decoration: none;
  transition: color 120ms;
}
.footer-col a:hover { color: var(--text); }

.footer-bottom { border-top: 1px solid var(--border-soft); }

.footer-bottom-inner {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  padding-top: 20px;
  padding-bottom: 20px;
  font-size: 12px;
  color: var(--text-dim);
  flex-wrap: wrap;
}

/* ── Lotus Shards ─────────────────────────────────────────── */

.section-lotus {
  background: rgba(167, 218, 120, 0.025);
  border-top: 1px solid rgba(167, 218, 120, 0.12);
  border-bottom: 1px solid rgba(167, 218, 120, 0.12);
}

.lotus-layout {
  display: grid;
  grid-template-columns: 1fr 2fr;
  gap: 80px;
  align-items: center;
}

.lotus-visual {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
}

.lotus-glow {
  position: absolute;
  width: 220px;
  height: 220px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(167, 218, 120, 0.22) 0%, transparent 70%);
  filter: blur(30px);
}

.lotus-hero-img {
  width: 160px;
  height: 160px;
  object-fit: contain;
  position: relative;
  z-index: 1;
  animation: lotusFloat 3.5s ease-in-out infinite;
  filter: drop-shadow(0 8px 32px rgba(167, 218, 120, 0.35));
}

@keyframes lotusFloat {
  0%, 100% { transform: translateY(0); }
  50%       { transform: translateY(-10px); }
}

.lotus-text .section-eyebrow { color: rgba(167, 218, 120, 0.85); }

.lotus-pills {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 28px;
  padding: 0;
}

.lotus-pill {
  height: 30px;
  padding: 0 14px;
  border-radius: 999px;
  border: 1px solid rgba(167, 218, 120, 0.3);
  background: rgba(167, 218, 120, 0.08);
  color: rgba(185, 230, 140, 0.9);
  font-size: 12px;
  font-weight: 600;
  display: inline-flex;
  align-items: center;
}

/* ── Responsive ───────────────────────────────────────────── */

@media (max-width: 900px) {
  .lotus-layout { grid-template-columns: 1fr; gap: 40px; }
  .lotus-visual { max-width: 200px; margin: 0 auto; }
  .htp-layout,
  .community-layout {
    grid-template-columns: 1fr;
    gap: 48px;
  }

  .nav-links {
    display: none;
    position: absolute;
    top: var(--nav-h);
    left: 0; right: 0;
    background: rgba(7, 9, 15, 0.96);
    border-bottom: 1px solid var(--border);
    flex-direction: column;
    padding: 12px 16px;
    backdrop-filter: blur(18px);
    -webkit-backdrop-filter: blur(18px);
  }

  .nav-links.open { display: flex; }
  .nav-links li   { width: 100%; }
  .nav-links a    { width: 100%; }

  .nav-burger  { display: flex; }
  .nav-actions { display: none; }
}

@media (max-width: 600px) {
  .section { padding: 64px 16px; }
  .container { padding: 0 16px; }
  .hero-title { font-size: clamp(42px, 11vw, 70px); }
  .hero-ctas  { flex-direction: column; align-items: center; }
  .features-grid { grid-template-columns: 1fr; }
  .modes-grid    { grid-template-columns: 1fr; }
  .community-stats { grid-template-columns: 1fr 1fr; }
  .footer-inner  { flex-direction: column; }
  .footer-links  { gap: 28px; }
}
