/* ============================================
   Project 0090 - Ranking Leaderboard Theme
   Dark + gold/silver/bronze metal gradients
   ============================================ */

/* --- Custom Properties --- */
:root {
  --bg-dark: #0b0b10;
  --bg-surface: #151520;
  --bg-elevated: #1c1c2a;
  --gold: #f0c060;
  --gold-dark: #c89630;
  --gold-light: #fde68a;
  --silver: #b8c0d0;
  --silver-dark: #8890a0;
  --bronze: #c8926a;
  --bronze-dark: #9a6a48;
  --accent-blue: #4f8cff;
  --text-primary: #f0f0f5;
  --text-secondary: #9898a8;
  --text-muted: #606070;
  --border-subtle: rgba(255,255,255,0.06);
  --border-gold: rgba(240,192,96,0.25);
}

/* --- Base --- */
html { scroll-behavior: smooth; }
body {
  background-color: var(--bg-dark);
  color: var(--text-primary);
  font-family: 'Inter', 'PingFang SC', 'Microsoft YaHei', sans-serif;
  overflow-x: hidden;
}

/* --- Navbar --- */
#navbar {
  background: rgba(11,11,16,0.9);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--border-subtle);
  transition: all 0.35s ease;
}
#navbar.scrolled {
  border-bottom-color: var(--border-gold);
}
.nav-link {
  position: relative;
  font-weight: 600;
  font-size: 0.9rem;
  color: var(--text-secondary);
  letter-spacing: 0.03em;
  transition: color 0.25s;
}
.nav-link:hover,
.nav-link.active { color: var(--gold); }
.nav-link::before {
  content: '';
  position: absolute;
  bottom: -4px;
  left: 0;
  width: 100%;
  height: 2px;
  background: linear-gradient(90deg, var(--bronze), var(--gold), var(--silver));
  transform: scaleX(0);
  transition: transform 0.3s ease;
}
.nav-link:hover::before,
.nav-link.active::before { transform: scaleX(1); }

/* --- Hero (Podium Rank) --- */
.hero-section {
  position: relative;
  overflow: hidden;
  background: radial-gradient(ellipse at 50% 0%, rgba(240,192,96,0.06) 0%, transparent 60%),
              var(--bg-dark);
}
.hero-section::before {
  content: '';
  position: absolute;
  inset: 0;
  background:
    linear-gradient(180deg, transparent 40%, rgba(11,11,16,0.4) 100%);
  pointer-events: none;
}
.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(240,192,96,0.1);
  border: 1px solid rgba(240,192,96,0.25);
  border-radius: 6px;
  padding: 6px 16px;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--gold);
}
.hero-title {
  font-size: clamp(2.3rem, 5vw, 4rem);
  font-weight: 900;
  line-height: 1.1;
  letter-spacing: -0.01em;
}
.hero-title .accent {
  background: linear-gradient(135deg, var(--gold-light) 0%, var(--gold) 40%, var(--gold-dark) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}
.hero-subtitle {
  font-size: 1.1rem;
  color: var(--text-secondary);
  max-width: 560px;
  line-height: 1.7;
}

/* Podium */
.podium-row {
  display: flex;
  align-items: flex-end;
  justify-content: center;
  gap: 16px;
  padding: 20px 0;
}
.podium-item {
  text-align: center;
  border-radius: 10px 10px 0 0;
  padding: 24px 20px 16px;
  min-width: 100px;
  position: relative;
  transition: transform 0.3s ease;
}
.podium-item:hover { transform: translateY(-6px); }
.podium-rank-1 {
  background: linear-gradient(180deg, rgba(240,192,96,0.2), rgba(200,150,48,0.08));
  border: 2px solid var(--border-gold);
  height: 180px;
}
.podium-rank-2 {
  background: linear-gradient(180deg, rgba(184,192,208,0.15), rgba(136,144,160,0.05));
  border: 2px solid rgba(184,192,208,0.2);
  height: 140px;
}
.podium-rank-3 {
  background: linear-gradient(180deg, rgba(200,146,106,0.15), rgba(154,106,72,0.05));
  border: 2px solid rgba(200,146,106,0.2);
  height: 110px;
}
.podium-rank {
  font-size: 0.7rem;
  font-weight: 800;
  letter-spacing: 0.15em;
  text-transform: uppercase;
}
.rank-1-label { color: var(--gold); }
.rank-2-label { color: var(--silver); }
.rank-3-label { color: var(--bronze); }
.podium-name {
  font-weight: 800;
  font-size: 1rem;
  margin-top: 4px;
}
.podium-score {
  font-size: 1.5rem;
  font-weight: 900;
  margin-top: 6px;
}
.rank-1-score { color: var(--gold); }
.rank-2-score { color: var(--silver); }
.rank-3-score { color: var(--bronze); }

/* --- Feature Cards (Tier Rankings) --- */
.feature-card {
  background: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  border-radius: 12px;
  padding: 28px 22px;
  transition: all 0.35s cubic-bezier(0.4, 0, 0.2, 1);
  position: relative;
}
.feature-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 16px 48px rgba(0,0,0,0.4);
}
.feature-card:hover { border-color: rgba(255,255,255,0.1); }
.feature-card .tier-badge {
  position: absolute;
  top: 16px;
  right: 16px;
  font-size: 0.7rem;
  font-weight: 900;
  letter-spacing: 0.15em;
  padding: 4px 10px;
  border-radius: 4px;
}
.tier-s { background: linear-gradient(135deg, #f0c060, #c89630); color: #0b0b10; }
.tier-a { background: linear-gradient(135deg, #b8c0d0, #8890a0); color: #0b0b10; }
.tier-b { background: linear-gradient(135deg, #c8926a, #9a6a48); color: #fff; }
.feature-card .icon-box {
  width: 48px; height: 48px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 10px;
  background: rgba(79,140,255,0.1);
  color: var(--accent-blue);
  font-size: 1.3rem;
  margin-bottom: 14px;
}

/* --- Stats (Ranking Badges) --- */
.stats-section {
  background: linear-gradient(180deg, #0f0f18 0%, var(--bg-dark) 100%);
  border-top: 1px solid var(--border-subtle);
  border-bottom: 1px solid var(--border-subtle);
}
.stat-card {
  text-align: center;
  padding: 28px 16px;
  position: relative;
}
.stat-card::after {
  content: '';
  position: absolute;
  right: 0;
  top: 20%;
  height: 60%;
  width: 1px;
  background: linear-gradient(180deg, transparent, var(--border-subtle), transparent);
}
.stat-card:last-child::after { display: none; }
.stat-number {
  font-size: 2.6rem;
  font-weight: 900;
  background: linear-gradient(180deg, var(--gold-light), var(--gold-dark));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  font-variant-numeric: tabular-nums;
}
.stat-badge {
  display: inline-block;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 12px;
  font-size: 1.2rem;
}
.badge-gold { background: rgba(240,192,96,0.15); color: var(--gold); border: 2px solid rgba(240,192,96,0.3); }
.badge-silver { background: rgba(184,192,208,0.12); color: var(--silver); border: 2px solid rgba(184,192,208,0.25); }
.badge-bronze { background: rgba(200,146,106,0.12); color: var(--bronze); border: 2px solid rgba(200,146,106,0.25); }
.badge-blue { background: rgba(79,140,255,0.12); color: var(--accent-blue); border: 2px solid rgba(79,140,255,0.25); }
.stat-label {
  font-size: 0.85rem;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.06em;
  margin-top: 4px;
}

/* --- Testimonials --- */
.testimonial-card {
  background: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  border-radius: 12px;
  padding: 28px 24px;
  transition: all 0.35s ease;
  position: relative;
}
.testimonial-card::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 2px;
  background: linear-gradient(90deg, var(--bronze), var(--gold), var(--silver));
  opacity: 0;
  transition: opacity 0.35s;
}
.testimonial-card:hover::before { opacity: 1; }
.testimonial-card:hover {
  border-color: var(--border-gold);
  box-shadow: 0 8px 40px rgba(0,0,0,0.3);
}
.testimonial-avatar {
  width: 48px; height: 48px;
  border-radius: 8px;
  background: linear-gradient(135deg, var(--gold), var(--bronze));
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 800;
  font-size: 1.1rem;
  color: #0b0b10;
}

/* --- FAQ Accordion --- */
.faq-item {
  border: 1px solid var(--border-subtle);
  border-radius: 10px;
  background: var(--bg-surface);
  overflow: hidden;
  margin-bottom: 10px;
  transition: all 0.3s ease;
}
.faq-item:hover { border-color: rgba(255,255,255,0.08); }
.faq-item summary {
  padding: 16px 20px;
  cursor: pointer;
  font-weight: 700;
  font-size: 1rem;
  list-style: none;
  display: flex;
  justify-content: space-between;
  align-items: center;
  user-select: none;
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after {
  content: '+';
  font-size: 1.3rem;
  font-weight: 300;
  color: var(--gold);
  transition: transform 0.3s ease;
}
.faq-item[open] summary::after {
  content: '\2212';
  transform: rotate(180deg);
}
.faq-item .faq-body {
  padding: 0 20px 18px;
  color: var(--text-secondary);
  line-height: 1.7;
  font-size: 0.925rem;
}

/* --- CTA --- */
.cta-section {
  background: linear-gradient(135deg, #1a1530 0%, #1c1c3a 40%, #0f2040 100%);
  position: relative;
  overflow: hidden;
}
.cta-section::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at 50% 40%, rgba(240,192,96,0.1) 0%, transparent 60%);
  pointer-events: none;
}

/* --- Footer --- */
.footer-link {
  color: #9ca3af;
  transition: color 0.25s;
  font-size: 0.875rem;
}
.footer-link:hover { color: var(--gold); }

/* --- Buttons --- */
.btn-primary {
  background: linear-gradient(135deg, var(--gold-dark), var(--gold), var(--gold-light));
  color: #0b0b10;
  font-weight: 800;
  padding: 14px 36px;
  border-radius: 6px;
  font-size: 1rem;
  letter-spacing: 0.04em;
  transition: all 0.3s ease;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  box-shadow: 0 4px 24px rgba(240,192,96,0.25);
}
.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 36px rgba(240,192,96,0.4);
}
.btn-outline {
  border: 2px solid rgba(255,255,255,0.2);
  color: #fff;
  font-weight: 700;
  padding: 12px 34px;
  border-radius: 6px;
  font-size: 1rem;
  letter-spacing: 0.04em;
  transition: all 0.3s ease;
  display: inline-flex;
  align-items: center;
  gap: 8px;
}
.btn-outline:hover {
  border-color: var(--gold);
  color: var(--gold);
  background: rgba(240,192,96,0.06);
}

/* --- Mobile nav --- */
.mobile-menu {
  display: none;
  position: fixed;
  top: 64px;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(11,11,16,0.97);
  backdrop-filter: blur(20px);
  flex-direction: column;
  padding: 40px 28px;
  gap: 24px;
  z-index: 50;
}
.mobile-menu.open { display: flex; }
.mobile-menu a {
  font-size: 1.2rem;
  font-weight: 700;
  color: #fff;
  letter-spacing: 0.03em;
}

/* --- Page header (inner pages) --- */
.page-header {
  padding: 140px 0 60px;
  text-align: center;
  background: radial-gradient(ellipse at 50% 80%, rgba(240,192,96,0.06) 0%, transparent 60%);
}
.page-header h1 {
  font-size: clamp(2rem, 4vw, 3rem);
  font-weight: 900;
}

/* --- About page --- */
.about-value-card {
  background: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  border-radius: 12px;
  padding: 28px;
  text-align: center;
  transition: all 0.3s ease;
}
.about-value-card:hover {
  border-color: var(--border-gold);
  transform: translateY(-4px);
}
.about-image-placeholder {
  background: linear-gradient(135deg, rgba(240,192,96,0.1), rgba(79,140,255,0.08));
  border: 1px solid var(--border-subtle);
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 320px;
  font-size: 3rem;
  color: var(--gold);
}

/* --- Contact page --- */
.contact-input {
  width: 100%;
  background: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  border-radius: 8px;
  padding: 14px 18px;
  color: var(--text-primary);
  font-size: 0.95rem;
  transition: border-color 0.3s;
  outline: none;
}
.contact-input:focus { border-color: var(--gold); }
.contact-input::placeholder { color: var(--text-muted); }

/* --- Ranking table --- */
.ranking-table {
  width: 100%;
  border-collapse: collapse;
}
.ranking-table th {
  text-align: left;
  padding: 12px 16px;
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--text-muted);
  border-bottom: 1px solid var(--border-subtle);
}
.ranking-table td {
  padding: 14px 16px;
  border-bottom: 1px solid var(--border-subtle);
}
.ranking-table tr:hover td {
  background: rgba(255,255,255,0.02);
}
.rank-dot {
  width: 10px; height: 10px;
  border-radius: 50%;
  display: inline-block;
}
.rank-dot-gold { background: var(--gold); box-shadow: 0 0 10px rgba(240,192,96,0.5); }
.rank-dot-silver { background: var(--silver); box-shadow: 0 0 8px rgba(184,192,208,0.4); }
.rank-dot-bronze { background: var(--bronze); box-shadow: 0 0 8px rgba(200,146,106,0.4); }
