/* ---------- Root & Layout ---------- */
:root {
  --max-w: 1200px;
  --c-dark: #181c26;
  --c-light: #f7f7f7;
  --c-focus: #ffbf47;
  --c-border: #ddd;
  --c-primary: #2563eb;
  --c-success: #10b981;
  --c-warning: #f59e0b;
  --c-danger: #ef4444;
  --c-gray-50: #f9fafb;
  --c-gray-100: #f3f4f6;
  --c-gray-200: #e5e7eb;
  --c-gray-300: #d1d5db;
  --c-gray-600: #4b5563;
  --c-gray-900: #111827;
  --border-radius: 8px;
  --shadow-sm: 0 1px 2px 0 rgb(0 0 0 / 0.05);
  --shadow-md: 0 4px 6px -1px rgb(0 0 0 / 0.1), 0 2px 4px -2px rgb(0 0 0 / 0.1);
  --shadow-lg:
    0 10px 15px -3px rgb(0 0 0 / 0.1), 0 4px 6px -4px rgb(0 0 0 / 0.1);
}

/* ---------- Dark Theme Variables ---------- */
:root[data-theme='dark'],
.dark-theme {
  --c-dark: #f7f7f7;
  --c-light: #0f172a;
  --c-focus: #fbbf24;
  --c-border: #374151;
  --c-primary: #3b82f6;
  --c-success: #10b981;
  --c-warning: #f59e0b;
  --c-danger: #ef4444;
  --c-gray-50: #1e293b;
  --c-gray-100: #334155;
  --c-gray-200: #475569;
  --c-gray-300: #64748b;
  --c-gray-600: #cbd5e1;
  --c-gray-900: #f1f5f9;
  --shadow-sm: 0 1px 2px 0 rgb(0 0 0 / 0.3);
  --shadow-md: 0 4px 6px -1px rgb(0 0 0 / 0.3), 0 2px 4px -2px rgb(0 0 0 / 0.3);
  --shadow-lg:
    0 10px 15px -3px rgb(0 0 0 / 0.4), 0 4px 6px -4px rgb(0 0 0 / 0.4);
}

/* Auto dark theme based on system preference */
@media (prefers-color-scheme: dark) {
  :root {
    --c-dark: #f7f7f7;
    --c-light: #0f172a;
    --c-focus: #fbbf24;
    --c-border: #374151;
    --c-primary: #3b82f6;
    --c-success: #10b981;
    --c-warning: #f59e0b;
    --c-danger: #ef4444;
    --c-gray-50: #1e293b;
    --c-gray-100: #334155;
    --c-gray-200: #475569;
    --c-gray-300: #64748b;
    --c-gray-600: #cbd5e1;
    --c-gray-900: #f1f5f9;
    --shadow-sm: 0 1px 2px 0 rgb(0 0 0 / 0.3);
    --shadow-md:
      0 4px 6px -1px rgb(0 0 0 / 0.3), 0 2px 4px -2px rgb(0 0 0 / 0.3);
    --shadow-lg:
      0 10px 15px -3px rgb(0 0 0 / 0.4), 0 4px 6px -4px rgb(0 0 0 / 0.4);
  }
}

/* Override dark theme if user explicitly sets light mode */
:root[data-theme='light'] {
  --c-dark: #181c26;
  --c-light: #f7f7f7;
  --c-focus: #ffbf47;
  --c-border: #ddd;
  --c-primary: #2563eb;
  --c-success: #10b981;
  --c-warning: #f59e0b;
  --c-danger: #ef4444;
  --c-gray-50: #f9fafb;
  --c-gray-100: #f3f4f6;
  --c-gray-200: #e5e7eb;
  --c-gray-300: #d1d5db;
  --c-gray-600: #4b5563;
  --c-gray-900: #111827;
  --shadow-sm: 0 1px 2px 0 rgb(0 0 0 / 0.05);
  --shadow-md: 0 4px 6px -1px rgb(0 0 0 / 0.1), 0 2px 4px -2px rgb(0 0 0 / 0.1);
  --shadow-lg:
    0 10px 15px -3px rgb(0 0 0 / 0.1), 0 4px 6px -4px rgb(0 0 0 / 0.1);
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html,
body {
  height: 100%;
  margin: 0;
  overflow-x: hidden;
}

body {
  font-family:
    system-ui,
    -apple-system,
    BlinkMacSystemFont,
    'Segoe UI',
    Roboto,
    sans-serif;
  display: flex;
  flex-direction: column;
  line-height: 1.6;
  color: var(--c-gray-900);
}

/* ---------- Containers ---------- */
.container {
  width: 100%;
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 1.5rem;
}

/* Special container for main content with optimal reading width */
main .container {
  max-width: min(var(--max-w), 65ch);
}

@media (max-width: 600px) {
  .container {
    padding: 1rem;
  }

  main.container {
    padding: 1rem;
  }
}

/* ---------- Header ---------- */
header {
  background: #111827;
  color: #f9fafb;
  border-bottom: 1px solid var(--c-border);
}

header .container {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1rem;
  padding: 2rem 1rem;
}

.brand,
.brand:visited {
  color: #f9fafb;
  text-decoration: none;
  display: flex;
  align-items: center;
  gap: 1rem;
  transition: all 0.3s ease;
}

.brand h1 {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin: 0;
  font-size: 1.75rem;
  font-weight: 700;
  color: var(--c-text);
  letter-spacing: -0.025em;
}

.brand:hover {
  color: var(--c-accent);
  transform: translateY(-2px);
}

.brand:focus-visible {
  outline: 3px solid var(--c-accent);
  outline-offset: 4px;
  border-radius: 8px;
}

svg.logo {
  width: 2.5rem;
  height: auto;
  color: inherit;
}

/* Theme-specific logo icons using ::before for better control */
.logo-icon::before {
  content: '';
  width: 28px;
  height: 28px;
  background-image: url('/assets/logo-icon.svg');
  /* Dark icon for light theme */
  background-size: contain;
  background-repeat: no-repeat;
  background-position: center;
  display: block;
}

.brand:hover .logo {
  transform: rotate(5deg) scale(1.05);
  background: rgba(59, 130, 246, 0.2);
}

.brand-text {
  font-size: inherit;
  font-weight: inherit;
  color: inherit;
  letter-spacing: inherit;
}

/* Header tagline */
.header-tagline {
  text-align: center;
}

.header-tagline h1,
.header-tagline h2 {
  font-size: 1.1rem;
  font-weight: 400;
  color: var(--c-text-secondary);
  margin: 0;
  letter-spacing: 0.5px;
}

/* ---------- Typography ---------- */
h1,
h2,
h3,
h4 {
  margin: 0.3em 0;
  font-weight: 600;
  line-height: 1.25;
}

h1 {
  font-size: 1.875rem;
}

h2 {
  font-size: 1.5rem;
}

h3 {
  font-size: 1.25rem;
  margin-top: 2rem;
}

p {
  margin: 1rem 0;
}

/* ---------- Hero Section ---------- */
.hero-section {
  text-align: center;
  padding: 3rem 0;
  background: linear-gradient(
    135deg,
    var(--c-gray-50) 0%,
    var(--c-gray-100) 100%
  );
  border-radius: var(--border-radius);
  margin-bottom: 3rem;
}

.hero-headline {
  font-size: 2.25rem;
  font-weight: 700;
  margin-bottom: 1rem;
  color: var(--c-gray-900);
  line-height: 1.1;
}

.hero-subtext {
  font-size: 1.125rem;
  color: var(--c-gray-600);
  max-width: 700px;
  margin: 0 auto 2rem;
  line-height: 1.6;
}

/* Live Insights Banner */
.live-insights-banner {
  background: linear-gradient(135deg, #10b981 0%, #059669 100%);
  color: white;
  padding: 0.75rem 1.5rem;
  border-radius: 25px;
  margin: 1.5rem auto;
  max-width: 650px;
  font-size: 0.9rem;
  display: flex;
  align-items: center;
  gap: 0.75rem;
  animation: pulse-glow 2s infinite alternate;
}

.live-indicator {
  background: rgba(255, 255, 255, 0.2);
  padding: 0.25rem 0.5rem;
  border-radius: 12px;
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.5px;
  flex-shrink: 0;
}

.insight-text {
  flex: 1;
  text-align: left;
}

@keyframes pulse-glow {
  0% {
    box-shadow: 0 0 0 0 rgba(16, 185, 129, 0.4);
  }

  100% {
    box-shadow: 0 0 20px 5px rgba(16, 185, 129, 0.2);
  }
}

/* Social Proof Inline */
.social-proof-inline {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
  gap: 1rem;
  margin: 2rem 1rem 0 1rem;
  padding: 1.5rem;
  background: white;
  box-shadow: var(--shadow-sm);
}

.proof-item {
  text-align: center;
}

.proof-number {
  display: block;
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--c-primary);
  line-height: 1;
}

.proof-label {
  font-size: 0.8rem;
  color: var(--c-gray-600);
  margin-top: 0.25rem;
}

@media (max-width: 768px) {
  .hero-headline {
    font-size: 1.875rem;
  }

  .hero-section {
    padding: 2rem 1rem;
  }

  .live-insights-banner {
    flex-direction: column;
    text-align: center;
    gap: 0.5rem;
  }

  .insight-text {
    text-align: center;
  }
}

/* ---------- Waitlist Form ---------- */
.waitlist-form {
  max-width: 600px;
  margin: 0 auto;
}

.form-group {
  display: flex;
  gap: 0.75rem;
  margin-bottom: 1rem;
  align-items: stretch;
}

.email-input {
  flex: 1;
  padding: 0.875rem 1rem;
  border: 2px solid var(--c-gray-300);
  border-radius: var(--border-radius);
  font-size: 1rem;
  transition: border-color 0.2s ease;
}

.email-input:focus {
  outline: none;
  border-color: var(--c-primary);
  box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.1);
}

.cta-button {
  padding: 0.875rem 1.5rem;
  background: var(--c-primary);
  color: white;
  border: none;
  border-radius: var(--border-radius);
  font-size: 1rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.075);
  white-space: nowrap;
  will-change: transform, background-color;
}

.cta-button:hover {
  background: #1d4ed8;
  transform: translateY(-2px) scale(1.02);
}

.micro-proof {
  font-size: 0.875rem;
  color: var(--c-gray-600);
  text-align: center;
  margin: 0;
}

@media (max-width: 500px) {
  .form-group {
    flex-direction: column;
  }
}

/* ---------- Market Pulse Section ---------- */
.market-pulse-section {
  background: linear-gradient(135deg, #f8fafc 0%, #e2e8f0 100%);
  padding: 2.5rem;
  border-radius: var(--border-radius);
  margin: 3rem 0;
  border-left: 4px solid var(--c-primary);
}

.market-pulse-section h3 {
  color: var(--c-gray-900);
  font-size: 1.5rem;
  margin-bottom: 1.5rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.pulse-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
  gap: 1.5rem;
  margin-top: 2rem;
}

.pulse-card {
  background: white;
  border-radius: var(--border-radius);
  padding: 1.5rem;
  box-shadow: var(--shadow-md);
  border-left: 4px solid transparent;
  transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
  will-change: transform, box-shadow;
}

.pulse-card:hover {
  transform: translateY(-6px) scale(1.025);
  box-shadow: var(--shadow-lg);
}

.pulse-card.urgent {
  border-left-color: var(--c-danger);
}

.pulse-card.moderate {
  border-left-color: var(--c-warning);
}

.pulse-card.low {
  border-left-color: var(--c-success);
}

.pulse-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 1rem;
}

.pulse-time {
  font-size: 0.8rem;
  color: var(--c-gray-500);
  font-weight: 500;
}

.pulse-impact {
  padding: 0.25rem 0.75rem;
  border-radius: 12px;
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.5px;
  text-transform: uppercase;
}

.pulse-impact.high {
  background: #fee2e2;
  color: #dc2626;
}

.pulse-impact.medium {
  background: #fef3c7;
  color: #d97706;
}

.pulse-impact.low {
  background: #dcfce7;
  color: #15803d;
}

.pulse-card h4 {
  font-size: 1rem;
  color: var(--c-gray-900);
  margin: 0 0 1rem 0;
  line-height: 1.4;
}

.pulse-analysis {
  font-size: 0.85rem;
  line-height: 1.5;
}

.pulse-analysis > div {
  margin-bottom: 0.5rem;
}

.pulse-analysis strong {
  color: var(--c-gray-700);
}

.affected-sectors {
  color: var(--c-gray-600);
}

.key-movers {
  color: var(--c-gray-600);
}

.ai-confidence {
  color: var(--c-gray-600);
}

.confidence-high {
  color: var(--c-success);
  font-weight: 700;
}

.confidence-medium {
  color: var(--c-warning);
  font-weight: 700;
}

.pulse-action {
  margin-top: 1rem;
  padding-top: 1rem;
  border-top: 1px solid var(--c-gray-200);
}

.action-signal {
  font-size: 0.8rem;
  color: var(--c-primary);
  font-weight: 600;
}

@media (max-width: 768px) {
  .market-pulse-section {
    padding: 1.5rem;
  }

  .pulse-grid {
    grid-template-columns: 1fr;
  }

  .pulse-header {
    flex-direction: column;
    align-items: flex-start;
    gap: 0.5rem;
  }
}

.market-preview {
  margin: 3rem 0;
}

.preview-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
  gap: 1.5rem;
  margin-top: 2rem;
}

.preview-card {
  background: white;
  border: 1px solid var(--c-gray-200);
  border-radius: var(--border-radius);
  padding: 1.5rem;
  box-shadow: var(--shadow-sm);
  transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.075);
  will-change: transform, box-shadow;
}

.preview-card:hover {
  box-shadow: var(--shadow-md);
  transform: translateY(-2px);
}

.headline-example {
  background: var(--c-gray-50);
  padding: 1rem;
  border-radius: var(--border-radius);
  margin-bottom: 1rem;
  font-size: 0.9rem;
}

.impact-analysis p {
  margin: 0.5rem 0;
  font-size: 0.9rem;
}

.impact-positive {
  background: var(--c-success);
  color: white;
  padding: 0.25rem 0.5rem;
  border-radius: 4px;
  font-size: 0.8rem;
  font-weight: 600;
}

.impact-negative {
  background: var(--c-danger);
  color: white;
  padding: 0.25rem 0.5rem;
  border-radius: 4px;
  font-size: 0.8rem;
  font-weight: 600;
}

.impact-mixed {
  background: var(--c-warning);
  color: white;
  padding: 0.25rem 0.5rem;
  border-radius: 4px;
  font-size: 0.8rem;
  font-weight: 600;
}

/* ---------- Testimonials Section ---------- */
.testimonials-section {
  margin: 3rem 0;
  padding: 2rem;
  background: linear-gradient(135deg, var(--c-gray-50) 0%, white 100%);
  border-radius: var(--border-radius);
}

.testimonials-section h3 {
  text-align: center;
  margin-bottom: 2rem;
  color: var(--c-gray-900);
}

.testimonials-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
  gap: 1.5rem;
  margin-bottom: 3rem;
}

.testimonial-card {
  background: white;
  padding: 1.5rem;
  border-radius: var(--border-radius);
  box-shadow: var(--shadow-md);
  border-left: 4px solid var(--c-success);
  transition:
    transform 0.2s ease,
    box-shadow 0.2s ease;
}

.testimonial-card:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-lg);
}

.testimonial-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  margin-bottom: 1rem;
}

.user-info {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.user-avatar {
  font-size: 2rem;
  background: var(--c-gray-100);
  width: 50px;
  height: 50px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
}

.user-details h4 {
  margin: 0;
  font-size: 1rem;
  color: var(--c-gray-900);
}

.user-title {
  font-size: 0.8rem;
  color: var(--c-gray-600);
}

.testimonial-result {
  background: var(--c-success);
  color: white;
  padding: 0.25rem 0.75rem;
  border-radius: 12px;
  font-size: 0.8rem;
  font-weight: 700;
  white-space: nowrap;
}

.testimonial-card blockquote {
  margin: 0;
  font-style: italic;
  color: var(--c-gray-700);
  line-height: 1.6;
  padding: 0;
  border: none;
}

.testimonial-footer {
  margin-top: 1rem;
  padding-top: 1rem;
  border-top: 1px solid var(--c-gray-200);
}

.case-study {
  font-size: 0.8rem;
  color: var(--c-primary);
  font-weight: 600;
}

.testimonials-stats {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  gap: 2rem;
  text-align: center;
  background: white;
  padding: 2rem;
  border-radius: var(--border-radius);
  box-shadow: var(--shadow-sm);
}

.testimonials-stats .stat-item {
  padding: 1rem;
}

.testimonials-stats .stat-number {
  font-size: 2rem;
  font-weight: 700;
  color: var(--c-primary);
  line-height: 1;
  margin-bottom: 0.5rem;
}

.testimonials-stats .stat-label {
  font-size: 0.9rem;
  color: var(--c-gray-600);
  font-weight: 600;
}

@media (max-width: 768px) {
  .testimonials-section {
    padding: 1.5rem;
  }

  .testimonials-grid {
    grid-template-columns: 1fr;
  }

  .testimonial-header {
    flex-direction: column;
    gap: 1rem;
  }

  .testimonials-stats {
    grid-template-columns: repeat(2, 1fr);
    gap: 1rem;
  }
}

@media (max-width: 480px) {
  .testimonials-stats {
    grid-template-columns: 1fr;
  }
}

.features-section {
  margin: 3rem 0;
  padding: 0 1.5rem;
}

.features-section h3 {
  text-align: center;
  color: var(--c-gray-900);
  margin-bottom: 2rem;
  font-size: 1.75rem;
}

.features-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 1.5rem;
  margin-top: 2rem;
}

.feature-card {
  background: white;
  padding: 2rem;
  border-radius: var(--border-radius);
  border: 1px solid var(--c-gray-200);
  text-align: left;
  transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.075);
  position: relative;
  overflow: hidden;
  will-change: transform, box-shadow;
}

.feature-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: linear-gradient(90deg, var(--c-primary) 0%, #1d4ed8 100%);
}

.feature-card.premium::before {
  background: linear-gradient(90deg, #f59e0b 0%, #d97706 100%);
}

.feature-card:hover {
  transform: translateY(-5px) scale(1.015);
  box-shadow: var(--shadow-lg);
}

.feature-icon {
  font-size: 2.5rem;
  margin-bottom: 1rem;
  display: block;
}

.feature-card h4 {
  margin: 0 0 1rem 0;
  color: var(--c-gray-900);
  font-size: 1.1rem;
  line-height: 1.3;
}

.feature-card p {
  margin: 0 0 1.5rem 0;
  color: var(--c-gray-600);
  font-size: 0.9rem;
  line-height: 1.6;
}

.feature-stats {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
  margin-top: 1rem;
  padding-top: 1rem;
}

.feature-stats .stat {
  background: var(--c-gray-50);
  color: var(--c-gray-700);
  padding: 0.25rem 0.75rem;
  border-radius: 12px;
  font-size: 0.8rem;
  font-weight: 600;
}

.feature-card.premium .feature-stats .stat {
  background: #fef3c7;
  color: #92400e;
}

/* ---------- Trending Section ---------- */
.trending-section {
  background: var(--c-gray-50);
  padding: 2rem;
  border-radius: var(--border-radius);
  margin: 1.5rem 0 3rem 0;
}

.trending-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 1rem;
  margin-top: 1.5rem;
}

.trending-item {
  background: white;
  padding: 1rem;
  border-radius: var(--border-radius);
  border: 1px solid var(--c-gray-200);
}

.trend-tag {
  display: inline-block;
  padding: 0.25rem 0.75rem;
  border-radius: 20px;
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.trend-tag.fed {
  background: #dbeafe;
  color: #1e40af;
}

.trend-tag.ai {
  background: #f3e8ff;
  color: #7c3aed;
}

.trend-tag.energy {
  background: #fef3c7;
  color: #d97706;
}

.trend-tag.crypto {
  background: #fed7aa;
  color: #ea580c;
}

.trend-tag.earnings {
  background: #dcfce7;
  color: #15803d;
}

.trend-tag.china {
  background: #fee2e2;
  color: #dc2626;
}

.trending-item p {
  margin: 0.5rem 0 0 0;
  font-size: 0.9rem;
  color: var(--c-gray-600);
}

/* ---------- Social Proof Section ---------- */
.social-proof {
  text-align: center;
  margin: 3rem 0;
  padding: 2rem;
  background: linear-gradient(135deg, var(--c-primary) 0%, #1d4ed8 100%);
  color: white;
  border-radius: var(--border-radius);
}

.social-proof h3 {
  color: white;
  margin-bottom: 2rem;
}

.stats-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
  gap: 2rem;
  max-width: 600px;
  margin: 0 auto;
}

.stat-item {
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  min-height: 80px;
}

.stat-number {
  font-size: 2.5rem;
  font-weight: 700;
  line-height: 1;
  margin-bottom: 0;
  flex-shrink: 0;
}

.stat-label {
  font-size: 0.9rem;
  opacity: 0.9;
  text-align: center;
  line-height: 1.3;
}

/* ---------- Enhanced FAQ ---------- */
.faq-section {
  margin: 3rem 0;
}

.faq-section details {
  background: white;
  border: 1px solid var(--c-gray-200);
  border-radius: var(--border-radius);
  margin-bottom: 1rem;
  overflow: hidden;
}

.faq-section summary {
  padding: 1.25rem;
  background: var(--c-gray-50);
  cursor: pointer;
  font-weight: 600;
  transition: background-color 0.2s ease;
  border-bottom: 1px solid var(--c-gray-200);
}

.faq-section summary:hover {
  background: var(--c-gray-100);
}

.faq-section details[open] summary {
  background: var(--c-primary);
  color: white;
}

.faq-section details p {
  padding: 1.25rem;
  margin: 0;
  color: var(--c-gray-600);
  line-height: 1.6;
}

/* ---------- Main ---------- */
main {
  flex: 1 0 auto;
  position: relative;
}

/* ---------- Strategic Ad Placements ---------- */
.ad-slot {
  margin: 3rem 0;
  padding: 1rem;
  border-radius: var(--border-radius);
  background: var(--c-gray-50);
  border: 1px solid var(--c-gray-200);
  text-align: center;
}

.ad-slot-horizontal {
  max-width: 728px;
  margin: 3rem auto;
}

.ad-slot-rectangular {
  max-width: 336px;
  margin: 3rem auto;
}

/* Sidebar Ad - Desktop Only */
.sidebar-ad {
  position: fixed;
  top: 50%;
  right: 20px;
  transform: translateY(-50%);
  width: 160px;
  z-index: 100;
  background: white;
  border: 1px solid var(--c-gray-200);
  border-radius: var(--border-radius);
  padding: 0.5rem;
  box-shadow: var(--shadow-md);
}

/* Hide sidebar ad on tablets and mobile */
@media (max-width: 1400px) {
  .sidebar-ad {
    display: none;
  }
}

/* Ad slots responsive behavior */
@media (max-width: 768px) {
  .ad-slot {
    margin: 2rem 0;
    padding: 0.5rem;
  }

  .ad-slot-horizontal,
  .ad-slot-rectangular {
    max-width: 100%;
  }
}

/* ---------- Footer (sticky) ---------- */
footer {
  background: #111827;
  color: #f9fafb;
  border-top: 1px solid var(--c-border);
  padding: 2.5rem 1rem;
  margin-top: 3rem;
}

.footer-content {
  max-width: var(--max-w);
  margin: 0 auto;
  text-align: center;
}

.footer-main {
  margin-bottom: 1.5rem;
  font-size: 0.9rem;
  line-height: 1.5;
}

.bottom-nav {
  margin-bottom: 1.5rem;
  font-size: 0.9rem;
}

.footer-features {
  margin: 1.5rem 0;
  font-size: 0.875rem;
  color: #d1d5db;
  line-height: 1.6;
}

.footer-social-proof {
  margin-top: 1rem;
  font-size: 0.85rem;
  color: #d1d5db;
  line-height: 1.5;
}

.footer-social-proof strong {
  color: var(--c-success);
  font-weight: 700;
}

footer a {
  color: #f9fafb;
  text-decoration: none;
  transition: color 0.2s ease;
}

footer a:hover {
  color: #d1d5db;
}

/* Media mentions styling */
.media-mentions {
  margin: 2rem 0;
  text-align: center;
}

.media-mentions h4 {
  color: var(--c-gray-600);
  font-size: 1rem;
  margin-bottom: 1.5rem;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.mentions-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 1rem;
  margin-top: 1rem;
}

.mention-item {
  background: white;
  padding: 1rem;
  border-radius: var(--border-radius);
  border: 1px solid var(--c-gray-200);
  text-align: center;
}

.mention-source {
  display: block;
  font-weight: 700;
  color: var(--c-primary);
  font-size: 0.9rem;
  margin-bottom: 0.5rem;
}

.mention-quote {
  font-size: 0.8rem;
  color: var(--c-gray-600);
  font-style: italic;
}

/* Trust indicators */
.trust-indicators {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 1rem;
  margin-top: 2rem;
}

.trust-item {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  background: rgba(255, 255, 255, 0.1);
  padding: 1rem;
  border-radius: var(--border-radius);
}

.trust-icon {
  font-size: 1.25rem;
  flex-shrink: 0;
}

.trust-text {
  font-size: 0.85rem;
  color: rgba(255, 255, 255, 0.9);
}

/* CTA enhancements */
.cta-micro-proof {
  font-size: 0.8rem;
  color: rgba(255, 255, 255, 0.8);
  text-align: center;
  margin: 0.75rem 0 0 0;
  line-height: 1.4;
}

.urgency-banner {
  background: linear-gradient(135deg, #f59e0b 0%, #d97706 100%);
  color: white;
  padding: 1rem 1.5rem;
  border-radius: var(--border-radius);
  margin-top: 1.5rem;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.75rem;
  animation: subtle-pulse 3s infinite;
}

.urgency-icon {
  font-size: 1.25rem;
  flex-shrink: 0;
}

.urgency-text {
  font-size: 0.9rem;
  line-height: 1.4;
}

@keyframes subtle-pulse {
  0%,
  100% {
    transform: scale(1);
  }

  50% {
    transform: scale(1.02);
  }
}

/* ---------- Secondary CTA Section ---------- */
.secondary-cta {
  background: linear-gradient(135deg, var(--c-gray-900) 0%, var(--c-dark) 100%);
  color: white;
  padding: 3rem 2rem;
  border-radius: var(--border-radius);
  text-align: center;
  margin: 3rem 0;
}

.secondary-cta h3 {
  color: white;
  font-size: 1.5rem;
  margin-bottom: 0.5rem;
}

.secondary-cta p {
  color: rgba(255, 255, 255, 0.8);
  margin-bottom: 2rem;
}

.waitlist-form-secondary {
  max-width: 400px;
  margin: 0 auto;
}

.waitlist-form-secondary .email-input {
  background: white;
  border: none;
}

.waitlist-form-secondary .cta-button {
  background: var(--c-success);
}

.waitlist-form-secondary .cta-button:hover {
  background: #059669;
}

/* ---------- Legacy FAQ Support ---------- */
details {
  margin-bottom: 1rem;
}

/* On smaller screens, hide separators and add spacing */
@media (max-width: 600px) {
  footer .bottom-nav a:not(:last-child)::after {
    display: none;
  }

  footer .bottom-nav a {
    margin: 0.25rem 0.4rem;
    padding: 0.25rem 0.4rem;
    /* Add back some padding for touch targets */
  }
}

/* General footer links (not in navigation) */
footer a:not(.bottom-nav a) {
  color: var(--c-text);
  margin: 0;
  text-decoration: none;
  padding: 0.25rem 0.5rem;
  border-radius: var(--border-radius-sm);
  transition: all var(--transition-fast);
  font-weight: 500;
}

footer a:not(.bottom-nav a):hover {
  background: rgba(59, 130, 246, 0.1);
  color: var(--c-accent);
  text-decoration: none;
  transform: translateY(-1px);
}

@media (max-width: 600px) {
  footer {
    font-size: 0.8rem;
    padding: 1.25rem 0.75rem;
  }

  footer .bottom-nav {
    margin-top: 0.75rem;
  }

  /* Mobile styles for general footer links (not navigation) */
  footer a:not(.bottom-nav a) {
    padding: 0.2rem 0.4rem;
    font-size: 0.85rem;
  }
}

/* === A11y helpers =============================== */
.visually-hidden,
.sr-only-focusable {
  position: absolute !important;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
  border: 0;
}

/* Make skip link visible when tab-focused */
.sr-only-focusable:focus,
.sr-only-focusable:active {
  position: static !important;
  width: auto;
  height: auto;
  margin: 1rem;
  clip: auto;
  background: var(--c-light);
  color: var(--c-dark);
  padding: 0.5rem 1rem;
  z-index: 1000;
}

/* High-contrast focus indicator for all interactive elements */
a:focus-visible,
button:focus-visible,
input:focus-visible {
  outline: 3px solid var(--c-focus);
  outline-offset: 2px;
}

/* ---------- Responsive Design ---------- */
@media (max-width: 768px) {
  .preview-grid {
    grid-template-columns: 1fr;
  }

  .features-grid {
    grid-template-columns: 1fr;
  }

  .feature-card {
    padding: 1.5rem;
  }

  .feature-stats {
    flex-direction: column;
    gap: 0.5rem;
  }

  .trending-grid {
    grid-template-columns: 1fr;
  }

  .stats-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 1rem;
  }

  .mentions-grid {
    grid-template-columns: 1fr;
    gap: 0.75rem;
  }

  .trust-indicators {
    grid-template-columns: 1fr;
    gap: 0.75rem;
  }

  .urgency-banner {
    flex-direction: column;
    text-align: center;
    gap: 0.5rem;
    padding: 1rem;
  }

  .platform-stats {
    gap: 1.5rem;
    margin: 2.5rem auto 0;
  }
}

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

  .stat-number {
    font-size: 2rem;
  }

  .social-proof-inline {
    grid-template-columns: repeat(2, 1fr);
    gap: 0.75rem;
    padding: 1rem;
  }

  .proof-number {
    font-size: 1.25rem;
  }

  .footer-features,
  .footer-social-proof {
    font-size: 0.75rem;
    line-height: 1.8;
  }
}

@media (max-width: 600px) {
  .secondary-cta {
    padding: 2rem 1rem;
  }

  .secondary-cta h3 {
    font-size: 1.25rem;
  }

  .container {
    padding: 1rem;
  }
}

/* ---------- Enhanced Form Styles ---------- */
.message-container {
  position: fixed;
  top: 20px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 1000;
  max-width: 90%;
  width: 500px;
}

.message-content {
  padding: 1rem 1.5rem;
  border-radius: var(--border-radius);
  box-shadow: var(--shadow-lg);
  font-weight: 500;
  text-align: center;
}

.message-container.success .message-content {
  background-color: #d1fae5;
  color: #065f46;
  border: 1px solid #10b981;
}

.message-container.error .message-content {
  background-color: #fee2e2;
  color: #991b1b;
  border: 1px solid #ef4444;
}

.message-container.info .message-content {
  background-color: #dbeafe;
  color: #1e40af;
  border: 1px solid #2563eb;
}

.form-status {
  margin-top: 0.75rem;
  padding: 0.75rem;
  border-radius: var(--border-radius);
  font-size: 0.9rem;
  font-weight: 500;
  text-align: center;
}

.form-status.success {
  background-color: #d1fae5;
  color: #065f46;
  border: 1px solid #10b981;
}

.form-status.error {
  background-color: #fee2e2;
  color: #991b1b;
  border: 1px solid #ef4444;
}

.form-status.info {
  background-color: #dbeafe;
  color: #1e40af;
  border: 1px solid #2563eb;
}

.cta-button {
  position: relative;
  overflow: hidden;
}

.cta-button:disabled {
  opacity: 0.7;
  cursor: not-allowed;
}

.btn-loader {
  display: none;
}

/* Enhanced email input */
.email-input:disabled {
  background-color: var(--c-gray-100);
  color: var(--c-gray-600);
  cursor: not-allowed;
}

.email-input[aria-invalid='true'] {
  border-color: var(--c-danger);
  box-shadow: 0 0 0 1px var(--c-danger);
}

/* Honeypot field (hidden from users but visible to bots) */
input[name='website'] {
  position: absolute !important;
  left: -9999px !important;
  width: 1px !important;
  height: 1px !important;
  overflow: hidden !important;
}

/* Loading animation */
@keyframes spin {
  0% {
    transform: rotate(0deg);
  }

  100% {
    transform: rotate(360deg);
  }
}

.btn-loader {
  animation: spin 1s linear infinite;
}

/* Success state */
.cta-button.success {
  background-color: var(--c-success);
  border-color: var(--c-success);
}

.cta-button.success:hover {
  background-color: var(--c-success);
  border-color: var(--c-success);
}

/* ---------- Dark Theme Specific Styles ---------- */
@media (prefers-color-scheme: dark) {
  /* Body background adjustments */
  body {
    background-color: var(--c-light);
    color: var(--c-gray-900);
  }

  /* Main content background */
  main {
    background-color: var(--c-light);
  }

  /* Cards and sections */
  .hero-section,
  .features-section,
  .social-proof-section {
    background-color: var(--c-gray-50);
    border: 1px solid var(--c-border);
  }

  /* Form elements dark theme */
  .email-input {
    background-color: var(--c-gray-100);
    border: 1px solid var(--c-border);
    color: var(--c-gray-900);
  }

  .email-input:focus {
    border-color: var(--c-primary);
    box-shadow: 0 0 0 1px var(--c-primary);
  }

  .email-input::placeholder {
    color: var(--c-gray-600);
  }

  /* Button styling for dark theme */
  .cta-button {
    background-color: var(--c-primary);
    border-color: var(--c-primary);
    color: white;
  }

  .cta-button:hover {
    background-color: #1d4ed8;
    border-color: #1d4ed8;
  }

  /* Links in dark theme */
  a {
    color: var(--c-primary);
  }

  a:hover {
    color: #1d4ed8;
  }

  /* Social proof and stats */
  .proof-number,
  .stat-number {
    color: var(--c-primary);
  }

  /* Live indicators and badges */
  .live-indicator {
    background-color: var(--c-danger);
    color: white;
  }

  /* Message containers for dark theme */
  .message-container.success .message-content {
    background-color: rgba(16, 185, 129, 0.1);
    color: var(--c-success);
    border-color: var(--c-success);
  }

  .message-container.error .message-content {
    background-color: rgba(239, 68, 68, 0.1);
    color: var(--c-danger);
    border-color: var(--c-danger);
  }

  .message-container.info .message-content {
    background-color: rgba(59, 130, 246, 0.1);
    color: var(--c-primary);
    border-color: var(--c-primary);
  }

  /* Form status messages */
  .form-status.success {
    background-color: rgba(16, 185, 129, 0.1);
    color: var(--c-success);
    border-color: var(--c-success);
  }

  .form-status.error {
    background-color: rgba(239, 68, 68, 0.1);
    color: var(--c-danger);
    border-color: var(--c-danger);
  }

  .form-status.info {
    background-color: rgba(59, 130, 246, 0.1);
    color: var(--c-primary);
    border-color: var(--c-primary);
  }

  /* Sidebar ads dark theme */
  .sidebar-ad {
    background-color: var(--c-gray-100);
    border: 1px solid var(--c-border);
  }

  /* Navigation dark theme */
  .bottom-nav a {
    color: var(--c-gray-600);
  }

  .bottom-nav a:hover {
    color: var(--c-gray-900);
  }

  /* Features grid dark theme */
  .features-grid .feature-item {
    background-color: var(--c-gray-100);
    border: 1px solid var(--c-border);
  }

  /* Pulse animations and highlights */
  .pulse-cta {
    box-shadow: none;
  }

  /* Timeline and demo sections */
  .timeline-section,
  .demo-section {
    background-color: var(--c-gray-50);
    border: 1px solid var(--c-border);
  }

  /* Urgency banners */
  .urgency-banner {
    background-color: rgba(239, 68, 68, 0.1);
    border: 1px solid var(--c-danger);
  }

  /* Code blocks and pre elements */
  pre,
  code {
    background-color: var(--c-gray-100);
    color: var(--c-gray-900);
  }

  /* Table elements */
  table {
    background-color: var(--c-gray-50);
    border: 1px solid var(--c-border);
  }

  th,
  td {
    border-color: var(--c-border);
    color: var(--c-gray-900);
  }
}

/* Manual dark theme class overrides (same styles as media query) */
:root[data-theme='dark'] body,
.dark-theme body {
  background-color: var(--c-light);
  color: var(--c-gray-900);
}

:root[data-theme='dark'] header,
.dark-theme header {
  background-color: #111827;
  border-bottom: 1px solid var(--c-border);
  color: #f9fafb;
}

:root[data-theme='dark'] main,
.dark-theme main {
  background-color: var(--c-light);
}

:root[data-theme='dark'] .hero-section,
:root[data-theme='dark'] .features-section,
:root[data-theme='dark'] .social-proof-section,
.dark-theme .hero-section,
.dark-theme .features-section,
.dark-theme .social-proof-section {
  background-color: var(--c-gray-50);
  border: 1px solid var(--c-border);
}

:root[data-theme='dark'] .email-input,
.dark-theme .email-input {
  background-color: var(--c-gray-100);
  border: 1px solid var(--c-border);
  color: var(--c-gray-900);
}

:root[data-theme='dark'] .email-input:focus,
.dark-theme .email-input:focus {
  border-color: var(--c-primary);
  box-shadow: 0 0 0 1px var(--c-primary);
}

:root[data-theme='dark'] .email-input::placeholder,
.dark-theme .email-input::placeholder {
  color: var(--c-gray-600);
}

:root[data-theme='dark'] .cta-button,
.dark-theme .cta-button {
  background-color: var(--c-primary);
  border-color: var(--c-primary);
  color: white;
}

:root[data-theme='dark'] .cta-button:hover,
.dark-theme .cta-button:hover {
  background-color: #1d4ed8;
  border-color: #1d4ed8;
}

:root[data-theme='dark'] footer,
.dark-theme footer {
  background-color: #111827;
  border-top: 1px solid var(--c-border);
  color: #f9fafb;
}

:root[data-theme='dark'] footer a,
.dark-theme footer a {
  color: #f9fafb;
}

:root[data-theme='dark'] footer a:hover,
.dark-theme footer a:hover {
  color: #d1d5db;
}

:root[data-theme='dark'] .footer-features,
:root[data-theme='dark'] .footer-social-proof,
.dark-theme .footer-features,
.dark-theme .footer-social-proof {
  color: #d1d5db;
}

/* ---------- Theme Toggle Button ---------- */
.header-content {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
}

.theme-toggle {
  background: none;
  border: 2px solid var(--c-border);
  border-radius: 50%;
  width: 44px;
  height: 44px;
  cursor: pointer;
  position: relative;
  transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.075);
  padding: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 18px;
  will-change: transform, border-color, background-color;
}

.theme-toggle:hover {
  border-color: var(--c-primary);
  background-color: var(--c-gray-50);
  transform: scale(1.08);
}

.theme-toggle:focus {
  outline: 2px solid var(--c-focus);
  outline-offset: 2px;
}

.theme-icon {
  position: absolute;
  transition:
    opacity 0.3s ease,
    transform 0.3s ease;
}

.theme-toggle .dark-icon {
  opacity: 0;
  transform: rotate(-90deg) scale(0.8);
}

.theme-toggle .light-icon {
  opacity: 1;
  transform: rotate(0deg) scale(1);
}

/* Dark theme active state */
@media (prefers-color-scheme: dark) {
  .theme-toggle .dark-icon {
    opacity: 1;
    transform: rotate(0deg) scale(1);
  }

  .theme-toggle .light-icon {
    opacity: 0;
    transform: rotate(90deg) scale(0.8);
  }
}

:root[data-theme='dark'] .theme-toggle .dark-icon,
.dark-theme .theme-toggle .dark-icon {
  opacity: 1;
  transform: rotate(0deg) scale(1);
}

:root[data-theme='dark'] .theme-toggle .light-icon,
.dark-theme .theme-toggle .light-icon {
  opacity: 0;
  transform: rotate(90deg) scale(0.8);
}

:root[data-theme='light'] .theme-toggle .dark-icon {
  opacity: 0;
  transform: rotate(-90deg) scale(0.8);
}

:root[data-theme='light'] .theme-toggle .light-icon {
  opacity: 1;
  transform: rotate(0deg) scale(1);
}

/* Mobile responsive theme toggle */
@media (max-width: 768px) {
  .theme-toggle {
    width: 40px;
    height: 40px;
    font-size: 16px;
  }

  .brand h1 {
    font-size: 1.5rem;
  }
}

/* ---------- Features Showcase */
.features-showcase {
  display: flex;
  flex-direction: column;
  gap: 2rem;
  margin: 2rem 0;
}

.feature-showcase-card {
  background: white;
  padding: 2rem;
  border-radius: var(--border-radius);
  border: 1px solid var(--c-gray-200);
  text-align: center;
  transition:
    transform 0.3s cubic-bezier(0.4, 0, 0.2, 1),
    box-shadow 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  box-shadow: var(--shadow-sm);
}

.feature-showcase-card:hover {
  transform: translateY(-4px) scale(1.02);
  box-shadow: var(--shadow-lg);
}

.feature-showcase-card .feature-icon {
  font-size: 3rem;
  margin-bottom: 1rem;
  display: block;
}

.feature-showcase-card h4 {
  color: var(--c-gray-900);
  margin: 1rem 0;
  font-size: 1.25rem;
  font-weight: 600;
}

.feature-showcase-card p {
  color: var(--c-gray-600);
  line-height: 1.6;
  margin: 0;
}

/* Dark theme for features showcase */
[data-theme='dark'] .feature-showcase-card {
  background: var(--dark-surface);
  border: 1px solid var(--dark-border);
}

[data-theme='dark'] .feature-showcase-card h4 {
  color: var(--dark-text-primary);
}

[data-theme='dark'] .feature-showcase-card p {
  color: var(--dark-text-secondary);
}

/* Tablet and Desktop: Horizontal layout */
@media (min-width: 768px) {
  .features-showcase {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
    margin: 3rem 0;
  }

  .feature-showcase-card {
    padding: 2.5rem 1.5rem;
  }
}

/* ---------- New Code Changes ---------- */

/* ---------- Platform Stats Container ---------- */
.platform-stats {
  display: flex;
  flex-direction: row;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
  gap: 2rem;
  margin: 3rem auto 0;
  padding: 2rem;
  background: var(--c-gray-50);
  border-radius: var(--border-radius);
  border: 1px solid var(--c-gray-200);
}

/* Dark theme for platform stats */
[data-theme='dark'] .platform-stats {
  background: var(--dark-surface);
  border: 1px solid var(--dark-border);
}

@media (max-width: 480px) {
  .platform-stats {
    gap: 1.5rem;
    padding: 1.5rem 1rem;
    margin: 2rem auto 0;
  }

  .stats-grid {
    grid-template-columns: 1fr;
  }

  .stat-number {
    font-size: 2rem;
  }
}

@media (max-width: 768px) {
  .platform-stats {
    gap: 1.5rem;
    margin: 2.5rem auto 0;
  }
}

/* ---------- Custom Scrollbar Styles (Light Theme) ---------- */
::-webkit-scrollbar {
  width: 12px;
  background-color: #f3f4f6;
  /* var(--c-gray-100) - slightly darker track */
}

::-webkit-scrollbar-track {
  background-color: #f3f4f6;
  /* var(--c-gray-100) - darker track for contrast */
  border-radius: 6px;
}

::-webkit-scrollbar-thumb {
  background-color: #9ca3af;
  /* var(--c-gray-400) - more contrast */
  border-radius: 6px;
  border: 2px solid #f3f4f6;
  /* var(--c-gray-100) - match track */
}

::-webkit-scrollbar-thumb:hover {
  background-color: #6b7280;
  /* var(--c-gray-500) - darker on hover */
}

::-webkit-scrollbar-thumb:active {
  background-color: #4b5563;
  /* var(--c-gray-600) - even darker when active */
}

/* Firefox scrollbar styles */
html {
  scrollbar-width: thin;
  scrollbar-color: #9ca3af #f3f4f6;
  /* thumb track - more contrast */
}

/* Manual dark theme scrollbar overrides */
:root[data-theme='dark'] ::-webkit-scrollbar,
.dark-theme ::-webkit-scrollbar {
  width: 12px;
  background-color: #0f172a;
  /* var(--dark-bg-primary) - match main background */
}

:root[data-theme='dark'] ::-webkit-scrollbar-track,
.dark-theme ::-webkit-scrollbar-track {
  background-color: #0f172a;
  /* var(--dark-bg-primary) - match main background */
  border-radius: 6px;
}

:root[data-theme='dark'] ::-webkit-scrollbar-thumb,
.dark-theme ::-webkit-scrollbar-thumb {
  background-color: #64748b;
  /* var(--dark-text-muted) - better contrast */
  border-radius: 6px;
  border: 2px solid #0f172a;
  /* var(--dark-bg-primary) - match track */
}

:root[data-theme='dark'] ::-webkit-scrollbar-thumb:hover,
.dark-theme ::-webkit-scrollbar-thumb:hover {
  background-color: #94a3b8;
  /* var(--dark-text-muted) lighter - more visible on hover */
}

:root[data-theme='dark'] ::-webkit-scrollbar-thumb:active,
.dark-theme ::-webkit-scrollbar-thumb:active {
  background-color: #cbd5e1;
  /* var(--dark-text-secondary) - bright when active */
}

:root[data-theme='dark'] html,
.dark-theme html {
  scrollbar-width: thin;
  scrollbar-color: #64748b #0f172a;
  /* thumb track - better contrast for dark theme */
}
