/* ===== Theme tokens ===== */
:root {
  --bg: #0a0e0a;
  --bg-2: #0d1410;
  --green: #1DB954;
  --green-soft: #1ed760;
  --green-deep: #169c46;
  --text: #e8f0ea;
  --muted: #93a89a;
  --glass-bg: rgba(255, 255, 255, 0.05);
  --glass-border: rgba(255, 255, 255, 0.12);
  --glass-shadow: 0 8px 32px rgba(0, 0, 0, 0.45);
  --radius: 18px;
  --maxw: 1120px;
}

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

html { scroll-behavior: smooth; }

body {
  font-family: 'Inter', system-ui, sans-serif;
  background: radial-gradient(circle at 50% -10%, #112417 0%, var(--bg) 55%);
  color: var(--text);
  line-height: 1.6;
  overflow-x: hidden;
  position: relative;
}

h1, h2, h3, .brand-name, .stat-num { font-family: 'Poppins', 'Inter', sans-serif; }

a { color: inherit; text-decoration: none; }

/* ===== Animated background blobs ===== */
.bg-blobs { position: fixed; inset: 0; z-index: -1; overflow: hidden; }
.blob {
  position: absolute;
  border-radius: 50%;
  filter: blur(90px);
  opacity: 0.5;
  animation: float 18s ease-in-out infinite;
}
.blob-1 { width: 420px; height: 420px; background: #1DB954; top: -80px; left: -60px; }
.blob-2 { width: 360px; height: 360px; background: #0e7a33; bottom: -100px; right: -40px; animation-delay: -6s; }
.blob-3 { width: 300px; height: 300px; background: #169c46; top: 40%; left: 55%; animation-delay: -11s; opacity: 0.35; }

@keyframes float {
  0%, 100% { transform: translate(0, 0) scale(1); }
  33% { transform: translate(40px, -30px) scale(1.08); }
  66% { transform: translate(-30px, 25px) scale(0.95); }
}

/* ===== Glass utility ===== */
.glass {
  background: var(--glass-bg);
  border: 1px solid var(--glass-border);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  box-shadow: var(--glass-shadow);
  border-radius: var(--radius);
}

/* ===== Navbar ===== */
.navbar {
  position: sticky;
  top: 14px;
  z-index: 50;
  margin: 14px auto 0;
  max-width: var(--maxw);
  width: calc(100% - 28px);
  display: flex;
  align-items: center;
  gap: 18px;
  padding: 12px 22px;
  border-radius: 16px;
}
.brand { display: flex; align-items: center; gap: 10px; font-weight: 800; cursor: pointer; }
.brand-logo { width: 30px; height: 30px; border-radius: 8px; }
.brand-name { font-size: 1.2rem; letter-spacing: 0.3px; }
.nav-links { display: flex; align-items: center; gap: 22px; margin-left: auto; font-weight: 500; }
.nav-links a { display: inline-flex; align-items: center; line-height: 1; color: var(--muted); transition: color 0.2s; }
.nav-links a:hover { color: var(--text); }
.nav-gh {
  border: 1px solid var(--glass-border);
  padding: 6px 14px; border-radius: 10px;
  color: var(--text) !important;
}
.nav-gh:hover { background: rgba(29,185,84,0.15); border-color: var(--green); }

@media (max-width: 560px) {
  .nav-links { display: none !important; }
  .nav-gh { display: none !important; }
  .nav-actions { margin-left: 0; }
  .navbar { padding: 10px 14px; gap: 8px; }
  .btn-sm { padding: 8px 14px; font-size: 0.85rem; border-radius: 10px; }
  .lang-switch { background: rgba(255,255,255,0.06); border: 1px solid rgba(255,255,255,0.2); border-radius: 10px; padding: 3px; }
  .lang-btn { padding: 7px 12px; font-size: 0.8rem; border-radius: 8px; }
  .lang-btn.active { background: rgba(29,185,84,0.3); color: var(--green-soft); }
}

/* ===== Nav actions (language switch + CTA) ===== */
.nav-actions { display: flex; align-items: center; gap: 14px; }
.lang-switch {
  display: inline-flex; align-items: center;
  border: 1px solid var(--glass-border); border-radius: 10px; overflow: hidden;
}
.lang-btn {
  font-family: inherit; font-weight: 700; font-size: 0.8rem;
  padding: 7px 12px; cursor: pointer; border: none;
  background: transparent; color: var(--muted); transition: background 0.2s, color 0.2s;
}
.lang-btn:hover { color: var(--text); }
.lang-btn.active { background: rgba(29,185,84,0.2); color: var(--green-soft); }

/* ===== Buttons ===== */
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  padding: 13px 26px; border-radius: 12px; font-weight: 600;
  font-size: 1rem; cursor: pointer; transition: transform 0.15s, box-shadow 0.2s, background 0.2s;
  border: 1px solid transparent;
}
.btn-sm { padding: 9px 18px; font-size: 0.9rem; }
.btn-primary {
  background: linear-gradient(135deg, var(--green-soft), var(--green-deep));
  color: #04130a; box-shadow: 0 6px 20px rgba(29,185,84,0.35);
}
.btn-primary:hover { transform: translateY(-2px); box-shadow: 0 10px 28px rgba(29,185,84,0.5); }
.btn-ghost { background: var(--glass-bg); border-color: var(--glass-border); color: var(--text); }
.btn-ghost:hover { background: rgba(255,255,255,0.1); transform: translateY(-2px); }

/* ===== Hero ===== */
.hero {
  max-width: var(--maxw); margin: 40px auto 0; padding: 30px 24px;
  display: grid; grid-template-columns: 1.1fr 0.9fr; gap: 40px; align-items: center;
  scroll-margin-top: 90px;
}
@media (max-width: 560px) {
  .hero {
    grid-template-columns: 1fr;
    text-align: center;
    padding: 24px 18px;
  }
  .badges { justify-content: center; }
  .hero-sub { margin-left: auto; margin-right: auto; }
  .hero-cta { justify-content: center; }
  .hero-stats { justify-content: center; }
  .hero-shot { order: -1; }
}
.badges { display: flex; flex-wrap: wrap; gap: 10px; margin-bottom: 22px; }
.pill {
  font-size: 0.82rem; font-weight: 600; padding: 7px 13px;
  display: inline-flex; align-items: center; gap: 7px;
  border-radius: 999px; background: rgba(29,185,84,0.12);
  border: 1px solid rgba(29,185,84,0.3); color: var(--green-soft);
}
.pill svg { width: 15px; height: 15px; flex-shrink: 0; }
.pill span { line-height: 1; }
.ico { flex-shrink: 0; }
.card-ico svg, .section h3 svg, .about-card p svg, .warn-strong svg, .ctrl svg {
  width: 1em; height: 1em; vertical-align: -0.15em;
}
.warn-strong { display: inline-flex; align-items: center; gap: 8px; color: var(--text); }
.hero-title { font-size: clamp(2.2rem, 5vw, 3.4rem); line-height: 1.1; font-weight: 800; }
.grad {
  background: linear-gradient(135deg, var(--green-soft), #0bf07a);
  -webkit-background-clip: text; background-clip: text; color: transparent;
}
.hero-sub { color: var(--muted); font-size: 1.08rem; margin: 20px 0 28px; max-width: 540px; }
.hero-sub strong { color: var(--text); }
.hero-cta { display: flex; gap: 14px; flex-wrap: wrap; }
.hero-stats { display: flex; gap: 28px; margin-top: 36px; flex-wrap: wrap; }
.stat { display: flex; flex-direction: column; }
.stat-num { font-size: 1.25rem; font-weight: 700; color: var(--green-soft); }
.stat-label { font-size: 0.82rem; color: var(--muted); }

.hero-shot { padding: 14px; overflow: hidden; }
.hero-shot img { width: 100%; border-radius: 12px; display: block; }

/* ===== About ===== */
.about { max-width: var(--maxw); margin: 60px auto 0; padding: 0 24px; scroll-margin-top: 90px; }
.about-card { padding: 34px; }
.about-card h2 { font-size: 1.8rem; margin-bottom: 16px; }
.about-card p { color: var(--muted); margin-bottom: 14px; }
.about-card p strong { color: var(--text); }
.muted { color: var(--muted); }
.muted.small { font-size: 0.86rem; }
.muted.tiny { font-size: 0.78rem; opacity: 0.7; }

/* ===== Sections ===== */
.section { max-width: var(--maxw); margin: 80px auto 0; padding: 0 24px; scroll-margin-top: 90px; }
.section-head { text-align: center; margin-bottom: 44px; }
.eyebrow { color: var(--green-soft); font-weight: 700; font-size: 0.85rem; letter-spacing: 1.5px; text-transform: uppercase; }
.section-head h2 { font-size: clamp(1.8rem, 4vw, 2.6rem); margin: 10px 0; }
.section-sub { color: var(--muted); max-width: 560px; margin: 0 auto; }

/* ===== Features grid ===== */
.grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.card { padding: 28px; transition: transform 0.2s, border-color 0.2s; }
.card:hover { transform: translateY(-6px); border-color: rgba(29,185,84,0.5); }
.card-ico {
  width: 52px; height: 52px; border-radius: 14px; display: grid; place-items: center;
  color: var(--green-soft);
  background: rgba(29,185,84,0.14); border: 1px solid rgba(29,185,84,0.3);
  margin-bottom: 16px;
}
.card-ico svg { width: 26px; height: 26px; }
.card h3 { font-size: 1.2rem; margin-bottom: 10px; }
.card p { color: var(--muted); font-size: 0.95rem; }

/* ===== Controls ===== */
.controls-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
.ctrl {
  padding: 20px 18px; display: flex; flex-direction: column; gap: 8px;
  transition: transform 0.2s, border-color 0.2s;
}
.ctrl:hover { transform: translateY(-4px); border-color: rgba(29,185,84,0.45); }
.ctrl code {
  font-family: 'Inter', monospace; font-weight: 700; color: var(--green-soft);
  background: rgba(29,185,84,0.1); padding: 4px 10px; border-radius: 8px; align-self: flex-start;
  font-size: 0.85rem;
}
.ctrl span { color: var(--muted); font-size: 0.92rem; }
.controls-shot { margin-top: 30px; padding: 14px; }
.controls-shot img { width: 100%; border-radius: 12px; display: block; }

/* ===== Installation ===== */
.install-wrap { display: grid; grid-template-columns: 1fr 1fr; gap: 22px; }
.install-card { padding: 28px; }
.install-card h3 { font-size: 1.25rem; margin-bottom: 10px; }
.code-block { position: relative; background: #060b07; border: 1px solid var(--glass-border); border-radius: 12px; padding: 16px 92px 16px 18px; margin: 14px 0; overflow-x: auto; }
.code-block pre { font-family: 'Inter', monospace; color: var(--green-soft); font-size: 0.95rem; }
.code-block code { font-family: inherit; }
.copy-btn {
  position: absolute; top: 50%; right: 8px; transform: translateY(-50%);
  font-size: 0.75rem; font-weight: 600;
  background: rgba(29,185,84,0.18); color: var(--green-soft); border: 1px solid rgba(29,185,84,0.35);
  border-radius: 8px; padding: 5px 12px; cursor: pointer; transition: background 0.2s;
}
.copy-btn:hover { background: rgba(29,185,84,0.35); }
.copy-btn.copied { background: var(--green); color: #04130a; }

.note { margin-top: 28px; padding: 22px 26px; border-left: 4px solid var(--green); }
.note code { color: var(--green-soft); }
.update-row { display: flex; align-items: center; gap: 14px; flex-wrap: wrap; margin-top: 26px; justify-content: center; }
.code-block.inline { margin: 0; padding: 8px 92px 8px 14px; }
.code-block.inline pre { font-size: 0.85rem; }

/* ===== CTA ===== */
.cta { max-width: var(--maxw); margin: 80px auto 0; padding: 0 24px; scroll-margin-top: 90px; }
.cta-card { padding: 50px 30px; text-align: center; }
.cta-card h2 { font-size: clamp(1.6rem, 4vw, 2.4rem); margin-bottom: 12px; }
.cta-card p { color: var(--muted); margin-bottom: 26px; }
.cta-btns { display: flex; gap: 14px; justify-content: center; flex-wrap: wrap; }

/* ===== FAQ ===== */
.faq-list { display: grid; gap: 18px; max-width: 860px; margin: 0 auto; }
.faq-item {
  padding: 22px 28px;
  transition: border-color .2s, background .2s, box-shadow .2s;
  overflow: hidden;
}
.faq-item summary {
  cursor: pointer;
  font-weight: 700;
  font-size: 1.05rem;
  list-style: none;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 14px;
  color: var(--text);
  position: relative;
  padding-right: 46px;
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after {
  content: '+';
  font-family: 'Inter', monospace;
  font-size: 1.3rem;
  font-weight: 700;
  color: var(--green-soft);
  width: 30px;
  height: 30px;
  border-radius: 8px;
  border: 1px solid rgba(29,185,84,0.45);
  display: inline-grid;
  place-items: center;
  background: rgba(29,185,84,0.1);
  transition: transform .25s ease, background .2s;
  position: absolute;
  right: 0;
  top: 50%;
  transform: translateY(-50%);
}
.faq-item[open] summary::after {
  content: '×';
  background: rgba(29,185,84,0.2);
}
.faq-item p {
  color: var(--muted);
  font-size: 0.95rem;
  line-height: 1.7;
  margin-top: 14px;
  padding-left: 2px;
}
.faq-item a { color: var(--green-soft); }
.faq-item:hover { border-color: rgba(29,185,84,0.35); background: rgba(255,255,255,0.02); box-shadow: 0 10px 30px rgba(0,0,0,0.15); }
.faq-item[open] { border-color: rgba(29,185,84,0.45); background: rgba(29,185,84,0.04); }
@media (max-width: 560px) {
  .faq-item { padding: 18px 20px; }
  .faq-item summary { font-size: 0.98rem; }
}

/* ===== Footer ===== */
.footer { margin-top: 80px; padding: 40px 24px; border-top: 1px solid var(--glass-border); }
.footer-inner { max-width: var(--maxw); margin: 0 auto; text-align: center; display: flex; flex-direction: column; gap: 12px; align-items: center; }
.footer-brand { display: flex; align-items: center; gap: 10px; font-weight: 800; font-size: 1.2rem; }
.footer-links { display: flex; gap: 22px; margin-top: 6px; }
.footer-links a { color: var(--muted); transition: color 0.2s; }
.footer-links a:hover { color: var(--green-soft); }

/* ===== AOS tuning ===== */
[data-aos] { pointer-events: none; }
[data-aos].aos-animate { pointer-events: auto; }
@media (prefers-reduced-motion: reduce) {
  [data-aos] { opacity: 1 !important; transform: none !important; transition: none !important; }
}

/* ===== Responsive ===== */
@media (max-width: 900px) {
  .hero { grid-template-columns: 1fr; }
  .grid { grid-template-columns: repeat(2, 1fr); }
  .controls-grid { grid-template-columns: repeat(2, 1fr); }
  .install-wrap { grid-template-columns: 1fr; }
  .nav-links { display: none; }
}
@media (max-width: 560px) {
  .grid, .controls-grid { grid-template-columns: 1fr; }
  .hero { padding: 24px 18px; }
  .hero-stats { gap: 18px; }
  .navbar { padding: 10px 16px; }
  .section { padding: 0 18px; margin-top: 56px; }
  .about { padding: 0 18px; }
  .install-card { padding: 20px; }
  .code-block { padding: 14px 80px 14px 14px; }
  .btn { width: 100%; justify-content: center; }
  .hero-cta { flex-direction: column; }
  .hero-cta .btn { width: 100%; }
  .demo-stage { padding: 40px 12px; min-height: 180px; }
  .dp-current { font-size: 1rem; }
  .cta-card { padding: 32px 20px; }
  #backToTop { right: 14px; bottom: 14px; width: 40px; height: 40px; }
}
.demo-wrap {
  max-width: 720px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 22px;
}
.demo-stage {
  position: relative;
  border-radius: var(--radius);
  padding: 60px 20px;
  display: flex;
  justify-content: center;
  align-items: center;
  min-height: 220px;
  overflow: hidden;
  background:
    linear-gradient(135deg, rgba(29,185,84,0.10), rgba(0,0,0,0)) ,
    url('assets/1.png') center/cover no-repeat;
  border: 1px solid var(--glass-border);
}
.demo-stage::before {
  content: '';
  position: absolute; inset: 0;
  background: rgba(6,10,7,0.55);
  backdrop-filter: blur(2px);
  -webkit-backdrop-filter: blur(2px);
  border-radius: inherit;
}
.demo-player {
  position: relative;
  z-index: 1;
  width: min(360px, 90%);
  padding: 22px 20px 18px;
  border-radius: 16px;
  text-align: center;
  background: rgba(15, 20, 16, 0.72);
  border: 1px solid var(--glass-border);
  box-shadow: 0 12px 40px rgba(0,0,0,0.5);
  overflow: hidden;
}
.demo-badge {
  position: absolute;
  top: 10px; right: 10px;
  font-size: 0.6rem;
  font-weight: 800;
  letter-spacing: 1px;
  color: var(--green-soft);
  border: 1px solid rgba(29,185,84,0.4);
  background: rgba(29,185,84,0.12);
  padding: 2px 7px;
  border-radius: 6px;
}
.dp-title {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 5px;
  font-size: 0.72rem;
  color: var(--muted);
  font-weight: 600;
  margin-bottom: 12px;
  min-height: 1em;
}
.dp-note { color: var(--green-soft); flex-shrink: 0; }
.dp-song-name { color: var(--text); }
.dp-dot { color: var(--muted); margin: 0 1px; }
.dp-artist { color: var(--muted); }
.dp-current {
  font-size: 1.12rem;
  font-weight: 700;
  color: var(--green-soft);
  line-height: 1.4;
  min-height: 1.5em;
  transition: opacity 0.25s;
}
.dp-next {
  font-size: 0.85rem;
  color: #b3b3b3;
  margin-top: 8px;
  min-height: 1.2em;
  transition: opacity 0.25s;
}
.dp-progress {
  position: absolute;
  left: 0; right: 0; bottom: 0;
  height: 3px;
  background: rgba(255,255,255,0.08);
}
.dp-progress-fill {
  height: 100%;
  width: 0%;
  background: var(--green);
  transition: width 0.25s linear;
}
.demo-controls {
  padding: 20px;
  border-radius: var(--radius);
  text-align: center;
}
.dc-row {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 18px;
  margin-bottom: 12px;
}
.dc-btn {
  width: 44px; height: 44px;
  border-radius: 50%;
  border: 1px solid rgba(255,255,255,0.25);
  background: none;
  color: var(--muted);
  cursor: pointer;
  transition: color 0.18s, border-color 0.18s, transform 0.15s;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}
.dc-btn:hover { color: var(--text); border-color: rgba(255,255,255,0.6); }
.dc-btn:active { transform: scale(0.9); }
.dc-btn svg { display: block; }
.dc-play {
  width: 56px; height: 56px;
  color: var(--text);
  border-color: rgba(255,255,255,0.5);
}
.dc-play:hover { color: var(--green-soft); border-color: var(--green-soft); }
.dc-song {
  font-size: 0.8rem;
  color: var(--muted);
  font-weight: 600;
  margin-bottom: 6px;
}
.dc-hint { margin: 6px 0 0; }

#backToTop {
  position: fixed;
  right: 18px;
  bottom: 18px;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  border: 1px solid rgba(255,255,255,0.25);
  background: rgba(10,14,10,0.7);
  color: var(--text);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  z-index: 60;
  opacity: 0;
  pointer-events: none;
  transform: translateY(10px);
  transition: opacity .25s ease, transform .25s ease, background .2s;
  backdrop-filter: blur(10px);
}
#backToTop:hover { background: rgba(29,185,84,0.2); border-color: var(--green-soft); }
#backToTop.visible { opacity: 1; pointer-events: auto; transform: translateY(0); }

@media (max-width: 560px) {
  .demo-stage { padding: 40px 12px; min-height: 180px; }
  .dp-current { font-size: 1rem; }
}
