:root {
  --primary-color: #00ff88;
  --secondary-color: #00ccff;
  --bg-dark: #0a0a0a;
  --text-light: #f0f0f0;
  --text-muted: #a0a0a0;
  --glass-bg: rgba(255, 255, 255, 0.05);
  --glass-border: rgba(255, 255, 255, 0.1);
  --transition: all 0.3s ease;
}

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

body {
  font-family: 'Outfit', sans-serif;
  background-color: var(--bg-dark);
  color: var(--text-light);
  overflow-x: hidden;
  line-height: 1.6;
}

/* Header & Nav */
.glass-header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  padding: 1.5rem 0;
  background: #242424;
  border-bottom: 1px solid var(--glass-border);
  z-index: 1000;
}

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

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

.logo-link {
  display: flex;
  align-items: center;
  gap: 1rem;
  text-decoration: none;
  color: var(--text-light);
}

.logo-img {
  height: 150px;
  width: auto;
  max-width: 100%;
  object-fit: contain;
}

.lang-switcher {
  display: flex;
  gap: 0.5rem;
}

.lang-btn {
  background: transparent;
  border: 1px solid var(--glass-border);
  color: var(--text-muted);
  padding: 0.4rem 0.8rem;
  border-radius: 20px;
  cursor: pointer;
  transition: var(--transition);
  font-size: 0.9rem;
}

.lang-btn:hover,
.lang-btn.active {
  background: var(--glass-bg);
  color: var(--primary-color);
  border-color: var(--primary-color);
}

/* Hero Section */
.hero-section {
  padding: 8rem 0 4rem;
  min-height: 100vh;
  display: flex;
  align-items: center;
  position: relative;
}

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

.hero-text h1 {
  font-size: 3.5rem;
  line-height: 1.1;
  margin-bottom: 1.5rem;
}

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

.hero-text p {
  font-size: 1.2rem;
  color: var(--text-muted);
  margin-bottom: 2rem;
  max-width: 500px;
}

.cta-group {
  display: flex;
  gap: 1rem;
}

.btn-primary,
.btn-secondary {
  padding: 0.8rem 2rem;
  border-radius: 50px;
  font-weight: 600;
  cursor: pointer;
  transition: var(--transition);
  font-size: 1rem;
}

.btn-primary {
  background: var(--primary-color);
  color: #000;
  border: none;
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 5px 15px rgba(0, 255, 136, 0.3);
}

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

.btn-secondary:hover {
  border-color: var(--primary-color);
  background: var(--glass-bg);
}

/* Hero Visual */
.mockup-placeholder {
  position: relative;
  width: 100%;
  height: 500px;
  display: flex;
  justify-content: center;
  align-items: center;
}

.pulse-ring {
  position: absolute;
  width: 300px;
  height: 300px;
  border-radius: 50%;
  border: 2px solid var(--primary-color);
  opacity: 0;
  animation: pulse 3s infinite;
}

@keyframes pulse {
  0% {
    transform: scale(0.8);
    opacity: 0.5;
  }

  100% {
    transform: scale(1.5);
    opacity: 0;
  }
}

.app-screen {
  width: 280px;
  height: 560px;
  background: #1a1a1a;
  border-radius: 40px;
  border: 8px solid #333;
  position: relative;
  overflow: hidden;
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.5);
  z-index: 2;
}

.map-mock {
  width: 100%;
  height: 100%;
  background: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" width="100" height="100" viewBox="0 0 100 100"><rect width="100" height="100" fill="%23222"/><circle cx="50" cy="50" r="2" fill="%23444"/></svg>');
  opacity: 0.5;
}

.card-mock {
  position: absolute;
  bottom: 2rem;
  left: 50%;
  transform: translateX(-50%);
  width: 80%;
  height: 120px;
  background: rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(10px);
  border-radius: 20px;
  border: 1px solid var(--glass-border);
}

/* Features Section */
.features-section {
  padding: 6rem 0;
  background: linear-gradient(180deg, var(--bg-dark) 0%, #111 100%);
}

.section-title {
  text-align: center;
  font-size: 2.5rem;
  margin-bottom: 4rem;
}

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

.feature-card {
  background: var(--glass-bg);
  padding: 2rem;
  border-radius: 20px;
  border: 1px solid var(--glass-border);
  transition: var(--transition);
  cursor: pointer;
  position: relative;
  overflow: hidden;
}

.feature-card:hover {
  transform: translateY(-5px);
  border-color: var(--primary-color);
}

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

.feature-card h3 {
  font-size: 1.5rem;
  margin-bottom: 1rem;
}

.feature-card p {
  color: var(--text-muted);
}

/* Providers Section */
.providers-section {
  padding: 6rem 0;
  text-align: center;
}

.providers-grid {
  display: flex;
  justify-content: center;
  gap: 3rem;
  flex-wrap: wrap;
  margin-top: 3rem;
}

.provider-logo {
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--text-muted);
  padding: 1rem 2rem;
  border: 1px solid var(--glass-border);
  border-radius: 10px;
  opacity: 0.7;
  transition: var(--transition);
  text-decoration: none;
  display: inline-block;
}

.provider-logo:hover {
  opacity: 1;
  color: #fff;
  border-color: var(--primary-color);
  transform: translateY(-3px);
}

/* Image Logo Styles */
.logo-ute-img {
  padding: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  background: transparent;
  border-radius: 10px;
  overflow: hidden;
  border: 1px solid var(--glass-border);
  transition: var(--transition);
}

.logo-ute-img img {
  height: 50px;
  width: auto;
  display: block;
}

.logo-ute-img:hover {
  border-color: var(--primary-color);
  transform: translateY(-3px);
  box-shadow: 0 5px 15px rgba(0, 84, 166, 0.3);
}

.logo-evergo-img {
  padding: 0.8rem 1.5rem;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(255, 255, 255, 0.05);
  border-radius: 10px;
  border: 1px solid var(--glass-border);
  transition: var(--transition);
}

.logo-evergo-img img {
  height: 25px;
  width: auto;
  display: block;
}

.logo-evergo-img:hover {
  background: rgba(255, 255, 255, 0.1);
  border-color: var(--primary-color);
  transform: translateY(-3px);
}

/* Footer */
footer {
  padding: 4rem 0;
  border-top: 1px solid var(--glass-border);
  text-align: center;
}

.footer-brand {
  font-size: 1.5rem;
  font-weight: 700;
  margin-bottom: 1rem;
}

#footer-rights {
  color: var(--text-muted);
}

/* Animations */
.animate-up {
  opacity: 0;
  transform: translateY(20px);
  animation: fadeUp 0.8s forwards;
}

.animate-fade {
  opacity: 0;
  animation: fadeIn 1s forwards;
}

.delay-1 {
  animation-delay: 0.2s;
}

.delay-2 {
  animation-delay: 0.4s;
}

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

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

/* Responsive Design */
@media (max-width: 768px) {

  /* Header Adjustments */
  .glass-header {
    padding: 0.8rem 0;
  }

  .header-content {
    flex-direction: row;
  }

  .logo-img {
    height: 60px;
    /* Much smaller logo on mobile to fit */
  }

  .lang-switcher {
    gap: 0.2rem;
  }

  .lang-btn {
    padding: 0.3rem 0.6rem;
    font-size: 0.8rem;
  }

  /* Hero Adjustments */
  .hero-section {
    padding: 6rem 0 3rem;
    text-align: center;
    min-height: auto;
  }

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

  .hero-text h1 {
    font-size: 2.2rem;
    line-height: 1.2;
  }

  .hero-text p {
    font-size: 1rem;
    margin: 0 auto 2rem;
  }

  .cta-group {
    flex-direction: column;
    align-items: center;
    gap: 1rem;
  }

  .btn-primary,
  .btn-secondary {
    width: 100%;
    max-width: 280px;
    padding: 0.8rem 0;
  }

  /* Visual Adjustments */
  .mockup-placeholder {
    height: 400px;
    margin-top: 1rem;
  }

  .app-screen {
    width: 220px;
    height: 440px;
  }

  .pulse-ring {
    width: 240px;
    height: 240px;
  }

  /* Features & Providers */
  .features-grid {
    grid-template-columns: 1fr;
    padding: 0 1rem;
  }

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

  .providers-grid {
    gap: 1rem;
    flex-direction: column;
    align-items: center;
  }

  .provider-logo {
    width: 100%;
    max-width: 200px;
    text-align: center;
  }

  /* Footer */
  .store-links {
    flex-direction: column;
    align-items: center;
  }

  /* Modal */
  .modal-content {
    width: 90%;
    padding: 1.5rem;
    margin: 0 1rem;
  }
}

/* Store Links */
.store-links {
  display: flex;
  gap: 1.5rem;
  justify-content: center;
  margin: 2rem 0;
  flex-wrap: wrap;
}

.store-btn {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  background: #000;
  border: 1px solid var(--glass-border);
  padding: 0.5rem 1.25rem;
  border-radius: 10px;
  text-decoration: none;
  color: #fff;
  transition: var(--transition);
  min-width: 160px;
}

.store-btn:hover {
  background: #1a1a1a;
  border-color: var(--primary-color);
  transform: translateY(-3px);
}

.store-icon {
  display: flex;
  align-items: center;
  justify-content: center;
}

.store-text {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  line-height: 1.2;
}

.small-text {
  font-size: 0.7rem;
  opacity: 0.8;
}

.large-text {
  font-size: 1.1rem;
  font-weight: 600;
}

/* Footer Adjustments */
.footer-content {
  display: flex;
  flex-direction: column;
  align-items: center;
}

/* Intro Overlay */
#intro-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.9);
  z-index: 9999;
  display: flex;
  justify-content: center;
  align-items: center;
  transition: opacity 1s ease-out;
  cursor: pointer;
}

#intro-video {
  width: 80%;
  max-width: 1000px;
  height: auto;
  max-height: 80vh;
  border-radius: 20px;
  box-shadow: 0 0 50px rgba(0, 255, 136, 0.2);
  object-fit: contain;
}

/* Electric Border Animation */
.electric-border-active {
  position: relative;
}

.electric-border-active::before {
  content: '';
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 9998;
  box-shadow: inset 0 0 20px var(--primary-color), inset 0 0 40px var(--secondary-color);
  animation: electric-flow 2s linear infinite;
  opacity: 0;
  animation-fill-mode: forwards;
}

.site-reveal {
  animation: reveal-site 1.5s ease-out forwards;
}

@keyframes reveal-site {
  0% {
    opacity: 0;
    transform: scale(0.98);
  }

  100% {
    opacity: 1;
    transform: scale(1);
  }
}

@keyframes electric-flow {
  0% {
    box-shadow: inset 0 0 10px var(--primary-color);
    opacity: 0;
  }

  20% {
    opacity: 1;
  }

  50% {
    box-shadow: inset 0 0 30px var(--secondary-color), inset 0 0 10px var(--primary-color);
  }

  100% {
    box-shadow: inset 0 0 10px var(--primary-color);
    opacity: 0;
  }
}

/* Particle Canvas */
#particles-canvas {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 9997;
  opacity: 0.8;
}

/* Lightning SVG */
#lightning-svg {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 9996;
}

.lightning-bolt {
  stroke: var(--primary-color);
  stroke-width: 2;
  fill: none;
  filter: url(#glow);
  opacity: 0;
  animation: lightning-flash 0.3s ease-out;
}

@keyframes lightning-flash {

  0%,
  100% {
    opacity: 0;
  }

  10%,
  30%,
  50% {
    opacity: 1;
  }

  20%,
  40% {
    opacity: 0.3;
  }
}

/* Button Spark Effects */
.btn-primary,
.btn-secondary,
.store-btn,
.lang-btn {
  position: relative;
  overflow: hidden;
}

.btn-primary::before,
.btn-secondary::before {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  width: 0;
  height: 0;
  border-radius: 50%;
  background: radial-gradient(circle, var(--primary-color) 0%, transparent 70%);
  transform: translate(-50%, -50%);
  opacity: 0;
  transition: width 0.6s, height 0.6s, opacity 0.6s;
}

.btn-primary:hover::before,
.btn-secondary:hover::before {
  width: 300px;
  height: 300px;
  opacity: 0.3;
}

.btn-primary::after,
.btn-secondary::after {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: 50px;
  padding: 2px;
  background: linear-gradient(45deg, var(--primary-color), var(--secondary-color), var(--primary-color));
  -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
  mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
  -webkit-mask-composite: xor;
  mask-composite: exclude;
  opacity: 0;
  animation: spark-rotate 3s linear infinite;
}

.btn-primary:hover::after,
.btn-secondary:hover::after {
  opacity: 0.6;
}

@keyframes spark-rotate {
  0% {
    transform: rotate(0deg);
  }

  100% {
    transform: rotate(360deg);
  }
}

/* Button Click Lightning Effect */
.btn-lightning-active {
  animation: btn-lightning-flash 0.4s ease-out;
}

@keyframes btn-lightning-flash {
  0% {
    box-shadow: 0 0 0 0 rgba(255, 255, 255, 0);
    border-color: transparent;
  }

  20% {
    box-shadow: 0 0 10px 2px #fff, 0 0 20px 5px var(--primary-color);
    border-color: #fff;
  }

  50% {
    box-shadow: 0 0 5px 1px #fff, 0 0 15px 2px var(--secondary-color);
    border-color: var(--primary-color);
  }

  100% {
    box-shadow: 0 0 0 0 rgba(255, 255, 255, 0);
    border-color: transparent;
  }
}

#play-btn {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  padding: 1rem 2rem;
  font-size: 1.2rem;
  font-weight: bold;
  color: #000;
  background: var(--primary-color);
  border: none;
  border-radius: 50px;
  cursor: pointer;
  box-shadow: 0 0 20px rgba(0, 255, 136, 0.5);
  z-index: 10000;
  transition: transform 0.2s, box-shadow 0.2s;
}

#play-btn:hover {
  transform: translate(-50%, -50%) scale(1.05);
  box-shadow: 0 0 30px rgba(0, 255, 136, 0.8);
}

/* Modal Styles */
.modal {
  display: none;
  position: fixed;
  z-index: 10001;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.8);
  backdrop-filter: blur(5px);
  align-items: center;
  justify-content: center;
  opacity: 0;
  transition: opacity 0.3s ease;
}

.modal.show {
  display: flex;
  opacity: 1;
}

.modal-content {
  background-color: #1a1a1a;
  padding: 2rem;
  border: 1px solid var(--glass-border);
  border-radius: 20px;
  width: 80%;
  max-width: 600px;
  position: relative;
  transform: scale(0.8);
  transition: transform 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
  box-shadow: 0 0 30px rgba(0, 255, 136, 0.1);
}

.modal.show .modal-content {
  transform: scale(1);
}

/* Lightning border for modal */
.modal-content.lightning-border {
  animation: modal-lightning 2s infinite;
}

@keyframes modal-lightning {

  0%,
  100% {
    box-shadow: 0 0 10px var(--primary-color), inset 0 0 5px var(--primary-color);
    border-color: var(--primary-color);
  }

  50% {
    box-shadow: 0 0 20px var(--secondary-color), inset 0 0 10px var(--secondary-color);
    border-color: var(--secondary-color);
  }
}

.close-modal {
  color: #aaa;
  float: right;
  font-size: 28px;
  font-weight: bold;
  cursor: pointer;
  transition: color 0.3s;
}

.close-modal:hover,
.close-modal:focus {
  color: var(--primary-color);
  text-decoration: none;
  cursor: pointer;
}

#modal-title {
  margin-bottom: 1rem;
  color: var(--primary-color);
}

#modal-desc {
  line-height: 1.6;
  color: var(--text-light);
}