:root {
  --bg: #0f0f12;
  --bg-alt: #15151b;
  --text: #e0e0e0;
  --muted: #9aa0a6;
  --accent: #00d4ff;
  --accent-soft: rgba(0, 212, 255, 0.15);
  --card: #12121a;
  --border: #222230;
  --shadow: 0 18px 40px rgba(0, 0, 0, 0.35);
  --font: "JetBrains Mono", "Fira Code", monospace;
}

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

body {
  font-family: var(--font);
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
  min-height: 100vh;
  position: relative;
}

.bg-glow {
  position: fixed;
  inset: 0;
  background:
    radial-gradient(circle at 15% 20%, rgba(0, 212, 255, 0.12), transparent 45%),
    radial-gradient(circle at 85% 10%, rgba(0, 212, 255, 0.08), transparent 50%),
    radial-gradient(circle at 50% 80%, rgba(255, 255, 255, 0.04), transparent 55%);
  pointer-events: none;
  z-index: -1;
}

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

.site-header {
  padding: 24px 8vw 0;
}

.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: rgba(18, 18, 26, 0.85);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 14px 22px;
  backdrop-filter: blur(8px);
}

.logo {
  font-weight: 700;
  letter-spacing: 0.5px;
  color: var(--accent);
}

.nav-links {
  display: flex;
  gap: 20px;
  font-size: 0.9rem;
  color: var(--muted);
}

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

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

.hero {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 32px;
  align-items: center;
  margin-top: 24px;
}

.hero-title {
  font-size: clamp(2.5rem, 4vw, 4rem);
  font-weight: 700;
}

.prompt {
  color: var(--accent);
}

.cursor {
  display: inline-block;
  width: 10px;
  height: 1.05em;
  background: var(--accent);
  margin-left: 6px;
  animation: blink 1s steps(2, start) infinite;
}

.hero-subtitle {
  font-size: 1.2rem;
  margin-top: 12px;
  color: var(--accent);
}

.hero-desc {
  color: var(--muted);
  margin-top: 16px;
  max-width: 520px;
}

.hero-actions {
  display: flex;
  gap: 16px;
  margin-top: 24px;
  flex-wrap: wrap;
}

.btn {
  border: 1px solid transparent;
  border-radius: 999px;
  padding: 10px 20px;
  font-weight: 600;
  font-size: 0.95rem;
  transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
  cursor: pointer;
}

.btn-primary {
  background: var(--accent);
  color: #050507;
  box-shadow: 0 10px 20px rgba(0, 212, 255, 0.25);
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 16px 24px rgba(0, 212, 255, 0.35);
}

.btn-secondary {
  border-color: var(--border);
  background: transparent;
  color: var(--text);
}

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

.hero-stats {
  display: flex;
  gap: 24px;
  margin-top: 28px;
}

.stat {
  background: var(--bg-alt);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 12px 16px;
  min-width: 100px;
}

.stat-num {
  font-size: 1.2rem;
  font-weight: 700;
  color: var(--accent);
}

.stat-label {
  font-size: 0.85rem;
  color: var(--muted);
}

.hero-terminal {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 18px;
  box-shadow: var(--shadow);
  overflow: hidden;
}

.terminal-bar {
  display: flex;
  gap: 6px;
  padding: 12px 16px;
  border-bottom: 1px solid var(--border);
}

.terminal-bar span {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: #2b2b38;
}

.terminal-bar span:nth-child(1) {
  background: #ff5f57;
}

.terminal-bar span:nth-child(2) {
  background: #febc2e;
}

.terminal-bar span:nth-child(3) {
  background: #28c840;
}

.terminal-body {
  padding: 20px;
  font-size: 0.9rem;
  color: var(--text);
  background: linear-gradient(140deg, rgba(0, 212, 255, 0.05), transparent 60%);
}

.section-head {
  margin: 72px 0 28px;
}

.section-head h2 {
  font-size: 2rem;
  margin-bottom: 8px;
}

.section-head p {
  color: var(--muted);
}

.features {
  margin-top: 48px;
}

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

.feature-card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 20px;
  box-shadow: var(--shadow);
}

.feature-icon {
  width: 42px;
  height: 42px;
  border-radius: 12px;
  display: grid;
  place-items: center;
  background: var(--accent-soft);
  color: var(--accent);
  margin-bottom: 16px;
}

.feature-card h3 {
  margin-bottom: 10px;
}

.feature-card p {
  color: var(--muted);
}

.scripts {
  margin-top: 72px;
}

.search-bar {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-bottom: 24px;
}

.search-bar input {
  background: var(--bg-alt);
  border: 1px solid var(--border);
  padding: 14px 16px;
  border-radius: 12px;
  font-size: 1rem;
  color: var(--text);
}

.search-bar input:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 0 2px rgba(0, 212, 255, 0.2);
}

.search-hint {
  color: var(--muted);
  font-size: 0.85rem;
}

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

.script-card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 20px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  position: relative;
}

.card-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
}

.card-desc {
  color: var(--muted);
  font-size: 0.9rem;
}

.badge {
  padding: 4px 10px;
  border-radius: 999px;
  font-size: 0.7rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.badge-bash {
  background: rgba(0, 212, 255, 0.15);
  color: var(--accent);
  border: 1px solid rgba(0, 212, 255, 0.4);
}

.badge-python {
  background: rgba(255, 195, 0, 0.12);
  color: #ffd166;
  border: 1px solid rgba(255, 209, 102, 0.4);
}

.badge-js {
  background: rgba(120, 230, 140, 0.15);
  color: #7ee081;
  border: 1px solid rgba(126, 224, 129, 0.4);
}

.badge-powershell {
  background: rgba(124, 184, 255, 0.15);
  color: #7cb8ff;
  border: 1px solid rgba(124, 184, 255, 0.4);
}

.badge-xscript {
  background: rgba(255, 99, 71, 0.15);
  color: #ff7a59;
  border: 1px solid rgba(255, 122, 89, 0.4);
}

pre {
  background: #0b0b10;
  border: 1px solid #1d1d28;
  border-radius: 12px;
  padding: 12px;
  overflow-x: auto;
  font-size: 0.85rem;
}

.code-block {
  color: #b6ffda;
}

.btn-copy {
  align-self: flex-start;
  background: transparent;
  border-color: var(--accent);
  color: var(--accent);
}

.card-actions {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}

.btn-download {
  align-self: flex-start;
  border-color: var(--border);
  background: transparent;
  color: var(--text);
}

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

.btn-copy.copied {
  background: var(--accent);
  color: #050507;
}

.btn-copy:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 20px rgba(0, 212, 255, 0.15);
}

.site-footer {
  border-top: 1px solid var(--border);
  padding: 20px 8vw 30px;
  color: var(--muted);
}

.footer-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

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

.hidden {
  display: none !important;
}

.hl-comment {
  color: #6aa89d;
}

.hl-string {
  color: #ffd166;
}

.hl-keyword {
  color: #7cb8ff;
}

@keyframes blink {
  0%, 49% {
    opacity: 1;
  }
  50%, 100% {
    opacity: 0;
  }
}

@media (max-width: 900px) {
  .nav {
    flex-direction: column;
    gap: 10px;
  }

  .hero-stats {
    flex-wrap: wrap;
  }

  .footer-inner {
    flex-direction: column;
  }
}

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

  .nav-links {
    flex-wrap: wrap;
    justify-content: center;
  }
}
