:root {
  --bg: #0f172a;
  --bg-deep: #020617;
  --card: rgba(15, 23, 42, 0.82);
  --card-strong: rgba(17, 24, 39, 0.94);
  --text: #e5e7eb;
  --heading: #f8fafc;
  --muted: #94a3b8;
  --accent: #60a5fa;
  --accent-strong: #93c5fd;
  --success: #34d399;
  --border: rgba(148, 163, 184, 0.24);
  --surface: rgba(15, 23, 42, 0.82);
  --surface-soft: rgba(15, 23, 42, 0.58);
  --surface-border: rgba(148, 163, 184, 0.24);
  --radius: 8px;
  --space-section: 4rem;
  --space-gap: 1.15rem;
  --space-card: 1.25rem;
  --shadow: 0 18px 48px rgba(0, 0, 0, 0.22);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: Arial, Helvetica, sans-serif;
  background:
    radial-gradient(circle at top left, rgba(37, 99, 235, 0.5), transparent 30rem),
    radial-gradient(circle at top right, rgba(20, 184, 166, 0.2), transparent 26rem),
    linear-gradient(180deg, var(--bg), var(--bg-deep));
  color: var(--text);
  line-height: 1.6;
}

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

a:hover,
a:focus-visible {
  text-decoration: underline;
}

a:focus-visible,
.button:focus-visible {
  outline: 3px solid rgba(96, 165, 250, 0.45);
  outline-offset: 4px;
}

h1,
h2,
h3 {
  color: var(--heading);
  line-height: 1.12;
}

h1 {
  max-width: 980px;
  margin: 1rem 0;
  font-size: clamp(2.6rem, 7vw, 5.4rem);
  letter-spacing: 0;
}

h2 {
  margin: 0;
  font-size: clamp(2rem, 4vw, 3rem);
}

h3 {
  margin: 0 0 0.65rem;
  font-size: 1.12rem;
}

p {
  margin-top: 0;
}

p:last-child,
ul:last-child,
dl:last-child {
  margin-bottom: 0;
}

dl {
  margin: 1rem 0;
}

dt {
  color: var(--accent-strong);
  font-weight: 700;
}

dd {
  margin: 0 0 0.8rem;
  color: var(--muted);
}

ul {
  margin: 0;
  padding-left: 1.2rem;
}

li {
  color: var(--muted);
}

li + li {
  margin-top: 0.5rem;
}

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

.site-header {
  position: sticky;
  top: 0;
  z-index: 10;
  border-bottom: 1px solid rgba(148, 163, 184, 0.2);
  background: rgba(15, 23, 42, 0.82);
  backdrop-filter: blur(12px);
}

.nav {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: var(--space-gap);
  padding: 1rem 0;
}

.brand {
  color: var(--heading);
  font-weight: 800;
  letter-spacing: 0.02em;
}

.nav-links {
  display: flex;
  gap: var(--space-gap);
  flex-wrap: wrap;
  justify-content: flex-end;
}

.nav-links a {
  color: #cbd5e1;
  font-weight: 700;
  font-size: 0.95rem;
}

.hero {
  padding: 6.5rem 0 var(--space-section);
}

.hero-copy {
  max-width: 790px;
  color: #cbd5e1;
  font-size: 1.18rem;
}

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

.section {
  padding: var(--space-section) 0;
  scroll-margin-top: 5rem;
}

.section-heading {
  max-width: 800px;
  margin-bottom: 1.5rem;
}

.section-heading h2 {
  margin-bottom: 0.55rem;
}

.section-heading p:not(.eyebrow) {
  color: var(--muted);
  font-size: 1.05rem;
}

.button-row {
  display: flex;
  gap: 0.8rem;
  flex-wrap: wrap;
  margin-top: 1.6rem;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 0.78rem 1.05rem;
  border: 1px solid var(--border);
  border-radius: 999px;
  background: rgba(15, 23, 42, 0.72);
  color: var(--text);
  font-weight: 800;
}

.button.primary {
  border-color: var(--accent);
  background: var(--accent);
  color: #020617;
}

.button.disabled {
  color: var(--muted);
  cursor: not-allowed;
}

.grid {
  display: grid;
  gap: var(--space-gap);
}

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

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

.grid.four {
  grid-template-columns: repeat(4, 1fr);
}

.grid.auto {
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
}

.card,
.case-card,
.project-card,
.diagram-card,
.cta,
.contact-panel,
.timeline-item,
.artifact,
.toolbox article,
.study-section {
  border: 1px solid var(--surface-border);
  border-radius: var(--radius);
  background: var(--surface);
  box-shadow: var(--shadow);
}

.card,
.case-card,
.project-card,
.diagram-card,
.cta,
.study-section {
  padding: var(--space-card);
}

.card,
.project-card,
.case-card,
.diagram-card,
.toolbox article,
.study-section {
  display: flex;
  min-height: 100%;
  flex-direction: column;
}

.card h2,
.diagram-card h2,
.study-section h2 {
  margin-bottom: 0.85rem;
  font-size: clamp(1.35rem, 2.5vw, 1.75rem);
}

.cta h2 {
  margin-bottom: 0.75rem;
  font-size: clamp(1.8rem, 3vw, 2.4rem);
}

.card p,
.case-card p,
.study-section p,
.muted {
  color: var(--muted);
}

.compact p {
  margin-bottom: 0;
}

.highlight {
  border-color: rgba(52, 211, 153, 0.34);
  background:
    linear-gradient(135deg, rgba(52, 211, 153, 0.09), rgba(96, 165, 250, 0.06)),
    var(--card);
}

.icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2.5rem;
  height: 2.5rem;
  margin-bottom: 1rem;
  border: 1px solid rgba(96, 165, 250, 0.28);
  border-radius: var(--radius);
  background: rgba(96, 165, 250, 0.12);
  color: #bfdbfe;
  font-size: 0.78rem;
  font-weight: 900;
}

.case-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: var(--space-gap);
}

.project-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--space-gap);
}

.preview-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--space-gap);
}

.project-card p {
  color: var(--muted);
}

.project-card-top {
  display: flex;
  gap: 0.5rem;
  flex-wrap: wrap;
  justify-content: flex-start;
  align-items: flex-start;
  margin-bottom: 0.9rem;
}

.project-card-top .icon {
  flex: 0 0 auto;
  margin-bottom: 0;
}

.status-badge,
.category-badge {
  display: inline-flex;
  align-items: center;
  min-height: 1.75rem;
  padding: 0.25rem 0.6rem;
  border-radius: var(--radius);
  font-size: 0.78rem;
  font-weight: 800;
}

.status-badge {
  border: 1px solid rgba(52, 211, 153, 0.3);
  background: rgba(52, 211, 153, 0.12);
  color: #a7f3d0;
}

.status-operational,
.status-online {
  border-color: rgba(52, 211, 153, 0.3);
  background: rgba(52, 211, 153, 0.12);
  color: #a7f3d0;
}

.status-degraded,
.status-maintenance,
.status-in_setup,
.status-deployment_in_progress,
.status-planned {
  border-color: rgba(251, 191, 36, 0.36);
  background: rgba(251, 191, 36, 0.12);
  color: #fde68a;
}

.status-partial_outage,
.status-offline {
  border-color: rgba(251, 146, 60, 0.36);
  background: rgba(251, 146, 60, 0.12);
  color: #fed7aa;
}

.status-major_outage,
.status-unknown {
  border-color: rgba(248, 113, 113, 0.36);
  background: rgba(248, 113, 113, 0.12);
  color: #fecaca;
}

.status-badge.complete {
  border-color: rgba(96, 165, 250, 0.32);
  background: rgba(96, 165, 250, 0.12);
  color: #bfdbfe;
}

.category-badge {
  border: 1px solid rgba(148, 163, 184, 0.22);
  background: rgba(15, 23, 42, 0.65);
  color: #cbd5e1;
}

.project-shot {
  display: flex;
  min-height: 8.5rem;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.25rem;
  margin-bottom: 1rem;
  border: 1px dashed rgba(96, 165, 250, 0.34);
  border-radius: var(--radius);
  background:
    linear-gradient(135deg, rgba(96, 165, 250, 0.08), rgba(52, 211, 153, 0.05)),
    rgba(15, 23, 42, 0.55);
  color: #dbeafe;
  text-align: center;
  font-weight: 800;
}

.project-shot small {
  color: var(--muted);
  font-weight: 700;
}

.project-card .text-link {
  margin-top: 0;
  padding-top: 1rem;
}

.case-card .text-link {
  margin-top: auto;
  padding-top: 1rem;
}

.text-link {
  font-weight: 800;
}

.split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-gap);
  align-items: stretch;
}

.flow {
  display: grid;
  gap: 0.65rem;
}

.flow span {
  position: relative;
  padding: 0.75rem 0.9rem;
  border: 1px solid rgba(96, 165, 250, 0.25);
  border-radius: var(--radius);
  background: rgba(96, 165, 250, 0.1);
  color: #dbeafe;
  font-weight: 800;
}

.sanitize-note,
.small-note {
  margin-top: 1rem;
  color: #fbbf24;
  font-size: 0.92rem;
}

.artifact-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: var(--space-gap);
}

.artifact {
  min-height: 9rem;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1rem;
  border-style: dashed;
  color: #cbd5e1;
  text-align: center;
  font-weight: 800;
}

.toolbox {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: var(--space-gap);
}

.toolbox article {
  padding: var(--space-card);
}

.toolbox p {
  color: var(--muted);
  font-size: 0.95rem;
}

.roadmap-columns {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--space-gap);
}

.map-diagram {
  display: grid;
  gap: 0.75rem;
}

.map-node,
.map-branch {
  padding: 0.8rem 0.95rem;
  border: 1px solid rgba(96, 165, 250, 0.25);
  border-radius: var(--radius);
  background: rgba(96, 165, 250, 0.1);
  color: #dbeafe;
  font-weight: 800;
}

.map-branch {
  margin-left: 1rem;
  border-color: rgba(148, 163, 184, 0.22);
  background: var(--surface-soft);
  color: #cbd5e1;
}

.arrow {
  color: var(--accent-strong);
  font-weight: 900;
  text-align: center;
}

.matrix {
  width: 100%;
  border-collapse: collapse;
  overflow: hidden;
  border: 1px solid var(--surface-border);
  border-radius: var(--radius);
  background: var(--surface);
  box-shadow: var(--shadow);
}

.matrix th,
.matrix td {
  padding: 0.9rem;
  border-bottom: 1px solid rgba(148, 163, 184, 0.16);
  color: var(--muted);
  text-align: left;
  vertical-align: top;
}

.matrix th {
  color: var(--heading);
  background: rgba(96, 165, 250, 0.1);
}

.matrix tr:last-child td {
  border-bottom: 0;
}

.contact-paths {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: var(--space-gap);
}

.card-actions {
  margin-top: auto;
  padding-top: 1rem;
}

.status-list {
  display: grid;
  gap: 0.8rem;
}

.status-row {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 0.8rem;
  align-items: start;
  padding: 0.85rem;
  border: 1px solid rgba(148, 163, 184, 0.16);
  border-radius: var(--radius);
  background: var(--surface-soft);
}

.status-row p {
  margin: 0.25rem 0 0;
}

.stat-value {
  color: var(--heading);
  font-size: clamp(1.7rem, 4vw, 2.5rem);
  font-weight: 900;
}

.timeline {
  display: grid;
  gap: var(--space-gap);
}

.timeline-item {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 0.3rem 1rem;
  padding: var(--space-card);
}

.timeline-item h3,
.timeline-item p {
  margin-bottom: 0.2rem;
}

.timeline-item span {
  color: var(--accent-strong);
  font-weight: 800;
  white-space: nowrap;
}

.timeline-item > p {
  grid-column: 1 / -1;
}

.cta {
  max-width: none;
  border-color: rgba(96, 165, 250, 0.3);
}

.cta p {
  color: #cbd5e1;
  font-size: 1.08rem;
}

.contact-panel {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--space-gap);
  padding: var(--space-card);
}

.contact-panel > div {
  padding: 0.9rem;
  border: 1px solid rgba(148, 163, 184, 0.16);
  border-radius: var(--radius);
  background: var(--surface-soft);
}

.contact-panel small {
  display: block;
  color: var(--muted);
}

.contact-panel a,
.contact-panel span {
  color: var(--text);
  font-weight: 800;
}

.footer {
  display: flex;
  justify-content: space-between;
  gap: var(--space-gap);
  padding: 2rem 0;
  margin-top: 2rem;
  border-top: 1px solid rgba(148, 163, 184, 0.2);
  color: var(--muted);
}

.footer span {
  overflow-wrap: anywhere;
}

.page-hero {
  padding: 5rem 0 2.5rem;
}

.page-hero h1 {
  max-width: 900px;
  font-size: clamp(2.4rem, 6vw, 4.5rem);
}

.page-hero p {
  max-width: 820px;
  color: #cbd5e1;
  font-size: 1.12rem;
}

.study-layout {
  display: grid;
  grid-template-columns: 0.7fr 1.3fr;
  gap: var(--space-gap);
  align-items: start;
}

.study-nav {
  position: sticky;
  top: 5.8rem;
}

.study-nav h2 {
  margin: 0 0 0.65rem;
  font-size: 1.12rem;
}

.study-nav a {
  display: block;
  padding: 0.45rem 0;
  color: #cbd5e1;
  font-weight: 700;
}

.study-stack {
  display: grid;
  gap: var(--space-gap);
}

.tool-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-top: 1rem;
}

.card > .tool-tags,
.project-card > .tool-tags {
  margin-top: auto;
  padding-top: 1rem;
}

.tag {
  display: inline-flex;
  padding: 0.3rem 0.65rem;
  border: 1px solid rgba(96, 165, 250, 0.25);
  border-radius: var(--radius);
  background: rgba(96, 165, 250, 0.12);
  color: #bfdbfe;
  font-size: 0.86rem;
  font-weight: 700;
}

.pill-list {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
  padding-left: 0;
  list-style: none;
}

.pill-list li {
  margin-top: 0;
  padding: 0.28rem 0.6rem;
  border: 1px solid rgba(148, 163, 184, 0.22);
  border-radius: var(--radius);
  background: rgba(15, 23, 42, 0.65);
  color: #cbd5e1;
  font-size: 0.88rem;
  line-height: 1.35;
}

.section-closing {
  max-width: 850px;
  margin: 1.2rem 0 0;
  color: #cbd5e1;
  font-weight: 700;
}

.placeholder {
  min-height: 12rem;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1rem;
  border: 1px dashed rgba(251, 191, 36, 0.65);
  border-radius: var(--radius);
  background: rgba(251, 191, 36, 0.06);
  color: #fde68a;
  text-align: center;
  font-weight: 800;
}

.artifact-list {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: var(--space-gap);
}

.artifact-list .placeholder {
  min-height: 10rem;
}

@media (max-width: 1050px) {
  .grid.four,
  .project-grid,
  .preview-grid,
  .artifact-grid,
  .artifact-list,
  .toolbox,
  .roadmap-columns,
  .contact-paths {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 850px) {
  .nav {
    align-items: flex-start;
    flex-direction: column;
  }

  .grid.two,
  .grid.three,
  .project-grid,
  .preview-grid,
  .case-grid,
  .split,
  .contact-panel,
  .study-layout,
  .roadmap-columns,
  .contact-paths {
    grid-template-columns: 1fr;
  }

  .matrix {
    display: block;
    overflow-x: auto;
  }

  .study-nav {
    position: static;
  }

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

  .status-row {
    grid-template-columns: 1fr;
  }

  .timeline-item span {
    white-space: normal;
  }
}

@media (max-width: 560px) {
  .hero {
    padding-top: 4rem;
  }

  .grid.four,
  .preview-grid,
  .artifact-grid,
  .artifact-list,
  .toolbox {
    grid-template-columns: 1fr;
  }

  .footer {
    flex-direction: column;
  }
}
