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

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

:root {
  --bg: #0A0A0A;
  --bg2: #111111;
  --bg3: #181818;
  --card: #141414;
  --teal: #00B4D8;
  --teal2: #0096B4;
  --gold: #C5A059;
  --gold2: #A8864A;
  --white: #FFFFFF;
  --gray: #888888;
  --gray2: #444444;
  --green: #00C896;
  --red: #FF4757;
  --border: rgba(255,255,255,0.07);
  --border-teal: rgba(0,180,216,0.3);
}

html { font-size: 16px; }

body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  background: var(--bg);
  color: var(--white);
  min-height: 100vh;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
}

::-webkit-scrollbar { width: 6px; }
::-webkit-scrollbar-track { background: var(--bg2); }
::-webkit-scrollbar-thumb { background: var(--gray2); border-radius: 3px; }

h1 { font-size: clamp(1.8rem, 4vw, 3rem); font-weight: 800; letter-spacing: -0.03em; }
h2 { font-size: clamp(1.3rem, 3vw, 1.8rem); font-weight: 700; letter-spacing: -0.02em; }
h3 { font-size: 1.1rem; font-weight: 600; }
p { color: rgba(255,255,255,0.7); }

.card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 24px;
  transition: border-color 0.2s, transform 0.2s;
}
.card:hover { border-color: var(--border-teal); }

.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 14px 28px;
  border-radius: 12px;
  border: none;
  font-family: 'Inter', sans-serif;
  font-size: 1rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s;
  text-decoration: none;
}
.btn-primary {
  background: linear-gradient(135deg, var(--teal), var(--teal2));
  color: white;
  box-shadow: 0 0 24px rgba(0,180,216,0.3);
}
.btn-primary:hover { transform: translateY(-2px); box-shadow: 0 0 36px rgba(0,180,216,0.5); }
.btn-gold { background: linear-gradient(135deg, var(--gold), var(--gold2)); color: white; }
.btn-ghost {
  background: rgba(255,255,255,0.05);
  color: var(--white);
  border: 1px solid var(--border);
}
.btn-ghost:hover { background: rgba(255,255,255,0.1); }

.badge {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 4px 10px;
  border-radius: 20px;
  font-size: 0.75rem;
  font-weight: 600;
}
.badge-green { background: rgba(0,200,150,0.15); color: var(--green); }
.badge-teal { background: rgba(0,180,216,0.15); color: var(--teal); }
.badge-gold { background: rgba(197,160,89,0.15); color: var(--gold); }
.badge-gray { background: rgba(255,255,255,0.07); color: var(--gray); }

.nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  height: 60px;
  background: rgba(10,10,10,0.92);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--border);
  display: flex;
  align-items: center;
  padding: 0 24px;
  z-index: 100;
  gap: 0;
}
.nav-logo {
  font-size: 1rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  color: var(--teal);
  white-space: nowrap;
  margin-right: 32px;
  text-decoration: none;
}
.nav-links {
  display: flex;
  gap: 4px;
  flex: 1;
  overflow-x: auto;
  scrollbar-width: none;
}
.nav-links::-webkit-scrollbar { display: none; }
.nav-link {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 7px 14px;
  border-radius: 8px;
  text-decoration: none;
  color: rgba(255,255,255,0.55);
  font-size: 0.82rem;
  font-weight: 500;
  white-space: nowrap;
  transition: all 0.2s;
}
.nav-link:hover { color: var(--white); background: rgba(255,255,255,0.06); }
.nav-link.active { color: var(--teal); background: rgba(0,180,216,0.1); }
.nav-badge {
  background: var(--teal);
  color: white;
  font-size: 0.65rem;
  font-weight: 700;
  padding: 2px 6px;
  border-radius: 10px;
}
.nav-firm {
  margin-left: auto;
  font-size: 0.78rem;
  color: var(--gold);
  font-weight: 600;
  white-space: nowrap;
  padding-left: 16px;
}

.main { padding-top: 60px; min-height: 100vh; }
.container { max-width: 1200px; margin: 0 auto; padding: 0 24px; }

.grid { display: grid; gap: 16px; }
.grid-2 { grid-template-columns: repeat(2, 1fr); }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-4 { grid-template-columns: repeat(4, 1fr); }

.stat-card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 20px;
}
.stat-label { font-size: 0.78rem; color: var(--gray); font-weight: 500; margin-bottom: 8px; }
.stat-value { font-size: 2rem; font-weight: 800; letter-spacing: -0.03em; }
.stat-sub { font-size: 0.75rem; color: var(--gray); margin-top: 4px; }
.stat-trend { font-size: 0.75rem; color: var(--green); font-weight: 600; }

.page-header {
  padding: 40px 0 32px;
  border-bottom: 1px solid var(--border);
  margin-bottom: 32px;
}
.page-header h1 { margin-bottom: 8px; }

.demo-banner {
  background: linear-gradient(90deg, rgba(197,160,89,0.1), rgba(0,180,216,0.1));
  border: 1px solid rgba(197,160,89,0.3);
  border-radius: 10px;
  padding: 10px 20px;
  font-size: 0.8rem;
  color: var(--gold);
  text-align: center;
  margin-bottom: 24px;
}

@keyframes fadeInUp {
  from { opacity: 0; transform: translateY(20px); }
  to { opacity: 1; transform: translateY(0); }
}
@keyframes pulse-dot {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.3; }
}

.fade-in { animation: fadeInUp 0.5s ease forwards; }
.fade-in-1 { animation: fadeInUp 0.5s 0.1s ease both; }
.fade-in-2 { animation: fadeInUp 0.5s 0.2s ease both; }
.fade-in-3 { animation: fadeInUp 0.5s 0.3s ease both; }
.fade-in-4 { animation: fadeInUp 0.5s 0.4s ease both; }

.live-dot {
  width: 8px; height: 8px;
  border-radius: 50%;
  background: var(--green);
  animation: pulse-dot 2s infinite;
  display: inline-block;
}

.tabs { display: flex; gap: 4px; background: var(--bg2); border-radius: 12px; padding: 4px; margin-bottom: 24px; }
.tab-btn {
  flex: 1;
  padding: 10px 20px;
  border: none;
  border-radius: 8px;
  background: transparent;
  color: var(--gray);
  font-family: 'Inter', sans-serif;
  font-size: 0.9rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s;
}
.tab-btn.active { background: var(--teal); color: white; }

.code-block {
  background: #0D1117;
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 20px;
  font-family: 'SF Mono', 'Fira Code', monospace;
  font-size: 0.85rem;
  color: #E6EDF3;
  line-height: 1.7;
  white-space: pre-wrap;
  overflow-x: auto;
  position: relative;
}
.code-label {
  position: absolute;
  top: 12px; right: 12px;
  font-size: 0.7rem;
  color: var(--gray);
  font-family: 'Inter', sans-serif;
}

@media (max-width: 768px) {
  .grid-4 { grid-template-columns: repeat(2, 1fr); }
  .grid-3 { grid-template-columns: 1fr; }
  .grid-2 { grid-template-columns: 1fr; }
  .nav-links { display: none; }
  .container { padding: 0 16px; }
}
