:root {
  --bg: #06101d;
  --bg-deep: #02070d;
  --line: rgba(164, 211, 240, 0.18);
  --text: #edf7ff;
  --muted: #a9bdd0;
  --blue: #2e9dff;
  --cyan: #85dbff;
  --green: #73d6a1;
  --shadow: 0 24px 80px rgba(0, 0, 0, 0.36);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--bg-deep);
  color: var(--text);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  line-height: 1.55;
}

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

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

.site-shell {
  min-height: 100vh;
  overflow: hidden;
  background:
    radial-gradient(circle at 78% 12%, rgba(46, 157, 255, 0.19), transparent 34rem),
    linear-gradient(180deg, #06101d 0%, #091421 38%, #f4f8fb 38%, #f4f8fb 100%);
}

.site-header {
  position: fixed;
  top: 0;
  left: 0;
  z-index: 20;
  width: 100%;
  border-bottom: 1px solid rgba(164, 211, 240, 0.18);
  background: rgba(3, 10, 18, 0.82);
  backdrop-filter: blur(18px);
}

.nav-wrap {
  width: min(1180px, calc(100% - 32px));
  height: 76px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

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

.brand img {
  width: 44px;
  height: 44px;
  object-fit: contain;
}

.brand strong {
  display: block;
  font-size: 0.95rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.brand span span {
  display: block;
  color: var(--muted);
  font-size: 0.78rem;
}

.site-nav {
  display: flex;
  align-items: center;
  gap: 22px;
  color: var(--muted);
  font-size: 0.9rem;
}

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

.nav-cta,
.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 42px;
  padding: 0 18px;
  border: 1px solid rgba(133, 219, 255, 0.42);
  border-radius: 6px;
  background: rgba(46, 157, 255, 0.13);
  color: var(--text);
  font-weight: 700;
}

.hero {
  position: relative;
  min-height: 92vh;
  padding: 136px 0 72px;
  color: var(--text);
}

.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, rgba(2, 7, 13, 0.92) 0%, rgba(2, 7, 13, 0.68) 44%, rgba(2, 7, 13, 0.34) 100%),
    url("/assets/images/gnosis_logo_cropped.png") center right 8% / min(760px, 58vw) auto no-repeat;
}

.hero::after {
  content: "";
  position: absolute;
  inset: auto 0 0;
  height: 170px;
  background: linear-gradient(180deg, transparent, #091421 72%);
}

.hero-inner {
  position: relative;
  z-index: 2;
  width: min(1180px, calc(100% - 32px));
  margin: 0 auto;
}

.eyebrow {
  margin: 0 0 18px;
  color: var(--cyan);
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}

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

h1 {
  max-width: 820px;
  margin-bottom: 24px;
  font-size: clamp(2.8rem, 7vw, 6.8rem);
  line-height: 0.96;
  letter-spacing: 0;
}

.hero-copy {
  max-width: 690px;
  color: #d6e7f6;
  font-size: clamp(1.05rem, 2vw, 1.28rem);
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-top: 34px;
}

.button.secondary {
  background: rgba(255, 255, 255, 0.05);
  border-color: rgba(201, 214, 226, 0.28);
}

.hero-metrics {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1px;
  width: min(840px, 100%);
  margin-top: 58px;
  border: 1px solid var(--line);
  background: var(--line);
  box-shadow: var(--shadow);
}

.metric {
  min-height: 118px;
  padding: 22px;
  background: rgba(5, 16, 29, 0.82);
}

.metric strong {
  display: block;
  color: var(--cyan);
  font-size: 1.6rem;
}

.metric span {
  color: var(--muted);
  font-size: 0.88rem;
}

.section {
  position: relative;
  padding: 92px 0;
}

.section.dark {
  background: #091421;
  color: var(--text);
}

.section.light {
  background: #f4f8fb;
  color: #102033;
}

.container {
  width: min(1180px, calc(100% - 32px));
  margin: 0 auto;
}

.section-heading {
  max-width: 780px;
  margin-bottom: 38px;
}

.section-heading h2 {
  margin-bottom: 14px;
  font-size: clamp(2rem, 4vw, 3.4rem);
  line-height: 1.05;
}

.section-heading p {
  color: inherit;
  opacity: 0.76;
  font-size: 1.06rem;
}

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

.capability {
  min-height: 260px;
  padding: 24px;
  border: 1px solid rgba(16, 32, 51, 0.1);
  border-radius: 8px;
  background: #ffffff;
  box-shadow: 0 12px 34px rgba(16, 32, 51, 0.08);
}

.capability-icon {
  width: 46px;
  height: 46px;
  margin-bottom: 22px;
  border-radius: 6px;
  display: grid;
  place-items: center;
  background: #e8f4ff;
  color: #096cb9;
  font-weight: 900;
}

.capability h3,
.work-item h3 {
  margin-bottom: 12px;
  font-size: 1.05rem;
}

.capability p,
.work-item p {
  color: #52667a;
  font-size: 0.95rem;
}

.split {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: 48px;
  align-items: center;
}

.risk-panel {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: linear-gradient(145deg, rgba(16, 35, 58, 0.92), rgba(6, 16, 29, 0.92));
  box-shadow: var(--shadow);
  overflow: hidden;
}

.risk-row {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 18px;
  align-items: start;
  padding: 20px 22px;
  border-bottom: 1px solid var(--line);
}

.risk-row strong {
  display: block;
  margin-bottom: 2px;
  color: var(--text);
}

.risk-step {
  color: var(--green) !important;
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", monospace;
  font-weight: 800;
}

.risk-row:last-child {
  border-bottom: 0;
}

.risk-row span {
  color: var(--muted);
}

.risk-score {
  color: var(--green);
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", monospace;
  font-weight: 800;
}

.dark-list {
  display: grid;
  gap: 14px;
  margin: 28px 0 0;
  padding: 0;
  list-style: none;
}

.dark-list li {
  padding-left: 22px;
  color: #d6e7f6;
  position: relative;
}

.dark-list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.7em;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--cyan);
}

.systems-band {
  border-top: 1px solid rgba(164, 211, 240, 0.16);
  border-bottom: 1px solid rgba(164, 211, 240, 0.16);
  background:
    linear-gradient(90deg, rgba(4, 12, 21, 0.95), rgba(9, 20, 33, 0.8)),
    url("/assets/images/leaflet.png") right center / min(520px, 46vw) auto no-repeat;
}

.system-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 26px;
}

.system-tags span {
  padding: 10px 14px;
  border: 1px solid rgba(133, 219, 255, 0.28);
  border-radius: 999px;
  color: #d9f2ff;
  background: rgba(133, 219, 255, 0.08);
  font-size: 0.92rem;
  font-weight: 700;
}

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

.work-item {
  min-height: 220px;
  padding: 26px;
  border-radius: 8px;
  background: #ffffff;
  border: 1px solid rgba(16, 32, 51, 0.1);
}

.contact {
  background: #06101d;
  color: var(--text);
}

.contact-box {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 28px;
  align-items: center;
  padding: 34px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: linear-gradient(145deg, rgba(16, 35, 58, 0.84), rgba(5, 16, 29, 0.96));
}

.site-footer {
  padding: 32px 0;
  border-top: 1px solid rgba(164, 211, 240, 0.16);
  background: #02070d;
  color: var(--muted);
}

.footer-inner {
  width: min(1180px, calc(100% - 32px));
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  gap: 20px;
  font-size: 0.92rem;
}

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

.record {
  padding: 26px;
  border-radius: 8px;
  background: #ffffff;
  border: 1px solid rgba(16, 32, 51, 0.1);
  box-shadow: 0 12px 34px rgba(16, 32, 51, 0.06);
}

.record-meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
  margin-bottom: 14px;
  color: #52667a;
  font-size: 0.82rem;
  font-weight: 700;
}

.record-meta span {
  padding: 3px 10px;
  border-radius: 999px;
  background: #e8f4ff;
  color: #096cb9;
  font-size: 0.72rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.record h3,
.person h3 {
  margin-bottom: 10px;
  font-size: 1.08rem;
  line-height: 1.3;
}

.record p:last-child,
.person > p {
  color: #52667a;
  font-size: 0.95rem;
}

.team-section {
  padding-top: 0;
}

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

.person {
  padding: 30px;
  border-radius: 8px;
  background: #ffffff;
  border: 1px solid rgba(16, 32, 51, 0.1);
  box-shadow: 0 12px 34px rgba(16, 32, 51, 0.06);
}

.person-head {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-bottom: 18px;
}

.person-head h3 {
  margin-bottom: 2px;
}

.person-initials {
  flex: none;
  width: 54px;
  height: 54px;
  border-radius: 8px;
  display: grid;
  place-items: center;
  background: #091421;
  color: var(--cyan);
  font-weight: 900;
  letter-spacing: 0.06em;
}

.person-role {
  margin: 0;
  color: #096cb9;
  font-size: 0.88rem;
  font-weight: 700;
}

.person-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 18px 0 0;
  padding: 0;
  list-style: none;
}

.person-tags li {
  padding: 5px 11px;
  border: 1px solid rgba(9, 108, 185, 0.22);
  border-radius: 999px;
  color: #23415e;
  font-size: 0.82rem;
  font-weight: 700;
}

.contact-box .button {
  overflow-wrap: anywhere;
  text-align: center;
}

.site-footer a:hover {
  color: var(--text);
}

@media (max-width: 1040px) {
  .record-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 760px) {
  .record-grid,
  .team-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 1040px) {
  .work-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 920px) {
  .site-nav {
    display: none;
  }

  .hero::before {
    background:
      linear-gradient(180deg, rgba(2, 7, 13, 0.94) 0%, rgba(2, 7, 13, 0.78) 58%, rgba(2, 7, 13, 0.48) 100%),
      url("/assets/images/gnosis_logo_cropped.png") center bottom 10% / 92vw auto no-repeat;
  }

  .hero-metrics,
  .capability-grid,
  .split,
  .contact-box {
    grid-template-columns: 1fr;
  }

  .systems-band {
    background:
      linear-gradient(180deg, rgba(4, 12, 21, 0.96), rgba(9, 20, 33, 0.88)),
      url("/assets/images/leaflet.png") right bottom / 82vw auto no-repeat;
  }
}

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

@media (max-width: 560px) {
  .nav-wrap {
    height: 68px;
  }

  .brand strong {
    font-size: 0.82rem;
  }

  .brand span span {
    display: none;
  }

  .hero {
    min-height: 900px;
    padding-top: 112px;
  }

  h1 {
    font-size: 2.65rem;
  }

  .section {
    padding: 66px 0;
  }

  .hero-actions,
  .footer-inner {
    flex-direction: column;
  }
}
