/* WhySpec Landing Page — OpenSpec-inspired clean developer aesthetic */
/* Pure black, sharp corners, monospace, left-aligned */

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

:root {
  --bg: #0d1117;
  --surface: #161b22;
  --border: #2d333b;
  --text: #c9d1d9;
  --text-dim: #6e7681;
  --text-bright: #e6edf3;
  --green: #7ee787;
  --yellow: #d29922;
  --blue: #58a6ff;
  --tag: #79c0ff;
  --font: 'JetBrains Mono', 'Fira Code', 'SF Mono', 'Cascadia Code', monospace;
}

html {
  font-size: 15px;
  scroll-behavior: smooth;
}

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

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

a:hover {
  color: var(--text-bright);
}

code {
  font-family: var(--font);
}

.page {
  max-width: 1200px;
  margin: 0 auto;
  padding: 80px 48px 40px;
}

/* ── HERO ─────────────────────────────────────── */

.hero {
  margin-bottom: 64px;
}

.logo {
  font-size: 0.65rem;
  line-height: 1.15;
  color: var(--text-bright);
  overflow-x: auto;
  display: block;
  margin-bottom: 4px;
}

.info-box {
  border: 1px solid var(--border);
}

.tagline {
  font-size: 1.15rem;
  font-weight: 500;
  color: var(--text-bright);
  padding: 20px 24px 4px;
  letter-spacing: 0.01em;
}

.subtitle {
  color: var(--text-dim);
  padding: 0 24px 16px;
  font-size: 0.9rem;
}

.info-rows {
  border-top: 1px solid var(--border);
}

.info-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 12px 24px;
  border-bottom: 1px solid var(--border);
  gap: 16px;
}

.info-row:last-child {
  border-bottom: none;
}

.info-label {
  color: var(--text-bright);
  font-size: 0.8rem;
  font-weight: 500;
  letter-spacing: 0.05em;
  white-space: nowrap;
  min-width: 100px;
}

.info-value {
  display: flex;
  align-items: center;
  gap: 12px;
  color: var(--text);
  font-size: 0.85rem;
}

.info-value code {
  color: var(--text);
}

.info-link {
  color: var(--text);
  font-size: 0.85rem;
}

.info-link:hover {
  color: var(--text-bright);
}

.copy-btn {
  background: none;
  border: none;
  color: var(--text-dim);
  cursor: pointer;
  padding: 4px;
  line-height: 1;
  display: inline-flex;
  align-items: center;
  transition: color 150ms ease;
}

.copy-btn:hover {
  color: var(--text-bright);
}

.copy-btn .icon-check {
  display: none;
}

.copy-btn.copied {
  color: var(--green);
}

.copy-btn.copied .icon-copy {
  display: none;
}

.copy-btn.copied .icon-check {
  display: inline;
}

/* ── SECTIONS ─────────────────────────────────── */

.section {
  margin-bottom: 64px;
}

.section-heading {
  font-size: 0.9rem;
  font-weight: 700;
  color: var(--text-bright);
  letter-spacing: 0.08em;
  margin-bottom: 20px;
}

/* ── AGENTS ───────────────────────────────────── */

.agents-box {
  border: 1px solid var(--border);
  padding: 16px 24px;
}

.agents-line {
  font-size: 0.9rem;
  color: var(--text);
  line-height: 1.8;
}

.agent-name {
  color: var(--text-bright);
  font-weight: 500;
}

.agents-more {
  color: var(--blue);
  cursor: pointer;
  text-decoration: underline;
  text-underline-offset: 2px;
}

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

.agents-full {
  display: none;
  font-size: 0.9rem;
  color: var(--text);
  line-height: 1.8;
  margin-top: 4px;
}

.agents-note {
  margin-top: 12px;
  font-size: 0.8rem;
  color: var(--text-dim);
}

/* Vision section */
.vision-quote {
  border-left: 3px solid var(--green);
  padding: 12px 20px;
  margin-bottom: 20px;
  color: var(--text-bright);
  font-size: 0.95rem;
  line-height: 1.6;
}

.vision-points {
  margin-bottom: 20px;
}

.vision-points p {
  color: var(--text);
  font-size: 0.85rem;
  line-height: 1.6;
  padding: 4px 0;
}

.vision-points p strong {
  color: var(--text-bright);
}

.vision-closing {
  color: var(--text-dim);
  font-size: 0.85rem;
  line-height: 1.6;
}

/* ── BUILT BY ─────────────────────────────────── */

.built-by {
  font-size: 0.75rem;
  color: var(--text-dim);
  letter-spacing: 0.05em;
  margin-bottom: 20px;
}

.built-by a {
  color: var(--text-dim);
  text-decoration: underline;
  text-underline-offset: 2px;
}

.built-by a:hover {
  color: var(--text);
}

/* ── FEATURES ─────────────────────────────────── */

.features-wrap {
  padding-bottom: 0;
}

.feature-box {
  border: 1px solid var(--border);
  display: flex;
  margin-bottom: 0;
  background: var(--bg);
}

.feature-sticky {
  position: sticky;
  top: var(--sticky-offset, 0px);
  z-index: 1;
}

.feature-sidebar {
  width: 48px;
  min-width: 48px;
  border-right: 1px solid var(--border);
  display: flex;
  align-items: flex-start;
  justify-content: center;
  padding-top: 20px;
}

.feature-num {
  font-size: 0.9rem;
  color: var(--text-dim);
}

.feature-content {
  flex: 1;
  padding: 20px 24px;
  min-width: 0;
}

.feature-title {
  font-size: 1rem;
  font-weight: 700;
  color: var(--text-bright);
  margin-bottom: 8px;
}

.feature-desc {
  color: var(--text-dim);
  font-size: 0.85rem;
  margin-bottom: 16px;
  line-height: 1.7;
}

/* ── CODE BLOCKS ──────────────────────────────── */

.code-block {
  border: 1px solid var(--border);
  margin-bottom: 12px;
  overflow: hidden;
}

.code-label {
  background: var(--surface);
  padding: 6px 16px;
  font-size: 0.75rem;
  color: var(--text-dim);
  border-bottom: 1px solid var(--border);
  letter-spacing: 0.02em;
}

.code-body {
  padding: 12px 16px;
  font-size: 0.8rem;
  line-height: 1.6;
  color: var(--text);
  overflow-x: auto;
  background: var(--bg);
}

.c-green { color: var(--green); }
.c-yellow { color: var(--yellow); }
.c-blue { color: var(--blue); }
.c-tag { color: var(--tag); }

/* ── SPLIT PANELS ─────────────────────────────── */

.split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}

.split-half {
  min-width: 0;
}

/* ── FAQ ──────────────────────────────────────── */

.faq-box {
  border: 1px solid var(--border);
}

.faq-item {
  border-bottom: 1px solid var(--border);
}

.faq-item:last-child {
  border-bottom: none;
}

.faq-item summary {
  padding: 16px 24px;
  font-size: 0.8rem;
  font-weight: 500;
  color: var(--text-dim);
  letter-spacing: 0.04em;
  cursor: pointer;
  list-style: none;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.faq-item summary::after {
  content: '+';
  color: var(--text-dim);
  font-size: 1rem;
  transition: transform 150ms ease;
}

.faq-item[open] summary::after {
  content: '-';
}

.faq-item summary::-webkit-details-marker {
  display: none;
}

.faq-item p {
  padding: 0 24px 16px;
  font-size: 0.85rem;
  color: var(--text);
  line-height: 1.7;
}

/* ── FOOTER ───────────────────────────────────── */

.footer {
  border-top: 1px solid var(--border);
  padding-top: 24px;
  margin-top: 32px;
}

.footer-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.8rem;
  color: var(--text-dim);
}

.footer-row a {
  color: var(--text-dim);
}

.footer-row a:hover {
  color: var(--text);
}

.footer-links {
  display: flex;
  gap: 24px;
  letter-spacing: 0.05em;
}

/* ── RESPONSIVE ───────────────────────────────── */

@media (max-width: 768px) {
  .page {
    padding: 32px 16px 24px;
  }

  .logo {
    font-size: 0.4rem;
  }

  .tools-grid {
    grid-template-columns: repeat(2, 1fr);
  }

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

  .feature-box {
    flex-direction: column;
  }

  .feature-sticky {
    position: static;
  }

  .features-wrap {
    padding-bottom: 0;
  }

  .feature-box {
    margin-bottom: 24px;
  }

  .feature-sidebar {
    width: auto;
    border-right: none;
    border-bottom: 1px solid var(--border);
    padding: 8px 24px;
    justify-content: flex-start;
  }

  .info-row {
    flex-direction: column;
    align-items: flex-start;
    gap: 4px;
  }

  .info-value {
    flex-wrap: wrap;
  }

  .footer-row {
    flex-direction: column;
    gap: 12px;
    align-items: flex-start;
  }
}

@media (max-width: 480px) {
  .logo {
    font-size: 0.3rem;
  }

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

  .tagline {
    font-size: 1rem;
  }
}
