:root {
  --bg: #eef3f9;
  --ink: #12253b;
  --muted: #415a77;
  --surface: #ffffff;
  --line: rgba(18, 37, 59, 0.12);
  --brand: #0056c7;
  --brand-2: #009f88;
  --warn: #c47a00;
  --ok: #027a48;
  --radius: 14px;
  --shadow: 0 14px 30px rgba(8, 27, 52, 0.12);
}

* {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  padding: 0;
}

body {
  font-family: "Avenir Next", "Segoe UI", "Helvetica Neue", sans-serif;
  color: var(--ink);
  background:
    radial-gradient(1000px 500px at -10% -10%, rgba(0, 86, 199, 0.16), transparent 60%),
    radial-gradient(900px 500px at 120% 0%, rgba(0, 159, 136, 0.18), transparent 60%),
    var(--bg);
  line-height: 1.55;
}

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

a:hover {
  text-decoration: underline;
}

.shell {
  width: min(1120px, calc(100% - 2rem));
  margin: 0 auto;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  backdrop-filter: blur(12px);
  background: rgba(238, 243, 249, 0.82);
  border-bottom: 1px solid var(--line);
}

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

.brand {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  color: var(--ink);
  font-weight: 700;
  letter-spacing: 0.2px;
}

.brand img {
  width: 40px;
  height: 40px;
}

.main-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  font-size: 0.94rem;
}

.main-nav a {
  color: var(--ink);
  padding: 0.35rem 0.2rem;
  border-bottom: 2px solid transparent;
}

.main-nav a[aria-current="page"] {
  border-color: var(--brand);
}

.hero {
  margin-top: 2rem;
  border: 1px solid var(--line);
  border-radius: calc(var(--radius) + 6px);
  background:
    linear-gradient(120deg, rgba(0, 86, 199, 0.93), rgba(0, 73, 165, 0.95) 45%, rgba(0, 159, 136, 0.94));
  color: #f8fbff;
  padding: clamp(1.5rem, 2.6vw, 3.2rem);
  box-shadow: var(--shadow);
  animation: rise 0.5s ease-out both;
}

.hero--sketch {
  background:
    linear-gradient(112deg, rgba(8, 46, 98, 0.88), rgba(8, 51, 102, 0.78) 40%, rgba(7, 86, 88, 0.66)),
    url("../img/sketch-hospital-waiting-room.svg") center / cover no-repeat;
}

.hero--compact {
  padding: clamp(1.25rem, 2vw, 2rem);
}

.hero h1 {
  margin: 0;
  font-size: clamp(1.8rem, 4.2vw, 3.1rem);
  line-height: 1.1;
}

.hero p {
  font-size: clamp(1rem, 2.1vw, 1.28rem);
  opacity: 0.96;
}

.art-note {
  margin: 0.75rem 0 0;
  font-size: 0.9rem;
  line-height: 1.4;
  max-width: 62ch;
  color: rgba(247, 250, 255, 0.92);
}

.hero-rail {
  display: flex;
  flex-wrap: wrap;
  gap: 0.55rem;
  margin-top: 1rem;
}

.hero-rail span {
  border: 1px solid rgba(248, 251, 255, 0.35);
  border-radius: 999px;
  font-size: 0.79rem;
  padding: 0.22rem 0.58rem;
  background: rgba(248, 251, 255, 0.08);
}

.cta-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-top: 1.1rem;
}

.button {
  display: inline-block;
  border-radius: 999px;
  padding: 0.72rem 1.2rem;
  font-weight: 600;
  border: 1px solid transparent;
}

.button.primary {
  background: #f8fbff;
  color: #0b2f5f;
}

.button.secondary {
  background: transparent;
  border-color: rgba(248, 251, 255, 0.65);
  color: #f8fbff;
}

.page-block {
  margin-top: 1.5rem;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
  box-shadow: 0 8px 20px rgba(8, 27, 52, 0.06);
  padding: clamp(1rem, 2.5vw, 1.65rem);
  animation: rise 0.5s ease-out both;
}

.page-title {
  margin: 0;
  font-size: clamp(1.45rem, 2.6vw, 2rem);
}

.page-subtitle {
  margin: 0.3rem 0 0;
  color: var(--muted);
}

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

.card {
  border: 1px solid var(--line);
  border-radius: calc(var(--radius) - 2px);
  padding: 1rem;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.98), rgba(245, 249, 255, 0.98));
}

.card h3,
.card h4 {
  margin: 0;
}

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

.tag {
  display: inline-block;
  margin-top: 0.45rem;
  padding: 0.16rem 0.52rem;
  border-radius: 999px;
  font-size: 0.77rem;
  font-weight: 700;
  color: #0d3f79;
  background: rgba(0, 86, 199, 0.12);
}

.list {
  margin: 0.7rem 0 0;
  padding-left: 1rem;
  color: var(--muted);
}

.list li {
  margin-bottom: 0.3rem;
}

.banner {
  margin-top: 1.2rem;
  border: 1px solid var(--line);
  border-radius: calc(var(--radius) - 2px);
  background: linear-gradient(90deg, rgba(0, 86, 199, 0.1), rgba(0, 159, 136, 0.12));
  padding: 1rem;
  font-weight: 700;
}

.page-block--art {
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.96), rgba(245, 249, 255, 0.96)),
    url("../img/sketch-fusion-nodes.svg") right -150px top -120px / 560px auto no-repeat;
}

.page-block--circuit {
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.97), rgba(245, 249, 255, 0.97)),
    url("../img/sketch-circuit-board.svg") right -70px top -80px / 460px auto no-repeat;
}

.page-block--fusion {
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.97), rgba(246, 250, 255, 0.97)),
    url("../img/sketch-fusion-nodes.svg") left -200px top -100px / 520px auto no-repeat;
}

.sketch-strip {
  margin-top: 1rem;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.8rem;
}

.sketch-card {
  margin: 0;
  border: 1px solid var(--line);
  border-radius: 12px;
  overflow: hidden;
  background: rgba(255, 255, 255, 0.9);
}

.sketch-card img {
  display: block;
  width: 100%;
  aspect-ratio: 16 / 10;
  object-fit: cover;
}

.sketch-card figcaption {
  padding: 0.5rem 0.62rem 0.62rem;
  color: var(--muted);
  font-size: 0.84rem;
}

.command-band {
  margin-top: 1rem;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 0.6rem;
}

.metric-tile {
  border: 1px solid var(--line);
  border-radius: 11px;
  padding: 0.68rem 0.76rem;
  background: #f8fbff;
  font-size: 0.88rem;
}

.metric-tile strong {
  display: block;
  font-size: 1.14rem;
}

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

.exchange-layout {
  margin-top: 1rem;
  display: grid;
  grid-template-columns: 2fr 1fr;
  gap: 0.85rem;
}

.exchange-list {
  display: grid;
  gap: 0.65rem;
}

.connector-row {
  border: 1px solid var(--line);
  border-radius: 11px;
  background: #fbfdff;
  padding: 0.8rem;
  display: flex;
  justify-content: space-between;
  gap: 0.75rem;
  align-items: center;
}

.connector-row h3 {
  margin: 0;
  font-size: 1rem;
}

.connector-row p {
  margin: 0.32rem 0 0;
  color: var(--muted);
}

.status {
  display: inline-block;
  border-radius: 999px;
  font-size: 0.74rem;
  font-weight: 700;
  padding: 0.16rem 0.48rem;
  white-space: nowrap;
  border: 1px solid transparent;
}

.status.live {
  color: var(--ok);
  background: rgba(2, 122, 72, 0.12);
}

.status.pilot {
  color: #0d3f79;
  background: rgba(0, 86, 199, 0.1);
}

.status.planned {
  color: var(--warn);
  background: rgba(196, 122, 0, 0.13);
}

.exchange-side {
  display: flex;
  flex-direction: column;
  gap: 0.65rem;
}

.button.ghost {
  width: fit-content;
  border-color: var(--line);
  color: var(--ink);
}

.finder {
  margin-top: 0.95rem;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: linear-gradient(125deg, rgba(0, 86, 199, 0.08), rgba(0, 159, 136, 0.08));
  padding: 0.9rem;
}

.finder h3 {
  margin: 0;
}

.finder p {
  margin: 0.28rem 0 0;
  color: var(--muted);
}

.finder-grid {
  margin-top: 0.65rem;
  display: grid;
  gap: 0.48rem;
}

.finder-grid div {
  border: 1px solid var(--line);
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.9);
  padding: 0.56rem 0.66rem;
}

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

.pill-row {
  margin-top: 0.7rem;
  display: flex;
  flex-wrap: wrap;
  gap: 0.42rem;
}

.pill {
  border-radius: 999px;
  border: 1px solid var(--line);
  background: #f6f9ff;
  padding: 0.12rem 0.52rem;
  font-size: 0.75rem;
  font-weight: 600;
}

.ordered {
  margin: 0.75rem 0 0;
  color: var(--muted);
  padding-left: 1rem;
}

.ordered li {
  margin-bottom: 0.32rem;
}

.workflow-list {
  margin: 0.72rem 0 0;
  padding-left: 0;
  list-style: none;
  color: var(--muted);
}

.workflow-list li {
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 0.54rem 0.62rem;
  margin-bottom: 0.44rem;
  background: #fbfdff;
}

.trust-grid {
  margin-top: 1rem;
}

.callout {
  border-left: 4px solid var(--brand);
  padding-left: 0.85rem;
  margin: 1rem 0;
  color: var(--muted);
}

.kpi {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.75rem;
  margin-top: 1rem;
}

.kpi .tile {
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 0.9rem;
  text-align: center;
  background: #f9fcff;
}

.kpi strong {
  display: block;
  font-size: 1.28rem;
}

.site-footer {
  margin-top: 1.8rem;
  border-top: 1px solid var(--line);
  padding: 1rem 0 1.8rem;
  font-size: 0.9rem;
  color: var(--muted);
}

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

.footer-row {
  display: flex;
  gap: 1rem;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
}

.footer-links {
  display: flex;
  gap: 0.75rem;
  flex-wrap: wrap;
}

@media (max-width: 840px) {
  .grid {
    grid-template-columns: 1fr;
  }

  .sketch-strip {
    grid-template-columns: 1fr;
  }

  .page-block--art,
  .page-block--circuit,
  .page-block--fusion {
    background-size: 320px auto;
    background-position: right -120px top -60px;
  }

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

  .exchange-layout,
  .workflow-grid {
    grid-template-columns: 1fr;
  }

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

  .nav-wrap {
    align-items: flex-start;
    padding-top: 0.7rem;
    padding-bottom: 0.7rem;
    flex-direction: column;
  }
}
