:root {
  --bg-primary: #0a0402;
  --bg-secondary: #0a0402;
  --bg-tertiary: #140d08;
  --border: transparent;
  --text-primary: #e1e4e8;
  --text-secondary: #8b949e;
  --text-tertiary: #484f58;
  --accent: #ef4444;
  --accent-hover: #dc2626;
  --font-sans: 'Figtree', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  --font-mono: 'SF Mono', 'Fira Code', 'Cascadia Code', 'JetBrains Mono', monospace;
}

*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  font-size: 16px;
  scroll-behavior: smooth;
}

body {
  font-family: var(--font-sans);
  background: var(--bg-primary);
  color: var(--text-primary);
  line-height: 1.6;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

a {
  color: var(--accent);
  transition: color 0.2s;
}

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

img {
  max-width: 100%;
  display: block;
}

.container {
  padding: 64px;
}

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

@media (max-width: 480px) {
  .container {
    padding: 16px;
  }
}

@media (min-width: 1600px) {
  .container {
    padding: 64px 96px;
  }
}

/* ─── Header ─── */

.header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: var(--bg-secondary);
  border-bottom: 1px solid var(--border);
}

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

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

@media (max-width: 480px) {
  .header-inner {
    padding: 12px 16px;
  }
}

.logo {
  display: flex;
  align-items: center;
  gap: 6px;
  text-decoration: none;
  font-weight: 700;
  font-size: 1.25rem;
  background: linear-gradient(135deg, #ef4444, #dc2626);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.logo-tagline {
  font-weight: 400;
  font-size: 0.8125rem;
  color: #e1e4e8;
  -webkit-text-fill-color: #e1e4e8;
  margin-left: 0;
}

.nav {
  display: flex;
  align-items: center;
  gap: 28px;
}

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

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

.nav a.active::after {
  content: '';
  position: absolute;
  bottom: -4px;
  left: 0;
  right: 0;
  height: 2px;
  background: var(--accent);
  border-radius: 1px;
}

/* ─── Hamburger ─── */

.hamburger {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: 4px;
  color: var(--text-primary);
}

.hamburger svg {
  display: block;
}

@media (max-width: 768px) {
  .nav {
    display: none;
  }

  .hamburger {
    display: flex;
  }
}

/* ─── Drawer ─── */

.drawer-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.6);
  z-index: 200;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.25s;
}

.drawer-overlay.open {
  opacity: 1;
  pointer-events: auto;
}

.drawer {
  position: fixed;
  top: 0;
  right: -260px;
  width: 260px;
  height: 100vh;
  background: var(--bg-secondary);
  z-index: 210;
  padding: 24px;
  transition: right 0.25s;
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.drawer.open {
  right: 0;
}

.drawer-close {
  align-self: flex-end;
  background: none;
  border: none;
  cursor: pointer;
  color: var(--text-primary);
  padding: 4px;
}

.drawer-nav {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

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

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

/* ─── Hero ─── */

.hero {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  position: relative;
  overflow: hidden;
}

#hero-canvas {
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: 0;
}

.hero-content {
  position: relative;
  z-index: 1;
  max-width: 720px;
}

.hero h1 {
  font-size: 3.25rem;
  font-weight: 700;
  line-height: 1.15;
  margin-bottom: 20px;
}

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

.hero p {
  font-size: 1.125rem;
  color: var(--text-secondary);
  margin-bottom: 36px;
  max-width: 560px;
  margin-left: auto;
  margin-right: auto;
}

.hero-actions {
  display: flex;
  gap: 16px;
  justify-content: center;
  flex-wrap: wrap;
}

.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 12px 28px;
  border-radius: 8px;
  font-family: var(--font-sans);
  font-size: 0.9375rem;
  font-weight: 600;
  text-decoration: none;
  cursor: pointer;
  border: none;
  transition: background 0.2s, transform 0.15s;
}

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

.btn-primary {
  background: var(--accent);
  color: #fff;
}

.btn-primary:hover {
  background: var(--accent-hover);
  color: #fff;
}

.btn-secondary {
  background: transparent;
  color: var(--text-primary);
  border: 1px solid var(--text-tertiary);
}

.btn-secondary:hover {
  border-color: var(--accent);
  color: var(--accent);
}

@media (max-width: 900px) {
  .hero h1 {
    font-size: 2.5rem;
  }
}

@media (max-width: 768px) {
  .hero h1 {
    font-size: 2rem;
  }

  .hero p {
    font-size: 1rem;
  }
}

@media (max-width: 600px) {
  .hero-actions {
    flex-direction: column;
    align-items: center;
  }
}

@media (max-width: 480px) {
  .hero h1 {
    font-size: 1.625rem;
  }
}

/* ─── Sections ─── */

.section {
  padding: 64px;
}

@media (max-width: 768px) {
  .section {
    padding: 56px 24px;
  }
}

@media (max-width: 480px) {
  .section {
    padding: 56px 16px;
  }
}

.section-header {
  text-align: center;
  margin-bottom: 48px;
}

.section-header h2 {
  font-size: 2rem;
  font-weight: 700;
  margin-bottom: 12px;
}

.section-header p {
  color: var(--text-secondary);
  font-size: 1rem;
  max-width: 560px;
  margin: 0 auto;
}

@media (max-width: 768px) {
  .section-header h2 {
    font-size: 1.5rem;
  }
}

@media (max-width: 480px) {
  .section-header h2 {
    font-size: 1.25rem;
  }
}

/* ─── Feature Grid ─── */

.feature-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 16px;
  max-width: 1100px;
  margin: 0 auto;
}

.feature-card {
  background: var(--bg-tertiary);
  border-radius: 10px;
  padding: 28px;
  border: 1px solid var(--border);
}

.feature-card h3 {
  font-size: 1rem;
  font-weight: 600;
  margin-bottom: 8px;
}

.feature-card p {
  font-size: 0.875rem;
  color: var(--text-secondary);
  line-height: 1.6;
}

@media (max-width: 768px) {
  .feature-grid {
    grid-template-columns: 1fr;
  }
}

/* ─── Badge Grid (Frameworks) ─── */

.badge-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  justify-content: center;
}

.badge {
  display: inline-flex;
  align-items: center;
  padding: 6px 16px;
  background: var(--bg-tertiary);
  border: 1px solid var(--text-tertiary);
  border-radius: 20px;
  font-size: 0.8125rem;
  font-weight: 500;
  color: var(--text-secondary);
}

/* ─── Code Block ─── */

.code-block {
  background: var(--bg-tertiary);
  border-radius: 8px;
  padding: 20px 24px;
  overflow-x: auto;
  font-family: var(--font-mono);
  font-size: 0.8125rem;
  line-height: 1.65;
  color: var(--text-primary);
}

.code-block .cmd {
  color: #ef4444;
}

.code-block .comment {
  color: #484f58;
}

.code-block .dim {
  color: #6b7280;
}

.code-block .string {
  color: #7ee787;
}

.code-block .keyword {
  color: #ff7b72;
}

/* ─── Description List ─── */

.dl {
  display: flex;
  flex-direction: column;
  gap: 1px;
  background: var(--text-tertiary);
  border-radius: 8px;
  overflow: hidden;
}

.dl-row {
  display: flex;
  background: var(--bg-primary);
}

.dl-label {
  flex: 0 0 180px;
  padding: 14px 20px;
  font-weight: 600;
  font-size: 0.875rem;
  background: var(--bg-tertiary);
}

.dl-value {
  flex: 1;
  padding: 14px 20px;
  font-size: 0.875rem;
  color: var(--text-secondary);
  font-family: var(--font-mono);
}

@media (max-width: 768px) {
  .dl-row {
    flex-direction: column;
  }

  .dl-label {
    flex: none;
    padding: 12px 16px 4px;
    background: transparent;
  }

  .dl-value {
    padding: 4px 16px 12px;
  }
}

/* ─── Page Content (About, Usage) ─── */

.page-content {
  max-width: 100%;
}

.page-content h2 {
  font-size: 1.75rem;
  font-weight: 700;
  margin-top: 48px;
  margin-bottom: 16px;
}

.page-content h3 {
  font-size: 1.25rem;
  font-weight: 600;
  margin-top: 36px;
  margin-bottom: 12px;
}

.page-content p {
  font-size: 0.9375rem;
  color: var(--text-secondary);
  margin-bottom: 16px;
  line-height: 1.7;
}

.page-content ul,
.page-content ol {
  margin-bottom: 16px;
  padding-left: 24px;
  color: var(--text-secondary);
  font-size: 0.9375rem;
  line-height: 1.7;
}

.page-content li {
  margin-bottom: 6px;
}

.page-content .code-block {
  margin: 24px 0;
}

.page-content .dl {
  margin: 24px 0;
}

/* ─── Install Steps ─── */

.install-steps {
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.install-step {
  display: flex;
  gap: 16px;
  align-items: flex-start;
}

.install-step-num {
  flex-shrink: 0;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: var(--accent);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 0.875rem;
}

.install-step-content h3 {
  font-size: 1rem;
  font-weight: 600;
  margin-bottom: 6px;
}

.install-step-content p {
  font-size: 0.875rem;
  color: var(--text-secondary);
}

/* ─── Footer ─── */

.footer {
  background: var(--bg-secondary);
  border-top: 1px solid var(--border);
  margin-top: auto;
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 40px;
  padding: 56px 64px;
  max-width: 1400px;
  margin: 0 auto;
}

@media (max-width: 768px) {
  .footer-grid {
    grid-template-columns: 1fr 1fr;
    padding: 40px 24px;
  }
}

@media (max-width: 480px) {
  .footer-grid {
    grid-template-columns: 1fr;
    padding: 40px 16px;
  }
}

.footer-brand h3 {
  font-size: 1.125rem;
  font-weight: 700;
  margin-bottom: 8px;
}

.footer-brand p {
  font-size: 0.8125rem;
  color: var(--text-secondary);
  line-height: 1.6;
}

.footer-col h4 {
  font-size: 0.8125rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--text-tertiary);
  margin-bottom: 16px;
}

.footer-col a {
  display: block;
  text-decoration: none;
  color: var(--text-secondary);
  font-size: 0.8125rem;
  margin-bottom: 10px;
}

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

.footer-bottom {
  border-top: 1px solid var(--border);
  padding: 20px 64px;
  text-align: center;
  font-size: 0.75rem;
  color: var(--text-tertiary);
}

@media (max-width: 768px) {
  .footer-bottom {
    padding: 20px 24px;
  }
}

@media (max-width: 480px) {
  .footer-bottom {
    padding: 16px;
  }
}
