/* hasherdash project site — dark ops aesthetic */

:root {
  --bg: #0f1114;
  --bg-elevated: #161a1f;
  --bg-card: #1a1f26;
  --border: rgba(255, 255, 255, 0.08);
  --border-strong: rgba(255, 255, 255, 0.14);
  --text: #e8eaed;
  --text-muted: #9aa3ad;
  --text-faint: #6b7480;
  --accent: #3d9a5f;
  --accent-soft: rgba(61, 154, 95, 0.15);
  --accent-hover: #4cb872;
  --warn: #c47a00;
  --radius: 12px;
  --radius-sm: 8px;
  --shadow: 0 24px 64px rgba(0, 0, 0, 0.45);
  --font: ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --mono: ui-monospace, "SF Mono", Menlo, Consolas, "Liberation Mono", monospace;
  --wrap: 1080px;
  --header-h: 3.5rem;
}

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

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100vh;
  font-family: var(--font);
  font-size: 1rem;
  line-height: 1.55;
  color: var(--text);
  background:
    radial-gradient(ellipse 80% 50% at 50% -20%, rgba(61, 154, 95, 0.12), transparent 55%),
    radial-gradient(ellipse 60% 40% at 100% 0%, rgba(80, 120, 180, 0.06), transparent 50%),
    var(--bg);
  -webkit-font-smoothing: antialiased;
}

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

a:hover {
  text-decoration: underline;
}

.wrap {
  width: min(100% - 2rem, var(--wrap));
  margin-inline: auto;
}

/* Header */

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  height: var(--header-h);
  border-bottom: 1px solid var(--border);
  background: color-mix(in srgb, var(--bg) 88%, transparent);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 100%;
  gap: 1rem;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  color: var(--text);
  text-decoration: none;
  font-size: 1.05rem;
  letter-spacing: -0.02em;
}

.brand:hover {
  text-decoration: none;
  color: var(--text);
}

.brand-mark {
  width: 0.65rem;
  height: 0.65rem;
  border-radius: 999px;
  background: var(--accent);
  box-shadow: 0 0 0 3px var(--accent-soft);
}

.nav {
  display: flex;
  align-items: center;
  gap: 0.25rem 1.1rem;
  flex-wrap: wrap;
  justify-content: flex-end;
}

.nav a:not(.btn) {
  color: var(--text-muted);
  font-size: 0.9rem;
  text-decoration: none;
}

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

/* Buttons */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
  padding: 0.55rem 1.1rem;
  border-radius: 999px;
  border: 1px solid var(--border-strong);
  background: transparent;
  color: var(--text);
  font: inherit;
  font-size: 0.9rem;
  font-weight: 500;
  text-decoration: none;
  cursor: pointer;
  transition: background 0.15s, border-color 0.15s, color 0.15s;
}

.btn:hover {
  background: rgba(255, 255, 255, 0.05);
  border-color: rgba(255, 255, 255, 0.22);
  text-decoration: none;
  color: var(--text);
}

.btn-sm {
  padding: 0.35rem 0.85rem;
  font-size: 0.85rem;
}

.btn-primary {
  background: var(--accent);
  border-color: transparent;
  color: #04120a;
}

.btn-primary:hover {
  background: var(--accent-hover);
  color: #04120a;
  border-color: transparent;
}

/* Hero */

.hero {
  padding: 4.5rem 0 2.5rem;
}

.hero-inner {
  max-width: 42rem;
}

.eyebrow {
  margin: 0 0 0.85rem;
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--accent-hover);
}

.hero h1 {
  margin: 0 0 1rem;
  font-size: clamp(2rem, 5vw, 2.75rem);
  font-weight: 700;
  letter-spacing: -0.03em;
  line-height: 1.15;
}

.lede {
  margin: 0 0 1.75rem;
  font-size: 1.125rem;
  color: var(--text-muted);
  max-width: 36rem;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-bottom: 1.75rem;
}

.hero-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem 0.65rem;
  list-style: none;
  margin: 0;
  padding: 0;
}

.hero-meta li {
  font-size: 0.8rem;
  color: var(--text-muted);
  padding: 0.25rem 0.65rem;
  border-radius: 999px;
  border: 1px solid var(--border);
  background: rgba(255, 255, 255, 0.02);
}

/* Screenshot */

.screenshot-section {
  padding: 1rem 0 3.5rem;
}

.shot {
  margin: 0;
  border-radius: var(--radius);
  border: 1px solid var(--border-strong);
  background: var(--bg-elevated);
  box-shadow: var(--shadow);
  overflow: hidden;
}

.shot img {
  display: block;
  width: 100%;
  height: auto;
  vertical-align: middle;
}

.shot figcaption {
  padding: 0.85rem 1.1rem;
  font-size: 0.85rem;
  color: var(--text-faint);
  border-top: 1px solid var(--border);
  background: var(--bg-card);
}

/* Features */

.features {
  padding: 3.5rem 0;
  border-top: 1px solid var(--border);
}

.features h2,
.quickstart h2 {
  margin: 0 0 0.65rem;
  font-size: clamp(1.5rem, 3vw, 1.85rem);
  letter-spacing: -0.02em;
}

.section-lede {
  margin: 0 0 2rem;
  color: var(--text-muted);
  max-width: 36rem;
}

.feature-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(16rem, 1fr));
  gap: 1rem;
}

.card {
  padding: 1.25rem 1.35rem;
  border-radius: var(--radius);
  border: 1px solid var(--border);
  background: var(--bg-card);
}

.card h3 {
  margin: 0 0 0.5rem;
  font-size: 1rem;
  font-weight: 600;
  letter-spacing: -0.01em;
}

.card p {
  margin: 0;
  font-size: 0.92rem;
  color: var(--text-muted);
}

/* Quick start */

.quickstart {
  padding: 3.5rem 0 4.5rem;
  border-top: 1px solid var(--border);
  background: linear-gradient(180deg, transparent, rgba(0, 0, 0, 0.2));
}

.steps {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
  margin-bottom: 1.5rem;
}

.step {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 1rem;
  align-items: start;
}

.step-num {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 1.75rem;
  height: 1.75rem;
  margin-top: 0.15rem;
  border-radius: 999px;
  font-size: 0.8rem;
  font-weight: 700;
  color: var(--accent-hover);
  background: var(--accent-soft);
  border: 1px solid rgba(61, 154, 95, 0.35);
}

.step h3 {
  margin: 0 0 0.5rem;
  font-size: 1rem;
  font-weight: 600;
}

pre {
  margin: 0;
  padding: 0.9rem 1rem;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border);
  background: #0a0c0e;
  overflow-x: auto;
}

code {
  font-family: var(--mono);
  font-size: 0.82rem;
  line-height: 1.5;
  color: #c8d0d8;
}

.more {
  margin: 1.5rem 0;
  padding: 0.85rem 1rem;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border);
  background: var(--bg-elevated);
}

.more summary {
  cursor: pointer;
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--text-muted);
  user-select: none;
}

.more summary:hover {
  color: var(--text);
}

.more[open] summary {
  margin-bottom: 0.75rem;
  color: var(--text);
}

.more pre {
  background: #080a0c;
}

.docs-link {
  margin: 0;
  font-size: 0.95rem;
  color: var(--text-muted);
}

/* Footer */

.site-footer {
  border-top: 1px solid var(--border);
  padding: 1.75rem 0 2.25rem;
}

.footer-inner {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
}

.site-footer p {
  margin: 0;
  font-size: 0.88rem;
}

.muted {
  color: var(--text-faint);
}

.site-footer a {
  color: var(--text-muted);
}

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

/* Responsive */

@media (max-width: 640px) {
  .hero {
    padding-top: 3rem;
  }

  .nav a:not(.btn) {
    display: none;
  }

  .step {
    grid-template-columns: 1fr;
    gap: 0.5rem;
  }

  .step-num {
    margin-top: 0;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
}
