:root {
  --bg-dark: #02040a;
  --bg-card: rgba(14, 19, 32, 0.7);
  --primary: #2b6bf7;
  --primary-glow: rgba(43, 107, 247, 0.5);
  --accent: #00f2ff;
  --text-main: #ffffff;
  --text-muted: #a0aec0;
  --glass-border: rgba(255, 255, 255, 0.1);
  --gradient-mesh: radial-gradient(circle at 50% 50%, rgba(43, 107, 247, 0.15), transparent 60%);
  --font-main: 'Inter', system-ui, -apple-system, sans-serif;
  --transition-slow: 0.5s cubic-bezier(0.4, 0, 0.2, 1);
  --transition-fast: 0.2s ease-out;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: var(--font-main);
  color: var(--text-main);
  background-color: var(--bg-dark);
  background-image:
    radial-gradient(circle at 0% 0%, rgba(43, 107, 247, 0.1) 0%, transparent 50%),
    radial-gradient(circle at 100% 100%, rgba(0, 242, 255, 0.05) 0%, transparent 50%);
  overflow-x: hidden;
  line-height: 1.6;
}

/* Typography */
h1,
h2,
h3 {
  font-weight: 700;
  margin-top: 0;
  letter-spacing: -0.02em;
}

h1 {
  font-size: clamp(2.5rem, 5vw, 4.5rem);
  line-height: 1.1;
  background: linear-gradient(135deg, #fff 0%, #a5b4fc 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  margin-bottom: 1.5rem;
}

h2 {
  font-size: clamp(2rem, 4vw, 3rem);
  margin-bottom: 1rem;
}

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

/* Navbar */
.navbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1.5rem 5%;
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  transition: all var(--transition-slow);
  backdrop-filter: blur(0px);
  /* Initial state */
}

.navbar.scrolled {
  background: rgba(2, 4, 10, 0.8);
  backdrop-filter: blur(12px);
  padding: 1rem 5%;
  border-bottom: 1px solid var(--glass-border);
}

.logo {
  font-size: 1.5rem;
  font-weight: 800;
  letter-spacing: 0.1em;
  color: var(--text-main);
  text-transform: uppercase;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.logo::before {
  content: '';
  width: 12px;
  height: 12px;
  background: var(--primary);
  border-radius: 50%;
  box-shadow: 0 0 15px var(--primary);
}

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

.nav-links a {
  color: var(--text-muted);
  text-decoration: none;
  font-size: 0.95rem;
  font-weight: 500;
  transition: color var(--transition-fast);
}

.nav-links a:hover {
  color: var(--text-main);
}

.cta-btn {
  background: var(--primary);
  color: white !important;
  padding: 0.75rem 1.5rem;
  border-radius: 50px;
  font-weight: 600 !important;
  transition: all var(--transition-fast) !important;
  box-shadow: 0 4px 15px var(--primary-glow);
}

.cta-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 25px var(--primary-glow);
}

/* Mobile Toggle */
.menu-toggle {
  display: none;
  font-size: 1.5rem;
  cursor: pointer;
  color: white;
}

/* Hero Section */
.hero {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  padding: 0 5%;
  overflow: hidden;
}

.hero::before {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 80vw;
  height: 80vh;
  background: var(--gradient-mesh);
  filter: blur(80px);
  z-index: -1;
  animation: pulse 8s infinite alternate;
}

@keyframes pulse {
  0% {
    opacity: 0.5;
    transform: translate(-50%, -50%) scale(0.9);
  }

  100% {
    opacity: 0.8;
    transform: translate(-50%, -50%) scale(1.1);
  }
}

.hero-content {
  text-align: center;
  max-width: 800px;
  z-index: 1;
  opacity: 0;
  transform: translateY(30px);
  animation: fadeInUp 1s ease-out forwards 0.2s;
}

.buttons {
  display: flex;
  gap: 1.5rem;
  justify-content: center;
  margin-top: 2rem;
}

.btn {
  padding: 1rem 2rem;
  border-radius: 50px;
  text-decoration: none;
  font-weight: 600;
  transition: all var(--transition-fast);
  font-size: 1rem;
}

.btn.primary {
  background: var(--primary);
  color: white;
  box-shadow: 0 4px 20px var(--primary-glow);
}

.btn.primary:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 30px var(--primary-glow);
}

.btn.secondary {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--glass-border);
  color: white;
  backdrop-filter: blur(5px);
}

.btn.secondary:hover {
  background: rgba(255, 255, 255, 0.1);
  border-color: rgba(255, 255, 255, 0.3);
}

/* Sections */
.section {
  padding: 100px 5%;
  position: relative;
}

.title {
  text-align: center;
  margin-bottom: 1rem;
}

.subtitle {
  text-align: center;
  max-width: 600px;
  margin: 0 auto 4rem;
  color: var(--text-muted);
}

/* Grid */
.grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 2rem;
}

.card {
  background: var(--bg-card);
  padding: 2.5rem;
  border-radius: 20px;
  border: 1px solid var(--glass-border);
  backdrop-filter: blur(10px);
  transition: all var(--transition-slow);
  position: relative;
  overflow: hidden;
}

.card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 4px;
  background: linear-gradient(90deg, var(--primary), var(--accent));
  opacity: 0;
  transition: opacity var(--transition-fast);
}

.card:hover {
  transform: translateY(-10px);
  border-color: rgba(43, 107, 247, 0.3);
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.4);
}

.card:hover::before {
  opacity: 1;
}

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

/* Features List */
.feature-list li {
  background: rgba(255, 255, 255, 0.03);
  margin-bottom: 1rem;
  padding: 1rem;
  border-radius: 10px;
  list-style: none;
  display: flex;
  align-items: center;
  gap: 1rem;
}

.feature-list li::before {
  content: '✓';
  color: var(--accent);
  font-weight: bold;
}

/* Contact Section */
.contact {
  text-align: center;
  background: linear-gradient(180deg, transparent, rgba(43, 107, 247, 0.05));
}

/* Footer */
.footer {
  text-align: center;
  padding: 3rem 5%;
  border-top: 1px solid var(--glass-border);
  color: var(--text-muted);
  font-size: 0.9rem;
}

/* Keyframes */
@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }

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

/* Mobile Responsiveness */
@media (max-width: 768px) {
  .menu-toggle {
    display: block;
  }

  .nav-links {
    position: fixed;
    top: 70px;
    right: -100%;
    flex-direction: column;
    background: #0b0f19;
    width: 250px;
    padding: 2rem;
    height: calc(100vh - 70px);
    border-left: 1px solid var(--glass-border);
    transition: right 0.3s ease;
  }

  .nav-links.active {
    right: 0;
  }

  h1 {
    font-size: 2.5rem;
  }

  .buttons {
    flex-direction: column;
  }

  .btn {
    width: 100%;
    box-sizing: border-box;
    text-align: center;
  }
}