:root {
  --bg: #f4f7fb;
  --surface: #ffffff;
  --surface-alt: #eef3f9;
  --text: #142033;
  --muted: #53627a;
  --line: #d8e1ee;
  --brand: #1d4ed8;
  --brand-dark: #173ea8;
  --success: #0f766e;
  --danger: #b42318;
  --shadow: 0 18px 50px rgba(15, 23, 42, 0.08);
  --radius-lg: 24px;
  --radius-md: 16px;
  --radius-sm: 10px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background:
    radial-gradient(circle at top left, rgba(29, 78, 216, 0.08), transparent 30%),
    linear-gradient(180deg, #f9fbfd 0%, var(--bg) 100%);
  color: var(--text);
  font-family: "Segoe UI", -apple-system, BlinkMacSystemFont, sans-serif;
  line-height: 1.6;
}

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

a:hover {
  color: var(--brand-dark);
}

img {
  max-width: 100%;
}

pre,
code,
input,
button {
  font: inherit;
}

.container {
  width: min(1120px, calc(100% - 2rem));
  margin: 0 auto;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 10;
  background: rgba(249, 251, 253, 0.92);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(216, 225, 238, 0.8);
}

.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  min-height: 4.5rem;
}

.brand {
  font-size: 1.05rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  color: var(--text);
}

.nav-links {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
}

.nav-links a {
  color: var(--muted);
}

.hero,
.section {
  padding: 4.5rem 0;
}

.hero {
  padding-top: 2rem;
}

.hero-grid,
.split-layout,
.note-grid,
.detail-grid,
.detail-highlights,
.detail-steps {
  display: grid;
  gap: 1.5rem;
}

.hero-grid,
.split-layout {
  grid-template-columns: minmax(0, 1.3fr) minmax(320px, 0.9fr);
  align-items: start;
}

.hero-copy h1,
.section-heading h2,
.surface-heading h2,
.note-card h2,
.page-hero h1 {
  margin: 0;
  line-height: 1.15;
}

.hero-copy h1,
.page-hero h1 {
  font-size: clamp(2.3rem, 4vw, 4.2rem);
  max-width: 12ch;
}

.hero-text,
.section-heading p,
.surface-copy,
.page-lead,
.detail-panel p,
.note-card p {
  color: var(--muted);
}

.eyebrow {
  margin: 0 0 0.75rem;
  font-size: 0.82rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--brand);
}

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

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 2.9rem;
  padding: 0.7rem 1.1rem;
  border-radius: 999px;
  border: 1px solid transparent;
  font-weight: 600;
}

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

.button-primary:hover {
  color: #fff;
  background: var(--brand-dark);
}

.button-secondary {
  background: rgba(29, 78, 216, 0.08);
  border-color: rgba(29, 78, 216, 0.18);
}

.hero-panel,
.surface,
.note-card,
.detail-panel,
.detail-callout {
  background: rgba(255, 255, 255, 0.88);
  border: 1px solid rgba(216, 225, 238, 0.9);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow);
}

.hero-panel,
.surface,
.detail-panel,
.detail-callout {
  padding: 1.5rem;
}

.panel-label {
  margin: 0;
  color: var(--muted);
  font-size: 0.9rem;
}

.metric-list,
.project-specs,
.command-list,
.detail-list {
  list-style: none;
  padding: 0;
  margin: 0;
}

.metric-list {
  margin-top: 1rem;
  display: grid;
  gap: 1rem;
}

.metric-list li {
  padding-top: 1rem;
  border-top: 1px solid var(--line);
}

.metric-list strong {
  display: block;
  font-size: 2rem;
  line-height: 1;
}

.section-heading,
.surface-heading {
  display: grid;
  gap: 0.75rem;
}

.section-heading {
  max-width: 760px;
}

.surface-accent {
  background: linear-gradient(180deg, rgba(29, 78, 216, 0.06), rgba(255, 255, 255, 0.96));
}

.card-grid,
.demo-stack,
.note-grid,
.detail-highlights,
.detail-steps {
  display: grid;
  gap: 1rem;
}

.card-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  margin-top: 1.5rem;
}

.project-card,
.demo-card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  padding: 1.25rem;
}

.project-card h3,
.demo-card h3,
.detail-panel h2,
.detail-callout h2 {
  margin: 0 0 0.6rem;
}

.project-card p,
.demo-card p,
.project-card a {
  margin: 0;
}

.project-card a {
  display: inline-block;
  margin-top: 1rem;
  font-weight: 600;
}

.project-tag {
  display: inline-flex;
  margin-bottom: 0.85rem;
  padding: 0.2rem 0.55rem;
  border-radius: 999px;
  background: rgba(29, 78, 216, 0.1);
  color: var(--brand);
  font-size: 0.78rem;
  font-weight: 700;
}

label {
  display: block;
  margin-top: 1rem;
  font-weight: 600;
}

input,
button {
  width: 100%;
  margin-top: 0.45rem;
  padding: 0.8rem 0.95rem;
  border-radius: var(--radius-sm);
  border: 1px solid #c9d5e5;
  background: #fff;
  color: var(--text);
}

input:focus,
button:focus,
.nav-links a:focus,
.button:focus {
  outline: 2px solid rgba(29, 78, 216, 0.24);
  outline-offset: 2px;
}

button {
  border: none;
  background: var(--text);
  color: #fff;
  font-weight: 600;
  cursor: pointer;
}

button:hover {
  background: #0f172a;
}

.demo-output {
  min-height: 1.6rem;
  margin-top: 0.9rem;
  font-weight: 600;
}

.demo-output.is-success {
  color: var(--success);
}

.demo-output.is-error {
  color: var(--danger);
}

.section-muted {
  background: rgba(255, 255, 255, 0.4);
  border-top: 1px solid rgba(216, 225, 238, 0.8);
  border-bottom: 1px solid rgba(216, 225, 238, 0.8);
}

.note-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.note-card {
  padding: 1.35rem;
}

pre {
  overflow-x: auto;
  margin: 1rem 0 0;
  padding: 1rem;
  border-radius: var(--radius-md);
  background: #0f172a;
  color: #e2e8f0;
}

.site-footer {
  padding: 1.5rem 0 2.5rem;
}

.footer-inner {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
  color: var(--muted);
}

.page-shell {
  padding: 3rem 0 4.5rem;
}

.breadcrumb {
  display: inline-flex;
  margin-bottom: 1rem;
  color: var(--muted);
}

.page-hero {
  margin-bottom: 2rem;
}

.page-hero h1 {
  max-width: 14ch;
}

.page-lead {
  max-width: 70ch;
  margin: 1rem 0 0;
}

.detail-grid {
  grid-template-columns: minmax(0, 1.45fr) minmax(300px, 0.85fr);
}

.detail-highlights {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  margin-bottom: 1.5rem;
}

.detail-callout {
  padding: 1.15rem;
}

.detail-panel + .detail-panel,
.detail-callout + .detail-panel {
  margin-top: 1rem;
}

.detail-list li,
.project-specs li,
.command-list li {
  padding: 0.8rem 0;
  border-top: 1px solid var(--line);
}

.detail-list li:first-child,
.project-specs li:first-child,
.command-list li:first-child {
  border-top: 0;
  padding-top: 0;
}

.detail-steps {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.step-card {
  background: var(--surface-alt);
  border-radius: var(--radius-md);
  padding: 1rem;
}

.step-card strong {
  display: block;
  margin-bottom: 0.35rem;
}

@media (max-width: 960px) {
  .hero-grid,
  .split-layout,
  .detail-grid,
  .note-grid {
    grid-template-columns: 1fr;
  }

  .card-grid,
  .detail-highlights,
  .detail-steps {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 640px) {
  .hero,
  .section,
  .page-shell {
    padding: 3.5rem 0;
  }

  .container {
    width: min(100% - 1.25rem, 1120px);
  }

  .nav {
    min-height: 4rem;
  }

  .nav-links {
    gap: 0.75rem;
    font-size: 0.95rem;
  }
}
