/* TradingPlace Marketing Site - Shared Styles */
/* Mobile-first design */

:root {
  --bg-primary: #0d1117;
  --bg-secondary: #161b22;
  --bg-tertiary: #21262d;
  --border: #30363d;
  --text-primary: #e6edf3;
  --text-secondary: #8b949e;
  --text-muted: #6e7681;
  --accent-blue: #58a6ff;
  --accent-green: #3fb950;
  --accent-red: #f85149;
  --accent-yellow: #d29922;
  --accent-gold: #ffd700;
  --success: #3fb950;
  --danger: #f85149;
  --warning: #d29922;
  --primary: #58a6ff;
  --radius: 8px;
  --radius-lg: 12px;
  --shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.3);
  --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.4);
}

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

html {
  scroll-behavior: smooth;
}

body {
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, sans-serif;
  background: var(--bg-primary);
  color: var(--text-primary);
  font-size: 16px;
  line-height: 1.6;
  min-height: 100vh;
}

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

a:hover {
  text-decoration: underline;
}

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

/* Container */
.container {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 16px;
}

@media (min-width: 768px) {
  .container {
    padding: 0 24px;
  }
}

/* Typography */
h1, h2, h3, h4, h5, h6 {
  font-weight: 600;
  line-height: 1.3;
  color: var(--text-primary);
}

h1 { font-size: 2rem; margin-bottom: 1rem; }
h2 { font-size: 1.5rem; margin-bottom: 0.75rem; }
h3 { font-size: 1.25rem; margin-bottom: 0.5rem; }

@media (min-width: 768px) {
  h1 { font-size: 2.5rem; }
  h2 { font-size: 2rem; }
  h3 { font-size: 1.5rem; }
}

p {
  margin-bottom: 1rem;
  color: var(--text-secondary);
}

.text-muted { color: var(--text-muted); }
.text-primary { color: var(--text-primary); }
.text-accent { color: var(--accent-blue); }
.text-success { color: var(--accent-green); }
.text-center { text-align: center; }

/* Header / Navigation */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: var(--bg-secondary);
  border-bottom: 1px solid var(--border);
  padding: 12px 0;
}

.nav-container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.logo {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 600;
  font-size: 1.25rem;
  color: var(--text-primary);
  text-decoration: none;
}

.logo:hover {
  text-decoration: none;
}

.logo-img {
  width: 36px;
  height: 36px;
  border-radius: 8px;
}

.nav-links {
  display: none;
  gap: 24px;
  list-style: none;
}

.nav-links a {
  color: var(--text-secondary);
  font-size: 0.9rem;
  font-weight: 500;
  transition: color 0.2s;
}

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

.nav-actions {
  display: flex;
  align-items: center;
  gap: 12px;
}

.nav-signin {
  display: none;
  color: var(--text-secondary);
  font-size: 0.9rem;
}

@media (min-width: 768px) {
  .nav-links {
    display: flex;
  }
  .nav-signin {
    display: block;
  }
}

/* Mobile menu toggle */
.mobile-menu-toggle {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  background: none;
  border: none;
  color: var(--text-secondary);
  cursor: pointer;
}

@media (min-width: 768px) {
  .mobile-menu-toggle {
    display: none;
  }
}

/* Mobile menu drawer */
.mobile-menu {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: var(--bg-secondary);
  z-index: 200;
  padding: 20px;
  flex-direction: column;
}

.mobile-menu.open {
  display: flex;
}

.mobile-menu-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 32px;
}

.mobile-menu-close {
  width: 40px;
  height: 40px;
  background: none;
  border: none;
  color: var(--text-secondary);
  cursor: pointer;
  font-size: 24px;
}

.mobile-menu-links {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.mobile-menu-links a {
  display: block;
  padding: 12px 16px;
  color: var(--text-primary);
  font-size: 1.1rem;
  border-radius: var(--radius);
  transition: background 0.2s;
}

.mobile-menu-links a:hover {
  background: var(--bg-tertiary);
  text-decoration: none;
}

.mobile-menu-cta {
  margin-top: auto;
  padding-top: 24px;
  border-top: 1px solid var(--border);
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px 24px;
  font-size: 0.9rem;
  font-weight: 500;
  border: none;
  border-radius: var(--radius);
  cursor: pointer;
  transition: all 0.2s;
  text-decoration: none;
  min-height: 44px;
}

.btn:hover {
  text-decoration: none;
}

.btn-primary {
  background: linear-gradient(135deg, #2563eb 0%, #58a6ff 100%);
  color: #fff;
  box-shadow: 0 4px 12px rgba(88, 166, 255, 0.3);
  position: relative;
  overflow: hidden;
}

.btn-primary::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,0.2), transparent);
  transition: left 0.5s ease;
}

.btn-primary:hover {
  background: linear-gradient(135deg, #3b82f6 0%, #79b8ff 100%);
  box-shadow: 0 6px 20px rgba(88, 166, 255, 0.4);
  transform: translateY(-1px);
}

.btn-primary:hover::before {
  left: 100%;
}

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

.btn-secondary:hover {
  background: var(--border);
}

.btn-outline {
  background: transparent;
  color: var(--accent-blue);
  border: 1px solid var(--accent-blue);
}

.btn-outline:hover {
  background: rgba(88, 166, 255, 0.1);
}

.btn-sm {
  padding: 8px 16px;
  font-size: 0.85rem;
  min-height: 36px;
}

.btn-lg {
  padding: 16px 32px;
  font-size: 1rem;
}

.btn-block {
  width: 100%;
}

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

/* Cards */
.card {
  background: var(--bg-secondary);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 24px;
}

.card-header {
  margin-bottom: 16px;
  padding-bottom: 16px;
  border-bottom: 1px solid var(--border);
}

/* Sections */
.section {
  padding: 48px 0;
}

.section-lg {
  padding: 64px 0;
}

@media (min-width: 768px) {
  .section {
    padding: 64px 0;
  }
  .section-lg {
    padding: 96px 0;
  }
}

.section-header {
  text-align: center;
  max-width: 700px;
  margin: 0 auto 40px;
}

.section-header p {
  font-size: 1.1rem;
}

/* Grid */
.grid {
  display: grid;
  gap: 24px;
}

.grid-2 { grid-template-columns: 1fr; }
.grid-3 { grid-template-columns: 1fr; }
.grid-4 { grid-template-columns: 1fr; }

@media (min-width: 640px) {
  .grid-2 { grid-template-columns: repeat(2, 1fr); }
  .grid-4 { grid-template-columns: repeat(2, 1fr); }
}

@media (min-width: 768px) {
  .grid-3 { grid-template-columns: repeat(3, 1fr); }
}

@media (min-width: 1024px) {
  .grid-4 { grid-template-columns: repeat(4, 1fr); }
}

/* Hero */
.hero {
  padding: 64px 0 80px;
  text-align: center;
  position: relative;
  overflow: hidden;
  background: linear-gradient(135deg, #0d1117 0%, #161b22 50%, #1a1f2e 100%);
}

.hero::before {
  content: '';
  position: absolute;
  top: -50%;
  left: -50%;
  width: 200%;
  height: 200%;
  background:
    radial-gradient(circle at 20% 80%, rgba(88, 166, 255, 0.15) 0%, transparent 40%),
    radial-gradient(circle at 80% 20%, rgba(139, 92, 246, 0.12) 0%, transparent 40%),
    radial-gradient(circle at 40% 40%, rgba(63, 185, 80, 0.08) 0%, transparent 30%);
  animation: heroGlow 15s ease-in-out infinite alternate;
  pointer-events: none;
}

@keyframes heroGlow {
  0% { transform: translate(0, 0) rotate(0deg); }
  100% { transform: translate(-5%, -5%) rotate(3deg); }
}

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

.hero-icon {
  width: 80px;
  height: 80px;
  margin-bottom: 24px;
  filter: drop-shadow(0 0 20px rgba(88, 166, 255, 0.5));
  animation: heroIconPulse 3s ease-in-out infinite;
}

@keyframes heroIconPulse {
  0%, 100% { filter: drop-shadow(0 0 20px rgba(88, 166, 255, 0.5)); transform: scale(1); }
  50% { filter: drop-shadow(0 0 30px rgba(88, 166, 255, 0.8)); transform: scale(1.05); }
}

@media (min-width: 768px) {
  .hero-icon {
    width: 100px;
    height: 100px;
  }
}

.hero h1 {
  font-size: 2.25rem;
  margin-bottom: 16px;
  background: linear-gradient(135deg, #fff 0%, #58a6ff 50%, #a78bfa 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.hero-subtitle {
  font-size: 1.1rem;
  color: var(--text-secondary);
  max-width: 600px;
  margin: 0 auto 16px;
}

.hero-audience {
  font-size: 0.95rem;
  color: var(--text-muted);
  max-width: 600px;
  margin: 0 auto 32px;
}

.hero-actions {
  display: flex;
  flex-direction: column;
  gap: 12px;
  max-width: 320px;
  margin: 0 auto;
}

@media (min-width: 640px) {
  .hero-actions {
    flex-direction: row;
    max-width: none;
    justify-content: center;
  }
}

@media (min-width: 768px) {
  .hero {
    padding: 100px 0 120px;
  }
  .hero h1 {
    font-size: 3.5rem;
  }
  .hero-subtitle {
    font-size: 1.25rem;
  }
}

/* Hero Benefits */
.hero-benefits {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 24px;
  margin: 32px 0;
}

.benefit-item {
  display: flex;
  align-items: center;
  gap: 8px;
  color: var(--text-secondary);
  font-size: 0.95rem;
}

.benefit-icon {
  font-size: 1.2rem;
}

@media (max-width: 768px) {
  .hero-benefits {
    flex-direction: column;
    gap: 16px;
    align-items: center;
  }
}

/* Hero dashboard mockup */
.hero-visual {
  margin-top: 48px;
  position: relative;
}

.dashboard-mockup {
  background: linear-gradient(145deg, #1a1f2e 0%, #21262d 100%);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 16px;
  max-width: 900px;
  margin: 0 auto;
  box-shadow:
    0 25px 50px -12px rgba(0, 0, 0, 0.5),
    0 0 0 1px rgba(88, 166, 255, 0.1),
    inset 0 1px 0 rgba(255, 255, 255, 0.05);
}

.mockup-header {
  display: flex;
  gap: 8px;
  margin-bottom: 16px;
  padding-bottom: 12px;
  border-bottom: 1px solid var(--border);
}

.mockup-dot {
  width: 12px;
  height: 12px;
  border-radius: 50%;
}

.mockup-dot.red { background: #f85149; }
.mockup-dot.yellow { background: #d29922; }
.mockup-dot.green { background: #3fb950; }

.mockup-content {
  display: grid;
  grid-template-columns: 1fr;
  gap: 12px;
}

@media (min-width: 640px) {
  .mockup-content {
    grid-template-columns: 200px 1fr;
  }
}

.mockup-accounts {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.mockup-account {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 12px;
  background: var(--bg-primary);
  border-radius: 6px;
  font-size: 0.85rem;
}

.mockup-account-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  flex-shrink: 0;
}

.mockup-account-dot.funded { background: #f85149; }
.mockup-account-dot.eval { background: #58a6ff; }

.mockup-account-name {
  flex: 1;
  color: var(--text-primary);
}

.mockup-account-pnl {
  font-weight: 600;
}

.mockup-account-pnl.positive { color: #3fb950; }
.mockup-account-pnl.negative { color: #f85149; }

.mockup-chart {
  background: var(--bg-primary);
  border-radius: 8px;
  padding: 16px;
  min-height: 180px;
  display: flex;
  flex-direction: column;
}

.mockup-chart-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 12px;
}

.mockup-symbol {
  font-weight: 600;
  font-size: 1.1rem;
  color: var(--text-primary);
}

.mockup-price {
  font-size: 1.25rem;
  font-weight: 700;
  color: #3fb950;
}

.mockup-bars {
  flex: 1;
  display: flex;
  align-items: flex-end;
  gap: 3px;
  padding-top: 8px;
}

.mockup-bar {
  flex: 1;
  min-width: 4px;
  background: linear-gradient(to top, #3fb950 0%, #58a6ff 100%);
  border-radius: 2px 2px 0 0;
  animation: barGrow 1.5s ease-out forwards;
  opacity: 0;
}

@keyframes barGrow {
  0% { height: 0; opacity: 0; }
  100% { opacity: 1; }
}

.mockup-buttons {
  display: flex;
  gap: 8px;
  margin-top: 12px;
}

.mockup-btn {
  flex: 1;
  padding: 10px;
  border: none;
  border-radius: 6px;
  font-weight: 600;
  font-size: 0.9rem;
  cursor: default;
}

.mockup-btn.buy {
  background: linear-gradient(135deg, #238636 0%, #2ea043 100%);
  color: #fff;
}

.mockup-btn.sell {
  background: linear-gradient(135deg, #da3633 0%, #f85149 100%);
  color: #fff;
}

/* Feature cards */
.feature-card {
  text-align: center;
  padding: 32px 24px;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  position: relative;
  overflow: hidden;
}

.feature-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--accent-blue), var(--accent-green));
  opacity: 0;
  transition: opacity 0.3s ease;
}

.feature-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 24px rgba(0, 0, 0, 0.3);
}

.feature-card:hover::before {
  opacity: 1;
}

.feature-icon {
  width: 64px;
  height: 64px;
  margin: 0 auto 20px;
  padding: 16px;
  border-radius: 16px;
  color: #fff;
  background: linear-gradient(135deg, var(--accent-blue) 0%, #8b5cf6 100%);
  box-shadow: 0 4px 12px rgba(88, 166, 255, 0.3);
}

.feature-icon.green {
  background: linear-gradient(135deg, #238636 0%, #3fb950 100%);
  box-shadow: 0 4px 12px rgba(63, 185, 80, 0.3);
}

.feature-icon.red {
  background: linear-gradient(135deg, #da3633 0%, #f85149 100%);
  box-shadow: 0 4px 12px rgba(248, 81, 73, 0.3);
}

.feature-icon.yellow {
  background: linear-gradient(135deg, #9e6a03 0%, #d29922 100%);
  box-shadow: 0 4px 12px rgba(210, 153, 34, 0.3);
}

.feature-icon.purple {
  background: linear-gradient(135deg, #8b5cf6 0%, #a78bfa 100%);
  box-shadow: 0 4px 12px rgba(139, 92, 246, 0.3);
}

.feature-card h3 {
  margin-bottom: 8px;
}

.feature-card p {
  font-size: 0.95rem;
}

/* Problem cards */
.problem-card .feature-icon {
  background: linear-gradient(135deg, #6e3030 0%, #8b4545 100%);
  box-shadow: 0 4px 12px rgba(139, 69, 69, 0.3);
}

.problem-card::before {
  background: linear-gradient(90deg, #f85149, #d29922);
}

/* Section backgrounds with gradients */
.section-gradient-blue {
  background: linear-gradient(180deg, var(--bg-secondary) 0%, rgba(88, 166, 255, 0.05) 50%, var(--bg-secondary) 100%);
}

.section-gradient-green {
  background: linear-gradient(180deg, var(--bg-primary) 0%, rgba(63, 185, 80, 0.05) 50%, var(--bg-primary) 100%);
}

.section-gradient-purple {
  background: linear-gradient(180deg, var(--bg-secondary) 0%, rgba(139, 92, 246, 0.05) 50%, var(--bg-secondary) 100%);
}

/* Instrument badges */
.instrument-badge {
  padding: 16px 28px;
  font-weight: 700;
  font-size: 1.1rem;
  background: linear-gradient(145deg, var(--bg-tertiary) 0%, var(--bg-secondary) 100%);
  border: 1px solid var(--border);
  border-radius: 12px;
  color: var(--text-primary);
  transition: all 0.3s ease;
  position: relative;
  overflow: hidden;
}

.instrument-badge::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(88, 166, 255, 0.1) 0%, transparent 50%);
  opacity: 0;
  transition: opacity 0.3s ease;
}

.instrument-badge:hover {
  transform: translateY(-2px);
  border-color: var(--accent-blue);
  box-shadow: 0 8px 16px rgba(88, 166, 255, 0.15);
}

.instrument-badge:hover::before {
  opacity: 1;
}

/* Testimonials */
.testimonial {
  padding: 24px;
  border-left: 3px solid var(--accent-blue);
  background: linear-gradient(135deg, var(--bg-secondary) 0%, rgba(88, 166, 255, 0.03) 100%);
  transition: transform 0.3s ease;
}

.testimonial:hover {
  transform: translateX(4px);
}

.testimonial-text {
  font-style: italic;
  margin-bottom: 16px;
  color: var(--text-primary);
  font-size: 1rem;
  line-height: 1.7;
}

.testimonial-author {
  font-size: 0.9rem;
  color: var(--text-muted);
}

.testimonial-author strong {
  color: var(--text-secondary);
}

/* Pricing cards */
.pricing-card {
  position: relative;
  text-align: center;
  padding: 32px 24px;
}

.pricing-card.featured {
  border-color: var(--accent-blue);
  box-shadow: 0 0 0 1px var(--accent-blue);
}

.pricing-badge {
  position: absolute;
  top: -12px;
  left: 50%;
  transform: translateX(-50%);
  background: var(--accent-blue);
  color: #fff;
  padding: 4px 16px;
  border-radius: 20px;
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
}

.pricing-badge.gold {
  background: linear-gradient(135deg, #ffd700, #ffaa00);
  color: #000;
}

.pricing-tier {
  font-size: 1.25rem;
  font-weight: 600;
  margin-bottom: 8px;
}

.pricing-price {
  font-size: 2.5rem;
  font-weight: 700;
  color: var(--text-primary);
}

.pricing-price span {
  font-size: 1rem;
  font-weight: 400;
  color: var(--text-muted);
}

.pricing-price .original {
  text-decoration: line-through;
  color: var(--text-muted);
  font-size: 1.25rem;
  margin-right: 8px;
}

.pricing-desc {
  color: var(--text-secondary);
  margin: 8px 0 24px;
}

.pricing-features {
  list-style: none;
  text-align: left;
  margin-bottom: 24px;
}

.pricing-features li {
  padding: 8px 0;
  color: var(--text-secondary);
  font-size: 0.9rem;
  display: flex;
  align-items: center;
  gap: 8px;
}

.pricing-features li::before {
  content: "✓";
  color: var(--accent-green);
  font-weight: bold;
}

/* Forms */
.form-group {
  margin-bottom: 20px;
}

.form-label {
  display: block;
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--text-primary);
  margin-bottom: 8px;
}

.form-input,
.form-select,
.form-textarea {
  width: 100%;
  padding: 12px 14px;
  background: var(--bg-primary);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  color: var(--text-primary);
  font-size: 1rem;
  transition: border-color 0.2s;
  min-height: 44px;
}

.form-input:focus,
.form-select:focus,
.form-textarea:focus {
  outline: none;
  border-color: var(--accent-blue);
}

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

.form-textarea {
  min-height: 100px;
  resize: vertical;
}

.form-hint {
  font-size: 0.8rem;
  color: var(--text-muted);
  margin-top: 6px;
}

.form-checkbox {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  cursor: pointer;
  padding: 8px 0;
}

.form-checkbox input {
  width: 18px;
  height: 18px;
  margin-top: 2px;
  accent-color: var(--accent-blue);
}

.form-radio {
  display: flex;
  align-items: center;
  gap: 10px;
  cursor: pointer;
  padding: 8px 0;
}

.form-radio input {
  width: 18px;
  height: 18px;
  accent-color: var(--accent-blue);
}

/* Footer */
.site-footer {
  background: var(--bg-secondary);
  border-top: 1px solid var(--border);
  padding: 48px 0 24px;
  margin-top: 64px;
}

.footer-grid {
  display: grid;
  gap: 32px;
  margin-bottom: 32px;
}

@media (min-width: 640px) {
  .footer-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (min-width: 768px) {
  .footer-grid {
    grid-template-columns: 2fr 1fr 1fr 1fr;
  }
}

.footer-brand p {
  font-size: 0.9rem;
  margin-top: 12px;
}

.footer-links h4 {
  font-size: 0.9rem;
  margin-bottom: 16px;
  color: var(--text-primary);
}

.footer-links ul {
  list-style: none;
}

.footer-links li {
  margin-bottom: 8px;
}

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

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

.footer-bottom {
  padding-top: 24px;
  border-top: 1px solid var(--border);
  text-align: center;
  color: var(--text-muted);
  font-size: 0.85rem;
}

/* CTA Section */
.cta-section {
  position: relative;
  overflow: hidden;
}

.cta-box {
  position: relative;
  text-align: center;
  padding: 48px 32px;
  background: linear-gradient(135deg, rgba(88, 166, 255, 0.1) 0%, rgba(139, 92, 246, 0.1) 100%);
  border: 1px solid rgba(88, 166, 255, 0.2);
  border-radius: 24px;
  overflow: hidden;
}

.cta-box::before {
  content: '';
  position: absolute;
  top: -50%;
  left: -50%;
  width: 200%;
  height: 200%;
  background: radial-gradient(circle at center, rgba(88, 166, 255, 0.1) 0%, transparent 50%);
  animation: ctaPulse 8s ease-in-out infinite;
}

@keyframes ctaPulse {
  0%, 100% { transform: scale(1); opacity: 0.5; }
  50% { transform: scale(1.1); opacity: 0.8; }
}

.cta-box h2 {
  position: relative;
  margin-bottom: 12px;
}

.cta-box p {
  position: relative;
  font-size: 1.1rem;
  margin-bottom: 32px;
}

.cta-actions {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 16px;
  max-width: 400px;
  margin: 0 auto;
}

@media (min-width: 640px) {
  .cta-actions {
    flex-direction: row;
    max-width: none;
    justify-content: center;
  }
}

/* Audio player embed */
.audio-section {
  background: linear-gradient(145deg, var(--bg-secondary) 0%, rgba(88, 166, 255, 0.05) 100%);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 32px;
  text-align: center;
}

.audio-section h3 {
  margin-bottom: 8px;
}

.audio-section p {
  margin-bottom: 24px;
}

/* Utility classes */
.hidden { display: none !important; }
.mt-4 { margin-top: 1rem; }
.mt-8 { margin-top: 2rem; }
.mb-4 { margin-bottom: 1rem; }
.mb-8 { margin-bottom: 2rem; }

/* Loading spinner */
.spinner {
  width: 18px;
  height: 18px;
  border: 2px solid transparent;
  border-top-color: currentColor;
  border-radius: 50%;
  animation: spin 0.8s linear infinite;
}

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

/* Messages */
.message {
  padding: 12px 16px;
  border-radius: var(--radius);
  margin-bottom: 16px;
  font-size: 0.9rem;
}

.message-success {
  background: rgba(63, 185, 80, 0.1);
  border: 1px solid var(--accent-green);
  color: var(--accent-green);
}

.message-error {
  background: rgba(248, 81, 73, 0.1);
  border: 1px solid var(--accent-red);
  color: var(--accent-red);
}

/* Modal */
.modal-overlay {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.7);
  z-index: 300;
  align-items: center;
  justify-content: center;
  padding: 16px;
}

.modal-overlay.open {
  display: flex;
}

.modal {
  background: var(--bg-secondary);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  width: 100%;
  max-width: 500px;
  max-height: 90vh;
  overflow-y: auto;
}

.modal-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 20px 24px;
  border-bottom: 1px solid var(--border);
}

.modal-header h2 {
  margin: 0;
  font-size: 1.25rem;
}

.modal-close {
  width: 32px;
  height: 32px;
  background: none;
  border: none;
  color: var(--text-muted);
  cursor: pointer;
  font-size: 20px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 4px;
}

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

.modal-body {
  padding: 24px;
}

/* Docs sidebar */
.docs-layout {
  display: flex;
  flex-direction: column;
  min-height: calc(100vh - 60px);
}

.docs-sidebar {
  display: none;
  width: 280px;
  padding: 24px;
  border-right: 1px solid var(--border);
  background: var(--bg-secondary);
  position: sticky;
  top: 60px;
  height: calc(100vh - 60px);
  overflow-y: auto;
}

.docs-sidebar.open {
  display: block;
  position: fixed;
  top: 0;
  left: 0;
  bottom: 0;
  z-index: 200;
  width: 100%;
  max-width: 320px;
}

@media (min-width: 1024px) {
  .docs-layout {
    flex-direction: row;
  }
  .docs-sidebar {
    display: block;
  }
}

.docs-nav-group {
  margin-bottom: 24px;
}

.docs-nav-title {
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin-bottom: 8px;
}

.docs-nav-links {
  list-style: none;
}

.docs-nav-links a {
  display: block;
  padding: 8px 12px;
  color: var(--text-secondary);
  font-size: 0.9rem;
  border-radius: var(--radius);
  transition: all 0.2s;
}

.docs-nav-links a:hover {
  background: var(--bg-tertiary);
  color: var(--text-primary);
  text-decoration: none;
}

.docs-nav-links a.active {
  background: rgba(88, 166, 255, 0.1);
  color: var(--accent-blue);
}

.docs-content {
  flex: 1;
  padding: 24px 16px;
  max-width: 800px;
}

@media (min-width: 768px) {
  .docs-content {
    padding: 32px 48px;
  }
}

.docs-content h1 {
  margin-bottom: 24px;
}

.docs-content h2 {
  margin-top: 32px;
  padding-top: 24px;
  border-top: 1px solid var(--border);
}

.docs-content h2:first-of-type {
  margin-top: 0;
  padding-top: 0;
  border-top: none;
}

.docs-content ul,
.docs-content ol {
  margin-bottom: 1rem;
  padding-left: 24px;
  color: var(--text-secondary);
}

.docs-content li {
  margin-bottom: 8px;
}

.docs-content code {
  background: var(--bg-tertiary);
  padding: 2px 6px;
  border-radius: 4px;
  font-size: 0.9em;
}

.docs-content pre {
  background: var(--bg-tertiary);
  padding: 16px;
  border-radius: var(--radius);
  overflow-x: auto;
  margin-bottom: 1rem;
}

.docs-content pre code {
  background: none;
  padding: 0;
}

/* Back to top */
.back-to-top {
  position: fixed;
  bottom: 24px;
  right: 24px;
  width: 44px;
  height: 44px;
  background: var(--bg-tertiary);
  border: 1px solid var(--border);
  border-radius: 50%;
  display: none;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  color: var(--text-secondary);
  z-index: 50;
  transition: all 0.2s;
}

.back-to-top:hover {
  background: var(--border);
  color: var(--text-primary);
}

.back-to-top.visible {
  display: flex;
}

/* FAQ Section */
.faq-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 24px;
}

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

.faq-item {
  background: var(--bg-tertiary);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 24px;
}

.faq-item h3 {
  font-size: 1.1rem;
  margin-bottom: 8px;
  color: var(--text-primary);
}

.faq-item p {
  color: var(--text-secondary);
  line-height: 1.6;
}
