/* ============================================================
   TCA Landing Page — Terminal-flavored minimal dark stylesheet
   ============================================================ */

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

:root {
  --bg:        #0d1117;
  --surface:   #161b22;
  --surface2:  #1c2128;
  --border:    #30363d;
  --text:      #e6edf3;
  --muted:     #8b949e;
  --accent:    #7aa2f7;
  --green:     #9ece6a;
  --font-sans: system-ui, -apple-system, sans-serif;
  --font-mono: "SF Mono", "Cascadia Code", "Fira Code", Consolas, monospace;
}

html { scroll-behavior: smooth; }

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

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

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

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

.hero {
  padding: 80px 0 64px;
  border-bottom: 1px solid var(--border);
  text-align: center;
}

.hero-eyebrow {
  font-family: var(--font-mono);
  font-size: 13px;
  color: var(--green);
  letter-spacing: 0.1em;
  text-transform: uppercase;
  margin-bottom: 20px;
}

.hero h1 {
  font-size: clamp(2rem, 5vw, 3rem);
  font-weight: 700;
  letter-spacing: -0.02em;
  line-height: 1.15;
  margin-bottom: 16px;
}

.hero h1 span {
  color: var(--accent);
}

.hero-tagline {
  font-size: 1.15rem;
  color: var(--muted);
  max-width: 560px;
  margin: 0 auto 36px;
}

.hero-install {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 12px 20px;
  font-family: var(--font-mono);
  font-size: 15px;
  margin-bottom: 28px;
}

.hero-install::before {
  content: "$";
  color: var(--green);
}

.hero-links {
  display: flex;
  justify-content: center;
  gap: 20px;
  font-size: 14px;
}

.hero-links a {
  color: var(--muted);
  border: 1px solid var(--border);
  border-radius: 6px;
  padding: 6px 16px;
  transition: color 0.15s, border-color 0.15s;
}

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

/* ── Sections ────────────────────────────────────────────── */

.section {
  padding: 64px 0;
  border-bottom: 1px solid var(--border);
}

.section:last-child { border-bottom: none; }

.section-label {
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--green);
  letter-spacing: 0.1em;
  text-transform: uppercase;
  margin-bottom: 8px;
}

.section h2 {
  font-size: 1.6rem;
  font-weight: 700;
  margin-bottom: 12px;
}

.section-intro {
  color: var(--muted);
  margin-bottom: 40px;
  max-width: 640px;
}

/* ── Ecosystem Cards ─────────────────────────────────────── */

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

.card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 20px;
  transition: border-color 0.15s;
}

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

.card-icon {
  font-size: 22px;
  margin-bottom: 10px;
}

.card h3 {
  font-family: var(--font-mono);
  font-size: 15px;
  font-weight: 600;
  margin-bottom: 6px;
}

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

.card p {
  font-size: 13px;
  color: var(--muted);
  line-height: 1.5;
}

/* ── Quick Start ─────────────────────────────────────────── */

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

.qs-block h3 {
  font-size: 14px;
  font-weight: 600;
  color: var(--muted);
  margin-bottom: 10px;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

pre {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 16px 20px;
  font-family: var(--font-mono);
  font-size: 13px;
  line-height: 1.7;
  overflow-x: auto;
}

code { font-family: var(--font-mono); font-size: 0.9em; }

.prompt { color: var(--green); user-select: none; }
.comment { color: var(--muted); }

/* ── Theme Gallery ───────────────────────────────────────── */

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

.theme-card {
  border: 1px solid var(--border);
  border-radius: 10px;
  overflow: hidden;
  transition: border-color 0.15s, transform 0.15s;
}

.theme-card:hover {
  border-color: var(--accent);
  transform: translateY(-2px);
}

.theme-preview {
  padding: 18px 18px 12px;
  font-family: var(--font-mono);
  font-size: 13px;
  line-height: 1.6;
}

.theme-preview-line { opacity: 0.9; }

.theme-swatches {
  display: flex;
  height: 8px;
}

.swatch { flex: 1; }

.theme-meta {
  padding: 12px 16px;
  background: rgba(0,0,0,0.25);
}

.theme-name {
  font-weight: 600;
  font-size: 14px;
  margin-bottom: 2px;
}

.theme-desc {
  font-size: 12px;
  opacity: 0.6;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.theme-badge {
  float: right;
  font-family: var(--font-mono);
  font-size: 11px;
  padding: 1px 6px;
  border-radius: 4px;
  border: 1px solid;
  opacity: 0.6;
}

/* ── Format Table ────────────────────────────────────────── */

.format-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
  gap: 10px;
  margin-top: 12px;
}

.format-item {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 6px;
  padding: 10px 14px;
  font-family: var(--font-mono);
  font-size: 13px;
}

.format-item span {
  display: block;
  font-size: 11px;
  color: var(--muted);
  font-family: var(--font-sans);
  margin-top: 2px;
}

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

footer {
  padding: 32px 0;
  text-align: center;
  font-size: 13px;
  color: var(--muted);
  border-top: 1px solid var(--border);
}

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

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

@media (max-width: 600px) {
  .hero { padding: 48px 0 40px; }
  .section { padding: 48px 0; }
  .quickstart-grid { grid-template-columns: 1fr; }
}
