/* MixDrop marketing site — palette mirrors lib/core/theme/app_colors.dart */

:root {
  --background: #090909;
  --surface: #151515;
  --card: #1e1e1e;
  --border: rgba(255, 255, 255, 0.08);

  --primary: #8b5cf6;
  --primary-hover: #a855f7;
  --gradient-start: #7c3aed;
  --gradient-end: #a855f7;

  --deck-a: #8b5cf6;
  --deck-b: #ff8a3d;

  --cue-green: #30d158;
  --loop-blue: #0a84ff;
  --record-red: #ff3b30;

  --text-primary: #f5f5f7;
  --text-secondary: #9e9ea5;
  --text-tertiary: #636369;

  --radius: 16px;
  --radius-sm: 10px;
  --max-width: 1080px;
}

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

html {
  scroll-behavior: smooth;
}

body {
  background: var(--background);
  color: var(--text-primary);
  font-family: -apple-system, BlinkMacSystemFont, "SF Pro Display", "Segoe UI",
    Roboto, Helvetica, Arial, sans-serif;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

a {
  color: var(--primary);
  text-decoration: none;
}

a:hover {
  color: var(--primary-hover);
}

.container {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 24px;
}

/* ---------- Header ---------- */

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
  background: rgba(9, 9, 9, 0.72);
  border-bottom: 1px solid var(--border);
}

.site-header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 64px;
}

.logo {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 700;
  font-size: 1.1rem;
  color: var(--text-primary);
  letter-spacing: -0.01em;
}

.logo:hover {
  color: var(--text-primary);
}

.logo-mark {
  width: 28px;
  height: 28px;
  border-radius: 8px;
  background: linear-gradient(135deg, var(--gradient-start), var(--gradient-end));
  display: grid;
  place-items: center;
  flex-shrink: 0;
}

.logo-mark svg {
  width: 16px;
  height: 16px;
}

.site-nav {
  display: flex;
  align-items: center;
  gap: 28px;
}

.site-nav a {
  color: var(--text-secondary);
  font-size: 0.92rem;
  font-weight: 500;
}

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

.site-nav .nav-cta {
  color: #fff;
  background: linear-gradient(135deg, var(--gradient-start), var(--gradient-end));
  padding: 8px 18px;
  border-radius: 999px;
  font-weight: 600;
}

.site-nav .nav-cta:hover {
  filter: brightness(1.12);
}

/* ---------- Hero ---------- */

.hero {
  position: relative;
  padding: 96px 0 64px;
  text-align: center;
  overflow: hidden;
}

.hero::before {
  content: "";
  position: absolute;
  inset: -40% -20% auto;
  height: 130%;
  background:
    radial-gradient(600px 380px at 30% 20%, rgba(124, 58, 237, 0.22), transparent 70%),
    radial-gradient(520px 340px at 72% 12%, rgba(255, 138, 61, 0.1), transparent 70%);
  pointer-events: none;
}

.hero > .container {
  position: relative;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  border: 1px solid var(--border);
  background: var(--surface);
  color: var(--text-secondary);
  font-size: 0.82rem;
  font-weight: 500;
  padding: 6px 14px;
  border-radius: 999px;
  margin-bottom: 24px;
}

.hero-badge .dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--cue-green);
}

.hero h1 {
  font-size: clamp(2.4rem, 6vw, 4rem);
  line-height: 1.08;
  letter-spacing: -0.03em;
  font-weight: 800;
  margin-bottom: 20px;
}

.hero h1 .accent {
  background: linear-gradient(135deg, var(--gradient-start), var(--gradient-end));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.hero p.lede {
  max-width: 620px;
  margin: 0 auto 36px;
  color: var(--text-secondary);
  font-size: 1.15rem;
}

.hero-actions {
  display: flex;
  justify-content: center;
  gap: 14px;
  flex-wrap: wrap;
  margin-bottom: 56px;
}

.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 13px 26px;
  border-radius: 999px;
  font-size: 0.98rem;
  font-weight: 600;
  transition: transform 0.15s ease, filter 0.15s ease;
}

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

.btn-primary {
  color: #fff;
  background: linear-gradient(135deg, var(--gradient-start), var(--gradient-end));
  box-shadow: 0 8px 28px rgba(124, 58, 237, 0.35);
}

.btn-primary:hover {
  color: #fff;
  filter: brightness(1.12);
}

.btn-secondary {
  color: var(--text-primary);
  background: var(--card);
  border: 1px solid var(--border);
}

.btn-secondary:hover {
  color: var(--text-primary);
  background: #262626;
}

/* ---------- Waveform deck mock ---------- */

.deck-mock {
  max-width: 860px;
  margin: 0 auto;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 20px;
  box-shadow: 0 30px 80px rgba(0, 0, 0, 0.55);
}

.deck-row {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 6px 0;
}

.deck-label {
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  width: 64px;
  text-align: left;
  flex-shrink: 0;
}

.deck-label small {
  display: block;
  color: var(--text-tertiary);
  font-weight: 500;
  letter-spacing: 0;
}

.deck-a-label { color: var(--deck-a); }
.deck-b-label { color: var(--deck-b); }

#waveA, #waveB {
  width: 100%;
  height: 64px;
  display: block;
  border-radius: var(--radius-sm);
  background: #0e0e0e;
}

.deck-controls {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-top: 14px;
  padding-top: 14px;
  border-top: 1px solid var(--border);
}

.pill {
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  padding: 5px 12px;
  border-radius: 6px;
  border: 1px solid var(--border);
  color: var(--text-secondary);
  background: var(--card);
}

.pill.cue { color: var(--cue-green); border-color: rgba(48, 209, 88, 0.35); }
.pill.sync { color: var(--loop-blue); border-color: rgba(10, 132, 255, 0.35); }
.pill.rec { color: var(--record-red); border-color: rgba(255, 59, 48, 0.35); }

.crossfader {
  flex: 1;
  max-width: 300px;
  height: 6px;
  border-radius: 999px;
  background: linear-gradient(90deg, var(--deck-a), var(--deck-b));
  position: relative;
}

.crossfader .knob {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: var(--text-primary);
  border: 3px solid var(--background);
  transform: translate(-50%, -50%);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.6);
}

/* ---------- Sections ---------- */

section {
  padding: 72px 0;
}

.section-heading {
  text-align: center;
  max-width: 640px;
  margin: 0 auto 48px;
}

.section-heading h2 {
  font-size: clamp(1.7rem, 4vw, 2.4rem);
  letter-spacing: -0.02em;
  font-weight: 750;
  margin-bottom: 12px;
}

.section-heading p {
  color: var(--text-secondary);
  font-size: 1.05rem;
}

/* ---------- Features grid ---------- */

.features-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 18px;
}

.feature-card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 26px;
  transition: transform 0.2s ease, border-color 0.2s ease;
}

.feature-card:hover {
  transform: translateY(-3px);
  border-color: rgba(139, 92, 246, 0.35);
}

.feature-icon {
  width: 42px;
  height: 42px;
  border-radius: 12px;
  display: grid;
  place-items: center;
  margin-bottom: 16px;
  background: rgba(139, 92, 246, 0.14);
}

.feature-icon svg {
  width: 22px;
  height: 22px;
  stroke: var(--primary);
}

.feature-card:nth-child(3n + 2) .feature-icon {
  background: rgba(255, 138, 61, 0.12);
}
.feature-card:nth-child(3n + 2) .feature-icon svg {
  stroke: var(--deck-b);
}

.feature-card:nth-child(3n) .feature-icon {
  background: rgba(48, 209, 88, 0.12);
}
.feature-card:nth-child(3n) .feature-icon svg {
  stroke: var(--cue-green);
}

.feature-card h3 {
  font-size: 1.08rem;
  font-weight: 650;
  margin-bottom: 6px;
}

.feature-card p {
  color: var(--text-secondary);
  font-size: 0.94rem;
}

/* ---------- Pro section ---------- */

.pro {
  background: var(--surface);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}

.pro-card {
  max-width: 560px;
  margin: 0 auto;
  background: var(--card);
  border: 1px solid rgba(139, 92, 246, 0.4);
  border-radius: var(--radius);
  padding: 36px;
  position: relative;
  overflow: hidden;
}

.pro-card::before {
  content: "";
  position: absolute;
  inset: 0 0 auto;
  height: 3px;
  background: linear-gradient(90deg, var(--gradient-start), var(--gradient-end));
}

.pro-card h3 {
  font-size: 1.5rem;
  font-weight: 750;
  margin-bottom: 4px;
}

.pro-card .pro-sub {
  color: var(--text-secondary);
  margin-bottom: 24px;
}

.pro-card ul {
  list-style: none;
  margin-bottom: 28px;
}

.pro-card li {
  display: flex;
  gap: 12px;
  padding: 9px 0;
  border-bottom: 1px solid var(--border);
  font-size: 0.95rem;
}

.pro-card li:last-child {
  border-bottom: none;
}

.pro-card li .check {
  color: var(--cue-green);
  font-weight: 700;
  flex-shrink: 0;
}

.pro-card li strong {
  font-weight: 650;
}

.pro-card li span.desc {
  color: var(--text-tertiary);
}

.pro-note {
  text-align: center;
  color: var(--text-tertiary);
  font-size: 0.82rem;
  margin-top: 14px;
}

/* ---------- FAQ ---------- */

.faq-list {
  max-width: 720px;
  margin: 0 auto;
}

.faq-item {
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  background: var(--card);
  margin-bottom: 12px;
  overflow: hidden;
}

.faq-item summary {
  cursor: pointer;
  list-style: none;
  padding: 18px 22px;
  font-weight: 600;
  font-size: 0.98rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
}

.faq-item summary::-webkit-details-marker {
  display: none;
}

.faq-item summary::after {
  content: "+";
  color: var(--text-tertiary);
  font-size: 1.3rem;
  font-weight: 400;
  transition: transform 0.2s ease;
}

.faq-item[open] summary::after {
  transform: rotate(45deg);
}

.faq-item .faq-body {
  padding: 0 22px 18px;
  color: var(--text-secondary);
  font-size: 0.94rem;
}

/* ---------- Footer ---------- */

.site-footer {
  border-top: 1px solid var(--border);
  padding: 40px 0;
}

.site-footer .container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 20px;
  flex-wrap: wrap;
}

.site-footer p {
  color: var(--text-tertiary);
  font-size: 0.88rem;
}

.footer-links {
  display: flex;
  gap: 22px;
}

.footer-links a {
  color: var(--text-secondary);
  font-size: 0.88rem;
}

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

/* ---------- Legal / privacy page ---------- */

.legal {
  max-width: 760px;
  margin: 0 auto;
  padding: 64px 24px 96px;
}

.legal h1 {
  font-size: clamp(1.9rem, 5vw, 2.6rem);
  letter-spacing: -0.02em;
  margin-bottom: 8px;
}

.legal .updated {
  color: var(--text-tertiary);
  font-size: 0.9rem;
  margin-bottom: 40px;
}

.legal h2 {
  font-size: 1.25rem;
  font-weight: 700;
  margin: 40px 0 12px;
  letter-spacing: -0.01em;
}

.legal p,
.legal li {
  color: var(--text-secondary);
  font-size: 0.98rem;
  margin-bottom: 12px;
}

.legal ul {
  padding-left: 22px;
  margin-bottom: 16px;
}

.legal li {
  margin-bottom: 8px;
}

.legal strong {
  color: var(--text-primary);
  font-weight: 650;
}

.legal .callout {
  background: var(--card);
  border: 1px solid rgba(48, 209, 88, 0.3);
  border-radius: var(--radius-sm);
  padding: 18px 22px;
  margin: 24px 0;
}

.legal .callout p {
  margin: 0;
  color: var(--text-primary);
}

/* ---------- Reveal animation ---------- */

.reveal {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

.reveal.visible {
  opacity: 1;
  transform: none;
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
  .reveal {
    opacity: 1;
    transform: none;
    transition: none;
  }
}

/* ---------- Responsive ---------- */

@media (max-width: 640px) {
  .site-nav a:not(.nav-cta) {
    display: none;
  }
  .hero {
    padding: 64px 0 48px;
  }
  .deck-controls {
    flex-wrap: wrap;
    justify-content: center;
  }
  .site-footer .container {
    flex-direction: column;
    text-align: center;
  }
}
