:root {
  --background: #f7f9fb;
  --surface: #ffffff;
  --surface-container-low: #f2f4f6;
  --surface-container: #eceef0;
  --surface-container-high: #e6e8ea;
  --surface-variant: #e0e3e5;
  --text: #191c1e;
  --text-muted: #434656;
  --text-soft: #5b6474;
  --outline: #c3c5d9;
  --primary: #0044c9;
  --primary-container: #0059ff;
  --on-primary: #ffffff;
  --shadow-soft: 0 8px 32px rgba(25, 28, 30, 0.06);
  --radius-xl: 16px;
  --radius-md: 8px;
  --max-width: 1280px;
  --font-display: "Segoe UI", "Trebuchet MS", Arial, sans-serif;
  --font-body: "Segoe UI", Arial, sans-serif;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  background: var(--background);
  color: var(--text);
  font-family: var(--font-body);
  -webkit-font-smoothing: antialiased;
}

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

svg {
  display: block;
}

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

.topbar {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 50;
  background: rgba(247, 249, 251, 0.82);
  backdrop-filter: blur(20px);
  box-shadow: 0 1px 0 rgba(25, 28, 30, 0.05);
}

.topbar-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 16px 0;
}

.brand,
.footer-name {
  font-family: var(--font-display);
  font-size: 1.25rem;
  font-weight: 900;
  letter-spacing: -0.05em;
  color: #0f1720;
}

.topnav {
  display: flex;
  align-items: center;
  gap: 32px;
}

.nav-link {
  color: var(--text-soft);
  font-family: var(--font-display);
  font-size: 0.98rem;
  font-weight: 700;
  letter-spacing: -0.02em;
  transition: color 180ms ease;
}

.nav-link:hover,
.nav-link:focus-visible,
.footer-links a:hover,
.section-link:hover,
.initiative-card a:hover {
  color: var(--primary-container);
}

.nav-link-active {
  color: var(--primary-container);
  padding-bottom: 4px;
  border-bottom: 2px solid var(--primary-container);
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0 24px;
  min-height: 46px;
  border-radius: 8px;
  font-size: 1rem;
  font-weight: 600;
  transition:
    background-color 180ms ease,
    opacity 180ms ease,
    transform 180ms ease;
}

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

.button-primary {
  color: var(--on-primary);
  background: linear-gradient(135deg, var(--primary), var(--primary-container));
}

.button-secondary {
  background: var(--surface-variant);
  color: var(--text);
}

.page-main {
  flex: 1;
  padding-top: 128px;
  padding-bottom: 96px;
}

.section-gap {
  margin-bottom: 128px;
}

.hero {
  width: min(80%, 1040px);
}

h1,
h2,
h3,
h4 {
  margin: 0;
  font-family: var(--font-display);
  color: var(--text);
}

h1 {
  margin-bottom: 24px;
  font-size: clamp(4rem, 9vw, 7rem);
  font-weight: 900;
  line-height: 0.95;
  letter-spacing: -0.04em;
}

.hero h2 {
  margin-bottom: 32px;
  color: var(--primary);
  font-size: clamp(1.55rem, 3vw, 2.25rem);
  font-weight: 500;
}

.hero-copy {
  max-width: 900px;
  margin: 0 0 48px;
  color: var(--text-muted);
  font-size: clamp(1.25rem, 2.5vw, 1.75rem);
  line-height: 1.6;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
}

.intro-band {
  padding: 128px 0;
  background: var(--surface-container-low);
}

.intro-copy {
  width: min(80%, 1040px);
  margin: 0;
  padding: 16px 0 16px 32px;
  border-left: 4px solid var(--primary);
  color: var(--text);
  font-size: clamp(1.8rem, 4vw, 3rem);
  font-weight: 300;
  line-height: 1.35;
}

.section-title {
  margin-bottom: 64px;
  font-size: 2rem;
  font-weight: 800;
  letter-spacing: -0.03em;
}

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

.feature-card,
.initiative-card,
.contact-box {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: 40px;
  border-radius: var(--radius-xl);
  background: var(--surface);
  transition: box-shadow 220ms ease;
}

.feature-card:hover,
.initiative-card:hover,
.project-card:hover {
  box-shadow: var(--shadow-soft);
}

.icon-mark {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: auto;
  margin-bottom: 24px;
  color: var(--primary);
}

.icon-mark svg {
  width: 40px;
  height: 40px;
}

.feature-card h4,
.project-body h4,
.initiative-card h4 {
  margin-bottom: 16px;
  font-size: 1.35rem;
  font-weight: 800;
  line-height: 1.25;
  letter-spacing: -0.03em;
}

.feature-card p,
.project-body p,
.initiative-card p,
.contact-box p,
.site-footer p {
  margin: 0;
  color: var(--text-muted);
  line-height: 1.7;
}

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

.section-head-row .section-title {
  margin-bottom: 0;
}

.section-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--primary);
  font-weight: 600;
}

.arrow {
  font-size: 1rem;
}

.project-stack {
  display: flex;
  flex-direction: column;
  gap: 64px;
}

.project-card {
  display: flex;
  flex-direction: column;
  overflow: hidden;
  border-radius: var(--radius-xl);
  background: var(--surface-container-low);
  transition: background-color 220ms ease;
}

.project-card:hover {
  background: var(--surface-container-high);
}

.project-card-large {
  flex-direction: row;
}

.project-card-reverse {
  flex-direction: row-reverse;
}

.project-visual {
  flex: 0 0 40%;
  min-height: 300px;
  background-color: var(--surface-variant);
}

.visual-network {
  background:
    radial-gradient(circle at 22% 32%, rgba(173, 208, 255, 0.95), transparent 8%),
    radial-gradient(circle at 72% 62%, rgba(255, 255, 255, 0.92), transparent 10%),
    linear-gradient(145deg, #091638 8%, #103487 56%, #0d5aff 100%);
  position: relative;
}

.visual-network::before,
.visual-network::after,
.visual-docs::before,
.visual-docs::after {
  content: "";
  position: absolute;
}

.visual-network::before {
  inset: 18% 12%;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.12) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.12) 1px, transparent 1px);
  background-size: 28px 28px;
  border-radius: 18px;
}

.visual-network::after {
  left: 18%;
  top: 24%;
  width: 54%;
  height: 1px;
  background: linear-gradient(90deg, rgba(255, 255, 255, 0), rgba(255, 255, 255, 0.65), rgba(255, 255, 255, 0));
  transform: rotate(22deg);
}

.visual-docs {
  background:
    linear-gradient(180deg, rgba(15, 23, 32, 0.08), rgba(15, 23, 32, 0.02)),
    linear-gradient(145deg, #e7ebf0 0%, #cfd7e6 48%, #9aa8c1 100%);
  position: relative;
}

.visual-docs::before {
  inset: 16% 14% 18% 16%;
  border-radius: 18px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.94), rgba(244, 246, 249, 0.94));
  box-shadow: 0 18px 32px rgba(25, 28, 30, 0.08);
}

.visual-docs::after {
  left: 25%;
  top: 28%;
  width: 46%;
  height: 42%;
  background-image:
    linear-gradient(#7a889e 2px, transparent 2px),
    linear-gradient(90deg, #b9c4d5 2px, transparent 2px);
  background-size: 100% 18%, 25% 100%;
  background-repeat: no-repeat;
}

.project-body {
  display: flex;
  flex: 1;
  flex-direction: column;
  justify-content: center;
  padding: 48px;
}

.project-label {
  display: block;
  margin-bottom: 16px;
  color: var(--primary);
  font-size: 0.86rem;
  font-weight: 700;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.project-body p {
  max-width: 40rem;
  margin-bottom: 28px;
  font-size: 1.1rem;
}

.chip-row {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.chip-row span {
  display: inline-block;
  padding: 6px 16px;
  border: 1px solid rgba(195, 197, 217, 0.45);
  border-radius: 999px;
  color: var(--text-muted);
  font-size: 0.9rem;
}

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

.initiative-card {
  min-height: 280px;
  background: var(--surface);
  box-shadow: var(--shadow-soft);
}

.initiative-card a,
.footer-links a {
  margin-top: auto;
  color: var(--primary);
  font-weight: 600;
}

.contact-section {
  margin-bottom: 0;
}

.contact-box {
  background: var(--surface-container-low);
  box-shadow: var(--shadow-soft);
}

.contact-box .section-title {
  margin-bottom: 18px;
}

.contact-box p {
  max-width: 860px;
  margin-bottom: 28px;
  font-size: 1.08rem;
}

.site-footer {
  width: 100%;
  padding: 64px 0;
  background: var(--surface-container-low);
}

.footer-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.footer-name {
  margin-bottom: 8px;
  font-size: 1.1rem;
}

@media (max-width: 1100px) {
  .hero,
  .intro-copy {
    width: 100%;
  }

  .card-grid,
  .initiative-grid {
    grid-template-columns: 1fr;
  }

  .project-card-large,
  .project-card-reverse {
    flex-direction: column;
  }

  .project-visual {
    min-height: 260px;
  }
}

@media (max-width: 840px) {
  .shell {
    width: min(calc(100% - 32px), var(--max-width));
  }

  .topnav,
  .topbar-cta {
    display: none;
  }

  .page-main {
    padding-top: 108px;
    padding-bottom: 72px;
  }

  .section-gap {
    margin-bottom: 88px;
  }

  .intro-band {
    padding: 84px 0;
  }

  .section-head-row,
  .footer-inner {
    flex-direction: column;
    align-items: flex-start;
  }
}

@media (max-width: 640px) {
  .feature-card,
  .initiative-card,
  .contact-box,
  .project-body {
    padding: 28px;
  }

  .hero-copy {
    font-size: 1.12rem;
  }

  .intro-copy {
    padding-left: 20px;
    font-size: 1.6rem;
  }
}
