:root {
  --bg-color: #050505;
  --surface-color: #121212;
  --accent-color: #22c55e;
  --accent-glow: rgba(34, 197, 94, 0.3);
  --text-primary: #ffffff;
  --text-secondary: #a1a1aa;
  --glass-bg: rgba(255, 255, 255, 0.03);
  --glass-border: rgba(255, 255, 255, 0.1);
  --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

/* =========================
   GLOBAL RESET + OVERFLOW FIX
   ========================= */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
}

html,
body {
  width: 100%;
  overflow-x: hidden;
}

body {
  background-color: var(--bg-color);
  color: var(--text-primary);
  line-height: 1.6;
  scroll-behavior: smooth;
}

/* =========================
   TYPOGRAPHY
   ========================= */
h1,
h2,
h3 {
  font-weight: 800;
  letter-spacing: -0.025em;
  line-height: 1.2;
}

/* =========================
   LAYOUT
   ========================= */
.container {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 2rem;
}

/* =========================
   HEADER / NAV
   ========================= */
header {
  position: fixed;
  top: 0;
  width: 100%;
  padding: 1.5rem 0;
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  background: rgba(5, 5, 5, 0.8);
  border-bottom: 1px solid var(--glass-border);
  z-index: 1000;
  overflow-x: hidden;
}

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

.logo {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  font-weight: 700;
  font-size: 1.25rem;
  color: var(--text-primary);
  text-decoration: none;
}

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

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

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

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

/* =========================
   HERO SECTION
   ========================= */
.hero {
  padding: 10rem 0 5rem;
  text-align: center;
  position: relative;
  overflow-x: hidden;
}

.hero::before {
  content: '';
  position: absolute;
  top: 20%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 400px;
  height: 400px;
  background: var(--accent-glow);
  filter: blur(100px);
  border-radius: 50%;
  z-index: -1;
}

.hero h1 {
  font-size: 4rem;
  margin-bottom: 1.5rem;
}

.hero span {
  color: var(--accent-color);
}

.hero p {
  font-size: 1.25rem;
  color: var(--text-secondary);
  max-width: 600px;
  margin: 0 auto 2.5rem;
}

.cta-button {
  display: inline-block;
  padding: 1rem 2rem;
  background: var(--accent-color);
  color: #000;
  text-decoration: none;
  font-weight: 700;
  border-radius: 9999px;
  transition: var(--transition);
  box-shadow: 0 10px 20px -10px var(--accent-glow);
}

.cta-button:hover {
  transform: translateY(-2px);
  box-shadow: 0 15px 30px -10px var(--accent-glow);
  background: #25d366;
}

.hero-preview {
  margin: 5rem auto 0;
  max-width: 400px;
  border-radius: 16px;
  overflow: hidden;
  border: 1px solid var(--glass-border);
  box-shadow: 0 40px 100px -20px rgba(0, 0, 0, 0.5),
              0 0 20px var(--accent-glow);
  transform: perspective(1000px) rotateX(5deg);
  transition: var(--transition);
}

.hero-preview:hover {
  transform: perspective(1000px) rotateX(0deg) scale(1.02);
}

.hero-preview img {
  width: 100%;
  height: auto;
  display: block;
}

/* =========================
   SECTIONS
   ========================= */
section {
  padding: 8rem 0;
  overflow-x: hidden;
}

.section-head {
  text-align: center;
  margin-bottom: 4rem;
}

.section-head h2 {
  font-size: 2.5rem;
  margin-bottom: 1rem;
}

.section-head p {
  color: var(--text-secondary);
  font-size: 1.125rem;
}

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

.feature-card {
  padding: 2.5rem;
  background: var(--glass-bg);
  border: 1px solid var(--glass-border);
  border-radius: 20px;
  transition: var(--transition);
}

.feature-card:hover {
  background: rgba(255, 255, 255, 0.05);
  border-color: var(--accent-color);
  transform: translateY(-5px);
}

.feature-card i {
  font-size: 2rem;
  color: var(--accent-color);
  margin-bottom: 1.5rem;
  display: block;
}

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

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

/* =========================
   INSTALLATION STEPS
   ========================= */
.steps {
  max-width: 800px;
  margin: 0 auto;
}

.step {
  display: flex;
  gap: 2rem;
  margin-bottom: 3rem;
}

.step-num {
  flex-shrink: 0;
  width: 48px;
  height: 48px;
  background: var(--surface-color);
  border: 2px solid var(--accent-color);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 800;
  color: var(--accent-color);
  font-size: 1.25rem;
  box-shadow: 0 0 15px var(--accent-glow);
}

.step-content h3 {
  margin-bottom: 0.5rem;
}

.step-content p {
  color: var(--text-secondary);
}

.step-content code {
  background: #222;
  padding: 0.2rem 0.4rem;
  border-radius: 4px;
  color: var(--accent-color);
}

/* =========================
   FOOTER
   ========================= */
footer {
  padding: 4rem 0;
  border-top: 1px solid var(--glass-border);
  text-align: center;
  color: var(--text-secondary);
  overflow-x: hidden;
}

footer p {
  font-size: 0.875rem;
}

/* =========================
   RESPONSIVE (MOBILE)
   ========================= */
@media (max-width: 768px) {
  .hero h1 {
    font-size: 2.5rem;
  }

  /* Show ONLY GitHub link */
  .nav-links a:not([href*="github"]) {
    display: none;
  }

  .nav-links {
    gap: 0;
  }

  .nav-links a[href*="github"] {
    font-weight: 600;
    color: var(--accent-color);
  }

  .step {
    flex-direction: column;
    gap: 1rem;
  }

  .hero::before {
    width: 250px;
    height: 250px;
    filter: blur(80px);
  }

  .hero-preview {
    transform: none;
  }
}