:root {
  --accent-electric: #00FF94;
  --accent-purple: #B026FF;
  --accent-cyan: #00E5FF;
  --dark-bg: #0A0A0F;
  --dark-surface: #14141F;
  --dark-elevated: #1C1C2E;
  --text-primary: #FFFFFF;
  --text-secondary: #A0A0B8;
  --text-muted: #6B6B85;
  --glow-green: rgba(0, 255, 148, 0.3);
  --glow-purple: rgba(176, 38, 255, 0.3);
}

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

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

h1, h2, h3 {
  font-family: 'Space Grotesk', sans-serif;
}

/* Animated background */
.bg-animation {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 0;
  opacity: 0.4;
  pointer-events: none;
}

.bg-orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(80px);
  animation: float 20s infinite ease-in-out;
}

.orb1 {
  width: 400px;
  height: 400px;
  background: var(--glow-green);
  top: -10%;
  right: -10%;
  animation-delay: 0s;
}

.orb2 {
  width: 350px;
  height: 350px;
  background: var(--glow-purple);
  bottom: -10%;
  left: -5%;
  animation-delay: 3s;
}

.orb3 {
  width: 250px;
  height: 250px;
  background: rgba(0, 229, 255, 0.2);
  top: 50%;
  left: 50%;
  animation-delay: 6s;
}

@keyframes float {
  0%, 100% { transform: translate(0, 0) scale(1); }
  33% { transform: translate(40px, -40px) scale(1.1); }
  66% { transform: translate(-40px, 40px) scale(0.9); }
}

/* Header */
header {
  position: fixed;
  top: 0;
  width: 100%;
  z-index: 1000;
  background: rgba(10, 10, 15, 0.9);
  backdrop-filter: blur(20px);
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.nav-wrapper {
  max-width: 1400px;
  margin: 0 auto;
  padding: 1rem 1.5rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.logo-section {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  text-decoration: none;
}

.logo-img {
  width: 36px;
  height: 36px;
  border-radius: 10px;
  box-shadow: 0 0 15px var(--glow-green);
  transition: all 0.3s ease;
}

.logo-img:hover {
  box-shadow: 0 0 25px var(--glow-green);
  transform: scale(1.05);
}

.logo-text {
  font-size: 1.1rem;
  font-weight: 600;
  background: linear-gradient(135deg, var(--accent-electric), var(--accent-cyan));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

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

nav a {
  color: var(--text-secondary);
  text-decoration: none;
  font-weight: 500;
  font-size: 0.9rem;
  transition: all 0.3s ease;
  position: relative;
  display: flex;
  align-items: center;
  gap: 0.4rem;
}

nav a::after {
  content: '';
  position: absolute;
  bottom: -5px;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--accent-electric);
  transition: width 0.3s ease;
}

nav a:hover {
  color: var(--text-primary);
}

nav a:hover::after {
  width: 100%;
}

.github-link svg {
  transition: transform 0.3s ease;
}

.github-link:hover svg {
  transform: scale(1.1);
}

.menu-toggle {
  display: none;
  flex-direction: column;
  gap: 4px;
  cursor: pointer;
  z-index: 1001;
}

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

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

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

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

.mobile-nav {
  display: none;
  flex-direction: column;
  position: absolute;
  top: 100%;
  left: 0;
  right: 0;
  background: rgba(20, 20, 31, 0.98);
  backdrop-filter: blur(20px);
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
  padding: 1rem 0;
  transform: translateY(-100%);
  opacity: 0;
  transition: all 0.3s ease;
}

.mobile-nav.active {
  transform: translateY(0);
  opacity: 1;
}

.mobile-nav a {
  color: var(--text-secondary);
  text-decoration: none;
  font-weight: 500;
  font-size: 0.95rem;
  padding: 0.8rem 1.5rem;
  transition: all 0.3s ease;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.mobile-nav a:hover {
  color: var(--text-primary);
  background: rgba(255, 255, 255, 0.03);
}

/* Hero */
.hero {
  position: relative;
  min-height: 85vh;
  display: flex;
  align-items: center;
  padding-top: 80px;
}

.hero-container {
  max-width: 1400px;
  margin: 0 auto;
  padding: 2rem 1.5rem;
  text-align: center;
}

.hero-content h1 {
  font-size: clamp(2.5rem, 8vw, 4.5rem);
  font-weight: 700;
  line-height: 1.1;
  margin-bottom: 1rem;
  letter-spacing: -0.02em;
}

.mayhem-text {
  background: linear-gradient(135deg, var(--accent-electric), var(--accent-purple), var(--accent-cyan));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  display: inline-block;
  animation: gradientShift 5s ease infinite;
}

@keyframes gradientShift {
  0%, 100% { filter: hue-rotate(0deg); }
  50% { filter: hue-rotate(30deg); }
}

.hero-content h2 {
  font-size: clamp(1.2rem, 4vw, 1.6rem);
  font-weight: 400;
  color: var(--text-secondary);
  margin-bottom: 1rem;
}

.hero-content p {
  font-size: clamp(1rem, 2.5vw, 1.15rem);
  color: var(--text-muted);
  margin-bottom: 2rem;
  font-weight: 300;
  max-width: 600px;
  margin-left: auto;
  margin-right: auto;
}

.cta-group {
  display: flex;
  gap: 1rem;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
}

.btn-primary {
  padding: 0.4rem 0.8rem;
  background: var(--dark-elevated);
  border: 1px solid rgba(0, 255, 148, 0.3);
  border-radius: 12px;
  transition: all 0.3s ease;
  display: inline-block;
  box-shadow: 0 0 20px rgba(0, 255, 148, 0.1);
}

.btn-primary:hover {
  transform: translateY(-3px);
  box-shadow: 0 0 40px rgba(0, 255, 148, 0.3);
  border-color: var(--accent-electric);
}

.btn-primary img {
  height: 48px;
  display: block;
}

.btn-github {
  padding: 0.8rem 1.5rem;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 12px;
  color: var(--text-primary);
  text-decoration: none;
  font-weight: 500;
  font-size: 0.95rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  transition: all 0.3s ease;
}

.btn-github:hover {
  background: rgba(255, 255, 255, 0.08);
  border-color: var(--accent-electric);
  transform: translateY(-3px);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
}

.hero-badges {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
  gap: 1.5rem;
  max-width: 700px;
  margin: 3rem auto 0;
}

.floating-badge {
  background: var(--dark-elevated);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 16px;
  padding: 1.5rem;
  backdrop-filter: blur(10px);
  animation: floatBadge 3s ease-in-out infinite;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
  text-align: center;
  transition: all 0.4s ease;
}

.floating-badge:nth-child(1) {
  animation-delay: 0s;
}

.floating-badge:nth-child(2) {
  animation-delay: 0.5s;
}

.floating-badge:nth-child(3) {
  animation-delay: 1s;
}

.floating-badge:nth-child(4) {
  animation-delay: 1.5s;
}

.floating-badge:hover {
  transform: translateY(-10px) scale(1.05);
  border-color: rgba(0, 255, 148, 0.3);
  box-shadow: 0 15px 40px rgba(0, 255, 148, 0.2);
}

@keyframes floatBadge {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-10px); }
}

.badge-icon {
  font-size: 2rem;
  margin-bottom: 0.5rem;
}

.badge-text {
  font-size: 0.9rem;
  color: var(--text-secondary);
  font-weight: 500;
}

/* Features */
.features {
  position: relative;
  padding: 5rem 1.5rem;
  background: linear-gradient(180deg, var(--dark-bg) 0%, var(--dark-surface) 100%);
}

.section-header {
  text-align: center;
  margin-bottom: 3rem;
}

.section-label {
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.15em;
  color: var(--accent-electric);
  font-weight: 600;
  margin-bottom: 0.8rem;
}

.section-title {
  font-size: clamp(2rem, 6vw, 3rem);
  font-weight: 700;
  margin-bottom: 0.8rem;
}

.section-subtitle {
  font-size: clamp(0.95rem, 2.5vw, 1.1rem);
  color: var(--text-secondary);
  max-width: 600px;
  margin: 0 auto;
}

.features-grid {
  max-width: 1400px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1.5rem;
}

.feature-card {
  background: var(--dark-elevated);
  border: 1px solid rgba(255, 255, 255, 0.05);
  border-radius: 16px;
  padding: 2rem;
  transition: all 0.4s ease;
  position: relative;
  overflow: hidden;
}

.feature-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 2px;
  background: linear-gradient(90deg, var(--accent-electric), var(--accent-purple));
  transform: scaleX(0);
  transition: transform 0.4s ease;
}

.feature-card:hover {
  transform: translateY(-8px);
  border-color: rgba(0, 255, 148, 0.2);
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.4);
}

.feature-card:hover::before {
  transform: scaleX(1);
}

.feature-icon {
  width: 50px;
  height: 50px;
  background: linear-gradient(135deg, rgba(0, 255, 148, 0.1), rgba(176, 38, 255, 0.1));
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  margin-bottom: 1.2rem;
}

.feature-card h3 {
  font-size: clamp(1.2rem, 3vw, 1.4rem);
  margin-bottom: 0.6rem;
  color: var(--text-primary);
}

.feature-card p {
  color: var(--text-secondary);
  line-height: 1.6;
  font-size: clamp(0.9rem, 2vw, 0.95rem);
}

/* Screenshots */
.screenshots {
  padding: 5rem 1.5rem;
  background: var(--dark-bg);
}

.screenshots-grid {
  max-width: 1200px;
  margin: 2rem auto 0;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 2rem;
}

.screenshot-item {
  position: relative;
  border-radius: 20px;
  overflow: hidden;
  transition: transform 0.4s ease;
}

.screenshot-item img {
  width: 100%;
  height: auto;
  display: block;
  border-radius: 20px;
  box-shadow: 0 15px 50px rgba(0, 0, 0, 0.5);
  transition: all 0.4s ease;
}

.screenshot-item:hover {
  transform: scale(1.03);
}

.screenshot-item:hover img {
  box-shadow: 0 20px 60px rgba(0, 255, 148, 0.3);
}

/* Philosophy */
.philosophy {
  padding: 5rem 1.5rem;
  background: linear-gradient(180deg, var(--dark-bg) 0%, var(--dark-surface) 100%);
}

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

.philosophy-content p {
  font-size: clamp(1rem, 2.5vw, 1.15rem);
  line-height: 1.8;
  color: var(--text-secondary);
  font-weight: 300;
}

/* Footer */
footer {
  background: var(--dark-elevated);
  border-top: 1px solid rgba(255, 255, 255, 0.05);
  padding: 2rem 1.5rem;
  text-align: center;
}

footer p {
  color: var(--text-muted);
  font-size: 0.9rem;
}

footer a {
  color: var(--accent-electric);
  text-decoration: none;
  transition: color 0.3s ease;
}

footer a:hover {
  color: var(--accent-cyan);
}

/* Responsive */
@media (max-width: 768px) {
  nav {
    display: none;
  }

  .menu-toggle {
    display: flex;
  }

  .mobile-nav {
    display: flex;
  }

  .hero {
    min-height: 70vh;
    padding-top: 70px;
  }

  .features-grid {
    grid-template-columns: 1fr;
  }

  .screenshots-grid {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }

  .btn-primary img {
    height: 42px;
  }

  .btn-github {
    padding: 0.7rem 1.2rem;
    font-size: 0.9rem;
  }

  .hero-badges {
    grid-template-columns: repeat(2, 1fr);
    gap: 1rem;
    margin-top: 2rem;
  }

  .floating-badge {
    padding: 1.2rem;
  }

  .badge-icon {
    font-size: 1.5rem;
  }

  .badge-text {
    font-size: 0.85rem;
  }
}

@media (max-width: 480px) {
  .nav-wrapper {
    padding: 0.8rem 1rem;
  }

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

  .logo-text {
    font-size: 1rem;
  }

  .hero {
    min-height: 65vh;
  }

  .cta-group {
    flex-direction: column;
    width: 100%;
  }

  .btn-primary,
  .btn-github {
    width: 100%;
    justify-content: center;
  }

  .hero-badges {
    grid-template-columns: 1fr;
    margin-top: 1.5rem;
  }

  .floating-badge {
    padding: 1rem;
  }

  .features,
  .screenshots,
  .philosophy {
    padding: 3rem 1rem;
  }

  .section-header {
    margin-bottom: 2rem;
  }

  .feature-card {
    padding: 1.5rem;
  }
}

@media (min-width: 1600px) {
  .bg-orb {
    filter: blur(100px);
  }

  .orb1 {
    width: 500px;
    height: 500px;
  }

  .orb2 {
    width: 450px;
    height: 450px;
  }

  .orb3 {
    width: 350px;
    height: 350px;
  }
}
