/**
 * Author AI - Brand Specific Styles
 * Styling for Author AI specific components and landing page
 */

/* Author AI Brand Colors */
:root {
  --author-primary: #6366f1;
  --author-secondary: #8b5cf6;
  --author-accent: #10b981;
  --author-gradient: linear-gradient(135deg, #6366f1 0%, #8b5cf6 100%);
  --writing-text: #374151;
  --memory-purple: #a855f7;
  --creative-blue: #3b82f6;
  --ai-emerald: #10b981;
}

/* Navigation Styles */
.landing-nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: var(--z-fixed);
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--border-light);
  padding: var(--space-4) 0;
}

.nav-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 var(--space-6);
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.nav-brand {
  display: flex;
  align-items: center;
  gap: var(--space-3);
  font-weight: var(--font-bold);
  font-size: var(--text-xl);
  color: var(--text-primary);
  text-decoration: none;
}

.author-logo {
  width: 40px;
  height: 40px;
  background: var(--author-gradient);
  border-radius: var(--radius-lg);
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-size: var(--text-lg);
}

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

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

.nav-link {
  font-size: var(--text-sm);
  font-weight: var(--font-medium);
  color: var(--text-secondary);
  transition: color var(--transition-fast);
  padding: var(--space-2) var(--space-3);
  border-radius: var(--radius-md);
}

.nav-link:hover {
  color: var(--author-primary);
  background: rgba(99, 102, 241, 0.05);
}

.sign-in-btn {
  background: var(--author-gradient);
  color: white !important;
  padding: var(--space-3) var(--space-5);
  border-radius: var(--radius-lg);
  display: flex;
  align-items: center;
  gap: var(--space-2);
  font-weight: var(--font-medium);
  box-shadow: var(--shadow-sm);
  transition: all var(--transition-fast);
}

.sign-in-btn:hover {
  transform: translateY(-1px);
  box-shadow: var(--shadow-md);
  background: var(--author-gradient);
}

/* Dropdown Navigation */
.nav-dropdown {
  position: relative;
  display: inline-block;
}

.dropdown-toggle {
  display: flex;
  align-items: center;
  gap: 8px;
  color: var(--text-secondary);
  text-decoration: none;
  font-weight: 500;
  transition: color 0.3s ease;
  position: relative;
}

.dropdown-toggle:hover {
  color: var(--author-primary);
}

.dropdown-toggle i {
  font-size: 0.8em;
  transition: transform 0.3s ease;
}

.nav-dropdown:hover .dropdown-toggle i {
  transform: rotate(180deg);
}

.dropdown-menu {
  position: absolute;
  top: 100%;
  right: 0;
  background: white;
  border-radius: var(--radius-2xl);
  box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
  border: 1px solid var(--border-light);
  min-width: 320px;
  max-height: 75vh;
  overflow-y: auto;
  opacity: 0;
  visibility: hidden;
  transform: translateY(-10px);
  transition: all 0.3s ease;
  z-index: 1000;
}

/* Ensure dropdown doesn't go off screen */
@media (max-width: 480px) {
  .dropdown-menu {
    right: -50px;
    min-width: 280px;
    max-height: 60vh;
  }
}

.nav-dropdown:hover .dropdown-menu {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.dropdown-header {
  padding: 12px 16px 8px;
  border-bottom: 1px solid var(--border-light);
  background: linear-gradient(135deg, #f8fafc 0%, #f1f5f9 100%);
}

.challenge-text {
  font-size: 0.9em;
  font-weight: 600;
  color: var(--author-primary);
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.dropdown-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 16px;
  color: var(--text-primary);
  text-decoration: none;
  transition: all 0.2s ease;
  border-bottom: 1px solid rgba(0, 0, 0, 0.05);
}

.dropdown-item:last-child {
  border-bottom: none;
  margin-bottom: 0;
}

.dropdown-item:hover {
  background: linear-gradient(135deg, #f8fafc 0%, #f1f5f9 100%);
  transform: translateX(4px);
  color: var(--author-primary);
}

.dropdown-item.current {
  background: linear-gradient(135deg, var(--author-primary), var(--author-secondary));
  color: white;
}

.dropdown-item.current:hover {
  background: linear-gradient(135deg, var(--author-primary), var(--author-secondary));
  transform: translateX(0);
}

.week-badge {
  display: flex;
  align-items: center;
  justify-content: center;
  min-width: 40px;
  height: 28px;
  background: var(--author-primary);
  color: white;
  border-radius: 6px;
  font-size: 0.75em;
  font-weight: 600;
  flex-shrink: 0;
}

.dropdown-item.current .week-badge {
  background: rgba(255, 255, 255, 0.2);
}

.week-badge.current {
  background: linear-gradient(135deg, var(--author-primary), var(--author-secondary));
  box-shadow: 0 2px 8px rgba(99, 102, 241, 0.3);
}

.product-info {
  display: flex;
  flex-direction: column;
  gap: 2px;
  flex: 1;
}

.product-name {
  font-weight: 600;
  font-size: 0.95em;
  line-height: 1.2;
}

.product-desc {
  font-size: 0.85em;
  opacity: 0.7;
  color: var(--text-secondary);
  line-height: 1.2;
}

.dropdown-item.current .product-desc {
  opacity: 0.9;
  color: white;
}

.dropdown-item.current .product-name {
  color: white;
}

/* Mobile Navigation */
.mobile-menu-toggle {
  display: none;
  background: none;
  border: none;
  font-size: var(--text-xl);
  color: var(--text-secondary);
  cursor: pointer;
}

.mobile-nav-menu {
  display: none;
  position: absolute;
  top: 100%;
  left: 0;
  right: 0;
  background: white;
  border-bottom: 1px solid var(--border-light);
  box-shadow: var(--shadow-lg);
}

.mobile-nav-links {
  padding: var(--space-4);
  display: flex;
  flex-direction: column;
  gap: var(--space-3);
}

@media (max-width: 768px) {
  .section-nav {
    display: none;
  }

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

  .mobile-nav-menu.active {
    display: block;
  }
}

/* Hero Section */
.hero-section {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  padding: var(--space-20) 0 var(--space-16);
  background: linear-gradient(135deg, #f8fafc 0%, #f1f5f9 100%);
  overflow: hidden;
}

.writing-flow-background {
  position: absolute;
  inset: 0;
  opacity: 0.1;
  pointer-events: none;
}

.flow-lines {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(90deg, var(--author-primary) 1px, transparent 1px),
    linear-gradient(var(--author-primary) 1px, transparent 1px);
  background-size: 50px 50px;
  animation: flow 20s linear infinite;
}

.memory-nodes {
  position: absolute;
  inset: 0;
}

.memory-nodes::before,
.memory-nodes::after {
  content: '';
  position: absolute;
  width: 4px;
  height: 4px;
  background: var(--author-primary);
  border-radius: 50%;
  animation: float 6s ease-in-out infinite;
}

.memory-nodes::before {
  top: 20%;
  left: 10%;
  animation-delay: 0s;
}

.memory-nodes::after {
  top: 60%;
  right: 15%;
  animation-delay: 3s;
}

@keyframes flow {
  0% { transform: translateX(-50px) translateY(-50px); }
  100% { transform: translateX(0) translateY(0); }
}

@keyframes float {
  0%, 100% { transform: translateY(0) scale(1); opacity: 0.5; }
  50% { transform: translateY(-20px) scale(1.2); opacity: 1; }
}

.hero-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 var(--space-6);
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-12);
  align-items: center;
}

.hero-content {
  max-width: 580px;
}

.hero-title {
  font-size: var(--text-5xl);
  font-weight: var(--font-bold);
  line-height: var(--leading-tight);
  color: var(--text-primary);
  margin-bottom: var(--space-6);
}

.hero-subtitle {
  font-size: var(--text-xl);
  line-height: var(--leading-relaxed);
  color: var(--text-secondary);
  margin-bottom: var(--space-8);
}

.hero-cta {
  display: flex;
  gap: var(--space-4);
  margin-bottom: var(--space-4);
  flex-wrap: wrap;
}

.cta-button {
  display: inline-flex;
  align-items: center;
  gap: var(--space-3);
  padding: var(--space-4) var(--space-6);
  font-size: var(--text-base);
  font-weight: var(--font-semibold);
  border-radius: var(--radius-xl);
  transition: all var(--transition-fast);
  text-decoration: none;
  border: none;
  cursor: pointer;
}

.cta-button.primary {
  background: var(--author-gradient);
  color: white;
  box-shadow: var(--shadow-lg);
}

.cta-button.primary:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-xl);
}

.cta-button.secondary {
  background: white;
  color: var(--text-primary);
  border: 2px solid var(--border-medium);
}

.cta-button.secondary:hover {
  border-color: var(--author-primary);
  background: rgba(99, 102, 241, 0.05);
}

.cta-hint {
  font-size: var(--text-sm);
  color: var(--text-tertiary);
  font-style: italic;
}

/* Hero Visual */
.hero-visual {
  position: relative;
}

.hero-demo-container {
  background: white;
  border-radius: var(--radius-2xl);
  box-shadow: var(--shadow-2xl);
  overflow: hidden;
  border: 1px solid var(--border-light);
}

.writing-interface {
  padding: var(--space-6);
  border-bottom: 1px solid var(--border-light);
}

.interface-header {
  display: flex;
  align-items: center;
  gap: var(--space-3);
  margin-bottom: var(--space-4);
  font-weight: var(--font-semibold);
  color: var(--author-primary);
}

.writing-area {
  font-family: var(--font-serif);
}

.chapter-title {
  font-size: var(--text-lg);
  font-weight: var(--font-bold);
  margin-bottom: var(--space-3);
  color: var(--text-primary);
}

.writing-content p {
  margin-bottom: var(--space-3);
  color: var(--writing-text);
  line-height: var(--leading-relaxed);
}

.ai-suggestion {
  background: linear-gradient(135deg, rgba(99, 102, 241, 0.05) 0%, rgba(139, 92, 246, 0.05) 100%);
  border: 1px solid rgba(99, 102, 241, 0.2);
  border-radius: var(--radius-lg);
  padding: var(--space-4);
  margin-top: var(--space-4);
}

.suggestion-header {
  display: flex;
  align-items: center;
  gap: var(--space-2);
  font-size: var(--text-xs);
  font-weight: var(--font-semibold);
  color: var(--author-primary);
  margin-bottom: var(--space-2);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.ai-suggestion p {
  font-size: var(--text-sm);
  color: var(--text-secondary);
  font-style: italic;
  margin: 0;
}

.memory-sidebar {
  background: var(--bg-secondary);
  padding: var(--space-4);
}

.memory-header {
  display: flex;
  align-items: center;
  gap: var(--space-2);
  font-size: var(--text-sm);
  font-weight: var(--font-semibold);
  color: var(--text-primary);
  margin-bottom: var(--space-4);
}

.memory-items {
  display: flex;
  flex-direction: column;
  gap: var(--space-3);
}

.memory-item {
  display: flex;
  align-items: center;
  gap: var(--space-3);
  padding: var(--space-3);
  background: white;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-sm);
}

.memory-type {
  font-size: var(--text-xs);
  padding: var(--space-1) var(--space-2);
  background: var(--author-primary);
  color: white;
  border-radius: var(--radius-sm);
  font-weight: var(--font-medium);
}

.memory-title {
  font-size: var(--text-sm);
  color: var(--text-secondary);
}

/* Features Section */
.features-section {
  padding: var(--space-20) 0;
  background: white;
}

.section-title {
  text-align: center;
  font-size: var(--text-3xl);
  font-weight: var(--font-bold);
  color: var(--text-primary);
  margin-bottom: var(--space-12);
}

.features-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: var(--space-8);
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 var(--space-6);
}

.feature-card {
  text-align: center;
  padding: var(--space-8) var(--space-6);
  background: white;
  border-radius: var(--radius-2xl);
  border: 1px solid var(--border-light);
  transition: all var(--transition-fast);
}

.feature-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-xl);
  border-color: rgba(99, 102, 241, 0.2);
}

.feature-icon {
  width: 64px;
  height: 64px;
  margin: 0 auto var(--space-4);
  background: var(--author-gradient);
  border-radius: var(--radius-xl);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: var(--text-2xl);
  color: white;
}

.feature-card h3 {
  font-size: var(--text-xl);
  margin-bottom: var(--space-3);
  color: var(--text-primary);
}

.feature-card p {
  color: var(--text-secondary);
  line-height: var(--leading-relaxed);
}

/* How It Works Section */
.how-it-works-section {
  padding: var(--space-20) 0;
  background: var(--bg-secondary);
}

.steps-container {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-8);
  max-width: 1000px;
  margin: 0 auto;
  padding: 0 var(--space-6);
}

.step {
  text-align: center;
  max-width: 280px;
  position: relative;
}

.step-number {
  width: 48px;
  height: 48px;
  background: var(--author-gradient);
  color: white;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: var(--text-xl);
  font-weight: var(--font-bold);
  margin: 0 auto var(--space-4);
}

.step-icon {
  width: 64px;
  height: 64px;
  background: white;
  border: 2px solid var(--border-light);
  border-radius: var(--radius-xl);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: var(--text-2xl);
  color: var(--author-primary);
  margin: 0 auto var(--space-4);
}

.step h3 {
  font-size: var(--text-xl);
  margin-bottom: var(--space-3);
  color: var(--text-primary);
}

.step p {
  color: var(--text-secondary);
  line-height: var(--leading-relaxed);
}

.step-connector {
  width: 100px;
  height: 2px;
  background: linear-gradient(90deg, var(--author-primary), var(--author-secondary));
  position: relative;
}

.step-connector::after {
  content: '';
  position: absolute;
  right: -6px;
  top: -4px;
  width: 0;
  height: 0;
  border-left: 8px solid var(--author-secondary);
  border-top: 5px solid transparent;
  border-bottom: 5px solid transparent;
}

@media (max-width: 768px) {
  .hero-container {
    grid-template-columns: 1fr;
    gap: var(--space-8);
    text-align: center;
  }

  .hero-title {
    font-size: var(--text-4xl);
  }

  .hero-subtitle {
    font-size: var(--text-lg);
  }

  .steps-container {
    flex-direction: column;
    gap: var(--space-12);
  }

  .step-connector {
    width: 2px;
    height: 60px;
    transform: rotate(90deg);
  }

  .step-connector::after {
    right: -4px;
    top: 54px;
    border-left: 5px solid var(--author-secondary);
    border-top: 8px solid transparent;
    border-bottom: 8px solid transparent;
    transform: rotate(90deg);
  }
}

/* Benefits Section */
.benefits-section {
  padding: var(--space-20) 0;
  background: white;
}

.benefits-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: var(--space-8);
  max-width: 1000px;
  margin: 0 auto;
  padding: 0 var(--space-6);
}

.benefit {
  text-align: center;
  padding: var(--space-6);
}

.benefit i {
  font-size: var(--text-3xl);
  color: var(--author-primary);
  margin-bottom: var(--space-4);
}

.benefit h4 {
  font-size: var(--text-lg);
  margin-bottom: var(--space-3);
  color: var(--text-primary);
}

.benefit p {
  color: var(--text-secondary);
  line-height: var(--leading-relaxed);
}

/* Waitlist Section */
.waitlist-section {
  padding: var(--space-20) 0;
  background: linear-gradient(135deg, var(--author-primary) 0%, var(--author-secondary) 100%);
  color: white;
}

.waitlist-hero {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-12);
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 var(--space-6);
  align-items: center;
}

.waitlist-intro {
  max-width: 500px;
}

.signup-badge {
  display: inline-flex;
  align-items: center;
  gap: var(--space-2);
  padding: var(--space-2) var(--space-4);
  background: rgba(255, 255, 255, 0.2);
  border-radius: var(--radius-full);
  font-size: var(--text-sm);
  font-weight: var(--font-medium);
  margin-bottom: var(--space-6);
}

.waitlist-title {
  font-size: var(--text-4xl);
  font-weight: var(--font-bold);
  margin-bottom: var(--space-4);
}

.waitlist-section .waitlist-description {
  font-size: var(--text-lg);
  line-height: var(--leading-relaxed);
  margin-bottom: var(--space-8);
  color: rgba(255, 255, 255, 0.95);
}

.waitlist-highlights {
  display: flex;
  flex-direction: column;
  gap: var(--space-4);
}

.highlight-item {
  display: flex;
  align-items: center;
  gap: var(--space-4);
}

.highlight-icon {
  width: 40px;
  height: 40px;
  background: rgba(255, 255, 255, 0.2);
  border-radius: var(--radius-lg);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: var(--text-lg);
}

.highlight-text {
  display: flex;
  flex-direction: column;
  gap: var(--space-1);
}

.highlight-text strong {
  font-weight: var(--font-semibold);
}

.highlight-text span {
  font-size: var(--text-sm);
  opacity: 0.8;
}

/* Form Styles */
.premium-waitlist-form {
  background: white;
  border-radius: var(--radius-2xl);
  padding: var(--space-8);
  box-shadow: var(--shadow-2xl);
  color: var(--text-primary);
}

.form-header {
  text-align: center;
  margin-bottom: var(--space-6);
}

.form-header h3 {
  font-size: var(--text-2xl);
  margin-bottom: var(--space-2);
  color: var(--text-primary);
}

.form-header p {
  color: var(--text-secondary);
}

.form-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-4);
  margin-bottom: var(--space-4);
}

.premium-cta-button {
  width: 100%;
  background: var(--author-gradient);
  color: white;
  padding: var(--space-4) var(--space-6);
  border-radius: var(--radius-xl);
  border: none;
  font-size: var(--text-base);
  font-weight: var(--font-semibold);
  cursor: pointer;
  transition: all var(--transition-fast);
  position: relative;
  overflow: hidden;
  margin-bottom: var(--space-6);
}

.premium-cta-button:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-xl);
}

.button-content {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-3);
  position: relative;
  z-index: 2;
}

.button-glow {
  position: absolute;
  inset: 0;
  background: linear-gradient(45deg, transparent, rgba(255, 255, 255, 0.2), transparent);
  transform: translateX(-100%);
  transition: transform 0.6s;
}

.premium-cta-button:hover .button-glow {
  transform: translateX(100%);
}

.waitlist-perks {
  display: flex;
  justify-content: space-around;
  gap: var(--space-4);
  text-align: center;
}

.perk-item {
  display: flex;
  align-items: center;
  gap: var(--space-2);
  font-size: var(--text-sm);
  color: var(--text-secondary);
}

.perk-item i {
  color: var(--ai-emerald);
}

/* Success/Error Messages */
.premium-success-message,
.premium-error-message {
  text-align: center;
  padding: var(--space-8);
  border-radius: var(--radius-2xl);
  color: var(--text-primary);
}

.premium-success-message {
  background: linear-gradient(135deg, #d1fae5 0%, #a7f3d0 100%);
  border: 1px solid #10b981;
}

.premium-error-message {
  background: linear-gradient(135deg, #fee2e2 0%, #fecaca 100%);
  border: 1px solid #ef4444;
}

.success-icon,
.error-icon {
  font-size: var(--text-4xl);
  margin-bottom: var(--space-4);
}

.success-icon {
  color: var(--ai-emerald);
}

.error-icon {
  color: #ef4444;
}

.success-details {
  display: flex;
  justify-content: center;
  gap: var(--space-6);
  margin-top: var(--space-4);
}

.detail-item {
  display: flex;
  align-items: center;
  gap: var(--space-2);
  font-size: var(--text-sm);
  color: var(--text-secondary);
}

/* Footer */
.footer {
  background: var(--gray-900);
  color: white;
  padding: var(--space-16) 0 var(--space-8);
}

.footer-content {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: var(--space-12);
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 var(--space-6);
  margin-bottom: var(--space-8);
}

.footer-logo {
  display: flex;
  align-items: center;
  gap: var(--space-3);
  font-size: var(--text-xl);
  font-weight: var(--font-bold);
  margin-bottom: var(--space-4);
}

.footer-logo i {
  font-size: var(--text-2xl);
  color: var(--author-primary);
}

.footer-description {
  color: var(--gray-300);
  line-height: var(--leading-relaxed);
  margin-bottom: var(--space-6);
}

.social-links {
  display: flex;
  gap: var(--space-4);
}

.social-link {
  width: 40px;
  height: 40px;
  background: var(--gray-800);
  border-radius: var(--radius-lg);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--gray-400);
  transition: all var(--transition-fast);
}

.social-link:hover {
  background: var(--author-primary);
  color: white;
  transform: translateY(-2px);
}

.footer-title {
  font-size: var(--text-lg);
  margin-bottom: var(--space-4);
  color: white;
}

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

.footer-links a {
  color: var(--gray-300);
  transition: color var(--transition-fast);
}

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

.footer-bottom {
  border-top: 1px solid var(--gray-800);
  padding-top: var(--space-8);
  text-align: center;
  color: var(--gray-400);
  font-size: var(--text-sm);
}

@media (max-width: 768px) {
  .waitlist-hero {
    grid-template-columns: 1fr;
    gap: var(--space-8);
    text-align: center;
  }

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

  .waitlist-perks {
    flex-direction: column;
    gap: var(--space-3);
  }

  .footer-content {
    grid-template-columns: 1fr;
    gap: var(--space-8);
    text-align: center;
  }
}
/* ==================== MEMORY VISUALIZATION STYLES ==================== */

/* Memory Suggestions Container */
.memory-suggestions {
  background: linear-gradient(135deg, #f8f9fa 0%, #f0f2f5 100%);
  border-left: 4px solid var(--author-primary);
  border-radius: 8px;
  padding: 1.25rem;
  margin: 1rem 0;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
}

.memory-suggestions-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 1rem;
  flex-wrap: wrap;
  gap: 0.75rem;
}

.memory-header-left {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  flex-wrap: wrap;
}

.memory-header-left i {
  color: var(--author-primary);
  font-size: 1.1rem;
}

.memory-header-left strong {
  color: var(--gray-800);
  font-size: 1rem;
}

.memory-count {
  background: var(--author-primary);
  color: white;
  padding: 0.25rem 0.75rem;
  border-radius: 12px;
  font-size: 0.8rem;
  font-weight: 600;
}

/* Graph Summary */
.graph-summary {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  color: var(--gray-600);
  font-size: 0.875rem;
}

.graph-summary i {
  color: #10b981;
}

.rel-types {
  color: var(--gray-500);
  font-size: 0.75rem;
  margin-left: 0.25rem;
}

/* Memory Cards Grid */
.memory-cards-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 0.875rem;
}

/* Memory Card */
.memory-card {
  background: white;
  border: 1px solid #e0e0e0;
  border-radius: 8px;
  padding: 0.875rem;
  transition: all 0.2s ease;
  position: relative;
  overflow: hidden;
}

.memory-card:hover {
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
  transform: translateY(-2px);
  border-color: var(--author-primary);
}

.memory-card.vector-memory {
  border-left: 3px solid #3b82f6;
}

.memory-card.graph-memory {
  border-left: 3px solid #10b981;
}

.memory-card-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 0.75rem;
}

.memory-source-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  padding: 0.25rem 0.6rem;
  border-radius: 6px;
  font-size: 0.75rem;
  font-weight: 600;
  background: linear-gradient(135deg, #f3f4f6 0%, #e5e7eb 100%);
  color: var(--gray-700);
}

.vector-memory .memory-source-badge {
  background: linear-gradient(135deg, #dbeafe 0%, #bfdbfe 100%);
  color: #1e40af;
}

.graph-memory .memory-source-badge {
  background: linear-gradient(135deg, #d1fae5 0%, #a7f3d0 100%);
  color: #065f46;
}

.memory-source-badge i {
  font-size: 0.7rem;
}

.memory-content-preview {
  color: var(--gray-700);
  font-size: 0.875rem;
  line-height: 1.5;
  margin-bottom: 0.75rem;
  overflow: hidden;
  text-overflow: ellipsis;
}

.memory-meta {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-top: 0.5rem;
  border-top: 1px solid #f0f0f0;
}

.memory-id {
  font-size: 0.7rem;
  color: var(--gray-400);
  font-family: 'Courier New', monospace;
  background: #f9fafb;
  padding: 0.2rem 0.4rem;
  border-radius: 4px;
}

/* Memory More */
.memory-more {
  text-align: center;
  margin-top: 0.75rem;
  padding-top: 0.75rem;
  border-top: 1px solid #e0e0e0;
  color: var(--gray-500);
  font-size: 0.85rem;
}

/* Responsive Design for Memory Cards */
@media (max-width: 768px) {
  .memory-cards-grid {
    grid-template-columns: 1fr;
  }

  .memory-suggestions-header {
    flex-direction: column;
    align-items: flex-start;
  }
}

/* ==================== RESEARCH SOURCES SECTION ==================== */

.research-sources {
  display: flex;
  flex-direction: column;
  gap: var(--space-3);
  margin-bottom: var(--space-4);
  padding: 1rem;
  background: linear-gradient(135deg, #f9fafb 0%, #f3f4f6 100%);
  border-radius: 12px;
  border: 1px solid #e5e7eb;
}

.sources-header {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding-bottom: 0.75rem;
  border-bottom: 2px solid #e0e0e0;
}

.sources-header i {
  color: #3b82f6;
  font-size: 1.1rem;
}

.sources-header strong {
  font-size: 1rem;
  color: var(--gray-800);
  font-weight: 600;
}

.sources-count {
  background: linear-gradient(135deg, #dbeafe 0%, #bfdbfe 100%);
  color: #1e40af;
  padding: 0.25rem 0.75rem;
  border-radius: 12px;
  font-size: 0.75rem;
  font-weight: 600;
  margin-left: auto;
}

/* Sources Grid */
.sources-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 0.875rem;
}

/* Source Card */
.source-card {
  background: white;
  border: 1px solid #e0e0e0;
  border-left: 3px solid #3b82f6;
  border-radius: 8px;
  padding: 0.875rem;
  transition: all 0.2s ease;
  position: relative;
  overflow: hidden;
}

.source-card:hover {
  box-shadow: 0 4px 12px rgba(59, 130, 246, 0.15);
  transform: translateY(-2px);
  border-color: #3b82f6;
}

.source-card-header {
  margin-bottom: 0.75rem;
}

.source-title {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  color: #1e40af;
  font-weight: 600;
  font-size: 0.9rem;
  text-decoration: none;
  line-height: 1.4;
  transition: color 0.2s ease;
}

.source-title:hover {
  color: #3b82f6;
  text-decoration: underline;
}

.source-title i {
  font-size: 0.75rem;
  opacity: 0.7;
}

.source-snippet {
  color: var(--gray-700);
  font-size: 0.85rem;
  line-height: 1.5;
  margin-bottom: 0.75rem;
  overflow: hidden;
  text-overflow: ellipsis;
}

.source-meta {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding-top: 0.5rem;
  border-top: 1px solid #e0e0e0;
}

.source-domain {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  padding: 0.25rem 0.6rem;
  border-radius: 6px;
  font-size: 0.75rem;
  font-weight: 500;
  background: linear-gradient(135deg, #f0f9ff 0%, #e0f2fe 100%);
  color: #0369a1;
}

.source-domain i {
  font-size: 0.7rem;
}

.sources-more {
  text-align: center;
  padding: 0.75rem;
  color: var(--gray-600);
  font-size: 0.875rem;
  background: white;
  border-radius: 8px;
  border: 1px dashed #e0e0e0;
}

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

  .sources-header {
    flex-wrap: wrap;
  }
}

/* ==================== WRITING AGENT CONTEXT SELECTION ==================== */

/* Context Selection Buttons */
.context-selection {
  display: flex;
  gap: var(--space-3);
  margin-bottom: var(--space-3);
}

.context-btn {
  flex: 1;
  padding: 0.75rem 1rem;
  background: linear-gradient(135deg, #f9fafb 0%, #f3f4f6 100%);
  border: 1px solid #e5e7eb;
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  font-weight: 500;
  font-size: 0.875rem;
  color: var(--gray-700);
  cursor: pointer;
  transition: all 0.2s ease;
}

.context-btn:hover {
  background: linear-gradient(135deg, #f0f9ff 0%, #e0f2fe 100%);
  border-color: #3b82f6;
  color: #1e40af;
  transform: translateY(-1px);
  box-shadow: 0 2px 8px rgba(59, 130, 246, 0.1);
}

.context-btn i {
  font-size: 1rem;
}

/* Selected Context Container */
.selected-context {
  display: none;
  background: linear-gradient(135deg, #f9fafb 0%, #f3f4f6 100%);
  border: 1px solid #e5e7eb;
  border-radius: 8px;
  padding: 0.75rem;
  margin-bottom: var(--space-3);
}

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

.context-label {
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--gray-700);
}

.context-count {
  background: linear-gradient(135deg, #dbeafe 0%, #bfdbfe 100%);
  color: #1e40af;
  padding: 0.25rem 0.5rem;
  border-radius: 6px;
  font-size: 0.75rem;
  font-weight: 600;
}

/* Context Chips */
.context-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.context-chip {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.5rem 0.75rem;
  background: white;
  border: 1px solid #e0e0e0;
  border-radius: 8px;
  font-size: 0.875rem;
  color: var(--gray-700);
  transition: all 0.2s ease;
}

.context-chip i {
  font-size: 0.875rem;
}

.context-chip.creative-chip {
  border-left: 3px solid #10b981;
}

.context-chip.creative-chip i {
  color: #10b981;
}

.context-chip.research-chip {
  border-left: 3px solid #3b82f6;
}

.context-chip.research-chip i {
  color: #3b82f6;
}

.chip-remove {
  background: none;
  border: none;
  color: var(--gray-500);
  cursor: pointer;
  padding: 0.25rem;
  border-radius: 4px;
  transition: all 0.2s ease;
  display: flex;
  align-items: center;
  justify-content: center;
}

.chip-remove:hover {
  background: rgba(239, 68, 68, 0.1);
  color: #dc2626;
}

.chip-remove i {
  font-size: 0.75rem;
}

/* ==================== WRITING CONTEXT SECTIONS ==================== */

/* Writing Context Container */
.writing-context {
  display: flex;
  flex-direction: column;
  gap: var(--space-3);
  margin-bottom: var(--space-4);
  padding: 1rem;
  border-radius: 12px;
  border: 1px solid #e5e7eb;
}

.writing-context.creative-context {
  background: linear-gradient(135deg, #ecfdf5 0%, #d1fae5 100%);
  border-left: 3px solid #10b981;
}

.writing-context.research-context {
  background: linear-gradient(135deg, #f0f9ff 0%, #e0f2fe 100%);
  border-left: 3px solid #3b82f6;
}

.writing-context.tips-context {
  background: linear-gradient(135deg, #fef3c7 0%, #fde68a 100%);
  border-left: 3px solid #f59e0b;
}

/* Context Header */
.writing-context .context-header {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding-bottom: 0.75rem;
  border-bottom: 2px solid rgba(0, 0, 0, 0.1);
  margin-bottom: 0;
}

.writing-context.creative-context .context-header i {
  color: #10b981;
  font-size: 1.1rem;
}

.writing-context.research-context .context-header i {
  color: #3b82f6;
  font-size: 1.1rem;
}

.writing-context.tips-context .context-header i {
  color: #f59e0b;
  font-size: 1.1rem;
}

.writing-context .context-header strong {
  font-size: 1rem;
  color: var(--gray-800);
  font-weight: 600;
}

.writing-context .context-count {
  margin-left: auto;
}

.writing-context.creative-context .context-count {
  background: linear-gradient(135deg, #d1fae5 0%, #a7f3d0 100%);
  color: #065f46;
}

.writing-context.research-context .context-count {
  background: linear-gradient(135deg, #dbeafe 0%, #bfdbfe 100%);
  color: #1e40af;
}

.writing-context.tips-context .context-count {
  background: linear-gradient(135deg, #fde68a 0%, #fcd34d 100%);
  color: #92400e;
}

/* Context Cards Grid */
.context-cards-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 0.875rem;
}

/* Context Card */
.context-card {
  background: white;
  border: 1px solid #e0e0e0;
  border-radius: 8px;
  padding: 0.875rem;
  transition: all 0.2s ease;
  position: relative;
  overflow: hidden;
}

.context-card:hover {
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
  transform: translateY(-2px);
}

.creative-context-card {
  border-left: 3px solid #10b981;
}

.creative-context-card:hover {
  border-color: #10b981;
  box-shadow: 0 4px 12px rgba(16, 185, 129, 0.15);
}

.research-context-card {
  border-left: 3px solid #3b82f6;
}

.research-context-card:hover {
  border-color: #3b82f6;
  box-shadow: 0 4px 12px rgba(59, 130, 246, 0.15);
}

.tips-context-card {
  border-left: 3px solid #f59e0b;
}

.tips-context-card:hover {
  border-color: #f59e0b;
  box-shadow: 0 4px 12px rgba(245, 158, 11, 0.15);
}

.context-card-header {
  margin-bottom: 0.75rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.context-card-header i {
  font-size: 1rem;
}

.creative-context-card .context-card-header i {
  color: #10b981;
}

.research-context-card .context-card-header i {
  color: #3b82f6;
}

.tips-context-card .context-card-header i {
  color: #f59e0b;
}

.context-card-header strong {
  color: var(--gray-800);
  font-weight: 600;
  font-size: 0.9rem;
  line-height: 1.4;
}

.context-card-content {
  color: var(--gray-700);
  font-size: 0.85rem;
  line-height: 1.5;
  overflow: hidden;
  text-overflow: ellipsis;
}

.context-card-content .tips-list {
  margin: 0;
  padding-left: 1.25rem;
}

.context-card-content .tips-list li {
  margin-bottom: 0.5rem;
  color: var(--gray-700);
  font-size: 0.85rem;
}

.context-more {
  text-align: center;
  padding: 0.75rem;
  color: var(--gray-600);
  font-size: 0.875rem;
  background: white;
  border-radius: 8px;
  border: 1px dashed #e0e0e0;
}

/* ==================== DRAFT LIBRARY CARDS ==================== */

.draft-card {
  /* Inherits styles from research-card */
  border-left: 3px solid #8b5cf6;
}

.draft-card:hover {
  border-color: #8b5cf6;
  box-shadow: 0 4px 12px rgba(139, 92, 246, 0.15);
}

/* Draft Library Context Section Styles (for detail modal) */
.context-section {
  margin-top: 1.5rem;
  padding: 1rem;
  background: linear-gradient(135deg, #f9fafb 0%, #f3f4f6 100%);
  border-radius: 12px;
  border: 1px solid #e5e7eb;
}

.context-section.creative-context-section {
  background: linear-gradient(135deg, #ecfdf5 0%, #d1fae5 100%);
  border-left: 3px solid #10b981;
}

.context-section.research-context-section {
  background: linear-gradient(135deg, #f0f9ff 0%, #e0f2fe 100%);
  border-left: 3px solid #3b82f6;
}

.context-section.tips-context-section {
  background: linear-gradient(135deg, #fef3c7 0%, #fde68a 100%);
  border-left: 3px solid #f59e0b;
}

.context-section h3 {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 1rem;
  font-weight: 600;
  color: var(--gray-800);
  margin-bottom: 0.75rem;
}

.creative-context-section h3 i {
  color: #10b981;
}

.research-context-section h3 i {
  color: #3b82f6;
}

.tips-context-section h3 i {
  color: #f59e0b;
}

.context-list {
  list-style: none;
  padding: 0;
  margin: 0;
}

.context-list > li {
  background: white;
  border: 1px solid #e0e0e0;
  border-radius: 8px;
  padding: 0.75rem;
  margin-bottom: 0.75rem;
}

.context-list > li:last-child {
  margin-bottom: 0;
}

.context-list strong {
  color: var(--gray-800);
  font-weight: 600;
  font-size: 0.9rem;
  display: block;
  margin-bottom: 0.5rem;
}

.context-list p {
  color: var(--gray-700);
  font-size: 0.85rem;
  line-height: 1.5;
  margin: 0;
}

.context-list .tips-list {
  margin: 0;
  padding-left: 1.25rem;
}

.context-list .tips-list li {
  margin-bottom: 0.5rem;
  color: var(--gray-700);
  font-size: 0.85rem;
}

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

  .context-selection {
    flex-direction: column;
  }

  .writing-context .context-header {
    flex-wrap: wrap;
  }
}

/* ==================== CONTEXT SELECTION MODAL ==================== */

.context-selection-modal {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 10000;
  display: flex;
  align-items: center;
  justify-content: center;
}

.context-selection-modal .modal-overlay {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.5);
  backdrop-filter: blur(4px);
}

.context-modal-content {
  position: relative;
  background: white;
  border-radius: 16px;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
  max-width: 600px;
  width: 90%;
  max-height: 80vh;
  display: flex;
  flex-direction: column;
  animation: modalSlideUp 0.3s ease;
}

@keyframes modalSlideUp {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.context-modal-content .modal-header {
  padding: 1.5rem;
  border-bottom: 1px solid #e5e7eb;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.context-modal-content .modal-header h2 {
  margin: 0;
  font-size: 1.25rem;
  font-weight: 600;
  color: var(--gray-800);
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.context-modal-content .modal-header h2 i {
  font-size: 1.25rem;
}

.context-modal-content .modal-body {
  flex: 1;
  overflow-y: auto;
  padding: 1.5rem;
}

.context-modal-content .modal-footer {
  padding: 1rem 1.5rem;
  border-top: 1px solid #e5e7eb;
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 0.75rem;
  background: #f9fafb;
  border-bottom-left-radius: 16px;
  border-bottom-right-radius: 16px;
}

.context-items-list {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.context-item {
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
  padding: 1rem;
  background: linear-gradient(135deg, #f9fafb 0%, #f3f4f6 100%);
  border: 2px solid #e5e7eb;
  border-radius: 12px;
  cursor: pointer;
  transition: all 0.2s ease;
}

.context-item:hover {
  background: linear-gradient(135deg, #f0f9ff 0%, #e0f2fe 100%);
  border-color: #3b82f6;
  transform: translateX(4px);
}

.context-item.selected {
  background: linear-gradient(135deg, #dbeafe 0%, #bfdbfe 100%);
  border-color: #3b82f6;
  box-shadow: 0 2px 8px rgba(59, 130, 246, 0.2);
}

.context-checkbox {
  margin-top: 0.25rem;
  cursor: pointer;
  width: 18px;
  height: 18px;
  flex-shrink: 0;
}

.context-item-content {
  flex: 1;
}

.context-item-header {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin-bottom: 0.5rem;
}

.context-item-header i {
  font-size: 1rem;
}

.context-item-header strong {
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--gray-800);
  line-height: 1.4;
}

.context-item-preview {
  color: var(--gray-600);
  font-size: 0.85rem;
  line-height: 1.5;
}

/* Modal Buttons */
.secondary-btn {
  padding: 0.625rem 1.25rem;
  background: white;
  border: 1px solid #e5e7eb;
  border-radius: 8px;
  font-weight: 500;
  font-size: 0.875rem;
  color: var(--gray-700);
  cursor: pointer;
  transition: all 0.2s ease;
}

.secondary-btn:hover {
  background: #f9fafb;
  border-color: #d1d5db;
}

.primary-btn {
  padding: 0.625rem 1.25rem;
  background: linear-gradient(135deg, #3b82f6 0%, #2563eb 100%);
  border: none;
  border-radius: 8px;
  font-weight: 500;
  font-size: 0.875rem;
  color: white;
  cursor: pointer;
  transition: all 0.2s ease;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.primary-btn:hover {
  background: linear-gradient(135deg, #2563eb 0%, #1d4ed8 100%);
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(59, 130, 246, 0.3);
}

.primary-btn i {
  font-size: 0.875rem;
}

/* Responsive Modal */
@media (max-width: 768px) {
  .context-modal-content {
    width: 95%;
    max-height: 85vh;
  }

  .context-item {
    padding: 0.875rem;
  }

  .context-modal-content .modal-header h2 {
    font-size: 1.125rem;
  }
}

/* ==================== OUTPUT LENGTH SELECTOR ==================== */

.length-selector {
  margin-bottom: var(--space-4);
  padding: 1rem;
  background: linear-gradient(135deg, #f9fafb 0%, #f3f4f6 100%);
  border: 1px solid #e5e7eb;
  border-radius: 12px;
}

.length-label {
  display: block;
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--gray-800);
  margin-bottom: 0.75rem;
}

.length-options {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.75rem;
}

.length-option {
  position: relative;
  cursor: pointer;
  display: block;
}

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

.option-content {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 1rem;
  background: white;
  border: 2px solid #e5e7eb;
  border-radius: 10px;
  transition: all 0.2s ease;
}

.length-option:hover .option-content {
  border-color: #3b82f6;
  background: linear-gradient(135deg, #f0f9ff 0%, #e0f2fe 100%);
  transform: translateY(-2px);
  box-shadow: 0 2px 8px rgba(59, 130, 246, 0.15);
}

.length-option input[type="radio"]:checked + .option-content {
  border-color: #3b82f6;
  background: linear-gradient(135deg, #dbeafe 0%, #bfdbfe 100%);
  box-shadow: 0 4px 12px rgba(59, 130, 246, 0.2);
}

.option-content i {
  font-size: 1.25rem;
  color: #6b7280;
  transition: color 0.2s ease;
}

.length-option input[type="radio"]:checked + .option-content i {
  color: #3b82f6;
}

.option-text {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
}

.option-text strong {
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--gray-800);
}

.option-text small {
  font-size: 0.75rem;
  color: var(--gray-600);
  line-height: 1.2;
}

/* Responsive Length Selector */
@media (max-width: 480px) {
  .length-options {
    grid-template-columns: 1fr;
  }
}

/* ========================================
   DARK MODE STYLES - Research-Based Best Practices
   ======================================== */

@media (prefers-color-scheme: dark) {

  /* ===== COLOR PALETTE (Based on WCAG Guidelines) =====
   * Background Base: #121212 (not pure black - prevents eye strain)
   * Surface/Cards: #1E1E1E (elevated surfaces)
   * Text Primary: #E5E5E7 (off-white - prevents halation)
   * Text Secondary: #9CA3AF (medium gray - good contrast)
   * Text Tertiary: #6B7280 (subtle text)
   * Borders: #374151 (subtle separation)
   * Accent Purple: #A78BFA (desaturated to prevent vibration)
   */

  /* ===== BODY & BASE ===== */
  body {
    background: #121212;
    color: #E5E5E7;
  }

  /* ===== NAVIGATION ===== */
  .landing-nav {
    background: rgba(30, 30, 30, 0.95);
    border-bottom: 1px solid #374151;
    backdrop-filter: blur(10px);
  }

  .nav-brand,
  .nav-brand h2 {
    color: #E5E5E7 !important;
  }

  .nav-link {
    color: #9CA3AF;
  }

  .nav-link:hover {
    color: #A78BFA;
    background: rgba(167, 139, 250, 0.1);
  }

  /* Dropdown Menu */
  .dropdown-menu {
    background: #1E1E1E;
    border: 1px solid #374151;
    box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.8), 0 10px 10px -5px rgba(0, 0, 0, 0.6);
  }

  .dropdown-header {
    background: #262626;
    border-bottom: 1px solid #374151;
  }

  .challenge-text {
    color: #A78BFA;
  }

  .dropdown-item {
    color: #E5E5E7;
    border-bottom: 1px solid #374151;
  }

  .dropdown-item:hover {
    background: #262626;
    color: #A78BFA;
  }

  .dropdown-item.current {
    background: linear-gradient(135deg, #6366f1 0%, #8b5cf6 100%);
    color: white;
  }

  .product-name {
    color: #E5E5E7;
  }

  .product-desc {
    color: #9CA3AF;
  }

  .dropdown-item.current .product-name,
  .dropdown-item.current .product-desc {
    color: white;
  }

  /* ===== HERO SECTION ===== */
  .hero-section {
    background: linear-gradient(135deg, #1f2937 0%, #121212 100%);
  }

  .writing-flow-background {
    opacity: 0.03;
  }

  .hero-title {
    color: #E5E5E7;
  }

  .hero-subtitle {
    color: #9CA3AF;
  }

  .cta-hint {
    color: #6B7280;
  }

  /* CTA Buttons */
  .cta-button.secondary {
    background: #1E1E1E;
    color: #E5E5E7;
    border: 2px solid #374151;
  }

  .cta-button.secondary:hover {
    border-color: #A78BFA;
    background: rgba(167, 139, 250, 0.1);
  }

  /* Hero Demo Container */
  .hero-demo-container {
    background: #1E1E1E;
    border: 1px solid #374151;
    box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.5);
  }

  .writing-interface {
    border-bottom: 1px solid #374151;
  }

  .interface-header {
    color: #A78BFA;
  }

  .chapter-title,
  .writing-content p {
    color: #E5E5E7;
  }

  .ai-suggestion {
    background: rgba(167, 139, 250, 0.1);
    border: 1px solid rgba(167, 139, 250, 0.3);
  }

  .ai-suggestion p {
    color: #9CA3AF;
  }

  .memory-sidebar {
    background: #262626;
  }

  .memory-item {
    background: #1E1E1E;
    border: 1px solid #374151;
  }

  .memory-title {
    color: #9CA3AF;
  }

  /* ===== SECTIONS ===== */
  .features-section,
  .benefits-section,
  .how-it-works-section {
    background: #121212;
  }

  .section-title {
    color: #E5E5E7 !important;
  }

  .section-subtitle {
    color: #9CA3AF !important;
  }

  /* ===== CARDS (Dark Surface with Light Text) ===== */
  .feature-card,
  .benefit,
  .step,
  .use-case,
  .example-card,
  .tool-card,
  .testimonial,
  .memory-preview,
  .writing-sample {
    background: #1E1E1E !important;
    border: 1px solid #374151;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
  }

  .feature-card:hover,
  .benefit:hover,
  .step:hover,
  .use-case:hover,
  .example-card:hover {
    background: #262626 !important;
    border-color: #A78BFA;
    box-shadow: 0 8px 16px rgba(167, 139, 250, 0.2);
  }

  /* Card Text */
  .feature-card h3,
  .feature-card h4,
  .benefit h3,
  .benefit h4,
  .step h3,
  .step h4,
  .use-case h3,
  .use-case h4,
  .example-card h3,
  .example-card h4 {
    color: #E5E5E7 !important;
  }

  .feature-card p,
  .benefit p,
  .step p,
  .use-case p,
  .example-card p,
  .tool-card p,
  .testimonial p {
    color: #9CA3AF !important;
  }

  /* Feature Icons */
  .feature-icon,
  .benefit i {
    background: linear-gradient(135deg, #6366f1 0%, #8b5cf6 100%);
    color: white;
  }

  .step-number {
    background: linear-gradient(135deg, #6366f1 0%, #8b5cf6 100%);
    color: white;
  }

  .step-icon {
    background: #1E1E1E;
    border: 2px solid #374151;
    color: #A78BFA;
  }

  .step-connector {
    background: linear-gradient(90deg, #6366f1, #8b5cf6);
  }

  /* ===== WAITLIST SECTION ===== */
  .waitlist-section {
    background: linear-gradient(135deg, #6366f1 0%, #8b5cf6 100%);
  }

  .waitlist-title,
  .waitlist-description,
  .highlight-text strong,
  .highlight-text span {
    color: white !important;
  }

  .highlight-icon {
    background: rgba(255, 255, 255, 0.2);
  }

  /* Form Container - Dark Surface */
  .premium-waitlist-form,
  .premium-form-container {
    background: #1E1E1E !important;
    border: 1px solid #374151;
  }

  .form-header h3 {
    color: #E5E5E7 !important;
  }

  .form-header p {
    color: #9CA3AF !important;
  }

  /* Form Inputs */
  .premium-input,
  .premium-select,
  input[type="text"],
  input[type="email"],
  select,
  textarea {
    background: #262626 !important;
    border: 1px solid #374151 !important;
    color: #E5E5E7 !important;
  }

  .premium-input:focus,
  .premium-select:focus,
  input:focus,
  select:focus,
  textarea:focus {
    border-color: #A78BFA !important;
    background: #1E1E1E !important;
    outline: none;
  }

  .premium-input::placeholder,
  input::placeholder,
  textarea::placeholder {
    color: #6B7280 !important;
  }

  /* Form Labels */
  label {
    color: #9CA3AF !important;
  }

  /* Perk Items */
  .perk-item {
    color: #9CA3AF;
  }

  .perk-item i {
    color: #10b981;
  }

  /* ===== FOOTER ===== */
  .footer,
  .landing-footer {
    background: #1E1E1E;
    border-top: 1px solid #374151;
  }

  .footer-title,
  .footer-logo,
  .footer h3,
  .footer h4 {
    color: #E5E5E7 !important;
  }

  .footer-description,
  .footer p,
  .footer-links a,
  .footer-bottom,
  .footer-bottom p {
    color: #9CA3AF !important;
  }

  .footer-links a:hover {
    color: #A78BFA !important;
  }

  .social-link {
    background: #262626;
    color: #9CA3AF;
  }

  .social-link:hover {
    background: #6366f1;
    color: white;
  }

  /* ===== CTA SECTIONS ===== */
  .cta-section {
    background: #1E1E1E;
    border-top: 1px solid #374151;
  }

  .cta-section h2 {
    color: #E5E5E7 !important;
  }

  .cta-section p {
    color: #9CA3AF !important;
  }

  /* ===== MOBILE OPTIMIZATIONS ===== */
  @media (max-width: 768px) {
    .landing-nav {
      background: rgba(30, 30, 30, 0.98);
    }

    .mobile-nav-menu {
      background: #1E1E1E;
      border-bottom: 1px solid #374151;
    }

    .hero-section {
      background: linear-gradient(135deg, #1f2937 0%, #121212 100%);
    }

    .hero-title {
      color: #E5E5E7 !important;
    }

    .hero-subtitle {
      color: #9CA3AF !important;
    }

    /* Cards remain dark on mobile */
    .benefit,
    .step,
    .feature,
    .use-case,
    .example-card {
      background: #1E1E1E !important;
      border: 1px solid #374151;
    }

    .benefit h3,
    .benefit h4,
    .step h3,
    .step h4,
    .feature h3,
    .feature h4,
    .use-case h3,
    .use-case h4 {
      color: #E5E5E7 !important;
    }

    .benefit p,
    .step p,
    .feature p,
    .use-case p {
      color: #9CA3AF !important;
    }
  }

  /* ===== EXTRA SMALL DEVICES ===== */
  @media (max-width: 480px) {
    .hero-section {
      padding: var(--space-16) 0 var(--space-12);
      background: linear-gradient(135deg, #1f2937 0%, #121212 100%);
    }

    .hero-title {
      font-size: var(--text-3xl);
      color: #E5E5E7 !important;
    }

    .hero-subtitle {
      font-size: var(--text-base);
      color: #9CA3AF !important;
    }

    .nav-brand h2 {
      color: #E5E5E7 !important;
    }

    /* Maintain dark cards on small screens */
    .example-card,
    .use-case,
    .feature,
    .benefit,
    .step {
      background: #1E1E1E !important;
      border: 1px solid #374151;
    }

    .example-card h3,
    .example-card h4,
    .use-case h3,
    .use-case h4,
    .feature h3,
    .feature h4,
    .benefit h3,
    .benefit h4,
    .step h3,
    .step h4 {
      color: #E5E5E7 !important;
    }

    .example-card p,
    .use-case p,
    .feature p,
    .benefit p,
    .step p {
      color: #9CA3AF !important;
    }
  }

  /* ===== SUCCESS/ERROR MESSAGES ===== */
  .premium-success-message {
    background: #1E1E1E;
    border: 1px solid #10b981;
    color: #E5E5E7;
  }

  .premium-error-message {
    background: #1E1E1E;
    border: 1px solid #ef4444;
    color: #E5E5E7;
  }

  .detail-item {
    color: #9CA3AF;
  }
}

