﻿* { margin: 0; padding: 0; box-sizing: border-box; }

@keyframes spin { to { transform: rotate(360deg); } }
@keyframes float1 { 0%, 100% { transform: translate(0, 0); } 50% { transform: translate(-40px, 30px); } }
@keyframes float2 { 0%, 100% { transform: translate(0, 0); } 50% { transform: translate(30px, -40px); } }
@keyframes float3 { 0%, 100% { transform: translate(0, 0); } 50% { transform: translate(-20px, -30px); } }
@keyframes ticker { 0% { transform: translateX(0); } 100% { transform: translateX(-50%); } }
@keyframes modalIn { from { opacity: 0; transform: scale(0.92) translateY(30px); } to { opacity: 1; transform: scale(1) translateY(0); } }
@keyframes pulse { 0%, 100% { opacity: 1; } 50% { opacity: 0.5; } }

html { scroll-behavior: smooth; }
body {
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  background: #050714;
  color: #fff;
  overflow-x: hidden;
}
a { color: inherit; text-decoration: none; }
button { cursor: pointer; border: none; background: none; color: inherit; }
input { font-family: inherit; }

/* Skip link for accessibility */
.skip-link {
  position: absolute;
  top: -40px;
  left: 0;
  background: #06b6d4;
  color: #000;
  padding: 8px 16px;
  z-index: 100;
  font-size: 14px;
  font-weight: 600;
  text-decoration: none;
  transition: top 0.3s;
}
.skip-link:focus { top: 0; }
.sr-only {
  position: absolute;
  width: 1px; height: 1px;
  padding: 0; margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border-width: 0;
}
.sr-only:focus {
  position: static;
  width: auto; height: auto;
  padding: inherit; margin: inherit;
  overflow: visible;
  clip: auto;
  white-space: normal;
}
a:focus-visible, button:focus-visible, input:focus-visible {
  outline: 2px solid #06b6d4;
  outline-offset: 2px;
  border-radius: 4px;
}

/* Background effects */
.grid-bg {
  position: fixed; inset: 0;
  background-image:
    linear-gradient(rgba(6,182,212,0.04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(6,182,212,0.04) 1px, transparent 1px);
  background-size: 60px 60px;
  pointer-events: none;
  z-index: 0;
}
.ambient-orb {
  position: fixed;
  border-radius: 50%;
  filter: blur(150px);
  pointer-events: none;
  z-index: 0;
}
.orb-1 {
  width: 700px; height: 700px;
  background: radial-gradient(circle, rgba(6,182,212,0.12), transparent 70%);
  top: -250px; right: -200px;
  animation: float1 20s ease-in-out infinite;
}
.orb-2 {
  width: 600px; height: 600px;
  background: radial-gradient(circle, rgba(124,58,237,0.1), transparent 70%);
  bottom: 10%; left: -200px;
  animation: float2 25s ease-in-out infinite;
}
.orb-3 {
  width: 500px; height: 500px;
  background: radial-gradient(circle, rgba(236,72,153,0.08), transparent 70%);
  bottom: -150px; right: 15%;
  animation: float3 18s ease-in-out infinite;
}

/* Navigation */
nav {
  position: fixed; top: 0; left: 0; right: 0;
  z-index: 50;
  padding: 16px 24px;
  background: rgba(5,7,20,0.8);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(255,255,255,0.07);
}
.nav-inner {
  max-width: 1280px; margin: 0 auto;
  display: flex; align-items: center; justify-content: space-between;
}
.logo { display: flex; align-items: center; gap: 12px; }
.logo-icon {
  width: 40px; height: 40px;
  border-radius: 12px;
  background: linear-gradient(135deg, #06b6d4, #7c3aed);
  display: flex; align-items: center; justify-content: center;
  font-weight: 900; font-size: 20px;
}
.btn-primary {
  padding: 10px 20px;
  background: #fff; color: #000;
  font-weight: 600;
  border-radius: 100px;
  font-size: 14px;
  transition: all 0.2s;
}
.btn-primary:hover { background: #06b6d4; color: #000; }

/* Ticker */
.ticker-wrap {
  overflow: hidden;
  border-top: 1px solid rgba(255,255,255,0.07);
  border-bottom: 1px solid rgba(255,255,255,0.07);
  background: rgba(6,182,212,0.03);
  padding: 10px 0;
}
.ticker-track {
  display: flex;
  gap: 60px;
  animation: ticker 30s linear infinite;
  width: max-content;
}
.ticker-item {
  white-space: nowrap;
  font-size: 0.8rem;
  color: rgba(255,255,255,0.5);
  display: flex; align-items: center; gap: 8px;
}
.ticker-dot {
  width: 6px; height: 6px;
  border-radius: 50%;
  background: #06b6d4;
}

/* Rankings */
.rankings {
  max-width: 800px;
  margin: 0 auto;
  padding: 120px 24px 60px;
}
.rank-item {
  display: flex; align-items: center;
  gap: 16px;
  padding: 20px;
  border-radius: 16px;
  border: 1px solid rgba(255,255,255,0.07);
  background: rgba(255,255,255,0.02);
  margin-bottom: 12px;
  cursor: pointer;
  transition: all 0.2s;
}
.rank-item:hover {
  border-color: rgba(6,182,212,0.3);
  transform: translateX(4px);
}
.rank-num {
  font-size: 24px; font-weight: 900;
  width: 40px; text-align: center;
  color: rgba(255,255,255,0.5);
}
.rank-avatar {
  width: 48px; height: 48px;
  border-radius: 12px;
  background: linear-gradient(135deg, #06b6d4, #7c3aed);
  display: flex; align-items: center; justify-content: center;
  font-weight: 700; font-size: 14px;
}
.top1 .rank-num { color: #f59e0b; font-size: 28px; text-shadow: 0 0 20px rgba(245,158,11,0.5); }
.top1 .rank-avatar { background: linear-gradient(135deg, #f59e0b, #fbbf24); box-shadow: 0 4px 20px rgba(245,158,11,0.3); }
.top2 .rank-num { color: #94a3b8; }
.top3 .rank-num { color: #b8860b; }

.rank-info { flex: 1; }
.rank-name { font-size: 16px; font-weight: 600; margin-bottom: 4px; }
.rank-meta { font-size: 12px; color: rgba(255,255,255,0.5); }
.rank-price { font-size: 20px; font-weight: 800; color: #06b6d4; }
.top1 .rank-price { color: #f59e0b; text-shadow: 0 0 20px rgba(245,158,11,0.4); }

/* Bid button */
.btn-bid {
  padding: 10px 26px;
  background: linear-gradient(135deg, #06b6d4, #7c3aed);
  border: none; border-radius: 100px;
  color: #fff; font-weight: 700; font-size: 14px;
  cursor: pointer; transition: all 0.3s;
  box-shadow: 0 4px 20px rgba(6,182,212,0.2);
}
.btn-bid:hover { transform: scale(1.05); box-shadow: 0 6px 30px rgba(6,182,212,0.4); }
.top1 .btn-bid { background: linear-gradient(135deg, #f59e0b, #fbbf24); box-shadow: 0 4px 20px rgba(245,158,11,0.3); }

/* Modal */
.modal-overlay {
  position: fixed; inset: 0;
  z-index: 100;
  display: none;
  align-items: center; justify-content: center;
  padding: 24px;
}
.modal-overlay.active { display: flex; }
.modal-backdrop {
  position: absolute; inset: 0;
  background: rgba(0,0,0,0.8);
}
.modal-box {
  position: relative;
  background: rgba(10,14,39,0.98);
  border: 1px solid rgba(6,182,212,0.2);
  border-radius: 24px;
  padding: 32px;
  max-width: 480px; width: 100%;
  animation: modalIn 0.35s cubic-bezier(0.16,1,0.3,1);
}
.modal-box h3 { font-size: 24px; font-weight: 800; margin-bottom: 8px; }
.modal-box p { color: rgba(255,255,255,0.5); font-size: 14px; margin-bottom: 24px; }
.form-group { margin-bottom: 16px; }
.form-group label {
  display: block; font-size: 12px;
  color: rgba(255,255,255,0.5);
  margin-bottom: 8px; text-transform: uppercase;
}
.form-group input {
  width: 100%; padding: 12px 16px;
  background: rgba(255,255,255,0.05);
  border: 1px solid rgba(255,255,255,0.1);
  border-radius: 12px;
  color: #fff; font-size: 16px;
}
.form-group input:focus { outline: none; border-color: #06b6d4; }
.btn-bid-full {
  width: 100%; padding: 16px;
  background: linear-gradient(135deg, #06b6d4, #7c3aed);
  border: none; border-radius: 12px;
  color: #fff; font-size: 16px; font-weight: 700;
  cursor: pointer; margin-top: 24px;
}
.btn-bid-full:hover { opacity: 0.9; }
.close-btn {
  position: absolute; top: 16px; right: 16px;
  width: 32px; height: 32px;
  border-radius: 50%;
  background: rgba(255,255,255,0.1);
  display: flex; align-items: center; justify-content: center;
}
.payment-options { display: grid; grid-template-columns: repeat(3,1fr); gap: 12px; margin-top: 8px; }
.payment-btn {
  padding: 12px; border: 1px solid rgba(255,255,255,0.1);
  border-radius: 12px; font-size: 14px; font-weight: 600;
}
.payment-btn.active { border-color: #06b6d4; background: rgba(6,182,212,0.1); color: #06b6d4; }

/* Stats section */
.stats-section { max-width: 800px; margin: 0 auto; padding: 0 24px 60px; }
.stats-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  gap: 16px; margin-top: 48px;
}
.stat-card {
  background: rgba(255,255,255,0.02);
  border: 1px solid rgba(255,255,255,0.07);
  border-radius: 16px; padding: 24px; text-align: center;
}
.stat-value { font-size: 32px; font-weight: 900; color: #06b6d4; }
.stat-label { font-size: 12px; color: rgba(255,255,255,0.5); margin-top: 4px; }

/* How it works */
.how-it-works { max-width: 800px; margin: 0 auto; padding: 0 24px 60px; }
.how-it-works h2 { text-align: center; font-size: 32px; font-weight: 900; margin-bottom: 48px; }
.steps-grid { display: grid; grid-template-columns: repeat(3,1fr); gap: 24px; }
.step-card {
  position: relative; overflow: hidden;
  padding: 36px 28px;
  border-radius: 24px;
  border: 1px solid rgba(255,255,255,0.07);
  background: rgba(255,255,255,0.02);
  transition: all 0.4s cubic-bezier(0.16,1,0.3,1);
}
.step-card:hover {
  border-color: rgba(6,182,212,0.3);
  transform: translateY(-4px);
  box-shadow: 0 20px 60px rgba(0,0,0,0.3);
}
.step-num {
  font-size: 4rem; font-weight: 900;
  position: absolute; top: 12px; right: 20px;
  opacity: 0.04; line-height: 1;
}
.step-title { font-size: 18px; font-weight: 700; margin-bottom: 8px; }
.step-desc { font-size: 14px; color: rgba(255,255,255,0.5); line-height: 1.6; }

/* Partners */
.partners { max-width: 800px; margin: 0 auto; padding: 0 24px 60px; text-align: center; }
.partners h2 { font-size: 24px; font-weight: 700; margin-bottom: 32px; color: rgba(255,255,255,0.5); }
.partner-logos {
  display: flex; justify-content: center; gap: 48px; flex-wrap: wrap;
  align-items: center;
}
.partner-logo {
  font-size: 1.5rem; font-weight: 800;
  color: rgba(100,116,139,0.4);
  letter-spacing: -0.02em;
  transition: color 0.3s;
}
.partner-logo:hover { color: rgba(148,163,184,0.7); }

/* Footer */
footer {
  text-align: center;
  padding: 40px 24px;
  border-top: 1px solid rgba(255,255,255,0.07);
  color: rgba(255,255,255,0.3);
  font-size: 14px;
}
footer a { color: #06b6d4; }

/* Scrollbar */
::-webkit-scrollbar { width: 6px; }
::-webkit-scrollbar-track { background: #050714; }
::-webkit-scrollbar-thumb { background: rgba(6,182,212,0.2); border-radius: 3px; }

/* Responsive */
@media (max-width: 768px) {
  .rank-item { flex-wrap: wrap; }
  .rank-action { width: 100%; text-align: left; margin-top: 8px; padding-top: 12px; border-top: 1px solid rgba(255,255,255,0.07); }
  .steps-grid { grid-template-columns: 1fr; }
  .logo span:last-child { display: none; }
}
