:root {
  --bg: #0b0f14;
  --bg-card: #111820;
  --bg-code: #0d1117;
  --border: #1e2733;
  --border-subtle: rgba(255, 255, 255, 0.06);
  --text: #eaeef2;
  --text-muted: #7d8590;
  --accent: #58a6ff;
  --accent-hover: #79b8ff;
  --primary: #238636;
  --primary-hover: #2ea043;
  --gradient-start: #58a6ff;
  --gradient-end: #a371f7;
  --glow: rgba(88, 166, 255, 0.15);
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  min-height: 100vh;
  font-family: 'Plus Jakarta Sans', system-ui, -apple-system, sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
  overflow-x: hidden;
}

.page {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  position: relative;
}

/* Background glow */
.bg-glow {
  position: fixed;
  top: -40%;
  left: 50%;
  transform: translateX(-50%);
  width: 120%;
  height: 80%;
  background: radial-gradient(ellipse 80% 50% at 50% 0%, var(--glow), transparent 60%);
  pointer-events: none;
  z-index: 0;
}

/* Header */
.header {
  position: sticky;
  top: 0;
  z-index: 10;
  background: rgba(11, 15, 20, 0.85);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--border-subtle);
}

.header-inner {
  max-width: 64rem;
  margin: 0 auto;
  padding: 1rem 1.5rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.logo {
  font-weight: 700;
  font-size: 1.125rem;
  color: var(--text);
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.logo-icon {
  color: var(--accent);
  font-size: 0.85rem;
  opacity: 0.9;
}

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

.nav a {
  color: var(--text-muted);
  text-decoration: none;
  font-size: 0.9375rem;
  font-weight: 500;
  transition: color 0.2s ease;
}

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

/* Main */
main {
  flex: 1;
  max-width: 64rem;
  margin: 0 auto;
  padding: 4rem 1.5rem 3rem;
  width: 100%;
  position: relative;
  z-index: 1;
}

/* Hero */
.hero {
  text-align: center;
  padding: 2.5rem 0 4rem;
}

.hero-badge {
  display: inline-block;
  padding: 0.35rem 0.875rem;
  font-size: 0.8125rem;
  font-weight: 500;
  color: var(--accent);
  background: rgba(88, 166, 255, 0.1);
  border: 1px solid rgba(88, 166, 255, 0.2);
  border-radius: 9999px;
  margin-bottom: 1.5rem;
  letter-spacing: 0.02em;
}

.hero h1 {
  font-size: clamp(2.25rem, 5vw, 3.5rem);
  font-weight: 700;
  line-height: 1.2;
  margin: 0 0 1.25rem;
  color: var(--text);
  letter-spacing: -0.03em;
}

.gradient-text {
  background: linear-gradient(135deg, var(--gradient-start), var(--gradient-end));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.hero-desc {
  font-size: 1.125rem;
  color: var(--text-muted);
  max-width: 34rem;
  margin: 0 auto 1.75rem;
  line-height: 1.65;
}

.hero-badges {
  display: flex;
  justify-content: center;
  gap: 0.625rem;
  margin-bottom: 2.25rem;
  flex-wrap: wrap;
}

.badge {
  display: inline-flex;
  align-items: center;
  padding: 0.35rem 0.75rem;
  font-size: 0.8125rem;
  font-weight: 500;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--border);
  border-radius: 0.5rem;
  color: var(--text-muted);
}

.hero-cta {
  display: flex;
  gap: 0.875rem;
  justify-content: center;
  flex-wrap: wrap;
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.75rem 1.5rem;
  font-size: 0.9375rem;
  font-weight: 600;
  text-decoration: none;
  border-radius: 0.5rem;
  transition: background 0.2s ease, color 0.2s ease, transform 0.15s ease;
}

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

.btn:active {
  transform: translateY(0);
}

.btn-primary {
  background: var(--primary);
  color: white;
  border: none;
  box-shadow: 0 2px 8px rgba(35, 134, 54, 0.3);
}

.btn-primary:hover {
  background: var(--primary-hover);
  box-shadow: 0 4px 12px rgba(35, 134, 54, 0.4);
}

.btn-secondary {
  background: rgba(255, 255, 255, 0.04);
  color: var(--text);
  border: 1px solid var(--border);
}

.btn-secondary:hover {
  background: rgba(255, 255, 255, 0.08);
  border-color: var(--text-muted);
}

/* Features */
.features {
  margin-top: 5rem;
}

.features h2 {
  font-size: 1.625rem;
  font-weight: 600;
  margin: 0 0 2rem;
  color: var(--text);
  letter-spacing: -0.02em;
}

.feature-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 1.25rem;
}

.feature-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 1rem;
  padding: 1.75rem;
  transition: border-color 0.2s ease, transform 0.2s ease, box-shadow 0.2s ease;
}

.feature-card:hover {
  border-color: rgba(88, 166, 255, 0.25);
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.3);
}

.feature-icon {
  width: 2.5rem;
  height: 2.5rem;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1rem;
  color: var(--accent);
}

.feature-icon svg {
  width: 1.5rem;
  height: 1.5rem;
}

.feature-card h3 {
  font-size: 1.0625rem;
  font-weight: 600;
  margin: 0 0 0.5rem;
  color: var(--text);
}

.feature-card p {
  font-size: 0.875rem;
  color: var(--text-muted);
  margin: 0;
  line-height: 1.55;
}

/* Quick start */
.quick-start {
  margin-top: 5rem;
}

.quick-start h2 {
  font-size: 1.625rem;
  font-weight: 600;
  margin: 0 0 1.25rem;
  color: var(--text);
  letter-spacing: -0.02em;
}

.code-block {
  background: var(--bg-code);
  border: 1px solid var(--border);
  border-radius: 1rem;
  overflow: hidden;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.25);
}

.code-header {
  padding: 0.625rem 1.25rem;
  font-size: 0.75rem;
  font-weight: 500;
  color: var(--text-muted);
  background: rgba(255, 255, 255, 0.03);
  border-bottom: 1px solid var(--border);
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

.code-block pre {
  margin: 0;
  padding: 1.25rem 1.5rem;
  overflow-x: auto;
  font-size: 0.875rem;
  line-height: 1.75;
  font-family: 'JetBrains Mono', 'Fira Code', monospace;
}

.code-block code {
  color: var(--text);
}

.code-block .comment {
  color: var(--text-muted);
}

/* Footer CTA */
.footer-cta {
  margin-top: 5rem;
  text-align: center;
  padding: 2.5rem;
  background: linear-gradient(135deg, rgba(88, 166, 255, 0.05), rgba(163, 113, 247, 0.05));
  border: 1px solid var(--border);
  border-radius: 1rem;
}

.footer-cta p {
  color: var(--text-muted);
  margin: 0 0 1.25rem;
  font-size: 0.9375rem;
}

/* Footer */
.footer {
  padding: 1.75rem;
  text-align: center;
  font-size: 0.8125rem;
  color: var(--text-muted);
  border-top: 1px solid var(--border-subtle);
}

.footer a {
  color: var(--text-muted);
  text-decoration: none;
  transition: color 0.2s ease;
}

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

.footer span {
  margin: 0 0.5rem;
  opacity: 0.6;
}
