/* D.U.H. — Universal Harness — GitHub Pages Stylesheet */

@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700;800&family=JetBrains+Mono:wght@400;500;600&display=swap');

/* ─── Design Tokens ─────────────────────────────────────────── */
:root {
  --bg:          #0a0a0a;
  --bg-2:        #111111;
  --bg-3:        #1a1a1a;
  --bg-4:        #222222;
  --border:      #2a2a2a;
  --border-2:    #3a3a3a;
  --fg:          #e5e5e5;
  --fg-2:        #a1a1aa;
  --fg-3:        #71717a;
  --accent:      #3b82f6;
  --accent-dim:  rgba(59, 130, 246, 0.15);
  --accent-2:    #6366f1;
  --green:       #22c55e;
  --green-dim:   rgba(34, 197, 94, 0.15);
  --yellow:      #eab308;
  --yellow-dim:  rgba(234, 179, 8, 0.12);
  --red:         #ef4444;
  --purple:      #a855f7;
  --purple-dim:  rgba(168, 85, 247, 0.15);
  --radius:      8px;
  --radius-lg:   14px;
  --radius-xl:   20px;
  --shadow:      0 4px 24px rgba(0,0,0,0.5);
  --shadow-lg:   0 8px 48px rgba(0,0,0,0.7);
  --font:        'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  --mono:        'JetBrains Mono', 'Fira Code', 'Cascadia Code', monospace;
  --nav-h:       64px;
}

/* ─── Reset & Base ───────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; font-size: 16px; }
body {
  font-family: var(--font);
  background: var(--bg);
  color: var(--fg);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  min-height: 100vh;
}
a { color: var(--accent); text-decoration: none; }
a:hover { text-decoration: underline; }
img { display: block; max-width: 100%; }

/* ─── Nav ────────────────────────────────────────────────────── */
.nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  height: var(--nav-h);
  background: rgba(10,10,10,0.85);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
  z-index: 100;
  display: flex;
  align-items: center;
  padding: 0 24px;
}
.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
}
.nav-logo {
  font-family: var(--mono);
  font-size: 1.1rem;
  font-weight: 600;
  color: var(--fg);
  letter-spacing: -0.02em;
}
.nav-logo span { color: var(--accent); }
.nav-links {
  display: flex;
  gap: 32px;
  list-style: none;
}
.nav-links a {
  color: var(--fg-2);
  font-size: 0.9rem;
  font-weight: 500;
  transition: color 0.15s;
}
.nav-links a:hover,
.nav-links a.active {
  color: var(--fg);
  text-decoration: none;
}
.nav-actions {
  display: flex;
  gap: 12px;
  align-items: center;
}
.nav-github {
  display: flex;
  align-items: center;
  gap: 6px;
  color: var(--fg-2);
  font-size: 0.875rem;
  font-weight: 500;
  padding: 6px 14px;
  border: 1px solid var(--border-2);
  border-radius: var(--radius);
  transition: all 0.15s;
}
.nav-github:hover {
  color: var(--fg);
  border-color: var(--fg-3);
  text-decoration: none;
  background: var(--bg-3);
}
.nav-hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
  padding: 4px;
  background: none;
  border: none;
}
.nav-hamburger span {
  display: block;
  width: 22px;
  height: 2px;
  background: var(--fg-2);
  border-radius: 2px;
  transition: all 0.2s;
}

/* ─── Page wrapper ───────────────────────────────────────────── */
.page-body {
  padding-top: var(--nav-h);
}

/* ─── Container ──────────────────────────────────────────────── */
.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
}
.container-narrow {
  max-width: 820px;
  margin: 0 auto;
  padding: 0 24px;
}

/* ─── Hero ───────────────────────────────────────────────────── */
.hero {
  padding: 100px 24px 80px;
  text-align: center;
  position: relative;
  overflow: hidden;
}
.hero::before {
  content: '';
  position: absolute;
  top: -200px; left: 50%;
  transform: translateX(-50%);
  width: 800px;
  height: 600px;
  background: radial-gradient(ellipse at center, rgba(59,130,246,0.12) 0%, transparent 70%);
  pointer-events: none;
}
.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: var(--accent-dim);
  border: 1px solid rgba(59,130,246,0.3);
  color: var(--accent);
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  padding: 5px 14px;
  border-radius: 100px;
  margin-bottom: 32px;
}
.hero-title {
  font-size: clamp(2.5rem, 7vw, 5rem);
  font-weight: 800;
  letter-spacing: -0.04em;
  line-height: 1.05;
  margin-bottom: 24px;
}
.hero-title .mono {
  font-family: var(--mono);
  color: var(--accent);
}
.hero-tagline {
  font-size: clamp(1.1rem, 2.5vw, 1.4rem);
  color: var(--fg-2);
  max-width: 580px;
  margin: 0 auto 48px;
  font-weight: 400;
  line-height: 1.5;
}
.hero-cta {
  display: flex;
  gap: 14px;
  justify-content: center;
  flex-wrap: wrap;
  margin-bottom: 56px;
}

/* ─── Buttons ────────────────────────────────────────────────── */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 12px 24px;
  border-radius: var(--radius);
  font-size: 0.95rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.15s;
  border: none;
  text-decoration: none !important;
}
.btn-primary {
  background: var(--accent);
  color: #fff;
}
.btn-primary:hover {
  background: #2563eb;
  transform: translateY(-1px);
  box-shadow: 0 4px 16px rgba(59,130,246,0.35);
}
.btn-secondary {
  background: var(--bg-3);
  color: var(--fg);
  border: 1px solid var(--border-2);
}
.btn-secondary:hover {
  background: var(--bg-4);
  border-color: var(--fg-3);
}
.btn-sm {
  padding: 7px 14px;
  font-size: 0.825rem;
}

/* ─── Install Box ────────────────────────────────────────────── */
.install-box {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  background: var(--bg-2);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 14px 20px;
  margin-bottom: 48px;
  max-width: 100%;
}
.install-label {
  color: var(--fg-3);
  font-family: var(--mono);
  font-size: 0.75rem;
  white-space: nowrap;
}
.install-cmd {
  font-family: var(--mono);
  font-size: 1rem;
  color: var(--green);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.install-copy {
  background: var(--bg-3);
  border: 1px solid var(--border-2);
  border-radius: 6px;
  padding: 5px 10px;
  color: var(--fg-2);
  font-size: 0.8rem;
  cursor: pointer;
  transition: all 0.15s;
  white-space: nowrap;
}
.install-copy:hover {
  color: var(--fg);
  background: var(--bg-4);
}

/* ─── Badges ─────────────────────────────────────────────────── */
.hero-badges {
  display: flex;
  gap: 8px;
  justify-content: center;
  flex-wrap: wrap;
  margin-bottom: 80px;
}
.badge {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 4px 10px;
  border-radius: 100px;
  font-size: 0.75rem;
  font-weight: 500;
  border: 1px solid;
}
.badge-blue   { background: var(--accent-dim); color: var(--accent); border-color: rgba(59,130,246,0.25); }
.badge-green  { background: var(--green-dim); color: var(--green); border-color: rgba(34,197,94,0.25); }
.badge-purple { background: var(--purple-dim); color: var(--purple); border-color: rgba(168,85,247,0.25); }
.badge-yellow { background: var(--yellow-dim); color: var(--yellow); border-color: rgba(234,179,8,0.25); }

/* ─── Section ────────────────────────────────────────────────── */
section {
  padding: 96px 0;
  position: relative;
}
section + section {
  border-top: 1px solid var(--border);
}
.section-label {
  display: inline-block;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 12px;
}
.section-title {
  font-size: clamp(1.8rem, 4vw, 2.8rem);
  font-weight: 800;
  letter-spacing: -0.03em;
  line-height: 1.1;
  margin-bottom: 16px;
}
.section-sub {
  font-size: 1.05rem;
  color: var(--fg-2);
  max-width: 600px;
  line-height: 1.6;
}
.section-header {
  margin-bottom: 56px;
}
.section-header.center {
  text-align: center;
}
.section-header.center .section-sub {
  margin: 0 auto;
}

/* ─── Feature Cards ──────────────────────────────────────────── */
.feature-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: 20px;
}
.feature-card {
  background: var(--bg-2);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 28px;
  transition: all 0.2s;
}
.feature-card:hover {
  border-color: var(--border-2);
  background: var(--bg-3);
  transform: translateY(-2px);
  box-shadow: var(--shadow);
}
.feature-icon {
  width: 44px;
  height: 44px;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.3rem;
  margin-bottom: 18px;
}
.feature-icon.blue   { background: var(--accent-dim); }
.feature-icon.green  { background: var(--green-dim); }
.feature-icon.purple { background: var(--purple-dim); }
.feature-icon.yellow { background: var(--yellow-dim); }
.feature-icon.red    { background: rgba(239,68,68,0.12); }
.feature-icon.indigo { background: rgba(99,102,241,0.12); }
.feature-card h3 {
  font-size: 1.05rem;
  font-weight: 700;
  margin-bottom: 8px;
  letter-spacing: -0.01em;
}
.feature-card p {
  font-size: 0.9rem;
  color: var(--fg-2);
  line-height: 1.6;
}
.feature-card .tag-list {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 14px;
}
.tag {
  font-family: var(--mono);
  font-size: 0.7rem;
  padding: 2px 8px;
  border-radius: 4px;
  background: var(--bg-4);
  color: var(--fg-3);
  border: 1px solid var(--border);
}

/* ─── Code Blocks ────────────────────────────────────────────── */
.code-block {
  background: var(--bg-2);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  overflow: hidden;
}
.code-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 18px;
  border-bottom: 1px solid var(--border);
  background: var(--bg-3);
}
.code-title {
  font-family: var(--mono);
  font-size: 0.8rem;
  color: var(--fg-3);
}
.code-dots {
  display: flex;
  gap: 6px;
}
.code-dots span {
  width: 10px;
  height: 10px;
  border-radius: 50%;
}
.code-dots span:nth-child(1) { background: #ff5f57; }
.code-dots span:nth-child(2) { background: #ffbd2e; }
.code-dots span:nth-child(3) { background: #27c93f; }
.copy-btn {
  background: transparent;
  border: 1px solid var(--border-2);
  border-radius: 5px;
  color: var(--fg-3);
  font-size: 0.75rem;
  padding: 3px 10px;
  cursor: pointer;
  transition: all 0.15s;
  font-family: var(--font);
}
.copy-btn:hover {
  color: var(--fg);
  border-color: var(--fg-3);
  background: var(--bg-4);
}
pre {
  padding: 22px;
  overflow-x: auto;
  font-family: var(--mono);
  font-size: 0.875rem;
  line-height: 1.7;
  margin: 0;
}
code {
  font-family: var(--mono);
  font-size: 0.875em;
  color: var(--fg);
}
.kw   { color: #c084fc; }
.str  { color: #86efac; }
.cmt  { color: #52525b; font-style: italic; }
.num  { color: #f9a8d4; }
.fn   { color: #7dd3fc; }
.punc { color: var(--fg-2); }
.flag { color: #fcd34d; }
.val  { color: #6ee7b7; }
.dim  { color: var(--fg-3); }

/* ─── Tables ─────────────────────────────────────────────────── */
.table-wrap {
  overflow-x: auto;
  border-radius: var(--radius-lg);
  border: 1px solid var(--border);
}
table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.9rem;
}
th {
  background: var(--bg-3);
  padding: 12px 16px;
  text-align: left;
  font-weight: 600;
  font-size: 0.8rem;
  letter-spacing: 0.03em;
  color: var(--fg-2);
  border-bottom: 1px solid var(--border);
  white-space: nowrap;
}
td {
  padding: 11px 16px;
  border-bottom: 1px solid var(--border);
  vertical-align: middle;
  color: var(--fg);
}
tr:last-child td { border-bottom: none; }
tr:hover td { background: var(--bg-2); }
.td-yes  { color: var(--green); font-weight: 600; }
.td-no   { color: var(--fg-3); }
.td-part { color: var(--yellow); }
.td-scaf { color: var(--fg-3); font-style: italic; }
.td-bold { font-weight: 700; color: var(--accent); }
.td-ahead { color: var(--purple); font-weight: 600; }
.th-duh { color: var(--accent) !important; }

/* ─── Benchmark Section ──────────────────────────────────────── */
.benchmark-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 16px;
  margin-bottom: 48px;
}
.stat-card {
  background: var(--bg-2);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 24px;
  text-align: center;
}
.stat-card.highlight {
  border-color: rgba(59,130,246,0.4);
  background: var(--accent-dim);
}
.stat-value {
  font-size: 2.2rem;
  font-weight: 800;
  letter-spacing: -0.04em;
  line-height: 1;
  margin-bottom: 6px;
  font-family: var(--mono);
}
.stat-value.green  { color: var(--green); }
.stat-value.blue   { color: var(--accent); }
.stat-value.purple { color: var(--purple); }
.stat-label {
  font-size: 0.8rem;
  color: var(--fg-2);
  font-weight: 500;
}

/* ─── Security layers ────────────────────────────────────────── */
.layer-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(340px, 1fr));
  gap: 20px;
}
.layer-card {
  background: var(--bg-2);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 28px;
}
.layer-card h3 {
  font-size: 1rem;
  font-weight: 700;
  margin-bottom: 12px;
  display: flex;
  align-items: center;
  gap: 10px;
}
.layer-num {
  background: var(--purple-dim);
  color: var(--purple);
  border: 1px solid rgba(168,85,247,0.25);
  border-radius: 6px;
  font-size: 0.75rem;
  font-weight: 700;
  padding: 2px 8px;
  font-family: var(--mono);
}
.layer-card ul {
  list-style: none;
  padding: 0;
}
.layer-card li {
  font-size: 0.875rem;
  color: var(--fg-2);
  padding: 4px 0;
  display: flex;
  align-items: flex-start;
  gap: 8px;
}
.layer-card li::before {
  content: '→';
  color: var(--accent);
  font-family: var(--mono);
  flex-shrink: 0;
  margin-top: 1px;
}

/* ─── Provider section ───────────────────────────────────────── */
.provider-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: 14px;
}
.provider-card {
  background: var(--bg-2);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 18px 20px;
  display: flex;
  align-items: center;
  gap: 12px;
  transition: all 0.15s;
}
.provider-card:hover {
  border-color: var(--border-2);
  background: var(--bg-3);
}
.provider-icon {
  font-size: 1.5rem;
  width: 36px;
  text-align: center;
  flex-shrink: 0;
}
.provider-info h4 {
  font-size: 0.9rem;
  font-weight: 600;
  margin-bottom: 2px;
}
.provider-info p {
  font-size: 0.75rem;
  color: var(--fg-3);
}

/* ─── Footer ─────────────────────────────────────────────────── */
footer {
  border-top: 1px solid var(--border);
  padding: 56px 24px;
  text-align: center;
}
.footer-inner {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 24px;
}
.footer-logo {
  font-family: var(--mono);
  font-size: 1.2rem;
  font-weight: 600;
  color: var(--fg);
}
.footer-logo span { color: var(--accent); }
.footer-links {
  display: flex;
  gap: 28px;
  flex-wrap: wrap;
  justify-content: center;
}
.footer-links a {
  color: var(--fg-3);
  font-size: 0.875rem;
  transition: color 0.15s;
}
.footer-links a:hover { color: var(--fg); text-decoration: none; }
.footer-copy {
  font-size: 0.8rem;
  color: var(--fg-3);
}

/* ─── Page-specific: Comparisons ─────────────────────────────── */
.page-hero {
  padding: 72px 24px 56px;
  text-align: center;
  border-bottom: 1px solid var(--border);
}
.page-hero .hero-badge { margin-bottom: 20px; }
.page-hero h1 {
  font-size: clamp(1.8rem, 4vw, 3rem);
  font-weight: 800;
  letter-spacing: -0.03em;
  margin-bottom: 14px;
}
.page-hero p {
  font-size: 1.05rem;
  color: var(--fg-2);
  max-width: 580px;
  margin: 0 auto;
}
.tab-bar {
  display: flex;
  gap: 2px;
  border-bottom: 1px solid var(--border);
  overflow-x: auto;
  padding: 0;
  margin-bottom: 40px;
  scrollbar-width: none;
}
.tab-bar::-webkit-scrollbar { display: none; }
.tab-btn {
  padding: 12px 20px;
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--fg-3);
  background: none;
  border: none;
  border-bottom: 2px solid transparent;
  cursor: pointer;
  white-space: nowrap;
  transition: all 0.15s;
  font-family: var(--font);
  margin-bottom: -1px;
}
.tab-btn:hover { color: var(--fg); }
.tab-btn.active {
  color: var(--accent);
  border-bottom-color: var(--accent);
}
.tab-panel { display: none; }
.tab-panel.active { display: block; }

/* ─── Page-specific: Getting Started ─────────────────────────── */
.steps-list {
  counter-reset: steps;
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 32px;
}
.step-item {
  display: flex;
  gap: 20px;
}
.step-num {
  counter-increment: steps;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: var(--accent-dim);
  border: 1px solid rgba(59,130,246,0.3);
  color: var(--accent);
  font-weight: 700;
  font-size: 0.9rem;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  margin-top: 2px;
}
.step-content { flex: 1; }
.step-content h3 {
  font-size: 1.05rem;
  font-weight: 700;
  margin-bottom: 10px;
  letter-spacing: -0.01em;
}
.step-content p {
  font-size: 0.9rem;
  color: var(--fg-2);
  margin-bottom: 12px;
  line-height: 1.6;
}

/* ─── Cheat Sheet ────────────────────────────────────────────── */
.cheat-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 16px;
}
.cheat-card {
  background: var(--bg-2);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 18px;
}
.cheat-card h4 {
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--fg-2);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: 10px;
}
.cheat-card ul { list-style: none; }
.cheat-card li {
  display: flex;
  align-items: baseline;
  gap: 8px;
  padding: 3px 0;
  font-size: 0.875rem;
}
.cheat-key {
  font-family: var(--mono);
  color: var(--accent);
  min-width: 100px;
  flex-shrink: 0;
  font-size: 0.8rem;
}
.cheat-desc { color: var(--fg-2); }

/* ─── Callout ────────────────────────────────────────────────── */
.callout {
  border-radius: var(--radius);
  padding: 16px 20px;
  display: flex;
  gap: 12px;
  align-items: flex-start;
  margin: 20px 0;
  font-size: 0.9rem;
}
.callout.info {
  background: var(--accent-dim);
  border: 1px solid rgba(59,130,246,0.25);
  color: var(--fg);
}
.callout.warn {
  background: var(--yellow-dim);
  border: 1px solid rgba(234,179,8,0.25);
  color: var(--fg);
}
.callout.tip {
  background: var(--green-dim);
  border: 1px solid rgba(34,197,94,0.25);
  color: var(--fg);
}
.callout-icon { font-size: 1rem; flex-shrink: 0; margin-top: 1px; }
.callout p { margin: 0; color: var(--fg-2); line-height: 1.5; }
.callout strong { color: var(--fg); }

/* ─── Aside / Key Insight ─────────────────────────────────────── */
.insight-box {
  background: var(--purple-dim);
  border: 1px solid rgba(168,85,247,0.25);
  border-radius: var(--radius-lg);
  padding: 24px;
  margin: 32px 0;
}
.insight-box h4 {
  color: var(--purple);
  font-size: 0.8rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-bottom: 8px;
}
.insight-box p {
  font-size: 0.925rem;
  color: var(--fg-2);
  line-height: 1.6;
}

/* ─── Anchor links in headings ───────────────────────────────── */
h2, h3, h4 {
  scroll-margin-top: calc(var(--nav-h) + 24px);
}

/* ─── Responsive ─────────────────────────────────────────────── */
@media (max-width: 768px) {
  .nav-links { display: none; }
  .nav-links.open {
    display: flex;
    flex-direction: column;
    position: fixed;
    top: var(--nav-h);
    left: 0; right: 0;
    background: var(--bg-2);
    border-bottom: 1px solid var(--border);
    padding: 20px 24px;
    gap: 20px;
    z-index: 99;
  }
  .nav-hamburger { display: flex; }
  .nav-actions { display: none; }
  .hero { padding: 56px 20px 56px; }
  .feature-grid { grid-template-columns: 1fr; }
  .benchmark-grid { grid-template-columns: repeat(2, 1fr); }
  .layer-grid { grid-template-columns: 1fr; }
  .provider-grid { grid-template-columns: repeat(2, 1fr); }
  .install-box { flex-direction: column; align-items: flex-start; }
  section { padding: 64px 0; }
}
@media (max-width: 480px) {
  .benchmark-grid { grid-template-columns: 1fr; }
  .provider-grid { grid-template-columns: 1fr; }
  .hero-cta { flex-direction: column; align-items: center; }
}
