:root {
  --primary: #20BF55;
  --secondary: #01BAEF;
  --dark: #0B132B;
  --dark-light: #1C2541;
  --light: #F8F9FA;
  --white: #FFFFFF;
  --gradient: linear-gradient(90deg, var(--primary), var(--secondary));
  --shadow: 0 10px 30px rgba(1, 186, 239, 0.15);
  --border-radius: 8px;
  --transition: all 0.3s ease;
}

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

html {
  scroll-behavior: smooth;
}

body {
  font-family: 'Inter', 'Segoe UI', Roboto, sans-serif;
  background-color: var(--dark);
  color: var(--light);
  line-height: 1.6;
  overflow-x: hidden;
}

.container {
  width: 90%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 15px;
}

a {
  color: inherit;
  text-decoration: none;
  transition: var(--transition);
}

ul {
  list-style: none;
}

/* Typography */
h1, h2, h3, h4, h5, h6 {
  margin-bottom: 0.8em;
  font-weight: 700;
  line-height: 1.3;
}

h1 {
  font-size: clamp(2.5rem, 7vw, 3.5rem);
}

h2 {
  font-size: clamp(2rem, 5vw, 2.8rem);
}

h3 {
  font-size: clamp(1.3rem, 3vw, 1.8rem);
}

p {
  margin-bottom: 1.5rem;
}

.gradient-text {
  background: var(--gradient);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  display: inline-block;
}

.section-title {
  text-align: center;
  margin-bottom: 3rem;
  position: relative;
}

.section-title::after {
  content: '';
  display: block;
  width: 80px;
  height: 4px;
  background: var(--gradient);
  border-radius: 2px;
  margin: 15px auto 0;
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.75rem 1.5rem;
  border-radius: 50px;
  font-weight: 600;
  transition: all 0.3s ease;
}

.btn-primary {
  background: var(--gradient);
  color: var(--white);
  box-shadow: 0 4px 15px rgba(32, 191, 85, 0.3);
}

.btn-primary:hover {
  transform: translateY(-3px);
  box-shadow: 0 6px 20px rgba(32, 191, 85, 0.4);
}

.btn-secondary {
  background: rgba(255, 255, 255, 0.1);
  color: var(--white);
  border: 1px solid rgba(255, 255, 255, 0.2);
}

.btn-secondary:hover {
  background: rgba(255, 255, 255, 0.15);
  transform: translateY(-3px);
}

.btn-lg {
  padding: 1rem 2.5rem;
  font-size: 1.1rem;
}

.btn-xl {
  padding: 1.2rem 3rem;
  font-size: 1.2rem;
}

/* Header */
header {
  position: fixed;
  width: 100%;
  top: 0;
  left: 0;
  padding: 20px 0;
  z-index: 1000;
  background: rgba(11, 19, 43, 0.8);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  box-shadow: 0 2px 20px rgba(0, 0, 0, 0.1);
  transition: all 0.3s ease;
}

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

.logo {
  display: flex;
  align-items: center;
  gap: 12px;
  font-weight: 700;
  font-size: 1.2rem;
}

.logo .highlight {
  color: var(--secondary);
}

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

.nav-links a {
  position: relative;
  font-weight: 500;
}

.nav-links a:not(.btn)::after {
  content: '';
  position: absolute;
  bottom: -4px;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--gradient);
  transition: width 0.3s ease;
}

.nav-links a:not(.btn):hover::after {
  width: 100%;
}

.mobile-menu-toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  width: 30px;
  height: 24px;
  position: relative;
  z-index: 1001;
}

.mobile-menu-toggle span {
  display: block;
  position: absolute;
  height: 3px;
  width: 100%;
  background: var(--light);
  border-radius: 3px;
  opacity: 1;
  left: 0;
  transform: rotate(0deg);
  transition: .25s ease-in-out;
}

.mobile-menu-toggle span:nth-child(1) {
  top: 0px;
}

.mobile-menu-toggle span:nth-child(2) {
  top: 10px;
}

.mobile-menu-toggle span:nth-child(3) {
  top: 20px;
}

/* Hero Section */
#hero {
  padding: 180px 0 100px;
  position: relative;
  overflow: hidden;
}

#hero::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: radial-gradient(circle at 10% 30%, rgba(32, 191, 85, 0.1), transparent 40%),
               radial-gradient(circle at 90% 70%, rgba(1, 186, 239, 0.1), transparent 40%);
  z-index: -1;
}

.hero-content {
  max-width: 600px;
  margin-bottom: 50px;
}

.hero-content h1 {
  margin-bottom: 1.5rem;
}

.hero-content p {
  font-size: 1.2rem;
  margin-bottom: 2rem;
  opacity: 0.9;
}

.cta-buttons {
  display: flex;
  gap: 1rem;
  margin-top: 2rem;
}

.hero-visual {
  margin-top: 3rem;
  display: flex;
  justify-content: center;
}

.hex-grid {
  max-width: 450px;
}

.hex-grid svg {
  width: 100%;
}

.hex {
  stroke: rgba(255, 255, 255, 0.1);
  fill: rgba(255, 255, 255, 0.03);
  transition: all 0.5s ease;
}

.hex.active {
  stroke: var(--secondary);
  fill: rgba(1, 186, 239, 0.1);
  filter: drop-shadow(0 0 8px rgba(1, 186, 239, 0.4));
}

/* Features Section */
#features {
  padding: 100px 0;
  background: linear-gradient(to bottom, var(--dark), var(--dark-light));
}

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

.feature-card {
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.05);
  border-radius: var(--border-radius);
  padding: 30px;
  transition: var(--transition);
  text-align: center;
}

.feature-card:hover {
  transform: translateY(-10px);
  box-shadow: var(--shadow);
  border-color: rgba(32, 191, 85, 0.1);
}

.feature-icon {
  margin-bottom: 20px;
  display: inline-flex;
}

.feature-icon svg {
  width: 60px;
  height: 60px;
}

/* How It Works Section */
#how-it-works {
  padding: 100px 0;
}

.steps-container {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 20px;
  margin-bottom: 50px;
  flex-wrap: wrap;
}

.step {
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.05);
  border-radius: var(--border-radius);
  padding: 30px;
  text-align: center;
  flex: 1;
  min-width: 230px;
  transition: var(--transition);
}

.step:hover {
  transform: translateY(-10px);
  border-color: rgba(1, 186, 239, 0.2);
  box-shadow: var(--shadow);
}

.step-number {
  background: var(--gradient);
  color: var(--white);
  width: 50px;
  height: 50px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  font-weight: bold;
  margin: 0 auto 20px;
}

.step-connector {
  height: 2px;
  background: linear-gradient(to right, var(--primary), var(--secondary));
  flex-grow: 0.5;
  max-width: 80px;
}

.cta-center {
  text-align: center;
  margin-top: 40px;
}

/* Stats Section */
#stats {
  padding: 80px 0;
  background: rgba(255, 255, 255, 0.02);
}

.stats-grid {
  display: flex;
  justify-content: space-between;
  gap: 30px;
  flex-wrap: wrap;
}

.stat-card {
  background: var(--dark);
  border: 1px solid rgba(255, 255, 255, 0.05);
  border-radius: var(--border-radius);
  padding: 30px;
  text-align: center;
  flex: 1;
  min-width: 200px;
  transition: var(--transition);
}

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

.stat-number {
  font-size: 3rem;
  font-weight: 700;
  background: var(--gradient);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  margin-bottom: 10px;
}

.stat-label {
  opacity: 0.8;
}

/* FAQ Section */
#faq {
  padding: 100px 0;
}

.faq-container {
  max-width: 800px;
  margin: 0 auto;
}

.faq-item {
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.05);
  border-radius: var(--border-radius);
  margin-bottom: 15px;
  overflow: hidden;
  transition: var(--transition);
}

.faq-question {
  padding: 20px;
  cursor: pointer;
  font-weight: 600;
  position: relative;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.faq-question::after {
  content: "+";
  font-size: 1.5rem;
  color: var(--secondary);
}

.faq-item.active .faq-question::after {
  content: "-";
}

.faq-answer {
  padding: 0 20px;
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.3s ease, padding 0.3s ease;
}

.faq-item.active .faq-answer {
  padding: 0 20px 20px;
  max-height: 1000px;
}

/* CTA Section */
#cta-section {
  padding: 100px 0;
  text-align: center;
  background: linear-gradient(135deg, rgba(32, 191, 85, 0.05), rgba(1, 186, 239, 0.05));
  position: relative;
  overflow: hidden;
}

#cta-section::before {
  content: '';
  position: absolute;
  width: 300px;
  height: 300px;
  border-radius: 50%;
  background: radial-gradient(rgba(32, 191, 85, 0.2), transparent);
  top: -150px;
  left: -150px;
  opacity: 0.3;
}

#cta-section::after {
  content: '';
  position: absolute;
  width: 300px;
  height: 300px;
  border-radius: 50%;
  background: radial-gradient(rgba(1, 186, 239, 0.2), transparent);
  bottom: -150px;
  right: -150px;
  opacity: 0.3;
}

#cta-section p {
  max-width: 600px;
  margin: 0 auto 2rem;
  opacity: 0.8;
}

/* Footer */
footer {
  background: var(--dark-light);
  padding: 70px 0 30px;
}

.footer-top {
  display: flex;
  justify-content: space-between;
  margin-bottom: 50px;
  flex-wrap: wrap;
  gap: 40px;
}

.footer-logo {
  display: flex;
  align-items: center;
  gap: 15px;
}

.footer-site {
  font-weight: 700;
  font-size: 1.1rem;
}

.footer-tagline {
  font-size: 0.9rem;
  opacity: 0.6;
}

.footer-links {
  display: flex;
  gap: 60px;
  flex-wrap: wrap;
}

.footer-column h3 {
  color: var(--secondary);
  margin-bottom: 20px;
  font-size: 1.1rem;
}

.footer-column {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.footer-column a {
  opacity: 0.7;
  transition: var(--transition);
}

.footer-column a:hover {
  opacity: 1;
  color: var(--primary);
}

.footer-bottom {
  text-align: center;
  border-top: 1px solid rgba(255, 255, 255, 0.05);
  padding-top: 30px;
}

.footer-bottom p {
  opacity: 0.5;
  font-size: 0.9rem;
  margin: 0;
}

/* SVG Gradient Definitions */
svg defs {
  position: absolute;
}

/* Responsive Styles */
@media (max-width: 992px) {
  .steps-container {
    flex-direction: column;
    gap: 30px;
  }
  
  .step-connector {
    width: 2px;
    height: 30px;
    max-width: none;
  }
  
  .stats-grid {
    gap: 20px;
  }
}

@media (max-width: 768px) {
  .mobile-menu-toggle {
    display: block;
  }
  
  .nav-links {
    position: fixed;
    top: 0;
    right: -100%;
    width: 250px;
    height: 100vh;
    background: var(--dark-light);
    flex-direction: column;
    align-items: flex-start;
    padding: 80px 30px 30px;
    transition: right 0.3s ease;
    z-index: 1000;
    box-shadow: -5px 0 30px rgba(0, 0, 0, 0.3);
    gap: 25px;
  }
  
  .nav-links.active {
    right: 0;
  }
  
  .cta-buttons {
    flex-direction: column;
  }
  
  .footer-top {
    flex-direction: column;
    gap: 30px;
  }
  
  .mobile-menu-toggle.active span:nth-child(1) {
    transform: rotate(45deg);
    top: 10px;
  }
  
  .mobile-menu-toggle.active span:nth-child(2) {
    opacity: 0;
  }
  
  .mobile-menu-toggle.active span:nth-child(3) {
    transform: rotate(-45deg);
    top: 10px;
  }
}

@media (max-width: 576px) {
  .features-grid {
    grid-template-columns: 1fr;
  }
  
  .stats-grid {
    flex-direction: column;
  }
  
  .btn {
    width: 100%;
  }
  
  .footer-links {
    gap: 30px;
    flex-direction: column;
  }
}

/* Animation for feature gradient */
@keyframes gradientFlow {
  0% {
    stop-color: var(--primary);
  }
  50% {
    stop-color: var(--secondary);
  }
  100% {
    stop-color: var(--primary);
  }
}
