:root {
  --bg: #0e1512;
  --panel: #16221d;
  --panel-2: #1d2b25;
  --text: #edf7f1;
  --muted: #a9bdb1;
  --line: rgba(237, 247, 241, 0.12);
  --green: #5fe083;
  --green-dark: #1c8e48;
  --gold: #f5c45b;
  --red: #ff6b6b;
  --blue: #68b5ff;
  --shadow: 0 20px 70px rgba(0, 0, 0, 0.35);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100vh;
  background:
    linear-gradient(rgba(14, 21, 18, 0.78), rgba(14, 21, 18, 0.94)),
    url("https://images.unsplash.com/photo-1607513746994-51f730a44832?auto=format&fit=crop&w=1800&q=80");
  background-attachment: fixed;
  background-position: center;
  background-size: cover;
  color: var(--text);
  font-family: Inter, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

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

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  border-bottom: 1px solid var(--line);
  background: rgba(14, 21, 18, 0.82);
  backdrop-filter: blur(18px);
}

.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: min(1120px, calc(100% - 32px));
  margin: 0 auto;
  padding: 14px 0;
}

.brand,
.nav-links {
  display: flex;
  align-items: center;
  gap: 12px;
}

.brand {
  font-weight: 800;
}

.brand-logo {
  width: 86px;
  height: 42px;
  object-fit: contain;
  filter: drop-shadow(0 0 18px rgba(95, 224, 131, 0.2));
}

.nav-links a {
  color: var(--muted);
  font-weight: 600;
  font-size: 0.95rem;
}

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

.hero {
  display: grid;
  min-height: 72vh;
  align-items: end;
  width: min(1120px, calc(100% - 32px));
  margin: 0 auto;
  padding: 90px 0 56px;
}

.hero-content {
  max-width: 760px;
}

.hero-logo {
  display: block;
  width: min(520px, 92vw);
  height: auto;
  margin: 0 0 18px;
  filter: drop-shadow(0 28px 40px rgba(0, 0, 0, 0.48));
}

.eyebrow {
  margin: 0 0 10px;
  color: var(--green);
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0;
  text-transform: uppercase;
}

h1,
h2,
p {
  margin-top: 0;
}

h1 {
  margin-bottom: 18px;
  font-size: clamp(2.6rem, 7vw, 5.6rem);
  line-height: 0.95;
}

h2 {
  margin-bottom: 0;
  font-size: clamp(1.7rem, 4vw, 2.6rem);
}

.hero-text {
  max-width: 650px;
  color: var(--muted);
  font-size: 1.1rem;
  line-height: 1.7;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 28px;
}

.button {
  display: inline-flex;
  min-height: 46px;
  align-items: center;
  justify-content: center;
  padding: 0 18px;
  border: 1px solid var(--line);
  border-radius: 8px;
  font-weight: 800;
}

.button.primary {
  border-color: transparent;
  background: var(--green);
  color: #07110b;
}

.button.ghost {
  background: rgba(237, 247, 241, 0.08);
}

.section {
  width: min(1120px, calc(100% - 32px));
  margin: 0 auto 34px;
  padding: 34px 0;
}

.section-heading {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 18px;
  margin-bottom: 22px;
}

.count {
  color: var(--muted);
  font-weight: 700;
}

.tools {
  display: grid;
  grid-template-columns: minmax(240px, 1fr) 2fr;
  gap: 14px;
  margin-bottom: 20px;
}

.search {
  display: grid;
  gap: 8px;
  color: var(--muted);
  font-size: 0.85rem;
  font-weight: 800;
}

.search input {
  width: 100%;
  min-height: 46px;
  border: 1px solid var(--line);
  border-radius: 8px;
  outline: none;
  background: rgba(22, 34, 29, 0.94);
  color: var(--text);
  font: inherit;
  padding: 0 14px;
}

.search input:focus {
  border-color: rgba(95, 224, 131, 0.75);
  box-shadow: 0 0 0 4px rgba(95, 224, 131, 0.12);
}

.filters {
  display: flex;
  flex-wrap: wrap;
  align-content: end;
  gap: 8px;
}

.filter {
  min-height: 38px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(237, 247, 241, 0.08);
  color: var(--muted);
  cursor: pointer;
  font: inherit;
  font-weight: 800;
  padding: 0 12px;
}

.filter.active,
.filter:hover {
  border-color: rgba(95, 224, 131, 0.58);
  background: rgba(95, 224, 131, 0.16);
  color: var(--text);
}

.commands-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 14px;
}

.command-card {
  position: relative;
  min-height: 232px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(22, 34, 29, 0.94);
  box-shadow: var(--shadow);
  padding: 18px;
}

.command-top {
  display: flex;
  align-items: start;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 14px;
}

.command-name {
  margin: 0;
  font-size: 1.35rem;
}

.tag {
  flex: 0 0 auto;
  border-radius: 999px;
  background: rgba(95, 224, 131, 0.14);
  color: var(--green);
  font-size: 0.74rem;
  font-weight: 800;
  padding: 6px 9px;
}

.usage {
  display: inline-flex;
  max-width: 100%;
  margin-bottom: 14px;
  border: 1px solid rgba(245, 196, 91, 0.26);
  border-radius: 8px;
  background: rgba(245, 196, 91, 0.1);
  color: var(--gold);
  font-family: "Consolas", "Courier New", monospace;
  font-weight: 700;
  padding: 8px 10px;
  overflow-wrap: anywhere;
}

.description,
.tips {
  color: var(--muted);
  line-height: 1.55;
}

.tips {
  margin-bottom: 0;
  padding-top: 12px;
  border-top: 1px solid var(--line);
  font-size: 0.92rem;
}

.empty {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(22, 34, 29, 0.94);
  color: var(--muted);
  padding: 24px;
  text-align: center;
}

code {
  color: #d8ffe1;
  font-family: "Consolas", "Courier New", monospace;
  font-size: 0.92rem;
}

.footer {
  border-top: 1px solid var(--line);
  color: var(--muted);
  padding: 24px 16px;
  text-align: center;
}

@media (max-width: 760px) {
  .nav {
    align-items: flex-start;
    flex-direction: column;
  }

  .hero {
    min-height: 65vh;
    padding-top: 64px;
  }

  .section-heading,
  .tools {
    grid-template-columns: 1fr;
  }

  .section-heading {
    align-items: start;
    flex-direction: column;
  }
}
