@import url('https://fonts.googleapis.com/css2?family=Montserrat:ital,wght@0,300;0,400;0,500;0,600;0,700;1,300;1,400;1,700&display=swap');

:root {
  --bg: #1a1d23;
  --bg2: #1e2128;
  --bg3: #252830;
  --surface: #2a2d36;
  --surface2: #32363f;
  --border: rgba(255,255,255,0.07);
  --text: #e8eaf0;
  --text-muted: #7a7f8e;
  --text-dim: #4a4f5e;
  --accent: #5c8fff;
  --accent2: #7b5ea7;
  --accent-glow: rgba(92, 143, 255, 0.25);
  --live: #3ecf6e;
  --live-glow: rgba(62, 207, 110, 0.3);
  --radius: 16px;
  --radius-sm: 8px;
  --nav-height: 68px;
}

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

html { scroll-behavior: smooth; }

body {
  font-family: 'Montserrat', sans-serif;
  background: var(--bg);
  color: var(--text);
  min-height: 100vh;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

/* ─── Custom Scrollbar ─── */
::-webkit-scrollbar { width: 6px; }
::-webkit-scrollbar-track { background: var(--bg); }
::-webkit-scrollbar-thumb {
  background: linear-gradient(180deg, var(--accent), var(--accent2));
  border-radius: 3px;
}
::-webkit-scrollbar-thumb:hover { background: var(--accent); }
* { scrollbar-width: thin; scrollbar-color: var(--accent) var(--bg); }

/* ─── Navigation ─── */
nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  height: var(--nav-height);
  z-index: 1000;
  display: flex;
  align-items: center;
  padding: 0 48px;
  backdrop-filter: blur(24px) saturate(1.5);
  -webkit-backdrop-filter: blur(24px) saturate(1.5);
  background: rgba(26, 29, 35, 0.82);
  border-bottom: 1px solid var(--border);
  transition: background 0.3s ease;
}

.nav-logo {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  flex-shrink: 0;
}

.nav-logo .logo-voice {
  font-size: 22px;
  font-weight: 300;
  font-style: italic;
  color: var(--text);
  letter-spacing: -0.5px;
}

.nav-logo .logo-track {
  font-size: 22px;
  font-weight: 700;
  font-style: italic;
  color: var(--accent);
  letter-spacing: -0.5px;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 4px;
  margin-left: 40px;
  list-style: none;
}

.nav-links a {
  color: var(--text-muted);
  text-decoration: none;
  font-size: 14px;
  font-weight: 500;
  padding: 8px 14px;
  border-radius: var(--radius-sm);
  transition: color 0.2s, background 0.2s;
  letter-spacing: 0.2px;
}

.nav-links a:hover,
.nav-links a.active {
  color: var(--text);
  background: var(--surface);
}

.nav-end {
  margin-left: auto;
  display: flex;
  align-items: center;
  gap: 12px;
}

.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 22px;
  border-radius: 50px;
  font-family: 'Montserrat', sans-serif;
  font-size: 14px;
  font-weight: 600;
  text-decoration: none;
  cursor: pointer;
  border: none;
  transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
  letter-spacing: 0.3px;
  white-space: nowrap;
}

.btn-primary {
  background: var(--accent);
  color: #fff;
  box-shadow: 0 4px 20px var(--accent-glow);
}
.btn-primary:hover {
  background: #4a7ef0;
  transform: translateY(-1px);
  box-shadow: 0 8px 30px rgba(92,143,255,0.4);
}

.btn-ghost {
  background: var(--surface);
  color: var(--text);
  border: 1px solid var(--border);
}
.btn-ghost:hover {
  background: var(--surface2);
  transform: translateY(-1px);
}

/* ─── Page Wrapper ─── */
#page-content {
  padding-top: var(--nav-height);
  min-height: 100vh;
}

/* ─── Fade Transition ─── */
.page-transition {
  animation: fadeIn 0.4s cubic-bezier(0.4,0,0.2,1) both;
}

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

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

/* ─── Section Styles ─── */
.section {
  padding: 100px 48px;
  max-width: 1200px;
  margin: 0 auto;
}

.section-sm { padding: 60px 48px; }

/* ─── Cards ─── */
.card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 28px;
  transition: border-color 0.3s, transform 0.3s, box-shadow 0.3s;
}

.card:hover {
  border-color: rgba(92,143,255,0.3);
  transform: translateY(-2px);
  box-shadow: 0 12px 40px rgba(0,0,0,0.3);
}

/* ─── Live Badge ─── */
.live-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: rgba(62, 207, 110, 0.12);
  color: var(--live);
  border: 1px solid rgba(62,207,110,0.3);
  border-radius: 50px;
  padding: 3px 10px;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.5px;
  text-transform: uppercase;
}

.live-dot {
  width: 6px;
  height: 6px;
  background: var(--live);
  border-radius: 50%;
  animation: pulse-dot 1.5s infinite;
  box-shadow: 0 0 0 0 var(--live-glow);
}

@keyframes pulse-dot {
  0%   { box-shadow: 0 0 0 0 var(--live-glow); }
  70%  { box-shadow: 0 0 0 6px rgba(62,207,110,0); }
  100% { box-shadow: 0 0 0 0 rgba(62,207,110,0); }
}

/* ─── Stat Numbers ─── */
.stat-num {
  font-size: 42px;
  font-weight: 700;
  color: var(--text);
  letter-spacing: -2px;
  line-height: 1;
}

.stat-label {
  font-size: 13px;
  font-weight: 500;
  color: var(--text-muted);
  margin-top: 6px;
  letter-spacing: 0.5px;
  text-transform: uppercase;
}

/* ─── Divider ─── */
.divider {
  height: 1px;
  background: var(--border);
  margin: 0 48px;
}

/* ─── Footer ─── */
footer {
  padding: 48px;
  border-top: 1px solid var(--border);
  margin-top: 80px;
}

.footer-inner {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  flex-wrap: wrap;
}

.footer-links {
  display: flex;
  gap: 24px;
  list-style: none;
}

.footer-links a {
  color: var(--text-muted);
  text-decoration: none;
  font-size: 13px;
  font-weight: 500;
  transition: color 0.2s;
}

.footer-links a:hover { color: var(--text); }

.footer-copy {
  color: var(--text-dim);
  font-size: 13px;
  font-weight: 400;
}

/* ─── Noise overlay ─── */
body::before {
  content: '';
  position: fixed;
  inset: 0;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noise'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noise)' opacity='0.03'/%3E%3C/svg%3E");
  pointer-events: none;
  z-index: 9999;
  opacity: 0.4;
}

/* ─── Mobile hamburger ─── */
.nav-toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: 8px;
  margin-left: auto;
}

.nav-toggle span {
  display: block;
  width: 22px;
  height: 2px;
  background: var(--text);
  border-radius: 2px;
  margin: 4px 0;
  transition: all 0.3s;
}

@media (max-width: 768px) {
  nav { padding: 0 24px; }
  .nav-toggle { display: block; }
  .nav-links, .nav-end { display: none; }
  .nav-links.open, .nav-end.open {
    display: flex;
    flex-direction: column;
    position: fixed;
    top: var(--nav-height);
    left: 0; right: 0;
    background: var(--bg2);
    padding: 20px 24px;
    border-bottom: 1px solid var(--border);
    z-index: 999;
    align-items: flex-start;
  }
  .section { padding: 60px 24px; }
  .divider { margin: 0 24px; }
  footer { padding: 40px 24px; }
}
