:root {
  /* Colors */
  --bg-dark: #0F172A;
  --bg-card: #1E293B;
  --text-primary: #F8FAFC;
  --text-secondary: #94A3B8;
  --primary-gradient: linear-gradient(135deg, #818CF8, #2DD4BF);
  --primary-glow: rgba(129, 140, 248, 0.5);

  /* Spacing */
  --spacing-xs: 0.5rem;
  --spacing-sm: 1rem;
  --spacing-md: 2rem;
  --spacing-lg: 4rem;
  --spacing-xl: 8rem;

  /* Typography */
  --font-sans: 'Inter', system-ui, -apple-system, sans-serif;

  /* Effects */
  --radius-sm: 8px;
  --radius-md: 16px;
  --shadow-glow: 0 0 20px var(--primary-glow);
  --glass-bg: rgba(30, 41, 59, 0.7);
  --glass-border: 1px solid rgba(255, 255, 255, 0.1);
}

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

body {
  font-family: var(--font-sans);
  background-color: var(--bg-dark);
  color: var(--text-primary);
  line-height: 1.6;
  overflow-x: hidden;
}

a {
  text-decoration: none;
  color: inherit;
  transition: opacity 0.2s;
}

ul {
  list-style: none;
}

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

/* Typography Utility */
h1,
h2,
h3 {
  line-height: 1.2;
  font-weight: 700;
}

.text-gradient {
  background: var(--primary-gradient);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 var(--spacing-md);
}

/* Navbar */
.navbar {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  padding: 1.5rem 0;
  z-index: 1000;
  background: rgba(15, 23, 42, 0.8);
  backdrop-filter: blur(12px);
  border-bottom: var(--glass-border);
}

.nav-container {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.logo {
  font-size: 1.5rem;
  font-weight: 800;
  letter-spacing: -0.02em;
}

.nav-links {
  display: flex;
  gap: 2rem;
  align-items: center;
}

.nav-link {
  color: var(--text-secondary);
  font-weight: 500;
}

.nav-link:hover {
  color: var(--text-primary);
}

/* Hero Section */
.hero {
  padding: 180px 0 100px;
  /* Account for fixed header */
  text-align: center;
  position: relative;
  overflow: hidden;
}

/* Background blurry glowing orbs for premium feel */
.hero::before {
  content: '';
  position: absolute;
  top: -20%;
  left: 50%;
  transform: translateX(-50%);
  width: 600px;
  height: 600px;
  background: var(--primary-gradient);
  filter: blur(120px);
  opacity: 0.2;
  border-radius: 50%;
  z-index: -1;
}

.hero-title {
  font-size: 4rem;
  margin-bottom: 1.5rem;
  letter-spacing: -0.03em;
}

.hero-subtitle {
  font-size: 1.25rem;
  color: var(--text-secondary);
  max-width: 600px;
  margin: 0 auto 3rem;
}

.hero-buttons {
  display: flex;
  justify-content: center;
  gap: 1.5rem;
  margin-bottom: 4rem;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.75rem 1.5rem;
  border-radius: var(--radius-sm);
  font-weight: 600;
  transition: all 0.3s ease;
}

.btn-primary {
  background: var(--primary-gradient);
  color: #fff;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.25);
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-glow);
}

.btn-secondary {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
  color: var(--text-primary);
}

.btn-secondary:hover {
  background: rgba(255, 255, 255, 0.1);
}

.hero-image-container {
  margin: 0 auto;
  max-width: 1000px;
  border-radius: var(--radius-md);
  padding: 1rem;
  background: var(--glass-bg);
  border: var(--glass-border);
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3);
}

.hero-img {
  width: 100%;
  height: auto;
  border-radius: 8px;
  display: block;
}

/* Features */
.features {
  padding: 100px 0;
}

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

.section-title {
  font-size: 2.5rem;
  margin-bottom: 1rem;
}

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

@media (max-width: 1024px) {
  .feature-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

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

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

.feature-card:hover {
  border-color: rgba(129, 140, 248, 0.3);
  transform: translateY(-5px);
}

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

.feature-title {
  font-size: 1.25rem;
  margin-bottom: 0.5rem;
  color: var(--text-primary);
}

.feature-desc {
  color: var(--text-secondary);
}

/* Download */
.download {
  padding: 100px 0;
  text-align: center;
  background: linear-gradient(180deg, var(--bg-dark) 0%, #1e293b 100%);
}

.download-note {
  margin-top: 1rem;
  font-size: 0.9rem;
  color: var(--text-secondary);
}

/* FAQ */
.faq {
  padding: 100px 0;
  max-width: 800px;
  margin: 0 auto;
}

.faq-item {
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.faq-question {
  width: 100%;
  text-align: left;
  background: none;
  border: none;
  color: var(--text-primary);
  font-size: 1.1rem;
  font-weight: 500;
  padding: 1.5rem 0;
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.3s ease;
  color: var(--text-secondary);
}

.faq-answer p {
  padding-bottom: 1.5rem;
}

.faq-item.active .faq-answer {
  max-height: 200px;
  /* Approximate max height */
}

.faq-item.active .faq-question {
  color: #818CF8;
  /* Highlight active question */
}

/* Footer */
.footer {
  padding: 4rem 0 2rem;
  border-top: 1px solid rgba(255, 255, 255, 0.05);
  text-align: center;
  color: var(--text-secondary);
}

.footer-content {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  align-items: center;
}

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

/* Mobile Responsive */
@media (max-width: 768px) {
  .hero-title {
    font-size: 2.5rem;
  }

  .hero-buttons {
    flex-direction: column;
  }

  .nav-links {
    display: none;
    /* simple hiding for now, or implement hamburger */
  }
}

/* Reflection Section */
.reflection-section {
  padding: 100px 0;
  background: linear-gradient(180deg, var(--bg-dark) 0%, #0f172a 100%);
}

.reflection-card {
  background: var(--bg-card);
  /* Dark card background */
  color: var(--text-primary);
  padding: 3rem;
  border-radius: var(--radius-md);
  font-family: 'Lora', serif;
  max-width: 800px;
  margin: 0 auto;
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.5);
  position: relative;
  border: 1px solid rgba(255, 255, 255, 0.05);
  /* Subtle border for dark mode */
}

/* Mode Toggle Switch */
.reflection-controls {
  display: flex;
  justify-content: center;
  margin-bottom: 2rem;
  gap: 1rem;
}

.mode-toggle-label {
  cursor: pointer;
  padding: 0.5rem 1rem;
  border-radius: 20px;
  background: rgba(255, 255, 255, 0.05);
  color: var(--text-secondary);
  transition: all 0.3s;
  font-weight: 600;
  border: 1px solid transparent;
}

.mode-toggle-label:hover {
  background: rgba(255, 255, 255, 0.1);
}

input[name="reflection-mode"] {
  display: none;
}

input[id="mode-roast"]:checked~.controls-wrapper label[for="mode-roast"] {
  background: linear-gradient(135deg, #BE185D, #F43F5E);
  color: #fff;
  box-shadow: 0 0 15px rgba(244, 63, 94, 0.4);
}

input[id="mode-calm"]:checked~.controls-wrapper label[for="mode-calm"] {
  background: linear-gradient(135deg, #059669, #34D399);
  color: #fff;
  box-shadow: 0 0 15px rgba(52, 211, 153, 0.4);
}

input[id="mode-scientist"]:checked~.controls-wrapper label[for="mode-scientist"] {
  background: linear-gradient(135deg, #0284C7, #38BDF8);
  color: #fff;
  box-shadow: 0 0 15px rgba(56, 189, 248, 0.4);
}

input[id="mode-nobs"]:checked~.controls-wrapper label[for="mode-nobs"] {
  background: linear-gradient(135deg, #DC2626, #F87171);
  color: #fff;
  box-shadow: 0 0 15px rgba(248, 113, 113, 0.4);
}

input[id="mode-ceo"]:checked~.controls-wrapper label[for="mode-ceo"] {
  background: linear-gradient(135deg, #7C3AED, #A78BFA);
  color: #fff;
  box-shadow: 0 0 15px rgba(167, 139, 250, 0.4);
}

.controls-wrapper {
  display: flex;
  gap: 0.5rem;
  background: rgba(0, 0, 0, 0.2);
  padding: 0.5rem;
  border-radius: 30px;
  flex-wrap: wrap;
  justify-content: center;
}

/* Content Transitions */
.reflection-content {
  transition: opacity 0.3s ease-in-out;
}

.reflection-header {
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  padding-bottom: 1rem;
  margin-bottom: 2rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.reflection-title {
  font-family: var(--font-sans);
  font-weight: 800;
  font-size: 1.5rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  background: var(--primary-gradient);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.reflection-date {
  color: var(--text-secondary);
  font-style: italic;
}

.reflection-body h4 {
  font-family: var(--font-sans);
  margin: 1.5rem 0 0.5rem;
  font-weight: 700;
  color: #F472B6;
  /* Softer pink for dark mode */
}

.reflection-body p {
  margin-bottom: 1rem;
  line-height: 1.8;
  font-size: 1.1rem;
  color: #e2e8f0;
  /* Use off-white for better readability on dark */
}

/* Reviews Section */
.reviews {
  padding: 100px 0;
  background: var(--bg-dark);
}

.review-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 2rem;
}

.review-card {
  background: var(--bg-card);
  padding: 2rem;
  border-radius: var(--radius-md);
  border: 1px solid rgba(255, 255, 255, 0.05);
}

.stars {
  color: #FBBF24;
  margin-bottom: 1rem;
}

.review-text {
  font-size: 1.05rem;
  font-style: italic;
  margin-bottom: 1.5rem;
  color: var(--text-primary);
}

.review-author {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.author-avatar {
  width: 48px;
  height: 48px;
  background: var(--primary-gradient);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  color: #fff;
}

.author-info h5 {
  font-size: 1rem;
  margin-bottom: 0.1rem;
}

.author-info span {
  font-size: 0.85rem;
  color: var(--text-secondary);
}

/* Pricing in Download */
.pricing-options {
  display: flex;
  justify-content: center;
  gap: 2rem;
  margin-top: 3rem;
  margin-bottom: 2rem;
  flex-wrap: wrap;
}

.pricing-card {
  background: rgba(255, 255, 255, 0.03);
  padding: 2rem;
  border-radius: var(--radius-md);
  border: 1px solid rgba(255, 255, 255, 0.1);
  width: 300px;
  text-align: left;
}

.pricing-card.pro {
  border-color: #818CF8;
  background: rgba(129, 140, 248, 0.05);
  position: relative;
  overflow: visible;
  padding-top: 2.5rem;
}

.price {
  font-size: 2.5rem;
  font-weight: 800;
  margin: 1rem 0;
  color: var(--text-primary);
}

.price span {
  font-size: 1rem;
  color: var(--text-secondary);
  font-weight: 400;
}

.feature-list li {
  margin-bottom: 0.5rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  color: var(--text-secondary);
  font-size: 0.95rem;
}

.check {
  color: #2DD4BF;
}

/* Download Button with Windows Logo */
.btn-download {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
}

.windows-logo {
  flex-shrink: 0;
}

/* Enhanced Reviews */
.review-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 1rem;
}

.review-date {
  font-size: 0.8rem;
  color: var(--text-secondary);
}

.author-avatar-img {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  object-fit: cover;
}

.review-cta {
  text-align: center;
  margin-top: 3rem;
}

/* Footer Legal Links */
.footer-legal {
  margin-top: 0.5rem;
  font-size: 0.85rem;
}

.footer-legal a {
  color: var(--text-secondary);
  transition: color 0.2s;
}

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

/* Modal Styles */
.modal {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.8);
  backdrop-filter: blur(4px);
  z-index: 2000;
  align-items: center;
  justify-content: center;
}

.modal.active {
  display: flex;
}

.modal-content {
  background: var(--bg-card);
  padding: 2.5rem;
  border-radius: var(--radius-md);
  max-width: 500px;
  width: 90%;
  position: relative;
  border: 1px solid rgba(255, 255, 255, 0.1);
  animation: modalSlideIn 0.3s ease;
}

@keyframes modalSlideIn {
  from {
    opacity: 0;
    transform: translateY(-20px);
  }

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

.modal-close {
  position: absolute;
  top: 1rem;
  right: 1rem;
  background: none;
  border: none;
  color: var(--text-secondary);
  font-size: 1.5rem;
  cursor: pointer;
  transition: color 0.2s;
}

.modal-close:hover {
  color: var(--text-primary);
}

.modal-content h3 {
  margin-bottom: 1.5rem;
  font-size: 1.5rem;
}

/* Form Styles */
.form-group {
  margin-bottom: 1.25rem;
}

.form-group label {
  display: block;
  margin-bottom: 0.5rem;
  font-weight: 500;
  color: var(--text-secondary);
}

.form-group input,
.form-group textarea {
  width: 100%;
  padding: 0.75rem 1rem;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: var(--radius-sm);
  color: var(--text-primary);
  font-family: var(--font-sans);
  font-size: 1rem;
  transition: border-color 0.2s;
}

.form-group input:focus,
.form-group textarea:focus {
  outline: none;
  border-color: #818CF8;
}

.form-group textarea {
  resize: vertical;
  min-height: 100px;
}

/* Star Rating Input */
.star-rating {
  display: flex;
  flex-direction: row-reverse;
  justify-content: flex-end;
  gap: 0.25rem;
}

.star-rating input {
  display: none;
}

.star-rating label {
  font-size: 1.5rem;
  color: rgba(255, 255, 255, 0.2);
  cursor: pointer;
  transition: color 0.2s;
}

.star-rating label:hover,
.star-rating label:hover~label,
.star-rating input:checked~label {
  color: #FBBF24;
}

/* Fix Pro Card RECOMMENDED Badge - Centered */
.pricing-card.pro::before {
  content: 'RECOMMENDED';
  position: absolute;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  background: linear-gradient(135deg, #818CF8, #2DD4BF);
  color: white;
  padding: 6px 20px;
  font-size: 0.7rem;
  font-weight: 700;
  border-radius: 0 0 8px 8px;
  right: auto;
}

/* Legal Pages Styles */
.legal-page {
  padding: 120px 0 60px;
  min-height: 100vh;
}

.legal-page h1 {
  font-size: 2.5rem;
  margin-bottom: 2rem;
}

.legal-page h2 {
  font-size: 1.5rem;
  margin: 2rem 0 1rem;
  color: #818CF8;
}

.legal-page p,
.legal-page li {
  color: var(--text-secondary);
  margin-bottom: 1rem;
  line-height: 1.8;
}

.legal-page ul {
  list-style: disc;
  padding-left: 1.5rem;
  margin-bottom: 1rem;
}

.legal-page .last-updated {
  font-size: 0.9rem;
  color: var(--text-secondary);
  margin-bottom: 2rem;
  font-style: italic;
}

/* Nav CTA Button */
.btn-nav {
  padding: 0.5rem 1.25rem !important;
  font-size: 0.9rem !important;
}

/* Hero Badge */
.hero-badge {
  display: inline-block;
  background: rgba(129, 140, 248, 0.15);
  border: 1px solid rgba(129, 140, 248, 0.3);
  color: #818CF8;
  padding: 0.5rem 1.25rem;
  border-radius: 50px;
  font-size: 0.9rem;
  font-weight: 500;
  margin-bottom: 1.5rem;
}

/* Larger Button */
.btn-large {
  padding: 1rem 2rem;
  font-size: 1.15rem;
}

/* Hero Trust Signals */
.hero-trust-signals {
  display: flex;
  justify-content: center;
  gap: 2rem;
  margin-top: 1.5rem;
  flex-wrap: wrap;
}

.trust-item {
  color: var(--text-secondary);
  font-size: 0.9rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

/* Trust Badges */
.trust-badges {
  display: flex;
  justify-content: center;
  gap: 2rem;
  margin-top: 3rem;
  flex-wrap: wrap;
}

.trust-badge {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.5rem;
  padding: 1rem 1.5rem;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: var(--radius-sm);
  transition: all 0.3s;
}

.trust-badge:hover {
  background: rgba(255, 255, 255, 0.06);
  border-color: rgba(129, 140, 248, 0.3);
}

.trust-badge-icon {
  font-size: 1.5rem;
}

.trust-badge-text {
  font-size: 0.85rem;
  color: var(--text-secondary);
  font-weight: 500;
}

/* How It Works Section */
.how-it-works {
  padding: 100px 0;
  background: linear-gradient(180deg, var(--bg-dark) 0%, #1E293B 100%);
}

.steps-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
  margin-top: 3rem;
}

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

.step-card {
  text-align: center;
  padding: 2rem;
  position: relative;
}

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

.step-card h3 {
  font-size: 1.25rem;
  margin-bottom: 0.75rem;
  color: var(--text-primary);
}

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

/* Pricing Description */
.pricing-desc {
  color: var(--text-secondary);
  font-size: 0.9rem;
  margin-bottom: 1.5rem;
}

/* Pricing Guarantee */
.pricing-guarantee {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.75rem;
  margin-top: 3rem;
  padding: 1rem 2rem;
  background: rgba(45, 212, 191, 0.1);
  border: 1px solid rgba(45, 212, 191, 0.2);
  border-radius: var(--radius-sm);
  color: #2DD4BF;
  font-size: 0.9rem;
}

.guarantee-icon {
  font-size: 1.25rem;
}

/* Final CTA Section */
.final-cta {
  padding: 100px 0;
  text-align: center;
  background: linear-gradient(180deg, #1E293B 0%, var(--bg-dark) 100%);
}

.final-trust {
  display: flex;
  justify-content: center;
  gap: 2rem;
  margin-top: 2rem;
  flex-wrap: wrap;
}

/* Stats Section (if needed) */
.stats-section {
  padding: 60px 0;
  border-top: 1px solid rgba(255, 255, 255, 0.05);
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.stats-grid {
  display: flex;
  justify-content: center;
  gap: 4rem;
  flex-wrap: wrap;
}

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

.stat-number {
  font-size: 2.5rem;
  font-weight: 800;
  background: var(--primary-gradient);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.stat-label {
  color: var(--text-secondary);
  font-size: 0.9rem;
  margin-top: 0.25rem;
}

/* Improved Button Hover */
.btn-primary:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 25px rgba(129, 140, 248, 0.4);
}

/* Mobile Responsive Improvements */
@media (max-width: 768px) {
  .hero-trust-signals {
    flex-direction: column;
    gap: 0.75rem;
  }

  .trust-badges {
    gap: 1rem;
  }

  .trust-badge {
    flex: 1 1 45%;
  }

  .final-trust {
    flex-direction: column;
    gap: 0.75rem;
  }

  .pricing-guarantee {
    flex-direction: column;
    text-align: center;
  }

  .btn-large {
    padding: 0.875rem 1.5rem;
    font-size: 1rem;
  }
}