:root {
  --primary-color: #8a2be2;
  --primary-glow: rgba(138, 43, 226, 0.4);
  --secondary-color: #9d4edd;
  --bg-color: #f8f9fa; /* Light background */
  --bg-secondary: #ffffff;
  --text-color: #333333;
  --text-secondary: #666666;
  --glass-bg: rgba(255, 255, 255, 0.7);
  --glass-border: rgba(138, 43, 226, 0.2);
  --card-bg: rgba(255, 255, 255, 0.8);
  --gradient-1: linear-gradient(45deg, #8a2be2, #4b0082);
  --gradient-2: linear-gradient(135deg, #b100e8, #4b0082); 
  --shadow-sm: 0 4px 6px rgba(0,0,0,0.05);
  --shadow-md: 0 10px 15px rgba(0,0,0,0.1);
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
  scroll-behavior: smooth;
}

body {
  font-family: 'Outfit', sans-serif;
  background-color: var(--bg-color);
  color: var(--text-color);
  overflow-x: hidden;
  line-height: 1.6;
}

#canvas-container {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  z-index: -1;
  pointer-events: none;
  opacity: 0.6; /* Subtler for light mode */
}

/* Navbar */
.navbar {
  position: fixed;
  top: 0;
  width: 100%;
  padding: 1.2rem 5%;
  display: flex;
  justify-content: space-between;
  align-items: center;
  z-index: 1000;
  background: rgba(255, 255, 255, 0.9);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--glass-border);
  box-shadow: var(--shadow-sm);
}

.logo {
  display: flex;
  align-items: center;
  gap: 0.8rem;
  font-size: 1.8rem;
  font-weight: 700;
  color: var(--primary-color);
  text-transform: uppercase;
  letter-spacing: 1px;
}

.logo-img {
  height: 45px;
  width: auto;
  border-radius: 10px;
  box-shadow: 0 4px 10px rgba(138, 43, 226, 0.2);
}

.nav-links {
  display: flex;
  gap: 2rem;
  align-items: center;
  flex-wrap: wrap; /* Ensure layout doesn't break */
}

.nav-links a {
  color: var(--text-color);
  text-decoration: none;
  font-weight: 500;
  transition: color 0.3s;
  font-size: 0.95rem;
}

.nav-links a:hover {
  color: var(--primary-color);
}

.btn-download {
  background: var(--primary-color);
  padding: 0.6rem 1.5rem;
  border-radius: 50px;
  color: white !important;
  font-weight: 600;
  box-shadow: 0 4px 15px var(--primary-glow);
  transition: transform 0.3s, box-shadow 0.3s;
}

.btn-download:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px var(--primary-glow);
}

.mobile-menu-btn {
  display: none;
  font-size: 1.5rem;
  cursor: pointer;
  color: var(--text-color);
}

/* Hero Section */
.hero {
  min-height: 100vh;
  padding: 120px 5% 60px; /* Account for fixed nav */
  display: flex;
  align-items: center;
  justify-content: space-between;
  position: relative;
  overflow: hidden;
}

.hero-content {
  max-width: 600px;
  z-index: 2;
}

.hero h1 {
  font-size: 3.5rem;
  line-height: 1.1;
  margin-bottom: 1.5rem;
  font-weight: 700;
  color: #1a1a1a;
}

.hero p {
  font-size: 1.2rem;
  color: var(--text-secondary);
  margin-bottom: 2.5rem;
  max-width: 500px;
}

.highlight {
  color: var(--primary-color);
  position: relative;
  display: inline-block;
}

/* Underline effect for highlight */
.highlight::after {
    content: '';
    position: absolute;
    bottom: 5px;
    left: 0;
    width: 100%;
    height: 10px;
    background: rgba(138, 43, 226, 0.1);
    z-index: -1;
}

.badge {
  display: inline-block;
  background: rgba(138, 43, 226, 0.1);
  padding: 0.5rem 1rem;
  border-radius: 20px;
  color: var(--primary-color);
  font-weight: 600;
  font-size: 0.8rem;
  margin-bottom: 1.5rem;
  text-transform: uppercase;
  letter-spacing: 1px;
}

.cta-group {
  display: flex;
  gap: 1rem;
  margin-bottom: 3rem;
}

.btn-primary, .btn-secondary, .btn-outline, .btn-gradient {
  padding: 0.8rem 1.8rem;
  border-radius: 50px;
  text-decoration: none;
  font-weight: 600;
  transition: all 0.3s;
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  font-size: 1rem;
}

.btn-primary {
  background: var(--primary-color);
  color: white;
  box-shadow: var(--shadow-md);
}

.btn-primary:hover {
  background: #7a1fd0;
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(138, 43, 226, 0.3);
}

.btn-secondary {
  border: 2px solid var(--text-color);
  color: var(--text-color);
  background: transparent;
}

.btn-secondary:hover {
  background: var(--text-color);
  color: white;
}

.hero-stats {
  display: flex;
  gap: 3rem;
  padding-top: 2rem;
  border-top: 1px solid rgba(0,0,0,0.1);
}

.stat {
  display: flex;
  flex-direction: column;
}

.stat-value {
  font-size: 1.2rem;
  font-weight: 700;
  color: var(--primary-color);
}

.stat-label {
  font-size: 0.9rem;
  color: var(--text-secondary);
}

.hero-image {
  flex: 1;
  display: flex;
  justify-content: center;
  align-items: center;
  position: relative;
  z-index: 1;
}

.app-mockup-img {
    filter: drop-shadow(0 20px 40px rgba(138,43,226,0.15)) !important; /* Softer shadow for light mode */
}

/* Sections */
.section {
  padding: 6rem 5%;
  position: relative;
}

.bg-light-alt {
    background: #ffffff;
    border-top: 1px solid rgba(0,0,0,0.05);
    border-bottom: 1px solid rgba(0,0,0,0.05);
}

.container {
  max-width: 1200px;
  margin: 0 auto;
}

h2 {
  font-size: 2.5rem;
  margin-bottom: 1rem;
  text-align: center;
  color: #1a1a1a;
}

.section-subtitle {
  text-align: center;
  color: var(--text-secondary);
  margin-bottom: 4rem;
  font-size: 1.1rem;
}

/* How It Works (Steps) */
.steps-container {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 1rem;
    flex-wrap: wrap;
}

.step-card {
    flex: 1;
    min-width: 200px;
    text-align: center;
    position: relative;
}

.step-number {
    font-size: 3rem;
    font-weight: 700;
    color: rgba(138, 43, 226, 0.1);
    position: absolute;
    top: -20px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 0;
}

.step-icon {
    width: 60px;
    height: 60px;
    background: white;
    box-shadow: var(--shadow-md);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1.5rem;
    font-size: 1.5rem;
    color: var(--primary-color);
    position: relative;
    z-index: 1;
}

.step-card h3 {
    font-size: 1.2rem;
    margin-bottom: 0.5rem;
    color: #1a1a1a;
}

.step-card p {
    font-size: 0.9rem;
    color: var(--text-secondary);
}

.step-line {
    flex: 1;
    height: 2px;
    background: rgba(138, 43, 226, 0.2);
    margin-top: 30px;
    display: none; /* Hide on mobile mostly */
}

@media (min-width: 992px) {
    .step-line {
        display: block;
        max-width: 50px;
    }
}

/* Split Features (Driver vs Passenger) */
.split-features {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
}

.role-card {
    background: white;
    padding: 3rem;
    border-radius: 20px;
    box-shadow: var(--shadow-sm);
    text-align: center;
    transition: transform 0.3s;
    border: 1px solid rgba(0,0,0,0.05);
}

.role-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-md);
}

.role-icon {
    font-size: 2.5rem;
    color: var(--primary-color);
    margin-bottom: 1.5rem;
}

.role-list {
    list-style: none;
    text-align: left;
    margin: 2rem 0;
}

.role-list li {
    margin-bottom: 0.8rem;
    color: var(--text-secondary);
    display: flex;
    align-items: center;
    gap: 0.8rem;
}

.role-list li i {
    color: var(--secondary-color);
}


/* About Section */
.glass-section {
    background: rgba(255,255,255,0.4);
}

.content-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: center;
}

.text-content p {
  margin-bottom: 1.5rem;
  font-size: 1.1rem;
  color: var(--text-secondary);
}

.cards-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.5rem;
}

.card {
  background: white;
  border: 1px solid rgba(0,0,0,0.05);
  padding: 2rem;
  border-radius: 16px;
  box-shadow: var(--shadow-sm);
  transition: transform 0.3s;
}

.card:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-md);
  border-color: var(--primary-color);
}

.card .icon {
  font-size: 2rem;
  color: var(--primary-color);
  margin-bottom: 1rem;
  display: block;
}

.card h3 {
  margin-bottom: 0.5rem;
  font-size: 1.25rem;
  color: #1a1a1a;
}

.card p {
  color: var(--text-secondary);
  font-size: 0.95rem;
}

/* Features */
.features-list {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 2rem;
}

.feature-item {
  text-align: center;
  padding: 2.5rem 2rem;
  background: white;
  border-radius: 24px;
  border: 1px solid rgba(0,0,0,0.05);
  box-shadow: var(--shadow-sm);
  transition: transform 0.3s;
}

.feature-item:hover {
     transform: translateY(-5px);
     box-shadow: var(--shadow-md);
}

.feature-icon {
  width: 70px;
  height: 70px;
  background: rgba(138, 43, 226, 0.1);
  color: var(--primary-color);
  border-radius: 20px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 1.5rem;
  font-size: 1.8rem;
}

.feature-item h3 {
    margin-bottom: 1rem;
    color: #1a1a1a;
}

.feature-item p {
    color: var(--text-secondary);
}


/* Pricing */
.pricing-cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 2rem;
  justify-items: center;
}

.pricing-card {
  background: white;
  border: 1px solid rgba(0,0,0,0.05);
  border-radius: 24px;
  padding: 3rem 2rem;
  width: 100%;
  max-width: 350px;
  text-align: center;
  position: relative;
  overflow: hidden;
  transition: transform 0.3s;
  box-shadow: var(--shadow-sm);
  color: var(--text-color);
}

.pricing-card:hover {
  transform: translateY(-10px);
  box-shadow: var(--shadow-md);
}

.pricing-card.popular {
  border: 2px solid var(--primary-color);
  box-shadow: 0 10px 30px rgba(138, 43, 226, 0.1);
}

.popular-tag, .premium-tag {
  position: absolute;
  top: 1rem;
  left: 50%;
  transform: translateX(-50%);
  background: var(--primary-color);
  color: white;
  padding: 0.3rem 1rem;
  border-radius: 20px;
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
}

.premium-tag {
  background: #1a1a1a;
  width: 100%;
  border-radius: 0;
  top: 0;
  padding: 0.5rem;
}

.matches {
  margin-top: 1rem;
  color: var(--primary-color);
  font-weight: 600;
  font-size: 1.1rem;
}

.price {
  font-size: 3rem;
  font-weight: 700;
  margin: 1.5rem 0 0.5rem;
  line-height: 1;
  color: #1a1a1a;
}

.price-detail {
  font-size: 0.9rem;
  color: var(--text-secondary);
  margin-bottom: 2rem;
}

.features {
  list-style: none;
  text-align: left;
  margin-bottom: 2rem;
  padding-left: 1rem;
}

.features li {
  margin-bottom: 0.8rem;
  color: var(--text-color);
}

.features li i {
  color: var(--primary-color);
  margin-right: 0.8rem;
}

.btn-gradient {
  background: var(--gradient-1);
  color: white;
  width: 100%;
  justify-content: center;
}

.btn-gradient:hover {
  box-shadow: 0 6px 20px rgba(138, 43, 226, 0.4);
}

.pricing-card .btn-primary, .pricing-card .btn-outline {
  width: 100%;
  justify-content: center;
}

.btn-outline {
  border: 1px solid var(--primary-color);
  color: var(--primary-color);
}

.btn-outline:hover {
  background: var(--primary-color);
  color: white;
}

/* Token Section */
.token-content {
  text-align: center;
  background: white;
  padding: 4rem 2rem;
  border-radius: 24px;
  max-width: 800px;
  margin: 0 auto;
  box-shadow: var(--shadow-md);
  border: 1px solid rgba(0,0,0,0.05);
  position: relative;
  z-index: 2; /* Bring above other elements */
}

.contract-address {
  background: #f0f0f5;
  padding: 1rem 1.5rem;
  border-radius: 12px;
  display: inline-flex;
  align-items: center;
  gap: 1rem;
  margin: 2rem 0;
  max-width: 100%;
  overflow-x: auto;
}

.contract-address span {
  font-family: monospace;
  color: #333;
  font-size: 0.9rem;
}

.copy-btn {
  background: none;
  border: none;
  color: var(--primary-color);
  cursor: pointer;
  transition: color 0.3s;
  font-size: 1.1rem;
}

.copy-btn:hover {
  color: #6a1b9a;
}

.token-links {
  display: flex;
  justify-content: center;
  gap: 1.5rem;
  flex-wrap: wrap;
}

/* Footer - Light Theme */
.footer {
  background: #f8f9fa; /* Light footer */
  padding: 5rem 0 2rem;
  margin-top: 4rem;
  border-top: 1px solid rgba(0,0,0,0.05);
  color: var(--text-color);
}

.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr;
    gap: 3rem;
    margin-bottom: 3rem;
}

.footer-brand h3 {
  font-size: 2rem;
  margin-bottom: 1rem;
  color: var(--primary-color);
}

.footer-tagline {
    font-size: 1.1rem;
    color: var(--text-secondary);
    margin-bottom: 1.5rem;
    max-width: 300px;
}

.footer-socials {
  display: flex;
  gap: 1rem;
  margin-top: 1.5rem;
}

.footer-socials a {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: white;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--primary-color);
  box-shadow: var(--shadow-sm);
  transition: all 0.3s;
  text-decoration: none;
}

.footer-socials a:hover {
  background: var(--primary-color);
  color: white;
  transform: translateY(-3px);
}

.footer-col h4 {
    color: #1a1a1a;
    font-size: 1.1rem;
    margin-bottom: 1.5rem;
    font-weight: 700;
}

.footer-links {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 0.8rem;
}

.footer-links a {
    color: var(--text-secondary);
    text-decoration: none;
    transition: color 0.3s;
    font-size: 0.95rem;
}

.footer-links a:hover {
    color: var(--primary-color);
}

.footer-bottom {
  text-align: center;
  padding-top: 2rem;
  border-top: 1px solid rgba(0,0,0,0.05);
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  color: var(--text-secondary);
  font-size: 0.85rem;
}

.footer-bottom a {
  color: var(--primary-color);
  text-decoration: none;
  font-weight: 600;
}

/* Responsive */
@media (max-width: 768px) {
  .hero {
    flex-direction: column;
    justify-content: center;
    text-align: center;
    padding-top: 140px;
    height: auto;
  }
  
  .hero-content {
    margin-bottom: 3rem;
  }
  
  .hero h1 {
    font-size: 2.5rem;
  }
  
  .cta-group {
    justify-content: center;
    flex-direction: column;
  }
  
  .hero-stats {
    justify-content: center;
  }
  
  .nav-links {
    display: none;
  }
  
  .mobile-menu-btn {
    display: block;
  }
  
  .content-grid {
    grid-template-columns: 1fr;
  }
  
  .split-features {
      grid-template-columns: 1fr;
      gap: 2rem;
  }
  
  .footer-grid {
      grid-template-columns: 1fr;
      text-align: center;
      gap: 2rem;
  }

  .footer-tagline {
      margin: 0 auto 1.5rem;
  }

  .footer-socials {
      justify-content: center;
  }
  
  /* Steps specific responsive adjustments */
  .step-line {
      display: none;
  }
}

/* App Gallery */
.gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 1.5rem;
    justify-items: center;
    margin-top: 3rem;
}

.gallery-item {
    position: relative;
    border-radius: 12px;
    overflow: hidden;
    cursor: pointer;
    box-shadow: var(--shadow-sm);
    transition: transform 0.3s, box-shadow 0.3s;
    width: 100%;
    max-width: 200px;
    background: #000;
}

.gallery-item:hover {
    transform: scale(1.05);
    box-shadow: var(--shadow-md);
    z-index: 10;
}

.gallery-img {
    width: 100%;
    height: auto;
    display: block;
    transition: transform 0.3s;
}

.gallery-item:hover .gallery-img {
    transform: scale(1.1);
    opacity: 0.8;
}

.gallery-item .overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.5);
    color: white;
    padding: 1rem;
    opacity: 0;
    transition: opacity 0.3s;
    display: flex;
    align-items: center;
    justify-content: center;
}

.gallery-item:hover .overlay {
    opacity: 1;
}

.gallery-item .overlay span {
    font-weight: 600;
    font-size: 1rem;
    text-align: center;
    text-transform: uppercase;
    letter-spacing: 1px;
}

/* Lightbox */
.lightbox {
    display: none;
    position: fixed;
    z-index: 2000;
    padding-top: 50px;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    overflow: auto;
    background-color: rgba(0, 0, 0, 0.9);
    backdrop-filter: blur(5px);
}

.lightbox-content {
    margin: auto;
    display: block;
    width: auto;
    height: 80vh; 
    max-width: 90%;
    object-fit: contain;
    border-radius: 8px;
    box-shadow: 0 0 20px rgba(255, 255, 255, 0.1);
    animation-name: zoom;
    animation-duration: 0.3s;
}

@keyframes zoom {
  from {transform:scale(0)} 
  to {transform:scale(1)}
}

.close-lightbox {
    position: absolute;
    top: 20px;
    right: 30px;
    color: #f1f1f1;
    font-size: 40px;
    font-weight: bold;
    transition: 0.3s;
    cursor: pointer;
    z-index: 2001;
}

.close-lightbox:hover,
.close-lightbox:focus {
    color: var(--primary-color);
    text-decoration: none;
    cursor: pointer;
}

#caption {
    margin: auto;
    display: block;
    width: 80%;
    max-width: 700px;
    text-align: center;
    color: #ccc;
    padding: 10px 0;
    height: 150px;
}

/* Make lightbox responsive */
@media only screen and (max-width: 700px){
    .lightbox-content {
        width: 100%;
    }
}

/* Live Stats in Footer */
.live-stats {
  margin-top: 1rem;
  margin-bottom: 1.5rem;
  background: white;
  padding: 1.2rem;
  border-radius: 16px;
  box-shadow: var(--shadow-sm);
  border: 1px solid rgba(138, 43, 226, 0.1);
  display: inline-block;
  min-width: 250px;
}

.stat-item {
  display: flex;
  align-items: center;
  gap: 0.8rem;
  font-size: 0.95rem;
  color: var(--text-color);
  margin-bottom: 0.8rem;
}

.stat-item:last-child {
  margin-bottom: 0;
}

.stat-item i {
  color: var(--primary-color);
  font-size: 1.1rem;
  width: 20px; /* align icons */
  text-align: center;
}

.stat-item span {
  font-weight: 700;
  color: var(--primary-color);
  font-size: 1.1rem;
}


/* --- Navbar Stats --- */
.navbar-stats {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-left: 1.5rem; /* Space from logo */
    margin-right: auto;    /* Push nav links to the right */
    background: rgba(138, 43, 226, 0.05);
    padding: 6px 16px;
    border-radius: 50px;
    border: 1px solid rgba(138, 43, 226, 0.15);
}

.nav-stat-item {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 0.9rem;
    color: var(--text-color);
    font-weight: 500;
}

.nav-stat-item i {
    color: var(--primary-color);
    font-size: 1rem;
}

.nav-stat-item span {
    font-weight: 600;
}

.nav-stat-divider {
    width: 1px;
    height: 16px;
    background: rgba(0,0,0,0.1);
}

/* Adjust navbar to accommodate new element */
.navbar {
    gap: 1rem; /* Better spacing control */
}


@media (max-width: 900px) {
    .navbar-stats {
        display: none; /* Hide on smaller screens or move to menu */
    }
}
