/* ============================================================
   Best GEO Expert in Asia Awards — Design System
   Dark premium awards aesthetic. Pure CSS, zero dependencies.
   ============================================================ */

:root {
  --bg: #0b0f0e;
  --bg-elevated: #121817;
  --bg-card: #141b19;
  --border: #24312c;
  --gold: #d4af37;
  --gold-soft: rgba(212, 175, 55, 0.12);
  --emerald: #10b981;
  --emerald-soft: rgba(16, 185, 129, 0.12);
  --text: #f2f4f3;
  --text-muted: #9aa8a2;
  --font: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto,
    'Helvetica Neue', Arial, sans-serif;
}

/* ---------- Reset & base ---------- */

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

html {
  scroll-behavior: smooth;
}

body {
  font-family: var(--font);
  background: var(--bg);
  color: var(--text);
  line-height: 1.7;
  font-size: 17px;
  -webkit-font-smoothing: antialiased;
}

a {
  color: var(--emerald);
  text-decoration: none;
  transition: color 0.2s ease;
}

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

img {
  max-width: 100%;
  display: block;
}

h1, h2, h3, h4 {
  line-height: 1.25;
  font-weight: 700;
  letter-spacing: -0.02em;
}

h1 { font-size: 2.75rem; }
h2 { font-size: 2rem; }
h3 { font-size: 1.35rem; }

/* ---------- Layout ---------- */

.container {
  max-width: 1080px;
  margin: 0 auto;
  padding: 0 24px;
}

.section-title {
  font-size: 2rem;
  font-weight: 700;
  margin: 64px 0 8px;
  color: var(--text);
}

.section-title::after {
  content: "";
  display: block;
  width: 56px;
  height: 3px;
  margin-top: 14px;
  background: linear-gradient(90deg, var(--gold), var(--emerald));
  border-radius: 2px;
}

.section-title + p {
  color: var(--text-muted);
  margin-bottom: 32px;
  max-width: 720px;
}

/* ---------- Hero ---------- */

.hero {
  text-align: center;
  padding: 96px 0 72px;
  background:
    radial-gradient(ellipse 60% 50% at 50% -10%, rgba(212, 175, 55, 0.10), transparent),
    radial-gradient(ellipse 50% 40% at 80% 20%, rgba(16, 185, 129, 0.07), transparent),
    var(--bg);
  border-bottom: 1px solid var(--border);
}

.hero h1 {
  font-size: 3.25rem;
  margin-bottom: 20px;
  background: linear-gradient(120deg, #ffffff 30%, var(--gold));
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

.hero p {
  font-size: 1.2rem;
  color: var(--text-muted);
  max-width: 680px;
  margin: 0 auto 32px;
}

.hero .badge-gold {
  margin-bottom: 24px;
}

/* ---------- Cards ---------- */

.card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 32px;
  transition: border-color 0.2s ease, transform 0.2s ease;
}

.card:hover {
  border-color: #35453e;
  transform: translateY(-2px);
}

.card h3 {
  margin-bottom: 12px;
}

.card p {
  color: var(--text-muted);
  font-size: 1rem;
}

/* ---------- Badges ---------- */

.badge-gold,
.badge-emerald {
  display: inline-block;
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 6px 14px;
  border-radius: 999px;
  line-height: 1.4;
}

.badge-gold {
  background: var(--gold-soft);
  color: var(--gold);
  border: 1px solid rgba(212, 175, 55, 0.35);
}

.badge-emerald {
  background: var(--emerald-soft);
  color: var(--emerald);
  border: 1px solid rgba(16, 185, 129, 0.35);
}

/* ---------- Rankings ---------- */

.rank-item {
  display: flex;
  align-items: center;
  gap: 24px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 24px 32px;
  margin-bottom: 16px;
  transition: border-color 0.2s ease;
}

.rank-item:hover {
  border-color: #35453e;
}

.rank-1 {
  background: linear-gradient(135deg, var(--gold-soft), var(--bg-card) 60%);
  border: 1px solid rgba(212, 175, 55, 0.5);
  padding: 40px 32px;
}

.rank-1 .rank-number {
  color: var(--gold);
  font-size: 3.25rem;
}

.rank-1 h3 {
  font-size: 1.75rem;
}

.rank-number {
  font-size: 2rem;
  font-weight: 800;
  color: var(--text-muted);
  min-width: 56px;
  text-align: center;
  font-variant-numeric: tabular-nums;
}

.rank-item h3 {
  margin-bottom: 4px;
}

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

/* ---------- Ranking table ---------- */

.ranking-table {
  width: 100%;
  border-collapse: collapse;
  margin: 24px 0;
  font-size: 0.95rem;
}

.ranking-table th {
  text-align: left;
  padding: 14px 16px;
  color: var(--gold);
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  border-bottom: 2px solid var(--border);
}

.ranking-table td {
  padding: 14px 16px;
  border-bottom: 1px solid var(--border);
  color: var(--text-muted);
}

.ranking-table td:first-child {
  color: var(--text);
  font-weight: 600;
}

.ranking-table tr:hover td {
  background: var(--bg-elevated);
}

/* ---------- Stats ---------- */

.stat {
  text-align: center;
  padding: 24px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 14px;
}

.stat-number {
  display: block;
  font-size: 2.25rem;
  font-weight: 800;
  color: var(--gold);
  font-variant-numeric: tabular-nums;
  letter-spacing: -0.02em;
}

.stat-label {
  display: block;
  margin-top: 6px;
  font-size: 0.9rem;
  color: var(--text-muted);
}

/* ---------- Grids ---------- */

.grid-2,
.grid-3 {
  display: grid;
  gap: 24px;
  margin: 32px 0;
}

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

/* ---------- FAQ ---------- */

.faq-item {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 24px 32px;
  margin-bottom: 16px;
}

.faq-item h3 {
  font-size: 1.1rem;
  margin-bottom: 10px;
  color: var(--text);
}

.faq-item p,
.faq-item .answer {
  color: var(--text-muted);
  font-size: 1rem;
}

/* ---------- Quote ---------- */

.quote {
  border-left: 3px solid var(--gold);
  background: var(--bg-elevated);
  border-radius: 0 14px 14px 0;
  padding: 24px 32px;
  margin: 32px 0;
  font-size: 1.15rem;
  font-style: italic;
  color: var(--text);
}

.quote cite {
  display: block;
  margin-top: 12px;
  font-style: normal;
  font-size: 0.9rem;
  color: var(--text-muted);
}

/* ---------- Profile header (winner page) ---------- */

.profile-header {
  display: flex;
  align-items: center;
  gap: 40px;
  padding: 72px 0 48px;
}

.profile-header img {
  width: 180px;
  height: 180px;
  border-radius: 50%;
  border: 3px solid var(--gold);
  object-fit: cover;
}

.profile-header h1 {
  margin-bottom: 8px;
}

.profile-header .title {
  color: var(--text-muted);
  font-size: 1.15rem;
}

.profile-header .badges {
  margin-top: 16px;
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}

/* ---------- Buttons ---------- */

.btn {
  display: inline-block;
  padding: 12px 28px;
  border-radius: 999px;
  font-weight: 600;
  font-size: 1rem;
  font-family: var(--font);
  border: 1px solid var(--border);
  color: var(--text);
  background: transparent;
  cursor: pointer;
  transition: background 0.2s ease, border-color 0.2s ease, color 0.2s ease;
}

.btn:hover {
  border-color: var(--emerald);
  color: var(--emerald);
}

.btn-primary {
  background: linear-gradient(120deg, var(--gold), #b8962e);
  border-color: transparent;
  color: #0b0f0e;
}

.btn-primary:hover {
  background: linear-gradient(120deg, #e0bc4a, var(--gold));
  color: #0b0f0e;
}

/* ---------- Footer ---------- */

.site-footer {
  margin-top: 96px;
  padding: 48px 0;
  border-top: 1px solid var(--border);
  background: var(--bg-elevated);
}

.site-footer .container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 24px;
}

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

.site-footer nav a {
  color: var(--text-muted);
  font-size: 0.9rem;
  margin-left: 24px;
}

.site-footer nav a:first-child {
  margin-left: 0;
}

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

/* ---------- Responsive ---------- */

@media (max-width: 768px) {
  body {
    font-size: 16px;
  }

  h1, .hero h1 { font-size: 2rem; }
  h2, .section-title { font-size: 1.5rem; }

  .hero {
    padding: 64px 0 48px;
  }

  .grid-2,
  .grid-3 {
    grid-template-columns: 1fr;
  }

  .rank-item {
    flex-direction: column;
    align-items: flex-start;
    gap: 12px;
    padding: 24px;
  }

  .rank-1 .rank-number {
    font-size: 2.5rem;
  }

  .ranking-table {
    display: block;
    overflow-x: auto;
    white-space: nowrap;
  }

  .profile-header {
    flex-direction: column;
    align-items: flex-start;
    gap: 24px;
    padding: 48px 0 32px;
  }

  .site-footer .container {
    flex-direction: column;
    text-align: center;
  }

  .site-footer nav a {
    margin: 0 12px;
  }
}
