:root {
  --bg1: #051712;
  --bg2: #0c2f25;
  --glow: #5cf2a5;
  --text: #e8f7ec;
  --glass: rgba(255, 255, 255, 0.09);
  --primary: #5cf2a5;
  --primary-dark: #4dd894;
  --secondary: rgba(92, 242, 165, 0.2);
}

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

html, body {
  height: 100%;
  margin: 0;
}

body {
  font-family: "Montserrat", sans-serif;
  color: var(--text);
  background-color: #041611;
  background-image: url("/static/background.png");
  background-repeat: no-repeat;
  background-position: center top;
  background-size: cover;
  background-attachment: scroll;
  overflow-x: hidden;
  position: relative;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  background: rgba(255, 255, 255, 0.08);
  mix-blend-mode: screen;
  pointer-events: none;
  z-index: -1;
}

.page-wrapper {
  position: relative;
  z-index: 1;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

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

/* Navigation */
.navbar {
  position: relative;
  z-index: 10000;
  height: 70px;
  padding: 0 50px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(5, 23, 18, 0.8);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid rgba(92, 242, 165, 0.1);
}

.nav-container {
  width: 100%;
  max-width: 1400px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

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

.logo-img {
  width: 44px;
  height: 44px;
}

.logo-text {
  font-weight: 700;
  font-size: 22px;
  color: var(--text);
}

.mobile-menu-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: transparent;
  border: none;
  cursor: pointer;
  padding: 8px;
  z-index: 10000;
  position: relative;
}

.mobile-menu-toggle span {
  width: 25px;
  height: 3px;
  background: var(--text);
  border-radius: 2px;
  transition: all 0.3s ease;
}

.mobile-menu-toggle.active span:nth-child(1) {
  transform: rotate(45deg) translate(8px, 8px);
}

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

.mobile-menu-toggle.active span:nth-child(3) {
  transform: rotate(-45deg) translate(7px, -7px);
}

.nav-links {
  display: flex;
  flex-direction: row;
  align-items: center;
  gap: 32px;
  font-size: 13px;
  font-weight: 700;
}

.nav-link {
  text-decoration: none;
  color: var(--text);
  opacity: 0.85;
  transition: all 0.3s ease;
  position: relative;
}

.nav-link:hover {
  opacity: 1;
  text-shadow: 0 0 6px var(--glow);
}

.nav-link.active {
  opacity: 1;
  color: var(--glow);
}

.nav-link.active::after {
  content: "";
  position: absolute;
  bottom: -5px;
  left: 0;
  right: 0;
  height: 2px;
  background: var(--glow);
  box-shadow: 0 0 8px var(--glow);
}

.user-info {
  display: flex;
  flex-direction: row;
  align-items: center;
  gap: 16px;
  margin-left: 20px;
  padding-left: 20px;
  border-left: 1px solid rgba(92, 242, 165, 0.2);
}

.user-name {
  color: var(--text);
  font-weight: 600;
  font-size: 14px;
  font-family: "Montserrat", sans-serif;
}

.logout-btn {
  background: transparent;
  border: 1px solid rgba(255, 255, 255, 0.3);
  color: var(--text);
  padding: 6px 14px;
  border-radius: 8px;
  text-decoration: none;
  font-weight: 600;
  font-size: 13px;
  transition: all 0.3s ease;
  cursor: pointer;
  font-family: "Montserrat", sans-serif;
}

.logout-btn:hover {
  background: rgba(239, 68, 68, 0.2);
  border-color: #ef4444;
  color: #ef4444;
  transform: translateY(-1px);
}

/* Hero Section */
.hero-section {
  padding: 100px 20px 80px;
  text-align: center;
  position: relative;
  z-index: 1;
}

.hero-content {
  max-width: 800px;
  margin: 0 auto 60px;
}

.hero-badge {
  display: inline-block;
  padding: 8px 20px;
  background: var(--glass);
  border: 1px solid rgba(92, 242, 165, 0.3);
  border-radius: 20px;
  font-size: 12px;
  font-weight: 600;
  color: var(--glow);
  margin-bottom: 30px;
  text-transform: uppercase;
  letter-spacing: 1px;
}

.hero-title {
  font-size: 72px;
  font-weight: 800;
  margin-bottom: 20px;
  background: linear-gradient(135deg, var(--text) 0%, var(--glow) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  text-shadow: 0 0 30px rgba(92, 242, 165, 0.5);
}

.hero-subtitle {
  font-size: 20px;
  font-weight: 400;
  opacity: 0.9;
  margin-bottom: 40px;
  line-height: 1.6;
}

.hero-cta {
  display: flex;
  gap: 20px;
  justify-content: center;
  flex-wrap: wrap;
}

.btn {
  padding: 14px 32px;
  border-radius: 8px;
  font-size: 16px;
  font-weight: 600;
  text-decoration: none;
  transition: all 0.3s ease;
  border: none;
  cursor: pointer;
  display: inline-block;
}

.btn-primary {
  background: var(--glow);
  color: var(--bg1);
  box-shadow: 0 4px 20px rgba(92, 242, 165, 0.4);
}

.btn-primary:hover {
  background: var(--primary-dark);
  box-shadow: 0 6px 30px rgba(92, 242, 165, 0.6);
  transform: translateY(-2px);
}

.btn-secondary {
  background: var(--glass);
  color: var(--text);
  border: 1px solid rgba(92, 242, 165, 0.3);
}

.btn-secondary:hover {
  background: rgba(92, 242, 165, 0.1);
  border-color: var(--glow);
  transform: translateY(-2px);
}

.btn-large {
  padding: 18px 40px;
  font-size: 18px;
}

.hero-stats {
  display: flex;
  gap: 30px;
  justify-content: center;
  flex-wrap: wrap;
  margin-top: 60px;
}

.stat-card {
  background: var(--glass);
  border: 1px solid rgba(92, 242, 165, 0.2);
  border-radius: 12px;
  padding: 30px 40px;
  text-align: center;
  backdrop-filter: blur(10px);
  transition: all 0.3s ease;
  flex: 1;
  min-width: 150px;
  max-width: 250px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
}

.stat-card:hover {
  border-color: var(--glow);
  box-shadow: 0 8px 30px rgba(92, 242, 165, 0.3);
  transform: translateY(-5px);
}

.stat-value {
  font-size: 28px;
  font-weight: 800;
  color: var(--glow);
  margin-bottom: 8px;
  text-shadow: 0 0 10px rgba(92, 242, 165, 0.5);
  line-height: 1.2;
}

.stat-label {
  font-size: 14px;
  opacity: 0.8;
  font-weight: 500;
}

/* Features Section */
.features-section {
  padding: 100px 20px;
  background: rgba(5, 23, 18, 0.3);
  position: relative;
}

.features-section::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image: url("/static/background.png");
  background-repeat: no-repeat;
  background-position: center top;
  background-size: cover;
  opacity: 0.5;
  z-index: -1;
}

.section-title {
  font-size: 48px;
  font-weight: 800;
  text-align: center;
  margin-bottom: 60px;
  color: var(--text);
}

.features-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 30px;
  margin-top: 60px;
}

.feature-card {
  background: var(--glass);
  border: 1px solid rgba(92, 242, 165, 0.2);
  border-radius: 16px;
  padding: 40px 30px;
  text-align: center;
  backdrop-filter: blur(10px);
  transition: all 0.3s ease;
}

.feature-card:hover {
  border-color: var(--glow);
  box-shadow: 0 10px 40px rgba(92, 242, 165, 0.2);
  transform: translateY(-5px);
}

.feature-icon {
  font-size: 48px;
  margin-bottom: 20px;
}

.feature-title {
  font-size: 22px;
  font-weight: 700;
  margin-bottom: 15px;
  color: var(--text);
}

.feature-desc {
  font-size: 15px;
  line-height: 1.6;
  opacity: 0.85;
}

/* How It Works Section */
.how-it-works-section {
  padding: 100px 20px;
  background: rgba(12, 47, 37, 0.5);
  position: relative;
}

.how-it-works-section::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image: url("/static/background.png");
  background-repeat: no-repeat;
  background-position: center top;
  background-size: cover;
  opacity: 0.4;
  z-index: -1;
}

.steps-container {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 40px;
  margin-top: 60px;
}

.step-item {
  text-align: center;
  position: relative;
}

.step-number {
  width: 60px;
  height: 60px;
  background: var(--glow);
  color: var(--bg1);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 28px;
  font-weight: 800;
  margin: 0 auto 20px;
  box-shadow: 0 4px 20px rgba(92, 242, 165, 0.4);
}

.step-title {
  font-size: 22px;
  font-weight: 700;
  margin-bottom: 12px;
  color: var(--text);
}

.step-desc {
  font-size: 15px;
  line-height: 1.6;
  opacity: 0.85;
}

/* CTA Section */
.cta-section {
  padding: 100px 20px;
  text-align: center;
  background: rgba(5, 23, 18, 0.3);
  position: relative;
}

.cta-section::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image: url("/static/background.png");
  background-repeat: no-repeat;
  background-position: center top;
  background-size: cover;
  opacity: 0.35;
  z-index: -1;
}

.cta-title {
  font-size: 48px;
  font-weight: 800;
  margin-bottom: 20px;
  color: var(--text);
}

.cta-subtitle {
  font-size: 20px;
  opacity: 0.9;
  margin-bottom: 40px;
}

/* Footer */
.footer {
  margin-top: auto;
  padding: 40px 20px;
  background: rgba(5, 23, 18, 0.8);
  border-top: 1px solid rgba(92, 242, 165, 0.1);
}

.footer-content {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 30px;
  flex-wrap: wrap;
  gap: 20px;
}

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

.footer-logo-img {
  width: 36px;
  height: 36px;
}

.footer-logo-text {
  font-weight: 700;
  font-size: 18px;
  color: var(--text);
}

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

.footer-link {
  text-decoration: none;
  color: var(--text);
  opacity: 0.8;
  font-size: 14px;
  transition: all 0.3s ease;
}

.footer-link:hover {
  opacity: 1;
  color: var(--glow);
}

.footer-bottom {
  text-align: center;
  opacity: 0.6;
  font-size: 14px;
}

.footer-bottom p {
  margin: 4px 0;
}

.footer-bottom p:first-child {
  margin-top: 0;
}

.footer-bottom p:last-child {
  margin-bottom: 0;
}

/* Responsive */
@media (max-width: 768px) {
  body {
    background-attachment: scroll;
    background-size: cover;
  }

  .navbar {
    padding: 0 20px;
  }

  .mobile-menu-toggle {
    display: flex;
  }

  .nav-links {
    position: fixed !important;
    top: 70px;
    left: 0;
    right: 0;
    background: rgba(5, 23, 18, 0.98);
    backdrop-filter: blur(10px);
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    padding: 20px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
    border-bottom: 1px solid rgba(92, 242, 165, 0.2);
    max-height: 0;
    overflow: hidden;
    opacity: 0;
    pointer-events: none;
    transition: max-height 0.3s ease, opacity 0.3s ease, padding 0.3s ease;
    z-index: 99999 !important;
  }

  .nav-links.active {
    max-height: 500px;
    opacity: 1;
    pointer-events: auto !important;
  }

  .nav-links.active .nav-link {
    pointer-events: auto !important;
    cursor: pointer !important;
    position: relative !important;
    z-index: 100000 !important;
  }
  
  .user-info {
    width: 100%;
    margin-left: 0;
    padding-left: 0;
    border-left: none;
    border-top: 1px solid rgba(92, 242, 165, 0.2);
    padding-top: 20px;
    flex-direction: column;
    align-items: flex-start;
    gap: 16px;
  }

  .nav-link {
    padding: 12px 0;
    border-bottom: 1px solid rgba(92, 242, 165, 0.1);
    width: 100%;
    text-align: left;
    display: block !important;
    cursor: pointer !important;
    text-decoration: none !important;
    pointer-events: auto !important;
    position: relative !important;
    z-index: 100000 !important;
  }

  .nav-link:last-child {
    border-bottom: none;
  }

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

  .nav-link.active {
    color: var(--glow);
    padding-left: 8px;
    border-left: 3px solid var(--glow);
  }

  .hero-title {
    font-size: 48px;
  }

  .hero-subtitle {
    font-size: 18px;
  }

  .hero-stats {
    gap: 15px;
    margin-top: 40px;
  }

  .stat-card {
    padding: 20px 24px;
    min-width: 100px;
    max-width: none;
    flex: 1;
  }

  .stat-value {
    font-size: 22px;
  }

  .section-title {
    font-size: 36px;
  }
}

@media (max-width: 968px) {
  .features-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 768px) {
  .features-grid {
    grid-template-columns: 1fr;
  }

  .steps-container {
    grid-template-columns: 1fr;
  }

  .footer-content {
    flex-direction: column;
    text-align: center;
  }
}

