* {
  box-sizing: border-box;
}

body {
  margin: 0;
  background: #181818;
  color: #e5e7eb;
  font-family: "Space Grotesk", system-ui, sans-serif;
  min-height: 100vh;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -1;
  background-image:
    linear-gradient(rgba(255,255,255,0.03) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,0.03) 1px, transparent 1px);
  background-size: 40px 40px;
  overflow-x: hidden;
}

a {
  color: inherit;
  text-decoration: none;
}

.navbar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  border-bottom: 1px solid #2e2e2e;
  background: #181818;
  z-index: 50;
}

.navbar-inner {
  max-width: 1024px;
  margin: auto;
  padding: 20px 32px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.logo {
  color: white;
  font-family: "Ubuntu Mono", monospace;
  font-size: 22px;
  font-weight: 700;
}

.nav-links {
  display: flex;
  gap: 28px;
  color: #9ca3af;
  font-size: 14px;
}

.nav-links a:hover {
  color: white;
}

.menu-btn {
  display: none;
  background: none;
  border: none;
  color: white;
  font-size: 28px;
}

.main {
  max-width: 1024px;
  margin: auto;
  padding: 110px 32px 40px;
}

.hero {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: 48px;
  align-items: center;
  padding: 45px 0 70px;
}

.badge {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 7px 15px;
  border: 1px solid #2e2e2e;
  background: #212121;
  color: #9ca3af;
  border-radius: 999px;
  font-size: 14px;
  font-weight: 600;
  margin-bottom: 24px;
}

.hero h1 {
  font-size: clamp(34px, 6vw, 54px);
  line-height: 1.05;
  color: white;
  margin: 0 0 22px;
}

.hero p {
  max-width: 650px;
  color: #9ca3af;
  line-height: 1.7;
  margin: 0 0 34px;
}

.actions {
  display: flex;
  gap: 12px;
}

.btn {
  height: 42px;
  padding: 0 22px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 10px;
  font-weight: 700;
  border: 1px solid #383838;
  transition: 0.2s;
}

.btn:hover {
  transform: translateY(-3px);
}

.btn.primary {
  background: white;
  color: black;
}

.btn.secondary {
  background: #212121;
  color: #9ca3af;
}

.hero-icon {
  display: flex;
  align-items: center;
  justify-content: center;
}

.hero-icon i {
  font-size: 180px;
  color: white;
}

.section {
  padding: 70px 0;
}

.section-head {
  text-align: center;
  margin-bottom: 36px;
}

.section-head h2 {
  color: white;
  margin: 0 0 10px;
  font-size: 30px;
}

.line {
  width: 90px;
  height: 2px;
  background: white;
  margin: 0 auto 16px;
  border-radius: 999px;
}

.section-head p {
  color: #9ca3af;
  margin: 0;
}

.stats-grid,
.feature-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 16px;
}

.card {
  background: #212121;
  border: 1px solid #2e2e2e;
  border-radius: 18px;
  padding: 26px;
  position: relative;
  overflow: hidden;
  transition: 0.2s;
}

.card:hover {
  border-color: #444;
  transform: translateY(-4px);
}

.card h3 {
  margin: 0 0 10px;
  color: white;
  font-size: 20px;
}

.card p {
  margin: 0;
  color: #9ca3af;
  line-height: 1.6;
  font-size: 14px;
}

.stat-value {
  color: white;
  font-size: 30px;
  font-weight: 700;
  margin-bottom: 6px;
}

.stat-label {
  color: #9ca3af;
  text-transform: uppercase;
  font-size: 12px;
}

.card-icon {
  width: 62px;
  height: 62px;
  border-radius: 999px;
  background: #2a2a2a;
  color: white;
  display: grid;
  place-items: center;
  margin: 0 auto 20px;
  font-size: 28px;
}

.feature-card {
  text-align: center;
}

.code-section {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 42px;
  align-items: center;
}

.code-box {
  border: 1px solid #2e2e2e;
  border-radius: 16px;
  overflow: hidden;
  background: #111;
}

.code-top {
  padding: 14px 18px;
  border-bottom: 1px solid #2e2e2e;
  display: flex;
  gap: 8px;
  align-items: center;
}

.dot {
  width: 12px;
  height: 12px;
  border-radius: 50%;
}

.red { background: #ef4444; }
.yellow { background: #f59e0b; }
.green { background: #22c55e; }

pre {
  margin: 0;
  padding: 18px;
  overflow-x: auto;
  color: #d1d5db;
  font-family: "Ubuntu Mono", monospace;
  font-size: 14px;
  line-height: 1.6;
}

.footer {
  border-top: 1px solid #2e2e2e;
  background: #212121;
  margin-top: 50px;
}

.footer-inner {
  max-width: 1024px;
  margin: auto;
  padding: 35px 32px;
  text-align: center;
  color: #9ca3af;
  font-size: 14px;
}

@media (max-width: 768px) {
  .navbar-inner {
    padding: 16px 24px;
  }

  .nav-links {
    display: none;
  }

  .menu-btn {
    display: block;
  }

  .main {
    padding: 95px 24px 35px;
  }

  .hero {
    grid-template-columns: 1fr;
    text-align: center;
    padding-top: 30px;
  }

  .hero p {
    margin-left: auto;
    margin-right: auto;
  }

  .actions {
    justify-content: center;
  }

  .hero-icon {
    display: none;
  }

  .stats-grid,
  .feature-grid,
  .code-section {
    grid-template-columns: 1fr;
  }

  .btn {
    flex: 1;
  }
}

.status-code-section {
  padding: 15px;
}

.status-code-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 12px;
}

.status-code-card {
  display: flex;
  gap: 14px;
  align-items: flex-start;
  background: #212121;
  border: 1px solid #2e2e2e;
  border-radius: 16px;
  padding: 18px;
  transition: 0.2s;
}

.status-code-card:hover {
  transform: translateY(-4px);
  border-color: #444;
}

.status-code-number {
  min-width: 58px;
  height: 42px;
  border-radius: 12px;
  display: grid;
  place-items: center;
  font-family: "Ubuntu Mono", monospace;
  font-size: 18px;
  font-weight: 700;
  border: 1px solid #383838;
}

.status-code-number.success {
  color: #22c55e;
  background: rgba(34, 197, 94, 0.12);
  border-color: rgba(34, 197, 94, 0.35);
}

.status-code-number.warn {
  color: #f59e0b;
  background: rgba(245, 158, 11, 0.12);
  border-color: rgba(245, 158, 11, 0.35);
}

.status-code-number.error {
  color: #ef4444;
  background: rgba(239, 68, 68, 0.12);
  border-color: rgba(239, 68, 68, 0.35);
}

.status-code-card h3 {
  margin: 0 0 6px;
  color: white;
  font-size: 16px;
}

.status-code-card p {
  margin: 0;
  color: #9ca3af;
  font-size: 13px;
  line-height: 1.5;
}

@media (max-width: 720px) {
  .status-code-grid {
    grid-template-columns: 1fr;
  }

  .status-code-card {
    padding: 10px;
  }
}

/* ===== ANIMATION ===== */
.fade-scroll {
  opacity: 0;
  transition: opacity .6s ease;
  will-change: opacity;
}

.fade-scroll.visible {
  opacity: 1;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: 90px;
}

.code-box code {
  color: #e5e7eb;
}

.code-box .kw {
  color: #c084fc;
}

.code-box .fn {
  color: #60a5fa;
}

.code-box .str {
  color: #4ade80;
}

.code-box .cmt {
  color: #9ca3af;
}