/* claw-forge website — dark theme */

:root {
  --bg: #0d1117;
  --bg-card: #161b22;
  --bg-code: #1f2428;
  --border: #30363d;
  --text: #e6edf3;
  --text-muted: #8b949e;
  --accent: #58a6ff;
  --accent-hover: #79c0ff;
  --success: #3fb950;
  --warning: #d29922;
  --danger: #f85149;
  --font: 'Inter', system-ui, -apple-system, sans-serif;
  --font-mono: 'JetBrains Mono', 'Fira Code', 'Cascadia Code', monospace;
  --radius: 8px;
  --radius-lg: 12px;
  --shadow: 0 4px 20px rgba(0, 0, 0, 0.4);
}

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

html { scroll-behavior: smooth; }

body {
  background: var(--bg);
  color: var(--text);
  font-family: var(--font);
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

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

/* ── Layout ──────────────────────────────────────────────────── */

.container {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 24px;
}

section { padding: 80px 0; }

/* ── Navigation ──────────────────────────────────────────────── */

nav {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(13, 17, 23, 0.92);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
  padding: 0 24px;
}

.nav-inner {
  max-width: 1100px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  gap: 32px;
  height: 60px;
}

.nav-logo {
  font-weight: 700;
  font-size: 18px;
  color: var(--text);
  display: flex;
  align-items: center;
  gap: 6px;
}

.nav-links {
  display: flex;
  gap: 24px;
  margin-left: auto;
}

.nav-links a {
  color: var(--text-muted);
  font-size: 14px;
  transition: color 0.2s;
}

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

/* ── Hero ──────────────────────────────────────────────────────── */

.hero {
  text-align: center;
  padding: 100px 24px 80px;
  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(88, 166, 255, 0.08) 0%, transparent 70%);
  pointer-events: none;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: rgba(88, 166, 255, 0.1);
  border: 1px solid rgba(88, 166, 255, 0.25);
  color: var(--accent);
  font-size: 13px;
  padding: 4px 12px;
  border-radius: 100px;
  margin-bottom: 24px;
}

h1 {
  font-size: clamp(40px, 6vw, 72px);
  font-weight: 800;
  letter-spacing: -0.03em;
  line-height: 1.1;
  margin-bottom: 20px;
}

h1 .emoji { font-size: 0.9em; }

.hero-sub {
  font-size: clamp(16px, 2.5vw, 22px);
  color: var(--text-muted);
  max-width: 600px;
  margin: 0 auto 16px;
}

.hero-tagline {
  font-size: 14px;
  color: var(--text-muted);
  margin-bottom: 40px;
}

.hero-tagline span {
  color: var(--accent);
  font-weight: 600;
}

.btn-group {
  display: flex;
  gap: 12px;
  justify-content: center;
  flex-wrap: wrap;
}

.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 12px 24px;
  border-radius: var(--radius);
  font-size: 15px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s;
  border: none;
}

.btn-primary {
  background: var(--accent);
  color: #0d1117;
}

.btn-primary:hover {
  background: var(--accent-hover);
  transform: translateY(-1px);
  text-decoration: none;
  box-shadow: 0 6px 20px rgba(88, 166, 255, 0.35);
}

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

.btn-secondary:hover {
  background: var(--bg-card);
  border-color: var(--accent);
  transform: translateY(-1px);
  text-decoration: none;
}

/* ── Feature Grid ────────────────────────────────────────────── */

.features { background: var(--bg); }

.section-label {
  text-align: center;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 12px;
}

h2 {
  font-size: clamp(28px, 4vw, 40px);
  font-weight: 700;
  letter-spacing: -0.02em;
  text-align: center;
  margin-bottom: 12px;
}

.section-desc {
  text-align: center;
  color: var(--text-muted);
  max-width: 560px;
  margin: 0 auto 56px;
  font-size: 17px;
}

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

.card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 28px;
  transition: all 0.25s;
  position: relative;
  overflow: hidden;
}

.card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 2px;
  background: linear-gradient(90deg, transparent, var(--accent), transparent);
  opacity: 0;
  transition: opacity 0.25s;
}

.card:hover {
  border-color: rgba(88, 166, 255, 0.4);
  transform: translateY(-3px);
  box-shadow: var(--shadow);
}

.card:hover::before { opacity: 1; }

.card-icon {
  font-size: 32px;
  margin-bottom: 14px;
  display: block;
}

.card h3 {
  font-size: 18px;
  font-weight: 700;
  margin-bottom: 8px;
  color: var(--text);
}

.card p {
  font-size: 14px;
  color: var(--text-muted);
  line-height: 1.6;
}

/* ── Code Blocks ─────────────────────────────────────────────── */

pre {
  background: var(--bg-code);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 20px;
  overflow-x: auto;
  font-family: var(--font-mono);
  font-size: 13.5px;
  line-height: 1.7;
  position: relative;
}

code {
  font-family: var(--font-mono);
  font-size: 0.88em;
  background: rgba(88, 166, 255, 0.1);
  padding: 2px 6px;
  border-radius: 4px;
  color: var(--accent);
}

pre code {
  background: none;
  padding: 0;
  color: var(--text);
  font-size: inherit;
}

.copy-btn {
  position: absolute;
  top: 10px;
  right: 10px;
  background: var(--border);
  border: none;
  color: var(--text-muted);
  padding: 4px 10px;
  border-radius: 5px;
  font-size: 12px;
  cursor: pointer;
  transition: all 0.2s;
  font-family: var(--font);
}

.copy-btn:hover { background: var(--accent); color: #0d1117; }
.copy-btn.copied { background: var(--success); color: white; }

/* ── Install strip ───────────────────────────────────────────── */

.install-strip {
  background: var(--bg-card);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}

.install-strip .container {
  display: flex;
  align-items: center;
  gap: 40px;
  padding: 48px 24px;
}

.install-strip h2 { text-align: left; margin-bottom: 8px; }
.install-strip p { color: var(--text-muted); margin-bottom: 0; }
.install-strip pre { flex: 1; margin: 0; }

/* ── Comparison teaser ───────────────────────────────────────── */

.teaser {
  text-align: center;
}

.teaser-box {
  display: inline-flex;
  align-items: center;
  gap: 20px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 24px 36px;
  margin-top: 32px;
}

.teaser-stat {
  text-align: center;
}

.teaser-stat .num {
  font-size: 36px;
  font-weight: 800;
  color: var(--success);
  display: block;
}

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

.teaser-divider {
  width: 1px;
  height: 60px;
  background: var(--border);
}

/* ── Comparison table ────────────────────────────────────────── */

.table-wrap {
  overflow-x: auto;
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
}

table {
  width: 100%;
  border-collapse: collapse;
  font-size: 15px;
}

thead th {
  background: var(--bg-code);
  padding: 14px 20px;
  text-align: left;
  font-weight: 700;
  font-size: 14px;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  border-bottom: 1px solid var(--border);
}

thead th:not(:first-child) { text-align: center; }

tbody tr {
  border-bottom: 1px solid rgba(48, 54, 61, 0.6);
  transition: background 0.15s;
}

tbody tr:last-child { border-bottom: none; }
tbody tr:hover { background: rgba(88, 166, 255, 0.04); }

tbody td {
  padding: 13px 20px;
  vertical-align: middle;
}

tbody td:not(:first-child) { text-align: center; }

.win { color: var(--success); font-weight: 600; }
.lose { color: var(--danger); }
.neutral { color: var(--text-muted); }

.category-row td {
  background: rgba(88, 166, 255, 0.05);
  font-weight: 700;
  font-size: 13px;
  color: var(--accent);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  padding: 8px 20px;
}

/* ── Tutorial steps ──────────────────────────────────────────── */

.steps { counter-reset: step; }

.step {
  display: grid;
  grid-template-columns: 56px 1fr;
  gap: 24px;
  margin-bottom: 56px;
  align-items: start;
}

.step-num {
  counter-increment: step;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: rgba(88, 166, 255, 0.1);
  border: 2px solid rgba(88, 166, 255, 0.4);
  color: var(--accent);
  font-weight: 800;
  font-size: 18px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  margin-top: 4px;
}

.step-body h3 {
  font-size: 22px;
  font-weight: 700;
  margin-bottom: 10px;
}

.step-body p {
  color: var(--text-muted);
  margin-bottom: 16px;
}

.step-body pre { margin-bottom: 16px; }

/* YAML / config blocks */
.config-block {
  background: var(--bg-code);
  border: 1px solid var(--border);
  border-left: 3px solid var(--accent);
  border-radius: var(--radius);
  padding: 20px;
  margin: 16px 0;
  font-family: var(--font-mono);
  font-size: 13px;
  line-height: 1.7;
  overflow-x: auto;
}

/* Output block */
.output-block {
  background: #0a0c10;
  border: 1px solid var(--border);
  border-left: 3px solid var(--success);
  border-radius: var(--radius);
  padding: 16px 20px;
  margin: 16px 0;
  font-family: var(--font-mono);
  font-size: 12.5px;
  line-height: 1.7;
  color: #94d79f;
  overflow-x: auto;
}

/* ── Roadmap section ─────────────────────────────────────────── */

.roadmap-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 16px;
  margin-top: 40px;
}

.roadmap-item {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-left: 3px solid var(--warning);
  border-radius: var(--radius);
  padding: 20px;
}

.roadmap-item h4 { font-size: 15px; margin-bottom: 6px; }
.roadmap-item p { font-size: 13px; color: var(--text-muted); }

/* ── Footer ──────────────────────────────────────────────────── */

footer {
  border-top: 1px solid var(--border);
  padding: 40px 24px;
  text-align: center;
  color: var(--text-muted);
  font-size: 14px;
}

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

.footer-links {
  display: flex;
  justify-content: center;
  gap: 24px;
  margin-bottom: 16px;
  flex-wrap: wrap;
}

/* ── Toast ───────────────────────────────────────────────────── */

.toast {
  position: fixed;
  bottom: 24px;
  right: 24px;
  background: var(--success);
  color: white;
  padding: 10px 20px;
  border-radius: var(--radius);
  font-size: 14px;
  font-weight: 600;
  z-index: 9999;
  opacity: 0;
  transform: translateY(12px);
  transition: all 0.3s;
  pointer-events: none;
}

.toast.show {
  opacity: 1;
  transform: translateY(0);
}

/* ── Responsive ──────────────────────────────────────────────── */

@media (max-width: 700px) {
  .install-strip .container {
    flex-direction: column;
    align-items: flex-start;
    gap: 20px;
  }

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

  .step-num {
    width: 36px;
    height: 36px;
    font-size: 15px;
  }

  .teaser-box {
    flex-direction: column;
    gap: 12px;
  }

  .teaser-divider {
    width: 60px;
    height: 1px;
  }

  .nav-links { display: none; }
}
