:root {
  --metis-navy: #0b1f33;
  --metis-ink: #081724;
  --metis-cyan: #00a3a3;
  --metis-sky: #1f82d6;
  --metis-steel: #5c7080;
  --metis-cloud: #eaf0f4;
  --metis-white: #ffffff;
  --text: #102536;
  --text-muted: #4e6679;
  --line: #d8e6f1;
  --shadow-soft: 0 18px 40px rgba(8, 28, 46, 0.10);
  --shadow-strong: 0 22px 60px rgba(8, 28, 46, 0.18);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: "Manrope", "IBM Plex Sans", "Segoe UI", Arial, sans-serif;
  color: var(--text);
  background:
    radial-gradient(circle at 90% 10%, rgba(31,130,214,0.15), transparent 26%),
    radial-gradient(circle at 8% 18%, rgba(0,163,163,0.13), transparent 30%),
    linear-gradient(180deg, #f3f9ff 0%, #ffffff 26%);
}

body.minor-home {
  overflow-x: hidden;
  background:
    radial-gradient(circle at 18% 24%, rgba(12, 95, 170, 0.20), transparent 34%),
    radial-gradient(circle at 74% 18%, rgba(0, 163, 163, 0.19), transparent 30%),
    radial-gradient(circle at 64% 72%, rgba(23, 96, 190, 0.14), transparent 34%),
    radial-gradient(circle at 16% 76%, rgba(0, 129, 184, 0.12), transparent 30%),
    linear-gradient(180deg, #f3f9ff 0%, #ffffff 32%);
  background-size: 160% 160%, 150% 150%, 170% 170%, 165% 165%, 100% 100%;
  animation: minor-flow 16s ease-in-out infinite alternate;
}

@keyframes minor-flow {
  0% {
    background-position: 0% 0%, 100% 0%, 90% 100%, 5% 90%, 0% 0%;
  }
  50% {
    background-position: 8% 4%, 92% 8%, 82% 96%, 12% 84%, 0% 0%;
  }
  100% {
    background-position: 14% 10%, 86% 14%, 74% 88%, 18% 76%, 0% 0%;
  }
}

a { color: #0d5ca8; text-decoration: none; }
a:hover { text-decoration: underline; }

.site-header {
  position: sticky;
  top: 0;
  z-index: 60;
  background: rgba(255, 255, 255, 0.88);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid #d9e5ef;
}

.wrap {
  width: min(1180px, 92vw);
  margin: 0 auto;
}

.nav-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  padding: 14px 0;
}

.brand {
  font-size: 18px;
  font-weight: 800;
  letter-spacing: 0.2px;
  color: var(--metis-navy);
  display: inline-flex;
  align-items: center;
}

.brand-logo {
  display: block;
  height: 80px;
  width: auto;
}

.nav-links {
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
  align-items: center;
  font-size: 14px;
}

.nav-links > a {
  padding: 6px 8px;
  border-radius: 8px;
}

.nav-links > a:hover {
  background: #eef6fc;
  text-decoration: none;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 12px;
  padding: 11px 16px;
  font-weight: 700;
  letter-spacing: 0.1px;
  transition: transform 160ms ease, box-shadow 160ms ease, filter 160ms ease;
}

.btn:hover {
  transform: translateY(-1px);
  filter: saturate(1.05);
  text-decoration: none;
}

.btn-primary {
  background: linear-gradient(135deg, var(--metis-ink), var(--metis-navy));
  color: var(--metis-white);
  box-shadow: var(--shadow-soft);
}

.btn-secondary {
  background: linear-gradient(135deg, #d8f0f2, #d8e8fb);
  color: #0d4c70;
}

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

.hero-grid {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 18px;
  align-items: stretch;
}

.hero-panel {
  border: 1px solid #d5e4ef;
  border-radius: 16px;
  background: linear-gradient(180deg, #f8fcff, #f1f8ff);
  padding: 16px;
  box-shadow: var(--shadow-soft);
}

.hero h1 {
  margin: 0;
  line-height: 1.06;
  font-size: clamp(36px, 5vw, 58px);
}

.hero p {
  margin-top: 16px;
  font-size: 20px;
  color: var(--text-muted);
  max-width: 760px;
}

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

.kpi {
  border-radius: 12px;
  background: #fff;
  border: 1px solid #dce9f3;
  padding: 12px;
}

.kpi strong {
  display: block;
  font-size: 24px;
  color: var(--metis-navy);
}

.kpi span {
  font-size: 13px;
  color: var(--text-muted);
}

.cta-row {
  display: flex;
  gap: 12px;
  margin-top: 24px;
  flex-wrap: wrap;
}

.section {
  padding: 48px 0;
}

.section h2 {
  margin: 0 0 16px;
  font-size: 31px;
}

.section h2 .accent { color: var(--metis-sky); }

.section-heading {
  display: flex;
  align-items: center;
  gap: 10px;
}

.section-thumb {
  width: 34px;
  height: 34px;
  object-fit: contain;
  border-radius: 8px;
  border: 1px solid #d7e6f2;
  background: #fff;
  padding: 4px;
  box-shadow: 0 4px 10px rgba(8, 28, 46, 0.08);
}

.grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 14px;
}

.card {
  position: relative;
  border: 1px solid #dce7ef;
  border-radius: 14px;
  padding: 16px;
  background: linear-gradient(180deg, #ffffff, #fbfdff);
  box-shadow: 0 10px 26px rgba(10, 31, 52, 0.05);
  transition: transform 170ms ease, box-shadow 170ms ease, border-color 170ms ease;
}

.card:hover {
  transform: translateY(-2px);
  box-shadow: 0 16px 34px rgba(10, 31, 52, 0.11);
  border-color: #c9dfef;
}

.card h3 {
  margin: 0 0 10px;
  font-size: 20px;
}

.card-media {
  width: 100%;
  height: 130px;
  object-fit: cover;
  border-radius: 10px;
  border: 1px solid #dbe8f3;
  margin-bottom: 12px;
  background: #f6fbff;
}

.product-logo {
  width: 72px;
  height: 72px;
  object-fit: contain;
  margin-bottom: 10px;
}

.hero-image {
  width: 100%;
  max-height: 260px;
  object-fit: cover;
  border-radius: 12px;
  border: 1px solid #d7e7f3;
  margin-top: 10px;
  box-shadow: 0 14px 28px rgba(8, 28, 46, 0.10);
}

.hero-image.contain {
  object-fit: contain;
  background: #f7fbff;
}

.meta {
  font-size: 14px;
  color: var(--text-muted);
}

.stack-map {
  border: 1px solid #d7e6f2;
  border-radius: 14px;
  background: linear-gradient(180deg, #ffffff, #f7fbff);
  padding: 12px;
}

.stack-row {
  display: grid;
  grid-template-columns: 140px 1fr;
  gap: 10px;
  align-items: center;
  margin-bottom: 8px;
}

.stack-row:last-child { margin-bottom: 0; }

.stack-label {
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.9px;
  color: #3e5c74;
  font-weight: 800;
}

.stack-items {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.pill {
  display: inline-block;
  border-radius: 999px;
  padding: 6px 11px;
  font-size: 12px;
  font-weight: 700;
  border: 1px solid #cfe3f3;
  background: #fff;
}

.crosslinks {
  border: 1px solid #c8e9ea;
  border-left: 6px solid var(--metis-cyan);
  padding: 16px;
  background: linear-gradient(180deg, #eff9fa, #f7fdff);
  border-radius: 12px;
}

.crosslinks h3 { margin: 0 0 8px; }
.crosslinks ul { margin: 8px 0 0; }
.crosslinks li { margin-bottom: 6px; }

.visual-band {
  border: 1px solid #d4e4f0;
  border-radius: 16px;
  min-height: 230px;
  background-size: cover;
  background-position: center;
  position: relative;
  overflow: hidden;
  box-shadow: var(--shadow-soft);
}

.visual-band::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(11, 31, 51, 0.74), rgba(11, 31, 51, 0.24));
}

.visual-band > div {
  position: relative;
  z-index: 1;
  color: #fff;
  padding: 22px;
}

.visual-band h3 {
  margin: 0 0 8px;
  font-size: 28px;
}

.visual-band p {
  margin: 0;
  max-width: 680px;
  color: rgba(255, 255, 255, 0.92);
}

.solution-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 14px;
}

.solution-card {
  border: 1px solid #d8e6f2;
  border-radius: 14px;
  padding: 16px;
  background: #fff;
}

.solution-card h3 {
  margin: 0 0 8px;
}

.solution-card p {
  margin: 0 0 10px;
  color: var(--text-muted);
}

/* Keep architecture/module visuals fully visible in solution cards */
.solution-card .card-media {
  height: 180px;
  object-fit: contain;
  background: #f7fbff;
  padding: 8px;
}

.accordion {
  display: grid;
  gap: 10px;
}

.accordion-item {
  border: 1px solid #d8e6f2;
  border-radius: 12px;
  background: #fff;
  overflow: hidden;
}

.accordion-item summary {
  list-style: none;
  cursor: pointer;
  padding: 12px 14px;
  font-weight: 800;
  color: var(--metis-navy);
  background: linear-gradient(180deg, #ffffff, #f6fbff);
}

.accordion-item summary::-webkit-details-marker {
  display: none;
}

.accordion-item[open] summary {
  border-bottom: 1px solid #d8e6f2;
}

.accordion-body {
  padding: 12px 14px;
  color: var(--text-muted);
}

.module-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
  gap: 14px;
}

.module-card {
  border: 1px solid #d8e6f2;
  border-radius: 14px;
  padding: 14px 14px 12px;
  background: linear-gradient(180deg, #ffffff, #f8fcff);
  box-shadow: 0 10px 24px rgba(11, 33, 54, 0.06);
}

.module-no {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 34px;
  height: 24px;
  border-radius: 999px;
  padding: 0 8px;
  margin-bottom: 8px;
  font-size: 12px;
  font-weight: 800;
  color: #0b3d66;
  background: linear-gradient(90deg, #d8ecff, #e6f8ff);
}

.module-card h3 {
  margin: 0 0 8px;
  font-size: 17px;
  line-height: 1.25;
}

.module-card p {
  margin: 0;
  color: var(--text-muted);
  font-size: 14px;
  line-height: 1.45;
}

.module-summary {
  border-left: 4px solid #4ca5ff;
}

.module-stats {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 10px;
}

.module-stat {
  display: inline-flex;
  align-items: center;
  height: 28px;
  border-radius: 999px;
  padding: 0 10px;
  font-size: 12px;
  font-weight: 700;
  color: #0a3f6c;
  border: 1px solid #c9e3fb;
  background: linear-gradient(90deg, #edf7ff, #f7fbff);
}

.module-category-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 14px;
}

.module-category {
  border: 1px solid #d8e6f2;
  border-radius: 14px;
  padding: 14px;
  background: linear-gradient(180deg, #ffffff, #f9fcff);
}

.module-category h3 {
  display: flex;
  align-items: center;
  gap: 8px;
  margin: 0 0 8px;
  font-size: 18px;
}

.module-cat-icon {
  width: 24px;
  height: 24px;
  object-fit: contain;
  border-radius: 6px;
  background: rgba(255, 255, 255, 0.72);
  border: 1px solid rgba(12, 49, 79, 0.14);
  padding: 2px;
  flex: 0 0 auto;
}

.module-category.cat-orch {
  background: linear-gradient(145deg, #eef9ff, #e6f1ff);
  border-color: #b7d7ff;
}

.module-category.cat-maint {
  background: linear-gradient(145deg, #fff6ec, #ffe9d1);
  border-color: #ffd0a3;
}

.module-category.cat-prod {
  background: linear-gradient(145deg, #effff5, #ddffe8);
  border-color: #b4efc8;
}

.module-category.cat-ai {
  background: linear-gradient(145deg, #f8f0ff, #f0e2ff);
  border-color: #d9bcff;
}

.module-category.cat-gov {
  background: linear-gradient(145deg, #fff2f6, #ffdfe9);
  border-color: #ffc0d2;
}

.module-category.cat-mobile {
  background: linear-gradient(145deg, #f0ffff, #dafcff);
  border-color: #adecf2;
}

.module-list {
  margin: 0;
  padding-left: 18px;
  display: grid;
  gap: 7px;
}

.module-list li {
  color: var(--text-muted);
  font-size: 14px;
  line-height: 1.4;
}

.axis-page {
  position: relative;
  background: radial-gradient(circle at 15% 12%, #f7fbff 0%, #f3f9ff 36%, #f7fbff 100%);
}

.axis-bg {
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  overflow: hidden;
}

.axis-page > :not(.axis-bg) {
  position: relative;
  z-index: 1;
}

.axis-bg::before {
  content: "";
  position: absolute;
  inset: -20%;
  background:
    radial-gradient(circle at 20% 18%, rgba(116, 191, 255, 0.18), transparent 44%),
    radial-gradient(circle at 82% 22%, rgba(255, 131, 187, 0.15), transparent 40%),
    radial-gradient(circle at 50% 85%, rgba(128, 255, 221, 0.14), transparent 42%);
  animation: axis-bg-pan 38s ease-in-out infinite alternate;
}

.axis-bg-blob {
  position: absolute;
  border-radius: 999px;
  filter: blur(28px);
  opacity: 0.25;
  transform: translate3d(0, 0, 0);
}

.axis-bg-blob-a {
  width: 340px;
  height: 340px;
  top: -70px;
  left: -80px;
  background: #8bd2ff;
  animation: axis-float-a 24s ease-in-out infinite;
}

.axis-bg-blob-b {
  width: 280px;
  height: 280px;
  top: 28%;
  right: -90px;
  background: #ff8bc7;
  animation: axis-float-b 29s ease-in-out infinite;
}

.axis-bg-blob-c {
  width: 360px;
  height: 360px;
  bottom: -120px;
  left: 42%;
  background: #8ef0d1;
  animation: axis-float-c 34s ease-in-out infinite;
}

@keyframes axis-bg-pan {
  0% { transform: translate3d(-1.5%, -1%, 0) scale(1); }
  100% { transform: translate3d(1.5%, 1%, 0) scale(1.04); }
}

@keyframes axis-float-a {
  0%, 100% { transform: translate3d(0, 0, 0); }
  50% { transform: translate3d(32px, 26px, 0); }
}

@keyframes axis-float-b {
  0%, 100% { transform: translate3d(0, 0, 0); }
  50% { transform: translate3d(-34px, -20px, 0); }
}

@keyframes axis-float-c {
  0%, 100% { transform: translate3d(0, 0, 0); }
  50% { transform: translate3d(-24px, -30px, 0); }
}

@media (prefers-reduced-motion: reduce) {
  .axis-bg::before,
  .axis-bg-blob {
    animation: none !important;
  }
}

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

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

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

.journey {
  display: grid;
  gap: 10px;
}

.journey-step {
  border: 1px solid #d8e6f2;
  border-radius: 12px;
  padding: 12px 14px;
  background: linear-gradient(180deg, #ffffff, #f7fbff);
}

.journey-step strong {
  color: var(--metis-navy);
}

.caption {
  font-size: 12px;
  color: #5b7385;
  margin-top: 8px;
}

.media-carousel {
  position: relative;
  border: 1px solid #d7e6f2;
  border-radius: 16px;
  background: linear-gradient(180deg, #ffffff, #f7fbff);
  box-shadow: 0 12px 28px rgba(8, 28, 46, 0.08);
  overflow: hidden;
}

.carousel-track {
  position: relative;
  min-height: 360px;
}

.carousel-slide {
  display: none;
  margin: 0;
}

.carousel-slide.is-active {
  display: block;
}

.carousel-slide img {
  display: block;
  width: 100%;
  height: 360px;
  object-fit: cover;
  background: #eaf2f8;
}

.carousel-slide figcaption {
  padding: 14px 16px 16px;
  font-size: 14px;
  color: var(--text-muted);
}

.carousel-btn {
  position: absolute;
  top: calc(50% - 24px);
  z-index: 2;
  width: 40px;
  height: 48px;
  border: 1px solid #cadfed;
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.92);
  color: #0b1f33;
  font-size: 24px;
  cursor: pointer;
}

.carousel-btn.prev { left: 10px; }
.carousel-btn.next { right: 10px; }

.carousel-dots {
  display: flex;
  gap: 8px;
  justify-content: center;
  padding: 0 0 16px;
}

.carousel-dot {
  width: 9px;
  height: 9px;
  border: 0;
  border-radius: 999px;
  background: #bdd3e3;
  cursor: pointer;
}

.carousel-dot.is-active {
  background: #0d5ca8;
}

.site-footer {
  margin-top: 30px;
  border-top: 1px solid #d8e3ec;
  padding: 32px 0 42px;
  background: linear-gradient(180deg, #f4f8fb, #eff5fa);
}

.footer-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 12px;
}

.small {
  margin-top: 10px;
  font-size: 13px;
  color: #53697b;
}

.company-strip {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(210px, 1fr));
  gap: 12px;
}

.company-tile {
  border: 1px solid #d8e5ef;
  border-radius: 12px;
  background: #fff;
  padding: 14px;
  box-shadow: 0 8px 20px rgba(8, 28, 46, 0.06);
}

.company-tile h3 {
  margin: 0 0 8px;
  font-size: 18px;
}

.company-logo {
  width: min(220px, 100%);
  max-height: 72px;
  object-fit: contain;
  display: block;
  margin: 0 0 10px;
  padding: 6px;
  border-radius: 10px;
  border: 1px solid #d9e7f2;
  background: #fff;
}

.hero .company-logo {
  width: min(260px, 70%);
  max-height: 90px;
  margin-top: 14px;
}

.badge {
  display: inline-block;
  border-radius: 999px;
  background: linear-gradient(135deg, #dcf4f4, #dbeafa);
  color: #0b6262;
  padding: 4px 10px;
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.2px;
}

.reveal {
  opacity: 0;
  transform: translateY(16px);
  transition: opacity 380ms ease, transform 380ms ease;
}

.reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}

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

@media (max-width: 720px) {
  .brand-logo {
    height: 80px;
  }

  .nav-row {
    align-items: flex-start;
    flex-direction: column;
  }

  .hero p {
    font-size: 18px;
  }

  .section h2 {
    font-size: 27px;
  }

  .stack-row {
    grid-template-columns: 1fr;
  }

  .carousel-track {
    min-height: 250px;
  }

  .carousel-slide img {
    height: 250px;
  }

  .carousel-btn {
    width: 36px;
    height: 42px;
    font-size: 20px;
  }
}
