/* CSS Variables for theming */
:root {
  --primary: #0EA5E9;
  --primary-dark: #0284C7;

  /* Light theme (default) */
  --bg: #F9FAFB;
  --bg-secondary: #FFFFFF;
  --text: #1F2937;
  --text-secondary: #6B7280;
  --border: #E5E7EB;
  --card-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
}

[data-theme="dark"] {
  --bg: #111827;
  --bg-secondary: #1F2937;
  --text: #F9FAFB;
  --text-secondary: #9CA3AF;
  --border: #374151;
  --card-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.3), 0 2px 4px -1px rgba(0, 0, 0, 0.2);
}

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

html {
  scroll-behavior: smooth;
}

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

/* Theme Toggle */
.theme-toggle {
  position: fixed;
  top: 20px;
  right: 20px;
  z-index: 100;
  background: var(--bg-secondary);
  border: 1px solid var(--border);
  border-radius: 50%;
  width: 48px;
  height: 48px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text);
  box-shadow: var(--card-shadow);
  transition: all 0.3s;
}

.theme-toggle:hover {
  transform: scale(1.1);
}

.theme-toggle .icon-sun {
  display: block;
}

.theme-toggle .icon-moon {
  display: none;
}

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

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

/* Hero Section */
.hero {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 60px;
  padding: 40px 20px;
  max-width: 1200px;
  margin: 0 auto;
  flex-wrap: wrap;
}

.hero-content {
  flex: 1;
  min-width: 300px;
  text-align: center;
}

.logo {
  width: 100px;
  height: 100px;
  margin-bottom: 20px;
  border-radius: 24px;
  box-shadow: var(--card-shadow);
}

.mascot {
  width: 180px;
  height: auto;
  margin-bottom: 20px;
  filter: drop-shadow(0 4px 6px rgba(0, 0, 0, 0.1));
}

h1 {
  font-size: 3rem;
  font-weight: 800;
  margin-bottom: 10px;
}

.highlight {
  color: var(--primary);
}

.tagline {
  font-size: 1.25rem;
  color: var(--text-secondary);
  margin-bottom: 12px;
}

.subtitle {
  font-size: 1rem;
  color: var(--text-secondary);
  margin-bottom: 24px;
  max-width: 450px;
  margin-left: auto;
  margin-right: auto;
  line-height: 1.5;
}

.badges {
  display: flex;
  gap: 10px;
  justify-content: center;
  flex-wrap: wrap;
  margin-bottom: 24px;
}

/* Hero Stats */
.hero-stats {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 20px;
  margin-bottom: 30px;
  padding: 20px 30px;
  background: var(--bg-secondary);
  border-radius: 16px;
  border: 1px solid var(--border);
  box-shadow: var(--card-shadow);
}

.stat {
  display: flex;
  flex-direction: column;
  align-items: center;
}

.stat-value {
  font-size: 1.5rem;
  font-weight: 800;
  color: var(--text);
}

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

.stat-divider {
  width: 1px;
  height: 40px;
  background: var(--border);
}

.app-note {
  margin-top: 16px;
  font-size: 0.875rem;
  color: var(--text-secondary);
}

.badge {
  padding: 6px 14px;
  border-radius: 20px;
  font-size: 0.875rem;
  font-weight: 600;
  background: var(--bg-secondary);
  color: var(--text);
  border: 1px solid var(--border);
}

.badge.green {
  background: #DCFCE7;
  color: #166534;
  border-color: #BBF7D0;
}

.badge.orange {
  background: #FEF3C7;
  color: #92400E;
  border-color: #FDE68A;
}

.badge.purple {
  background: #F3E8FF;
  color: #6B21A8;
  border-color: #E9D5FF;
}

[data-theme="dark"] .badge.green {
  background: #166534;
  color: #DCFCE7;
  border-color: #22C55E;
}

[data-theme="dark"] .badge.orange {
  background: #92400E;
  color: #FEF3C7;
  border-color: #F59E0B;
}

[data-theme="dark"] .badge.purple {
  background: #6B21A8;
  color: #F3E8FF;
  border-color: #A855F7;
}

.download-btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  background: var(--primary);
  color: white;
  padding: 16px 32px;
  border-radius: 12px;
  text-decoration: none;
  font-weight: 600;
  font-size: 1.1rem;
  transition: all 0.3s;
  box-shadow: 0 4px 14px rgba(14, 165, 233, 0.4);
}

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

.hero-image {
  flex: 1;
  min-width: 280px;
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 16px;
}

.phone-mockup {
  width: 300px;
  aspect-ratio: 9 / 19.5;
  background: #000;
  border-radius: 40px;
  padding: 10px;
  box-shadow: var(--card-shadow), 0 0 0 3px #333;
  overflow: hidden;
  cursor: pointer;
  transition: transform 0.3s;
}

.phone-mockup:hover {
  transform: scale(1.02);
}

.phone-mockup .splide {
  height: 100%;
  border-radius: 30px;
  overflow: hidden;
  background: #000;
}

.phone-mockup .splide__track {
  height: 100%;
}

.phone-mockup .splide__list {
  height: 100%;
}

.phone-mockup .splide__slide {
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
}

.phone-mockup .splide__slide img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  border-radius: 30px;
  image-rendering: -webkit-optimize-contrast;
}

.phone-mockup .splide__pagination {
  bottom: 10px;
  padding: 0;
}

.phone-mockup .splide__pagination__page {
  width: 8px;
  height: 8px;
  background: rgba(255, 255, 255, 0.5);
  border: none;
  margin: 0 4px;
  transition: all 0.3s;
}

.phone-mockup .splide__pagination__page.is-active {
  background: white;
  transform: scale(1.2);
}

/* Slider Arrows */
.slider-arrow {
  width: 44px;
  height: 44px;
  background: var(--bg-secondary);
  border: 1px solid var(--border);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.3s;
  box-shadow: var(--card-shadow);
  color: var(--text);
  flex-shrink: 0;
}

.slider-arrow:hover {
  background: var(--primary);
  border-color: var(--primary);
  color: white;
  transform: scale(1.1);
}

.phone-mockup > img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  border-radius: 30px;
  image-rendering: -webkit-optimize-contrast;
}

/* Features Section */
.features {
  padding: 80px 20px;
  max-width: 1200px;
  margin: 0 auto;
}

.features h2,
.fuels h2,
.cta h2 {
  text-align: center;
  font-size: 2rem;
  font-weight: 700;
  margin-bottom: 40px;
}

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

.feature-card {
  background: var(--bg-secondary);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 30px;
  text-align: center;
  transition: all 0.3s;
}

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

.feature-icon {
  width: 64px;
  height: 64px;
  background: var(--primary);
  border-radius: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 20px;
  color: white;
}

.feature-icon.green {
  background: #22C55E;
}

.feature-icon.orange {
  background: #F97316;
}

.feature-icon.pink {
  background: #EC4899;
}

.feature-icon.purple {
  background: #8B5CF6;
}

.feature-card h3 {
  font-size: 1.25rem;
  margin-bottom: 10px;
}

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

/* Fuels Section */
.fuels {
  padding: 60px 20px;
  background: var(--bg-secondary);
}

.fuels-list {
  display: flex;
  justify-content: center;
  gap: 12px;
  flex-wrap: wrap;
  max-width: 600px;
  margin: 0 auto;
}

.fuel-badge {
  background: var(--fuel-color);
  color: white;
  padding: 10px 20px;
  border-radius: 10px;
  font-weight: 700;
  font-size: 1rem;
}

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

.faq h2 {
  text-align: center;
  font-size: 2rem;
  font-weight: 700;
  margin-bottom: 40px;
}

.faq-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.faq-item {
  background: var(--bg-secondary);
  border: 1px solid var(--border);
  border-radius: 12px;
  overflow: hidden;
}

.faq-item summary {
  padding: 20px 24px;
  font-weight: 600;
  cursor: pointer;
  list-style: none;
  display: flex;
  justify-content: space-between;
  align-items: center;
  transition: background 0.3s;
}

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

.faq-item summary::after {
  content: '+';
  font-size: 1.5rem;
  font-weight: 400;
  color: var(--text-secondary);
  transition: transform 0.3s;
}

.faq-item[open] summary::after {
  transform: rotate(45deg);
}

.faq-item summary:hover {
  background: var(--bg);
}

.faq-item p {
  padding: 0 24px 20px;
  color: var(--text-secondary);
  line-height: 1.6;
}

/* CTA Section */
.cta {
  padding: 80px 20px;
  text-align: center;
}

.cta p {
  color: var(--text-secondary);
  font-size: 1.1rem;
  margin-bottom: 30px;
}

/* Footer */
footer {
  background: var(--bg-secondary);
  border-top: 1px solid var(--border);
  padding: 40px 20px;
}

.footer-content {
  max-width: 800px;
  margin: 0 auto;
  text-align: center;
}

.footer-brand {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  margin-bottom: 20px;
  font-weight: 700;
  font-size: 1.25rem;
}

.footer-logo {
  width: 32px;
  height: 32px;
  border-radius: 8px;
}

.footer-links {
  display: flex;
  gap: 24px;
  justify-content: center;
  margin-bottom: 20px;
}

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

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

.footer-credit {
  color: var(--text-secondary);
  font-size: 0.875rem;
  margin-bottom: 10px;
}

.footer-credit a {
  color: var(--primary);
  text-decoration: none;
}

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

/* Lightbox */
.lightbox {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.95);
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s, visibility 0.3s;
}

.lightbox.active {
  opacity: 1;
  visibility: visible;
}

.lightbox-content {
  max-width: 90vw;
  max-height: 90vh;
  display: flex;
  align-items: center;
  justify-content: center;
}

.lightbox-content img {
  max-width: 100%;
  max-height: 85vh;
  object-fit: contain;
  border-radius: 16px;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5);
}

.lightbox-close {
  position: absolute;
  top: 20px;
  right: 20px;
  width: 50px;
  height: 50px;
  background: rgba(255, 255, 255, 0.1);
  border: none;
  border-radius: 50%;
  color: white;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.3s;
}

.lightbox-close:hover {
  background: rgba(255, 255, 255, 0.2);
  transform: scale(1.1);
}

.lightbox-arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 50px;
  height: 50px;
  background: rgba(255, 255, 255, 0.1);
  border: none;
  border-radius: 50%;
  color: white;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.3s;
}

.lightbox-arrow:hover {
  background: rgba(255, 255, 255, 0.2);
  transform: translateY(-50%) scale(1.1);
}

.lightbox-prev {
  left: 20px;
}

.lightbox-next {
  right: 20px;
}

.lightbox-counter {
  position: absolute;
  bottom: 20px;
  left: 50%;
  transform: translateX(-50%);
  color: rgba(255, 255, 255, 0.7);
  font-size: 14px;
  font-weight: 500;
}

/* Responsive */
@media (max-width: 768px) {
  h1 {
    font-size: 2.25rem;
  }

  .hero {
    padding-top: 80px;
  }

  .mascot {
    width: 140px;
  }

  .hero-stats {
    gap: 15px;
    padding: 16px 20px;
  }

  .stat-value {
    font-size: 1.25rem;
  }

  .stat-label {
    font-size: 0.75rem;
  }

  .stat-divider {
    height: 30px;
  }

  .phone-mockup {
    width: 240px;
    border-radius: 32px;
    padding: 8px;
  }

  .slider-arrow {
    width: 36px;
    height: 36px;
  }

  .lightbox-arrow {
    width: 40px;
    height: 40px;
  }

  .lightbox-prev {
    left: 10px;
  }

  .lightbox-next {
    right: 10px;
  }

  .slider-arrow svg {
    width: 16px;
    height: 16px;
  }

  .theme-toggle {
    top: 10px;
    right: 10px;
    width: 40px;
    height: 40px;
  }
}
