:root {
  --bg-canvas: #030509;
  --bg-panel: #121116;
  --bg-elevated: #1a191e;
  --border: #242428;
  --text: #e9edf5;
  --text-dim: #9a9aa4;
  --accent-blue: #7cb0fc;
  --accent-green: #22c55e;
  --accent-green-hover: #1fae55;
  --accent-purple: #7c6bfe;
  --accent-pink: #ff5d7a;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--bg-canvas);
  color: var(--text);
  font-family: "Plus Jakarta Sans", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  overflow-x: hidden;
  position: relative;
}

/* ---- Decorative background: animated visualizer bars + drifting glow blobs ---- */
.hero-viz-bg {
  position: fixed;
  inset: 0;
  width: 100%;
  height: 100%;
  z-index: 0;
  opacity: 0.55;
  pointer-events: none;
}

.landing-glow {
  position: fixed;
  border-radius: 50%;
  filter: blur(90px);
  z-index: 0;
  pointer-events: none;
  opacity: 0.35;
}

.glow-a {
  width: 520px;
  height: 520px;
  background: var(--accent-purple);
  top: -160px;
  left: -120px;
  animation: driftA 22s ease-in-out infinite;
}

.glow-b {
  width: 460px;
  height: 460px;
  background: var(--accent-pink);
  top: 20%;
  right: -160px;
  animation: driftB 26s ease-in-out infinite;
}

.glow-c {
  width: 420px;
  height: 420px;
  background: var(--accent-blue);
  bottom: -140px;
  left: 30%;
  animation: driftC 30s ease-in-out infinite;
}

@keyframes driftA {
  0%, 100% { transform: translate(0, 0) scale(1); }
  50% { transform: translate(60px, 80px) scale(1.15); }
}
@keyframes driftB {
  0%, 100% { transform: translate(0, 0) scale(1); }
  50% { transform: translate(-70px, 50px) scale(1.1); }
}
@keyframes driftC {
  0%, 100% { transform: translate(0, 0) scale(1); }
  50% { transform: translate(50px, -60px) scale(1.12); }
}

main, header, footer {
  position: relative;
  z-index: 1;
}

/* ---- Topbar ---- */
.l-topbar {
  display: flex;
  align-items: center;
  gap: 24px;
  padding: 18px 32px;
  max-width: 1200px;
  margin: 0 auto;
}

.l-brand {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-shrink: 0;
}

.l-brand-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  border-radius: 8px;
  background: #306beb;
  color: #fff;
  font-size: 11px;
  letter-spacing: -2px;
}

.l-brand-name {
  font-weight: 800;
  font-size: 18px;
  background: linear-gradient(90deg, #ffffff, var(--accent-blue));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.l-nav {
  display: flex;
  gap: 28px;
  flex: 1;
  justify-content: center;
}

.l-nav a {
  color: var(--text-dim);
  text-decoration: none;
  font-size: 14px;
  font-weight: 500;
  transition: color 0.15s;
}

.l-nav a:hover {
  color: var(--text);
}

/* ---- Buttons (same glossy 3D language as the editor app) ---- */
.l-btn {
  border: 1px solid transparent;
  border-radius: 8px;
  padding: 10px 18px;
  cursor: pointer;
  font-family: inherit;
  font-weight: 600;
  font-size: 14px;
  white-space: nowrap;
  transition: filter 0.12s, transform 0.08s, box-shadow 0.15s;
}

.l-btn:active {
  transform: scale(0.97);
}

.l-btn-green {
  background: linear-gradient(180deg, #4ee28c 0%, var(--accent-green) 52%, #189a4a 100%);
  color: #06210f;
  border-color: rgba(6, 33, 15, 0.4);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.5), inset 0 -2px 3px rgba(0, 0, 0, 0.25), 0 3px 14px rgba(34, 197, 94, 0.4), 0 1px 2px rgba(0, 0, 0, 0.3);
}

.l-btn-green:hover {
  background: linear-gradient(180deg, #5cea98 0%, var(--accent-green-hover) 52%, #15863f 100%);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.55), inset 0 -2px 3px rgba(0, 0, 0, 0.22), 0 6px 22px rgba(34, 197, 94, 0.5), 0 1px 3px rgba(0, 0, 0, 0.3);
  transform: translateY(-1px);
}

.l-btn-ghost {
  background: var(--bg-elevated);
  border-color: var(--border);
  color: var(--text);
}

.l-btn-ghost:hover {
  border-color: var(--accent-green);
  color: var(--accent-green);
}

.l-btn-sm {
  padding: 7px 14px;
  font-size: 13px;
}

.l-btn-lg {
  padding: 15px 30px;
  font-size: 16px;
  border-radius: 10px;
}

.full-width {
  width: 100%;
}

/* ---- Scroll-reveal ---- */
[data-reveal] {
  opacity: 0;
  transform: translateY(22px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}

[data-reveal].is-visible {
  opacity: 1;
  transform: translateY(0);
}

/* ---- Hero ---- */
.l-hero {
  max-width: 880px;
  margin: 0 auto;
  padding: 72px 24px 56px;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.l-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 8px 16px;
  border-radius: 999px;
  background: rgba(124, 107, 254, 0.12);
  border: 1px solid rgba(124, 107, 254, 0.35);
  color: #c9c0ff;
  font-size: 13px;
  font-weight: 600;
  margin-bottom: 26px;
  animation: badgePulse 3s ease-in-out infinite;
}

@keyframes badgePulse {
  0%, 100% { box-shadow: 0 0 0 rgba(124, 107, 254, 0); }
  50% { box-shadow: 0 0 18px rgba(124, 107, 254, 0.35); }
}

.l-hero h1 {
  font-size: clamp(34px, 6vw, 58px);
  line-height: 1.12;
  font-weight: 800;
  margin: 0 0 20px;
  letter-spacing: -0.01em;
}

.l-grad-text {
  background: linear-gradient(90deg, var(--accent-purple), var(--accent-pink) 60%, var(--accent-blue));
  background-size: 200% auto;
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  animation: gradShift 6s ease-in-out infinite;
}

@keyframes gradShift {
  0%, 100% { background-position: 0% 50%; }
  50% { background-position: 100% 50%; }
}

.l-sub {
  font-size: 17px;
  line-height: 1.6;
  color: var(--text-dim);
  max-width: 640px;
  margin: 0 0 34px;
}

.l-cta-row {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
  margin-bottom: 48px;
}

.l-cta-note {
  font-size: 13px;
  color: var(--text-dim);
}

.l-hero-stats {
  display: flex;
  align-items: center;
  gap: 28px;
  padding: 18px 32px;
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--border);
  backdrop-filter: blur(6px);
}

.l-stat {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2px;
}

.l-stat strong {
  font-size: 22px;
  font-weight: 800;
  background: linear-gradient(90deg, #fff, var(--accent-blue));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.l-stat span {
  font-size: 12px;
  color: var(--text-dim);
}

.l-stat-sep {
  width: 1px;
  height: 32px;
  background: var(--border);
}

/* ---- Section shells ---- */
main section {
  max-width: 1100px;
  margin: 0 auto;
  padding: 90px 24px;
}

main section h2 {
  text-align: center;
  font-size: clamp(26px, 4vw, 36px);
  font-weight: 800;
  margin: 0 0 10px;
}

.l-section-sub {
  text-align: center;
  color: var(--text-dim);
  font-size: 15px;
  margin: 0 0 48px;
}

/* ---- Guide steps ---- */
.l-steps {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
}

.l-step {
  background: var(--bg-panel);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 26px 22px;
  transition: transform 0.25s ease, border-color 0.25s ease, box-shadow 0.25s ease;
}

.l-step:hover {
  transform: translateY(-5px);
  border-color: rgba(124, 176, 252, 0.4);
  box-shadow: 0 14px 30px rgba(0, 0, 0, 0.35);
}

.l-step-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 14px;
}

.l-step-num {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 26px;
  height: 26px;
  border-radius: 50%;
  background: rgba(124, 176, 252, 0.15);
  color: var(--accent-blue);
  font-size: 13px;
  font-weight: 700;
}

.l-step-icon {
  font-size: 24px;
}

.l-step h3 {
  font-size: 16px;
  margin: 0 0 8px;
}

.l-step p {
  font-size: 13.5px;
  line-height: 1.55;
  color: var(--text-dim);
  margin: 0;
}

/* ---- Lyrics deep-dive guide (a vertical timeline, distinct from the 4-step overview grid above
   it, since this is a longer sub-walkthrough for one specific feature) ---- */
.l-lyrics-steps {
  max-width: 720px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.l-lyrics-step {
  display: flex;
  gap: 20px;
  padding: 18px 0;
  border-bottom: 1px solid var(--border);
}

.l-lyrics-step:last-child {
  border-bottom: none;
}

.l-lyrics-num {
  flex-shrink: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: rgba(124, 107, 254, 0.15);
  border: 1px solid rgba(124, 107, 254, 0.35);
  color: #c9c0ff;
  font-size: 14px;
  font-weight: 700;
}

.l-lyrics-step h3 {
  font-size: 16px;
  margin: 0 0 6px;
}

.l-lyrics-step p {
  font-size: 14px;
  line-height: 1.6;
  color: var(--text-dim);
  margin: 0;
}

.l-lyrics-step strong {
  color: var(--text);
}

.l-lyrics-note {
  max-width: 720px;
  margin: 28px auto 0;
  padding: 14px 18px;
  border-radius: 12px;
  background: rgba(124, 176, 252, 0.08);
  border: 1px solid rgba(124, 176, 252, 0.25);
  font-size: 13.5px;
  color: var(--text-dim);
  text-align: left;
}

.l-lyrics-note strong {
  color: var(--text);
}

/* ---- Feature grid ---- */
.l-feature-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}

.l-feature-card {
  background: linear-gradient(160deg, rgba(255, 255, 255, 0.04), rgba(255, 255, 255, 0.01));
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 26px 22px;
  transition: transform 0.25s ease, border-color 0.25s ease;
}

.l-feature-card:hover {
  transform: translateY(-5px);
  border-color: rgba(34, 197, 94, 0.4);
}

.l-feature-icon {
  font-size: 28px;
  display: block;
  margin-bottom: 14px;
}

.l-feature-card h3 {
  font-size: 16px;
  margin: 0 0 8px;
}

.l-feature-card p {
  font-size: 13.5px;
  line-height: 1.55;
  color: var(--text-dim);
  margin: 0;
}

/* ---- Pricing ---- */
.l-plans {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 18px;
}

.l-plan {
  position: relative;
  background: var(--bg-panel);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 28px 22px;
  text-align: center;
  display: flex;
  flex-direction: column;
  gap: 10px;
  transition: transform 0.25s ease, border-color 0.25s ease;
}

.l-plan:hover {
  transform: translateY(-5px);
}

.l-plan h3 {
  font-size: 15px;
  color: var(--text-dim);
  font-weight: 600;
  margin: 0;
}

.l-price {
  font-size: 30px;
  font-weight: 800;
}

.l-plan-desc {
  font-size: 13px;
  color: var(--text-dim);
  margin: 0 0 8px;
  min-height: 34px;
}

.l-plan-highlight {
  border-color: var(--accent-green);
  background: linear-gradient(160deg, rgba(34, 197, 94, 0.12), rgba(34, 197, 94, 0.02));
  box-shadow: 0 0 0 1px rgba(34, 197, 94, 0.3), 0 16px 36px rgba(34, 197, 94, 0.15);
}

.l-plan-badge {
  position: absolute;
  top: -12px;
  left: 50%;
  transform: translateX(-50%);
  background: var(--accent-green);
  color: #06210f;
  font-size: 11px;
  font-weight: 700;
  padding: 4px 12px;
  border-radius: 999px;
}

.l-pricing-note {
  text-align: center;
  color: var(--text-dim);
  font-size: 13px;
  margin-top: 28px;
}

/* ---- Final CTA ---- */
.l-final-cta {
  text-align: center;
  padding: 70px 24px 100px;
}

.l-final-cta h2 {
  font-size: clamp(24px, 4vw, 34px);
  margin: 0 0 10px;
}

.l-final-cta p {
  color: var(--text-dim);
  margin: 0 0 28px;
}

/* ---- Footer ---- */
.l-footer {
  text-align: center;
  padding: 24px;
  color: var(--text-dim);
  font-size: 13px;
  border-top: 1px solid var(--border);
}

/* ---- Toast (replaces alert() — see showToast() in landing.js) ---- */
.toast {
  position: fixed;
  bottom: 28px;
  left: 50%;
  transform: translateX(-50%) translateY(16px);
  max-width: min(90vw, 420px);
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  color: var(--text);
  padding: 14px 20px;
  border-radius: 10px;
  font-size: 13.5px;
  line-height: 1.5;
  box-shadow: 0 14px 36px rgba(0, 0, 0, 0.45);
  z-index: 300;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.25s ease, transform 0.25s ease;
}

.toast.show {
  opacity: 1;
  transform: translateX(-50%) translateY(0);
}

/* ---- Responsive ---- */
@media (max-width: 900px) {
  .l-nav {
    display: none;
  }
  .l-steps {
    grid-template-columns: repeat(2, 1fr);
  }
  .l-feature-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .l-plans {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 560px) {
  .l-steps,
  .l-feature-grid,
  .l-plans {
    grid-template-columns: 1fr;
  }
  .l-hero-stats {
    flex-direction: column;
    gap: 14px;
  }
  .l-stat-sep {
    width: 100%;
    height: 1px;
  }
  .l-topbar {
    padding: 16px 18px;
  }
}
