/* OutpostImage Landing Page Styles */

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

:root {
  --bg: #0d1117;
  --bg-surface: #161b22;
  --bg-elevated: #1c2128;
  --border: #30363d;
  --text: #e6edf3;
  --text-muted: #8b949e;
  --accent: #2f81f7;
  --accent-glow: rgba(47, 129, 247, 0.15);
  --green: #3fb950;
  --orange: #d29922;
  --radius: 8px;
  --font-mono: 'SFMono-Regular', Consolas, 'Liberation Mono', Menlo, monospace;
  --font-sans: -apple-system, BlinkMacSystemFont, 'Segoe UI', Helvetica, Arial, sans-serif;
}

html { scroll-behavior: smooth; }

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

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

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

/* ── Nav ── */
nav {
  border-bottom: 1px solid var(--border);
  padding: 16px 0;
  position: sticky;
  top: 0;
  background: rgba(13, 17, 23, 0.95);
  backdrop-filter: blur(8px);
  z-index: 100;
}

nav .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.nav-brand {
  font-weight: 700;
  font-size: 1.1rem;
  color: var(--text);
  display: flex;
  align-items: center;
  gap: 8px;
}

.nav-brand .dot { color: var(--accent); }

.nav-links {
  display: flex;
  gap: 24px;
  list-style: none;
}

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

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

/* ── Hero ── */
.hero {
  padding: 80px 0 64px;
  text-align: center;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: var(--accent-glow);
  border: 1px solid rgba(47, 129, 247, 0.3);
  border-radius: 20px;
  padding: 4px 12px;
  font-size: 0.8rem;
  color: var(--accent);
  margin-bottom: 24px;
  font-family: var(--font-mono);
}

.hero h1 {
  font-size: clamp(2.4rem, 6vw, 3.6rem);
  font-weight: 800;
  letter-spacing: -0.03em;
  line-height: 1.1;
  margin-bottom: 20px;
}

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

.hero-tagline {
  font-size: clamp(1rem, 2.5vw, 1.2rem);
  color: var(--text-muted);
  max-width: 560px;
  margin: 0 auto 36px;
}

.hero-actions {
  display: flex;
  gap: 12px;
  justify-content: center;
  flex-wrap: wrap;
}

.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 20px;
  border-radius: var(--radius);
  font-size: 0.95rem;
  font-weight: 600;
  transition: opacity 0.2s, transform 0.15s;
  cursor: pointer;
  border: none;
}

.btn:hover { opacity: 0.85; transform: translateY(-1px); text-decoration: none; }

.btn-primary { background: var(--accent); color: #fff; }
.btn-outline { background: transparent; color: var(--text); border: 1px solid var(--border); }

/* ── Section ── */
section { padding: 64px 0; border-top: 1px solid var(--border); }

section h2 {
  font-size: 1.7rem;
  font-weight: 700;
  margin-bottom: 8px;
  letter-spacing: -0.02em;
}

.section-sub {
  color: var(--text-muted);
  margin-bottom: 36px;
  font-size: 1rem;
}

/* ── Architecture Diagram ── */
.arch-wrap {
  background: var(--bg-surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 32px;
  overflow-x: auto;
}

.arch-diagram {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 16px;
  min-width: 480px;
}

.arch-node-group {
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 20px 28px;
  width: 100%;
  max-width: 560px;
}

.arch-node-group .group-label {
  font-size: 0.75rem;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-bottom: 14px;
}

.arch-row {
  display: flex;
  justify-content: center;
  gap: 16px;
  flex-wrap: wrap;
}

.arch-box {
  background: var(--bg-surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 8px 16px;
  font-family: var(--font-mono);
  font-size: 0.85rem;
  color: var(--text);
  white-space: nowrap;
}

.arch-box.accent { border-color: var(--accent); color: var(--accent); background: var(--accent-glow); }
.arch-box.green  { border-color: var(--green); color: var(--green); }
.arch-box.dim    { color: var(--text-muted); }

.arch-arrow {
  display: flex;
  flex-direction: column;
  align-items: center;
  color: var(--text-muted);
  font-size: 0.75rem;
  gap: 2px;
}

.arch-arrow .line {
  width: 1px;
  height: 20px;
  background: var(--border);
}

.arch-split {
  display: flex;
  gap: 32px;
  justify-content: center;
  width: 100%;
}

.arch-branch {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
}

.arch-label {
  font-size: 0.75rem;
  color: var(--text-muted);
  font-family: var(--font-mono);
}

.arch-or {
  display: flex;
  align-items: center;
  gap: 12px;
  color: var(--text-muted);
  font-size: 0.75rem;
}

.arch-or::before, .arch-or::after {
  content: '';
  height: 1px;
  width: 32px;
  background: var(--border);
}

.arch-upstream {
  text-align: center;
  color: var(--text-muted);
  font-size: 0.85rem;
  font-family: var(--font-mono);
  padding: 12px 20px;
  border: 1px dashed var(--border);
  border-radius: var(--radius);
  max-width: 240px;
}

/* ── How It Works ── */
.hiw-phases {
  display: grid;
  gap: 12px;
  margin-bottom: 24px;
}

.hiw-phases p {
  font-size: 0.9rem;
  color: var(--text-muted);
  line-height: 1.7;
}

.hiw-phases p strong { color: var(--text); }

.hiw-phases code {
  font-family: var(--font-mono);
  font-size: 0.85em;
  background: var(--bg-elevated);
  padding: 1px 5px;
  border-radius: 4px;
}

.diagram {
  background: var(--bg-surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 24px;
  font-family: var(--font-mono);
  font-size: 0.8rem;
  color: var(--text-muted);
  white-space: pre;
  overflow-x: auto;
  line-height: 1.5;
}

@media (max-width: 600px) {
  .diagram { font-size: 0.65rem; padding: 16px; }
}

/* ── Features ── */
.features-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 16px;
}

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

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

.feature-icon {
  font-size: 1.6rem;
  margin-bottom: 10px;
}

.feature-card h3 {
  font-size: 1rem;
  font-weight: 600;
  margin-bottom: 6px;
}

.feature-card p { font-size: 0.875rem; color: var(--text-muted); }

/* ── Comparison Table ── */
.table-wrap { overflow-x: auto; }

table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.9rem;
}

thead tr { background: var(--bg-surface); }

th, td {
  padding: 12px 16px;
  text-align: left;
  border-bottom: 1px solid var(--border);
}

th {
  font-weight: 600;
  color: var(--text-muted);
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

td.check-yes { color: var(--green); font-weight: 600; }
td.check-better { color: var(--accent); font-weight: 600; }
td code { font-family: var(--font-mono); font-size: 0.85em; background: var(--bg-elevated); padding: 1px 6px; border-radius: 4px; }

tr:last-child td { border-bottom: none; }
tr:hover td { background: var(--bg-surface); }

/* ── Test Results ── */
.test-stats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
  margin-bottom: 32px;
}

.test-stats.compact {
  margin-bottom: 0;
}

.test-stat {
  background: var(--bg-surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 20px 16px;
  text-align: center;
}

.test-stat-value {
  font-size: 1.8rem;
  font-weight: 800;
  color: var(--green);
  font-family: var(--font-mono);
  line-height: 1.2;
  margin-bottom: 6px;
}

.test-stat-label {
  font-size: 0.8rem;
  color: var(--text-muted);
}

.test-section {
  margin-bottom: 28px;
}

.test-section h3 {
  font-size: 1.05rem;
  font-weight: 600;
  margin-bottom: 8px;
}

.test-section-sub {
  font-size: 0.85rem;
  color: var(--text-muted);
  margin-bottom: 12px;
}

pre.test-log {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 6px;
  padding: 14px 16px;
  overflow-x: auto;
  margin: 12px 0;
  font-size: 0.78rem;
  line-height: 1.55;
}

@media (max-width: 600px) {
  .test-stats { grid-template-columns: repeat(2, 1fr); }
}

/* ── Quick Start ── */
.quickstart-tabs {
  display: flex;
  gap: 4px;
  margin-bottom: 16px;
  border-bottom: 1px solid var(--border);
}

.tab-btn {
  padding: 8px 16px;
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--text-muted);
  background: none;
  border: none;
  cursor: pointer;
  border-bottom: 2px solid transparent;
  transition: color 0.15s, border-color 0.15s;
  margin-bottom: -1px;
}

.tab-btn.active { color: var(--text); border-bottom-color: var(--accent); }
.tab-btn:hover:not(.active) { color: var(--text); }

.tab-panel { display: none; }
.tab-panel.active { display: block; }

pre {
  background: var(--bg-surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 20px;
  overflow-x: auto;
  font-family: var(--font-mono);
  font-size: 0.85rem;
  line-height: 1.6;
}

pre code { color: var(--text); }
.comment { color: var(--text-muted); }
.cmd { color: var(--accent); }

/* ── Footer ── */
footer {
  border-top: 1px solid var(--border);
  padding: 32px 0;
  text-align: center;
  color: var(--text-muted);
  font-size: 0.85rem;
}

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

/* ── Responsive ── */
@media (max-width: 600px) {
  .nav-links { display: none; }
  .hero { padding: 48px 0 40px; }
  section { padding: 40px 0; }
  .arch-wrap { padding: 16px; }
  .arch-split { flex-direction: column; align-items: center; }
}
