:root {
  --primary: #0ea5e9;
  --primary-hover: #0284c7;
  --primary-glow: rgba(14, 165, 233, 0.3);
  --bg-color: #070a13; /* Deep premium startup space-blue dark theme */
  --bg-secondary: #0c101d;
  --text-primary: #f8fafc;
  --text-secondary: #94a3b8;
  --text-muted: #64748b;
  --border-color: rgba(255, 255, 255, 0.08);
  --card-bg: rgba(15, 23, 42, 0.6);
  --navbar-bg: rgba(7, 10, 19, 0.85);
  --navbar-border: rgba(255, 255, 255, 0.06);
  --radius: 1rem;
  --radius-lg: 1.5rem;
  --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
  --shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.3), 0 2px 4px -1px rgba(0, 0, 0, 0.2);
  --shadow-lg: 0 20px 25px -5px rgba(0, 0, 0, 0.4), 0 10px 10px -5px rgba(0, 0, 0, 0.3);
  --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  --max-width: 1200px;
}

/* Light theme override - RESTORED EXACTLY TO HOW IT WAS BEFORE */
:root.light-theme, body.light-theme {
  --bg-color: #ffffff;
  --bg-secondary: #f8fafc;
  --text-primary: #0f172a;
  --text-secondary: #64748b;
  --text-muted: #94a3b8;
  --border-color: #e2e8f0;
  --card-bg: #ffffff;
  --navbar-bg: rgba(255, 255, 255, 0.85);
  --navbar-border: #e2e8f0;
  --shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.05), 0 2px 4px -1px rgba(0, 0, 0, 0.03);
  --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.05), 0 4px 6px -2px rgba(0, 0, 0, 0.03);
}

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

html {
  scroll-behavior: smooth;
  scroll-padding-top: 5.5rem; /* Automatically offsets all anchor scroll destinations to clear the fixed header */
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  color: var(--text-primary);
  background-color: var(--bg-color);
  -webkit-font-smoothing: antialiased;
  transition: background-color 0.4s ease, color 0.4s ease;
  overflow-x: hidden;
}

[id] {
  scroll-margin-top: 5.5rem; /* Extra safety clearance offset for target elements */
}

body {
  line-height: 1.5;
  overflow-x: hidden;
}

img, svg {
  max-width: 100%;
  display: block;
}

a {
  text-decoration: none;
  color: inherit;
  transition: var(--transition);
}

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

/* Typography RESPONSIVE FOR SMALLER SCREENS */
h1, h2, h3, h4 {
  font-weight: 800;
  line-height: 1.2;
  letter-spacing: -0.02em;
  color: var(--text-primary);
}

.gradient-text {
  background: linear-gradient(135deg, #0ea5e9, #6366f1);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  display: inline-block;
}

/* Buttons & Inputs */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  font-weight: 700;
  border-radius: 0.75rem;
  border: none;
  cursor: pointer;
  transition: var(--transition);
  padding: 0.75rem 1.5rem;
  font-size: 1rem;
  user-select: none;
}

.btn-sm {
  padding: 0.5rem 1.25rem;
  font-size: 0.875rem;
}

.btn-primary {
  background-color: var(--primary);
  color: white;
  box-shadow: 0 4px 14px 0 var(--primary-glow);
}

.btn-primary:hover {
  background-color: var(--primary-hover);
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(14, 165, 233, 0.4);
}

.btn-white {
  background-color: var(--text-primary);
  color: var(--bg-color);
  box-shadow: var(--shadow);
}

.btn-white:hover {
  transform: translateY(-2px);
  opacity: 0.95;
}

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

.btn-outline:hover {
  background: rgba(255, 255, 255, 0.05);
  border-color: var(--text-secondary);
}

/* Floating Theme Toggle */
.theme-toggle-btn {
  position: fixed;
  bottom: 2.5rem;
  right: 2.5rem;
  z-index: 999;
  width: 3.5rem;
  height: 3.5rem;
  border-radius: 50%;
  background: var(--bg-secondary);
  border: 1px solid var(--border-color);
  color: var(--text-primary);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  box-shadow: var(--shadow-lg);
  backdrop-filter: blur(12px);
  transition: var(--transition);
}
.theme-toggle-btn:hover {
  transform: scale(1.1) rotate(15deg);
  border-color: var(--primary);
  color: var(--primary);
}
.theme-toggle-btn svg {
  width: 1.5rem;
  height: 1.5rem;
}
.theme-toggle-btn .sun-icon { display: none; }
.theme-toggle-btn .moon-icon { display: block; }
.light-theme .theme-toggle-btn .sun-icon { display: block; }
.light-theme .theme-toggle-btn .moon-icon { display: none; }

/* Navbar */
.navbar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  background: var(--navbar-bg);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--navbar-border);
  transition: var(--transition);
}

.navbar.scrolled {
  box-shadow: var(--shadow-sm);
  padding: 0.25rem 0;
}

.navbar-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 4.5rem;
}

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

.logo-image {
  height: 2.5rem;
  width: auto;
  border-radius: 0.5rem;
  display: block;
}

.logo-icon {
  width: 2.5rem;
  height: 2.5rem;
  background: var(--primary);
  color: white;
  border-radius: 0.75rem;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 12px var(--primary-glow);
}

.logo-text {
  font-size: 1.25rem;
  font-weight: 800;
  letter-spacing: -0.02em;
  color: var(--text-primary);
}

.nav-links {
  display: none;
  gap: 2rem;
  font-weight: 600;
  font-size: 0.875rem;
  color: var(--text-secondary);
}

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

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

/* Hero Section */
.hero {
  position: relative;
  padding: 8rem 0 4rem; /* Adjusted for mobile space */
  text-align: center;
  overflow: hidden;
}

@media (min-width: 768px) {
  .hero { padding: 10rem 0 5rem; }
}

.hero-glow {
  position: absolute;
  width: 45rem;
  height: 45rem;
  border-radius: 50%;
  filter: blur(140px);
  opacity: 0.12;
  z-index: -1;
}

.hero-glow-1 {
  top: -15%;
  left: -10%;
  background: #0ea5e9;
}

.hero-glow-2 {
  bottom: -15%;
  right: -10%;
  background: #6366f1;
}

.hero-inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2.5rem;
}

.hero-content {
  max-width: 50rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1.25rem;
}

.badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.375rem 1rem;
  background: rgba(14, 165, 233, 0.08);
  border: 1px solid rgba(14, 165, 233, 0.2);
  color: var(--primary);
  font-size: 0.725rem;
  font-weight: 700;
  border-radius: 99px;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.badge-dot {
  width: 0.375rem;
  height: 0.375rem;
  background: #0ea5e9;
  border-radius: 50%;
  animation: pulse 2s infinite;
}

@keyframes pulse {
  0% { box-shadow: 0 0 0 0 rgba(14, 165, 233, 0.7); }
  70% { box-shadow: 0 0 0 6px rgba(14, 165, 233, 0); }
  100% { box-shadow: 0 0 0 0 rgba(14, 165, 233, 0); }
}

/* RESPONSIVE TYPOGRAPHY OVERRIDES */
.hero-title {
  font-size: 2.00rem;
  letter-spacing: -0.03em;
  font-weight: 900;
  line-height: 1.15;
}

@media (min-width: 640px) {
  .hero-title { font-size: 3.00rem; }
}

@media (min-width: 1024px) {
  .hero-title { font-size: 4.25rem; }
}

.hero-subtitle {
  font-size: 0.95rem;
  color: var(--text-secondary);
  max-width: 38rem;
  line-height: 1.5;
}

@media (min-width: 640px) {
  .hero-subtitle { font-size: 1.2rem; }
}

.waitlist-form {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  width: 100%;
  max-width: 28rem;
  margin-top: 0.75rem;
}

@media (min-width: 480px) {
  .waitlist-form {
    flex-direction: row;
    background: var(--bg-secondary);
    padding: 0.375rem;
    border-radius: 1rem;
    border: 1px solid var(--border-color);
    box-shadow: var(--shadow-sm);
  }
}

.waitlist-input {
  flex: 1;
  padding: 0.75rem 1rem;
  border: 1px solid var(--border-color);
  border-radius: 0.75rem;
  font-size: 1rem;
  font-family: inherit;
  outline: none;
  background: var(--bg-color);
  color: var(--text-primary);
  transition: var(--transition);
}

@media (min-width: 480px) {
  .waitlist-input {
    border: none;
    padding: 0 1rem;
    background: transparent;
  }
}

.hero-meta {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: 0.5rem;
  font-size: 0.725rem;
  color: var(--text-muted);
  font-weight: 600;
}

.meta-dot { opacity: 0.5; }

.hero-visual {
  width: 100%;
  max-width: 64rem;
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-lg), 0 20px 40px -10px rgba(14, 165, 233, 0.15);
  border: 1px solid var(--border-color);
  transition: transform 0.5s ease;
  background: var(--card-bg);
}

@media (min-width: 768px) {
  .hero-visual {
    transform: perspective(1000px) rotateX(1deg);
  }
  .hero-visual:hover {
    transform: perspective(1000px) rotateX(0deg);
  }
}

.hero-image {
  width: 100%;
  height: auto;
  background: #0f172a;
}

/* Trusted By */
.trusted {
  padding: 3rem 0;
  text-align: center;
  border-bottom: 1px solid var(--border-color);
  background: rgba(0, 0, 0, 0.02);
}

.trusted-label {
  font-size: 0.8rem;
  font-weight: 700;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-bottom: 1.5rem;
}

.trusted-logos {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.65rem;
}

.logo-pill {
  padding: 0.4rem 1rem;
  background: var(--bg-secondary);
  border: 1px solid var(--border-color);
  border-radius: 0.75rem;
  font-size: 0.75rem;
  font-weight: 700;
  color: var(--text-secondary);
  transition: var(--transition);
}
.logo-pill:hover {
  border-color: var(--primary);
  color: var(--primary);
  transform: translateY(-2px);
}

@media (min-width: 640px) {
  .logo-pill { font-size: 0.85rem; padding: 0.5rem 1.25rem; }
  .trusted-logos { gap: 0.85rem; }
}

/* Section Common */
.section-header {
  text-align: center;
  margin-bottom: 2.5rem;
  max-width: 42rem;
  margin-inline: auto;
}

@media (min-width: 768px) {
  .section-header { margin-bottom: 4rem; }
}

.section-label {
  font-size: 0.7rem;
  font-weight: 800;
  color: var(--primary);
  text-transform: uppercase;
  letter-spacing: 0.12em;
  display: block;
  margin-bottom: 0.75rem;
}

.section-title {
  font-size: 1.75rem;
  margin-bottom: 1rem;
  font-weight: 950;
  letter-spacing: -0.02em;
}

@media (min-width: 640px) {
  .section-title { font-size: 2.25rem; }
}

@media (min-width: 1024px) {
  .section-title { font-size: 2.75rem; }
}

.section-desc {
  color: var(--text-secondary);
  font-size: 0.95rem;
  line-height: 1.5;
}

@media (min-width: 640px) {
  .section-desc { font-size: 1.1rem; }
}

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

@media (min-width: 768px) {
  .features { padding: 7.5rem 0; }
}

.features-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.25rem;
}

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

@media (min-width: 1024px) {
  .features-grid { grid-template-columns: repeat(3, 1fr); gap: 1.75rem; }
}

.feature-card {
  background: var(--card-bg);
  padding: 2rem;
  border-radius: var(--radius-lg);
  border: 1px solid var(--border-color);
  box-shadow: var(--shadow-sm);
  transition: var(--transition);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}

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

.feature-icon {
  width: 3rem;
  height: 3rem;
  border-radius: 0.8rem;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1.5rem;
}

.feature-card h3 {
  font-size: 1.25rem;
  margin-bottom: 0.75rem;
  font-weight: 800;
}

.feature-card p {
  color: var(--text-secondary);
  font-size: 0.875rem;
  line-height: 1.5;
}

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

@media (min-width: 768px) {
  .how-it-works { padding: 7.5rem 0; }
}

.steps-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.5rem;
  position: relative;
}

@media (min-width: 768px) {
  .steps-grid { 
    grid-template-columns: 1fr auto 1fr auto 1fr; 
    align-items: center;
  }
}

.step-card {
  text-align: center;
  background: var(--card-bg);
  padding: 2rem;
  border-radius: var(--radius-lg);
  border: 1px solid var(--border-color);
  position: relative;
  z-index: 2;
}

.step-number {
  width: 3rem;
  height: 3rem;
  background: var(--bg-color);
  border: 2px solid var(--primary);
  color: var(--primary);
  font-size: 1.25rem;
  font-weight: 900;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 1.5rem;
  box-shadow: 0 4px 12px rgba(14, 165, 233, 0.15);
}

.step-card h3 {
  font-size: 1.15rem;
  margin-bottom: 0.75rem;
}

.step-card p {
  font-size: 0.875rem;
  color: var(--text-secondary);
  line-height: 1.5;
}

.step-connector {
  display: none;
  height: 2px;
  background: var(--border-color);
  width: 3rem;
  z-index: 1;
}

@media (min-width: 768px) {
  .step-connector { display: block; }
}

/* Testimonials Carousel */
.testimonials {
  padding: 4.5rem 0;
  overflow: hidden;
}

@media (min-width: 768px) {
  .testimonials { padding: 7.5rem 0; }
}

.testimonials-carousel {
  display: flex;
  gap: 1.25rem;
  transition: transform 0.5s ease-out;
  cursor: grab;
}

.testimonials-carousel:active {
  cursor: grabbing;
}

.testimonial-card {
  min-width: 100%;
  background: var(--card-bg);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  padding: 2rem;
  flex-shrink: 0;
}

@media (min-width: 640px) {
  .testimonial-card { min-width: calc(50% - 0.625rem); }
}

@media (min-width: 1024px) {
  .testimonial-card { min-width: calc(33.333% - 0.85rem); }
}

.testimonial-header {
  display: flex;
  align-items: center;
  gap: 0.85rem;
  margin-bottom: 1rem;
}

.avatar {
  width: 2.5rem;
  height: 2.5rem;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-weight: 700;
  font-size: 0.9rem;
  flex-shrink: 0;
}

.testimonial-header h4 {
  font-size: 1rem;
  margin-bottom: 0.125rem;
}

.testimonial-header span {
  font-size: 0.75rem;
  color: var(--text-muted);
}

.stars {
  color: #fbbf24;
  font-size: 1rem;
  margin-bottom: 1rem;
  letter-spacing: 0.08em;
}

.testimonial-card p {
  font-size: 0.875rem;
  color: var(--text-primary);
  margin-bottom: 1.5rem;
  font-style: italic;
  line-height: 1.5;
}

.result-badge {
  display: inline-flex;
  align-items: center;
  padding: 0.3rem 0.75rem;
  background: rgba(16, 185, 129, 0.08);
  color: #10b981;
  border: 1px solid rgba(16, 185, 129, 0.15);
  font-size: 0.75rem;
  font-weight: 700;
  border-radius: 99px;
}

.carousel-dots {
  display: flex;
  justify-content: center;
  gap: 0.5rem;
  margin-top: 2rem;
}

.dot {
  width: 0.5rem;
  height: 0.5rem;
  border-radius: 50%;
  background: var(--border-color);
  cursor: pointer;
  transition: var(--transition);
}

.dot.active {
  background: var(--primary);
  width: 1.25rem;
  border-radius: 99px;
}

/* Why PitchNest */
.why-section {
  padding: 4.5rem 0;
  background-color: #090d16;
  color: white;
}

@media (min-width: 768px) {
  .why-section { padding: 7.5rem 0; }
}

.why-section .section-title {
  color: white;
}

.why-section .section-desc {
  color: #94a3b8;
}

.why-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.25rem;
}

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

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

.why-card {
  background: #0f1523;
  border: 1px solid rgba(255, 255, 255, 0.05);
  padding: 1.75rem;
  border-radius: var(--radius-lg);
  transition: var(--transition);
}
.why-card:hover {
  transform: translateY(-4px);
  border-color: rgba(14, 165, 233, 0.3);
}

.why-icon {
  width: 2.5rem;
  height: 2.5rem;
  border-radius: 0.6rem;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.25rem;
  margin-bottom: 1.25rem;
}

.why-card h3 {
  font-size: 1.15rem;
  margin-bottom: 0.5rem;
  color: white;
}

.why-card p {
  color: #94a3b8;
  font-size: 0.85rem;
  line-height: 1.5;
}

/* FAQ */
.faq-section {
  padding: 4.5rem 0;
}

@media (min-width: 768px) {
  .faq-section { padding: 7.5rem 0; }
}

.faq-grid {
  max-width: 48rem;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
}

.faq-item {
  background: var(--card-bg);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  padding: 1.5rem;
  transition: var(--transition);
}

.faq-item summary {
  font-weight: 700;
  font-size: 1.05rem;
  cursor: pointer;
  list-style: none;
  display: flex;
  justify-content: space-between;
  align-items: center;
  color: var(--text-primary);
}

.faq-item summary::-webkit-details-marker {
  display: none;
}

.faq-item summary::after {
  content: "+";
  color: var(--primary);
  font-size: 1.4rem;
  line-height: 1;
}

.faq-item[open] summary::after {
  content: "−";
}

.faq-item p {
  margin-top: 1rem;
  color: var(--text-secondary);
  font-size: 0.9rem;
  line-height: 1.5;
}

/* Final CTA */
.final-cta {
  padding: 0 1.5rem 4.5rem;
}

@media (min-width: 768px) {
  .final-cta { padding: 0 1.5rem 7.5rem; }
}

.cta-card {
  max-width: var(--max-width);
  margin: 0 auto;
  background: linear-gradient(135deg, #6366f1, #0ea5e9);
  border-radius: var(--radius-lg);
  padding: 3rem 1.25rem;
  text-align: center;
  color: white;
  position: relative;
  overflow: hidden;
  box-shadow: var(--shadow-lg), 0 20px 40px -10px rgba(14, 165, 233, 0.35);
}

@media (min-width: 768px) {
  .cta-card { padding: 5rem 3rem; }
}

.cta-glow {
  position: absolute;
  top: -50%;
  left: -20%;
  width: 140%;
  height: 200%;
  background: radial-gradient(circle, rgba(255,255,255,0.2) 0%, rgba(255,255,255,0) 70%);
  pointer-events: none;
}

.cta-content {
  position: relative;
  z-index: 10;
  max-width: 40rem;
  margin: 0 auto;
}

.cta-content h2 {
  font-size: 1.85rem;
  margin-bottom: 1rem;
  color: white;
}

@media (min-width: 640px) {
  .cta-content h2 { font-size: 2.5rem; }
}

.cta-content p {
  font-size: 0.95rem;
  opacity: 0.92;
  margin-bottom: 2rem;
  line-height: 1.5;
}

@media (min-width: 640px) {
  .cta-content p { font-size: 1.15rem; }
}

.cta-form {
  margin: 0 auto 1.25rem;
}

.cta-meta {
  font-size: 0.8rem !important;
  opacity: 0.82 !important;
  margin-bottom: 0 !important;
  font-weight: 500;
}

/* Footer */
.footer {
  background: var(--bg-secondary);
  border-top: 1px solid var(--border-color);
  padding: 4rem 0 2rem;
}

.footer-inner {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2.5rem;
  margin-bottom: 3rem;
}

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

.footer-brand .logo {
  margin-bottom: 1rem;
}

.footer-desc {
  color: var(--text-secondary);
  font-size: 0.875rem;
  max-width: 22rem;
  line-height: 1.5;
}

.footer-col h4 {
  font-size: 0.9rem;
  margin-bottom: 1rem;
  color: var(--text-primary);
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.footer-col a {
  display: block;
  color: var(--text-secondary);
  font-size: 0.85rem;
  margin-bottom: 0.75rem;
}

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

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

/* Animations */
.reveal {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.8s cubic-bezier(0.5, 0, 0, 1), transform 0.8s cubic-bezier(0.5, 0, 0, 1);
}

.reveal.active {
  opacity: 1;
  transform: translateY(0);
}

.reveal-delay-1 { transition-delay: 0.1s; }
.reveal-delay-2 { transition-delay: 0.2s; }

/* Toast */
.toast {
  position: fixed;
  bottom: 2rem;
  right: 2rem;
  background: var(--bg-secondary);
  border: 1px solid var(--border-color);
  border-left: 4px solid #10b981;
  padding: 1rem 1.5rem;
  border-radius: 0.75rem;
  box-shadow: var(--shadow-lg);
  display: flex;
  align-items: center;
  gap: 0.75rem;
  transform: translateY(150%);
  opacity: 0;
  transition: var(--transition);
  z-index: 1000;
  font-weight: 600;
  font-size: 0.875rem;
  color: var(--text-primary);
}

.toast.show {
  transform: translateY(0);
  opacity: 1;
}

.toast svg {
  color: #10b981;
  flex-shrink: 0;
}

/* ========================================== */
/*   NEW PREMIUM PLATFORM MODULES STYLE CODES  */
/* ========================================== */

/* 1. AI Investment Committee Widget */
.committee-widget {
  display: grid;
  grid-template-columns: 1fr;
  border-radius: var(--radius-lg);
  border: 1px solid var(--border-color);
  background: var(--card-bg);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  overflow: hidden;
  box-shadow: var(--shadow-lg);
  margin-top: 1.5rem;
  text-align: left;
}
@media (min-width: 768px) {
  .committee-widget {
    grid-template-columns: 290px 1fr;
  }
}
.committee-sidebar {
  background: rgba(0, 0, 0, 0.15);
  border-bottom: 1px solid var(--border-color);
  padding: 1.25rem;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

/* MOBILE VC PILS SCROLLABLE FOLD (REDUCES HEIGHT ON MOBILE Viewports) */
@media (max-width: 767px) {
  .committee-sidebar {
    flex-direction: row;
    overflow-x: auto;
    white-space: nowrap;
    padding: 0.75rem;
    gap: 0.5rem;
    border-bottom: 1px solid var(--border-color);
    scrollbar-width: none;
  }
  .committee-sidebar::-webkit-scrollbar {
    display: none;
  }
  .sidebar-title {
    display: none !important; /* Hide title to save screen space */
  }
  .investor-pill {
    flex: 0 0 auto;
    width: auto !important;
    padding: 0.5rem 0.85rem !important;
    border-radius: 0.5rem !important;
  }
  .investor-avatar {
    width: 1.75rem !important;
    height: 1.75rem !important;
    font-size: 0.75rem !important;
  }
  .investor-name {
    font-size: 0.8rem !important;
  }
  .investor-role {
    font-size: 0.7rem !important;
  }
  .sentiment-dot {
    width: 6px !important;
    height: 6px !important;
  }
}

@media (min-width: 768px) {
  .committee-sidebar {
    border-bottom: none;
    border-right: 1px solid var(--border-color);
  }
}
.sidebar-title {
  font-size: 0.725rem;
  font-weight: 800;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-bottom: 0.5rem;
}
.investor-pill {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.75rem 1rem;
  border-radius: 0.85rem;
  background: transparent;
  border: 1px solid transparent;
  cursor: pointer;
  transition: var(--transition);
  text-align: left;
  width: 100%;
}
.investor-pill:hover, .investor-pill.active {
  background: rgba(14, 165, 233, 0.08);
  border-color: rgba(14, 165, 233, 0.15);
}
.investor-pill.active {
  border-color: var(--primary);
  background: rgba(14, 165, 233, 0.12);
  box-shadow: 0 0 12px rgba(14, 165, 233, 0.1);
}
.investor-avatar {
  width: 2.25rem;
  height: 2.25rem;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 800;
  color: white;
  font-size: 0.875rem;
  flex-shrink: 0;
}
.investor-info {
  flex: 1;
  min-width: 0;
}
.investor-name {
  font-size: 0.875rem;
  font-weight: 700;
  color: var(--text-primary);
  display: block;
}
.investor-role {
  font-size: 0.75rem;
  color: var(--text-muted);
  display: block;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.sentiment-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  display: inline-block;
  margin-right: 0.25rem;
}
.sentiment-invest { background: #10b981; }
.sentiment-maybe { background: #f59e0b; }
.sentiment-pass { background: #ef4444; }

.committee-chat {
  display: flex;
  flex-direction: column;
  height: 380px; /* Slimmed down height */
}
.chat-header {
  padding: 1rem 1.25rem;
  border-bottom: 1px solid var(--border-color);
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: rgba(0, 0, 0, 0.08);
}
.chat-header-title {
  font-size: 0.875rem;
  font-weight: 800;
  color: var(--text-primary);
}
.consensus-badge {
  font-size: 0.75rem;
  font-weight: 800;
  padding: 0.3rem 0.75rem;
  border-radius: 99px;
  background: rgba(245, 158, 11, 0.08);
  color: #f59e0b;
  border: 1px solid rgba(245, 158, 11, 0.2);
  display: flex;
  align-items: center;
  gap: 0.375rem;
}
.consensus-badge.invest {
  background: rgba(16, 185, 129, 0.08);
  color: #10b981;
  border-color: rgba(16, 185, 129, 0.2);
}
.consensus-badge.pass {
  background: rgba(239, 68, 68, 0.08);
  color: #ef4444;
  border-color: rgba(239, 68, 68, 0.2);
}
.chat-messages {
  flex: 1;
  padding: 1.25rem;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  gap: 1rem;
  background: rgba(0, 0, 0, 0.03);
}
.chat-bubble {
  display: flex;
  gap: 0.75rem;
  max-width: 90%;
  align-self: flex-start;
}
.chat-bubble-content {
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--border-color);
  padding: 0.85rem 1rem;
  border-radius: 0 1rem 1rem 1rem;
  font-size: 0.85rem;
  color: var(--text-primary);
  line-height: 1.4;
}
.chat-bubble-sender {
  font-size: 0.725rem;
  font-weight: 800;
  color: var(--text-muted);
  margin-bottom: 0.25rem;
  display: block;
}

/* 2. Circular / Dashboard Score Widget */
.score-dashboard {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.75rem;
  border-radius: var(--radius-lg);
  border: 1px solid var(--border-color);
  background: var(--card-bg);
  padding: 2rem;
  box-shadow: var(--shadow-lg);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  align-items: center;
  text-align: left;
}
@media (min-width: 768px) {
  .score-dashboard {
    grid-template-columns: auto 1fr;
  }
}
.radial-score-container {
  position: relative;
  width: 150px; /* Scaled down slightly */
  height: 150px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: center;
}
.radial-score-svg {
  transform: rotate(-90deg);
  width: 100%;
  height: 100%;
}
.radial-score-bg {
  fill: none;
  stroke: rgba(255, 255, 255, 0.05);
  stroke-width: 10px;
}
.radial-score-value-path {
  fill: none;
  stroke: url(#score-grad);
  stroke-width: 10px;
  stroke-dasharray: 440;
  stroke-dashoffset: 440;
  stroke-linecap: round;
  transition: stroke-dashoffset 2s cubic-bezier(0.4, 0, 0.2, 1);
}
.radial-score-text {
  position: absolute;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
}
.radial-score-num {
  font-size: 3rem;
  font-weight: 900;
  color: var(--text-primary);
  line-height: 1;
}
.radial-score-label {
  font-size: 0.7rem;
  font-weight: 800;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-top: 0.25rem;
}

.sub-scores-list {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}
.sub-score-item {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
}
.sub-score-header {
  display: flex;
  justify-content: space-between;
  font-size: 0.825rem;
  font-weight: 700;
}
.sub-score-title { color: var(--text-primary); }
.sub-score-val { color: var(--primary); font-weight: 800; }
.sub-score-bar-bg {
  height: 8px;
  background: rgba(255, 255, 255, 0.04);
  border-radius: 99px;
  overflow: hidden;
}
.sub-score-bar-fill {
  height: 100%;
  background: linear-gradient(90deg, var(--primary), #6366f1);
  border-radius: 99px;
  width: 0;
  transition: width 1.5s cubic-bezier(0.4, 0, 0.2, 1);
}

/* 3. Startup Health Check Analyzer with Tabbed mobile FOLD */
.health-widget {
  background: var(--card-bg);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  padding: 2rem;
  box-shadow: var(--shadow-lg);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  text-align: left;
}
.health-input-group {
  display: flex;
  gap: 0.75rem;
  margin-bottom: 1.5rem;
  flex-direction: column;
}
@media (min-width: 480px) {
  .health-input-group { flex-direction: row; }
}
.health-select {
  flex: 1;
  padding: 0.75rem 1rem;
  background: rgba(0, 0, 0, 0.25);
  border: 1px solid var(--border-color);
  border-radius: 0.75rem;
  color: var(--text-primary);
  font-size: 0.875rem;
  outline: none;
  cursor: pointer;
  transition: var(--transition);
}
.health-select:focus {
  border-color: var(--primary);
}
.health-select option {
  background: #0f172a;
  color: white;
}
.health-btn {
  padding: 0.75rem 1.5rem;
}

/* FOLDING: Health mobile tabs selectors */
.health-mobile-tabs {
  display: none;
  gap: 0.35rem;
  margin-bottom: 1.25rem;
  overflow-x: auto;
  scrollbar-width: none;
  padding-bottom: 0.25rem;
}
.health-mobile-tabs::-webkit-scrollbar {
  display: none;
}
.health-tab-btn {
  flex: 1 0 auto;
  padding: 0.5rem 0.85rem;
  background: rgba(0, 0, 0, 0.15);
  border: 1px solid var(--border-color);
  border-radius: 0.5rem;
  color: var(--text-secondary);
  font-size: 0.75rem;
  font-weight: 700;
  cursor: pointer;
  transition: var(--transition);
}
.health-tab-btn.active {
  background: var(--primary);
  border-color: var(--primary);
  color: white !important;
}

.health-results-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.25rem;
  margin-top: 1.5rem;
  border-top: 1px solid var(--border-color);
  padding-top: 1.5rem;
}

@media (max-width: 767px) {
  .health-mobile-tabs {
    display: flex;
  }
  .health-results-grid {
    grid-template-columns: 1fr; /* Stack tightly on mobile */
  }
  .health-col {
    display: none; /* FOLD: Hide all columns by default on mobile viewport */
  }
  .health-col.active {
    display: block; /* Show only active selected tab */
  }
}

@media (min-width: 768px) {
  .health-results-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .health-col {
    display: block !important; /* Always show all on desktop */
  }
}

.health-col {
  background: rgba(0, 0, 0, 0.12);
  border: 1px solid var(--border-color);
  border-radius: 0.85rem;
  padding: 1.25rem;
  transition: var(--transition);
}
.health-col:hover {
  transform: translateY(-2px);
  border-color: rgba(255, 255, 255, 0.15);
}
.health-col h4 {
  font-size: 0.825rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-bottom: 0.75rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}
.health-col-strengths h4 { color: #10b981; }
.health-col-weaknesses h4 { color: #f59e0b; }
.health-col-risks h4 { color: #ef4444; }
.health-col-concerns h4 { color: #8b5cf6; }

.health-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}
.health-list li {
  font-size: 0.85rem;
  color: var(--text-secondary);
  position: relative;
  padding-left: 1.25rem;
  line-height: 1.4;
}
.health-list li::before {
  position: absolute;
  left: 0;
  top: 0.15rem;
  font-size: 0.85rem;
  font-weight: bold;
}
.health-col-strengths .health-list li::before { content: "✓"; color: #10b981; }
.health-col-weaknesses .health-list li::before { content: "⚠"; color: #f59e0b; }
.health-col-risks .health-list li::before { content: "✗"; color: #ef4444; }
.health-col-concerns .health-list li::before { content: "⚡"; color: #8b5cf6; }

/* 4. Investor Readiness Report Mockup */
.report-card {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2rem;
  background: linear-gradient(135deg, rgba(30, 41, 59, 0.3), rgba(15, 23, 42, 0.3));
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  padding: 2.25rem;
  margin-top: 1.5rem;
  box-shadow: var(--shadow-lg);
  align-items: center;
  text-align: left;
}
@media (min-width: 768px) {
  .report-card { grid-template-columns: 1.1fr 1fr; }
}
.report-preview-panel {
  background: rgba(0, 0, 0, 0.2);
  border: 1px solid var(--border-color);
  border-radius: 0.85rem;
  padding: 1.5rem;
}
.report-badge-list {
  display: flex;
  flex-direction: column;
  gap: 0.65rem;
}
.report-red-flag {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.65rem 0.85rem;
  background: rgba(239, 68, 68, 0.05);
  border: 1px solid rgba(239, 68, 68, 0.15);
  border-radius: 0.5rem;
  font-size: 0.825rem;
  color: #fca5a5;
  font-weight: 500;
}
.report-fix-suggestion {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.65rem 0.85rem;
  background: rgba(16, 185, 129, 0.05);
  border: 1px solid rgba(16, 185, 129, 0.15);
  border-radius: 0.5rem;
  font-size: 0.825rem;
  color: #a7f3d0;
  font-weight: 500;
}

/* 5. Benchmarking & Leaderboard */
.benchmark-section {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.5rem;
  margin-top: 2rem;
  text-align: left;
}
@media (min-width: 768px) {
  .benchmark-section { grid-template-columns: 1.25fr 1fr; }
}
.benchmark-card {
  background: var(--card-bg);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  padding: 2rem;
  box-shadow: var(--shadow-lg);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
}
.ranking-progress-track {
  height: 12px;
  background: rgba(255, 255, 255, 0.05);
  border-radius: 99px;
  position: relative;
  margin: 1.5rem 0;
}
.ranking-progress-bar {
  height: 100%;
  width: 92%;
  background: linear-gradient(90deg, #6366f1, #0ea5e9);
  border-radius: 99px;
}
.ranking-progress-marker {
  position: absolute;
  top: -6px;
  right: 8%;
  width: 24px;
  height: 24px;
  background: var(--primary);
  border: 3px solid var(--bg-color);
  border-radius: 50%;
  box-shadow: 0 0 12px rgba(14, 165, 233, 0.6);
  transition: var(--transition);
}
.ranking-badge-wrapper {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: 1rem;
}

.leaderboard-table {
  width: 100%;
  border-collapse: collapse;
}
.leaderboard-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.75rem 0;
  border-bottom: 1px solid var(--border-color);
}
.leaderboard-row:last-child {
  border-bottom: none;
}
.leaderboard-founder {
  display: flex;
  align-items: center;
  gap: 0.65rem;
}
.leaderboard-avatar-circle {
  width: 2rem;
  height: 2rem;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: bold;
  color: white;
  font-size: 0.8rem;
}
.leaderboard-founder-name {
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--text-primary);
}
.leaderboard-founder-company {
  font-size: 0.725rem;
  color: var(--text-muted);
  display: block;
}
.leaderboard-rank {
  width: 1.75rem;
  font-weight: 900;
  color: var(--text-muted);
  font-size: 0.95rem;
  text-align: center;
}
.leaderboard-rank-1 { color: #fbbf24; }
.leaderboard-rank-2 { color: #cbd5e1; }
.leaderboard-rank-3 { color: #d97706; }
.leaderboard-score {
  font-size: 0.825rem;
  font-weight: 800;
  color: var(--primary);
  background: rgba(14, 165, 233, 0.08);
  border: 1px solid rgba(14, 165, 233, 0.15);
  padding: 0.2rem 0.4rem;
  border-radius: 0.4rem;
}

/* 6. Startup Discovery Layer Card */
.discovery-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.25rem;
  margin-top: 2rem;
  text-align: left;
}
@media (min-width: 640px) {
  .discovery-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (min-width: 1024px) {
  .discovery-grid { grid-template-columns: repeat(3, 1fr); }
}
.discovery-card {
  background: var(--card-bg);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  transition: var(--transition);
}
.discovery-card:hover {
  transform: translateY(-4px);
  border-color: var(--primary);
  box-shadow: var(--shadow-lg);
}
.discovery-card-header {
  padding: 1.25rem;
  border-bottom: 1px solid var(--border-color);
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.discovery-card-tag {
  font-size: 0.65rem;
  font-weight: 800;
  text-transform: uppercase;
  color: var(--primary);
  background: rgba(14, 165, 233, 0.08);
  padding: 0.2rem 0.45rem;
  border-radius: 0.25rem;
}
.discovery-score-badge {
  font-size: 0.75rem;
  font-weight: 800;
  color: #10b981;
  background: rgba(16, 185, 129, 0.08);
  border: 1px solid rgba(16, 185, 129, 0.2);
  padding: 0.2rem 0.55rem;
  border-radius: 0.4rem;
}
.discovery-card-body {
  padding: 1.25rem;
}
.discovery-card-body h4 {
  font-size: 1.1rem;
  margin-bottom: 0.35rem;
  font-weight: 800;
}
.discovery-card-body p {
  font-size: 0.825rem;
  color: var(--text-secondary);
  line-height: 1.45;
  margin-bottom: 1rem;
}
.discovery-meta-row {
  display: flex;
  justify-content: space-between;
  font-size: 0.725rem;
  font-weight: 600;
  color: var(--text-muted);
}
.discovery-meta-label {
  display: block;
}
.discovery-meta-val {
  color: var(--text-primary);
  font-weight: 700;
}

/* 7. Comparison Cards (Before vs After) with mobile Switch FOLD */
.compare-mobile-tabs {
  display: none;
  background: rgba(0, 0, 0, 0.15);
  border: 1px solid var(--border-color);
  border-radius: 0.75rem;
  padding: 0.25rem;
  margin-bottom: 1.25rem;
  max-width: 20rem;
  margin-inline: auto;
}
.compare-tab-btn {
  flex: 1;
  padding: 0.5rem;
  border: none;
  background: transparent;
  color: var(--text-secondary);
  font-size: 0.8rem;
  font-weight: 700;
  border-radius: 0.5rem;
  cursor: pointer;
  transition: var(--transition);
  text-align: center;
}
.compare-tab-btn.active {
  background: var(--primary);
  color: white !important;
  box-shadow: var(--shadow-sm);
}

.compare-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.5rem;
  margin-top: 2.5rem;
  text-align: left;
}

@media (max-width: 767px) {
  .compare-mobile-tabs {
    display: flex; /* FOLDING: Tab selector displays on mobile viewports */
  }
  .compare-card {
    display: none; /* Hide card by default on mobile */
  }
  .compare-card.active {
    display: block; /* Show only active card */
  }
}

@media (min-width: 768px) {
  .compare-grid { grid-template-columns: 1fr 1fr; }
  .compare-card {
    display: block !important; /* Always show all on desktop */
  }
}

.compare-card {
  border-radius: var(--radius-lg);
  padding: 2.25rem;
  position: relative;
  overflow: hidden;
  border: 1px solid var(--border-color);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}
.compare-before {
  background: rgba(239, 68, 68, 0.03);
  border-color: rgba(239, 68, 68, 0.12);
}
.compare-after {
  background: rgba(16, 185, 129, 0.03);
  border-color: rgba(16, 185, 129, 0.12);
  box-shadow: 0 10px 30px rgba(16, 185, 129, 0.05);
}
.compare-title {
  font-size: 1.35rem;
  font-weight: 900;
  margin-bottom: 1.5rem;
  display: flex;
  align-items: center;
  gap: 0.65rem;
}
.compare-before .compare-title { color: #ef4444; }
.compare-after .compare-title { color: #10b981; }

.compare-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 1rem;
}
.compare-list li {
  font-size: 0.875rem;
  color: var(--text-secondary);
  position: relative;
  padding-left: 1.75rem;
  line-height: 1.4;
}
.compare-list li::before {
  position: absolute;
  left: 0;
  top: 0.085rem;
  width: 1.25rem;
  height: 1.25rem;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.7rem;
  font-weight: 900;
}
.compare-before .compare-list li::before {
  content: "✕";
  background: rgba(239, 68, 68, 0.08);
  color: #ef4444;
}
.compare-after .compare-list li::before {
  content: "✓";
  background: rgba(16, 185, 129, 0.08);
  color: #10b981;
}

/* Responsive Hero Visual inner content wrapper */
.hero-visual-inner {
  padding: 1.25rem;
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

@media (min-width: 768px) {
  .hero-visual-inner {
    padding: 2.25rem;
    gap: 2.5rem;
  }
}

/* Testimonials Carousel responsive overflow wrapper */
.testimonials-carousel-wrapper {
  width: 100%;
  overflow: hidden;
  border-radius: var(--radius-lg);
}

/* Card Mobile Padding overrides */
@media (max-width: 767px) {
  .testimonial-card,
  .feature-card,
  .step-card,
  .why-card,
  .faq-item,
  .report-card,
  .compare-card,
  .score-dashboard {
    padding: 1.25rem !important;
  }
  
  .radial-score-container {
    width: 130px !important;
    height: 130px !important;
  }
  
  .radial-score-num {
    font-size: 2.5rem !important;
  }
}

/* ========================================== */
/*   PREMIUM LIGHT THEME WIDGET OVERRIDES     */
/* ========================================== */
.light-theme .committee-widget {
  background: #ffffff;
  border-color: #e2e8f0;
  box-shadow: 0 10px 30px -10px rgba(0, 0, 0, 0.05);
}

.light-theme .committee-sidebar {
  background: #f8fafc;
  border-color: #e2e8f0;
}

.light-theme .investor-pill:hover,
.light-theme .investor-pill.active {
  background: rgba(14, 165, 233, 0.06);
  border-color: rgba(14, 165, 233, 0.15);
}

.light-theme .investor-pill.active {
  background: rgba(14, 165, 233, 0.1);
  border-color: var(--primary);
  box-shadow: 0 0 12px rgba(14, 165, 233, 0.05);
}

.light-theme .chat-header {
  background: #f1f5f9;
  border-color: #e2e8f0;
}

.light-theme .chat-header-title {
  color: #0f172a;
}

.light-theme .chat-messages {
  background: #f8fafc;
}

.light-theme .chat-bubble-content {
  background: #ffffff;
  border-color: #e2e8f0;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.02);
  color: #0f172a;
}

.light-theme .chat-bubble.ai-assistant .chat-bubble-content {
  background: rgba(14, 165, 233, 0.04) !important;
  border-color: rgba(14, 165, 233, 0.12) !important;
}

.light-theme .chat-bubble-sender {
  color: #64748b;
}

.light-theme .score-dashboard {
  background: #ffffff;
  border-color: #e2e8f0;
  box-shadow: 0 10px 30px -10px rgba(0, 0, 0, 0.05);
}

.light-theme .radial-score-bg {
  stroke: rgba(0, 0, 0, 0.05);
}

.light-theme .sub-score-bar-bg {
  background: rgba(0, 0, 0, 0.05);
}

.light-theme .health-widget {
  background: #ffffff;
  border-color: #e2e8f0;
  box-shadow: 0 10px 30px -10px rgba(0, 0, 0, 0.05);
}

.light-theme .health-select {
  background: #ffffff;
  border-color: #cbd5e1;
  color: #0f172a;
}

.light-theme .health-select option {
  background: #ffffff;
  color: #0f172a;
}

.light-theme .health-tab-btn {
  background: #f1f5f9;
  border-color: #e2e8f0;
  color: #64748b;
}

.light-theme .health-tab-btn.active {
  background: var(--primary);
  border-color: var(--primary);
  color: #ffffff !important;
}

.light-theme .health-col {
  background: #f8fafc;
  border-color: #e2e8f0;
}

.light-theme .health-col:hover {
  border-color: #cbd5e1;
}

.light-theme .report-card {
  background: linear-gradient(135deg, #f8fafc, #f1f5f9);
  border-color: #e2e8f0;
  box-shadow: 0 10px 30px -10px rgba(0, 0, 0, 0.05);
}

.light-theme .report-preview-panel {
  background: #ffffff;
  border-color: #e2e8f0;
}

.light-theme .report-red-flag {
  background: rgba(239, 68, 68, 0.06);
  border-color: rgba(239, 68, 68, 0.15);
  color: #b91c1c;
}

.light-theme .report-fix-suggestion {
  background: rgba(16, 185, 129, 0.06);
  border-color: rgba(16, 185, 129, 0.15);
  color: #047857;
}

.light-theme .benchmark-card {
  background: #ffffff;
  border-color: #e2e8f0;
  box-shadow: 0 10px 30px -10px rgba(0, 0, 0, 0.05);
}

.light-theme .ranking-progress-track {
  background: rgba(0, 0, 0, 0.05);
}

.light-theme .leaderboard-row {
  border-color: #f1f5f9;
}

.light-theme .discovery-card {
  background: #ffffff;
  border-color: #e2e8f0;
  box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.02);
}

.light-theme .discovery-card-header,
.light-theme .discovery-card-body {
  border-color: #f1f5f9;
}

.light-theme .compare-card {
  border-color: #e2e8f0;
  box-shadow: 0 10px 30px -10px rgba(0, 0, 0, 0.03);
}

.light-theme .compare-before {
  background: rgba(239, 68, 68, 0.015);
  border-color: rgba(239, 68, 68, 0.08);
}

.light-theme .compare-after {
  background: rgba(16, 185, 129, 0.015);
  border-color: rgba(16, 185, 129, 0.08);
}

/* ========================================== */
/*   RESPONSIVE HAMBURGER & NAVIGATION MENU   */
/* ========================================== */

/* Hamburger Toggle Button */
.hamburger-btn {
  display: none;
  flex-direction: column;
  justify-content: space-between;
  width: 1.5rem;
  height: 1.15rem;
  background: transparent;
  border: none;
  cursor: pointer;
  z-index: 101;
  padding: 0;
}

.hamburger-line {
  width: 100%;
  height: 2px;
  background-color: var(--text-primary);
  border-radius: 99px;
  transition: var(--transition);
  transform-origin: left center;
}

/* Hamburger active micro-animations (cross icon transition) */
.hamburger-btn.active .hamburger-line:nth-child(1) {
  transform: rotate(45deg) translate(2px, -1px);
}

.hamburger-btn.active .hamburger-line:nth-child(2) {
  opacity: 0;
  transform: scale(0);
}

.hamburger-btn.active .hamburger-line:nth-child(3) {
  transform: rotate(-45deg) translate(2px, 1px);
}

/* Mobile Menu Floating Card Drawer (Premium, Opaque & Compact) */
.mobile-menu {
  position: absolute;
  top: 4.5rem; /* Directly below the navbar */
  right: 1.5rem;
  left: auto;
  width: calc(100% - 3rem);
  max-width: 290px;
  background: var(--bg-secondary); /* Solid opaque card background matching secondary theme color */
  border: 1px solid var(--border-color);
  border-radius: var(--radius);
  box-shadow: var(--shadow-lg);
  max-height: 0;
  overflow: hidden;
  opacity: 0;
  transition: max-height 0.4s cubic-bezier(0.4, 0, 0.2, 1), opacity 0.3s ease;
  z-index: 99;
}

.mobile-menu.active {
  max-height: 25rem; /* Tight, compact height container */
  opacity: 1;
}

.mobile-menu-inner {
  display: flex;
  flex-direction: column;
  align-items: flex-end; /* Right-align all internal items */
  padding: 1.25rem 1.5rem;
  gap: 0.5rem; /* Drastically reduced gap spacing for a cleaner, tighter layout */
}

.mobile-nav-link {
  font-size: 0.95rem; /* Sleek modern typography scale */
  font-weight: 700;
  color: var(--text-primary);
  padding: 0.55rem 0;
  width: 100%;
  text-align: right; /* Right align link text */
  border-bottom: 1px solid rgba(255, 255, 255, 0.03);
  transition: var(--transition);
}

.light-theme .mobile-nav-link {
  border-bottom-color: rgba(0, 0, 0, 0.05);
}

.mobile-nav-link:hover {
  color: var(--primary);
  padding-right: 0.35rem; /* Sleek shift from the right on hover */
  padding-left: 0;
}

.mobile-nav-btn {
  margin-top: 0.75rem;
  width: 100%;
  text-align: center;
}

/* Media query overrides */
@media (max-width: 767px) {
  .hamburger-btn {
    display: flex;
  }
  .desktop-only-btn {
    display: none !important;
  }
}
