@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700;800;900&display=swap');

:root {
  /* Apple Dark Mode — Layered Surfaces */
  --bg-primary: #000000;
  --bg-secondary: #1c1c1e;
  --bg-tertiary: #2c2c2e;
  --bg-elevated: #1c1c1e;
  --bg-grouped: #2c2c2e;
  
  /* Glassmorphism — visible surfaces, not invisible */
  --surface-glass: rgba(255, 255, 255, 0.08);
  --surface-glass-hover: rgba(255, 255, 255, 0.12);
  --surface-glass-active: rgba(255, 255, 255, 0.16);
  
  --text-primary: #f5f5f7;
  --text-secondary: #a1a1a6;
  --text-tertiary: #6e6e73;
  
  --accent-blue: #0a84ff;
  --accent-green: #30d158;
  --accent-orange: #ff9f0a;
  --accent-red: #ff453a;
  --accent-purple: #bf5af2;
  --accent-cyan: #64d2ff;
  --accent-indigo: #5e5ce6;
  
  --gold: #ffd60a;
  --silver: #98989d;
  --bronze: #ac8e68;
  
  --separator: rgba(255, 255, 255, 0.1);
  --separator-opaque: #48484a;
  
  --shadow-sm: 0 1px 3px rgba(0,0,0,0.3);
  --shadow-md: 0 4px 16px rgba(0,0,0,0.4);
  --shadow-lg: 0 8px 32px rgba(0,0,0,0.5);
  --shadow-xl: 0 16px 64px rgba(0,0,0,0.6);
  
  --radius-sm: 8px;
  --radius-md: 12px;
  --radius-lg: 16px;
  --radius-xl: 20px;
  --radius-2xl: 28px;
  
  --font-system: 'Inter', -apple-system, BlinkMacSystemFont, 'SF Pro Display', 'Segoe UI', Roboto, sans-serif;
  
  --transition-fast: 200ms cubic-bezier(0.25, 0.1, 0.25, 1);
  --transition-normal: 350ms cubic-bezier(0.25, 0.1, 0.25, 1);
  --transition-spring: 500ms cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

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

html {
  scroll-behavior: smooth;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
}

body {
  background-color: var(--bg-primary);
  color: var(--text-primary);
  font-family: var(--font-system);
  font-size: 17px;
  line-height: 1.47;
  letter-spacing: -0.022em;
  overflow-x: hidden;
}

/* Custom scrollbar — minimal Apple style */
::-webkit-scrollbar { width: 6px; }
::-webkit-scrollbar-track { background: transparent; }
::-webkit-scrollbar-thumb { background: rgba(255,255,255,0.15); border-radius: 3px; }
::-webkit-scrollbar-thumb:hover { background: rgba(255,255,255,0.25); }

/* ==================== Animations ==================== */
@keyframes fadeInUp {
  from { opacity: 0; transform: translateY(24px); }
  to { opacity: 1; transform: translateY(0); }
}

@keyframes fadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

@keyframes scaleIn {
  from { opacity: 0; transform: scale(0.95); }
  to { opacity: 1; transform: scale(1); }
}

@keyframes slideDown {
  from { opacity: 0; transform: translateY(-10px); }
  to { opacity: 1; transform: translateY(0); }
}

@keyframes shimmer {
  0% { background-position: -200% 0; }
  100% { background-position: 200% 0; }
}

@keyframes pulseSubtle {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.7; }
}

@keyframes gradientFlow {
  0% { background-position: 0% 50%; }
  50% { background-position: 100% 50%; }
  100% { background-position: 0% 50%; }
}

@keyframes countUp {
  from { opacity: 0; transform: translateY(8px); }
  to { opacity: 1; transform: translateY(0); }
}

@keyframes rankEntrance {
  from { opacity: 0; transform: translateX(-12px); }
  to { opacity: 1; transform: translateX(0); }
}

@keyframes glowPulse {
  0%, 100% { box-shadow: 0 0 20px rgba(10, 132, 255, 0.15); }
  50% { box-shadow: 0 0 40px rgba(10, 132, 255, 0.3); }
}

@keyframes floatParticle {
  0%, 100% { transform: translate(0, 0) scale(1); opacity: 0.3; }
  25% { transform: translate(10px, -20px) scale(1.1); opacity: 0.5; }
  50% { transform: translate(-5px, -40px) scale(1); opacity: 0.3; }
  75% { transform: translate(-15px, -20px) scale(0.9); opacity: 0.5; }
}

/* ==================== Typography ==================== */
h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-system);
  font-weight: 700;
  letter-spacing: -0.03em;
  line-height: 1.1;
}

a {
  color: var(--accent-blue);
  text-decoration: none;
  transition: color var(--transition-fast);
}
a:hover { color: var(--accent-cyan); }

.container {
  max-width: 980px;
  margin: 0 auto;
  padding: 0 22px;
}

.container--wide {
  max-width: 1200px;
}

/* ==================== Navigation ==================== */
.navbar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  height: 52px;
  background: rgba(29, 29, 31, 0.72);
  backdrop-filter: saturate(180%) blur(20px);
  -webkit-backdrop-filter: saturate(180%) blur(20px);
  border-bottom: 1px solid var(--separator);
  z-index: 1000;
  display: flex;
  align-items: center;
  transition: background var(--transition-normal);
}

.navbar .container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  width: 100%;
}

.logo {
  font-size: 21px;
  font-weight: 800;
  color: var(--text-primary);
  letter-spacing: -0.02em;
  display: flex;
  align-items: center;
  gap: 2px;
}
.logo span {
  background: linear-gradient(135deg, var(--accent-blue), var(--accent-purple));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.nav-links {
  display: flex;
  gap: 28px;
  align-items: center;
}
.nav-links a {
  color: var(--text-secondary);
  font-size: 14px;
  font-weight: 500;
  transition: color var(--transition-fast);
}
.nav-links a:hover { color: var(--text-primary); }

.mobile-menu-btn {
  display: none;
  background: none;
  border: none;
  color: var(--text-primary);
  font-size: 18px;
  cursor: pointer;
  padding: 8px;
}

/* ==================== Buttons ==================== */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 11px 22px;
  border-radius: var(--radius-2xl);
  font-family: var(--font-system);
  font-size: 15px;
  font-weight: 600;
  letter-spacing: -0.01em;
  cursor: pointer;
  border: none;
  transition: all var(--transition-normal);
  white-space: nowrap;
  user-select: none;
  -webkit-user-select: none;
}

.btn-primary {
  background: var(--accent-blue);
  color: #fff;
}
.btn-primary:hover {
  background: #409cff;
  transform: scale(1.02);
  box-shadow: 0 4px 16px rgba(10, 132, 255, 0.35);
}
.btn-primary:active {
  transform: scale(0.98);
}

.btn-lg {
  padding: 16px 32px;
  font-size: 17px;
  border-radius: var(--radius-2xl);
}

.btn-outline {
  background: transparent;
  border: 1.5px solid var(--accent-blue);
  color: var(--accent-blue);
}
.btn-outline:hover {
  background: rgba(10, 132, 255, 0.1);
  transform: scale(1.02);
}
.btn-outline:active {
  transform: scale(0.98);
}

.btn-sm {
  padding: 7px 14px;
  font-size: 13px;
  border-radius: var(--radius-lg);
}

.btn-ghost {
  background: var(--surface-glass);
  color: var(--text-primary);
  border: 1px solid var(--separator);
}
.btn-ghost:hover {
  background: var(--surface-glass-hover);
}

/* ==================== Hero Section ==================== */
.hero {
  padding: 140px 0 80px;
  position: relative;
  text-align: center;
  min-height: 85vh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  overflow: hidden;
}

#particle-canvas {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 0;
  pointer-events: none;
  opacity: 0.4;
}

/* Subtle gradient orbs behind hero */
.hero::before {
  content: '';
  position: absolute;
  top: -20%;
  left: 50%;
  transform: translateX(-50%);
  width: 800px;
  height: 600px;
  background: radial-gradient(ellipse, rgba(10, 132, 255, 0.12) 0%, transparent 70%);
  pointer-events: none;
  z-index: 0;
}

.hero::after {
  content: '';
  position: absolute;
  top: 10%;
  right: -10%;
  width: 500px;
  height: 500px;
  background: radial-gradient(ellipse, rgba(191, 90, 242, 0.08) 0%, transparent 70%);
  pointer-events: none;
  z-index: 0;
}

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

.hero-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--surface-glass);
  border: 1px solid var(--separator);
  padding: 6px 16px;
  border-radius: var(--radius-2xl);
  font-size: 14px;
  font-weight: 500;
  color: var(--text-secondary);
  margin-bottom: 24px;
  animation: fadeInUp 0.6s ease both;
}
.hero-eyebrow .dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--accent-green);
  animation: pulseSubtle 2s ease infinite;
}

.hero-title {
  font-size: clamp(48px, 8vw, 80px);
  font-weight: 900;
  letter-spacing: -0.04em;
  line-height: 1.05;
  margin-bottom: 20px;
  animation: fadeInUp 0.6s ease 0.1s both;
}
.hero-title .gradient-text {
  background: linear-gradient(135deg, var(--accent-blue) 0%, var(--accent-purple) 50%, var(--accent-cyan) 100%);
  background-size: 200% 200%;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  animation: gradientFlow 6s ease infinite;
}

.hero-subtitle {
  font-size: clamp(17px, 2.5vw, 21px);
  color: var(--text-secondary);
  margin-bottom: 40px;
  max-width: 600px;
  margin-left: auto;
  margin-right: auto;
  font-weight: 400;
  line-height: 1.5;
  animation: fadeInUp 0.6s ease 0.2s both;
}

.hero-cta {
  display: flex;
  gap: 16px;
  justify-content: center;
  flex-wrap: wrap;
  margin-bottom: 64px;
  animation: fadeInUp 0.6s ease 0.3s both;
}

/* ==================== Stats Bar ==================== */
.stats-bar {
  display: flex;
  justify-content: center;
  gap: 1px;
  background: var(--bg-secondary);
  border: 1px solid var(--separator);
  border-radius: var(--radius-xl);
  overflow: hidden;
  max-width: 640px;
  margin: 0 auto;
  animation: fadeInUp 0.6s ease 0.4s both;
}

.stat-item {
  flex: 1;
  background: var(--bg-secondary);
  padding: 24px 20px;
  text-align: center;
  transition: background var(--transition-fast);
}
.stat-item:hover {
  background: var(--bg-tertiary);
}

.stat-value {
  font-size: 28px;
  font-weight: 800;
  letter-spacing: -0.03em;
  color: var(--text-primary);
  margin-bottom: 4px;
}
.stat-label {
  font-size: 12px;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--text-tertiary);
}

/* ==================== Leaderboard ==================== */
.leaderboard {
  padding: 80px 0;
}

.section-header {
  text-align: center;
  margin-bottom: 48px;
}

.section-title {
  font-size: 40px;
  font-weight: 800;
  letter-spacing: -0.03em;
  margin-bottom: 12px;
}

.section-subtitle {
  font-size: 17px;
  color: var(--text-secondary);
  font-weight: 400;
}

/* Filters */
.filters {
  display: inline-flex;
  justify-content: center;
  gap: 4px;
  margin-bottom: 32px;
  background: var(--bg-secondary);
  border-radius: var(--radius-lg);
  padding: 4px;
  margin-left: auto;
  margin-right: auto;
}

.filters-wrapper {
  text-align: center;
  margin-bottom: 32px;
}

.filter-btn {
  background: transparent;
  border: none;
  color: var(--text-secondary);
  padding: 8px 18px;
  border-radius: var(--radius-sm);
  cursor: pointer;
  font-family: var(--font-system);
  font-size: 14px;
  font-weight: 500;
  transition: all var(--transition-fast);
}
.filter-btn.active {
  background: var(--surface-glass-active);
  color: var(--text-primary);
}
.filter-btn:hover:not(.active) {
  color: var(--text-primary);
}

/* Rankings List */
.rankings-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.ranking-card {
  background: var(--bg-secondary);
  border: 1px solid var(--separator);
  border-radius: var(--radius-lg);
  padding: 16px 20px;
  display: flex;
  align-items: center;
  gap: 16px;
  transition: all var(--transition-normal);
  position: relative;
  overflow: hidden;
  animation: rankEntrance 0.4s ease both;
}

.ranking-card:nth-child(1) { animation-delay: 0s; }
.ranking-card:nth-child(2) { animation-delay: 0.05s; }
.ranking-card:nth-child(3) { animation-delay: 0.1s; }
.ranking-card:nth-child(4) { animation-delay: 0.15s; }
.ranking-card:nth-child(5) { animation-delay: 0.2s; }

.ranking-card:hover {
  background: var(--bg-tertiary);
  border-color: var(--separator-opaque);
}

/* Top 3 special styling */
.ranking-card.rank-1 {
  background: linear-gradient(135deg, rgba(255, 214, 10, 0.06) 0%, rgba(255, 214, 10, 0.02) 100%);
  border-color: rgba(255, 214, 10, 0.15);
}
.ranking-card.rank-1:hover {
  border-color: rgba(255, 214, 10, 0.3);
  box-shadow: 0 4px 24px rgba(255, 214, 10, 0.08);
}

.ranking-card.rank-2 {
  background: linear-gradient(135deg, rgba(152, 152, 157, 0.06) 0%, rgba(152, 152, 157, 0.02) 100%);
  border-color: rgba(152, 152, 157, 0.15);
}

.ranking-card.rank-3 {
  background: linear-gradient(135deg, rgba(172, 142, 104, 0.06) 0%, rgba(172, 142, 104, 0.02) 100%);
  border-color: rgba(172, 142, 104, 0.15);
}

.rank-number {
  font-size: 18px;
  font-weight: 800;
  min-width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: var(--radius-sm);
  background: var(--surface-glass);
  color: var(--text-secondary);
  letter-spacing: -0.02em;
  flex-shrink: 0;
}

.ranking-card.rank-1 .rank-number {
  background: linear-gradient(135deg, #ffd60a, #ffb800);
  color: #000;
}
.ranking-card.rank-2 .rank-number {
  background: linear-gradient(135deg, #b0b0b5, #98989d);
  color: #000;
}
.ranking-card.rank-3 .rank-number {
  background: linear-gradient(135deg, #d4a574, #ac8e68);
  color: #000;
}

.ranking-icon {
  width: 44px;
  height: 44px;
  border-radius: var(--radius-md);
  background: var(--bg-tertiary);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 18px;
  color: var(--text-secondary);
  flex-shrink: 0;
  overflow: hidden;
}
.ranking-icon img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.ranking-info {
  flex-grow: 1;
  min-width: 0;
}

.ranking-title {
  font-size: 16px;
  font-weight: 600;
  letter-spacing: -0.01em;
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}
.ranking-title a {
  color: var(--text-primary);
  transition: color var(--transition-fast);
}
.ranking-title a:hover {
  color: var(--accent-blue);
}

.type-badge {
  font-size: 11px;
  padding: 2px 8px;
  border-radius: var(--radius-sm);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}
.type-website {
  background: rgba(10, 132, 255, 0.1);
  color: var(--accent-blue);
}
.type-twitter {
  background: rgba(100, 210, 255, 0.1);
  color: var(--accent-cyan);
}
.type-telegram {
  background: rgba(48, 209, 88, 0.1);
  color: var(--accent-green);
}

.ranking-url {
  color: var(--text-tertiary);
  font-size: 14px;
  margin-top: 2px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.ranking-bid {
  text-align: right;
  min-width: 100px;
  flex-shrink: 0;
}
.bid-amount {
  font-size: 20px;
  font-weight: 800;
  letter-spacing: -0.02em;
  color: var(--accent-green);
}
.ranking-card.rank-1 .bid-amount {
  color: var(--gold);
}
.bid-label {
  font-size: 11px;
  color: var(--text-tertiary);
  text-transform: uppercase;
  letter-spacing: 0.04em;
  font-weight: 500;
}

.ranking-card .btn-outline {
  flex-shrink: 0;
}

/* ==================== How It Works ==================== */
.steps-section {
  padding: 100px 0;
}

.steps-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  margin-top: 48px;
}

.step-card {
  background: var(--bg-secondary);
  border: 1px solid var(--separator);
  padding: 40px 28px;
  border-radius: var(--radius-xl);
  text-align: center;
  transition: all var(--transition-normal);
}
.step-card:hover {
  background: var(--bg-tertiary);
}

.step-number {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: var(--accent-blue);
  color: #fff;
  font-size: 14px;
  font-weight: 700;
  margin-bottom: 20px;
}

.step-icon {
  font-size: 36px;
  margin-bottom: 16px;
  display: block;
}
.step-icon i {
  background: linear-gradient(135deg, var(--accent-blue), var(--accent-purple));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.step-card h3 {
  font-size: 20px;
  font-weight: 700;
  margin-bottom: 8px;
  letter-spacing: -0.02em;
}
.step-card p {
  font-size: 15px;
  color: var(--text-secondary);
  line-height: 1.5;
}

/* ==================== FAQ ==================== */
.faq-section {
  padding: 80px 0;
}

.faq-list {
  max-width: 680px;
  margin: 40px auto 0;
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.faq-item {
  background: var(--bg-secondary);
  border: 1px solid var(--separator);
  border-radius: var(--radius-md);
  overflow: hidden;
}

.faq-question {
  width: 100%;
  background: none;
  border: none;
  color: var(--text-primary);
  padding: 18px 20px;
  font-family: var(--font-system);
  font-size: 16px;
  font-weight: 600;
  text-align: left;
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
  transition: background var(--transition-fast);
}
.faq-question:hover {
  background: var(--surface-glass-hover);
}
.faq-question i {
  color: var(--text-tertiary);
  transition: transform var(--transition-normal);
  font-size: 14px;
}
.faq-item.active .faq-question i {
  transform: rotate(45deg);
}

.faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height var(--transition-normal), padding var(--transition-normal);
}
.faq-item.active .faq-answer {
  max-height: 400px;
  padding: 0 20px 18px;
}
.faq-answer p {
  font-size: 15px;
  color: var(--text-secondary);
  line-height: 1.6;
}

/* ==================== Modal ==================== */
.modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.6);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  z-index: 2000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  opacity: 0;
  pointer-events: none;
  transition: opacity var(--transition-normal);
}
.modal-overlay.active {
  opacity: 1;
  pointer-events: all;
}

.modal-content {
  background: var(--bg-secondary);
  border: 1px solid var(--separator);
  border-radius: var(--radius-xl);
  width: 100%;
  max-width: 480px;
  padding: 32px;
  position: relative;
  transform: scale(0.95) translateY(10px);
  transition: transform var(--transition-spring);
  box-shadow: var(--shadow-xl);
  max-height: 90vh;
  overflow-y: auto;
}
.modal-overlay.active .modal-content {
  transform: scale(1) translateY(0);
}

.modal-close {
  position: absolute;
  top: 16px;
  right: 16px;
  width: 30px;
  height: 30px;
  border-radius: 50%;
  background: var(--surface-glass);
  border: none;
  color: var(--text-secondary);
  font-size: 14px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all var(--transition-fast);
}
.modal-close:hover {
  background: var(--surface-glass-active);
  color: var(--text-primary);
}

.modal-title {
  font-size: 24px;
  font-weight: 800;
  margin-bottom: 24px;
  letter-spacing: -0.03em;
}

/* ==================== Form Styles ==================== */
.form-group {
  margin-bottom: 18px;
}

.form-label {
  display: block;
  margin-bottom: 6px;
  font-size: 14px;
  font-weight: 500;
  color: var(--text-secondary);
}

.form-control {
  width: 100%;
  background: var(--bg-primary);
  border: 1px solid var(--separator-opaque);
  color: var(--text-primary);
  padding: 11px 14px;
  border-radius: var(--radius-sm);
  font-family: var(--font-system);
  font-size: 16px;
  transition: all var(--transition-fast);
  -webkit-appearance: none;
}
.form-control::placeholder {
  color: var(--text-tertiary);
}
.form-control:focus {
  outline: none;
  border-color: var(--accent-blue);
  box-shadow: 0 0 0 3px rgba(10, 132, 255, 0.2);
}

select.form-control {
  cursor: pointer;
}

.form-hint {
  font-size: 13px;
  color: var(--text-tertiary);
  margin-top: 4px;
}

/* ==================== Toast Notifications ==================== */
.toast-container {
  position: fixed;
  top: 64px;
  right: 20px;
  z-index: 3000;
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.toast {
  background: var(--bg-secondary);
  border: 1px solid var(--separator);
  padding: 14px 18px;
  border-radius: var(--radius-md);
  color: var(--text-primary);
  font-size: 14px;
  font-weight: 500;
  backdrop-filter: blur(10px);
  transform: translateX(120%);
  transition: transform var(--transition-spring);
  box-shadow: var(--shadow-lg);
  display: flex;
  align-items: center;
  gap: 10px;
  max-width: 360px;
}
.toast.show {
  transform: translateX(0);
}
.toast.success::before {
  content: '✓';
  display: flex;
  align-items: center;
  justify-content: center;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: var(--accent-green);
  color: #000;
  font-size: 12px;
  font-weight: 700;
  flex-shrink: 0;
}
.toast.error::before {
  content: '✕';
  display: flex;
  align-items: center;
  justify-content: center;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: var(--accent-red);
  color: #fff;
  font-size: 12px;
  font-weight: 700;
  flex-shrink: 0;
}

/* ==================== Cursor Glow ==================== */
.cursor-glow {
  position: fixed;
  width: 400px;
  height: 400px;
  background: radial-gradient(circle, rgba(10, 132, 255, 0.04) 0%, transparent 70%);
  border-radius: 50%;
  pointer-events: none;
  transform: translate(-50%, -50%);
  z-index: -1;
  transition: opacity 0.3s ease;
}

/* ==================== Scroll Reveal ==================== */
.reveal {
  opacity: 0;
  transform: translateY(20px);
  transition: all 0.7s cubic-bezier(0.25, 0.1, 0.25, 1);
}
.reveal.active {
  opacity: 1;
  transform: translateY(0);
}

/* ==================== Skeleton Loading ==================== */
.skeleton {
  background: linear-gradient(90deg, var(--bg-tertiary) 25%, rgba(255,255,255,0.06) 50%, var(--bg-tertiary) 75%);
  background-size: 200% 100%;
  animation: shimmer 1.5s infinite;
  border-radius: var(--radius-sm);
}

/* ==================== Footer ==================== */
footer {
  padding: 40px 0;
  border-top: 1px solid var(--separator);
  margin-top: 80px;
  text-align: center;
}

.footer-content {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 16px;
}

.footer-links {
  display: flex;
  gap: 24px;
}
.footer-links a {
  color: var(--text-tertiary);
  font-size: 13px;
  font-weight: 500;
  transition: color var(--transition-fast);
}
.footer-links a:hover { color: var(--text-primary); }

.footer-copyright {
  font-size: 13px;
  color: var(--text-tertiary);
}

/* ==================== Keyboard Shortcut Badge ==================== */
.kbd {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 2px 6px;
  background: var(--surface-glass);
  border: 1px solid var(--separator);
  border-radius: 4px;
  font-family: var(--font-system);
  font-size: 11px;
  font-weight: 500;
  color: var(--text-tertiary);
  line-height: 1;
}

/* ==================== Live indicator ==================== */
.live-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 12px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--accent-green);
}
.live-badge::before {
  content: '';
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--accent-green);
  animation: pulseSubtle 1.5s ease infinite;
}

/* ==================== Load More ==================== */
.load-more-wrapper {
  text-align: center;
  margin-top: 32px;
}

/* ==================== Accessibility — Reduced Motion ==================== */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
  html { scroll-behavior: auto; }
  .reveal { opacity: 1; transform: none; }
  .cursor-glow { display: none; }
}

/* ==================== Focus Visible (Keyboard Nav) ==================== */
:focus-visible {
  outline: 2px solid var(--accent-blue);
  outline-offset: 2px;
  border-radius: 4px;
}

button:focus-visible,
a:focus-visible,
input:focus-visible,
select:focus-visible {
  outline: 2px solid var(--accent-blue);
  outline-offset: 2px;
}

/* Remove outline for mouse clicks */
:focus:not(:focus-visible) {
  outline: none;
}

/* ==================== Hover only on pointer devices ==================== */
@media (hover: hover) and (pointer: fine) {
  .ranking-card:hover {
    background: var(--bg-tertiary);
    border-color: var(--separator-opaque);
    transform: translateY(-1px);
    box-shadow: var(--shadow-md);
  }
  .step-card:hover {
    background: var(--bg-tertiary);
    transform: translateY(-4px);
    box-shadow: var(--shadow-lg);
  }
  .stat-item:hover {
    background: var(--bg-tertiary);
  }
}

/* Disable transform hovers on touch */
@media (hover: none) {
  .ranking-card:hover,
  .step-card:hover,
  .btn-primary:hover,
  .btn-outline:hover {
    transform: none;
  }
  .cursor-glow { display: none; }
}

/* ==================== Tablet (769–1024px) ==================== */
@media (max-width: 1024px) and (min-width: 769px) {
  .hero { padding: 130px 0 70px; min-height: 70vh; }
  .hero-title { font-size: 56px; }
  
  .steps-grid {
    grid-template-columns: repeat(3, 1fr);
    gap: 14px;
  }
  .step-card { padding: 28px 20px; }
  .step-card h3 { font-size: 18px; }
  
  .ranking-card { padding: 14px 16px; gap: 12px; }
  .ranking-icon { width: 36px; height: 36px; font-size: 16px; }
  .bid-amount { font-size: 18px; }
  
  .section-title { font-size: 34px; }
  
  .kbd { display: none; }
}

/* ==================== Mobile (≤768px) ==================== */
@media (max-width: 768px) {
  .hero { padding: 120px 0 60px; min-height: auto; }
  .hero-title { font-size: 40px; }
  
  .stats-bar {
    flex-direction: column;
    gap: 1px;
  }
  .stat-value { font-size: 24px; }
  
  .nav-links {
    display: none;
    position: absolute;
    top: 52px;
    left: 0;
    width: 100%;
    background: rgba(0, 0, 0, 0.95);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    flex-direction: column;
    padding: 16px;
    gap: 4px;
    border-bottom: 1px solid var(--separator);
  }
  .nav-links.active { display: flex; }
  .nav-links a {
    padding: 12px 16px;
    border-radius: var(--radius-sm);
    width: 100%;
  }
  .nav-links a:hover { background: var(--surface-glass); }
  .mobile-menu-btn { display: block; }
  
  /* Hide keyboard shortcut badge on mobile */
  .kbd { display: none; }
  
  /* Ranking cards — proper mobile layout */
  .ranking-card {
    flex-wrap: wrap;
    gap: 12px;
    padding: 16px;
  }
  .ranking-info {
    flex: 1 1 calc(100% - 60px);
    min-width: 0;
  }
  .ranking-bid {
    text-align: left;
    min-width: auto;
    flex: 0 0 auto;
  }
  .ranking-icon { display: none; }
  .ranking-card .btn-outline {
    width: 100%;
    margin-top: 4px;
    flex: 0 0 100%;
  }
  
  .steps-grid {
    grid-template-columns: 1fr;
    gap: 12px;
  }
  .step-card { padding: 28px 20px; }
  
  .section-title { font-size: 28px; }
  
  .modal-content { 
    padding: 24px;
    max-height: 85vh;
    margin: auto 12px;
  }
  
  /* Toast — position below navbar, full width */
  .toast-container {
    top: 60px;
    right: 12px;
    left: 12px;
  }
  .toast {
    max-width: 100%;
  }
  
  /* Filters — scrollable on small screens */
  .filters-wrapper {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
  }
  .filters-wrapper::-webkit-scrollbar { display: none; }
  .filters {
    white-space: nowrap;
  }
  
  .footer-links { flex-wrap: wrap; justify-content: center; gap: 16px; }
}

/* ==================== Small Mobile (≤480px) ==================== */
@media (max-width: 480px) {
  .container { padding: 0 16px; }
  .hero-title { font-size: 32px; }
  .hero-subtitle { font-size: 16px; }
  .hero-cta { gap: 10px; }
  .hero-cta .btn-lg { 
    width: 100%; 
    padding: 14px 24px;
    font-size: 16px;
  }
  .ranking-card { padding: 14px 14px; }
  .bid-amount { font-size: 18px; }
  .rank-number { min-width: 36px; height: 36px; font-size: 16px; }
  .section-title { font-size: 24px; }
  .stat-value { font-size: 22px; }
  .stat-label { font-size: 11px; }
}

/* ==================== Ultra Small (≤320px) ==================== */
@media (max-width: 320px) {
  body { font-size: 15px; }
  .container { padding: 0 12px; }
  .hero-title { font-size: 28px; }
  .hero { padding: 100px 0 40px; }
  .ranking-card { padding: 12px; gap: 8px; }
  .rank-number { min-width: 32px; height: 32px; font-size: 14px; }
  .modal-content { padding: 20px 16px; }
}
