/* Reset and Base Styles */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

:root {
  /* Light theme colors */
  --bg-primary: #ffffff;
  --bg-secondary: #f8fafc;
  --bg-gradient: linear-gradient(135deg, #eff6ff 0%, #ffffff 50%, #f0f9ff 100%);
  --text-primary: #1e293b;
  --text-secondary: #64748b;
  --text-muted: #94a3b8;
  --border-color: #e2e8f0;
  --card-bg: #ffffff;
  --header-bg: rgba(255, 255, 255, 0.95);
  --accent-blue: #2563eb;
  --accent-green: #16a34a;
  --shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1);
}

[data-theme="dark"] {
  /* Dark theme colors */
  --bg-primary: #0f172a;
  --bg-secondary: #1e293b;
  --bg-gradient: linear-gradient(135deg, #0f172a 0%, #1e293b 50%, #334155 100%);
  --text-primary: #f1f5f9;
  --text-secondary: #cbd5e1;
  --text-muted: #94a3b8;
  --border-color: #334155;
  --card-bg: #1e293b;
  --header-bg: rgba(15, 23, 42, 0.95);
  --accent-blue: #3b82f6;
  --accent-green: #22c55e;
  --shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.3);
}

body {
  font-family: "Open Sans", sans-serif;
  line-height: 1.6;
  color: var(--text-secondary);
  background: var(--bg-gradient);
  transition: background 0.3s ease, color 0.3s ease;
}

body.menu-open {
  overflow: hidden;
}

.page-container {
  min-height: 100vh;
  background: var(--bg-gradient);
}

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 1rem;
}

/* Typography */
h1,
h2,
h3,
h4 {
  font-family: "Work Sans", sans-serif;
  font-weight: 700;
  color: var(--text-primary);
}

h1 {
  font-size: 2.5rem;
  line-height: 1.2;
}

h2 {
  font-size: 2rem;
  line-height: 1.3;
}

h3 {
  font-size: 1.25rem;
  line-height: 1.4;
}

p {
  font-size: 1rem;
  line-height: 1.6;
  color: var(--text-secondary);
}

.text-primary {
  color: var(--accent-blue);
}

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

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

@keyframes float {
  0%,
  100% {
    transform: translateY(0px);
  }
  50% {
    transform: translateY(-10px);
  }
}

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

@keyframes scale {
  0%,
  100% {
    transform: scale(1);
  }
  50% {
    transform: scale(1.05);
  }
}

.animate-fade-in {
  animation: fadeIn 0.8s ease-out;
}

.animate-slide-up {
  animation: slideUp 0.8s ease-out;
}

.animate-slide-up:nth-child(2) {
  animation-delay: 0.2s;
}
.animate-slide-up:nth-child(3) {
  animation-delay: 0.4s;
}
.animate-slide-up:nth-child(4) {
  animation-delay: 0.6s;
}

.animate-float {
  animation: float 6s ease-in-out infinite;
}

.animate-pulse {
  animation: pulse 2s ease-in-out infinite;
}

.animate-scale {
  animation: scale 3s ease-in-out infinite;
}

.animate-scale:nth-child(2) {
  animation-delay: 1.5s;
}

.animate-on-scroll {
  opacity: 0;
  transform: translateY(30px);
  transition: all 0.6s ease;
}

.animate-on-scroll.animate-visible {
  opacity: 1;
  transform: translateY(0);
}

/* Theme Toggle */
.theme-toggle {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 2.5rem;
  height: 2.5rem;
  background: var(--card-bg);
  border: 1px solid var(--border-color);
  border-radius: 0.5rem;
  cursor: pointer;
  transition: all 0.2s ease;
  position: relative;
}

.theme-toggle:hover {
  background: var(--bg-secondary);
  transform: scale(1.05);
}

.theme-toggle svg {
  color: var(--text-primary);
  transition: all 0.3s ease;
}

.sun-icon {
  display: none;
}

.moon-icon {
  display: block;
}

[data-theme="dark"] .sun-icon {
  display: block;
}

[data-theme="dark"] .moon-icon {
  display: none;
}

/* Scroll to Top Button */
.scroll-to-top {
  position: fixed;
  bottom: 2rem;
  right: 2rem;
  width: 3rem;
  height: 3rem;
  background: var(--accent-blue);
  color: white;
  border: none;
  border-radius: 50%;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: var(--shadow);
  opacity: 0;
  visibility: hidden;
  transform: translateY(20px);
  transition: all 0.3s ease;
  z-index: 40;
}

.scroll-to-top.visible {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.scroll-to-top:hover {
  background: #1d4ed8;
  transform: translateY(-2px);
  box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.2);
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.75rem 1.5rem;
  border: none;
  border-radius: 0.5rem;
  font-family: "Open Sans", sans-serif;
  font-weight: 500;
  text-decoration: none;
  cursor: pointer;
  transition: all 0.2s ease;
}

.btn-primary {
  background-color: var(--accent-blue);
  color: white;
}

.btn-primary:hover {
  background-color: #1d4ed8;
  transform: translateY(-1px);
}

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

.btn-outline:hover {
  background-color: var(--bg-secondary);
  color: var(--accent-blue);
}

.btn-white {
  background-color: white;
  color: var(--accent-blue);
}

.btn-white:hover {
  background-color: #eff6ff;
}

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

.btn-outline-white:hover {
  background-color: white;
  color: var(--accent-blue);
}

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

/* Header */
.header {
  background-color: transparent;
  backdrop-filter: none;
  border-bottom: 1px solid transparent;
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 50;
  transition: all 0.3s ease;
}

.header.scrolled {
  background-color: var(--header-bg);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--accent-blue);
  box-shadow: var(--shadow);
}

.header-content {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1rem;
}

.header-controls {
  display: flex;
  align-items: center;
  gap: 1rem;
}

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

.logo-image {
  width: 2rem;
  height: 2rem;
  object-fit: contain;
}

.logo-text {
  font-family: "Work Sans", sans-serif;
  font-weight: 700;
  font-size: 1.25rem;
  color: var(--text-primary);
}

.mobile-menu-toggle {
  display: none;
  flex-direction: column;
  justify-content: space-around;
  width: 2rem;
  height: 2rem;
  background: transparent;
  border: none;
  cursor: pointer;
  padding: 0;
  z-index: 60;
}

.hamburger-line {
  width: 100%;
  height: 0.125rem;
  background-color: var(--text-primary);
  border-radius: 0.0625rem;
  transition: all 0.3s ease;
  transform-origin: 1px;
}

.mobile-menu-toggle.active .hamburger-line:nth-child(1) {
  transform: rotate(45deg);
}

.mobile-menu-toggle.active .hamburger-line:nth-child(2) {
  opacity: 0;
}

.mobile-menu-toggle.active .hamburger-line:nth-child(3) {
  transform: rotate(-45deg);
}

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

.nav-link {
  color: var(--text-secondary);
  text-decoration: none;
  font-family: "Open Sans", sans-serif;
  transition: all 0.2s ease;
  padding: 0.5rem 1rem;
  border-radius: 0.375rem;
  position: relative;
}

.nav-link:hover {
  color: var(--accent-blue);
  background-color: rgba(37, 99, 235, 0.05);
}

.nav-link.active {
  color: var(--accent-blue);
  background-color: rgba(37, 99, 235, 0.1);
  font-weight: 600;
}

.nav-link.active::after {
  content: "";
  position: absolute;
  bottom: -0.25rem;
  left: 50%;
  transform: translateX(-50%);
  width: 1rem;
  height: 0.125rem;
  background-color: var(--accent-blue);
  border-radius: 0.0625rem;
}

@media (max-width: 768px) {
  .mobile-menu-toggle {
    display: flex;
  }

  .theme-toggle {
    width: 2rem;
    height: 2rem;
  }

  .nav {
    position: fixed;
    top: 0;
    right: -100%;
    width: 80%;
    max-width: 300px;
    height: 100vh;
    background-color: var(--header-bg);
    backdrop-filter: blur(10px);
    flex-direction: column;
    justify-content: flex-start;
    align-items: stretch;
    padding: 5rem 2rem 2rem;
    gap: 0;
    transition: right 0.3s ease;
    box-shadow: -5px 0 15px rgba(0, 0, 0, 0.1);
  }

  .nav.active {
    right: 0;
  }

  .nav-link {
    padding: 1rem;
    border-bottom: 1px solid var(--border-color);
    border-radius: 0;
    text-align: center;
  }

  .nav-link.active::after {
    display: none;
  }

  .nav .btn {
    margin-top: 1rem;
    justify-content: center;
  }
}

/* Hero Section */
.hero {
  padding: 6rem 1rem 5rem;
}

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

@media (min-width: 1024px) {
  .hero-grid {
    grid-template-columns: 1fr 1fr;
  }
}

.hero-content {
  display: flex;
  flex-direction: column;
  gap: 2rem;
}

.badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.5rem 1rem;
  background-color: #dbeafe;
  color: #1d4ed8;
  border-radius: 9999px;
  font-size: 0.875rem;
  font-weight: 500;
  width: fit-content;
}

[data-theme="dark"] .badge {
  background-color: rgba(59, 130, 246, 0.2);
  color: #60a5fa;
}

.hero-title {
  font-size: 2.5rem;
  line-height: 1.2;
  margin-bottom: 1rem;
}

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

.hero-description {
  font-size: 1.125rem;
  line-height: 1.6;
  color: var(--text-secondary);
}

.hero-buttons {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

@media (min-width: 640px) {
  .hero-buttons {
    flex-direction: row;
  }
}

.hero-features {
  display: flex;
  flex-wrap: wrap;
  gap: 1.5rem;
  font-size: 0.875rem;
  color: var(--text-secondary);
}

.feature-item {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.feature-item svg {
  color: var(--accent-green);
}

/* Dashboard */
.hero-dashboard {
  position: relative;
}

.dashboard-card {
  background-color: var(--card-bg);
  border-radius: 1rem;
  box-shadow: var(--shadow);
  padding: 1.5rem;
  border: 1px solid var(--border-color);
}

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

.dashboard-header h3 {
  font-family: "Work Sans", sans-serif;
  font-weight: 600;
  color: var(--text-primary);
}

.status-badge {
  background-color: var(--bg-secondary);
  color: var(--accent-green);
  padding: 0.25rem 0.75rem;
  border-radius: 9999px;
  font-size: 0.75rem;
  font-weight: 500;
}

.dashboard-metrics {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
  margin-bottom: 1rem;
}

.metric-card {
  padding: 1rem;
  border-radius: 0.5rem;
}

.metric-blue {
  background-color: #eff6ff;
}

.metric-green {
  background-color: #f0fdf4;
}

[data-theme="dark"] .metric-blue {
  background-color: rgba(59, 130, 246, 0.1);
}

[data-theme="dark"] .metric-green {
  background-color: rgba(34, 197, 94, 0.1);
}

.metric-value {
  font-size: 1.5rem;
  font-weight: 700;
  margin-bottom: 0.25rem;
}

.metric-blue .metric-value {
  color: var(--accent-blue);
}

.metric-green .metric-value {
  color: var(--accent-green);
}

.metric-label {
  font-size: 0.875rem;
  color: var(--text-secondary);
}

.dashboard-chart {
  height: 8rem;
  background: linear-gradient(to right, #dbeafe, #e0f2fe);
  border-radius: 0.5rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
}

[data-theme="dark"] .dashboard-chart {
  background: linear-gradient(to right, rgba(59, 130, 246, 0.1), rgba(14, 165, 233, 0.1));
}

.dashboard-chart svg {
  color: var(--accent-blue);
}

.chart-label {
  font-size: 0.75rem;
  color: var(--text-secondary);
}

/* Section Headers */
.section-header {
  text-align: center;
  margin-bottom: 3rem;
}

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

.section-header p {
  font-size: 1.125rem;
  max-width: 32rem;
  margin: 0 auto;
}

/* Problems Section */
.problems {
  padding: 4rem 1rem;
  background-color: var(--bg-secondary);
}

.problems-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2rem;
}

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

.problem-card {
  background-color: var(--card-bg);
  border-radius: 0.5rem;
  box-shadow: var(--shadow);
  padding: 2rem;
  transition: all 0.3s ease;
  border: 1px solid var(--border-color);
}

.problem-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.15);
}

.problem-icon {
  width: 3rem;
  height: 3rem;
  border-radius: 0.5rem;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1rem;
}

.problem-red {
  background-color: #fef2f2;
  color: #dc2626;
}

.problem-orange {
  background-color: #fff7ed;
  color: #ea580c;
}

.problem-blue {
  background-color: #dbeafe;
  color: var(--accent-blue);
}

[data-theme="dark"] .problem-red {
  background-color: rgba(220, 38, 38, 0.1);
}

[data-theme="dark"] .problem-orange {
  background-color: rgba(234, 88, 12, 0.1);
}

[data-theme="dark"] .problem-blue {
  background-color: rgba(59, 130, 246, 0.1);
}

.problem-card h3 {
  margin-bottom: 1rem;
}

/* Modules Section */
.modules {
  padding: 4rem 1rem;
}

.modules-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.5rem;
}

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

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

.module-card {
  background-color: var(--card-bg);
  border-radius: 0.5rem;
  box-shadow: var(--shadow);
  padding: 2rem;
  text-align: center;
  transition: all 0.3s ease;
  border: 1px solid var(--border-color);
}

.module-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.15);
}

.module-icon {
  width: 4rem;
  height: 4rem;
  border-radius: 0.75rem;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 1rem;
}

.module-blue {
  background-color: #dbeafe;
  color: var(--accent-blue);
}

.module-green {
  background-color: #dcfce7;
  color: var(--accent-green);
}

.module-purple {
  background-color: #f3e8ff;
  color: #9333ea;
}

.module-sky {
  background-color: #e0f2fe;
  color: #0284c7;
}

[data-theme="dark"] .module-blue {
  background-color: rgba(59, 130, 246, 0.1);
}

[data-theme="dark"] .module-green {
  background-color: rgba(34, 197, 94, 0.1);
}

[data-theme="dark"] .module-purple {
  background-color: rgba(147, 51, 234, 0.1);
}

[data-theme="dark"] .module-sky {
  background-color: rgba(2, 132, 199, 0.1);
}

.module-card h3 {
  margin-bottom: 1rem;
}

/* Benefits Section */
.benefits {
  padding: 4rem 1rem;
  background-color: var(--accent-blue);
  color: white;
}

.benefits .section-header h2 {
  color: white;
}

.benefits .section-header p {
  color: #bfdbfe;
}

.benefits-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2rem;
}

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

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

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

.benefit-icon {
  width: 4rem;
  height: 4rem;
  background-color: rgba(255, 255, 255, 0.2);
  border-radius: 0.75rem;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 1rem;
  color: white;
}

.benefit-item h3 {
  color: white;
  margin-bottom: 0.5rem;
}

.benefit-item p {
  color: #bfdbfe;
}

/* Testimonials Section */
.testimonials {
  padding: 4rem 1rem;
}

.testimonials-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2rem;
  margin-bottom: 3rem;
}

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

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

.testimonial-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.15);
}

.stars {
  display: flex;
  gap: 0.25rem;
  margin-bottom: 1rem;
}

.star {
  color: #fbbf24;
  font-size: 1.25rem;
}

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

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

.author-avatar {
  width: 2.5rem;
  height: 2.5rem;
  background-color: #dbeafe;
  color: var(--accent-blue);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: "Work Sans", sans-serif;
  font-weight: 600;
}

[data-theme="dark"] .author-avatar {
  background-color: rgba(59, 130, 246, 0.2);
}

.author-name {
  font-family: "Work Sans", sans-serif;
  font-weight: 600;
  color: var(--text-primary);
}

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

/* CTA Section */
.cta {
  padding: 5rem 1rem;
  background: linear-gradient(to right, var(--accent-blue), #0284c7);
  color: white;
}

.cta-content {
  text-align: center;
  max-width: 64rem;
  margin: 0 auto;
}

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

.cta-content > p {
  font-size: 1.25rem;
  color: #bfdbfe;
  margin-bottom: 2rem;
  max-width: 32rem;
  margin-left: auto;
  margin-right: auto;
}

.cta-buttons {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  justify-content: center;
  margin-bottom: 2rem;
}

@media (min-width: 640px) {
  .cta-buttons {
    flex-direction: row;
  }
}

.cta-features {
  color: #bfdbfe;
}

.cta-features p {
  color: #bfdbfe;
  margin-bottom: 0.5rem;
}

/* Footer */
.footer {
  background-color: #0f172a;
  color: white;
  padding: 3rem 1rem;
}

[data-theme="dark"] .footer {
  background-color: #020617;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2rem;
  padding-top: 80px;
  padding-bottom: 80px;
}

@media (min-width: 768px) {
  .footer-grid {
    grid-template-columns: repeat(4, 1fr);
  }
}

.footer-brand .logo-text {
  color: white;
}

.footer-brand p {
  color: #94a3b8;
  margin-top: 1rem;
}

.footer-column h4 {
  color: white;
  font-family: "Work Sans", sans-serif;
  font-weight: 600;
  margin-bottom: 1rem;
}

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

.footer-column li {
  margin-bottom: 0.5rem;
}

.footer-column a {
  color: #94a3b8;
  text-decoration: none;
  transition: color 0.2s ease;
}

.footer-column a:hover {
  color: white;
}

.footer-bottom {
  border-top: 1px solid #334155;
  padding-top: 2rem;
  text-align: center;
}

.footer-bottom p {
  color: #94a3b8;
}

/* Responsive Design */
@media (max-width: 640px) {
  .hero-title {
    font-size: 2rem;
  }

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

  .cta-content h2 {
    font-size: 2rem;
  }

  .hero {
    padding: 5rem 1rem 3rem;
  }

  .scroll-to-top {
    bottom: 1rem;
    right: 1rem;
    width: 2.5rem;
    height: 2.5rem;
  }
}
