:root {
  --bg: #f7f8fb;
  --card: #ffffff;
  --text: #1a1f36;
  --muted: #5b6478;
  --border: #e4e8f0;
  --primary: #2563eb;
  --primary-hover: #1d4ed8;
  --shadow: 0 8px 30px rgba(26, 31, 54, 0.06);
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  color: var(--text);
  background: var(--bg);
  line-height: 1.6;
}

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

a:hover {
  text-decoration: underline;
}

.container {
  width: min(1080px, 92vw);
  margin: 0 auto;
}

.hero {
  background: linear-gradient(135deg, #eff6ff 0%, #f8fafc 55%, #ffffff 100%);
  border-bottom: 1px solid var(--border);
  padding: 4rem 0 3rem;
}

.eyebrow {
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-size: 0.8rem;
  color: var(--muted);
  margin: 0 0 0.75rem;
}

.hero h1 {
  font-size: clamp(2rem, 5vw, 3rem);
  margin: 0 0 0.75rem;
  line-height: 1.15;
}

.subtitle {
  font-size: 1.125rem;
  color: var(--muted);
  max-width: 720px;
  margin: 0 0 1.5rem;
}

.hero-actions {
  display: flex;
  gap: 0.75rem;
  flex-wrap: wrap;
}

.hero-meta {
  display: flex;
  gap: 0.6rem;
  flex-wrap: wrap;
  margin-top: 1.4rem;
}

.hero-meta span {
  background: rgba(255, 255, 255, 0.78);
  border: 1px solid var(--border);
  border-radius: 999px;
  color: var(--muted);
  font-size: 0.85rem;
  padding: 0.35rem 0.7rem;
}

.hero-diagram {
  display: block;
  width: 100%;
  max-width: 980px;
  height: auto;
  margin-top: 2rem;
  border: 1px solid var(--border);
  border-radius: 18px;
  box-shadow: var(--shadow);
}

.btn {
  display: inline-block;
  padding: 0.7rem 1.1rem;
  border-radius: 10px;
  font-weight: 600;
  border: 1px solid transparent;
}

.btn.primary {
  background: var(--primary);
  color: #fff;
}

.btn.primary:hover {
  background: var(--primary-hover);
  text-decoration: none;
}

.btn.secondary {
  background: #fff;
  color: var(--text);
  border-color: var(--border);
}

.btn.secondary:hover {
  text-decoration: none;
  border-color: #cbd5e1;
}

main {
  padding: 2rem 0 3rem;
}

.card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 1.5rem;
  margin-bottom: 1.25rem;
  box-shadow: var(--shadow);
}

.highlight {
  border-color: #93c5fd;
  background: linear-gradient(180deg, #eff6ff 0%, #ffffff 100%);
}

.highlight h2 {
  color: #1e40af;
}

.card h2 {
  margin-top: 0;
  font-size: 1.25rem;
}

.grid.two-col {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1.25rem;
}

pre {
  background: #0f172a;
  color: #e2e8f0;
  padding: 1rem;
  border-radius: 12px;
  overflow-x: auto;
  font-size: 0.85rem;
  line-height: 1.5;
}

code {
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
}

ul {
  padding-left: 1.2rem;
}

.tags {
  list-style: none;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.tags li {
  background: #eff6ff;
  color: #1e40af;
  padding: 0.35rem 0.7rem;
  border-radius: 999px;
  font-size: 0.85rem;
}

.screenshot .placeholder {
  min-height: 220px;
  border: 2px dashed var(--border);
  border-radius: 12px;
  display: grid;
  place-content: center;
  text-align: center;
  color: var(--muted);
  background: #fafbfc;
}

.muted {
  font-size: 0.9rem;
}

.footer {
  border-top: 1px solid var(--border);
  padding: 1.5rem 0 2rem;
  color: var(--muted);
  font-size: 0.95rem;
}

@media (max-width: 640px) {
  .hero {
    padding: 2.5rem 0 2rem;
  }
}
