@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700&family=JetBrains+Mono:wght@400;500;600&display=swap');

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

:root {
  --bg-deep: #05070b;
  --text: #e2e8f0;
  --text-muted: #94a3b8;
  --cyan: #22d3ee;
  --cyan-dim: rgba(34, 211, 238, 0.65);
  --border: rgba(34, 211, 238, 0.15);
  --panel: rgba(15, 23, 42, 0.72);
  --fuchsia-dim: rgba(232, 121, 249, 0.75);
  --radius: 0.75rem;
  --font-sans: 'Inter', system-ui, sans-serif;
  --font-mono: 'JetBrains Mono', ui-monospace, monospace;
}

html {
  color-scheme: dark;
  scroll-behavior: smooth;
}

body {
  min-height: 100vh;
  margin: 0;
  font-family: var(--font-sans);
  background-color: var(--bg-deep);
  color: var(--text);
  -webkit-font-smoothing: antialiased;
}

/* Match gis/dashboard/src/index.css — tactical grid + radial glow */
.gits-app-bg {
  background-color: var(--bg-deep);
  background-image:
    radial-gradient(ellipse 100% 60% at 50% -30%, rgba(34, 211, 238, 0.09), transparent 55%),
    linear-gradient(rgba(34, 211, 238, 0.04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(34, 211, 238, 0.04) 1px, transparent 1px);
  background-size:
    100% 100%,
    28px 28px,
    28px 28px;
  background-position: 0 0, 0 0, 0 0;
}

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

img {
  max-width: 100%;
  height: auto;
}

.section-container {
  max-width: 72rem;
  margin: 0 auto;
  padding-left: 1rem;
  padding-right: 1rem;
}

@media (min-width: 640px) {
  .section-container {
    padding-left: 1.5rem;
    padding-right: 1.5rem;
  }
}

@media (min-width: 1024px) {
  .section-container {
    padding-left: 2rem;
    padding-right: 2rem;
  }
}

/* ---- Header ---- */
.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 50;
  border-bottom: 1px solid var(--border);
  background: rgba(2, 6, 23, 0.82);
  backdrop-filter: blur(12px);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 4rem;
}

.brand {
  display: flex;
  flex-direction: column;
  gap: 0.15rem;
}

.brand-home {
  display: block;
  text-decoration: none;
  color: inherit;
}

.brand-home-row {
  display: flex;
  align-items: center;
  gap: 0.65rem;
}

.brand-home-titles {
  display: flex;
  flex-direction: column;
  gap: 0.15rem;
}

.brand-mark {
  width: 1.75rem;
  height: 1.75rem;
  border-radius: 0.4rem;
  object-fit: cover;
  border: 1px solid var(--border);
  background: rgba(8, 51, 68, 0.35);
  flex-shrink: 0;
  box-shadow: 0 0 16px -4px rgba(34, 211, 238, 0.35);
}

.brand-home:hover .brand-word-ghost {
  color: #fff;
}

.brand-home:hover .brand-word-shell {
  color: #f8fafc;
}

.brand-titleline {
  font-family: var(--font-mono);
  font-size: clamp(0.78rem, 1.6vw, 1.05rem);
  font-weight: 600;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  line-height: 1.2;
}

.brand-word-ghost {
  color: rgba(34, 211, 238, 0.95);
}

.brand-word-shell {
  color: rgba(226, 232, 240, 0.9);
}

.brand-sub {
  font-family: var(--font-mono);
  font-size: 0.625rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: rgba(232, 121, 249, 0.7);
}

a.brand-sub {
  text-decoration: none;
  transition: color 0.2s;
}

a.brand-sub:hover {
  color: rgba(244, 114, 182, 0.95);
  text-decoration: underline;
  text-underline-offset: 3px;
}

.nav-desktop {
  display: none;
  align-items: center;
  gap: 0.25rem;
}

@media (min-width: 768px) {
  .nav-desktop {
    display: flex;
  }
}

.nav-desktop a {
  padding: 0.5rem 0.85rem;
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--text-muted);
  border-radius: 0.5rem;
  border: 1px solid transparent;
  transition:
    color 0.2s,
    background 0.2s,
    border-color 0.2s,
    box-shadow 0.2s;
}

.nav-desktop a:hover {
  color: #e2e8f0;
  background: rgba(15, 23, 42, 0.6);
  border-color: rgba(100, 116, 139, 0.35);
}

.nav-desktop a[aria-current='page'] {
  color: #a5f3fc;
  border-color: rgba(34, 211, 238, 0.35);
  background: rgba(8, 51, 68, 0.45);
  box-shadow: 0 0 20px -6px rgba(34, 211, 238, 0.35);
}

.mobile-menu {
  display: block;
}

@media (min-width: 768px) {
  .mobile-menu {
    display: none;
  }
}

.mobile-menu summary {
  list-style: none;
  cursor: pointer;
  padding: 0.5rem 0.65rem;
  border-radius: 0.5rem;
  font-size: 1.25rem;
  color: var(--text-muted);
  border: 1px solid transparent;
}

.mobile-menu summary::-webkit-details-marker {
  display: none;
}

.mobile-menu summary:hover {
  color: var(--text);
  border-color: var(--border);
  background: rgba(15, 23, 42, 0.5);
}

.mobile-drawer {
  position: fixed;
  top: 4rem;
  left: 0;
  right: 0;
  background: rgba(2, 6, 23, 0.96);
  border-bottom: 1px solid var(--border);
  padding: 0.5rem 0 1rem;
  z-index: 40;
}

.mobile-drawer a {
  display: block;
  padding: 0.75rem 1.5rem;
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--text-muted);
}

.mobile-drawer a:hover,
.mobile-drawer a[aria-current='page'] {
  color: #a5f3fc;
  background: rgba(8, 51, 68, 0.35);
}

main {
  padding-top: 4rem;
}

/* ---- Hero ---- */
.hero {
  padding: 4rem 0 3.5rem;
}

@media (min-width: 1024px) {
  .hero {
    padding: 5.5rem 0 4rem;
  }
}

.hero-layout {
  display: grid;
  gap: 2rem;
  align-items: center;
}

@media (min-width: 960px) {
  .hero-layout {
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 2.5rem;
  }
}

.hero-inner {
  max-width: 42rem;
}

.hero-art {
  display: flex;
  justify-content: center;
  max-width: 16rem;
  margin: 0 auto;
}

@media (min-width: 960px) {
  .hero-art {
    margin: 0;
    max-width: none;
  }
}

.hero-art img {
  width: min(16rem, 70vw);
  height: auto;
  aspect-ratio: 1;
  object-fit: contain;
  opacity: 0.92;
  filter: drop-shadow(0 0 28px rgba(34, 211, 238, 0.28));
}

.pill {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-family: var(--font-mono);
  font-size: 0.6875rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--cyan-dim);
  border: 1px solid var(--border);
  border-radius: 999px;
  padding: 0.4rem 0.9rem;
  margin-bottom: 1.25rem;
  background: rgba(8, 51, 68, 0.25);
}

.hero h1 {
  font-size: clamp(2rem, 5vw, 3rem);
  font-weight: 700;
  line-height: 1.15;
  letter-spacing: -0.03em;
  color: #f8fafc;
  margin-bottom: 1rem;
}

.gradient-text {
  background: linear-gradient(135deg, #67e8f9, #22d3ee, #a78bfa);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.hero-lead {
  font-size: 1.0625rem;
  line-height: 1.75;
  color: var(--text-muted);
  margin-bottom: 1.75rem;
}

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

.btn-primary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.8rem 1.5rem;
  border-radius: var(--radius);
  font-weight: 600;
  font-size: 0.9375rem;
  color: #0f172a;
  background: linear-gradient(135deg, #67e8f9, #22d3ee);
  border: none;
  cursor: pointer;
  box-shadow: 0 0 24px -4px rgba(34, 211, 238, 0.45);
  transition:
    transform 0.2s,
    box-shadow 0.2s;
}

.btn-primary:hover {
  transform: translateY(-1px);
  box-shadow: 0 0 32px -2px rgba(34, 211, 238, 0.55);
}

.btn-ghost {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.8rem 1.5rem;
  border-radius: var(--radius);
  font-weight: 600;
  font-size: 0.9375rem;
  color: var(--text);
  background: transparent;
  border: 1px solid var(--border);
  cursor: pointer;
  transition:
    background 0.2s,
    border-color 0.2s;
}

.btn-ghost:hover {
  background: rgba(15, 23, 42, 0.6);
  border-color: rgba(34, 211, 238, 0.35);
}

/* ---- Sections ---- */
.section {
  padding: 3rem 0 4rem;
  border-top: 1px solid var(--border);
}

.section h2 {
  font-size: clamp(1.35rem, 3vw, 1.75rem);
  font-weight: 700;
  letter-spacing: -0.02em;
  margin-bottom: 0.75rem;
  color: #f1f5f9;
}

.section-intro {
  color: var(--text-muted);
  line-height: 1.7;
  max-width: 40rem;
  margin-bottom: 2rem;
}

.section-intro a {
  color: #67e8f9;
  font-weight: 600;
  text-decoration: underline;
  text-underline-offset: 3px;
}

.section-intro a:hover {
  color: #a5f3fc;
}

.feature-grid {
  display: grid;
  gap: 1rem;
}

@media (min-width: 640px) {
  .feature-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

.feature-card {
  padding: 1.25rem 1.35rem;
  border-radius: var(--radius);
  border: 1px solid var(--border);
  background: var(--panel);
  backdrop-filter: blur(8px);
}

.feature-card-icon {
  width: 3rem;
  height: 3rem;
  margin-bottom: 0.75rem;
  border-radius: 0.5rem;
  overflow: hidden;
  border: 1px solid var(--border);
  background: rgba(8, 51, 68, 0.35);
}

.feature-card-icon img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.feature-card h3 {
  font-size: 0.9375rem;
  font-weight: 600;
  color: #a5f3fc;
  margin-bottom: 0.5rem;
}

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

.feature-card p + p {
  margin-top: 0.65rem;
}

.feature-card-link {
  margin-top: 0.65rem;
  margin-bottom: 0 !important;
}

.roadmap-list {
  margin: 0;
  padding-left: 1.35rem;
  max-width: 44rem;
  color: #cbd5e1;
  font-size: 0.9375rem;
  line-height: 1.75;
}

.roadmap-list li {
  margin-bottom: 0.65rem;
}

.roadmap-list li:last-child {
  margin-bottom: 0;
}

.roadmap-list li::marker {
  color: rgba(34, 211, 238, 0.55);
  font-weight: 600;
}

.roadmap-list strong {
  color: #e2e8f0;
  font-weight: 600;
}

.roadmap-list code {
  font-family: var(--font-mono);
  font-size: 0.84em;
  color: #67e8f9;
}

.contribute-body {
  padding-bottom: 3.5rem;
  max-width: 44rem;
  margin-left: auto;
  margin-right: auto;
}

.contribute-body .contact-panel p:last-child {
  margin-bottom: 0;
}

.feature-card-link a {
  font-size: 0.875rem;
  font-weight: 600;
  color: #67e8f9;
  text-decoration: underline;
  text-underline-offset: 3px;
}

.feature-card-link a:hover {
  color: #a5f3fc;
}

.feature-card .feature-inline-link {
  color: #67e8f9;
  font-weight: 600;
  text-decoration: underline;
  text-underline-offset: 3px;
}

.feature-card .feature-inline-link:hover {
  color: #a5f3fc;
}

/* ---- Contact ---- */
.contact-section {
  padding: 2.75rem 0 4rem;
}

.merged-about-contact {
  padding-bottom: 0.5rem;
}

.contact-panel {
  max-width: 28rem;
  margin: 0 auto;
  padding: 2rem;
  border-radius: 1rem;
  border: 1px solid var(--border);
  background: var(--panel);
  backdrop-filter: blur(10px);
}

.contact-panel h1,
.contact-panel h2.contact-panel-h2 {
  font-size: 1.5rem;
  font-weight: 700;
  margin-bottom: 0.5rem;
  color: #f1f5f9;
}

.contact-panel .lead {
  font-size: 0.9375rem;
  color: var(--text-muted);
  line-height: 1.6;
  margin-bottom: 1.75rem;
}

.mail-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.75rem;
  padding: 1rem 1.15rem;
  border-radius: var(--radius);
  border: 1px solid rgba(34, 211, 238, 0.25);
  background: rgba(8, 51, 68, 0.35);
}

.mail-row a {
  font-family: var(--font-mono);
  font-size: 0.9375rem;
  font-weight: 500;
  color: #67e8f9;
  word-break: break-all;
}

.mail-row a:hover {
  color: #a5f3fc;
}

.btn-copy {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  padding: 0.45rem 0.75rem;
  border-radius: 0.5rem;
  border: 1px solid var(--border);
  background: rgba(15, 23, 42, 0.8);
  color: var(--text-muted);
  cursor: pointer;
  transition:
    color 0.2s,
    border-color 0.2s;
}

.btn-copy:hover {
  color: #a5f3fc;
  border-color: rgba(34, 211, 238, 0.4);
}

.copy-toast {
  margin-top: 1rem;
  font-size: 0.8125rem;
  color: #4ade80;
  min-height: 1.25rem;
}

/* ---- Footer ---- */
.site-footer {
  border-top: 1px solid var(--border);
  padding: 2rem 0;
  background: rgba(2, 6, 23, 0.5);
}

.footer-inner {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 1rem;
}

@media (min-width: 640px) {
  .footer-inner {
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
  }
}

.footer-eyebrow {
  font-family: var(--font-mono);
  font-size: 0.625rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: rgba(34, 211, 238, 0.55);
}

.footer-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem 1.5rem;
  font-size: 0.875rem;
}

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

.footer-nav a:hover {
  color: #a5f3fc;
}

.footer-copy {
  font-size: 0.8125rem;
  color: var(--text-muted);
}

.reveal {
  opacity: 0;
  transform: translateY(16px);
  transition:
    opacity 0.6s ease,
    transform 0.6s ease;
}

.reveal.visible {
  opacity: 1;
  transform: none;
}

/* ---- Design page ---- */
.design-hero {
  padding: 2.75rem 0 1.5rem;
}

@media (min-width: 1024px) {
  .design-hero {
    padding: 3.5rem 0 2rem;
  }
}

.design-hero-top {
  display: flex;
  align-items: flex-start;
  gap: 1rem;
}

.design-hero-icon {
  width: 3rem;
  height: 3rem;
  flex-shrink: 0;
  border-radius: 0.5rem;
  object-fit: cover;
  border: 1px solid var(--border);
  background: rgba(8, 51, 68, 0.35);
  box-shadow: 0 0 18px -6px rgba(34, 211, 238, 0.35);
}

.design-hero-text {
  min-width: 0;
  flex: 1;
}

.design-hero-text .pill {
  margin-bottom: 0.75rem;
}

.design-title {
  font-size: clamp(1.85rem, 4.5vw, 2.5rem);
  font-weight: 700;
  letter-spacing: -0.03em;
  color: #f8fafc;
  margin-bottom: 0.75rem;
}

.design-deck {
  font-size: 1.0625rem;
  line-height: 1.7;
  color: var(--text-muted);
  max-width: 40rem;
}

.about-author-lead code {
  font-family: var(--font-mono);
  font-size: 0.88em;
  color: #a5f3fc;
}

/* ---- About essay (contact page) ---- */
.about-essay-section {
  padding: 0 0 2.5rem;
  max-width: 42rem;
  margin: 0 auto;
}

.about-essay {
  padding: 1.75rem 1.5rem 2rem;
  border-radius: 1rem;
  border: 1px solid var(--border);
  background: rgba(8, 51, 68, 0.22);
  backdrop-filter: blur(8px);
}

.about-essay-title {
  font-size: clamp(1.2rem, 3vw, 1.45rem);
  font-weight: 700;
  letter-spacing: -0.02em;
  line-height: 1.25;
  margin-bottom: 1.25rem;
  background: linear-gradient(135deg, #a5f3fc, #22d3ee, #c4b5fd);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.about-essay p {
  font-size: 0.9375rem;
  line-height: 1.78;
  color: #cbd5e1;
  margin: 0 0 1rem;
}

.about-essay p:last-child {
  margin-bottom: 0;
}

.about-essay strong {
  color: #e2e8f0;
  font-weight: 600;
}

.about-essay-trinity {
  padding: 1rem 1.1rem;
  margin: 1.25rem 0 !important;
  border-radius: var(--radius);
  border-left: 3px solid rgba(34, 211, 238, 0.45);
  background: rgba(2, 6, 23, 0.45);
  font-size: 0.9rem !important;
}

.about-essay-closer {
  font-style: italic;
  color: #94a3b8 !important;
  margin-top: 1.25rem !important;
}

/* ---- Blog ---- */
.blog-post-meta {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: rgba(148, 163, 184, 0.95);
  margin: 0 0 1rem;
}

.blog-post-meta a {
  color: rgba(34, 211, 238, 0.85);
  text-decoration: underline;
  text-underline-offset: 3px;
}

.blog-post-meta a:hover {
  color: #a5f3fc;
}

.blog-post-article .blog-post-h2-spaced {
  margin-top: 2rem;
}

.blog-post-h3 {
  font-size: 1rem;
  font-weight: 600;
  letter-spacing: -0.02em;
  color: #e2e8f0;
  margin: 1.5rem 0 0.65rem;
}

.blog-post-article p + .blog-post-h3 {
  margin-top: 1.75rem;
}

.blog-post-article p + .blog-post-point-list {
  margin-top: 0.75rem;
}

.blog-post-point-list {
  list-style: none;
  padding: 0;
  margin: 0.75rem 0 1rem;
}

.blog-post-point-list li {
  position: relative;
  padding-left: 1.1rem;
  margin: 0.5rem 0;
  font-size: 0.98rem;
  line-height: 1.55;
  color: var(--text-muted);
}

.blog-post-point-list li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0.55em;
  width: 0.35rem;
  height: 0.35rem;
  border-radius: 999px;
  background: rgba(34, 211, 238, 0.65);
}

/* Responsive YouTube (16:9) */
.blog-post-youtube-embed {
  margin: 0 0 1.5rem;
  padding: 0;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: rgba(2, 6, 23, 0.45);
  overflow: hidden;
}

.blog-post-youtube-frame {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 9;
  background: #000;
}

.blog-post-youtube-frame iframe {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
  display: block;
}

.blog-post-youtube-embed .blog-post-caption {
  border-top: 1px solid rgba(34, 211, 238, 0.1);
}

.blog-post-figure {
  margin: 1.25rem 0 1.5rem;
  padding: 0;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: rgba(2, 6, 23, 0.45);
  overflow: hidden;
}

.blog-post-figure img {
  display: block;
  width: 100%;
  height: auto;
  vertical-align: middle;
}

.blog-post-caption {
  display: block;
  padding: 0.65rem 0.85rem 0.8rem;
  font-size: 0.8125rem;
  line-height: 1.45;
  color: var(--text-muted);
  border-top: 1px solid rgba(34, 211, 238, 0.1);
}

/* Ghost engine: five solution pillars (emphasized layout) */
.blog-solution-pillar {
  margin: 2rem 0 0;
  border-radius: 1rem;
  border: 1px solid rgba(34, 211, 238, 0.22);
  background: linear-gradient(165deg, rgba(8, 47, 73, 0.4) 0%, rgba(2, 6, 23, 0.94) 42%, rgba(2, 6, 23, 0.98) 100%);
  overflow: hidden;
  box-shadow:
    0 0 0 1px rgba(0, 0, 0, 0.35),
    0 12px 40px -16px rgba(0, 0, 0, 0.65);
}

.blog-solution-pillar:first-of-type {
  margin-top: 1.5rem;
}

.blog-solution-pillar--1 {
  border-left: 4px solid #22d3ee;
}

.blog-solution-pillar--2 {
  border-left: 4px solid #2dd4bf;
}

.blog-solution-pillar--3 {
  border-left: 4px solid #a78bfa;
}

.blog-solution-pillar--4 {
  border-left: 4px solid #e879f9;
}

.blog-solution-pillar--5 {
  border-left: 4px solid #fbbf24;
}

.blog-solution-pillar-head {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: 1rem 1.25rem;
  align-items: start;
  padding: 1.35rem 1.35rem 1.1rem;
  border-bottom: 1px solid rgba(34, 211, 238, 0.12);
}

@media (max-width: 520px) {
  .blog-solution-pillar-head {
    grid-template-columns: 1fr;
  }
}

.blog-solution-num {
  font-family: var(--font-mono);
  font-size: clamp(2.75rem, 7vw, 3.5rem);
  font-weight: 700;
  line-height: 0.95;
  letter-spacing: -0.05em;
  background: linear-gradient(135deg, #e2e8f0, #22d3ee);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.blog-solution-pillar--2 .blog-solution-num {
  background: linear-gradient(135deg, #e2e8f0, #2dd4bf);
  -webkit-background-clip: text;
  background-clip: text;
}

.blog-solution-pillar--3 .blog-solution-num {
  background: linear-gradient(135deg, #e2e8f0, #a78bfa);
  -webkit-background-clip: text;
  background-clip: text;
}

.blog-solution-pillar--4 .blog-solution-num {
  background: linear-gradient(135deg, #fce7f3, #e879f9);
  -webkit-background-clip: text;
  background-clip: text;
}

.blog-solution-pillar--5 .blog-solution-num {
  background: linear-gradient(135deg, #fef3c7, #fbbf24);
  -webkit-background-clip: text;
  background-clip: text;
}

.blog-solution-head-text {
  min-width: 0;
}

.blog-solution-title {
  font-size: clamp(1.2rem, 2.8vw, 1.55rem);
  font-weight: 700;
  letter-spacing: -0.03em;
  line-height: 1.22;
  margin: 0 0 0.5rem;
  color: #f8fafc;
}

.blog-solution-deck {
  margin: 0;
  font-size: 0.9375rem;
  font-weight: 600;
  line-height: 1.45;
  color: rgba(165, 243, 252, 0.92);
  letter-spacing: 0.01em;
}

.blog-solution-pillar-body {
  padding: 1.1rem 1.35rem 1.25rem;
}

.blog-solution-pillar-body p {
  margin: 0 0 0.85rem;
  font-size: 0.9375rem;
  line-height: 1.75;
  color: #cbd5e1;
}

.blog-solution-pillar-body p:last-child {
  margin-bottom: 0;
}

.blog-solution-pillar .blog-post-point-list {
  margin: 0.35rem 0 0;
}

.blog-solution-pillar .blog-post-figure {
  margin: 0;
  border-radius: 0;
  border-left: none;
  border-right: none;
  border-bottom: none;
}

.blog-solution-pillar .blog-post-figure + .blog-post-figure {
  border-top: 1px solid rgba(34, 211, 238, 0.08);
}

.blog-list-section {
  padding: 0 0 4rem;
  max-width: 42rem;
  margin: 0 auto;
}

.blog-list {
  list-style: none;
  padding: 0;
  margin: 0;
}

.blog-list-item {
  margin: 0;
  padding: 0;
  border-bottom: 1px solid var(--border);
}

.blog-list-item:first-child {
  border-top: 1px solid var(--border);
}

.blog-list-link {
  display: block;
  padding: 1.25rem 0.25rem;
  text-decoration: none;
  transition: background 0.15s ease;
  border-radius: var(--radius);
}

.blog-list-link:hover {
  background: rgba(8, 51, 68, 0.25);
}

.blog-list-title {
  display: block;
  font-size: 1.125rem;
  font-weight: 600;
  color: #f1f5f9;
  margin-bottom: 0.35rem;
}

.blog-list-link:hover .blog-list-title {
  color: #a5f3fc;
}

.blog-list-meta {
  display: block;
  font-size: 0.875rem;
  line-height: 1.5;
  color: var(--text-muted);
}

.design-stack {
  padding-bottom: 4rem;
  max-width: 48rem;
  margin-left: auto;
  margin-right: auto;
}

/* Semantic highlights — design page & readable prose */
.hl-brand {
  color: #7dd3fc;
  font-weight: 600;
}

.hl-engine {
  color: #22d3ee;
  font-weight: 600;
}

.hl-arc {
  color: #a5f3fc;
  font-weight: 600;
}

.hl-warn {
  color: #fb923c;
  font-weight: 600;
}

.hl-team {
  color: #fcd34d;
  font-weight: 600;
}

.hl-principle {
  color: #fde68a;
  font-weight: 600;
}

.hl-tool {
  color: #4ade80;
  font-weight: 600;
}

.hl-sys {
  color: #2dd4bf;
  font-weight: 600;
}

.hl-know {
  color: #c4b5fd;
  font-weight: 600;
}

.hl-world {
  color: #818cf8;
  font-weight: 600;
}

.hl-whisper {
  color: #e879f9;
  font-weight: 600;
}

.hl-state {
  color: #f472b6;
  font-weight: 600;
}

.hl-ext {
  color: #fbbf24;
  font-weight: 600;
}

.hl-meta {
  color: #94a3b8;
  font-weight: 500;
}

.design-section {
  padding: 0;
  margin: 0 0 1.5rem;
  border: 1px solid var(--border);
  border-radius: 1rem;
  background: rgba(2, 6, 23, 0.4);
  overflow: hidden;
}

.design-section:last-of-type {
  margin-bottom: 0;
}

.design-block-head {
  display: flex;
  align-items: flex-start;
  gap: 1rem;
  padding: 1.25rem 1.25rem 0.75rem;
  border-bottom: 1px solid rgba(34, 211, 238, 0.1);
  background: rgba(15, 23, 42, 0.35);
}

.design-block-num {
  flex-shrink: 0;
  font-family: var(--font-mono);
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  color: #64748b;
  line-height: 1.5;
  padding-top: 0.2rem;
}

.design-block-head h2 {
  font-size: 1.15rem;
  font-weight: 600;
  letter-spacing: -0.02em;
  color: #f1f5f9;
  margin: 0 0 0.35rem;
}

.design-block-lead {
  font-size: 0.8125rem;
  line-height: 1.5;
  color: var(--text-muted);
  margin: 0;
  max-width: 36rem;
}

.design-block-body {
  padding: 1rem 1.25rem 1.15rem;
}

.design-block-body p {
  font-size: 0.9375rem;
  line-height: 1.78;
  color: #cbd5e1;
  margin: 0 0 0.85rem;
}

.design-block-body p:last-child {
  margin-bottom: 0;
}

.design-block-foot {
  padding: 0 1.25rem 1.15rem;
  margin-top: -0.25rem;
}

.design-section--note {
  margin-top: 1.5rem;
  border-style: dashed;
  background: rgba(8, 51, 68, 0.2);
}

.design-section--note .design-block-head {
  border-bottom-color: rgba(148, 163, 184, 0.15);
  background: rgba(15, 23, 42, 0.25);
}

.design-section--note .design-block-head h2 {
  color: #94a3b8;
  font-size: 1rem;
}

.design-section--note .design-block-body p {
  color: var(--text-muted);
  font-size: 0.875rem;
}

/* Note section without design-block (e.g. world-examples source blurb) */
.design-section--note > h2:first-child {
  padding: 1.35rem 1.35rem 0;
  font-size: 1rem;
  font-weight: 600;
  color: #94a3b8;
  margin: 0;
}

.design-section--note > p {
  padding: 0.65rem 1.35rem 1.35rem;
  margin: 0;
  font-size: 0.875rem;
  line-height: 1.65;
  color: var(--text-muted);
}

.design-section--note > p .design-inline-link {
  color: #67e8f9;
}

.design-section code {
  font-family: var(--font-mono);
  font-size: 0.85em;
  color: #67e8f9;
}

.design-inline-link {
  color: #67e8f9;
  font-weight: 600;
  text-decoration: underline;
  text-underline-offset: 3px;
}

.design-inline-link:hover {
  color: #a5f3fc;
}

.design-concept-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(14rem, 1fr));
  gap: 1rem;
  margin: 0 0 1rem;
  max-width: 52rem;
}

.design-concept-card {
  display: block;
  padding: 1.1rem 1.15rem;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: rgba(8, 51, 68, 0.22);
  text-decoration: none;
  color: inherit;
  transition:
    border-color 0.2s ease,
    background 0.2s ease,
    transform 0.2s ease;
}

.design-concept-card:hover {
  border-color: rgba(34, 211, 238, 0.35);
  background: rgba(8, 51, 68, 0.35);
  transform: translateY(-2px);
}

.design-concept-card h3 {
  font-size: 0.95rem;
  font-weight: 600;
  letter-spacing: -0.02em;
  color: #a5f3fc;
  margin: 0 0 0.4rem;
}

.design-concept-card p {
  font-size: 0.8125rem;
  line-height: 1.5;
  color: var(--text-muted);
  margin: 0;
}

.design-concept-card--why {
  border-top: 3px solid #fb923c;
}

.design-concept-card--agent {
  border-top: 3px solid #4ade80;
}

.design-concept-card--sys {
  border-top: 3px solid #2dd4bf;
}

.design-concept-card--know {
  border-top: 3px solid #c4b5fd;
}

.design-concept-card--world {
  border-top: 3px solid #818cf8;
}

.design-concept-card--whisper {
  border-top: 3px solid #e879f9;
}

.design-concept-card--ext {
  border-top: 3px solid #fbbf24;
}

.design-concept-card--why h3 {
  color: #fdba74;
}

.design-concept-card--agent h3 {
  color: #86efac;
}

.design-concept-card--sys h3 {
  color: #5eead4;
}

.design-concept-card--know h3 {
  color: #d8b4fe;
}

.design-concept-card--world h3 {
  color: #a5b4fc;
}

.design-concept-card--whisper h3 {
  color: #f0abfc;
}

.design-concept-card--ext h3 {
  color: #fcd34d;
}

.design-toc-wrap {
  padding-bottom: 1.5rem;
  max-width: 52rem;
  margin-left: auto;
  margin-right: auto;
}

.design-toc-heading {
  font-size: 0.6875rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: #64748b;
  margin: 0 0 0.5rem;
}

.design-toc-deck {
  font-size: 0.875rem;
  line-height: 1.55;
  color: var(--text-muted);
  margin: 0 0 1.25rem;
  max-width: 40rem;
}

.design-hero-keys-line {
  font-size: 0.8125rem;
  line-height: 1.65;
  margin-top: 1.25rem;
  max-width: 46rem;
}

.design-hero-sep {
  margin: 0 0.45rem;
  color: rgba(34, 211, 238, 0.35);
  font-weight: 400;
}

.design-section[id] {
  scroll-margin-top: 5rem;
}

.design-section-link {
  font-size: 0.875rem;
  font-weight: 600;
  color: #67e8f9;
  text-decoration: none;
}

.design-section-link:hover {
  color: #a5f3fc;
  text-decoration: underline;
  text-underline-offset: 3px;
}

.design-extension-list {
  margin: 0.75rem 0 0;
  padding-left: 1.25rem;
  max-width: 44rem;
  font-size: 0.875rem;
  line-height: 1.65;
  color: #cbd5e1;
}

.design-extension-list li {
  margin-bottom: 0.35rem;
}

/* ---- World examples ---- */
.world-examples {
  padding-bottom: 4rem;
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.world-example {
  border: 1px solid var(--border);
  border-radius: 1rem;
  background: rgba(8, 51, 68, 0.18);
  overflow: hidden;
}

.world-example-head {
  padding: 1.35rem 1.5rem 1rem;
  border-bottom: 1px solid var(--border);
  background: rgba(2, 6, 23, 0.35);
}

.world-example-head-row {
  display: flex;
  align-items: flex-start;
  gap: 1rem;
}

.world-example-icon {
  width: 3.5rem;
  height: 3.5rem;
  flex-shrink: 0;
  border-radius: 0.5rem;
  object-fit: cover;
  border: 1px solid var(--border);
  background: rgba(8, 51, 68, 0.35);
  box-shadow: 0 0 18px -6px rgba(34, 211, 238, 0.25);
}

.world-example-head-text {
  min-width: 0;
  flex: 1;
}

.world-example-id {
  display: block;
  font-family: var(--font-mono);
  font-size: 0.6875rem;
  letter-spacing: 0.04em;
  color: rgba(232, 121, 249, 0.85);
  margin-bottom: 0.5rem;
}

.world-example-head h2 {
  font-size: clamp(1.25rem, 3vw, 1.5rem);
  font-weight: 700;
  letter-spacing: -0.02em;
  color: #f1f5f9;
  margin-bottom: 0.25rem;
}

.world-example-tagline {
  font-size: 0.875rem;
  color: var(--cyan-dim);
  font-weight: 500;
}

.world-example-body {
  padding: 1.35rem 1.5rem 1.5rem;
}

.world-example-body p {
  font-size: 0.9375rem;
  line-height: 1.75;
  color: #cbd5e1;
  margin-bottom: 1rem;
}

.world-example-body p:last-child {
  margin-bottom: 0;
}

.world-example-body strong {
  color: #e2e8f0;
  font-weight: 600;
}

.world-example-demo {
  font-size: 0.875rem;
  line-height: 1.65;
  color: #e2e8f0;
  margin: 0 0 1rem;
  padding: 0.85rem 1rem;
  border-radius: var(--radius);
  border-left: 3px solid rgba(251, 146, 60, 0.55);
  background: rgba(15, 23, 42, 0.55);
}

.world-example-demo strong {
  color: #fdba74;
}

.world-example-demo code {
  font-family: var(--font-mono);
  font-size: 0.84em;
  color: #67e8f9;
}

.world-example-body code {
  font-family: var(--font-mono);
  font-size: 0.84em;
  color: #67e8f9;
}

.world-gallery-section {
  margin-bottom: 2rem;
}

.world-gallery-head {
  margin-bottom: 1.25rem;
  max-width: 44rem;
}

.world-gallery-title {
  font-size: 1.125rem;
  font-weight: 600;
  letter-spacing: -0.02em;
  color: #a5f3fc;
  margin-bottom: 0.5rem;
}

.world-gallery-section .world-gallery-title--sub {
  margin-top: 2rem;
  font-size: 1rem;
}

.world-gallery-section .world-gallery-title--sub + .world-gallery-deck {
  margin-bottom: 1rem;
}

.world-gallery-deck {
  font-size: 0.875rem;
  line-height: 1.6;
  color: var(--text-muted);
  margin: 0;
}

.gallery-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(min(100%, 16rem), 1fr));
  gap: 1rem;
}

@media (min-width: 768px) {
  .gallery-grid {
    grid-template-columns: repeat(auto-fill, minmax(14.5rem, 1fr));
  }
}

.gallery-item {
  margin: 0;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: rgba(2, 6, 23, 0.45);
  overflow: hidden;
  display: flex;
  flex-direction: column;
}

.gallery-item img {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 16 / 10;
  object-fit: cover;
  object-position: top center;
  background: rgba(15, 23, 42, 0.6);
  cursor: zoom-in;
}

.gallery-item img:focus-visible {
  outline: 2px solid rgba(34, 211, 238, 0.5);
  outline-offset: 2px;
}

.gallery-item figcaption {
  padding: 0.55rem 0.75rem 0.65rem;
  font-size: 0.75rem;
  line-height: 1.4;
  color: #94a3b8;
  border-top: 1px solid rgba(34, 211, 238, 0.08);
}

.world-example .gallery-grid {
  margin-top: 1rem;
}

/* Full-width gallery hero (e.g. Mafia Town showcase) */
.gallery-item--wide {
  grid-column: 1 / -1;
  max-width: min(100%, 72rem);
  margin-inline: auto;
  width: 100%;
}

.gallery-item--wide img {
  aspect-ratio: 16 / 9;
  object-fit: contain;
  object-position: center;
  background: rgba(15, 23, 42, 0.85);
}

.world-example-body .world-gallery-title {
  margin-top: 1.25rem;
  margin-bottom: 0.45rem;
  font-size: 1rem;
  font-weight: 600;
  letter-spacing: -0.02em;
  color: #a5f3fc;
}

.world-example-body .world-gallery-deck {
  margin-bottom: 0;
}

/* ---- Gallery lightbox (world-examples) ---- */
.gallery-lightbox {
  position: fixed;
  inset: 0;
  z-index: 200;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1.25rem;
  margin: 0;
  border: none;
  background: rgba(2, 6, 23, 0.94);
  backdrop-filter: blur(12px);
  box-sizing: border-box;
}

.gallery-lightbox[hidden] {
  display: none;
}

.gallery-lightbox-panel {
  position: relative;
  max-width: min(96vw, 1800px);
  max-height: 92vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.65rem;
}

.gallery-lightbox-img {
  display: block;
  max-width: 100%;
  max-height: min(82vh, 1200px);
  width: auto;
  height: auto;
  object-fit: contain;
  border-radius: 0.35rem;
  box-shadow:
    0 0 0 1px rgba(34, 211, 238, 0.12),
    0 24px 48px rgba(0, 0, 0, 0.45);
}

.gallery-lightbox-caption {
  margin: 0;
  font-size: 0.875rem;
  line-height: 1.4;
  color: #94a3b8;
  text-align: center;
  max-width: 42rem;
}

.gallery-lightbox-close {
  position: absolute;
  top: -0.25rem;
  right: -0.25rem;
  z-index: 2;
  width: 2.5rem;
  height: 2.5rem;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0;
  border: 1px solid rgba(34, 211, 238, 0.25);
  border-radius: 0.5rem;
  background: rgba(15, 23, 42, 0.95);
  color: #e2e8f0;
  font-size: 1.5rem;
  line-height: 1;
  cursor: pointer;
  transition:
    background 0.15s ease,
    border-color 0.15s ease;
}

.gallery-lightbox-close:hover {
  background: rgba(30, 41, 59, 0.98);
  border-color: rgba(34, 211, 238, 0.45);
  color: #fff;
}

@media (max-width: 640px) {
  .gallery-lightbox-close {
    top: -2.75rem;
    right: 0;
  }
}

/* ---- Home: embedded multi-agent demo ---- */
.home-gits-demo-intro {
  max-width: 44rem;
  margin-left: auto;
  margin-right: auto;
}

.video-embed-wrap {
  position: relative;
  width: 100%;
  max-width: 48rem;
  margin: 1.5rem auto 0;
  aspect-ratio: 16 / 9;
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid var(--border);
  background: var(--panel);
}

.video-embed-wrap iframe {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
}

.home-gits-demo-foot {
  margin-top: 1rem;
  text-align: center;
  font-size: 0.875rem;
}

/* ---- Ghost Vault tutorial (screenshot walkthrough) ---- */
.gv-tutorial {
  max-width: 48rem;
  margin: 0 auto;
  padding: 0 0 3.5rem;
}

.gv-tutorial h2 {
  font-size: clamp(1.2rem, 2.5vw, 1.4rem);
  font-weight: 700;
  letter-spacing: -0.02em;
  color: #f1f5f9;
  margin: 2.5rem 0 0.75rem;
  scroll-margin-top: 5rem;
}

.gv-tutorial h2:first-of-type {
  margin-top: 0;
}

.gv-tutorial > p,
.gv-tutorial .section-intro {
  color: #cbd5e1;
  line-height: 1.75;
  font-size: 0.9375rem;
  margin-bottom: 1rem;
  max-width: 44rem;
}

.gv-tutorial p strong {
  color: #e2e8f0;
}

.gv-tutorial .blog-post-figure {
  margin: 1.25rem 0 0.5rem;
}

.gv-tutorial .blog-post-figure + p {
  margin-top: 1.25rem;
}

.gv-tutorial pre {
  margin: 1rem 0 1.25rem;
  padding: 1rem 1.1rem;
  border-radius: var(--radius);
  border: 1px solid var(--border);
  background: rgba(2, 6, 23, 0.65);
  overflow-x: auto;
  font-family: var(--font-mono);
  font-size: 0.8125rem;
  line-height: 1.55;
  color: #e2e8f0;
}

.gv-tutorial pre code {
  font-family: inherit;
  font-size: inherit;
  color: inherit;
  background: none;
  padding: 0;
  border: 0;
}

.blog-post-figure > a {
  display: block;
  line-height: 0;
}
