/* 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;
  display: block;
}

.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-links a[href="/prop-firm-guide/match/"] {
  color: #e8c76e;
  font-weight: 600;
  transition:
    color 0.2s ease;
}

.nav-links a[href="/prop-firm-guide/match/"]:hover,
.nav-links a[href="/prop-firm-guide/match/"].active {
  color: #f7e2a0;
  text-decoration: none;
}

.nav-links .nav-icon-link {
  display: flex;
  align-items: center;
}

.nav-links .nav-icon-link svg {
  opacity: 0.7;
  transition: opacity 0.2s;
}

.nav-links .nav-icon-link:hover svg {
  opacity: 1;
}

.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;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: none;
  border: none;
  color: var(--text-secondary);
  cursor: pointer;
  font-size: 24px;
}

.mobile-menu-close svg {
  width: 20px;
  height: 20px;
  display: block;
}

.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-links a[href="/prop-firm-guide/match/"] {
  color: #e8c76e;
  font-weight: 600;
}

.mobile-menu-links a[href="/prop-firm-guide/match/"]:hover,
.mobile-menu-links a[href="/prop-firm-guide/match/"].active {
  color: #f7e2a0;
}

.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-group.interests-grid {
  display: grid;
  grid-template-columns: 1fr;
  column-gap: 24px;
  row-gap: 4px;
}

.form-group.interests-grid > .form-label {
  grid-column: 1 / -1;
  margin-bottom: 8px;
}

.form-group.interests-grid > .form-checkbox {
  margin: 0;
  min-width: 0;
}

.form-group.interests-grid > .form-checkbox span {
  line-height: 1.35;
}

.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;
}

.password-field {
  position: relative;
}

.password-field .form-input {
  padding-right: 48px;
}

.password-toggle {
  position: absolute;
  top: 50%;
  right: 12px;
  transform: translateY(-50%);
  width: 28px;
  height: 28px;
  border: none;
  border-radius: 6px;
  background: transparent;
  color: var(--text-muted);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: color 0.2s ease, background-color 0.2s ease;
}

.password-toggle:hover,
.password-toggle:focus-visible {
  color: var(--text-primary);
  background: rgba(255, 255, 255, 0.06);
  outline: none;
}

.password-toggle svg {
  width: 18px;
  height: 18px;
}

.requirements {
  margin-top: 12px;
  padding: 12px 14px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.03);
}

.requirements-title {
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--text-primary);
  text-transform: uppercase;
  letter-spacing: 0.04em;
  margin-bottom: 10px;
}

.requirement {
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--text-muted);
  font-size: 0.84rem;
  line-height: 1.35;
}

.requirement + .requirement {
  margin-top: 8px;
}

.requirement .indicator {
  width: 16px;
  height: 16px;
  position: relative;
  flex-shrink: 0;
}

.requirement .dot,
.requirement .check {
  position: absolute;
  inset: 0;
}

.requirement .dot {
  width: 8px;
  height: 8px;
  background: currentColor;
  border-radius: 50%;
  top: 4px;
  left: 4px;
}

.requirement .check {
  opacity: 0;
}

.requirement.met {
  color: var(--accent-green);
}

.requirement.met .dot {
  opacity: 0;
}

.requirement.met .check {
  opacity: 1;
}

.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);
}

.site-risk-disclaimer {
  margin: 0 0 24px;
  padding: 14px 16px;
  border-radius: var(--radius);
  border: 1px solid rgba(248, 81, 73, 0.4);
  border-left: 4px solid var(--accent-red);
  background: rgba(248, 81, 73, 0.08);
  color: var(--text-secondary);
  font-size: 0.82rem;
  line-height: 1.55;
}

.site-risk-disclaimer p {
  margin: 0;
}

.site-risk-disclaimer strong {
  color: var(--text-primary);
}

.site-risk-disclaimer a {
  color: var(--accent-blue);
  text-decoration: none;
}

.site-risk-disclaimer a:hover {
  text-decoration: underline;
}

.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;
  }
}

/* Video overview embed */
.video-container {
  position: relative;
  width: 100%;
  max-width: 900px;
  margin: 0 auto;
  padding-bottom: 56.25%; /* 16:9 */
  border-radius: 12px;
  overflow: hidden;
  cursor: pointer;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.4);
  border: 1px solid var(--border);
}

.video-thumbnail {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: contain;
  background: #020b1c;
}

.video-play-btn {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  opacity: 0.85;
  transition: opacity 0.2s ease, transform 0.2s ease;
  filter: drop-shadow(0 4px 12px rgba(0, 0, 0, 0.5));
}

.video-container:hover .video-play-btn {
  opacity: 1;
  transform: translate(-50%, -50%) scale(1.1);
}

/* 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);
}

/* Breadcrumbs */
.breadcrumbs {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  margin: 0 0 20px;
  color: var(--text-muted);
  font-size: 0.9rem;
}

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

.breadcrumbs a:hover {
  text-decoration: underline;
}

.breadcrumbs span {
  color: var(--text-muted);
}

/* Register page */
.register-page {
  padding: 40px 0 56px;
}

.register-shell {
  display: grid;
  gap: 24px;
}

@media (min-width: 960px) {
  .register-shell {
    grid-template-columns: minmax(0, 1.15fr) minmax(280px, 0.85fr);
    align-items: start;
  }
}

.register-card,
.register-aside {
  background: linear-gradient(180deg, rgba(33, 38, 45, 0.94), rgba(13, 17, 23, 0.96));
  border: 1px solid var(--border);
  border-radius: 20px;
  box-shadow: 0 24px 48px rgba(0, 0, 0, 0.28);
}

.register-card {
  padding: 28px 24px;
}

@media (min-width: 768px) {
  .register-card {
    padding: 32px 32px;
  }
}

.register-card h1 {
  margin-bottom: 10px;
}

.register-card > p {
  color: var(--text-secondary);
}

.register-aside {
  padding: 24px;
  position: sticky;
  top: 96px;
}

.register-kicker {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 12px;
  border-radius: 999px;
  border: 1px solid rgba(88, 166, 255, 0.4);
  color: #cde7ff;
  background: rgba(88, 166, 255, 0.12);
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  margin-bottom: 14px;
}

.register-grid {
  display: grid;
  gap: 20px;
}

@media (min-width: 768px) {
  .register-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .register-grid .span-2 {
    grid-column: 1 / -1;
  }
}

.register-note,
.register-links {
  margin-top: 24px;
  padding-top: 24px;
  border-top: 1px solid var(--border);
}

.register-note h2,
.register-links h2 {
  font-size: 1rem;
  margin-bottom: 12px;
}

.register-note ul,
.register-links ul {
  list-style: none;
  display: grid;
  gap: 10px;
}

.register-note li,
.register-links li {
  color: var(--text-secondary);
  line-height: 1.5;
}

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

.register-links a:hover {
  text-decoration: underline;
}

.register-success {
  margin-bottom: 20px;
}

.register-helper-card {
  padding: 18px;
  border-radius: 16px;
  border: 1px solid rgba(88, 166, 255, 0.28);
  background: rgba(88, 166, 255, 0.08);
}

.register-helper-card + .register-helper-card {
  margin-top: 16px;
}

.register-helper-card h2 {
  font-size: 1rem;
  margin-bottom: 8px;
}

.register-helper-card p {
  color: var(--text-secondary);
  margin: 0;
}

.register-helper-card ul {
  list-style: none;
  display: grid;
  gap: 8px;
  margin-top: 10px;
}

.register-helper-card li {
  color: var(--text-secondary);
  line-height: 1.45;
}

.register-helper-card li::before {
  content: "• ";
  color: var(--accent-blue);
}

/* 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;
}

/* Success Dialog (waitlist confirmation) */
.success-dialog {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.8);
  z-index: 400;
  align-items: center;
  justify-content: center;
  padding: 16px;
}

.success-dialog.open {
  display: flex;
}

.success-dialog-content {
  background: var(--bg-secondary);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 48px;
  text-align: center;
  max-width: 400px;
}

.success-icon {
  width: 80px;
  height: 80px;
  margin: 0 auto 24px;
  background: rgba(74, 222, 128, 0.1);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
}

.success-icon svg {
  width: 40px;
  height: 40px;
  color: #4ade80;
}

.success-dialog-content h2 {
  margin: 0 0 12px;
  font-size: 1.5rem;
}

.success-dialog-content p {
  margin: 0 0 24px;
  color: var(--text-muted);
}

.modal {
  background: var(--bg-secondary);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  width: 100%;
  max-width: 960px;
  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;
}

@media (min-width: 768px) {
  .form-group.interests-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

/* 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;
}

/* ============================================================
   Apple-design polish — added 2026-08-22
   Additive overrides applied site-wide via the shared stylesheet:
   optical typography, size-specific tracking/leading, instant press
   feedback, visible keyboard focus, translucent chrome, motion
   restraint, and the previously-absent reduced-motion /
   reduced-transparency / high-contrast support. Purely additive —
   this whole block can be removed to revert.
   Ref: apple-design skill §1, §12, §14, §15, §16.
   ============================================================ */

/* --- Rendering & optical sizing (§15) --- */
html { -webkit-text-size-adjust: 100%; }

body {
  font-optical-sizing: auto;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
}

/* --- Typography: tracking is size-specific, tighten as text grows;
       leading tightens on large headings, body stays open (§15) --- */
h1, h2, h3, h4, h5, h6 { text-wrap: balance; }
h1 { letter-spacing: -0.021em; line-height: 1.08; }
h2 { letter-spacing: -0.017em; line-height: 1.14; }
h3 { letter-spacing: -0.012em; line-height: 1.2; }
h4 { letter-spacing: -0.006em; }
p  { text-wrap: pretty; }

.hero h1,
.quickstart-hero h1,
.flowpulse-hero h1,
.streamdeck-hero h1,
.journal-hero h1,
.mancini-hero h1,
.playback-hero h1,
.pricing-hero h1,
.dojo-hero h1 { letter-spacing: -0.028em; line-height: 1.04; }
.hero-subtitle { letter-spacing: -0.006em; }
.pricing-price { letter-spacing: -0.02em; }

/* --- Links: give the underline room to breathe on hover --- */
a:hover {
  text-underline-offset: 3px;
  text-decoration-thickness: 1px;
}

/* --- Keyboard focus is visible everywhere (§16 craft/agency) --- */
:where(a, button, .btn, input, select, textarea, [tabindex]):focus-visible {
  outline: 2px solid var(--accent-blue);
  outline-offset: 2px;
  border-radius: 6px;
}

/* --- Response: feedback lives on the press, and it's instant (§1) --- */
.btn {
  transition: transform 0.12s ease, box-shadow 0.2s ease, background 0.2s ease, color 0.2s ease;
}
.btn:active { transform: translateY(0) scale(0.975); }
.feature-card:active,
.instrument-badge:active,
.pricing-card:active { transform: translateY(-2px) scale(0.996); }

/* --- Translucent chrome: the nav floats as a material, content
       scrolls underneath instead of behind an opaque strip (§12) --- */
.site-header {
  background: rgba(22, 27, 34, 0.72);
  -webkit-backdrop-filter: saturate(180%) blur(20px);
  backdrop-filter: saturate(180%) blur(20px);
  border-bottom-color: rgba(255, 255, 255, 0.08);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.06);
}

/* --- Motion restraint: calm the perpetual full-viewport loops (§14, §16).
       Kept as ambiance, no longer a distracting oscillation. --- */
.hero::before { animation-duration: 40s; opacity: 0.65; }
.hero-icon {
  animation: none;
  filter: drop-shadow(0 0 24px rgba(88, 166, 255, 0.45));
}
.cta-box::before { animation-duration: 16s; }

/* --- Text selection --- */
::selection { background: rgba(88, 166, 255, 0.28); color: #fff; }

/* --- Reduced motion: a gentler, non-vestibular equivalent — not the
       absence of feedback. Previously missing entirely (§14). --- */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
    scroll-behavior: auto !important;
  }
  .btn:hover,
  .feature-card:hover,
  .instrument-badge:hover,
  .testimonial:hover,
  .video-container:hover .video-play-btn { transform: none; }
}

/* --- Reduced transparency: make the material frostier/solid (§14) --- */
@media (prefers-reduced-transparency: reduce) {
  .site-header {
    background: var(--bg-secondary);
    -webkit-backdrop-filter: none;
    backdrop-filter: none;
  }
}

/* --- Higher contrast: firmer borders and text (§14) --- */
@media (prefers-contrast: more) {
  :root {
    --text-secondary: #c9d1d9;
    --text-muted: #8b949e;
    --border: #4d5560;
  }
  a { text-decoration: underline; }
}
