/* ─── RESET & BASE ─────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --accent:            #1db954;
  --accent-rgb:        29, 185, 84;
  --fi-accent-global:  #1db954;
  --accent-1:  #1db954;
  --accent-2:  #6e5afc;
  --accent-3:  #e84393;
  --bg:        #080a0e;
  --bg-card:   #0e1117;
  --border:    rgba(255,255,255,.07);
  --text:      #f0f0f0;
  --muted:     #7a8390;
  --radius:    14px;
  --radius-sm: 8px;
  --mono:      'Space Mono', monospace;
  --sans:      'Syne', sans-serif;
}

html { scroll-behavior: smooth; }
body { background: var(--bg); color: var(--text); font-family: var(--sans); font-size: 16px; line-height: 1.6; overflow-x: hidden; }
a { color: inherit; text-decoration: none; }

/* ─── BACKGROUND ────────────────────────────────────── */
.bg-layer { position: fixed; inset: 0; z-index: 0; pointer-events: none; overflow: hidden; }
.blob { position: absolute; border-radius: 50%; filter: blur(90px); opacity: .35; animation: drift 18s ease-in-out infinite alternate; }
.blob-1 { width: 600px; height: 600px; background: radial-gradient(circle, rgba(29,185,84,.33), transparent 70%); top: -150px; left: -100px; animation-duration: 20s; }
.blob-2 { width: 500px; height: 500px; background: radial-gradient(circle, rgba(29,185,84,.2), transparent 70%); top: 30%; right: -80px; animation-duration: 24s; animation-delay: -6s; }
.blob-3 { width: 400px; height: 400px; background: radial-gradient(circle, rgba(29,185,84,.15), transparent 70%); bottom: 10%; left: 20%; animation-duration: 28s; animation-delay: -12s; }
@keyframes drift { from { transform: translate(0,0) scale(1); } to { transform: translate(40px,30px) scale(1.1); } }
.grain { position: absolute; 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='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='.04'/%3E%3C/svg%3E"); background-size: 200px 200px; opacity: .4; }

/* ─── NAV ───────────────────────────────────────────── */
.nav { position: fixed; top: 0; left: 0; right: 0; z-index: 100; padding: 0 24px; background: rgba(8,10,14,.7); backdrop-filter: blur(20px); border-bottom: 1px solid var(--border); }
.nav-inner { max-width: 1100px; margin: 0 auto; display: flex; align-items: center; justify-content: space-between; height: 60px; }
.logo { display: flex; align-items: center; gap: 8px; font-family: var(--sans); font-weight: 800; font-size: 1.1rem; letter-spacing: -.02em; }
.logo-dot { width: 10px; height: 10px; border-radius: 50%; background: var(--accent); box-shadow: 0 0 10px var(--accent); animation: pulse-dot 2s ease-in-out infinite; transition: background .4s, box-shadow .4s; }
@keyframes pulse-dot { 0%,100% { box-shadow: 0 0 6px var(--accent); } 50% { box-shadow: 0 0 18px var(--accent), 0 0 30px rgba(var(--accent-rgb),.33); } }
.nav-links { display: flex; align-items: center; gap: 28px; font-size: .9rem; color: var(--muted); }
.nav-links a:hover { color: var(--text); }
.nav-gh { display: flex; align-items: center; gap: 6px; padding: 6px 14px; border: 1px solid var(--border); border-radius: 100px; transition: border-color .2s, color .2s; }
.nav-gh:hover { border-color: var(--accent); color: var(--accent); }

/* ─── SHARED ────────────────────────────────────────── */
.section-inner, .hero-inner, .nav-inner, .footer-inner { max-width: 1100px; margin: 0 auto; padding: 0 24px; position: relative; z-index: 1; }
section { padding: 110px 0; position: relative; z-index: 1; }
.section-label { font-family: var(--mono); font-size: .75rem; letter-spacing: .18em; text-transform: uppercase; color: var(--accent); margin-bottom: 14px; transition: color .4s; }
.section-title { font-size: clamp(2rem, 4vw, 3rem); font-weight: 800; line-height: 1.15; letter-spacing: -.03em; margin-bottom: 56px; }
.section-title em { font-style: normal; color: var(--accent); transition: color .4s; }

/* ─── RAINBOW GRADIENT TEXT (original) ──────────────── */
.gradient-text {
  background: linear-gradient(90deg, var(--accent-1), var(--accent-2), var(--accent-3));
  -webkit-background-clip: text; -webkit-text-fill-color: transparent;
  background-clip: text;
  animation: hue-shift 6s linear infinite;
}
@keyframes hue-shift { 0% { filter: hue-rotate(0deg); } 100% { filter: hue-rotate(360deg); } }

/* ─── BUTTONS ───────────────────────────────────────── */
.btn-primary, .btn-ghost { display: inline-flex; align-items: center; gap: 8px; padding: 13px 28px; border-radius: 100px; font-family: var(--sans); font-weight: 700; font-size: .95rem; cursor: pointer; transition: transform .15s, box-shadow .15s, background .4s, border-color .4s; }
.btn-primary:hover, .btn-ghost:hover { transform: translateY(-2px); }
.btn-primary { background: var(--accent); color: #000; box-shadow: 0 0 24px rgba(var(--accent-rgb),.33); }
.btn-primary:hover { box-shadow: 0 0 40px rgba(var(--accent-rgb),.5); }
.btn-ghost { border: 1px solid var(--border); color: var(--text); }
.btn-ghost:hover { border-color: var(--accent); color: var(--accent); }

/* ─── HERO ───────────────────────────────────────────── */
.hero { padding-top: 120px; padding-bottom: 80px; }
.hero-inner { display: grid; grid-template-columns: 1fr 1fr; align-items: center; gap: 60px; }
.hero-text { display: flex; flex-direction: column; align-items: flex-start; }
.badge { display: inline-block; background: rgba(var(--accent-rgb),.12); border: 1px solid rgba(var(--accent-rgb),.3); color: var(--accent); border-radius: 100px; padding: 4px 14px; font-size: .78rem; font-family: var(--mono); letter-spacing: .1em; margin-bottom: 24px; transition: background .4s, border-color .4s, color .4s; }
.hero-title { font-size: clamp(2.8rem, 5vw, 5.5rem); font-weight: 800; line-height: 1.05; letter-spacing: -.04em; margin-bottom: 24px; }
.hero-sub { color: var(--muted); font-size: 1rem; margin-bottom: 36px; line-height: 1.7; }
.hero-actions { display: flex; gap: 14px; flex-wrap: wrap; }
.hero-demo { display: flex; justify-content: center; }

/* ─── DEMO CARD ─────────────────────────────────────── */
.demo-card {
  position: relative; width: 100%; max-width: 440px;
  background: var(--demo-bg, #0e1117);
  border: 1px solid var(--border); border-radius: 18px; overflow: hidden;
  box-shadow: 0 40px 100px rgba(0,0,0,.6), 0 0 0 1px rgba(var(--accent-rgb),.1);
  display: flex; height: 300px; transition: box-shadow .4s, background .5s;
}
.demo-card:hover { box-shadow: 0 40px 120px rgba(0,0,0,.7), 0 0 0 1px rgba(var(--accent-rgb),.3); }
.demo-sidebar { width: 56px; background: var(--demo-sidebar, #000); border-right: 1px solid var(--border); display: flex; flex-direction: column; align-items: center; padding: 14px 0; gap: 18px; transition: background .5s; }
.demo-logo { font-size: 1.2rem; }
.demo-nav-items { display: flex; flex-direction: column; gap: 9px; }
.demo-nav-item { width: 24px; height: 5px; border-radius: 3px; background: rgba(255,255,255,.12); transition: background .5s; }
.demo-nav-item.active { background: var(--demo-accent, #1db954); }
.demo-playlists { display: flex; flex-direction: column; gap: 6px; margin-top: auto; }
.demo-playlist-item { width: 24px; height: 4px; border-radius: 2px; background: rgba(255,255,255,.07); }
.demo-main { flex: 1; display: flex; flex-direction: column; }
.demo-topbar { display: flex; align-items: center; justify-content: space-between; padding: 10px 12px; border-bottom: 1px solid var(--border); }
.demo-search { width: 80px; height: 7px; border-radius: 4px; background: rgba(255,255,255,.1); }
.demo-avatar { width: 20px; height: 20px; border-radius: 50%; background: var(--demo-accent, #1db954); transition: background .5s; }
.demo-content { flex: 1; padding: 10px 12px; overflow: hidden; }
.demo-card-grid { display: flex; gap: 7px; margin-bottom: 12px; }
.demo-mini-card { flex: 1; height: 48px; border-radius: 7px; background: rgba(255,255,255,.06); transition: background .5s; }
.demo-mini-card:first-child { background: rgba(var(--accent-rgb),.18); }
.demo-track-list { display: flex; flex-direction: column; gap: 7px; }
.demo-track { height: 6px; border-radius: 3px; background: rgba(255,255,255,.07); }
.demo-track.active { background: var(--demo-accent, #1db954); width: 60%; transition: background .5s; }
.demo-player { border-top: 1px solid var(--border); padding: 8px 12px; background: var(--demo-player, rgba(0,0,0,.4)); transition: background .5s; }
.demo-progress-wrap { height: 3px; border-radius: 2px; background: rgba(255,255,255,.1); margin-bottom: 7px; }
.demo-progress { width: 40%; height: 100%; border-radius: 2px; background: var(--demo-accent, #1db954); transition: background .5s; }
.demo-controls { display: flex; gap: 7px; align-items: center; }
.demo-ctrl { width: 14px; height: 14px; border-radius: 50%; background: rgba(255,255,255,.12); }
.demo-ctrl.play { background: var(--demo-accent, #1db954); width: 20px; height: 20px; transition: background .5s; }

/* Picker swatches */
.demo-picker { position: absolute; bottom: 14px; right: 12px; display: flex; gap: 6px; align-items: center; }
.picker-swatch { width: 18px; height: 18px; border-radius: 50%; background: var(--c); cursor: pointer; border: 2px solid transparent; transition: transform .2s, border-color .2s, box-shadow .2s; }
.picker-swatch:hover { transform: scale(1.3); border-color: rgba(255,255,255,.5); box-shadow: 0 0 10px var(--c); }
.picker-swatch.active { border-color: #fff; transform: scale(1.2); box-shadow: 0 0 14px var(--c); }

/* ─── FEATURES ──────────────────────────────────────── */
.features { background: linear-gradient(180deg, transparent, rgba(255,255,255,.015), transparent); }
.features-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 18px; }
.feature-card { background: var(--bg-card); border: 1px solid var(--border); border-radius: var(--radius); padding: 32px; opacity: 0; transform: translateY(24px); transition: opacity .5s, transform .5s, border-color .25s, box-shadow .25s; }
.feature-card.visible { opacity: 1; transform: translateY(0); }
.feature-card:hover { border-color: rgba(var(--accent-rgb),.3); box-shadow: 0 0 32px rgba(var(--accent-rgb),.06); }

/* Icons: all use the global accent color */
.feature-icon { width: 48px; height: 48px; margin-bottom: 20px; --fi-accent: var(--fi-accent-global); }
.feature-icon svg { width: 100%; height: 100%; }

.feature-card h3 { font-size: 1.15rem; font-weight: 700; margin-bottom: 10px; }
.feature-card p { color: var(--muted); font-size: .92rem; line-height: 1.65; }
.feature-card code { font-family: var(--mono); font-size: .8rem; background: rgba(255,255,255,.07); padding: 1px 5px; border-radius: 4px; }

/* ─── COLORS SECTION ────────────────────────────────── */
.color-groups { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 20px; }
.color-group { background: var(--bg-card); border: 1px solid var(--border); border-radius: var(--radius); padding: 26px; }
.color-group h4 { font-family: var(--mono); font-size: .72rem; letter-spacing: .14em; text-transform: uppercase; color: var(--muted); margin-bottom: 16px; }
.color-items { display: flex; flex-direction: column; gap: 11px; }
.color-item { display: flex; align-items: center; gap: 10px; font-size: .88rem; color: var(--text); }
.ci-dot { width: 14px; height: 14px; border-radius: 50%; border: 1px solid rgba(255,255,255,.15); flex-shrink: 0; }

/* ─── PRESETS (original style) ───────────────────────── */
.presets { padding: 60px 0; overflow: hidden; }
.presets-strip { display: flex; gap: 12px; overflow-x: auto; padding-bottom: 8px; scrollbar-width: none; }
.presets-strip::-webkit-scrollbar { display: none; }
.preset { flex: 1 1 0; min-width: 120px; height: 110px; border-radius: var(--radius); border: 1px solid var(--border); position: relative; overflow: hidden; cursor: default; background: var(--b); transition: transform .25s, box-shadow .25s; }
.preset:hover { transform: scale(1.04); box-shadow: 0 8px 30px rgba(0,0,0,.4); }
.preset::before { content: ''; position: absolute; inset: 0; background: linear-gradient(135deg, var(--a) 0%, transparent 60%); opacity: .35; }
.preset::after { content: attr(data-name); position: absolute; bottom: 10px; left: 12px; font-size: .65rem; font-family: var(--mono); color: var(--c); letter-spacing: .04em; white-space: nowrap; }

/* ─── INSTALL ────────────────────────────────────────── */
.install-tabs { display: flex; margin-bottom: 32px; }
.tab-btn { background: none; border: none; cursor: pointer; font-family: var(--sans); font-size: .95rem; font-weight: 600; color: var(--muted); padding: 10px 20px; border-bottom: 2px solid transparent; transition: color .2s, border-color .2s; display: flex; align-items: center; gap: 8px; }
.tab-btn.active { color: var(--text); border-bottom-color: var(--accent); }
.tab-btn:hover { color: var(--text); }
.recommended { font-family: var(--mono); font-size: .65rem; background: rgba(var(--accent-rgb),.15); color: var(--accent); padding: 2px 7px; border-radius: 100px; letter-spacing: .06em; transition: background .4s, color .4s; }
.hidden { display: none !important; }
.install-steps { list-style: none; display: flex; flex-direction: column; gap: 16px; max-width: 540px; }
.install-steps li { display: flex; align-items: center; gap: 16px; font-size: 1rem; }
.step-num { width: 32px; height: 32px; border-radius: 50%; background: rgba(var(--accent-rgb),.12); border: 1px solid rgba(var(--accent-rgb),.3); color: var(--accent); font-family: var(--mono); font-size: .8rem; display: grid; place-items: center; flex-shrink: 0; transition: background .4s, border-color .4s, color .4s; }
.code-block { background: #0a0d13; border: 1px solid var(--border); border-radius: var(--radius-sm); margin-bottom: 16px; overflow: hidden; }
.code-header { display: flex; align-items: center; justify-content: space-between; padding: 10px 16px; border-bottom: 1px solid var(--border); font-family: var(--mono); font-size: .75rem; color: var(--muted); }
.copy-btn { background: none; border: 1px solid var(--border); color: var(--muted); border-radius: 4px; padding: 2px 10px; font-size: .72rem; cursor: pointer; font-family: var(--mono); transition: color .2s, border-color .2s; }
.copy-btn:hover, .copy-btn.copied { color: var(--accent); border-color: var(--accent); }
pre { padding: 16px; overflow-x: auto; }
code { font-family: var(--mono); font-size: .82rem; color: #a8d8a8; line-height: 1.7; }

/* ─── HOW TO ─────────────────────────────────────────── */
.steps-row { display: flex; align-items: center; flex-wrap: wrap; }
.step-card { flex: 1; min-width: 200px; background: var(--bg-card); border: 1px solid var(--border); border-radius: var(--radius); padding: 32px; }
.step-divider { font-size: 1.8rem; color: var(--muted); padding: 0 12px; flex-shrink: 0; }
.step-number { font-family: var(--mono); font-size: 2.5rem; font-weight: 700; color: rgba(var(--accent-rgb),.2); line-height: 1; margin-bottom: 14px; transition: color .4s; }
.step-card h3 { font-size: 1.1rem; font-weight: 700; margin-bottom: 10px; }
.step-card p { font-size: .9rem; color: var(--muted); line-height: 1.6; }
.step-card strong { color: var(--text); }

/* ─── CTA ────────────────────────────────────────────── */
.cta { text-align: center; padding: 120px 0; }
.cta h2 { font-size: clamp(2.5rem, 6vw, 5rem); font-weight: 800; letter-spacing: -.04em; margin-bottom: 16px; }
.cta p { color: var(--muted); font-size: 1.1rem; margin-bottom: 40px; }
.cta-actions { display: flex; gap: 14px; justify-content: center; flex-wrap: wrap; }

/* ─── FOOTER ─────────────────────────────────────────── */
.footer { border-top: 1px solid var(--border); padding: 32px 0; z-index: 1; position: relative; }
.footer-inner { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 12px; font-size: .85rem; color: var(--muted); }
.footer-inner a { color: var(--muted); text-decoration: underline; text-underline-offset: 3px; }
.footer-inner a:hover { color: var(--accent); }
.footer-gh { font-family: var(--mono); font-size: .8rem; text-decoration: none !important; border: 1px solid var(--border); border-radius: 6px; padding: 4px 12px; transition: border-color .2s, color .2s; }
.footer-gh:hover { border-color: var(--accent) !important; color: var(--accent) !important; }
.logo-dot2 { opacity: 0.8; width: 10px; height: 10px; border-radius: 50%; background: #ebd534; animation: pulse-dot 2s ease-in-out infinite; transition: background .4s, box-shadow .4s; align-items: center; gap: 8px; }
@keyframes pulse-dot { 0%,100% { box-shadow: 0 0 6px var(--accent); } 50% { box-shadow: 0 0 18px var(--accent), 0 0 30px rgba(var(--accent-rgb),.33); } }

/* ─── RESPONSIVE ─────────────────────────────────────── */
@media (max-width: 860px) {
  .hero-inner { grid-template-columns: 1fr; gap: 48px; }
  .hero-demo { justify-content: flex-start; }
  .demo-card { max-width: 100%; }
}
@media (max-width: 700px) {
  .nav-links a:not(.nav-gh) { display: none; }
  .hero-title { font-size: clamp(2.6rem,10vw,4rem); }
  .steps-row { flex-direction: column; }
  .step-divider { transform: rotate(90deg); }
}

/* ─── COLOR DOTS — smooth transition on theme change ── */
.ci-dot {
  transition: background .4s ease, box-shadow .4s ease;
}

/* ─── FEATURE ICONS (PNG) ───────────────────────────── */
.feature-icon {
  width: 56px; height: 56px;
  margin-bottom: 20px;
}
.feature-icon img {
  width: 100%; height: 100%;
  object-fit: contain;
  transition: opacity .3s;
}
.feature-icon img.swapping {
  opacity: 0;
}
