/* AllScience — Landing Page */

/* Hero */
.hero {
  position: relative;
  padding: 8rem 0 5rem;
  text-align: center;
  overflow: hidden;
}

.hero::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0; bottom: 0;
  background:
    radial-gradient(ellipse at 30% 20%, rgba(59, 130, 246, 0.12) 0%, transparent 60%),
    radial-gradient(ellipse at 70% 60%, rgba(6, 214, 160, 0.08) 0%, transparent 50%);
  pointer-events: none;
}

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

.hero-badge {
  display: inline-block;
  padding: 0.375rem 1rem;
  background: var(--color-primary-glow);
  border: 1px solid rgba(59, 130, 246, 0.3);
  border-radius: 999px;
  color: var(--color-primary);
  font-size: 0.8125rem;
  font-weight: 600;
  letter-spacing: 0.03em;
  margin-bottom: 1.5rem;
}

.hero h1 {
  font-size: 3.5rem;
  font-weight: 800;
  letter-spacing: -0.025em;
  margin-bottom: 1rem;
  background: linear-gradient(135deg, var(--color-text) 0%, var(--color-primary) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.hero-subtitle {
  font-size: 1.25rem;
  color: var(--color-text-muted);
  max-width: 640px;
  margin: 0 auto 2.5rem;
  line-height: 1.7;
}

.hero-actions {
  display: flex;
  justify-content: center;
  gap: 1rem;
  flex-wrap: wrap;
}

/* Workflow Strip */
.workflow-strip {
  padding: 2.5rem 0;
  background: var(--color-bg-secondary);
  border-top: 1px solid var(--color-border);
  border-bottom: 1px solid var(--color-border);
}

.workflow-steps {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1.5rem;
}

.workflow-step {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.375rem;
  padding: 1.25rem 2rem;
  background: var(--color-bg-card);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  transition: border-color var(--transition), transform var(--transition);
  text-decoration: none;
  color: inherit;
}

.workflow-step:hover {
  border-color: var(--color-primary);
  transform: translateY(-2px);
}

.workflow-icon { font-size: 1.75rem; }

.workflow-label {
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--color-text);
}

.workflow-desc {
  font-size: 0.75rem;
  color: var(--color-text-muted);
  text-align: center;
}

.workflow-arrow {
  font-size: 1.5rem;
  color: var(--color-text-dim);
}

/* Features */
.features { padding: 5rem 0; }

.section-header {
  text-align: center;
  margin-bottom: 3rem;
}

.section-header h2 { margin-bottom: 0.75rem; }

.section-header p {
  color: var(--color-text-muted);
  max-width: 600px;
  margin: 0 auto;
}

.feature-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
}

.feature-card {
  background: var(--color-bg-card);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  padding: 2rem;
  transition: all var(--transition);
}

.feature-card:hover {
  border-color: var(--color-primary);
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}

.feature-icon {
  width: 48px;
  height: 48px;
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1rem;
  font-size: 1.5rem;
  background: var(--color-primary-glow);
}

.feature-card h3 {
  font-size: 1.125rem;
  margin-bottom: 0.5rem;
}

.feature-card p {
  color: var(--color-text-muted);
  font-size: 0.9375rem;
}

/* How It Works — Animated Walkthrough */
.how-it-works {
  padding: 5rem 0;
  background: var(--color-bg-secondary);
}

.hiw-steps {
  display: flex;
  align-items: flex-start;
  justify-content: center;
  gap: 0;
  max-width: 1000px;
  margin: 2rem auto 0;
}

.hiw-step {
  flex: 1;
  text-align: center;
  padding: 2rem 1.5rem;
  position: relative;
}

.hiw-step-number {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: var(--color-primary);
  color: #fff;
  font-size: 0.875rem;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 1.25rem;
}

.hiw-step h3 {
  font-size: 1.125rem;
  margin-bottom: 0.75rem;
}

.hiw-step p {
  font-size: 0.9375rem;
  color: var(--color-text-muted);
  line-height: 1.6;
}

.hiw-connector {
  display: flex;
  align-items: center;
  padding-top: 4rem;
}

.hiw-connector-line {
  display: block;
  width: 40px;
  height: 2px;
  background: linear-gradient(90deg, var(--color-primary), var(--color-accent));
  border-radius: 2px;
}

/* Icon containers */
.hiw-icon {
  width: 96px;
  height: 96px;
  margin: 0 auto 1.5rem;
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* Step 1: Search — magnifier + papers flying in */
.hiw-icon-search { color: var(--color-primary); }

.hiw-magnifier {
  position: relative;
  z-index: 2;
}

.hiw-papers {
  position: absolute;
  inset: 0;
}

.hiw-paper {
  position: absolute;
  width: 18px;
  height: 22px;
  border-radius: 3px;
  background: rgba(59, 130, 246, 0.2);
  border: 1px solid rgba(59, 130, 246, 0.3);
  opacity: 0;
}

.hiw-step.in-view .hiw-paper-1 { animation: paperFlyIn 0.8s 0.3s ease forwards; top: 10px; right: 5px; }
.hiw-step.in-view .hiw-paper-2 { animation: paperFlyIn 0.8s 0.5s ease forwards; top: 25px; right: -5px; }
.hiw-step.in-view .hiw-paper-3 { animation: paperFlyIn 0.8s 0.7s ease forwards; top: 5px; right: -10px; }

@keyframes paperFlyIn {
  0% { opacity: 0; transform: translate(40px, -20px) rotate(15deg); }
  100% { opacity: 1; transform: translate(0, 0) rotate(0deg); }
}

/* Step 2: Write — cursor + lines appearing */
.hiw-icon-write {
  flex-direction: column;
  gap: 6px;
  padding: 16px;
}

.hiw-cursor {
  position: absolute;
  top: 18px;
  left: 18px;
  width: 2px;
  height: 16px;
  background: var(--color-accent);
  opacity: 0;
}

.hiw-step.in-view .hiw-cursor {
  animation: cursorBlink 1s infinite, cursorAppear 0.3s 0.2s ease forwards;
}

@keyframes cursorBlink {
  0%, 49% { opacity: 1; }
  50%, 100% { opacity: 0; }
}

@keyframes cursorAppear {
  to { opacity: 1; }
}

.hiw-lines {
  display: flex;
  flex-direction: column;
  gap: 6px;
  width: 100%;
}

.hiw-line {
  height: 6px;
  border-radius: 3px;
  background: rgba(226, 232, 240, 0.12);
  transform-origin: left;
  transform: scaleX(0);
}

.hiw-step.in-view .hiw-line-1 { animation: lineGrow 0.6s 0.3s ease forwards; width: 80%; }
.hiw-step.in-view .hiw-line-2 { animation: lineGrow 0.6s 0.5s ease forwards; width: 65%; }
.hiw-step.in-view .hiw-line-3 { animation: lineGrow 0.6s 0.7s ease forwards; width: 90%; }

@keyframes lineGrow {
  to { transform: scaleX(1); }
}

.hiw-underlines {
  display: flex;
  flex-direction: column;
  gap: 0;
  position: absolute;
  bottom: 22px;
  left: 20px;
  right: 20px;
}

.hiw-underline {
  height: 2px;
  border-radius: 1px;
  background: var(--color-accent);
  opacity: 0;
  transform-origin: left;
  transform: scaleX(0);
}

.hiw-step.in-view .hiw-underline-1 { animation: underlineAppear 0.5s 0.9s ease forwards; width: 35px; margin-bottom: 8px; }
.hiw-step.in-view .hiw-underline-2 { animation: underlineAppear 0.5s 1.1s ease forwards; width: 25px; }

@keyframes underlineAppear {
  to { opacity: 1; transform: scaleX(1); }
}

/* Step 3: Publish — book opening + share icons */
.hiw-icon-publish {
  color: #f59e0b;
}

.hiw-book {
  width: 40px;
  height: 50px;
  position: relative;
  perspective: 200px;
}

.hiw-book-cover {
  width: 100%;
  height: 100%;
  background: linear-gradient(135deg, #f59e0b, #d97706);
  border-radius: 3px 6px 6px 3px;
  transform-origin: left;
  transition: transform 0.6s ease;
}

.hiw-step.in-view .hiw-book-cover {
  animation: bookOpen 1s 0.3s ease forwards;
}

@keyframes bookOpen {
  0% { transform: rotateY(0deg); }
  50% { transform: rotateY(-30deg); }
  100% { transform: rotateY(-15deg); }
}

.hiw-book-page {
  position: absolute;
  top: 3px;
  left: 3px;
  width: calc(100% - 6px);
  height: calc(100% - 6px);
  background: rgba(255, 255, 255, 0.15);
  border-radius: 2px 4px 4px 2px;
  z-index: -1;
}

.hiw-share-icons {
  position: absolute;
  top: 0;
  right: 0;
}

.hiw-share-icon {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  position: absolute;
  opacity: 0;
}

.hiw-share-1 { background: var(--color-primary); }
.hiw-share-2 { background: var(--color-accent); }
.hiw-share-3 { background: #f59e0b; }

.hiw-step.in-view .hiw-share-1 { animation: sharePop 0.5s 0.8s ease forwards; top: -5px; right: 5px; }
.hiw-step.in-view .hiw-share-2 { animation: sharePop 0.5s 1.0s ease forwards; top: 5px; right: -10px; }
.hiw-step.in-view .hiw-share-3 { animation: sharePop 0.5s 1.2s ease forwards; top: -10px; right: -5px; }

@keyframes sharePop {
  0% { opacity: 0; transform: scale(0); }
  60% { opacity: 1; transform: scale(1.3); }
  100% { opacity: 1; transform: scale(1); }
}

/* Scroll-triggered animation classes */
@keyframes fadeUpIn {
  from { opacity: 0; transform: translateY(30px); }
  to { opacity: 1; transform: translateY(0); }
}

@keyframes slideInLeft {
  from { opacity: 0; transform: translateX(-40px); }
  to { opacity: 1; transform: translateX(0); }
}

@keyframes slideInRight {
  from { opacity: 0; transform: translateX(40px); }
  to { opacity: 1; transform: translateX(0); }
}

.animate-on-scroll {
  opacity: 0;
  transition: opacity 0.6s ease, transform 0.6s ease;
}

.animate-on-scroll.in-view {
  opacity: 1;
}

.animate-on-scroll[data-anim="fadeUpIn"].in-view { animation: fadeUpIn 0.7s ease forwards; }
.animate-on-scroll[data-anim="slideInLeft"].in-view { animation: slideInLeft 0.7s ease forwards; }
.animate-on-scroll[data-anim="slideInRight"].in-view { animation: slideInRight 0.7s ease forwards; }

/* Keep old preview styles for backward compat */
.workspace-preview {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: 1rem;
  max-width: 960px;
  margin: 2rem auto 0;
}

.preview-panel {
  background: var(--color-bg-card);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  overflow: hidden;
  min-height: 240px;
}

.preview-panel-header {
  padding: 0.75rem 1rem;
  font-weight: 600;
  font-size: 0.8125rem;
  border-bottom: 1px solid var(--color-border);
  color: var(--color-text);
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.preview-sources .preview-panel-header { border-bottom-color: var(--color-primary); }
.preview-analysis .preview-panel-header { border-bottom-color: var(--color-accent); }
.preview-draft .preview-panel-header { border-bottom-color: #f59e0b; }
.preview-panel-body { padding: 1rem; }

.preview-text-block {
  font-size: 0.8125rem; color: var(--color-text-muted);
  padding: 0.75rem; background: var(--color-bg);
  border: 1px solid var(--color-border); border-radius: var(--radius-sm);
  min-height: 80px; margin-bottom: 0.75rem; line-height: 1.5;
}

.preview-btn {
  display: inline-block; padding: 0.375rem 1rem;
  background: var(--color-primary); color: #fff;
  border-radius: var(--radius-sm); font-size: 0.8125rem; font-weight: 600;
}

.preview-finding {
  font-size: 0.8125rem; color: var(--color-text);
  padding: 0.5rem 0.75rem; background: var(--color-bg);
  border: 1px solid var(--color-border); border-radius: var(--radius-sm);
  margin-bottom: 0.5rem; line-height: 1.4;
}

.preview-tag {
  display: inline-block; padding: 0.125rem 0.5rem;
  background: rgba(6, 214, 160, 0.15); color: var(--color-accent);
  border-radius: 3px; font-size: 0.6875rem; font-weight: 600;
  text-transform: uppercase; margin-right: 0.375rem;
}

.preview-draft-text {
  font-size: 0.8125rem; color: var(--color-text-muted);
  line-height: 1.6; margin-bottom: 0.75rem;
}

.preview-cite {
  display: inline-block; padding: 0 0.375rem;
  background: rgba(59, 130, 246, 0.2); color: var(--color-primary);
  border-radius: 3px; font-size: 0.75rem; font-weight: 600; cursor: pointer;
}

.preview-export {
  font-size: 0.75rem; color: var(--color-text-dim);
  padding-top: 0.5rem; border-top: 1px solid var(--color-border);
}

/* CTA */
.cta {
  padding: 5rem 0;
  text-align: center;
}

.cta h2 { margin-bottom: 1rem; }

.cta p {
  color: var(--color-text-muted);
  margin-bottom: 2rem;
  max-width: 500px;
  margin-left: auto;
  margin-right: auto;
}

.cta-actions {
  display: flex;
  justify-content: center;
  gap: 1rem;
}

/* Status indicator */
.status-dot {
  display: inline-block;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--color-success);
  margin-right: 0.375rem;
  animation: pulse 2s infinite;
}

@keyframes pulse {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.5; }
}

/* Hero Audiences */
.hero-audiences {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.75rem;
  margin-top: 2rem;
  font-size: 0.875rem;
  color: var(--color-text-dim);
}

.audience-tag {
  padding: 0.25rem 0.75rem;
  background: rgba(59, 130, 246, 0.1);
  border: 1px solid rgba(59, 130, 246, 0.2);
  border-radius: 100px;
  color: #93bbfc;
  font-weight: 500;
  font-size: 0.8125rem;
}

/* Audience Section */
.audience-section {
  padding: 5rem 0;
}

.audience-cards {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.5rem;
  max-width: 900px;
  margin: 0 auto;
}

.audience-card {
  background: var(--color-bg-card, #1a2233);
  border: 1px solid var(--color-border, #1e293b);
  border-radius: var(--radius-md, 10px);
  padding: 2rem;
  transition: border-color 0.2s, transform 0.2s;
}

.audience-card:hover {
  border-color: var(--color-primary, #3b82f6);
  transform: translateY(-2px);
}

.audience-card h3 {
  font-size: 1.125rem;
  margin-bottom: 0.75rem;
}

.audience-card p {
  color: var(--color-text-muted, #8896ab);
  font-size: 0.9375rem;
  line-height: 1.6;
}

/* Pricing */
.pricing-strip {
  padding: 5rem 0;
  background: var(--color-bg-secondary, #111827);
}

.pricing-details-link {
  display: inline-block; margin-top: 0.75rem;
  font-size: 0.875rem; color: var(--color-primary, #3b82f6); text-decoration: none;
}
.pricing-details-link:hover { text-decoration: underline; }

.pricing-cards {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.25rem;
  max-width: 1100px;
  margin: 0 auto;
}

.pricing-card {
  background: var(--color-bg-card, #1a2233);
  border: 1px solid var(--color-border, #1e293b);
  border-radius: var(--radius-md, 10px);
  padding: 2.5rem 2rem;
  text-align: center;
}

.pricing-card { position: relative; }

.pricing-badge {
  position: absolute; top: -0.75rem; left: 50%; transform: translateX(-50%);
  padding: 0.25rem 1rem; background: var(--color-primary, #3b82f6); color: #fff;
  font-size: 0.6875rem; font-weight: 700; border-radius: 100px;
  text-transform: uppercase; letter-spacing: 0.05em; white-space: nowrap;
}

.pricing-period {
  font-size: 0.5em; font-weight: 400; color: var(--color-text-muted, #8896ab);
}

.pricing-featured {
  border-color: var(--color-primary, #3b82f6);
  box-shadow: 0 0 30px rgba(59, 130, 246, 0.15);
}

.pricing-max {
  border-color: var(--color-accent, #06d6a0);
  box-shadow: 0 0 30px rgba(6, 214, 160, 0.1);
}
.pricing-max .pricing-price { color: var(--color-accent, #06d6a0); }
.pricing-max .pricing-badge { background: var(--color-accent, #06d6a0); color: #000; }

.pricing-max-plus {
  border-color: #8b5cf6;
  box-shadow: 0 0 30px rgba(139, 92, 246, 0.1);
}
.pricing-max-plus .pricing-price { color: #8b5cf6; }
.pricing-max-plus .pricing-badge { background: #8b5cf6; }

.pricing-card h3 {
  font-size: 1.25rem;
  margin-bottom: 0.5rem;
}

.pricing-price {
  font-size: 2.5rem;
  font-weight: 800;
  color: var(--color-primary, #3b82f6);
  margin-bottom: 1.5rem;
}

.pricing-card ul {
  list-style: none;
  padding: 0;
  margin: 0 0 2rem;
  text-align: left;
}

.pricing-card li {
  padding: 0.5rem 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
  font-size: 0.875rem;
  color: var(--color-text-muted, #8896ab);
}

.pricing-card li:last-child { border-bottom: none; }

/* Audience CTAs */
.audience-card {
  text-decoration: none; color: inherit;
  transition: border-color 0.2s, transform 0.2s;
}
.audience-card:hover { border-color: var(--color-primary, #3b82f6); transform: translateY(-2px); }
.audience-cta {
  display: block; margin-top: 1rem;
  font-size: 0.875rem; font-weight: 600;
  color: var(--color-primary, #3b82f6);
}

/* Published works grid */
.published-works { padding: 4rem 0; }
.published-grid {
  display: grid; grid-template-columns: repeat(3, 1fr);
  gap: 1.25rem; max-width: 900px; margin: 0 auto;
}
.published-card {
  display: block; padding: 1.5rem;
  background: var(--color-bg-secondary, #111827);
  border: 1px solid var(--color-border, #1e293b);
  border-radius: 10px; text-decoration: none; color: inherit;
  transition: border-color 0.2s, transform 0.2s;
}
.published-card:hover { border-color: var(--color-primary, #3b82f6); transform: translateY(-1px); }
.published-card-title { font-weight: 600; font-size: 0.9375rem; margin-bottom: 0.5rem; color: var(--color-text, #e2e8f0); line-height: 1.4; }
.published-card-desc { font-size: 0.8125rem; color: var(--color-text-muted, #8896ab); line-height: 1.5; margin-bottom: 0.75rem; }
.published-card-meta { display: flex; gap: 0.75rem; font-size: 0.6875rem; color: var(--color-text-dim, #5a6a80); }

/* Hero Stats Counters */
.hero-stats {
  display: flex;
  justify-content: center;
  gap: 2.5rem;
  margin-top: 3rem;
  padding-top: 2.5rem;
  border-top: 1px solid rgba(59, 130, 246, 0.15);
}

.hero-stat {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.25rem;
  opacity: 0;
  transform: translateY(20px);
  animation: statFadeIn 0.6s ease forwards;
}

.hero-stat:nth-child(1) { animation-delay: 0.1s; }
.hero-stat:nth-child(2) { animation-delay: 0.2s; }
.hero-stat:nth-child(3) { animation-delay: 0.3s; }
.hero-stat:nth-child(4) { animation-delay: 0.4s; }

@keyframes statFadeIn {
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.hero-stat-number {
  font-size: 2.25rem;
  font-weight: 800;
  letter-spacing: -0.02em;
  background: linear-gradient(135deg, var(--color-primary, #3b82f6), var(--color-accent, #06d6a0));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  line-height: 1.2;
}

.hero-stat-label {
  font-size: 0.8125rem;
  color: var(--color-text-muted, #8896ab);
  font-weight: 500;
  letter-spacing: 0.02em;
}

/* Trust Strip — Social Proof */
.trust-strip {
  padding: 1.5rem 0;
  border-top: 1px solid rgba(148, 163, 184, 0.1);
  border-bottom: 1px solid rgba(148, 163, 184, 0.1);
  background: rgba(15, 23, 42, 0.5);
}
.trust-content {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1.25rem;
  flex-wrap: wrap;
}
.trust-label {
  color: var(--color-muted);
  font-size: 0.875rem;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}
.trust-institutions {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  flex-wrap: wrap;
  justify-content: center;
}
.trust-badge {
  color: var(--color-heading);
  font-size: 1rem;
  font-weight: 600;
  letter-spacing: -0.01em;
}
.trust-sep {
  color: var(--color-muted);
  opacity: 0.4;
}
@media (max-width: 640px) {
  .trust-content { flex-direction: column; gap: 0.5rem; }
  .trust-label { font-size: 0.75rem; }
  .trust-badge { font-size: 0.875rem; }
}

/* Scientist Testimonial Strip */
.scientist-strip {
  display: flex;
  justify-content: center;
  gap: 2rem;
  flex-wrap: wrap;
  max-width: 1100px;
  margin: 0 auto;
}
.scientist-card {
  flex: 1;
  min-width: 280px;
  max-width: 340px;
  background: var(--color-bg-card, #1a2233);
  border: 1px solid var(--color-border, #334155);
  border-radius: 16px;
  padding: 1.5rem;
  text-align: center;
}
.scientist-avatar {
  width: 120px;
  height: 120px;
  border-radius: 50%;
  margin: 0 auto 1rem;
  overflow: hidden;
  border: 3px solid var(--color-primary, #3b82f6);
}
.scientist-avatar img { width: 100%; height: 100%; object-fit: cover; }
.scientist-name { font-size: 1.1rem; font-weight: 700; color: var(--color-heading, #e2e8f0); margin-bottom: 0.125rem; }
.scientist-title { font-size: 0.8rem; color: var(--color-muted, #64748b); margin-bottom: 1rem; }
.speech-bubble {
  background: rgba(15, 23, 42, 0.6);
  border: 1px solid rgba(51, 65, 85, 0.5);
  border-radius: 12px;
  padding: 1rem;
  position: relative;
  font-size: 0.875rem;
  line-height: 1.55;
  color: var(--color-text-muted, #94a3b8);
  font-style: italic;
}
.speech-bubble::before {
  content: '';
  position: absolute;
  top: -8px;
  left: 50%;
  transform: translateX(-50%);
  border: 8px solid transparent;
  border-bottom-color: rgba(51, 65, 85, 0.5);
  border-top: 0;
}
.speech-bubble::after {
  content: '';
  position: absolute;
  top: -6px;
  left: 50%;
  transform: translateX(-50%);
  border: 6px solid transparent;
  border-bottom-color: rgba(15, 23, 42, 0.6);
  border-top: 0;
}
@media (max-width: 768px) {
  .scientist-strip { flex-direction: column; align-items: center; }
  .scientist-card { max-width: 400px; }
}

/* ── Flagship Book Showcase ─────────────────────────────────────── */
.flagship-showcase {
  padding: 4rem 0;
  background: var(--color-bg-secondary, #111827);
}
.flagship-content {
  display: flex;
  align-items: center;
  gap: 2.5rem;
  max-width: 800px;
  margin: 0 auto;
  flex-wrap: wrap;
  justify-content: center;
}
.flagship-cover {
  flex-shrink: 0;
}
.flagship-details {
  flex: 1;
  min-width: 280px;
}
.flagship-details h3 {
  font-size: 1.5rem;
  margin-bottom: 0.25rem;
}
.flagship-author {
  color: var(--color-text-muted);
  font-style: italic;
  margin-bottom: 0.75rem;
}
.flagship-desc {
  color: var(--color-text-muted);
  line-height: 1.6;
  margin-bottom: 1rem;
}
.flagship-stats {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-bottom: 1rem;
}
.flagship-stat {
  font-size: 0.85rem;
  padding: 0.3rem 0.6rem;
  background: var(--color-bg-card, #1a2233);
  border: 1px solid var(--color-border, #2a3a52);
  border-radius: 6px;
  white-space: nowrap;
}
.flagship-pipeline {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.85rem;
}
.pipeline-step {
  padding: 0.25rem 0.6rem;
  background: var(--color-primary-glow);
  border: 1px solid var(--color-primary);
  border-radius: 4px;
  color: var(--color-primary);
  font-weight: 600;
}
.pipeline-arrow {
  color: var(--color-text-dim);
}
[data-theme="light"] .flagship-showcase {
  background: #f1f5f9;
}
[data-theme="light"] .flagship-stat {
  background: #ffffff;
  border-color: #e2e8f0;
}
[data-theme="light"] .flagship-details h3 {
  color: #0f172a;
}
[data-theme="light"] .flagship-author,
[data-theme="light"] .flagship-desc {
  color: #475569;
}
@media (max-width: 640px) {
  .flagship-content { flex-direction: column; text-align: center; }
  .flagship-stats { justify-content: center; }
  .flagship-pipeline { justify-content: center; }
}

/* ── Light theme overrides for scientist section ────────────────── */
[data-theme="light"] .scientist-card {
  background: #ffffff;
  border-color: #e2e8f0;
  box-shadow: 0 1px 4px rgba(0,0,0,0.08);
}
[data-theme="light"] .scientist-name {
  color: #1e293b;
}
[data-theme="light"] .scientist-title {
  color: #475569;
}
[data-theme="light"] .speech-bubble {
  background: #f1f5f9;
  border-color: #cbd5e1;
  color: #334155;
}
[data-theme="light"] .speech-bubble::before {
  border-bottom-color: #cbd5e1;
}
[data-theme="light"] .speech-bubble::after {
  border-bottom-color: #f1f5f9;
}

/* Testimonial Carousel (legacy, kept for backward compat) */
.testimonials {
  padding: 4rem 0;
  background: var(--color-bg-secondary, #111827);
  overflow: hidden;
}

.testimonial-carousel {
  max-width: 720px;
  width: 100%;
  margin: 0 auto;
  position: relative;
  overflow: hidden;
}

.testimonial-track {
  display: flex;
  flex-wrap: nowrap;
  transition: transform 0.5s cubic-bezier(0.4, 0, 0.2, 1);
  will-change: transform;
  width: 100%;
}

.testimonial-card {
  min-width: 100%;
  width: 100%;
  flex-shrink: 0;
  padding: 2.5rem;
  box-sizing: border-box;
}

.testimonial-quote {
  font-size: 1.0625rem;
  line-height: 1.7;
  color: var(--color-text, #e2e8f0);
  margin-bottom: 1.5rem;
  position: relative;
  padding-left: 1.25rem;
  border-left: 3px solid var(--color-primary, #3b82f6);
}

.testimonial-author {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.testimonial-avatar {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--color-primary, #3b82f6), var(--color-accent, #06d6a0));
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.8125rem;
  font-weight: 700;
  flex-shrink: 0;
}

.testimonial-name {
  font-weight: 600;
  font-size: 0.9375rem;
  color: var(--color-text, #e2e8f0);
}

.testimonial-role {
  font-size: 0.8125rem;
  color: var(--color-text-muted, #8896ab);
}

.testimonial-controls {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1rem;
  margin-top: 1.5rem;
}

.testimonial-btn {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  border: 1px solid var(--color-border, #1e293b);
  background: var(--color-bg-card, #1a2233);
  color: var(--color-text, #e2e8f0);
  font-size: 1rem;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: border-color 0.2s, background 0.2s;
}

.testimonial-btn:hover {
  border-color: var(--color-primary, #3b82f6);
  background: rgba(59, 130, 246, 0.1);
}

.testimonial-dots {
  display: flex;
  gap: 0.5rem;
}

.testimonial-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  border: none;
  background: var(--color-border, #1e293b);
  cursor: pointer;
  padding: 0;
  transition: background 0.3s, transform 0.3s;
}

.testimonial-dot.active {
  background: var(--color-primary, #3b82f6);
  transform: scale(1.3);
}

.testimonial-dot:hover {
  background: rgba(59, 130, 246, 0.5);
}

/* Responsive */
@media (max-width: 768px) {
  .hero { padding: 6rem 0 3rem; }
  .hero h1 { font-size: 2.25rem; }
  .hero-subtitle { font-size: 1.0625rem; }
  .feature-grid, .tool-grid { grid-template-columns: 1fr; }
  .workflow-steps { flex-wrap: wrap; gap: 0.75rem; }
  .workflow-arrow { display: none; }
  .workspace-preview { grid-template-columns: 1fr; }
  .hiw-steps { flex-direction: column; align-items: center; }
  .hiw-connector { padding-top: 0; }
  .hiw-connector-line { width: 2px; height: 30px; }
  .audience-cards { grid-template-columns: 1fr; }
  .pricing-cards { grid-template-columns: repeat(2, 1fr); }
  .hero-audiences { flex-wrap: wrap; }
  .published-grid { grid-template-columns: 1fr; }
  .hero-stats { flex-wrap: wrap; gap: 1.5rem; }
  .hero-stat-number { font-size: 1.75rem; }
  .testimonial-card { padding: 1.5rem; }
  .testimonial-quote { font-size: 0.9375rem; }
}

@media (max-width: 550px) {
  .pricing-cards { grid-template-columns: 1fr; }
  .hero h1 { font-size: 1.875rem; }
  .hero-subtitle { font-size: 0.9375rem; }
  .hero-actions { flex-direction: column; align-items: center; }
  .hero-actions .btn { width: 100%; text-align: center; }
  .cta-actions { flex-direction: column; align-items: center; }
  .cta-actions .btn { width: 100%; text-align: center; }
  .hero-stats { gap: 1rem; }
  .hero-stat-number { font-size: 1.5rem; }
  .workflow-step { padding: 1rem 1.25rem; }
}

@media (min-width: 769px) and (max-width: 1024px) {
  .pricing-cards { grid-template-columns: repeat(2, 1fr); }
  .tool-grid { grid-template-columns: repeat(2, 1fr); }
}

/* ═══════════════════════════════════════════════════════════════════
   LIGHT THEME — comprehensive overrides for all landing page sections
   ═══════════════════════════════════════════════════════════════════ */

/* Global text contrast */
[data-theme="light"] .hero h1,
[data-theme="light"] .section-header h2,
[data-theme="light"] h2,
[data-theme="light"] h3 {
  color: #0f172a;
}
[data-theme="light"] .hero p,
[data-theme="light"] .section-header p {
  color: #475569;
}

/* Feature cards */
[data-theme="light"] .feature-card {
  background: #ffffff;
  border-color: #e2e8f0;
  box-shadow: 0 1px 3px rgba(0,0,0,0.06);
}
[data-theme="light"] .feature-card h3 {
  color: #1e293b;
}
[data-theme="light"] .feature-card p {
  color: #475569;
}
[data-theme="light"] .feature-badge {
  background: #dbeafe;
  color: #1d4ed8;
}

/* How It Works */
[data-theme="light"] .how-it-works {
  background: #f1f5f9;
}
[data-theme="light"] .hiw-step h3 {
  color: #1e293b;
}
[data-theme="light"] .hiw-step p {
  color: #475569;
}
[data-theme="light"] .hiw-line {
  background: rgba(30, 41, 59, 0.12);
}

/* Editing section */
[data-theme="light"] .editing-feature h3,
[data-theme="light"] .tool-card h3 {
  color: #1e293b;
}
[data-theme="light"] .editing-feature p,
[data-theme="light"] .tool-card p {
  color: #475569;
}
[data-theme="light"] .tool-card {
  background: #ffffff;
  border-color: #e2e8f0;
}

/* Intelligence section */
[data-theme="light"] .intel-card {
  background: #ffffff;
  border-color: #e2e8f0;
}
[data-theme="light"] .intel-card h3 {
  color: #1e293b;
}
[data-theme="light"] .intel-card p {
  color: #475569;
}

/* Choose Your Path */
[data-theme="light"] .path-card {
  background: #ffffff;
  border-color: #e2e8f0;
}
[data-theme="light"] .path-card h3 {
  color: #1e293b;
}
[data-theme="light"] .path-card p,
[data-theme="light"] .path-card li {
  color: #475569;
}

/* Published on AllScience */
[data-theme="light"] .pub-card {
  background: #ffffff;
  border-color: #e2e8f0;
}
[data-theme="light"] .pub-card h3 {
  color: #1e293b;
}
[data-theme="light"] .pub-card p {
  color: #475569;
}
[data-theme="light"] .pub-meta {
  color: #64748b;
}

/* Pricing cards */
[data-theme="light"] .pricing-card {
  background: #ffffff;
  border-color: #e2e8f0;
}
[data-theme="light"] .pricing-card li {
  color: #334155;
}

/* Testimonials section background */
[data-theme="light"] .testimonials {
  background: #f8fafc;
}

/* CTA section */
[data-theme="light"] .cta-section {
  background: #f1f5f9;
}
[data-theme="light"] .cta-section h2 {
  color: #0f172a;
}
[data-theme="light"] .cta-section p {
  color: #475569;
}

/* Workflow steps */
[data-theme="light"] .workflow-step {
  background: #ffffff;
  border-color: #e2e8f0;
}
[data-theme="light"] .workflow-step h4 {
  color: #1e293b;
}
[data-theme="light"] .workflow-step p {
  color: #475569;
}

/* Footer */
[data-theme="light"] .site-footer {
  background: #f8fafc;
  border-top-color: #e2e8f0;
}
[data-theme="light"] .footer-links a {
  color: #475569;
}
[data-theme="light"] .footer-links a:hover {
  color: #1e293b;
}
[data-theme="light"] .footer-copy {
  color: #64748b;
}
