:root {
  --ink: #141827;
  --ink-soft: #414b62;
  --muted: #747f95;
  --paper: #f7f8fd;
  --paper-2: #eef2fb;
  --line: rgba(20, 24, 39, 0.13);
  --green: #2f65f5;
  --green-2: #76a7ff;
  --mint: #e8efff;
  --coral: #df5848;
  --amber: #c77716;
  --blue: #2f65f5;
  --white: #ffffff;
  --shadow: 0 28px 80px rgba(20, 24, 39, 0.14);
  --shadow-soft: 0 14px 40px rgba(20, 24, 39, 0.1);
  --radius-lg: 30px;
  --radius-md: 20px;
  --radius-sm: 14px;
  --max: 1160px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100vh;
  color: var(--ink);
  background:
    linear-gradient(130deg, rgba(239, 244, 255, 0.92) 0%, rgba(252, 250, 246, 0.98) 48%, rgba(232, 240, 255, 0.92) 100%),
    linear-gradient(25deg, rgba(199, 119, 22, 0.13), transparent 38%),
    radial-gradient(circle at top left, rgba(47, 101, 245, 0.14), transparent 34%);
  font-family: "Space Grotesk", "Avenir Next", "Segoe UI", sans-serif;
  line-height: 1.6;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  background-image:
    linear-gradient(rgba(20, 24, 39, 0.045) 1px, transparent 1px),
    linear-gradient(90deg, rgba(20, 24, 39, 0.045) 1px, transparent 1px);
  background-size: 44px 44px;
  mask-image: linear-gradient(to bottom, rgba(0, 0, 0, 0.7), transparent 72%);
}

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

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

p,
h1,
h2,
h3,
h4 {
  margin-top: 0;
}

.site-shell {
  width: min(100% - 32px, var(--max));
  margin: 0 auto;
}

.site-nav {
  position: sticky;
  top: 0;
  z-index: 20;
  backdrop-filter: blur(18px);
  background: rgba(247, 248, 253, 0.8);
  border-bottom: 1px solid rgba(20, 24, 39, 0.1);
}

.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 22px;
  min-height: 76px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  font-weight: 800;
  letter-spacing: -0.04em;
}

.brand-mark {
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  color: var(--paper);
  background: linear-gradient(135deg, var(--ink), #244cc9 72%, #b65f17);
  border-radius: 13px;
  box-shadow: inset 0 -8px 0 rgba(255, 255, 255, 0.08);
}

.brand-text {
  display: grid;
  line-height: 1.05;
}

.brand-text small {
  color: var(--muted);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 6px;
  background: rgba(255, 255, 255, 0.6);
  border: 1px solid rgba(20, 24, 39, 0.1);
  border-radius: 999px;
}

.nav-links a {
  padding: 9px 14px;
  color: var(--ink-soft);
  border-radius: 999px;
  font-size: 0.94rem;
  font-weight: 700;
}

.nav-links a:hover,
.nav-links a[aria-current="page"] {
  color: var(--ink);
  background: var(--mint);
}

.nav-cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 42px;
  padding: 0 18px;
  color: var(--paper);
  background: var(--ink);
  border-radius: 999px;
  font-weight: 800;
  box-shadow: var(--shadow-soft);
}

.hero {
  padding: 88px 0 58px;
}

.hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.14fr) minmax(320px, 0.86fr);
  gap: 34px;
  align-items: stretch;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  margin-bottom: 18px;
  padding: 8px 12px;
  color: var(--green);
  background: rgba(232, 239, 255, 0.86);
  border: 1px solid rgba(47, 101, 245, 0.18);
  border-radius: 999px;
  font-family: "IBM Plex Mono", monospace;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.pulse-dot {
  width: 9px;
  height: 9px;
  background: var(--green-2);
  border-radius: 50%;
  box-shadow: 0 0 0 8px rgba(47, 101, 245, 0.13);
}

h1 {
  max-width: 820px;
  margin-bottom: 22px;
  font-size: clamp(3.2rem, 9vw, 7.1rem);
  line-height: 0.92;
  letter-spacing: -0.085em;
}

.hero-copy {
  max-width: 690px;
  margin-bottom: 30px;
  color: var(--ink-soft);
  font-size: clamp(1.06rem, 2vw, 1.32rem);
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-bottom: 36px;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 50px;
  padding: 0 20px;
  border: 1px solid transparent;
  border-radius: 999px;
  font-weight: 800;
  transition: transform 160ms ease, box-shadow 160ms ease, background 160ms ease;
}

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

.button.primary {
  color: var(--paper);
  background: var(--ink);
  box-shadow: var(--shadow-soft);
}

.button.secondary {
  color: var(--ink);
  background: rgba(255, 255, 255, 0.72);
  border-color: rgba(20, 24, 39, 0.13);
}

.button.ghost {
  color: var(--green);
  background: rgba(47, 101, 245, 0.08);
  border-color: rgba(47, 101, 245, 0.18);
}

.hero-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.hero-badges span,
.tag {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 11px;
  color: var(--ink-soft);
  background: rgba(255, 255, 255, 0.6);
  border: 1px solid rgba(20, 24, 39, 0.1);
  border-radius: 999px;
  font-family: "IBM Plex Mono", monospace;
  font-size: 0.78rem;
  font-weight: 700;
}

.hero-panel {
  position: relative;
  display: grid;
  align-content: space-between;
  min-height: 520px;
  padding: 24px;
  overflow: hidden;
  color: var(--paper);
  background:
    linear-gradient(145deg, rgba(20, 24, 39, 0.98), rgba(28, 59, 145, 0.96)),
    repeating-linear-gradient(135deg, rgba(255, 255, 255, 0.06) 0 1px, transparent 1px 14px);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow);
}

.hero-panel::after {
  content: "";
  position: absolute;
  inset: auto -18% -26% 18%;
  height: 180px;
  background: linear-gradient(90deg, rgba(118, 167, 255, 0.62), rgba(199, 119, 22, 0.48), rgba(223, 88, 72, 0.52));
  transform: rotate(-5deg);
  filter: blur(0.2px);
}

.panel-top {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.panel-status {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 11px;
  color: #dfe8ff;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 999px;
  font-family: "IBM Plex Mono", monospace;
  font-size: 0.76rem;
  font-weight: 800;
}

.panel-code {
  position: relative;
  z-index: 1;
  margin: 46px 0;
  padding: 18px;
  background: rgba(0, 0, 0, 0.2);
  border: 1px solid rgba(255, 255, 255, 0.09);
  border-radius: 18px;
  font-family: "IBM Plex Mono", monospace;
  font-size: 0.86rem;
}

.panel-code span {
  color: #f2aa57;
}

.panel-bottom {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
}

.panel-metric {
  min-height: 104px;
  padding: 14px;
  background: rgba(255, 255, 255, 0.09);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 18px;
}

.panel-metric strong {
  display: block;
  margin-bottom: 6px;
  font-size: 1.3rem;
  letter-spacing: -0.04em;
}

.panel-metric span {
  color: rgba(247, 251, 246, 0.68);
  font-size: 0.82rem;
}

.section {
  padding: 48px 0;
}

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

.section-kicker {
  margin-bottom: 9px;
  color: var(--green);
  font-family: "IBM Plex Mono", monospace;
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

h2 {
  margin-bottom: 0;
  font-size: clamp(2.1rem, 5vw, 4.5rem);
  line-height: 0.98;
  letter-spacing: -0.075em;
}

h3 {
  margin-bottom: 10px;
  font-size: 1.38rem;
  line-height: 1.1;
  letter-spacing: -0.04em;
}

.section-copy {
  max-width: 570px;
  margin-bottom: 0;
  color: var(--muted);
}

.grid {
  display: grid;
  gap: 18px;
}

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

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

.project-card,
.system-card,
.status-panel,
.legal-card,
.plain-card {
  background: rgba(255, 255, 255, 0.76);
  border: 1px solid rgba(20, 24, 39, 0.11);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-soft);
}

.project-card {
  display: grid;
  min-height: 390px;
  padding: 22px;
  overflow: hidden;
}

.project-card.featured {
  grid-column: span 2;
  color: var(--paper);
  background:
    linear-gradient(135deg, rgba(20, 24, 39, 0.98), rgba(36, 76, 201, 0.92)),
    repeating-linear-gradient(90deg, rgba(255, 255, 255, 0.06) 0 1px, transparent 1px 22px);
}

.project-card.featured .tag {
  color: rgba(247, 251, 246, 0.84);
  background: rgba(255, 255, 255, 0.1);
  border-color: rgba(255, 255, 255, 0.14);
}

.project-card.featured p,
.project-card.featured .meta-row {
  color: rgba(247, 251, 246, 0.76);
}

.project-top {
  display: flex;
  justify-content: space-between;
  gap: 14px;
  margin-bottom: 42px;
}

.project-title {
  align-self: end;
}

.project-title h3 {
  max-width: 620px;
  font-size: clamp(1.8rem, 5vw, 4rem);
  letter-spacing: -0.08em;
}

.project-card:not(.featured) .project-title h3 {
  font-size: clamp(1.5rem, 3vw, 2.2rem);
}

.meta-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 20px;
  color: var(--muted);
  font-family: "IBM Plex Mono", monospace;
  font-size: 0.8rem;
  font-weight: 700;
}

.system-card,
.plain-card {
  padding: 22px;
}

.system-card strong {
  display: block;
  margin-bottom: 70px;
  color: var(--green);
  font-family: "IBM Plex Mono", monospace;
  font-size: 0.85rem;
}

.system-card p,
.plain-card p {
  color: var(--muted);
}

.split-band {
  display: grid;
  grid-template-columns: minmax(0, 0.86fr) minmax(0, 1.14fr);
  gap: 18px;
  align-items: stretch;
}

.statement {
  min-height: 430px;
  padding: 28px;
  color: var(--paper);
  background:
    linear-gradient(145deg, rgba(20, 24, 39, 0.98), rgba(47, 101, 245, 0.84)),
    repeating-linear-gradient(135deg, rgba(255, 255, 255, 0.08) 0 1px, transparent 1px 18px);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow);
}

.statement h2 {
  margin-bottom: 22px;
}

.statement p {
  max-width: 570px;
  color: rgba(247, 251, 246, 0.76);
}

.runway {
  display: grid;
  gap: 18px;
}

.runway-item {
  padding: 20px;
  background: rgba(255, 255, 255, 0.76);
  border: 1px solid rgba(20, 24, 39, 0.11);
  border-radius: var(--radius-md);
}

.runway-item span {
  display: block;
  margin-bottom: 8px;
  color: var(--coral);
  font-family: "IBM Plex Mono", monospace;
  font-size: 0.77rem;
  font-weight: 800;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.status-panel {
  padding: 22px;
}

.status-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  margin-bottom: 18px;
}

.overall-pill {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  padding: 10px 13px;
  background: var(--paper-2);
  border: 1px solid rgba(20, 24, 39, 0.1);
  border-radius: 999px;
  font-family: "IBM Plex Mono", monospace;
  font-size: 0.78rem;
  font-weight: 800;
}

.overall-pill.ok {
  color: var(--green);
}

.overall-pill.warn {
  color: var(--amber);
}

.overall-pill.down {
  color: var(--coral);
}

.status-metrics {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
  margin-bottom: 18px;
}

.metric {
  padding: 14px;
  background: var(--paper);
  border: 1px solid rgba(20, 24, 39, 0.09);
  border-radius: 16px;
}

.metric span {
  display: block;
  color: var(--muted);
  font-family: "IBM Plex Mono", monospace;
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.metric strong {
  display: block;
  margin-top: 5px;
  font-size: 1.34rem;
  line-height: 1;
  letter-spacing: -0.04em;
}

.services-grid {
  display: grid;
  gap: 12px;
}

.service-card {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  gap: 14px;
  align-items: center;
  padding: 16px;
  background: rgba(255, 255, 255, 0.76);
  border: 1px solid rgba(20, 24, 39, 0.1);
  border-radius: 18px;
}

.service-dot {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: var(--green-2);
  box-shadow: 0 0 0 7px rgba(47, 101, 245, 0.13);
}

.service-card.warn .service-dot {
  background: var(--amber);
  box-shadow: 0 0 0 7px rgba(240, 167, 59, 0.16);
}

.service-card.down .service-dot {
  background: var(--coral);
  box-shadow: 0 0 0 7px rgba(240, 93, 79, 0.16);
}

.service-card h3 {
  margin-bottom: 2px;
  font-size: 1rem;
}

.service-card p {
  margin-bottom: 0;
  color: var(--muted);
  font-size: 0.92rem;
}

.service-badge {
  padding: 7px 10px;
  color: var(--green);
  background: rgba(47, 101, 245, 0.1);
  border-radius: 999px;
  font-family: "IBM Plex Mono", monospace;
  font-size: 0.72rem;
  font-weight: 800;
}

.service-history {
  grid-column: 1 / -1;
  display: grid;
  gap: 8px;
  padding-top: 12px;
  border-top: 1px solid rgba(20, 24, 39, 0.08);
}

.service-history.empty {
  color: var(--muted);
}

.history-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  color: var(--muted);
  font-family: "IBM Plex Mono", monospace;
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.03em;
  text-transform: uppercase;
}

.history-meta strong {
  color: var(--ink);
  font-size: 0.78rem;
  letter-spacing: 0;
  text-transform: none;
}

.history-strip {
  display: grid;
  grid-template-columns: repeat(60, minmax(2px, 1fr));
  gap: 3px;
  min-height: 28px;
}

.history-segment {
  min-width: 2px;
  height: 28px;
  background: rgba(116, 127, 149, 0.28);
  border-radius: 999px;
}

.history-segment.ok {
  background: linear-gradient(180deg, #86b4ff, #2f65f5);
}

.history-segment.warn {
  background: linear-gradient(180deg, #f5c16c, #c77716);
}

.history-segment.down {
  background: linear-gradient(180deg, #ff9a89, #df5848);
}

.service-card.warn .service-badge {
  color: var(--amber);
  background: rgba(240, 167, 59, 0.12);
}

.service-card.down .service-badge {
  color: var(--coral);
  background: rgba(240, 93, 79, 0.12);
}

.page-hero {
  padding: 76px 0 34px;
}

.page-hero h1 {
  max-width: 940px;
  font-size: clamp(3rem, 8vw, 6.3rem);
}

.page-copy {
  max-width: 760px;
  color: var(--ink-soft);
  font-size: 1.18rem;
}

.legal-document {
  max-width: 860px;
  margin: 52px auto 86px;
  padding: 34px;
  background: rgba(255, 255, 255, 0.78);
  border: 1px solid rgba(20, 24, 39, 0.11);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-soft);
}

.legal-document h1 {
  font-size: clamp(2.5rem, 7vw, 4.8rem);
}

.legal-document h2 {
  margin-top: 34px;
  margin-bottom: 12px;
  font-size: 1.55rem;
  letter-spacing: -0.035em;
}

.subtitle {
  color: var(--muted);
  font-family: "IBM Plex Mono", monospace;
  font-size: 0.9rem;
  font-weight: 700;
}

.legal-document p,
.legal-document li {
  color: var(--ink-soft);
}

.legal-document a {
  color: var(--green);
  font-weight: 800;
}

.legal-card {
  padding: 22px;
}

.footer {
  padding: 48px 0 64px;
  color: var(--muted);
}

.footer-inner {
  display: flex;
  justify-content: space-between;
  gap: 24px;
  padding-top: 24px;
  border-top: 1px solid rgba(20, 24, 39, 0.12);
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  font-weight: 700;
}

.footer-links a:hover {
  color: var(--ink);
}

.fade-in {
  animation: rise 560ms ease both;
}

.stagger-1 {
  animation-delay: 80ms;
}

.stagger-2 {
  animation-delay: 160ms;
}

@keyframes rise {
  from {
    opacity: 0;
    transform: translateY(16px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@media (max-width: 920px) {
  .nav-inner {
    flex-wrap: wrap;
    padding: 14px 0;
  }

  .nav-links {
    order: 3;
    width: 100%;
    overflow-x: auto;
    justify-content: flex-start;
  }

  .hero-grid,
  .split-band,
  .grid.two,
  .grid.three {
    grid-template-columns: 1fr;
  }

  .project-card.featured {
    grid-column: span 1;
  }

  .hero {
    padding-top: 56px;
  }

  .hero-panel,
  .statement {
    min-height: auto;
  }
}

@media (max-width: 640px) {
  .site-shell {
    width: min(100% - 22px, var(--max));
  }

  .nav-cta {
    display: none;
  }

  .hero {
    padding-bottom: 34px;
  }

  .hero-panel,
  .statement,
  .legal-document {
    padding: 20px;
    border-radius: 24px;
  }

  .panel-bottom,
  .status-metrics {
    grid-template-columns: 1fr;
  }

  .section-header,
  .status-head,
  .footer-inner {
    display: grid;
  }

  .service-card {
    grid-template-columns: auto minmax(0, 1fr);
  }

  .service-badge {
    grid-column: 2;
    width: fit-content;
  }
}
