:root {
  --primary: #3b82f6;
  --primary-dark: #1e40af;
  --secondary: #06b6d4;
  --bg-light: #ffffff;
  --bg-light-secondary: #f9fafb;
  --bg-dark: #111827;
  --bg-dark-secondary: #1f2937;
  --text-light: #111827;
  --text-light-secondary: #6b7280;
  --text-dark: #ffffff;
  --text-dark-secondary: #d1d5db;
  --border-light: #e5e7eb;
  --border-dark: #374151;
}

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

html {
  scroll-behavior: smooth;
}

body {
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Roboto', 'Oxygen', 'Ubuntu', 'Cantarell', sans-serif;
  background-color: var(--bg-light);
  color: var(--text-light);
  transition: background-color 0.3s, color 0.3s;
}

body.dark-mode {
  background-color: var(--bg-dark);
  color: var(--text-dark);
}

.container {
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 1rem;
}
.navbar {
  background: #fff;
  padding: 1rem 2rem;
  box-shadow: 0 2px 6px rgba(0,0,0,0.08);
}

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

.navbar-brand {
  display: flex;
  align-items: center;
}

.brand-logo {
  height: 42px;
  width: auto;
  transition: transform 0.3s ease;
}

.brand-logo:hover {
  transform: scale(1.05);
}

/* Gradient Text */
.gradient-text {
  background: linear-gradient(135deg, var(--primary), var(--secondary));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

/* Buttons */
.btn {
  padding: 0.75rem 1.5rem;
  border: none;
  border-radius: 0.5rem;
  font-weight: 600;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  transition: all 0.3s;
  font-size: 1rem;
}

.btn-primary {
  background: linear-gradient(135deg, var(--primary), var(--secondary));
  color: white;
  box-shadow: 0 4px 6px rgba(59, 130, 246, 0.3);
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 15px rgba(59, 130, 246, 0.4);
}

.btn-secondary {
  background-color: var(--bg-light-secondary);
  color: var(--text-light);
  border: 1px solid var(--border-light);
}

body.dark-mode .btn-secondary {
  background-color: var(--bg-dark-secondary);
  color: var(--text-dark);
  border-color: var(--border-dark);
}

.btn-secondary:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 15px rgba(0, 0, 0, 0.1);
}

.btn-lg {
  padding: 1rem 2rem;
  font-size: 1.125rem;
}

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

.btn-white:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 20px rgba(0, 0, 0, 0.15);
}

.btn-outline-white {
  background-color: transparent;
  color: white;
  border: 2px solid white;
}

.btn-outline-white:hover {
  background-color: rgba(255, 255, 255, 0.1);
  transform: translateY(-2px);
}

/* Navbar */
.navbar {
  position: fixed;
  width: 100%;
  top: 0;
  z-index: 50;
  background: rgba(255, 255, 255, 0.8);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--border-light);
  transition: background 0.3s;
}

body.dark-mode .navbar {
  background: rgba(17, 24, 39, 0.8);
  border-bottom-color: var(--border-dark);
}

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

.navbar-brand {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 1.25rem;
  font-weight: bold;
}

.brand-icon {
  width: 2rem;
  height: 2rem;
  background: linear-gradient(135deg, var(--primary), var(--secondary));
  border-radius: 0.5rem;
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-weight: bold;
}

.brand-name {
  background: linear-gradient(135deg, var(--primary), var(--secondary));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

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

.nav-link {
  color: var(--text-light-secondary);
  text-decoration: none;
  transition: color 0.3s;
}

body.dark-mode .nav-link {
  color: var(--text-dark-secondary);
}

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

.theme-toggle {
  width: 2.5rem;
  height: 2.5rem;
  border-radius: 0.5rem;
  background-color: var(--bg-light-secondary);
  border: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.3s;
  color: var(--text-light);
}

body.dark-mode .theme-toggle {
  background-color: var(--bg-dark-secondary);
  color: var(--text-dark);
}

.theme-toggle:hover {
  background-color: var(--border-light);
}

body.dark-mode .theme-toggle:hover {
  background-color: var(--border-dark);
}

.sun-icon {
  display: block;
}

.moon-icon {
  display: none;
}

body.dark-mode .sun-icon {
  display: none;
}

body.dark-mode .moon-icon {
  display: block;
}

.mobile-menu-btn {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  font-size: 1.5rem;
  color: var(--text-light);
}

body.dark-mode .mobile-menu-btn {
  color: var(--text-dark);
}

.navbar-links.active {
  max-height: 500px;
}

@media (max-width: 768px) {
  .navbar-links {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: var(--bg-light);
    border-bottom: 1px solid var(--border-light);
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease-out;
    flex-direction: column;
    padding: 1rem;
    gap: 1rem;
  }

  body.dark-mode .navbar-links {
    background: var(--bg-dark-secondary);
    border-bottom-color: var(--border-dark);
  }

  .navbar-links.active {
    max-height: 500px;
  }

  .navbar-links .btn {
    display: inline-block;
    width: 100%;
    text-align: center;
  }
}

/* Hero Section */
.hero {
  padding-top: 8rem;
  padding-bottom: 4rem;
  text-align: center;
  min-height: 100vh;
  display: flex;
  align-items: center;
}

.hero-content {
  width: 100%;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  padding: 0.5rem 1rem;
  background-color: rgba(59, 130, 246, 0.1);
  border-radius: 2rem;
  color: var(--primary);
  font-size: 0.875rem;
  font-weight: 500;
  margin-bottom: 2rem;
  animation: slideUp 0.6s ease-out;
}

body.dark-mode .hero-badge {
  background-color: rgba(59, 130, 246, 0.2);
}

.hero-title {
  font-size: 3.5rem;
  font-weight: 700;
  margin-bottom: 1.5rem;
  line-height: 1.2;
  animation: slideUp 0.6s ease-out 0.1s both;
}

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

.hero-description {
  font-size: 1.25rem;
  color: var(--text-light-secondary);
  margin-bottom: 2rem;
  max-width: 48rem;
  margin-left: auto;
  margin-right: auto;
  line-height: 1.6;
  animation: slideUp 0.6s ease-out 0.2s both;
}

body.dark-mode .hero-description {
  color: var(--text-dark-secondary);
}

.hero-buttons {
  display: flex;
  gap: 1rem;
  justify-content: center;
  flex-wrap: wrap;
  margin-bottom: 4rem;
  animation: slideUp 0.6s ease-out 0.3s both;
}

.hero-preview {
  max-width: 60rem;
  margin: 0 auto;
  animation: fadeIn 0.6s ease-out 0.4s both;
}

.preview-placeholder {
  position: relative;
  background: linear-gradient(135deg, #f0f9ff, #cffafe);
  border-radius: 1rem;
  padding: 3rem;
  border: 1px solid var(--border-light);
  aspect-ratio: 16 / 9;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 1rem;
}

body.dark-mode .preview-placeholder {
  background: linear-gradient(135deg, #1f2937, #0f172a);
  border-color: var(--border-dark);
}

.preview-play-btn {
  width: 5rem;
  height: 5rem;
  background: linear-gradient(135deg, var(--primary), var(--secondary));
  border-radius: 0.75rem;
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  box-shadow: 0 10px 25px rgba(59, 130, 246, 0.3);
}

/* Stats Section */
.stats {
  background-color: var(--bg-light-secondary);
  padding: 4rem 0;
}

body.dark-mode .stats {
  background-color: rgba(31, 41, 55, 0.5);
}

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

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

.stat-value {
  font-size: 3rem;
  font-weight: 700;
  background: linear-gradient(135deg, var(--primary), var(--secondary));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  margin-bottom: 0.5rem;
}

.stat-label {
  color: var(--text-light-secondary);
  font-size: 1rem;
}

body.dark-mode .stat-label {
  color: var(--text-dark-secondary);
}

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

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

.section-header h2 {
  font-size: 2.5rem;
  font-weight: 700;
  margin-bottom: 1rem;
  line-height: 1.2;
}

@media (max-width: 768px) {
  .section-header h2 {
    font-size: 1.875rem;
  }
}

.section-header p {
  font-size: 1.125rem;
  color: var(--text-light-secondary);
  max-width: 32rem;
  margin: 0 auto;
}

body.dark-mode .section-header p {
  color: var(--text-dark-secondary);
}

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

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

body.dark-mode .feature-card {
  background-color: var(--bg-dark-secondary);
  border-color: var(--border-dark);
}

.feature-card:hover {
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
  transform: translateY(-0.5rem);
}

body.dark-mode .feature-card:hover {
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
}

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

.feature-card:hover .feature-icon {
  transform: scale(1.1);
}

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

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

body.dark-mode .feature-card p {
  color: var(--text-dark-secondary);
}

/* Modules Section */
.modules {
  background-color: var(--bg-light-secondary);
  padding: 5rem 0;
}

body.dark-mode .modules {
  background-color: rgba(31, 41, 55, 0.5);
}

.modules-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
  gap: 1.5rem;
}

.module-card {
  background-color: var(--bg-light);
  border: 1px solid var(--border-light);
  border-radius: 0.75rem;
  padding: 1.5rem;
  text-align: center;
  transition: all 0.3s;
}

body.dark-mode .module-card {
  background-color: var(--bg-dark-secondary);
  border-color: var(--border-dark);
}

.module-card:hover {
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
  transform: translateY(-0.5rem);
}

body.dark-mode .module-card:hover {
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.3);
}

.module-card svg {
  color: var(--primary);
  margin-bottom: 0.75rem;
}

.module-card p {
  font-size: 0.875rem;
  font-weight: 500;
}

/* AI Section */
.ai-section {
  padding: 5rem 0;
}

.ai-content {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
  align-items: center;
}

@media (max-width: 1024px) {
  .ai-content {
    grid-template-columns: 1fr;
  }
}

.ai-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.5rem 1rem;
  background-color: rgba(59, 130, 246, 0.1);
  border-radius: 2rem;
  color: var(--primary);
  font-size: 0.875rem;
  font-weight: 500;
  margin-bottom: 1rem;
  width: fit-content;
}

body.dark-mode .ai-badge {
  background-color: rgba(59, 130, 246, 0.2);
}

.ai-text h2 {
  font-size: 2.5rem;
  font-weight: 700;
  margin-bottom: 1.5rem;
  line-height: 1.2;
}

.ai-text p {
  font-size: 1.125rem;
  color: var(--text-light-secondary);
  margin-bottom: 2rem;
  line-height: 1.6;
}

body.dark-mode .ai-text p {
  color: var(--text-dark-secondary);
}

.ai-features {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.ai-feature {
  display: flex;
  gap: 1rem;
}

.ai-feature-icon {
  width: 2.5rem;
  height: 2.5rem;
  background: linear-gradient(135deg, var(--primary), var(--secondary));
  border-radius: 0.5rem;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.ai-feature h3 {
  font-size: 1rem;
  font-weight: 600;
  margin-bottom: 0.25rem;
}

.ai-feature p {
  font-size: 0.875rem;
  color: var(--text-light-secondary);
  margin: 0;
}

body.dark-mode .ai-feature p {
  color: var(--text-dark-secondary);
}

/* Chat Section */
.ai-chat {
  position: relative;
  background: linear-gradient(135deg, #f0f9ff, #cffafe);
  border-radius: 1.5rem;
  padding: 2rem;
  border: 1px solid var(--border-light);
}

body.dark-mode .ai-chat {
  background: linear-gradient(135deg, #1f2937, #0f172a);
  border-color: var(--border-dark);
}

.chat-container {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  min-height: 300px;
  justify-content: flex-end;
}

.chat-message {
  display: flex;
  gap: 0.75rem;
  align-items: flex-start;
}

.user-message {
  justify-content: flex-end;
}

.user-message p {
  background-color: var(--primary);
  color: white;
  padding: 0.75rem 1rem;
  border-radius: 1rem;
  border-top-right-radius: 0;
  max-width: 70%;
  font-size: 0.875rem;
}

.sofia-message {
  justify-content: flex-start;
}

.sofia-avatar {
  width: 2.5rem;
  height: 2.5rem;
  background: linear-gradient(135deg, var(--primary), var(--secondary));
  border-radius: 0.5rem;
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-weight: bold;
  flex-shrink: 0;
}

.sofia-message p {
  background-color: var(--bg-light);
  color: var(--text-light);
  padding: 0.75rem 1rem;
  border-radius: 1rem;
  border-top-left-radius: 0;
  max-width: 70%;
  font-size: 0.875rem;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

body.dark-mode .sofia-message p {
  background-color: var(--bg-dark-secondary);
  color: var(--text-dark);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
}

/* Testimonials Section */
.testimonials {
  background-color: var(--bg-light-secondary);
  padding: 5rem 0;
}

body.dark-mode .testimonials {
  background-color: rgba(31, 41, 55, 0.5);
}

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

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

body.dark-mode .testimonial-card {
  background-color: var(--bg-dark-secondary);
  border-color: var(--border-dark);
}

.testimonial-card:hover {
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}

body.dark-mode .testimonial-card:hover {
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
}

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

.testimonial-text {
  color: var(--text-light-secondary);
  font-style: italic;
  margin-bottom: 1.5rem;
  line-height: 1.6;
}

body.dark-mode .testimonial-text {
  color: var(--text-dark-secondary);
}

.testimonial-author {
  border-top: 1px solid var(--border-light);
  padding-top: 1rem;
}

body.dark-mode .testimonial-author {
  border-top-color: var(--border-dark);
}

.author-name {
  font-weight: 600;
  margin-bottom: 0.25rem;
}

.author-role {
  font-size: 0.875rem;
  color: var(--text-light-secondary);
}

body.dark-mode .author-role {
  color: var(--text-dark-secondary);
}

/* CTA Section */
.cta {
  background: linear-gradient(135deg, var(--primary), var(--secondary));
  color: white;
  padding: 5rem 0;
  position: relative;
  overflow: hidden;
}

.cta::before {
  content: '';
  position: absolute;
  top: 0;
  right: 0;
  width: 400px;
  height: 400px;
  background: rgba(255, 255, 255, 0.1);
  border-radius: 50%;
  filter: blur(80px);
}

.cta::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 400px;
  height: 400px;
  background: rgba(255, 255, 255, 0.1);
  border-radius: 50%;
  filter: blur(80px);
}

.cta-content {
  position: relative;
  z-index: 1;
  text-align: center;
}

.cta h2 {
  font-size: 2.5rem;
  font-weight: 700;
  margin-bottom: 1rem;
}

.cta p {
  font-size: 1.125rem;
  margin-bottom: 2rem;
  max-width: 40rem;
  margin-left: auto;
  margin-right: auto;
  opacity: 0.95;
}

.cta-buttons {
  display: flex;
  gap: 1rem;
  justify-content: center;
  flex-wrap: wrap;
  margin-bottom: 1.5rem;
}

.cta-note {
  font-size: 0.875rem;
  opacity: 0.85;
}

/* Footer */
.footer {
  background-color: var(--bg-dark);
  color: var(--text-dark-secondary);
  padding: 3rem 0 2rem;
}

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

.footer-section h3 {
  color: var(--text-dark);
  font-size: 1rem;
  font-weight: 600;
  margin-bottom: 1rem;
}

.footer-section ul {
  list-style: none;
}

.footer-section ul li {
  margin-bottom: 0.75rem;
}

.footer-section a {
  color: var(--text-dark-secondary);
  text-decoration: none;
  transition: color 0.3s;
}

.footer-section a:hover {
  color: var(--secondary);
}

.footer-brand {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin-bottom: 1rem;
}

.footer-brand .brand-icon {
  width: 2rem;
  height: 2rem;
  font-size: 0.875rem;
}

.footer-brand .brand-name {
  color: var(--text-dark);
}

.footer-desc {
  color: var(--text-dark-secondary);
  font-size: 0.875rem;
  line-height: 1.6;
}

.contact-info {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.contact-info li {
  display: flex;
  align-items: flex-start;
  gap: 0.5rem;
}

.contact-info svg {
  margin-top: 0.25rem;
  flex-shrink: 0;
}

.footer-bottom {
  border-top: 1px solid var(--border-dark);
  padding-top: 2rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 2rem;
}

.footer-bottom p {
  font-size: 0.875rem;
}

.footer-links {
  display: flex;
  gap: 2rem;
}

/* Animations */
@keyframes slideUp {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes fadeIn {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}

/* Responsive */
@media (max-width: 768px) {
  .navbar-links {
    gap: 1rem;
  }

  .navbar-links .btn {
    display: none;
  }

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

  .hero-title {
    font-size: 2rem;
  }

  .hero-description {
    font-size: 1rem;
  }

  .hero-buttons {
    gap: 0.5rem;
  }

  .btn, .btn-lg {
    padding: 0.75rem 1.5rem;
    font-size: 0.875rem;
  }

  .section-header h2 {
    font-size: 1.875rem;
  }

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

  .modules-grid {
    grid-template-columns: repeat(auto-fit, minmax(100px, 1fr));
  }

  .ai-content {
    grid-template-columns: 1fr;
  }

  .user-message p,
  .sofia-message p {
    max-width: 85%;
  }

  .cta h2 {
    font-size: 1.875rem;
  }

  .footer-content {
    grid-template-columns: 1fr;
  }

  .footer-bottom {
    flex-direction: column;
    text-align: center;
  }

  .footer-links {
    justify-content: center;
  }
}
