/* ============================================
   zSmiter Landing Page — Gothic Dark Theme
   ============================================ */

@import url('https://fonts.googleapis.com/css2?family=Cinzel:wght@400;700;900&family=Crimson+Text:ital,wght@0,400;0,600;0,700;1,400&display=swap');

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

:root {
  --bg-dark: #0a0a0f;
  --bg-card: #12121a;
  --bg-card-hover: #1a1a28;
  --purple-deep: #2a1a3a;
  --purple-mid: #4a2a6a;
  --purple-light: #8a5abf;
  --red-blood: #8b0000;
  --red-glow: #cc2222;
  --red-bright: #ff3333;
  --gold: #d4a844;
  --gold-bright: #f0c850;
  --text-primary: #e8e0f0;
  --text-secondary: #a09aaf;
  --text-muted: #6a6578;
  --border-subtle: rgba(138, 90, 191, 0.15);
  --border-glow: rgba(138, 90, 191, 0.4);
  --shadow-purple: rgba(74, 42, 106, 0.3);
  --shadow-red: rgba(139, 0, 0, 0.2);
}

html {
  scroll-behavior: smooth;
  font-size: 16px;
}

body {
  font-family: 'Crimson Text', Georgia, serif;
  background: var(--bg-dark);
  color: var(--text-primary);
  line-height: 1.7;
  overflow-x: hidden;
}

/* --- Ambient Background --- */
body::before {
  content: '';
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background:
    radial-gradient(ellipse at 20% 0%, rgba(42, 26, 58, 0.4) 0%, transparent 60%),
    radial-gradient(ellipse at 80% 100%, rgba(139, 0, 0, 0.15) 0%, transparent 50%),
    radial-gradient(ellipse at 50% 50%, rgba(10, 10, 15, 0.95) 0%, transparent 100%);
  pointer-events: none;
  z-index: -1;
}

/* --- Typography --- */
h1, h2, h3, h4 {
  font-family: 'Cinzel', serif;
  font-weight: 700;
  letter-spacing: 0.05em;
}

h2.section-title {
  font-size: 2.2rem;
  text-align: center;
  margin-bottom: 0.5rem;
  color: var(--text-primary);
  text-shadow: 0 0 30px var(--shadow-purple);
}

.section-subtitle {
  text-align: center;
  color: var(--text-secondary);
  font-size: 1.15rem;
  margin-bottom: 3rem;
  font-style: italic;
}

/* --- Sections --- */
section {
  padding: 5rem 1.5rem;
  max-width: 1100px;
  margin: 0 auto;
}

.section-divider {
  width: 80px;
  height: 2px;
  background: linear-gradient(90deg, transparent, var(--purple-light), transparent);
  margin: 0 auto 3rem;
  border: none;
}

/* ============================================
   HERO
   ============================================ */
.hero {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 2rem 1.5rem;
  position: relative;
  max-width: 100%;
  width: 100%;
}

.hero::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background:
    radial-gradient(circle at 50% 30%, rgba(74, 42, 106, 0.2) 0%, transparent 50%),
    radial-gradient(circle at 50% 80%, rgba(139, 0, 0, 0.1) 0%, transparent 40%);
  pointer-events: none;
}

.hero-content {
  position: relative;
  z-index: 1;
}

/* Hero background */
.hero-bg {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 0;
}

.hero-bg-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 30%;
}

.hero-bg-overlay {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(
    to bottom,
    rgba(10, 10, 15, 0.5) 0%,
    rgba(10, 10, 15, 0.7) 50%,
    rgba(10, 10, 15, 0.95) 100%
  );
}

.hero-title-logo {
  max-width: 550px;
  width: 90%;
  margin-bottom: 1.5rem;
  filter: drop-shadow(0 0 60px rgba(204, 34, 34, 0.6)) drop-shadow(0 0 120px rgba(138, 90, 191, 0.3));
  animation: logoFloat 6s ease-in-out infinite;
  mix-blend-mode: lighten;
}

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

.hero-tagline {
  font-family: 'Crimson Text', serif;
  font-size: 1.6rem;
  font-style: italic;
  color: var(--gold);
  margin-bottom: 1rem;
  text-shadow: 0 0 20px rgba(212, 168, 68, 0.3);
}

.hero-description {
  font-size: 1.15rem;
  color: var(--text-secondary);
  max-width: 550px;
  margin: 0 auto 2.5rem;
  line-height: 1.8;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
  background: linear-gradient(135deg, var(--purple-deep), #1a1028);
  border: 1px solid var(--border-glow);
  border-radius: 12px;
  padding: 0.9rem 1.8rem;
  color: var(--text-primary);
  text-decoration: none;
  font-family: 'Cinzel', serif;
  font-size: 1rem;
  letter-spacing: 0.05em;
  transition: all 0.3s ease;
  box-shadow: 0 4px 20px var(--shadow-purple);
}

.hero-badge:hover {
  border-color: var(--purple-light);
  box-shadow: 0 4px 30px rgba(138, 90, 191, 0.5);
  transform: translateY(-2px);
}

.hero-badge .badge-icon {
  font-size: 1.5rem;
}

.hero-badge .badge-text-small {
  font-family: 'Crimson Text', serif;
  font-size: 0.75rem;
  color: var(--text-muted);
  display: block;
  letter-spacing: 0.02em;
}

.scroll-indicator {
  position: absolute;
  bottom: 2rem;
  left: 50%;
  transform: translateX(-50%);
  animation: scrollBounce 2s ease-in-out infinite;
  color: var(--text-muted);
  font-size: 1.5rem;
}

@keyframes scrollBounce {
  0%, 100% { transform: translateX(-50%) translateY(0); opacity: 0.4; }
  50% { transform: translateX(-50%) translateY(8px); opacity: 0.8; }
}

/* Phosphor icon sizing */
.feature-icon i,
.leaderboard-icon i,
.achievement-icon-wrap i {
  font-size: inherit;
  vertical-align: middle;
}

.gpg-badge i {
  font-size: 1rem;
  vertical-align: middle;
}

.badge-icon i {
  font-size: inherit;
  vertical-align: middle;
}

.scroll-indicator i {
  font-size: inherit;
}

.footer-text i {
  vertical-align: middle;
  color: var(--red-glow);
}

/* ============================================
   FEATURES
   ============================================ */
.features-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 1.5rem;
}

.feature-card {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: 12px;
  padding: 2rem;
  transition: all 0.3s ease;
  position: relative;
  overflow: hidden;
}

.feature-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 2px;
  background: linear-gradient(90deg, transparent, var(--purple-light), transparent);
  opacity: 0;
  transition: opacity 0.3s ease;
}

.feature-card:hover {
  background: var(--bg-card-hover);
  border-color: var(--border-glow);
  transform: translateY(-4px);
  box-shadow: 0 8px 30px var(--shadow-purple);
}

.feature-card:hover::before {
  opacity: 1;
}

.feature-icon {
  font-size: 2.2rem;
  margin-bottom: 1rem;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 56px;
  height: 56px;
  margin-left: auto;
  margin-right: auto;
  background: linear-gradient(135deg, var(--purple-deep), rgba(139, 0, 0, 0.15));
  border: 1px solid var(--border-subtle);
  border-radius: 50%;
}

.feature-card h3 {
  font-size: 1.2rem;
  margin-bottom: 0.6rem;
  color: var(--text-primary);
  text-align: center;
}

.feature-card p {
  color: var(--text-secondary);
  font-size: 1rem;
  line-height: 1.6;
  text-align: center;
}

/* ============================================
   LEADERBOARDS
   ============================================ */
.leaderboards-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 1.5rem;
}

.leaderboard-card {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: 12px;
  padding: 2rem 1.5rem;
  text-align: center;
  transition: all 0.3s ease;
  position: relative;
}

.leaderboard-card:hover {
  border-color: var(--gold);
  box-shadow: 0 0 25px rgba(212, 168, 68, 0.15);
  transform: translateY(-4px);
}

.leaderboard-icon {
  font-size: 2.8rem;
  margin-bottom: 1rem;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 64px;
  height: 64px;
  margin-left: auto;
  margin-right: auto;
  background: linear-gradient(135deg, var(--purple-deep), rgba(139, 0, 0, 0.15));
  border: 1px solid var(--border-subtle);
  border-radius: 50%;
}

.leaderboard-card h3 {
  font-size: 1.1rem;
  color: var(--gold);
  margin-bottom: 0.4rem;
}

.leaderboard-card p {
  color: var(--text-secondary);
  font-size: 0.95rem;
}

.gpg-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  margin-top: 2.5rem;
  padding: 0.5rem 1rem;
  background: rgba(42, 26, 58, 0.4);
  border: 1px solid var(--border-subtle);
  border-radius: 8px;
  color: var(--text-muted);
  font-size: 0.85rem;
  font-family: 'Cinzel', serif;
  letter-spacing: 0.03em;
}

/* ============================================
   ACHIEVEMENTS
   ============================================ */
.achievements-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 1.25rem;
}

.achievement-card {
  display: flex;
  align-items: center;
  gap: 1.25rem;
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: 12px;
  padding: 1.5rem;
  transition: all 0.3s ease;
}

.achievement-card:hover {
  border-color: var(--gold);
  box-shadow: 0 4px 20px rgba(212, 168, 68, 0.1);
  transform: translateX(4px);
}

.achievement-icon-wrap {
  flex-shrink: 0;
  width: 56px;
  height: 56px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, var(--purple-deep), rgba(139, 0, 0, 0.3));
  border: 1px solid var(--border-glow);
  border-radius: 50%;
  font-size: 1.6rem;
}

.achievement-info h3 {
  font-size: 1.05rem;
  color: var(--gold);
  margin-bottom: 0.25rem;
}

.achievement-info p {
  color: var(--text-secondary);
  font-size: 0.95rem;
  line-height: 1.5;
}

.achievement-info .achievement-id {
  font-family: monospace;
  font-size: 0.75rem;
  color: var(--text-muted);
  margin-top: 0.25rem;
}

/* ============================================
   FOOTER
   ============================================ */
.site-footer {
  text-align: center;
  padding: 3rem 1.5rem;
  border-top: 1px solid var(--border-subtle);
  margin-top: 2rem;
}

.footer-logo {
  height: 40px;
  margin-bottom: 1rem;
  opacity: 0.7;
  transition: opacity 0.3s ease;
}

.footer-logo:hover {
  opacity: 1;
}

.footer-text {
  color: var(--text-muted);
  font-size: 0.95rem;
}

.footer-text a {
  color: var(--purple-light);
  text-decoration: none;
  transition: color 0.2s ease;
}

.footer-text a:hover {
  color: var(--gold);
}

.footer-copyright {
  color: var(--text-muted);
  font-size: 0.8rem;
  margin-top: 0.75rem;
  opacity: 0.6;
}

/* ============================================
   ANIMATIONS
   ============================================ */
@keyframes subtleGlow {
  0%, 100% { box-shadow: 0 0 20px var(--shadow-purple); }
  50% { box-shadow: 0 0 30px rgba(138, 90, 191, 0.4); }
}

.glow-pulse {
  animation: subtleGlow 4s ease-in-out infinite;
}

/* Fade-in on scroll */
.fade-in {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

.fade-in.visible {
  opacity: 1;
  transform: translateY(0);
}

/* ============================================
   RESPONSIVE
   ============================================ */
@media (max-width: 768px) {
  html { font-size: 15px; }

  section { padding: 3.5rem 1.25rem; }

  h2.section-title { font-size: 1.7rem; }

  .hero-title-logo { max-width: 380px; }

  .hero-tagline { font-size: 1.3rem; }

  .hero-description { font-size: 1.05rem; }

  .features-grid,
  .achievements-grid {
    grid-template-columns: 1fr;
  }

  .leaderboards-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 480px) {
  html { font-size: 14px; }

  .hero { min-height: 90vh; }

  .hero-title-logo { max-width: 280px; }

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

  .achievement-card {
    flex-direction: column;
    text-align: center;
  }

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

/* --- Nav bar (minimal top bar) --- */
.top-bar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  padding: 0.75rem 1.5rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  background: rgba(10, 10, 15, 0.85);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--border-subtle);
  transition: background 0.3s ease;
}

.top-bar-logo {
  height: 32px;
  width: 32px;
  border-radius: 6px;
  opacity: 0.9;
}

.top-bar nav {
  display: flex;
  gap: 1.5rem;
}

.top-bar nav a {
  font-family: 'Cinzel', serif;
  font-size: 0.8rem;
  color: var(--text-secondary);
  text-decoration: none;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  transition: color 0.2s ease;
}

.top-bar nav a:hover {
  color: var(--gold);
}

@media (max-width: 480px) {
  .top-bar nav { gap: 0.8rem; }
  .top-bar nav a { font-size: 0.7rem; }
}
