/* ─── Design Tokens ────────────────────────────────────────── */
:root {
  --bg: #030712;
  --bg-alt: #060a14;
  --surface: rgba(17, 24, 39, 0.5);
  --surface-hover: rgba(29, 185, 84, 0.06);
  --border: rgba(255, 255, 255, 0.06);
  --border-hover: rgba(29, 185, 84, 0.3);
  --text: #f3f4f6;
  --text-sec: #9ca3af;
  --text-muted: #4b5563;
  --accent: #1db954;
  --accent2: #00cdac;
  --gradient: linear-gradient(135deg, #1db954, #00cdac);
  --glow: 0 0 60px rgba(29, 185, 84, 0.15);
  --radius: 16px;
  --radius-sm: 10px;
  --radius-xs: 6px;
  --ease: cubic-bezier(0.4, 0, 0.2, 1);
}

/* ─── Reset ────────────────────────────────────────────────── */
*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  font-family: 'Inter', -apple-system, sans-serif;
  background: var(--bg);
  color: var(--text);
  overflow-x: hidden;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
a { text-decoration: none; color: inherit; }
img { max-width: 100%; }

/* ─── Background Effects ───────────────────────────────────── */
.bg-effects { position: fixed; inset: 0; pointer-events: none; z-index: 0; }
.bg-gradient {
  position: absolute; inset: 0;
  background: radial-gradient(ellipse 80% 60% at 50% 0%, rgba(29,185,84,0.08), transparent 60%),
              radial-gradient(ellipse 60% 50% at 80% 100%, rgba(0,205,172,0.05), transparent 60%);
}
.bg-grid {
  position: absolute; inset: 0;
  background-image: linear-gradient(rgba(255,255,255,0.015) 1px, transparent 1px),
                    linear-gradient(90deg, rgba(255,255,255,0.015) 1px, transparent 1px);
  background-size: 64px 64px;
}
.orb {
  position: absolute; border-radius: 50%;
  filter: blur(120px); opacity: 0.12;
  animation: orbFloat 30s infinite ease-in-out;
}
.orb-1 { width: 500px; height: 500px; background: #1db954; top: -100px; right: -50px; }
.orb-2 { width: 600px; height: 600px; background: #00cdac; bottom: -150px; left: -100px; animation-delay: -10s; }
.orb-3 { width: 400px; height: 400px; background: #10b981; top: 50%; left: 50%; transform: translate(-50%, -50%); opacity: 0.06; animation-delay: -20s; }
@keyframes orbFloat {
  0%, 100% { transform: translate(0, 0) scale(1); }
  33% { transform: translate(40px, -40px) scale(1.05); }
  66% { transform: translate(-30px, 30px) scale(0.95); }
}

/* ─── Utilities ────────────────────────────────────────────── */
.container { max-width: 1100px; margin: 0 auto; padding: 0 24px; }
.text-gradient {
  background: var(--gradient);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}
.section { padding: 120px 24px; position: relative; z-index: 1; }
.section-alt { background: var(--bg-alt); border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); }

/* ─── Navigation ───────────────────────────────────────────── */
.nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 1000;
  height: 72px; transition: all 0.3s var(--ease);
}
.nav.scrolled {
  background: rgba(3, 7, 18, 0.85);
  backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--border);
}
.nav-inner {
  max-width: 1100px; margin: 0 auto; padding: 0 24px;
  height: 100%; display: flex; align-items: center; justify-content: space-between;
}
.nav-brand { display: flex; align-items: center; gap: 10px; font-size: 1.25rem; font-weight: 800; }
.nav-links { display: flex; align-items: center; gap: 32px; }
.nav-links a {
  font-size: 0.9rem; font-weight: 500; color: var(--text-sec);
  transition: color 0.2s;
}
.nav-links a:hover { color: var(--text); }
.nav-btn {
  display: flex; align-items: center; gap: 6px;
  background: rgba(255,255,255,0.04); border: 1px solid var(--border);
  padding: 8px 16px; border-radius: var(--radius-xs); font-size: 0.85rem;
  transition: all 0.2s;
}
.nav-btn:hover { background: rgba(29,185,84,0.08); border-color: var(--border-hover); color: var(--accent) !important; }
.nav-toggle {
  display: none; background: none; border: none; cursor: pointer;
  flex-direction: column; gap: 5px; padding: 4px;
}
.nav-toggle span { display: block; width: 20px; height: 2px; background: var(--text-sec); border-radius: 2px; transition: 0.2s; }

/* ─── Buttons ──────────────────────────────────────────────── */
.btn {
  display: inline-flex; align-items: center; gap: 10px;
  font-weight: 700; font-size: 0.95rem; border-radius: var(--radius-sm);
  padding: 14px 28px; transition: all 0.25s var(--ease); cursor: pointer; border: none;
}
.btn-primary {
  background: var(--gradient); color: #000;
  box-shadow: 0 4px 24px rgba(29,185,84,0.2);
}
.btn-primary:hover { transform: translateY(-2px); box-shadow: 0 8px 32px rgba(29,185,84,0.3); }
.btn-ghost {
  background: rgba(255,255,255,0.04); color: var(--text);
  border: 1px solid var(--border);
}
.btn-ghost:hover { background: rgba(255,255,255,0.08); border-color: var(--text-muted); }
.btn-full { width: 100%; justify-content: center; }

/* ─── Hero ─────────────────────────────────────────────────── */
.hero {
  position: relative; z-index: 1;
  padding: 180px 24px 100px; text-align: center;
}
.hero-inner { max-width: 720px; margin: 0 auto; }
.hero-badge {
  display: inline-flex; align-items: center; gap: 8px;
  background: rgba(29,185,84,0.08); border: 1px solid rgba(29,185,84,0.15);
  padding: 6px 16px; border-radius: 100px; font-size: 0.8rem;
  font-weight: 600; color: var(--accent); margin-bottom: 28px;
  letter-spacing: 0.5px;
}
.badge-dot {
  width: 6px; height: 6px; border-radius: 50%; background: var(--accent);
  animation: pulse 2s infinite;
}
@keyframes pulse {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.4; }
}
.hero-title {
  font-size: clamp(2.5rem, 5vw, 4rem);
  font-weight: 900; line-height: 1.1; margin-bottom: 20px;
  letter-spacing: -0.02em;
}
.hero-desc {
  font-size: 1.1rem; color: var(--text-sec); max-width: 560px;
  margin: 0 auto 36px; line-height: 1.7;
}
.hero-actions { display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; margin-bottom: 48px; }

/* ─── Mockup ───────────────────────────────────────────────── */
.mockup-container {
  max-width: 960px; margin: 80px auto 0; perspective: 1200px;
}
.mockup {
  background: rgba(11, 15, 25, 0.7);
  border: 1px solid rgba(255,255,255,0.06);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: 0 40px 80px rgba(0,0,0,0.5),
              0 0 0 1px rgba(255,255,255,0.03) inset;
  transform: rotateX(2deg);
  transition: transform 0.4s var(--ease);
}
.mockup:hover { transform: rotateX(0deg); }
.mockup-chrome {
  background: #080c16; padding: 10px 16px;
  border-bottom: 1px solid var(--border);
  display: flex; align-items: center; gap: 12px;
}
.chrome-dots { display: flex; gap: 6px; }
.chrome-dots span { width: 10px; height: 10px; border-radius: 50%; }
.chrome-dots span:nth-child(1) { background: #ef4444; }
.chrome-dots span:nth-child(2) { background: #eab308; }
.chrome-dots span:nth-child(3) { background: #22c55e; }
.chrome-title { font-size: 0.75rem; color: var(--text-muted); font-family: 'JetBrains Mono', monospace; }

.mockup-body { display: grid; grid-template-columns: 200px 1fr; min-height: 380px; }
.mock-sidebar {
  background: #060a12; border-right: 1px solid var(--border);
  padding: 20px 14px; display: flex; flex-direction: column;
}
.sidebar-brand {
  display: flex; align-items: center; gap: 8px;
  font-weight: 700; font-size: 0.85rem; margin-bottom: 24px;
  padding: 0 6px;
}
.sidebar-nav { display: flex; flex-direction: column; gap: 2px; flex: 1; }
.nav-item {
  display: flex; align-items: center; gap: 8px;
  padding: 8px 10px; border-radius: var(--radius-xs);
  font-size: 0.78rem; color: var(--text-sec); transition: 0.15s;
}
.nav-item.active { background: rgba(29,185,84,0.1); color: var(--accent); font-weight: 600; }

.mock-main { padding: 20px; display: flex; flex-direction: column; gap: 16px; }
.mock-search {
  display: flex; align-items: center; gap: 8px;
  background: rgba(255,255,255,0.02); border: 1px solid var(--border);
  border-radius: var(--radius-xs); padding: 10px 14px;
  font-size: 0.78rem; color: var(--text-muted);
}
.mock-now-playing { display: flex; gap: 16px; align-items: center; margin-top: auto; padding-bottom: 8px; }
.np-card {
  position: relative; background: rgba(255,255,255,0.02);
  border: 1px solid var(--border); border-radius: var(--radius-sm);
  padding: 12px; display: flex; flex-direction: column; gap: 10px;
  width: 130px;
}
.np-art {
  aspect-ratio: 1; background: #111827; border-radius: var(--radius-xs);
  display: flex; align-items: center; justify-content: center; position: relative;
}
.np-glow {
  position: absolute; inset: 8px;
  background: rgba(29,185,84,0.2); filter: blur(12px); z-index: 0;
}
.np-info .np-title { font-size: 0.8rem; font-weight: 600; }
.np-info .np-artist { font-size: 0.65rem; color: var(--text-sec); }
.mockup-player {
  background: #060a12; border-top: 1px solid var(--border);
  padding: 12px 20px; display: grid;
  grid-template-columns: 1fr 2fr 1fr; align-items: center;
}
.mp-left { display: flex; align-items: center; gap: 10px; }
.mp-thumb { width: 36px; height: 36px; background: #111827; border-radius: 4px; }
.mp-song { font-size: 0.78rem; font-weight: 600; }
.mp-artist { font-size: 0.65rem; color: var(--text-sec); }
.mp-center { display: flex; flex-direction: column; align-items: center; gap: 6px; }
.mp-controls { display: flex; align-items: center; gap: 16px; color: var(--text-sec); }
.mp-play {
  width: 28px; height: 28px; background: var(--text); border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
}
.mp-progress { display: flex; align-items: center; gap: 8px; width: 100%; max-width: 360px; }
.mp-time { font-size: 0.65rem; color: var(--text-muted); font-family: 'JetBrains Mono', monospace; }
.mp-bar { flex: 1; height: 3px; background: rgba(255,255,255,0.08); border-radius: 2px; }
.mp-bar-fill { width: 42%; height: 100%; background: var(--accent); border-radius: 2px; }
.mp-right { display: flex; align-items: center; justify-content: flex-end; gap: 8px; color: var(--text-sec); }
.mp-vol { width: 70px; height: 3px; background: rgba(255,255,255,0.08); border-radius: 2px; }
.mp-vol-fill { width: 80%; height: 100%; background: var(--text); border-radius: 2px; }

/* ─── Section Headers ──────────────────────────────────────── */
.section-header { text-align: center; margin-bottom: 64px; }
.section-tag {
  display: inline-block; font-size: 0.75rem; font-weight: 700;
  color: var(--accent); text-transform: uppercase; letter-spacing: 2px;
  margin-bottom: 12px;
}
.section-header h2 {
  font-size: clamp(1.8rem, 3.5vw, 2.8rem);
  font-weight: 900; line-height: 1.15; margin-bottom: 12px;
  letter-spacing: -0.02em;
}
.section-header p { color: var(--text-sec); font-size: 1.05rem; max-width: 500px; margin: 0 auto; }

/* ─── Features Grid ────────────────────────────────────────── */
.features-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 20px; }
.feature-card {
  background: var(--surface); border: 1px solid var(--border);
  border-radius: var(--radius); padding: 32px;
  transition: all 0.3s var(--ease); position: relative; overflow: hidden;
}
.feature-card::before {
  content: ''; position: absolute; inset: 0;
  background: linear-gradient(135deg, rgba(29,185,84,0.04), transparent);
  opacity: 0; transition: opacity 0.3s;
}
.feature-card:hover { transform: translateY(-4px); border-color: var(--border-hover); box-shadow: var(--glow); }
.feature-card:hover::before { opacity: 1; }
.feature-icon {
  width: 48px; height: 48px; background: rgba(29,185,84,0.08);
  border-radius: 12px; display: flex; align-items: center; justify-content: center;
  margin-bottom: 20px;
}
.feature-card h3 { font-size: 1.15rem; font-weight: 700; margin-bottom: 8px; }
.feature-card p { color: var(--text-sec); font-size: 0.9rem; line-height: 1.6; }

/* ─── Steps ────────────────────────────────────────────────── */
.steps { display: flex; align-items: center; justify-content: center; gap: 16px; flex-wrap: wrap; }
.step-card {
  background: var(--surface); border: 1px solid var(--border);
  border-radius: var(--radius); padding: 32px 28px;
  text-align: center; max-width: 220px; flex: 1;
  transition: all 0.3s var(--ease);
}
.step-card:hover { border-color: var(--border-hover); transform: translateY(-4px); }
.step-number {
  font-size: 2rem; font-weight: 900; color: var(--accent);
  opacity: 0.3; margin-bottom: 12px; font-family: 'JetBrains Mono', monospace;
}
.step-card h3 { font-size: 1rem; font-weight: 700; margin-bottom: 8px; }
.step-card p { color: var(--text-sec); font-size: 0.82rem; line-height: 1.5; }
.step-connector { color: var(--text-muted); flex-shrink: 0; }

/* ─── Installation Guide (21st.dev Inspired) ──────────────── */
.install-tabs-wrap {
  display: flex;
  justify-content: center;
  margin-bottom: 40px;
}
.install-tabs {
  display: inline-flex;
  gap: 8px;
  background: rgba(255, 255, 255, 0.03);
  padding: 6px;
  border-radius: 100px;
  border: 1px solid var(--border);
  backdrop-filter: blur(12px);
}
.install-tab {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 24px;
  border-radius: 100px;
  background: transparent;
  border: none;
  color: var(--text-sec);
  font-size: 0.92rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.25s var(--ease);
}
.install-tab:hover {
  color: var(--text);
}
.install-tab.active {
  background: var(--surface-hover);
  color: #fff;
  border: 1px solid var(--border-hover);
  box-shadow: 0 4px 20px rgba(29, 185, 84, 0.2);
}
#tab-android.active {
  color: #22c55e;
  border-color: rgba(34, 197, 94, 0.4);
  box-shadow: 0 4px 20px rgba(34, 197, 94, 0.2);
}
#tab-windows.active {
  color: #00cdac;
  border-color: rgba(0, 205, 172, 0.4);
  box-shadow: 0 4px 20px rgba(0, 205, 172, 0.2);
}

.install-content {
  display: none;
  opacity: 0;
  transform: translateY(10px);
  transition: opacity 0.3s var(--ease), transform 0.3s var(--ease);
}
.install-content.active {
  display: block;
  opacity: 1;
  transform: translateY(0);
}

.install-steps-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 24px;
}

/* 21st.dev Spotlight Glow Card */
.glow-card {
  position: relative;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 32px 28px;
  overflow: hidden;
  transition: border-color 0.25s var(--ease), transform 0.25s var(--ease);
  will-change: transform;
}
.glow-card::before {
  content: '';
  position: absolute;
  top: var(--mouse-y, -999px);
  left: var(--mouse-x, -999px);
  transform: translate(-50%, -50%);
  width: 280px;
  height: 280px;
  background: radial-gradient(circle, rgba(29, 185, 84, 0.12) 0%, transparent 70%);
  border-radius: 50%;
  pointer-events: none;
  opacity: 0;
  transition: opacity 0.3s ease;
  z-index: 0;
}
.glow-card:hover::before {
  opacity: 1;
}
.glow-card:hover {
  transform: translateY(-4px);
  border-color: var(--border-hover);
  box-shadow: 0 12px 36px rgba(0, 0, 0, 0.4);
}
.glow-card > * {
  position: relative;
  z-index: 1;
}

.step-badge {
  display: inline-block;
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  color: var(--text-muted);
  background: rgba(255, 255, 255, 0.04);
  padding: 4px 10px;
  border-radius: 6px;
  margin-bottom: 16px;
  border: 1px solid rgba(255, 255, 255, 0.05);
}
.step-icon {
  width: 44px;
  height: 44px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 16px;
}
.step-icon.android-icon {
  background: rgba(34, 197, 94, 0.1);
  color: #22c55e;
}
.step-icon.windows-icon {
  background: rgba(0, 205, 172, 0.1);
  color: #00cdac;
}

.install-step-card h4 {
  font-size: 1.15rem;
  font-weight: 700;
  margin-bottom: 10px;
  color: #fff;
}
.install-step-card p {
  color: var(--text-sec);
  font-size: 0.88rem;
  line-height: 1.6;
  margin-bottom: 14px;
}
.install-step-card code {
  background: rgba(255, 255, 255, 0.06);
  padding: 2px 6px;
  border-radius: 4px;
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.8rem;
  color: #fff;
}
.step-list {
  list-style: none;
  margin-bottom: 14px;
  padding-left: 0;
}
.step-list li {
  position: relative;
  padding-left: 20px;
  font-size: 0.86rem;
  color: var(--text-sec);
  margin-bottom: 6px;
}
.step-list li::before {
  content: '→';
  position: absolute;
  left: 0;
  color: var(--accent);
  font-weight: 700;
}

.step-tip {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid rgba(255, 255, 255, 0.05);
  border-radius: 8px;
  padding: 10px 12px;
  font-size: 0.82rem;
  color: var(--text-sec);
  line-height: 1.5;
}
.step-tip.success-tip {
  background: rgba(34, 197, 94, 0.06);
  border-color: rgba(34, 197, 94, 0.2);
  color: #d1fae5;
}
.tip-pill {
  font-size: 0.68rem;
  font-weight: 700;
  text-transform: uppercase;
  background: rgba(255, 255, 255, 0.08);
  color: #fff;
  padding: 2px 6px;
  border-radius: 4px;
  flex-shrink: 0;
}
.tip-pill.success-pill {
  background: #22c55e;
  color: #000;
}

/* ─── Download Section ─────────────────────────────────────── */
.download-card {
  background: var(--surface); border: 1px solid var(--border);
  border-radius: 24px; overflow: hidden;
  box-shadow: 0 40px 80px rgba(0,0,0,0.3);
}
.download-content { padding: 48px; text-align: center; }
.download-content h2 {
  font-size: 2.2rem; font-weight: 900; margin-bottom: 8px;
}
.download-content > p { color: var(--text-sec); margin-bottom: 36px; }
.download-single {
  display: flex; flex-direction: column; align-items: center;
  gap: 12px; padding: 20px;
}
.download-single h3 { font-size: 1.3rem; font-weight: 700; }
.download-single .option-desc { color: var(--text-sec); font-size: 0.9rem; margin-bottom: 8px; }
.btn-lg { padding: 18px 40px; font-size: 1.05rem; }

/* ─── Tech Grid ────────────────────────────────────────────── */
.tech-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(140px, 1fr)); gap: 12px; }
.tech-item {
  background: var(--surface); border: 1px solid var(--border);
  border-radius: var(--radius-sm); padding: 20px; text-align: center;
  transition: all 0.2s;
}
.tech-item:hover { border-color: var(--border-hover); transform: translateY(-2px); }
.tech-name { font-size: 0.95rem; font-weight: 700; margin-bottom: 4px; }
.tech-desc { font-size: 0.75rem; color: var(--text-muted); }

/* ─── Footer ───────────────────────────────────────────────── */
.footer {
  border-top: 1px solid var(--border); padding: 40px 24px;
  background: var(--bg); position: relative; z-index: 1;
}
.footer-inner { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 20px; }
.footer-brand { display: flex; align-items: center; gap: 8px; font-weight: 800; font-size: 1.1rem; }
.footer-links { display: flex; gap: 24px; }
.footer-links a { font-size: 0.85rem; color: var(--text-sec); transition: color 0.2s; }
.footer-links a:hover { color: var(--accent); }
.footer-copy { font-size: 0.8rem; color: var(--text-muted); }

/* ─── Responsive ───────────────────────────────────────────── */
@media (max-width: 900px) {
  .mockup-body { grid-template-columns: 1fr; }
  .mock-sidebar { display: none; }
  .steps { flex-direction: column; }
  .step-connector { transform: rotate(90deg); }
  .nav-links { display: none; }
  .nav-links.open {
    display: flex; flex-direction: column;
    position: absolute; top: 72px; left: 0; right: 0;
    background: rgba(3,7,18,0.95); backdrop-filter: blur(20px);
    border-bottom: 1px solid var(--border);
    padding: 20px 24px; gap: 16px;
  }
  .nav-toggle { display: flex; }
}
@media (max-width: 600px) {
  .hero { padding: 140px 16px 60px; }
  .hero-actions { flex-direction: column; align-items: stretch; }
  .download-content { padding: 32px 20px; }
  .footer-inner { flex-direction: column; text-align: center; }
  .install-tabs { width: 100%; }
  .install-tab { flex: 1; justify-content: center; padding: 10px 16px; font-size: 0.85rem; }
  .install-steps-grid { grid-template-columns: 1fr; }
}
