* {
  box-sizing: border-box;
}

:root {
  --bg: #0A1020;
  --surface1: #111827;
  --surface2: #162033;
  --blue: #3B82F6;
  --teal: #14B8A6;
  --violet: #8B5CF6;
  --amber: #F59E0B;
  --text: #E5E7EB;
  --muted: #94A3B8;
  --grid: rgba(148, 163, 184, 0.16);
  --line: rgba(148, 163, 184, 0.18);
  --panel: rgba(17, 24, 39, 0.86);
  --panel-strong: rgba(10, 16, 32, 0.92);
  --radius-xl: 34px;
  --radius-lg: 24px;
  --radius-md: 18px;
  --content-width: min(1200px, calc(100vw - 2rem));
  --shadow: 0 32px 96px rgba(3, 7, 18, 0.44);
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-width: 320px;
  background:
    radial-gradient(circle at top left, rgba(59, 130, 246, 0.16), transparent 34%),
    radial-gradient(circle at top right, rgba(139, 92, 246, 0.14), transparent 28%),
    radial-gradient(circle at bottom right, rgba(20, 184, 166, 0.12), transparent 24%),
    linear-gradient(180deg, #0D1428 0%, #0A1020 46%, #09111E 100%);
  color: var(--text);
  font-family: "IBM Plex Sans", "Segoe UI", sans-serif;
  line-height: 1.6;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  background-image:
    linear-gradient(var(--grid) 1px, transparent 1px),
    linear-gradient(90deg, var(--grid) 1px, transparent 1px);
  background-size: 88px 88px;
  mask-image: radial-gradient(circle at center, black 38%, transparent 88%);
  pointer-events: none;
}

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

svg {
  display: block;
}

.site-shell {
  position: relative;
  overflow: hidden;
}

.site-shell::before,
.site-shell::after {
  content: "";
  position: absolute;
  border-radius: 999px;
  filter: blur(24px);
  opacity: 0.5;
  pointer-events: none;
}

.site-shell::before {
  width: 26rem;
  height: 26rem;
  top: 8rem;
  right: -10rem;
  background: radial-gradient(circle, rgba(59, 130, 246, 0.24), transparent 72%);
}

.site-shell::after {
  width: 20rem;
  height: 20rem;
  bottom: 12rem;
  left: -6rem;
  background: radial-gradient(circle, rgba(20, 184, 166, 0.20), transparent 74%);
}

.site-header,
.section,
.site-footer {
  width: var(--content-width);
  margin: 0 auto;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 30;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 1.2rem 0;
  background: linear-gradient(180deg, rgba(10, 16, 32, 0.94), rgba(10, 16, 32, 0.62));
  backdrop-filter: blur(16px);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
  font-family: "Space Grotesk", "Segoe UI", sans-serif;
  font-size: 1.1rem;
  font-weight: 700;
  letter-spacing: 0.04em;
}

.brand-mark {
  display: inline-grid;
  place-items: center;
  width: 2.35rem;
  height: 2.35rem;
  border: 1px solid rgba(59, 130, 246, 0.42);
  border-radius: 1rem;
  background:
    linear-gradient(135deg, rgba(59, 130, 246, 0.24), rgba(20, 184, 166, 0.14)),
    rgba(17, 24, 39, 0.96);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.1);
}

.site-nav {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 1.15rem;
  color: var(--muted);
}

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

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

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

.button-primary {
  background: linear-gradient(135deg, var(--blue), #2563EB);
  color: #F8FAFC;
  box-shadow: 0 18px 36px rgba(59, 130, 246, 0.28);
}

.button-secondary {
  background: rgba(17, 24, 39, 0.54);
  border-color: rgba(148, 163, 184, 0.22);
  color: var(--text);
}

.button-secondary:hover,
.button-secondary:focus-visible {
  border-color: rgba(148, 163, 184, 0.4);
}

.button-compact {
  padding: 0.74rem 1rem;
}

.section {
  padding: 4.5rem 0;
}

.hero {
  display: grid;
  grid-template-columns: minmax(0, 1.02fr) minmax(340px, 0.98fr);
  gap: 2rem;
  align-items: center;
  padding-top: 3.4rem;
}

.hero-copy,
.topology-panel,
.workflow-card,
.architecture-card,
.integration-card,
.cta-panel {
  animation: rise-in 820ms ease both;
}

.topology-panel {
  animation-delay: 120ms;
}

.eyebrow {
  margin: 0 0 0.8rem;
  color: var(--muted);
  font-family: "IBM Plex Mono", "Consolas", monospace;
  font-size: 0.82rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}

.eyebrow.compact {
  margin-bottom: 0.5rem;
}

.hero h1,
.section-heading h2,
.cta-panel h2,
.not-found h1 {
  margin: 0;
  font-family: "Space Grotesk", "Segoe UI", sans-serif;
  font-weight: 700;
  letter-spacing: -0.03em;
  line-height: 1.04;
}

.hero h1 {
  max-width: 12ch;
  font-size: clamp(3.2rem, 6vw, 5.8rem);
}

.lead,
.section-heading p,
.signal-detail,
.architecture-card p,
.integration-card p,
.cta-panel p,
.site-footer,
.not-found p {
  color: var(--muted);
}

.lead {
  max-width: 64ch;
  font-size: 1.1rem;
  line-height: 1.8;
}

.hero-actions,
.cta-actions,
.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 0.9rem;
}

.hero-signals {
  display: grid;
  gap: 0.85rem;
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.signal-card,
.workflow-card,
.architecture-card,
.integration-card,
.cta-panel,
.not-found,
.topology-panel {
  border: 1px solid var(--line);
  background: linear-gradient(180deg, rgba(17, 24, 39, 0.92), rgba(22, 32, 51, 0.9));
  box-shadow: var(--shadow);
  backdrop-filter: blur(16px);
}

.signal-card {
  padding: 1.05rem 1.1rem;
  border-radius: var(--radius-md);
}

.signal-label {
  margin: 0;
  font-size: 0.74rem;
  font-weight: 700;
  letter-spacing: 0.2em;
  text-transform: uppercase;
}

.signal-detail {
  margin: 0.65rem 0 0;
  font-size: 0.95rem;
}

.signal-blue .signal-label {
  color: #93C5FD;
}

.signal-teal .signal-label {
  color: #5EEAD4;
}

.signal-amber .signal-label {
  color: #FCD34D;
}

.signal-violet .signal-label {
  color: #C4B5FD;
}

.topology-panel {
  position: relative;
  overflow: hidden;
  padding: 1.1rem;
  border-radius: var(--radius-xl);
}

.topology-panel::after {
  content: "";
  position: absolute;
  inset: 1rem;
  border-radius: calc(var(--radius-xl) - 0.55rem);
  border: 1px solid rgba(255, 255, 255, 0.04);
  pointer-events: none;
}

.topology {
  width: 100%;
  height: auto;
}

.topology-grid line {
  stroke: rgba(148, 163, 184, 0.08);
  stroke-width: 1;
}

.panel-strong {
  fill: rgba(10, 16, 32, 0.82);
  stroke: rgba(148, 163, 184, 0.2);
}

.pill-line {
  stroke: rgba(59, 130, 246, 0.4);
}

.blue-fill {
  fill: rgba(59, 130, 246, 0.1);
}

.lane-pill,
.state-pill,
.tile,
.checkpoint-label {
  fill: rgba(17, 24, 39, 0.92);
  stroke: rgba(148, 163, 184, 0.18);
}

.state-pill {
  fill: rgba(10, 16, 32, 0.86);
}

.lane-connector,
.cluster-link {
  stroke: rgba(148, 163, 184, 0.24);
  stroke-width: 2;
}

.topology-title,
.tile-title,
.lane-copy {
  fill: var(--text);
  font-family: "IBM Plex Sans", sans-serif;
}

.topology-title {
  font-family: "Space Grotesk", sans-serif;
  font-size: 34px;
  font-weight: 700;
}

.topology-subtitle,
.tile-copy,
.small-copy,
.checkpoint-copy {
  fill: var(--muted);
  font-family: "IBM Plex Sans", sans-serif;
}

.lane-copy {
  font-size: 13px;
}

.tile-title {
  font-size: 16px;
  font-weight: 600;
}

.tile-copy,
.small-copy,
.checkpoint-copy,
.topology-subtitle {
  font-size: 12px;
}

.center {
  text-anchor: middle;
}

.checkpoint {
  fill: rgba(10, 16, 32, 0.98);
  stroke-width: 2;
}

.outline-blue {
  stroke: var(--blue);
}

.outline-amber {
  stroke: var(--amber);
}

.outline-violet {
  stroke: var(--violet);
}

.blue-node {
  stroke: var(--blue);
  fill: rgba(59, 130, 246, 0.2);
}

.teal-node {
  stroke: var(--teal);
  fill: rgba(20, 184, 166, 0.2);
}

.violet-node {
  stroke: var(--violet);
  fill: rgba(139, 92, 246, 0.2);
}

.amber-node {
  stroke: var(--amber);
  fill: rgba(245, 158, 11, 0.2);
}

.cluster-node {
  stroke-width: 2;
}

.section-heading {
  max-width: 58rem;
  margin-bottom: 1.9rem;
}

.section-heading h2,
.cta-panel h2 {
  font-size: clamp(2.2rem, 4vw, 3.4rem);
}

.workflow-strip {
  position: relative;
  display: grid;
  gap: 1rem;
  grid-template-columns: repeat(5, minmax(0, 1fr));
}

.workflow-strip::before {
  content: "";
  position: absolute;
  left: 3.5rem;
  right: 3.5rem;
  top: 2rem;
  height: 1px;
  background: linear-gradient(90deg, rgba(59, 130, 246, 0.1), rgba(148, 163, 184, 0.32), rgba(20, 184, 166, 0.1));
}

.workflow-card {
  position: relative;
  padding: 1.15rem;
  border-radius: var(--radius-lg);
}

.workflow-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 0.8rem;
}

.workflow-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 3.4rem;
  height: 3.4rem;
  border: 1px solid var(--line);
  border-radius: 1rem;
}

.workflow-icon svg {
  width: 1.5rem;
  height: 1.5rem;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.workflow-blue {
  background: rgba(59, 130, 246, 0.12);
  color: #93C5FD;
}

.workflow-teal {
  background: rgba(20, 184, 166, 0.12);
  color: #5EEAD4;
}

.workflow-violet {
  background: rgba(139, 92, 246, 0.12);
  color: #C4B5FD;
}

.workflow-amber {
  background: rgba(245, 158, 11, 0.12);
  color: #FCD34D;
}

.workflow-index {
  color: #64748B;
  font-family: "IBM Plex Mono", monospace;
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.18em;
}

.workflow-card h3,
.architecture-card h3,
.integration-card h3 {
  margin: 1rem 0 0.3rem;
  font-family: "Space Grotesk", "Segoe UI", sans-serif;
  font-size: 1.5rem;
}

.workflow-card p {
  margin: 0;
  color: var(--muted);
}

.architecture-grid,
.architecture-lower {
  display: grid;
  gap: 1rem;
}

.architecture-grid {
  grid-template-columns: 280px minmax(0, 1fr) 280px;
}

.architecture-lower {
  margin-top: 1rem;
  grid-template-columns: 1.2fr 0.8fr;
}

.architecture-card {
  padding: 1.25rem;
  border-radius: var(--radius-lg);
}

.card-head {
  display: flex;
  align-items: flex-start;
  gap: 0.9rem;
}

.card-head h3 {
  margin: 0;
  font-size: 1.55rem;
}

.card-head p {
  margin: 0.25rem 0 0;
}

.card-icon,
.integration-mark {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: 0 0 auto;
  border-radius: 1rem;
  font-weight: 700;
}

.card-icon {
  width: 2.9rem;
  height: 2.9rem;
  border: 1px solid var(--line);
}

.card-blue {
  background: rgba(59, 130, 246, 0.12);
  color: #93C5FD;
}

.card-teal {
  background: rgba(20, 184, 166, 0.12);
  color: #5EEAD4;
}

.card-violet {
  background: rgba(139, 92, 246, 0.12);
  color: #C4B5FD;
}

.card-amber {
  background: rgba(245, 158, 11, 0.12);
  color: #FCD34D;
}

.badge-cluster {
  display: flex;
  flex-wrap: wrap;
  gap: 0.65rem;
  margin-top: 1.15rem;
}

.badge-cluster span {
  display: inline-flex;
  padding: 0.55rem 0.85rem;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.04);
  color: #CBD5E1;
  font-size: 0.82rem;
  font-weight: 600;
}

.architecture-timeline .timeline {
  position: relative;
  margin-top: 1.35rem;
  padding-left: 1.4rem;
}

.architecture-timeline .timeline::before {
  content: "";
  position: absolute;
  left: 0.34rem;
  top: 0.35rem;
  bottom: 0.35rem;
  width: 1px;
  background: linear-gradient(180deg, rgba(59, 130, 246, 0.34), rgba(20, 184, 166, 0.2), rgba(139, 92, 246, 0.34));
}

.timeline-item {
  position: relative;
  display: grid;
  grid-template-columns: 0.7rem 1fr;
  gap: 0.9rem;
  margin-bottom: 1rem;
}

.timeline-item:last-child {
  margin-bottom: 0;
}

.timeline-dot {
  margin-top: 0.35rem;
  width: 0.7rem;
  height: 0.7rem;
  border-radius: 999px;
}

.timeline-blue {
  background: var(--blue);
}

.timeline-teal {
  background: var(--teal);
}

.timeline-amber {
  background: var(--amber);
}

.timeline-violet {
  background: var(--violet);
}

.timeline-item strong,
.surface-list strong,
.persistence-grid strong {
  color: var(--text);
}

.timeline-item p,
.surface-list p,
.persistence-grid p {
  margin: 0.3rem 0 0;
  color: var(--muted);
  font-size: 0.95rem;
}

.surface-list,
.execution-list {
  display: grid;
  gap: 0.85rem;
  margin-top: 1.15rem;
}

.surface-list > div,
.persistence-grid > div {
  padding: 0.95rem 1rem;
  border: 1px solid var(--line);
  border-radius: 1rem;
  background: rgba(255, 255, 255, 0.03);
}

.persistence-grid {
  display: grid;
  gap: 0.85rem;
  margin-top: 1.15rem;
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.execution-pill {
  margin: 0;
  padding: 0.95rem 1rem;
  border: 1px solid var(--line);
  border-radius: 1rem;
  font-size: 0.95rem;
  font-weight: 500;
}

.execution-blue {
  background: rgba(59, 130, 246, 0.12);
  color: #BFDBFE;
}

.execution-amber {
  background: rgba(245, 158, 11, 0.12);
  color: #FDE68A;
}

.execution-violet {
  background: rgba(139, 92, 246, 0.12);
  color: #DDD6FE;
}

.integration-grid {
  display: grid;
  gap: 1rem;
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.integration-card {
  display: flex;
  align-items: center;
  gap: 0.95rem;
  padding: 1rem;
  border-radius: 1.35rem;
}

.integration-card h3 {
  margin: 0;
  font-size: 1.1rem;
}

.integration-card p {
  margin: 0.2rem 0 0;
  font-size: 0.92rem;
}

.integration-mark {
  width: 3rem;
  height: 3rem;
  border: 1px solid var(--line);
  font-size: 0.82rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.mark-blue {
  background: rgba(59, 130, 246, 0.12);
  color: #93C5FD;
}

.mark-teal {
  background: rgba(20, 184, 166, 0.12);
  color: #5EEAD4;
}

.mark-violet {
  background: rgba(139, 92, 246, 0.12);
  color: #C4B5FD;
}

.mark-amber {
  background: rgba(245, 158, 11, 0.12);
  color: #FCD34D;
}

.cta-section {
  padding-bottom: 3rem;
}

.cta-panel {
  padding: 2rem;
  border-radius: var(--radius-xl);
  text-align: center;
}

.cta-panel .eyebrow,
.cta-panel p {
  margin-inline: auto;
}

.cta-panel p {
  max-width: 54rem;
}

.cta-actions {
  justify-content: center;
  margin-top: 1.4rem;
}

.site-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 1rem 0 3rem;
}

.not-found {
  width: min(44rem, calc(100vw - 2rem));
  margin: 10vh auto;
  padding: 2rem;
  border-radius: var(--radius-xl);
  text-align: center;
}

.not-found h1 {
  font-size: clamp(2.4rem, 5vw, 4.1rem);
}

@keyframes rise-in {
  from {
    opacity: 0;
    transform: translateY(22px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@media (max-width: 1180px) {
  .hero,
  .architecture-grid,
  .architecture-lower,
  .integration-grid {
    grid-template-columns: 1fr;
  }

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

  .workflow-strip::before {
    display: none;
  }
}

@media (max-width: 780px) {
  :root {
    --content-width: min(100vw - 1.25rem, 44rem);
  }

  .site-header {
    flex-wrap: wrap;
    justify-content: center;
  }

  .site-nav {
    gap: 0.8rem;
    font-size: 0.95rem;
  }

  .hero {
    padding-top: 2rem;
  }

  .hero h1 {
    max-width: none;
  }

  .hero-signals,
  .workflow-strip,
  .persistence-grid {
    grid-template-columns: 1fr;
  }

  .section {
    padding: 3.2rem 0;
  }

  .site-footer {
    flex-direction: column;
    align-items: flex-start;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    animation: none !important;
    transition: none !important;
  }
}
