:root {
  --bg: #071018;
  --bg-elevated: #0c1721;
  --panel: rgba(13, 24, 35, 0.86);
  --panel-strong: rgba(18, 32, 46, 0.94);
  --panel-soft: rgba(11, 20, 30, 0.78);
  --text: #edf4fb;
  --muted: #8fa2b5;
  --muted-strong: #b5c4d2;
  --line: rgba(151, 177, 204, 0.18);
  --line-strong: rgba(151, 177, 204, 0.3);
  --accent: #7dd3fc;
  --accent-strong: #2dd4bf;
  --accent-soft: rgba(125, 211, 252, 0.14);
  --success-soft: rgba(34, 197, 94, 0.14);
  --warning-soft: rgba(245, 158, 11, 0.12);
  --shadow: 0 24px 80px rgba(0, 0, 0, 0.36);
  --radius-xl: 28px;
  --radius-lg: 20px;
  --radius-md: 14px;
  --radius-sm: 10px;
  --max-width: 1180px;
  --body-font: "IBM Plex Sans", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --display-font: "Space Grotesk", "IBM Plex Sans", system-ui, sans-serif;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100vh;
  color: var(--text);
  font-family: var(--body-font);
  line-height: 1.6;
  background:
    radial-gradient(circle at top right, rgba(45, 212, 191, 0.16), transparent 28%),
    radial-gradient(circle at left 10% top 22%, rgba(96, 165, 250, 0.13), transparent 24%),
    linear-gradient(180deg, #09131d 0%, #071018 100%);
}

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

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

button,
input,
textarea,
select {
  font: inherit;
}

.site-shell {
  width: min(var(--max-width), calc(100vw - 32px));
  margin: 0 auto;
  padding: 28px 0 84px;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: 14px 18px;
  margin: 0 0 28px;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: rgba(7, 16, 24, 0.72);
  backdrop-filter: blur(18px);
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.28);
}

.brand-lockup {
  display: flex;
  align-items: center;
  gap: 14px;
  min-width: 0;
}

.brand-mark {
  width: 44px;
  height: 44px;
  border-radius: 14px;
  border: 1px solid rgba(125, 211, 252, 0.24);
  background:
    linear-gradient(145deg, rgba(125, 211, 252, 0.24), rgba(45, 212, 191, 0.08)),
    rgba(9, 20, 30, 0.9);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.05), 0 12px 24px rgba(0, 0, 0, 0.25);
}

.brand-name {
  font-family: var(--display-font);
  font-weight: 700;
  letter-spacing: 0.02em;
}

.brand-subtitle {
  color: var(--muted);
  font-size: 0.82rem;
}

.site-nav {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 14px;
}

.site-nav a {
  color: var(--muted-strong);
  font-size: 0.94rem;
  font-weight: 500;
}

.site-nav a:hover,
.site-nav a:focus-visible {
  color: var(--text);
}

.section {
  margin-top: 56px;
}

.section-header {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 22px;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 32px;
  padding: 0 12px;
  border: 1px solid rgba(125, 211, 252, 0.18);
  border-radius: 999px;
  background: var(--accent-soft);
  color: #d2f5ff;
  font-size: 0.76rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.section-title,
.hero-title,
.page-title {
  margin: 10px 0 0;
  font-family: var(--display-font);
  line-height: 1.04;
  letter-spacing: -0.03em;
}

.hero-title {
  max-width: 11ch;
  font-size: clamp(2.8rem, 7vw, 5.6rem);
}

.section-title {
  max-width: 16ch;
  font-size: clamp(1.6rem, 2.6vw, 2.3rem);
}

.page-title {
  font-size: clamp(2.2rem, 5vw, 3.5rem);
}

.lead,
.section-copy,
.page-summary {
  color: var(--muted-strong);
}

.lead {
  max-width: 60ch;
  font-size: 1.08rem;
}

.section-copy {
  margin: 0;
  max-width: 60ch;
  font-size: 1rem;
}

.hero {
  position: relative;
  overflow: hidden;
  padding: 34px;
  border: 1px solid var(--line);
  border-radius: var(--radius-xl);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.04), rgba(255, 255, 255, 0.01)),
    linear-gradient(140deg, rgba(11, 21, 31, 0.96), rgba(14, 29, 42, 0.88));
  box-shadow: var(--shadow);
}

.hero::before {
  content: "";
  position: absolute;
  inset: auto -14% -40% auto;
  width: 340px;
  height: 340px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(125, 211, 252, 0.22), transparent 70%);
  pointer-events: none;
}

.hero-grid,
.panel-grid,
.two-column,
.proof-layout,
.article-meta-grid {
  display: grid;
  gap: 20px;
}

.hero-grid {
  grid-template-columns: minmax(0, 1.5fr) minmax(280px, 0.9fr);
  align-items: stretch;
}

.hero-copy,
.hero-side,
.panel,
.proof-feature,
.proof-stack,
.card,
.list-card,
.article-shell,
.article-panel {
  border: 1px solid var(--line);
  background: var(--panel);
  box-shadow: var(--shadow);
  backdrop-filter: blur(18px);
}

.hero-copy,
.hero-side,
.panel,
.proof-feature,
.proof-stack,
.article-panel {
  border-radius: var(--radius-lg);
}

.hero-copy {
  padding: 20px 0 0;
  border: 0;
  box-shadow: none;
  background: transparent;
  backdrop-filter: none;
}

.hero-side {
  padding: 22px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.03), rgba(255, 255, 255, 0.01)),
    rgba(8, 18, 28, 0.74);
}

.hero-kpis {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
  margin: 28px 0 0;
}

.kpi {
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: rgba(8, 16, 24, 0.68);
}

.kpi-value {
  display: block;
  font-family: var(--display-font);
  font-size: 1.6rem;
  font-weight: 700;
}

.kpi-label {
  color: var(--muted);
  font-size: 0.82rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.cta-row,
.meta-row,
.chip-row,
.proof-actions,
.footer-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 46px;
  padding: 0 16px;
  border: 1px solid var(--line);
  border-radius: 14px;
  color: var(--text);
  font-weight: 600;
  background: rgba(12, 21, 31, 0.82);
}

.button:hover,
.button:focus-visible {
  border-color: var(--line-strong);
  background: rgba(18, 31, 44, 0.95);
}

.button-primary {
  border-color: rgba(125, 211, 252, 0.28);
  background: linear-gradient(135deg, rgba(125, 211, 252, 0.28), rgba(45, 212, 191, 0.14));
}

.button-primary:hover,
.button-primary:focus-visible {
  background: linear-gradient(135deg, rgba(125, 211, 252, 0.34), rgba(45, 212, 191, 0.18));
}

.button-muted {
  color: var(--muted-strong);
}

.meta-label,
.fine-label {
  color: var(--muted);
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.hero-headline-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}

.portrait {
  width: 116px;
  height: 116px;
  border-radius: 24px;
  border: 1px solid rgba(125, 211, 252, 0.18);
  object-fit: cover;
  object-position: center;
  box-shadow: 0 18px 36px rgba(0, 0, 0, 0.34);
}

.status-list,
.text-list,
.timeline {
  display: grid;
  gap: 12px;
}

.status-item,
.timeline-step {
  padding: 14px 16px;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: rgba(7, 16, 24, 0.64);
}

.status-title {
  margin: 0 0 4px;
  font-weight: 600;
}

.status-copy,
.card-copy,
.list-copy,
.timeline-copy {
  margin: 0;
  color: var(--muted-strong);
}

.chip,
.status-chip {
  display: inline-flex;
  align-items: center;
  min-height: 28px;
  padding: 0 10px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: rgba(8, 16, 24, 0.72);
  color: var(--muted-strong);
  font-size: 0.78rem;
  font-weight: 600;
}

.status-chip-active {
  border-color: rgba(45, 212, 191, 0.28);
  background: var(--success-soft);
  color: #d3ffe6;
}

.status-chip-warning {
  border-color: rgba(245, 158, 11, 0.28);
  background: var(--warning-soft);
  color: #ffe4b0;
}

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

.panel,
.card,
.list-card {
  position: relative;
}

.panel {
  padding: 24px;
}

.panel-feature {
  grid-column: span 7;
}

.panel-side {
  grid-column: span 5;
}

.card-grid {
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  gap: 18px;
}

.card,
.list-card {
  grid-column: span 4;
  padding: 22px;
  border-radius: 18px;
  transition: transform 160ms ease, border-color 160ms ease, background 160ms ease, box-shadow 160ms ease;
}

.card-wide {
  grid-column: span 6;
}

.card:hover,
.card:focus-within {
  transform: translateY(-3px);
  border-color: rgba(125, 211, 252, 0.24);
  background: rgba(16, 28, 40, 0.9);
}

.card-title,
.list-title {
  margin: 12px 0 8px;
  font-family: var(--display-font);
  font-size: 1.26rem;
  line-height: 1.15;
}

.card-meta,
.list-meta,
.article-meta {
  color: var(--muted);
  font-size: 0.9rem;
}

.card-copy {
  min-height: 72px;
}

.system-card {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  min-height: 280px;
}

.system-card-primary {
  background:
    linear-gradient(180deg, rgba(125, 211, 252, 0.08), rgba(255, 255, 255, 0.01)),
    rgba(14, 26, 38, 0.92);
}

.system-card-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 8px;
}

.system-updated {
  color: var(--muted);
  font-size: 0.84rem;
  text-align: right;
}

.post-card {
  min-height: 300px;
}

.post-card-featured {
  background:
    linear-gradient(180deg, rgba(125, 211, 252, 0.11), rgba(255, 255, 255, 0.01)),
    rgba(14, 27, 39, 0.92);
}

.post-meta-row {
  align-items: center;
  margin-bottom: 6px;
}

.post-meta-row-featured {
  margin-bottom: 10px;
}

.chip-date {
  color: #d8ecff;
}

.chip-date-featured {
  border-color: rgba(125, 211, 252, 0.3);
  background: rgba(125, 211, 252, 0.14);
}

.post-chip-row {
  margin-top: 10px;
}

.post-impact {
  margin-top: 14px;
  padding-top: 14px;
  border-top: 1px solid rgba(151, 177, 204, 0.14);
}

.build-log-footer {
  display: flex;
  justify-content: flex-start;
  margin-top: 20px;
}

.archive-shell {
  width: min(var(--max-width), calc(100vw - 32px));
  margin: 0 auto;
  padding: 28px 0 84px;
}

.archive-intro {
  margin-bottom: 26px;
}

.archive-grid {
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  gap: 18px;
}

.archive-grid .post-card {
  grid-column: span 4;
}

.proof-layout {
  grid-template-columns: minmax(0, 1.25fr) minmax(280px, 0.85fr);
  align-items: stretch;
}

.proof-feature,
.proof-stack {
  padding: 24px;
  border-radius: var(--radius-lg);
}

.proof-preview {
  overflow: hidden;
  margin-top: 18px;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: rgba(8, 16, 24, 0.7);
}

.proof-preview img,
.proof-preview video {
  width: 100%;
  object-fit: cover;
}

.proof-stack {
  display: grid;
  gap: 14px;
}

.proof-item {
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: rgba(7, 16, 24, 0.62);
}

.proof-item h3,
.article-section h2 {
  margin: 0 0 8px;
  font-family: var(--display-font);
}

.proof-item p,
.article-section p,
.article-section li {
  margin: 0;
  color: var(--muted-strong);
}

.timeline {
  grid-template-columns: repeat(4, minmax(0, 1fr));
  position: relative;
  gap: 18px;
}

.timeline::before {
  content: "";
  position: absolute;
  left: 22px;
  right: 22px;
  top: 24px;
  height: 1px;
  background: linear-gradient(90deg, rgba(125, 211, 252, 0.28), rgba(45, 212, 191, 0.1));
}

.timeline-step {
  min-height: 170px;
  padding-top: 34px;
}

.timeline-era {
  display: block;
  margin-bottom: 12px;
  color: var(--accent);
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.legacy-card {
  position: relative;
  min-height: 220px;
  background:
    linear-gradient(180deg, rgba(125, 211, 252, 0.05), rgba(255, 255, 255, 0.01)),
    rgba(8, 16, 24, 0.68);
}

.legacy-card::before {
  content: "";
  position: absolute;
  top: 18px;
  left: 18px;
  width: 10px;
  height: 10px;
  border-radius: 999px;
  background: var(--accent);
  box-shadow: 0 0 0 6px rgba(125, 211, 252, 0.1);
}

.footer {
  margin-top: 56px;
  padding: 22px 24px;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: rgba(7, 16, 24, 0.68);
  color: var(--muted);
}

.footer p {
  margin: 0;
}

.article-body {
  padding-bottom: 72px;
}

.article-shell {
  width: min(860px, calc(100vw - 32px));
  margin: 32px auto 0;
  padding: 28px;
  border-radius: 26px;
  background:
    linear-gradient(180deg, rgba(125, 211, 252, 0.05), rgba(255, 255, 255, 0.01)),
    rgba(12, 23, 34, 0.9);
}

.article-topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 22px;
}

.article-meta-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  margin: 26px 0;
}

.article-panel {
  padding: 18px;
  border-radius: 18px;
}

.article-panel strong {
  display: block;
  margin-bottom: 6px;
  font-size: 0.84rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--muted);
}

.article-section {
  margin-top: 28px;
  padding-top: 22px;
  border-top: 1px solid var(--line);
}

.article-section h2 {
  font-size: 1.28rem;
}

.page-summary {
  max-width: 60ch;
  font-size: 1.05rem;
}

.article-section ul {
  margin: 12px 0 0;
  padding-left: 20px;
}

.article-nav {
  margin-top: 32px;
}

.empty-state {
  padding: 22px;
  border: 1px dashed var(--line);
  border-radius: 18px;
  color: var(--muted-strong);
  background: rgba(7, 16, 24, 0.48);
}

.loading-card {
  min-height: 240px;
  pointer-events: none;
  background: rgba(10, 19, 28, 0.82);
}

.loading-card:hover,
.loading-card:focus-within {
  transform: none;
  border-color: var(--line);
  background: rgba(10, 19, 28, 0.82);
}

.loading-pill,
.loading-line,
.loading-chip {
  border-radius: 999px;
  background: linear-gradient(90deg, rgba(125, 211, 252, 0.14), rgba(255, 255, 255, 0.06), rgba(125, 211, 252, 0.14));
  background-size: 200% 100%;
  animation: shimmer 1.8s linear infinite;
}

.loading-pill {
  width: 110px;
  height: 28px;
}

.loading-line {
  height: 14px;
  margin-top: 14px;
}

.loading-line-title {
  width: 72%;
  height: 24px;
  margin-top: 18px;
}

.loading-line-small-title {
  width: 84%;
  height: 20px;
  margin-top: 18px;
}

.loading-line-short {
  width: 58%;
}

.loading-chip-row {
  display: flex;
  gap: 10px;
  margin-top: 18px;
}

.loading-chip {
  width: 92px;
  height: 28px;
}

.loading-card-secondary {
  min-height: 220px;
}

@keyframes shimmer {
  0% {
    background-position: 200% 0;
  }

  100% {
    background-position: -200% 0;
  }
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

@media (max-width: 1080px) {
  .panel-feature,
  .panel-side,
  .card,
  .list-card,
  .card-wide {
    grid-column: span 12;
  }

  .hero-grid,
  .proof-layout,
  .article-meta-grid {
    grid-template-columns: 1fr;
  }

  .timeline {
    grid-template-columns: 1fr;
  }

  .timeline::before {
    left: 22px;
    right: auto;
    top: 24px;
    bottom: 24px;
    width: 1px;
    height: auto;
  }

  .system-card-top {
    align-items: flex-start;
    flex-direction: column;
  }

  .system-updated {
    text-align: left;
  }

  .archive-grid .post-card {
    grid-column: span 12;
  }
}

@media (max-width: 780px) {
  .site-shell {
    width: min(var(--max-width), calc(100vw - 24px));
    padding-top: 18px;
  }

  .site-header,
  .article-topbar,
  .hero-headline-row,
  .section-header {
    align-items: flex-start;
    flex-direction: column;
  }

  .hero {
    padding: 24px;
  }

  .hero-kpis {
    grid-template-columns: 1fr;
  }

  .portrait {
    width: 92px;
    height: 92px;
  }

  .article-shell {
    padding: 20px;
  }
}
