﻿:root {
  --bg: #0f0f14;
  --bg-alt: #161622;
  --ink: #f6f1ea;
  --muted: #b8b0a7;
  --accent: #ff9a3d;
  --accent-2: #ff5b7c;
  --card: rgba(28, 28, 40, 0.82);
  --stroke: rgba(246, 241, 234, 0.12);
  --shadow: 0 24px 60px rgba(0, 0, 0, 0.45);
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  font-family: "Space Grotesk", system-ui, sans-serif;
  color: var(--ink);
  background: radial-gradient(circle at top, #1b1b27 0%, var(--bg) 58%, #0b0b10 100%);
  min-height: 100vh;
  overflow-x: hidden;
}

h1, h2, h3 {
  font-family: "DM Serif Display", serif;
  font-weight: 400;
  margin: 0 0 16px;
}

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

main {
  padding: 120px 8vw 80px;
}

.bg-orb {
  position: fixed;
  width: 420px;
  height: 420px;
  border-radius: 50%;
  filter: blur(90px);
  opacity: 0.4;
  z-index: 0;
}

.orb-1 {
  background: #ffb37c;
  top: -140px;
  right: -120px;
}

.orb-2 {
  background: #ff7fa1;
  bottom: -170px;
  left: -160px;
}

.noise {
  position: fixed;
  inset: 0;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='120' height='120' viewBox='0 0 120 120'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='0.8' numOctaves='2' stitchTiles='stitch'/></filter><rect width='120' height='120' filter='url(%23n)' opacity='0.12'/></svg>");
  pointer-events: none;
  z-index: 1;
}

.site-header {
  position: fixed;
  top: 24px;
  left: 50%;
  transform: translateX(-50%);
  width: min(1100px, 90vw);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 20px;
  background: rgba(18, 18, 28, 0.78);
  border: 1px solid var(--stroke);
  border-radius: 999px;
  backdrop-filter: blur(14px);
  z-index: 5;
}

.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  font-weight: 600;
}

.brand-name {
  letter-spacing: 0.04em;
}

.logo {
  width: 40px;
  height: 40px;
  border-radius: 12px;
  object-fit: cover;
  box-shadow: 0 10px 24px rgba(0, 0, 0, 0.45);
  background: rgba(255, 255, 255, 0.08);
}

.nav {
  display: flex;
  align-items: center;
  gap: 16px;
  font-weight: 600;
}

.nav-toggle {
  display: none;
  align-items: center;
  justify-content: center;
  padding: 10px 16px;
  border-radius: 999px;
  border: 1px solid var(--stroke);
  background: rgba(255, 255, 255, 0.08);
  color: var(--ink);
  font-weight: 600;
  cursor: pointer;
}

.hero {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 40px;
  align-items: center;
  position: relative;
  z-index: 2;
}

.eyebrow {
  text-transform: uppercase;
  letter-spacing: 0.3em;
  font-size: 12px;
  font-weight: 600;
  color: var(--muted);
  margin-bottom: 18px;
}

.lead {
  font-size: 18px;
  line-height: 1.6;
  color: var(--muted);
  margin-bottom: 24px;
}

.cta {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-bottom: 24px;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 12px 22px;
  border-radius: 999px;
  border: 1px solid transparent;
  font-weight: 600;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 12px 28px rgba(0, 0, 0, 0.35);
}

.btn-primary {
  background: linear-gradient(120deg, var(--accent), var(--accent-2));
  color: #0b0b10;
}

.btn-outline {
  border-color: var(--stroke);
  background: rgba(255, 255, 255, 0.06);
}

.btn-ghost {
  border-color: transparent;
  background: rgba(255, 255, 255, 0.08);
}

.hero-stats {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
  gap: 16px;
  margin-top: 24px;
}

.stat {
  font-weight: 700;
  font-size: 18px;
}

.stat-label {
  font-size: 13px;
  color: var(--muted);
}

.hero-card {
  background: var(--card);
  border: 1px solid var(--stroke);
  border-radius: 24px;
  padding: 28px;
  box-shadow: var(--shadow);
}

.card-header {
  font-weight: 700;
  margin-bottom: 16px;
}

.feature-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  gap: 12px;
}

.feature-list li::before {
  content: "◆";
  margin-right: 10px;
  color: var(--accent-2);
}

.grid {
  margin-top: 70px;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 24px;
  position: relative;
  z-index: 2;
}

.grid-item {
  background: rgba(22, 22, 34, 0.9);
  border: 1px solid var(--stroke);
  border-radius: 20px;
  padding: 20px;
  box-shadow: 0 14px 36px rgba(0, 0, 0, 0.35);
}

.banner {
  margin-top: 70px;
  padding: 32px;
  border-radius: 24px;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  background: linear-gradient(120deg, rgba(32, 32, 48, 0.9), rgba(18, 18, 28, 0.6));
  border: 1px solid var(--stroke);
  position: relative;
  z-index: 2;
}

.site-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 32px 8vw 60px;
  color: var(--muted);
  position: relative;
  z-index: 2;
}

.page-hero {
  position: relative;
  z-index: 2;
  max-width: 760px;
}

.search-bar {
  margin-top: 24px;
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  align-items: center;
}

.search-bar input {
  width: min(520px, 100%);
  padding: 14px 18px;
  border-radius: 999px;
  border: 1px solid var(--stroke);
  font-size: 16px;
  background: rgba(10, 10, 18, 0.8);
  color: var(--ink);
}

.search-bar input::placeholder {
  color: rgba(246, 241, 234, 0.5);
}

.filter-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.tag {
  padding: 6px 12px;
  border-radius: 999px;
  border: 1px solid var(--stroke);
  font-size: 12px;
  letter-spacing: 0.02em;
  text-transform: uppercase;
  color: var(--muted);
  background: rgba(255, 255, 255, 0.06);
}

.tag.is-active {
  color: #111;
  background: linear-gradient(120deg, var(--accent), var(--accent-2));
  border-color: transparent;
}

.commands-grid {
  margin-top: 40px;
}

.command-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  gap: 10px;
}

.command-list li {
  padding: 10px 14px;
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.08);
  font-weight: 500;
  display: flex;
  justify-content: space-between;
  gap: 12px;
}

.command-list code {
  font-family: "Space Grotesk", system-ui, sans-serif;
  color: var(--accent);
  font-weight: 600;
}

.command-meta {
  font-size: 12px;
  color: var(--muted);
}

.command-highlight {
  box-shadow: 0 0 0 2px rgba(255, 154, 61, 0.45);
}

.category-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 8px;
}

.category-count {
  font-size: 12px;
  color: var(--muted);
  border: 1px solid var(--stroke);
  padding: 4px 10px;
  border-radius: 999px;
}

@media (max-width: 720px) {
  .site-header {
    position: static;
    transform: none;
    margin: 20px auto 0;
    border-radius: 24px;
    flex-direction: column;
    align-items: stretch;
    gap: 10px;
  }

  main {
    padding-top: 40px;
  }

  .nav {
    gap: 10px;
    flex-wrap: wrap;
    justify-content: center;
    display: none;
    flex-direction: column;
    align-items: stretch;
    padding: 6px 0 4px;
  }

  .nav-open .nav {
    display: flex;
  }

  .nav-toggle {
    display: inline-flex;
    align-self: center;
  }

  .brand {
    justify-content: center;
  }

  .hero {
    grid-template-columns: 1fr;
  }

  .hero-stats {
    display: none;
  }

  .cta {
    width: 100%;
    justify-content: center;
  }

  .btn {
    width: 100%;
    max-width: 320px;
  }

  .grid {
    grid-template-columns: 1fr;
  }

  .hero-card {
    padding: 20px;
  }

  .search-bar {
    flex-direction: column;
    align-items: stretch;
  }

  .filter-tags {
    overflow-x: auto;
    padding-bottom: 6px;
    -webkit-overflow-scrolling: touch;
  }

  .filter-tags::-webkit-scrollbar {
    height: 6px;
  }

  .filter-tags::-webkit-scrollbar-thumb {
    background: rgba(255, 255, 255, 0.2);
    border-radius: 999px;
  }

  .tag {
    white-space: nowrap;
  }

  .command-list li {
    flex-direction: column;
    align-items: flex-start;
  }
}
