/* ===========================================
   MelodyCraft Studio — Landing Page Styles
   Design: Dark, technical, Stripe/Figma-inspired
   =========================================== */

/* --- CSS Reset & Variables --- */
*,
*::before,
*::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

:root {
  /* Colors */
  --color-bg: #0F0F0F;
  --color-bg-elevated: #1A1A1A;
  --color-bg-card: rgba(255, 255, 255, 0.04);
  --color-bg-glass: rgba(255, 255, 255, 0.06);
  --color-border: rgba(255, 255, 255, 0.08);
  --color-border-hover: rgba(255, 255, 255, 0.15);
  --color-accent: #3B82F6;
  --color-accent-hover: #60A5FA;
  --color-accent-dim: rgba(59, 130, 246, 0.15);
  --color-text-primary: #FFFFFF;
  --color-text-secondary: rgba(255, 255, 255, 0.65);
  --color-text-tertiary: rgba(255, 255, 255, 0.4);
  --color-success: #22C55E;
  --color-error: #EF4444;
  --color-warning: #F59E0B;

  /* Piano roll colors */
  --note-color-1: #3B82F6;
  --note-color-2: #8B5CF6;
  --note-color-3: #06B6D4;
  --note-color-4: #F59E0B;

  /* Spacing */
  --space-xs: 0.375rem;
  --space-sm: 0.75rem;
  --space-md: 1.25rem;
  --space-lg: 2rem;
  --space-xl: 3.5rem;
  --space-2xl: 6rem;
  --space-3xl: 10rem;

  /* Typography */
  --font-sans: 'Inter', 'Helvetica Neue', -apple-system, BlinkMacSystemFont, sans-serif;
  --font-mono: 'JetBrains Mono', 'SF Mono', 'Fira Code', monospace;
  --font-size-sm: 0.875rem;
  --font-size-base: 1rem;
  --font-size-lg: 1.125rem;
  --font-size-xl: 1.5rem;
  --font-size-2xl: 2rem;
  --font-size-3xl: 3rem;
  --font-size-4xl: 3.75rem;

  /* Radius */
  --radius-sm: 6px;
  --radius-md: 10px;
  --radius-lg: 16px;
  --radius-xl: 24px;

  /* Transitions */
  --transition-fast: 150ms ease;
  --transition-base: 250ms ease;
  --transition-slow: 400ms cubic-bezier(0.16, 1, 0.3, 1);
}

/* --- Base Styles --- */
html {
  scroll-behavior: smooth;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body {
  font-family: var(--font-sans);
  background-color: var(--color-bg);
  color: var(--color-text-primary);
  line-height: 1.6;
  overflow-x: hidden;
}

::selection {
  background: var(--color-accent-dim);
  color: var(--color-text-primary);
}

img {
  max-width: 100%;
  height: auto;
}

a {
  color: var(--color-accent);
  text-decoration: none;
  transition: color var(--transition-fast);
}

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

/* --- Utility Classes --- */
.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 var(--space-lg);
}

.section-label {
  display: inline-flex;
  align-items: center;
  gap: var(--space-xs);
  font-size: var(--font-size-sm);
  font-weight: 600;
  color: var(--color-accent);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-bottom: var(--space-md);
}

.section-title {
  font-size: var(--font-size-3xl);
  font-weight: 700;
  line-height: 1.15;
  letter-spacing: -0.03em;
  margin-bottom: var(--space-md);
}

.section-subtitle {
  font-size: var(--font-size-lg);
  color: var(--color-text-secondary);
  max-width: 600px;
  line-height: 1.6;
}

/* --- Grid Pattern (Piano Roll Motif) --- */
.grid-pattern {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.03) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.03) 1px, transparent 1px);
  background-size: 60px 60px;
  pointer-events: none;
  z-index: 0;
}

/* --- Glass Card --- */
.glass-card {
  background: var(--color-bg-glass);
  border: 1px solid var(--color-border);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-radius: var(--radius-lg);
  transition: all var(--transition-base);
}

.glass-card:hover {
  border-color: var(--color-border-hover);
  background: rgba(255, 255, 255, 0.08);
}

/* --- Buttons --- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-sm);
  font-family: var(--font-sans);
  font-weight: 600;
  font-size: var(--font-size-base);
  padding: 0.75rem 1.75rem;
  border-radius: var(--radius-md);
  border: none;
  cursor: pointer;
  transition: all var(--transition-base);
  text-decoration: none;
  line-height: 1.2;
}

.btn-primary {
  background: var(--color-accent);
  color: #fff;
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.3), 0 0 0 1px rgba(59, 130, 246, 0.3);
}

.btn-primary:hover {
  background: var(--color-accent-hover);
  box-shadow: 0 4px 20px rgba(59, 130, 246, 0.35);
  transform: translateY(-1px);
  color: #fff;
}

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

.btn-secondary:hover {
  background: rgba(255, 255, 255, 0.1);
  border-color: var(--color-border-hover);
  transform: translateY(-1px);
}

.btn-ghost {
  background: transparent;
  color: var(--color-text-secondary);
  padding: 0.5rem 1rem;
}

.btn-ghost:hover {
  color: var(--color-text-primary);
  background: var(--color-bg-glass);
}

.btn-sm {
  font-size: var(--font-size-sm);
  padding: 0.5rem 1.25rem;
}

.btn-lg {
  font-size: var(--font-size-lg);
  padding: 1rem 2.25rem;
}

.btn:disabled {
  opacity: 0.5;
  cursor: not-allowed;
  transform: none;
}

/* ====================================
   NAVIGATION
   ==================================== */
.navbar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1rem var(--space-lg);
  max-width: 1200px;
  margin: 0 auto;
  transition: all var(--transition-base);
}

.navbar.scrolled {
  background: rgba(15, 15, 15, 0.85);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--color-border);
  padding: 0.75rem var(--space-lg);
}

.navbar .logo {
  font-size: 1.15rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  color: var(--color-text-primary);
  text-decoration: none;
}

.navbar .logo span {
  color: var(--color-accent);
}

.nav-links {
  display: flex;
  align-items: center;
  gap: var(--space-lg);
}

.nav-links a {
  color: var(--color-text-secondary);
  font-size: var(--font-size-sm);
  font-weight: 500;
  text-decoration: none;
  transition: color var(--transition-fast);
}

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

.nav-cta {
  font-size: var(--font-size-sm) !important;
  padding: 0.5rem 1.25rem !important;
}

.mobile-menu-btn {
  display: none;
  background: none;
  border: none;
  color: var(--color-text-primary);
  cursor: pointer;
  padding: 0.5rem;
}

.mobile-menu-btn svg {
  width: 24px;
  height: 24px;
}

/* ====================================
   HERO SECTION
   ==================================== */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  padding: var(--space-3xl) 0 var(--space-2xl);
  overflow: hidden;
}

.hero::before {
  content: '';
  position: absolute;
  top: -50%;
  right: -30%;
  width: 80%;
  height: 100%;
  background: radial-gradient(ellipse, rgba(59, 130, 246, 0.08) 0%, transparent 70%);
  pointer-events: none;
}

.hero .container {
  position: relative;
  z-index: 1;
  width: 100%;
}

.hero-content {
  max-width: 820px;
  margin: 0 auto;
  text-align: center;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: var(--space-xs);
  background: var(--color-accent-dim);
  color: var(--color-accent);
  font-size: var(--font-size-sm);
  font-weight: 500;
  padding: 0.375rem 1rem;
  border-radius: 100px;
  margin-bottom: var(--space-lg);
  border: 1px solid rgba(59, 130, 246, 0.2);
}

.hero h1 {
  font-size: clamp(2.2rem, 5vw, var(--font-size-4xl));
  font-weight: 750;
  line-height: 1.08;
  letter-spacing: -0.04em;
  margin-bottom: var(--space-md);
}

.hero h1 .highlight {
  background: linear-gradient(135deg, var(--color-accent), #8B5CF6);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.hero-subheadline {
  font-size: clamp(1rem, 1.5vw, var(--font-size-lg));
  color: var(--color-text-secondary);
  max-width: 680px;
  margin: 0 auto var(--space-xl);
  line-height: 1.7;
}

/* Piano Roll Canvas */
.hero-visual {
  position: relative;
  width: 100%;
  max-width: 780px;
  height: 320px;
  margin: 0 auto var(--space-xl);
  border-radius: var(--radius-lg);
  overflow: hidden;
  border: 1px solid var(--color-border);
  background: var(--color-bg-elevated);
}

.hero-visual canvas {
  width: 100%;
  height: 100%;
  display: block;
}

.hero-visual-label {
  position: absolute;
  bottom: var(--space-md);
  left: 50%;
  transform: translateX(-50%);
  font-size: var(--font-size-sm);
  color: var(--color-text-tertiary);
  font-family: var(--font-mono);
  letter-spacing: 0.02em;
  background: rgba(0, 0, 0, 0.6);
  padding: 0.25rem 0.75rem;
  border-radius: var(--radius-sm);
  backdrop-filter: blur(4px);
  white-space: nowrap;
}

.hero-actions {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-md);
  flex-wrap: wrap;
  margin-bottom: var(--space-md);
}

.hero-trust {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-sm);
  font-size: var(--font-size-sm);
  color: var(--color-text-tertiary);
}

.hero-trust svg {
  width: 16px;
  height: 16px;
  color: var(--color-success);
}

/* ====================================
   COMPARISON SECTION
   ==================================== */
.comparison {
  padding: var(--space-3xl) 0;
  position: relative;
}

.comparison-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-xl);
  margin-top: var(--space-xl);
}

.comparison-card {
  padding: var(--space-xl);
  border-radius: var(--radius-lg);
  border: 1px solid var(--color-border);
}

.comparison-card.problem {
  background: rgba(239, 68, 68, 0.04);
  border-color: rgba(239, 68, 68, 0.15);
}

.comparison-card.solution {
  background: rgba(34, 197, 94, 0.04);
  border-color: rgba(34, 197, 94, 0.15);
}

.comparison-card h3 {
  font-size: var(--font-size-xl);
  font-weight: 700;
  margin-bottom: var(--space-lg);
  display: flex;
  align-items: center;
  gap: var(--space-sm);
}

.comparison-card ul {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: var(--space-md);
}

.comparison-card ul li {
  display: flex;
  align-items: flex-start;
  gap: var(--space-sm);
  font-size: var(--font-size-base);
  color: var(--color-text-secondary);
  line-height: 1.5;
}

.comparison-card ul li .icon {
  flex-shrink: 0;
  width: 20px;
  height: 20px;
  margin-top: 2px;
}

.comparison-card.solution ul li {
  color: var(--color-text-primary);
}

/* ====================================
   HOW IT WORKS SECTION
   ==================================== */
.steps {
  padding: var(--space-3xl) 0;
  position: relative;
}

.steps .section-header {
  text-align: center;
  margin-bottom: var(--space-2xl);
}

.steps .section-subtitle {
  margin: 0 auto;
}

.steps-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--space-xl);
  position: relative;
  margin-top: var(--space-xl);
}

.step-card {
  position: relative;
  background: var(--color-bg-glass);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  padding: var(--space-xl);
  text-align: center;
  transition: all var(--transition-base);
  display: flex;
  flex-direction: column;
  align-items: center;
}

.step-card:hover {
  border-color: var(--color-border-hover);
  background: rgba(255, 255, 255, 0.08);
  transform: translateY(-2px);
}

.step-icon {
  width: 40px;
  height: 40px;
  color: var(--color-accent);
  margin-bottom: var(--space-md);
}

.step-icon svg {
  width: 100%;
  height: 100%;
}

.step-title {
  font-size: var(--font-size-lg);
  font-weight: 600;
  margin-bottom: var(--space-sm);
  line-height: 1.3;
}

.step-text {
  font-size: var(--font-size-sm);
  color: var(--color-text-secondary);
  line-height: 1.7;
  max-width: 320px;
  margin: 0 auto;
}

/* ====================================
   DEMO / PROOF SECTION
   ==================================== */
.demo {
  padding: var(--space-3xl) 0;
  position: relative;
}

.demo .section-header {
  text-align: center;
  margin-bottom: var(--space-2xl);
}

.demo .section-subtitle {
  margin: 0 auto;
}

.demo-cards {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--space-lg);
}

.demo-card {
  background: var(--color-bg-glass);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  transition: all var(--transition-base);
}

.demo-card:hover {
  border-color: var(--color-border-hover);
  transform: translateY(-2px);
}

.demo-disclaimer {
  text-align: center;
  font-size: 0.75rem;
  color: var(--color-text-tertiary);
  max-width: 520px;
  margin: var(--space-xl) auto 0;
  line-height: 1.6;
}

.waveform-container {
  position: relative;
  width: 100%;
  height: 100px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: var(--space-md);
  background: rgba(0, 0, 0, 0.4);
  border-radius: var(--radius-sm);
  overflow: hidden;
}

.waveform-container .play-btn {
  position: absolute;
  z-index: 2;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: var(--color-accent);
  border: 2px solid rgba(255, 255, 255, 0.15);
  color: #fff;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all var(--transition-fast);
  box-shadow:
    0 0 0 6px rgba(0, 0, 0, 0.3),
    0 2px 12px rgba(0, 0, 0, 0.5);
}

.waveform-container .play-btn:hover {
  background: var(--color-accent-hover);
  transform: scale(1.08);
}

.waveform-container .play-btn svg {
  width: 18px;
  height: 18px;
  margin-left: 2px;
}

.waveform-canvas {
  width: 100%;
  height: 100%;
}

.waveform-placeholder {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 3px;
  height: 80px;
  width: 80%;
}

.waveform-bar {
  width: 4px;
  background: var(--color-accent);
  border-radius: 2px;
  opacity: 0.2;
  animation: waveformPulse 1.5s ease-in-out infinite;
  animation-play-state: paused;
}

.waveform-placeholder.playing .waveform-bar {
  animation-play-state: running;
}

.waveform-bar:nth-child(1) { height: 30%; animation-delay: 0s; }
.waveform-bar:nth-child(2) { height: 55%; animation-delay: 0.1s; }
.waveform-bar:nth-child(3) { height: 75%; animation-delay: 0.2s; }
.waveform-bar:nth-child(4) { height: 45%; animation-delay: 0.3s; }
.waveform-bar:nth-child(5) { height: 90%; animation-delay: 0.4s; }
.waveform-bar:nth-child(6) { height: 65%; animation-delay: 0.5s; }
.waveform-bar:nth-child(7) { height: 40%; animation-delay: 0.6s; }
.waveform-bar:nth-child(8) { height: 80%; animation-delay: 0.7s; }
.waveform-bar:nth-child(9) { height: 50%; animation-delay: 0.8s; }
.waveform-bar:nth-child(10) { height: 70%; animation-delay: 0.9s; }
.waveform-bar:nth-child(11) { height: 35%; animation-delay: 0.15s; }
.waveform-bar:nth-child(12) { height: 60%; animation-delay: 0.25s; }
.waveform-bar:nth-child(13) { height: 85%; animation-delay: 0.35s; }
.waveform-bar:nth-child(14) { height: 45%; animation-delay: 0.45s; }
.waveform-bar:nth-child(15) { height: 70%; animation-delay: 0.55s; }
.waveform-bar:nth-child(16) { height: 55%; animation-delay: 0.65s; }
.waveform-bar:nth-child(17) { height: 30%; animation-delay: 0.75s; }
.waveform-bar:nth-child(18) { height: 75%; animation-delay: 0.85s; }
.waveform-bar:nth-child(19) { height: 50%; animation-delay: 0.95s; }
.waveform-bar:nth-child(20) { height: 65%; animation-delay: 0.05s; }

@keyframes waveformPulse {
  0%, 100% { opacity: 0.2; transform: scaleY(1); }
  50% { opacity: 0.45; transform: scaleY(1.15); }
}

.demo-card-body {
  padding: var(--space-lg);
}

.ai-badge {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-size: 0.65rem;
  font-weight: 600;
  color: var(--color-accent);
  text-transform: uppercase;
  letter-spacing: 0.06em;
  margin-bottom: var(--space-md);
  padding: 3px 8px;
  background: var(--color-accent-dim);
  border-radius: 100px;
}

.ai-badge svg {
  color: var(--color-accent);
}

.demo-card-body h4 {
  font-size: var(--font-size-lg);
  font-weight: 600;
  margin-bottom: var(--space-xs);
}

.demo-card-body .genre-tag {
  font-size: var(--font-size-sm);
  color: var(--color-text-tertiary);
  margin-bottom: var(--space-xs);
}

.prompt-arrow {
  color: var(--color-accent);
  margin-left: 2px;
}

.prompt-result-divider {
  display: flex;
  align-items: center;
  gap: var(--space-sm);
  margin: var(--space-md) 0;
}

.prompt-result-divider::before,
.prompt-result-divider::after {
  content: '';
  flex: 1;
  height: 1px;
  background: var(--color-border);
}

.prompt-result-label {
  font-size: 0.6rem;
  font-weight: 600;
  color: var(--color-text-tertiary);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  white-space: nowrap;
}

.demo-prompt-chat {
  display: flex;
  gap: var(--space-sm);
  margin-bottom: var(--space-md);
  align-items: flex-start;
}

.demo-prompt-avatar {
  flex-shrink: 0;
  width: 28px;
  height: 28px;
  background: var(--color-accent-dim);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--color-accent);
  margin-top: 2px;
}

.demo-prompt-avatar svg {
  width: 14px;
  height: 14px;
}

.demo-prompt-content {
  flex: 1;
  min-width: 0;
}

.demo-prompt-label {
  font-size: 0.65rem;
  font-weight: 600;
  color: var(--color-accent);
  text-transform: uppercase;
  letter-spacing: 0.06em;
  margin-bottom: 4px;
  display: block;
}

.demo-prompt-bubble {
  font-size: var(--font-size-sm);
  color: var(--color-text-primary);
  background: rgba(59, 130, 246, 0.08);
  border: 1px solid rgba(59, 130, 246, 0.15);
  border-radius: 12px 12px 12px 4px;
  padding: var(--space-sm) var(--space-md);
  line-height: 1.5;
  height: 110px;
  overflow-y: auto;
  scrollbar-width: thin;
  scrollbar-color: rgba(255, 255, 255, 0.15) transparent;
}

.demo-prompt-bubble::-webkit-scrollbar {
  width: 4px;
}

.demo-prompt-bubble::-webkit-scrollbar-track {
  background: transparent;
}

.demo-prompt-bubble::-webkit-scrollbar-thumb {
  background: rgba(255, 255, 255, 0.15);
  border-radius: 2px;
}

.demo-card-body .demo-actions {
  display: flex;
  flex-direction: column;
  gap: var(--space-sm);
}

.demo-card-body .btn {
  width: 100%;
}

/* ====================================
   FAQ SECTION
   ==================================== */
.faq {
  padding: var(--space-3xl) 0;
}

.faq .section-header {
  text-align: center;
  margin-bottom: var(--space-2xl);
}

.faq .section-subtitle {
  margin: 0 auto;
}

.faq-list {
  max-width: 720px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: var(--space-sm);
}

.faq-item {
  background: var(--color-bg-glass);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  overflow: hidden;
  transition: border-color var(--transition-base);
}

.faq-item:hover {
  border-color: var(--color-border-hover);
}

.faq-item.active {
  border-color: var(--color-accent-dim);
}

.faq-question {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: var(--space-md) var(--space-lg);
  background: none;
  border: none;
  color: var(--color-text-primary);
  font-family: var(--font-sans);
  font-size: var(--font-size-base);
  font-weight: 500;
  cursor: pointer;
  text-align: left;
  gap: var(--space-md);
}

.faq-question svg {
  width: 20px;
  height: 20px;
  color: var(--color-text-tertiary);
  flex-shrink: 0;
  transition: transform var(--transition-base);
}

.faq-item.active .faq-question svg {
  transform: rotate(180deg);
}

.faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height var(--transition-slow);
}

.faq-answer-inner {
  padding: 0 var(--space-lg) var(--space-lg);
  color: var(--color-text-secondary);
  font-size: var(--font-size-sm);
  line-height: 1.7;
}

/* ====================================
   FORM MODAL
   ==================================== */
.modal-overlay {
  position: fixed;
  inset: 0;
  z-index: 2000;
  background: rgba(0, 0, 0, 0.7);
  backdrop-filter: blur(8px);
  display: none;
  align-items: center;
  justify-content: center;
  padding: var(--space-lg);
  opacity: 0;
  transition: opacity var(--transition-base);
}

.modal-overlay.active {
  display: flex;
  opacity: 1;
}

.modal {
  background: var(--color-bg-elevated);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-xl);
  padding: 2rem;
  max-width: 480px;
  width: 100%;
  position: relative;
  max-height: 90vh;
  overflow-y: auto;
  transform: translateY(20px);
  transition: transform var(--transition-slow);
  scrollbar-width: thin;
  scrollbar-color: var(--color-border) transparent;
}

.modal::-webkit-scrollbar {
  width: 6px;
}

.modal::-webkit-scrollbar-track {
  background: transparent;
}

.modal::-webkit-scrollbar-thumb {
  background: var(--color-border);
  border-radius: 3px;
}

.modal::-webkit-scrollbar-thumb:hover {
  background: var(--color-border-hover);
}

.modal-overlay.active .modal {
  transform: translateY(0);
}

.modal-close {
  position: absolute;
  top: var(--space-md);
  right: var(--space-md);
  background: none;
  border: none;
  color: var(--color-text-tertiary);
  cursor: pointer;
  padding: var(--space-xs);
  border-radius: var(--radius-sm);
  transition: all var(--transition-fast);
}

.modal-close:hover {
  color: var(--color-text-primary);
  background: var(--color-bg-glass);
}

.modal-close svg {
  width: 20px;
  height: 20px;
}

.modal h2 {
  font-size: var(--font-size-2xl);
  font-weight: 700;
  margin-bottom: var(--space-xs);
  letter-spacing: -0.02em;
}

.modal .modal-subtitle {
  color: var(--color-text-secondary);
  font-size: var(--font-size-sm);
  margin-bottom: var(--space-lg);
}

/* Form Fields */
.form-group {
  margin-bottom: var(--space-md);
}

.form-group label {
  display: block;
  font-size: var(--font-size-sm);
  font-weight: 500;
  color: var(--color-text-secondary);
  margin-bottom: var(--space-xs);
}

.form-group input,
.form-group select,
.form-group textarea {
  width: 100%;
  padding: 0.75rem 1rem;
  background: var(--color-bg);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  color: var(--color-text-primary);
  font-family: var(--font-sans);
  font-size: var(--font-size-base);
  transition: all var(--transition-fast);
  outline: none;
  -webkit-appearance: none;
  appearance: none;
}

.form-group select {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='rgba(255,255,255,0.4)' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'%3E%3C/polyline%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 12px center;
  padding-right: 2.5rem;
  cursor: pointer;
}

.form-group textarea {
  resize: vertical;
  min-height: 80px;
  line-height: 1.5;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  border-color: var(--color-accent);
  box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.15);
}

.form-group input::placeholder,
.form-group textarea::placeholder {
  color: var(--color-text-tertiary);
}

.form-group .error-message {
  font-size: var(--font-size-sm);
  color: var(--color-error);
  margin-top: var(--space-xs);
  display: none;
}

.form-group.has-error input,
.form-group.has-error select {
  border-color: var(--color-error);
}

.form-group.has-error .error-message {
  display: block;
}

/* Radio Group (Plan Selection) */
.plan-options {
  display: flex;
  flex-direction: column;
  gap: var(--space-sm);
}

.plan-options-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-sm);
}

@media (max-width: 520px) {
  .plan-options-grid {
    grid-template-columns: 1fr;
  }
}

.plan-option {
  position: relative;
}

.plan-option input[type="radio"] {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}

.plan-option label {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.625rem 0.875rem;
  background: var(--color-bg);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  cursor: pointer;
  transition: all var(--transition-fast);
  font-weight: 400 !important;
  color: var(--color-text-primary) !important;
  margin-bottom: 0 !important;
}

.plan-option label:hover {
  border-color: var(--color-border-hover);
}

.plan-option input[type="radio"]:checked + label {
  border-color: var(--color-accent);
  background: rgba(59, 130, 246, 0.08);
  box-shadow: 0 0 0 1px rgba(59, 130, 246, 0.3);
}

.plan-option .plan-name {
  display: flex;
  align-items: center;
  gap: var(--space-sm);
  font-weight: 500;
}

.plan-option .plan-price {
  font-family: var(--font-mono);
  font-size: var(--font-size-sm);
  color: var(--color-text-secondary);
}

.plan-option input[type="radio"]:checked + label .plan-price {
  color: var(--color-accent);
}

/* Stacked plan option (pricing tiers with description) */
.plan-option-stacked label {
  flex-direction: column;
  align-items: stretch;
  gap: 3px;
  padding: 0.75rem 0.875rem;
}

.plan-option-stacked .plan-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.plan-option-stacked .plan-desc {
  font-size: 0.75rem;
  color: var(--color-text-tertiary);
  font-weight: 400;
  line-height: 1.4;
}

.plan-option-stacked input[type="radio"]:checked + label .plan-desc {
  color: var(--color-text-secondary);
}

/* Form submit button */
.form-submit {
  width: 100%;
  margin-top: var(--space-md);
}

/* Form trust text */
.form-trust {
  text-align: center;
  font-size: 0.75rem;
  color: var(--color-text-tertiary);
  margin-top: var(--space-md);
}

/* Honeypot: visually hidden field only bots will fill */
.honeypot-field {
  position: absolute;
  left: -9999px;
  opacity: 0;
  height: 0;
  overflow: hidden;
  pointer-events: none;
}

/* Form success state */
.form-success {
  display: none;
  text-align: center;
  padding: var(--space-xl) 0;
}

.form-success.show {
  display: block;
}

.form-success .success-icon {
  width: 48px;
  height: 48px;
  color: var(--color-success);
  margin-bottom: var(--space-md);
}

.form-success h3 {
  font-size: var(--font-size-xl);
  font-weight: 700;
  margin-bottom: var(--space-sm);
}

.form-success p {
  color: var(--color-text-secondary);
  font-size: var(--font-size-sm);
}

/* Spinner */
.spinner {
  display: inline-block;
  width: 16px;
  height: 16px;
  border: 2px solid rgba(255, 255, 255, 0.3);
  border-top-color: #fff;
  border-radius: 50%;
  animation: spin 0.6s linear infinite;
}

@keyframes spin {
  to { transform: rotate(360deg); }
}

/* ====================================
   FOOTER
   ==================================== */
.footer {
  padding: var(--space-xl) 0;
  border-top: 1px solid var(--color-border);
  text-align: center;
}

.footer-tagline {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-sm);
  font-size: var(--font-size-sm);
  color: var(--color-text-tertiary);
  margin-bottom: var(--space-md);
}

.footer-tagline svg {
  width: 16px;
  height: 16px;
  color: var(--color-accent);
}

.footer-links {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-lg);
  margin-bottom: var(--space-md);
}

.footer-links a {
  font-size: var(--font-size-sm);
  color: var(--color-text-tertiary);
}

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

.footer-copyright {
  font-size: 0.75rem;
  color: var(--color-text-tertiary);
}

/* ====================================
   THANK YOU PAGE
   ==================================== */
.thank-you-page {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: var(--space-lg);
}

.thank-you-card {
  max-width: 520px;
  text-align: center;
  background: var(--color-bg-elevated);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-xl);
  padding: var(--space-2xl) var(--space-xl);
}

.thank-you-card .icon {
  width: 56px;
  height: 56px;
  color: var(--color-success);
  margin-bottom: var(--space-lg);
}

.thank-you-card h1 {
  font-size: var(--font-size-2xl);
  font-weight: 700;
  margin-bottom: var(--space-sm);
}

.thank-you-card p {
  color: var(--color-text-secondary);
  font-size: var(--font-size-base);
  line-height: 1.7;
  margin-bottom: var(--space-lg);
}

.thank-you-card .checklist {
  text-align: left;
  background: var(--color-bg);
  border-radius: var(--radius-md);
  padding: var(--space-lg);
  margin-bottom: var(--space-xl);
}

.thank-you-card .checklist h4 {
  font-size: var(--font-size-sm);
  font-weight: 600;
  margin-bottom: var(--space-md);
  color: var(--color-text-secondary);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.thank-you-card .checklist ul {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: var(--space-sm);
}

.thank-you-card .checklist ul li {
  display: flex;
  align-items: center;
  gap: var(--space-sm);
  font-size: var(--font-size-sm);
  color: var(--color-text-secondary);
}

.thank-you-card .checklist ul li svg {
  width: 16px;
  height: 16px;
  color: var(--color-success);
  flex-shrink: 0;
}

.thank-you-card .btn {
  min-width: 200px;
}

/* ====================================
   SCROLL ANIMATIONS
   ==================================== */
.fade-in {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.7s cubic-bezier(0.16, 1, 0.3, 1),
              transform 0.7s cubic-bezier(0.16, 1, 0.3, 1);
}

.fade-in.visible {
  opacity: 1;
  transform: translateY(0);
}

.fade-in-delay-1 { transition-delay: 0.1s; }
.fade-in-delay-2 { transition-delay: 0.2s; }
.fade-in-delay-3 { transition-delay: 0.3s; }

/* ====================================
   RESPONSIVE
   ==================================== */
@media (max-width: 1024px) {
}

@media (max-width: 900px) {
  .comparison-grid {
    grid-template-columns: 1fr;
  }

  .demo-cards {
    grid-template-columns: 1fr;
    max-width: 450px;
    margin: 0 auto;
  }

  .steps-grid {
    grid-template-columns: 1fr;
    max-width: 450px;
    margin-left: auto;
    margin-right: auto;
  }

}

@media (max-width: 768px) {
  .container {
    padding-left: var(--space-md);
    padding-right: var(--space-md);
  }

  .nav-links {
    display: none;
  }

  .nav-links.open {
    display: flex;
    flex-direction: column;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: rgba(15, 15, 15, 0.98);
    backdrop-filter: blur(20px);
    padding: var(--space-md);
    border-bottom: 1px solid var(--color-border);
    gap: var(--space-sm);
  }

  .nav-cta {
    display: none;
  }

  .mobile-menu-btn {
    display: block;
  }

  .hero-visual {
    height: 220px;
  }

  .hero h1 {
    font-size: clamp(1.8rem, 7vw, 2.5rem);
  }

  .section-title {
    font-size: var(--font-size-2xl);
  }

  .pricing-card.featured {
    transform: none;
  }
  .pricing-card.featured:hover {
    transform: translateY(-2px);
  }

  .modal {
    padding: var(--space-lg);
  }

  .comparison-card {
    padding: var(--space-lg);
  }

  .step-card {
    padding: var(--space-lg);
  }

  .footer-links {
    flex-direction: column;
    gap: var(--space-sm);
  }
}

@media (max-width: 480px) {
  .hero-actions {
    flex-direction: column;
    width: 100%;
  }

  .hero-actions .btn {
    width: 100%;
  }

  .hero-trust {
    flex-direction: column;
    text-align: center;
  }

  .thank-you-card {
    padding: var(--space-xl) var(--space-lg);
  }
}

/* ====================================
   ACCESSIBILITY
   ==================================== */
@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }

  .fade-in {
    opacity: 1;
    transform: none;
  }
}
