:root {
  --bg: #020617;
  --bg-deep: #000814;
  --panel: rgba(15, 23, 42, 0.72);
  --panel-strong: rgba(15, 23, 42, 0.92);
  --line: rgba(148, 163, 184, 0.16);
  --text: #e2e8f0;
  --muted: #94a3b8;
  --white: #f8fafc;
  --cyan: #22d3ee;
  --amber: #f59e0b;
  --ember: #fb7185;
  --shadow: 0 30px 80px rgba(0, 0, 0, 0.45);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: "IBM Plex Sans", sans-serif;
  color: var(--text);
  background:
    radial-gradient(circle at 15% 10%, rgba(34, 211, 238, 0.16), transparent 26%),
    radial-gradient(circle at 85% 20%, rgba(245, 158, 11, 0.16), transparent 24%),
    linear-gradient(180deg, var(--bg) 0%, var(--bg) 45%, var(--bg-deep) 100%);
}

a {
  color: inherit;
  text-decoration: none;
}

img {
  max-width: 100%;
  display: block;
}

main {
  position: relative;
  z-index: 1;
}

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

.slim {
  width: min(840px, calc(100vw - 2rem));
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 10;
  backdrop-filter: blur(18px);
  background: rgba(2, 6, 23, 0.72);
  border-bottom: 1px solid var(--line);
}

.header-inner {
  display: grid;
  grid-template-columns: auto 1fr auto;
  gap: 1.5rem;
  align-items: center;
  padding: 1rem 0;
}

.brand {
  display: flex;
  align-items: center;
  gap: 0.9rem;
}

.brand-logo {
  width: 56px;
  height: 56px;
  border-radius: 18px;
  box-shadow: 0 18px 40px rgba(34, 211, 238, 0.18);
}

.brand-name,
h1,
h2,
h3,
.footer-title {
  font-family: "Space Grotesk", sans-serif;
}

.brand-name {
  display: block;
  font-size: 1.2rem;
  font-weight: 700;
  color: var(--white);
}

.brand-tag {
  display: block;
  font-size: 0.72rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: rgba(34, 211, 238, 0.8);
}

.main-nav {
  display: flex;
  justify-content: center;
  gap: 1.25rem;
  flex-wrap: wrap;
}

.main-nav a,
.site-footer a {
  color: var(--muted);
}

.main-nav a:hover,
.site-footer a:hover {
  color: var(--white);
}

.header-actions,
.hero-actions,
.repo-actions {
  display: flex;
  gap: 0.85rem;
  flex-wrap: wrap;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.7rem;
  border-radius: 999px;
  padding: 0.92rem 1.3rem;
  font-weight: 600;
  border: 1px solid transparent;
  transition: transform 150ms ease, border-color 150ms ease, background 150ms ease;
}

.button:hover {
  transform: translateY(-1px);
}

.button.primary {
  background: linear-gradient(135deg, var(--cyan), #38bdf8);
  color: #04111d;
}

.button.ghost {
  background: rgba(15, 23, 42, 0.72);
  border-color: var(--line);
  color: var(--white);
}

.button.coffee {
  background: linear-gradient(135deg, #f4e9d0, #d6c29f);
  color: #3a2a1e;
  box-shadow: 0 12px 30px rgba(244, 233, 208, 0.18);
}

.button.coffee img {
  width: 28px;
  height: 28px;
}

.button.coffee.xl {
  padding-inline: 1.4rem;
}

.hero-section,
.section-block,
.page-hero {
  padding: 5.5rem 0;
}

.hero-grid,
.split-section {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 2rem;
  align-items: center;
}

.split-section.reverse {
  grid-template-columns: 0.9fr 1.1fr;
}

.eyebrow,
.meta-label,
.card-kicker,
.layer-index,
.repo-label {
  font-size: 0.76rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: rgba(34, 211, 238, 0.82);
}

.hero-copy h1,
.page-hero h1 {
  margin: 0.9rem 0 1rem;
  font-size: clamp(2.8rem, 6vw, 5.2rem);
  line-height: 0.96;
  color: var(--white);
}

.hero-lead,
.page-intro,
.section-heading h2 + p,
.footer-copy,
.feature-card p,
.layer-card p,
.callout-panel p,
.repo-card p {
  color: var(--muted);
  font-size: 1.02rem;
  line-height: 1.7;
}

.hero-meta {
  margin-top: 2rem;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1rem;
}

.hero-meta div,
.feature-card,
.info-card,
.terminal-card,
.diagram-card,
.layer-card,
.callout-panel,
.repo-card,
.mini-card,
.cta-banner {
  border: 1px solid var(--line);
  background: var(--panel);
  box-shadow: var(--shadow);
}

.hero-meta div,
.feature-card,
.info-card,
.layer-card,
.mini-card {
  border-radius: 24px;
  padding: 1.2rem;
}

.hero-meta strong,
.feature-card h3,
.info-card strong,
.layer-card h3,
.repo-card h3,
.cta-banner h2 {
  color: var(--white);
}

.hero-panel {
  display: grid;
  gap: 1rem;
}

.terminal-card,
.diagram-card,
.repo-card,
.callout-panel,
.cta-banner {
  border-radius: 32px;
  padding: 1.4rem;
}

.terminal-bar {
  display: flex;
  gap: 0.45rem;
  margin-bottom: 1rem;
}

.terminal-bar span {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: rgba(248, 250, 252, 0.24);
}

.terminal-body {
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  font-size: 0.95rem;
  color: #cbd5e1;
}

.terminal-body p {
  margin: 0 0 0.7rem;
}

.terminal-body .accent {
  color: var(--amber);
}

.terminal-body .ok {
  color: #86efac;
}

.hero-badge-stack,
.mini-grid,
.card-grid,
.layer-grid,
.footer-grid {
  display: grid;
  gap: 1rem;
}

.card-grid.three-up,
.footer-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

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

.section-heading {
  max-width: 760px;
  margin-bottom: 2rem;
}

.section-heading h2,
.cta-banner h2 {
  margin: 0.75rem 0 0;
  font-size: clamp(2rem, 4vw, 3.3rem);
  line-height: 1.05;
}

.feature-card h3,
.layer-card h3,
.repo-card h3 {
  margin-top: 0;
  font-size: 1.35rem;
}

.muted {
  background: linear-gradient(180deg, rgba(15, 23, 42, 0.32), rgba(2, 6, 23, 0));
}

.check-list,
.layer-card ul,
.prose-shell ul {
  padding-left: 1.2rem;
  color: var(--muted);
}

.check-list li,
.layer-card li,
.prose-shell li {
  margin-bottom: 0.65rem;
}

.diagram-card {
  display: grid;
  gap: 0.8rem;
}

.hero-message-card h2 {
  margin: 0.75rem 0 0;
  font-size: clamp(1.8rem, 3.6vw, 2.8rem);
  line-height: 1.08;
}

.diagram-node,
.diagram-arrow {
  text-align: center;
  padding: 0.85rem 1rem;
  border-radius: 20px;
}

.diagram-node {
  background: rgba(8, 47, 73, 0.62);
  color: var(--white);
  border: 1px solid rgba(34, 211, 238, 0.2);
}

.diagram-arrow {
  color: rgba(34, 211, 238, 0.85);
  font-size: 0.78rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.layer-card.hot {
  background: linear-gradient(180deg, rgba(251, 146, 60, 0.12), rgba(15, 23, 42, 0.82));
}

.layer-card.cool {
  background: linear-gradient(180deg, rgba(34, 211, 238, 0.12), rgba(15, 23, 42, 0.82));
}

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

.mini-card span {
  display: block;
  color: var(--muted);
  margin-bottom: 0.25rem;
}

.cta-banner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
}

.page-content {
  padding-top: 1rem;
}

.prose-shell {
  border-radius: 32px;
  border: 1px solid var(--line);
  background: var(--panel-strong);
  padding: 2rem;
  box-shadow: var(--shadow);
}

.prose-shell h2,
.prose-shell h3 {
  color: var(--white);
}

.prose-shell p,
.prose-shell li {
  color: var(--muted);
  line-height: 1.8;
}

.site-footer {
  padding: 3rem 0 4rem;
  border-top: 1px solid var(--line);
  margin-top: 4rem;
  background: rgba(2, 6, 23, 0.72);
}

.footer-title {
  margin-bottom: 0.8rem;
  font-size: 1rem;
  color: var(--white);
}

.site-footer a {
  display: block;
  margin-bottom: 0.65rem;
}

.footer-bottom {
  margin-top: 2rem;
  padding-top: 1.4rem;
  border-top: 1px solid var(--line);
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
}

.footer-bottom p {
  margin: 0;
  color: var(--muted);
  font-size: 0.95rem;
}

@media (max-width: 1080px) {
  .header-inner,
  .hero-grid,
  .split-section,
  .split-section.reverse,
  .cta-banner,
  .card-grid.three-up,
  .footer-grid,
  .footer-bottom,
  .layer-grid,
  .hero-meta,
  .mini-grid {
    grid-template-columns: 1fr;
  }

  .header-inner {
    grid-template-columns: 1fr;
    justify-items: start;
  }

  .main-nav {
    justify-content: flex-start;
  }

  .cta-banner {
    display: grid;
  }
}

@media (max-width: 720px) {
  .hero-section,
  .section-block,
  .page-hero {
    padding: 4rem 0;
  }

  .prose-shell,
  .terminal-card,
  .diagram-card,
  .callout-panel,
  .repo-card,
  .cta-banner {
    padding: 1.2rem;
  }

  .button,
  .button.coffee.xl {
    width: 100%;
  }
}
