:root {
  /* Core Colors */
  --bg-main: #050505;
  --bg-secondary: #0a0a0a;
  --bg-card: #121212;
  --bg-hover: #1a1a1a;
  --text-main: #ffffff;
  --text-muted: #888888;
  --border-color: #222222;
  
  /* Brand Accents */
  --accent: #38bdf8; /* Spidy Blue */
  --accent-glow: rgba(56, 189, 248, 0.15);
  
  /* Syntax Highlighting */
  --code-method: #f472b6;
  --code-endpoint: #38bdf8;
  --code-key: #a78bfa;
  --code-string: #a3e635;
  --code-number: #fb923c;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  background-color: var(--bg-main);
  color: var(--text-main);
  font-family: 'Inter', sans-serif;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  /* Top glow effect */
  background-image: radial-gradient(circle at 50% -20%, var(--accent-glow) 0%, transparent 50%);
  background-repeat: no-repeat;
}

a {
  text-decoration: none;
  color: inherit;
  transition: all 0.2s ease;
}

/* ================== NAVBAR ================== */
.navbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px 5%;
  max-width: 1200px;
  margin: 0 auto;
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
  position: sticky;
  top: 0;
  background: rgba(5, 5, 5, 0.8);
  backdrop-filter: blur(12px);
  z-index: 100;
}

.logo {
  font-weight: 700;
  font-size: 1.2rem;
  display: flex;
  align-items: center;
  gap: 8px;
  letter-spacing: -0.02em;
}

.logo i {
  color: var(--accent);
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 32px;
  font-size: 0.9rem;
  font-weight: 500;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 32px;
  font-size: 0.9rem;
  font-weight: 500;
}

.nav-links a:not(.nav-btn):hover {
  color: var(--accent);
}

.nav-btn {
  background: var(--text-main);
  color: var(--bg-main);
  padding: 8px 16px;
  border-radius: 6px;
  font-weight: 600;
}

.nav-btn:hover {
  background: #e5e5e5;
}

.nav-btn {
  background: var(--text-main);
  color: var(--bg-main);
  padding: 8px 16px;
  border-radius: 6px;
  font-weight: 600;
}

.nav-btn:hover {
  background: #e5e5e5;
}

/* ================== HERO ================== */
.hero {
  display: flex;
  align-items: center;
  justify-content: space-between;
  max-width: 1200px;
  margin: 0 auto;
  padding: 100px 5%;
  gap: 60px;
  min-height: 85vh;
}

.hero-content {
  flex: 1;
}

.badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(56, 189, 248, 0.1);
  color: var(--accent);
  padding: 6px 12px;
  border-radius: 20px;
  font-size: 0.85rem;
  font-weight: 600;
  border: 1px solid rgba(56, 189, 248, 0.2);
  margin-bottom: 24px;
}

.hero h1 {
  font-size: 3.5rem;
  font-weight: 800;
  line-height: 1.1;
  letter-spacing: -0.03em;
  margin-bottom: 24px;
}

.hero p {
  font-size: 1.1rem;
  color: var(--text-muted);
  max-width: 480px;
  margin-bottom: 40px;
}

/* Buttons */
.hero-buttons {
  display: flex;
  gap: 16px;
  margin-bottom: 60px;
}

.primary-btn {
  background: var(--text-main);
  color: var(--bg-main);
  padding: 14px 28px;
  border-radius: 8px;
  font-weight: 600;
  font-size: 1rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
}

.primary-btn:hover {
  background: #e5e5e5;
  transform: translateY(-1px);
}

.secondary-btn {
  background: transparent;
  color: var(--text-main);
  padding: 14px 28px;
  border-radius: 8px;
  font-weight: 600;
  font-size: 1rem;
  border: 1px solid var(--border-color);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
}

.secondary-btn:hover {
  background: var(--bg-hover);
  border-color: #444;
}

/* Stats */
.hero-stats {
  display: flex;
  gap: 40px;
  border-top: 1px solid var(--border-color);
  padding-top: 32px;
}

.hero-stats h3 {
  font-size: 1.8rem;
  font-weight: 700;
  letter-spacing: -0.02em;
}

.hero-stats span {
  font-size: 0.85rem;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  font-weight: 500;
}

/* Terminal Card */
.hero-card {
  flex: 1;
  max-width: 500px;
  background: #0d0d0d;
  border-radius: 12px;
  border: 1px solid var(--border-color);
  box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.5), 0 0 0 1px rgba(255, 255, 255, 0.05) inset;
  overflow: hidden;
}

.terminal-top {
  background: #141414;
  padding: 12px 16px;
  display: flex;
  gap: 8px;
  border-bottom: 1px solid var(--border-color);
}

.terminal-top span {
  width: 12px;
  height: 12px;
  border-radius: 50%;
}

.terminal-top span:nth-child(1) { background: #ff5f56; }
.terminal-top span:nth-child(2) { background: #ffbd2e; }
.terminal-top span:nth-child(3) { background: #27c93f; }

.hero-card pre {
  padding: 24px;
  font-family: 'Fira Code', monospace;
  font-size: 0.9rem;
  color: #e4e4e7;
  overflow-x: auto;
  line-height: 1.5;
}

.http-method { color: var(--code-method); font-weight: 600; }
.endpoint { color: var(--code-endpoint); }
.key { color: var(--code-key); }
.string { color: var(--code-string); }
.number { color: var(--code-number); }

/* ================== SECTIONS ================== */
.section {
  padding: 100px 5%;
  max-width: 1200px;
  margin: 0 auto;
}

.section.darker {
  background: var(--bg-secondary);
  border-top: 1px solid var(--border-color);
  border-bottom: 1px solid var(--border-color);
  max-width: 100%;
}

.section.darker > div {
  max-width: 1200px;
  margin: 0 auto;
}

.section-title {
  text-align: center;
  margin-bottom: 60px;
}

.section-title h2 {
  font-size: 2.5rem;
  font-weight: 700;
  letter-spacing: -0.02em;
  margin-bottom: 16px;
}

.section-title p {
  color: var(--text-muted);
  font-size: 1.1rem;
}

.text-glow {
  color: var(--accent);
  font-weight: 600;
  text-shadow: 0 0 16px rgba(56, 189, 248, 0.4);
}

/* Features Grid */
.grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 24px;
}

.card {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  padding: 32px;
  border-radius: 12px;
  transition: all 0.3s ease;
}

.card:hover {
  border-color: #333;
  transform: translateY(-4px);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
}

.icon-wrapper {
  width: 48px;
  height: 48px;
  background: rgba(56, 189, 248, 0.1);
  color: var(--accent);
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 10px;
  font-size: 1.2rem;
  margin-bottom: 20px;
}

.card h3 {
  font-size: 1.2rem;
  font-weight: 600;
  margin-bottom: 12px;
}

.card p {
  color: var(--text-muted);
  font-size: 0.95rem;
}

/* Examples Box */
.example-box {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: 12px;
  overflow: hidden;
}

.example {
  display: flex;
  align-items: center;
  padding: 20px 24px;
  border-bottom: 1px solid var(--border-color);
}

.example:last-child {
  border-bottom: none;
}

.example span {
  width: 180px;
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--text-muted);
}

.example code {
  font-family: 'Fira Code', monospace;
  color: var(--accent);
  background: rgba(56, 189, 248, 0.05);
  padding: 6px 12px;
  border-radius: 6px;
  font-size: 0.9rem;
}

/* ================== CTA ================== */
.cta {
  padding: 100px 5%;
  text-align: center;
  max-width: 800px;
  margin: 0 auto;
}

.cta h2 {
  font-size: 2.5rem;
  font-weight: 700;
  letter-spacing: -0.02em;
  margin-bottom: 16px;
}

.cta p {
  color: var(--text-muted);
  font-size: 1.1rem;
  margin-bottom: 32px;
}

.cta-buttons {
  display: flex;
  gap: 16px;
  justify-content: center;
  flex-wrap: wrap;
}

/* ================== FOOTER ================== */
footer {
  border-top: 1px solid var(--border-color);
  padding: 60px 5% 30px;
  background: var(--bg-secondary);
}

.footer-top {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  margin-bottom: 40px;
}

.footer-top .logo {
  margin-bottom: 16px;
  font-size: 1.4rem;
}

.footer-top p {
  color: var(--text-muted);
  font-size: 0.9rem;
  max-width: 300px;
}

.footer-links {
  display: flex;
  gap: 32px;
}

.footer-links a {
  color: var(--text-muted);
  font-size: 0.9rem;
  font-weight: 500;
}

.footer-links a:hover {
  color: var(--text-main);
}

.footer-bottom {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  align-items: center;
  color: #555;
  font-size: 0.85rem;
  padding-top: 24px;
  border-top: 1px solid var(--border-color);
}

/* Telegram Link Styles */
.community-link {
  display: flex;
  align-items: center;
  gap: 8px;
  color: var(--text-muted);
  font-weight: 500;
  padding: 6px 12px;
  border-radius: 20px;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.05);
  transition: all 0.2s ease;
}

.community-link i {
  color: #229ED9; /* Telegram Brand Blue */
  font-size: 1.1rem;
}

.community-link:hover {
  color: var(--text-main);
  background: rgba(34, 158, 217, 0.1);
  border-color: rgba(34, 158, 217, 0.3);
  transform: translateY(-1px);
}

/* Make it stack nicely on mobile */
@media (max-width: 600px) {
  .footer-bottom {
    flex-direction: column;
    gap: 16px;
    text-align: center;
  }
}

/* ================== RESPONSIVE ================== */
@media (max-width: 900px) {
  .hero {
    flex-direction: column;
    text-align: center;
    padding-top: 60px;
  }
  
  .badge {
    margin: 0 auto 24px;
  }
  
  .hero h1 {
    font-size: 2.8rem;
  }
  
  .hero p {
    margin: 0 auto 40px;
  }
  
  .hero-buttons {
    justify-content: center;
  }
  
  .hero-stats {
    justify-content: center;
    border-top: none;
    border-bottom: 1px solid var(--border-color);
    padding-bottom: 32px;
    margin-bottom: 40px;
  }

  .example {
    flex-direction: column;
    align-items: flex-start;
    gap: 12px;
  }
}

@media (max-width: 600px) {
  .nav-links {
    display: none; /* Add a hamburger menu for mobile in production */
  }
  
  .footer-top {
    flex-direction: column;
    gap: 40px;
  }
  
  .footer-links {
    flex-direction: column;
    gap: 16px;
  }
}