:root {
  --service-ink: #0d302c;
  --service-teal: #0c7d70;
  --service-mint: #75dbc7;
  --service-paper: #f5f3e8;
  --service-line: rgba(13, 48, 44, 0.14);
}

.service-page {
  background:
    radial-gradient(circle at 88% 8%, rgba(76, 193, 174, 0.13), transparent 28%),
    linear-gradient(180deg, #f7f8f1 0, #fff 780px);
}

.service-page-hero {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(300px, 0.8fr);
  gap: 8vw;
  align-items: end;
  margin: 34px auto 76px;
  padding: clamp(42px, 6vw, 78px);
  overflow: hidden;
  border: 1px solid var(--service-line);
  border-radius: 46px;
  color: #eaf5f1;
  background:
    radial-gradient(circle at 78% 32%, rgba(95, 222, 198, 0.28), transparent 31%),
    linear-gradient(135deg, #0c302d, #0a4d46 58%, #126e62);
  box-shadow: 0 32px 90px rgba(13, 48, 44, 0.15);
}

.service-page-hero .service-particle-layer,
.service-detail-hero .service-particle-layer {
  position: absolute;
  z-index: 0;
  inset: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  opacity: 0.78;
}

body[data-service-view="multiomics"] .service-page-hero,
body[data-service-view="multiomics"] .service-detail-hero {
  background:
    radial-gradient(circle at 76% 30%, rgba(100, 174, 226, 0.23), transparent 29%),
    linear-gradient(135deg, #102f3c, #155d62 54%, #1c756f);
}

body[data-service-view="multiomics"] .service-kicker,
body[data-service-view="multiomics"] .service-detail-label {
  color: #a7d6f2;
}

.service-page-hero::after {
  content: "";
  position: absolute;
  right: -7%;
  bottom: -42%;
  width: 430px;
  height: 430px;
  border: 1px solid rgba(196, 247, 237, 0.2);
  border-radius: 50%;
  box-shadow: 0 0 0 42px rgba(196, 247, 237, 0.04), 0 0 0 84px rgba(196, 247, 237, 0.025);
}

.service-hero-copy,
.service-hero-routes {
  position: relative;
  z-index: 1;
}

.service-kicker {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  margin-bottom: 20px;
  font-size: 11px;
  font-weight: 750;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: #93d9cc;
}

.service-kicker::before {
  content: "";
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #82efd8;
  box-shadow: 0 0 0 6px rgba(130, 239, 216, 0.1);
}

.service-page-hero h1 {
  max-width: 720px;
  margin: 0;
  font-size: clamp(42px, 5.7vw, 76px);
  line-height: 1.03;
  letter-spacing: -0.055em;
}

.service-page-hero p {
  max-width: 720px;
  margin: 25px 0 0;
  color: #b8d3cd;
  font-size: 15px;
  line-height: 1.9;
}

.service-hero-routes {
  display: grid;
  gap: 12px;
}

.service-hero-routes a {
  display: grid;
  grid-template-columns: 54px 1fr auto;
  gap: 15px;
  align-items: center;
  min-height: 82px;
  padding: 14px 18px;
  border: 1px solid rgba(230, 248, 243, 0.16);
  border-radius: 20px;
  color: #f1faf7;
  background: rgba(255, 255, 255, 0.06);
  backdrop-filter: blur(10px);
  transition: border-color 180ms ease, background 180ms ease, transform 180ms ease;
}

.service-hero-routes a:hover,
.service-hero-routes a:focus-visible {
  border-color: rgba(130, 239, 216, 0.55);
  background: rgba(255, 255, 255, 0.11);
  transform: translateX(5px);
}

.service-hero-routes a.is-current {
  border-color: rgba(130, 239, 216, 0.46);
  background: rgba(255, 255, 255, 0.12);
}

.service-hero-routes .service-view-switch strong {
  font-size: 24px;
}

.service-hero-routes strong {
  font-size: 26px;
  font-weight: 550;
  color: #82efd8;
}

.service-hero-routes span {
  font-size: 14px;
  font-weight: 750;
}

.service-hero-routes small {
  color: #9ebfb8;
  font-size: 11px;
}

.service-groups {
  padding-bottom: 80px;
}

.service-group {
  margin-bottom: 84px;
  scroll-margin-top: 90px;
}

.service-group-heading {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(300px, 0.62fr);
  gap: 7vw;
  align-items: end;
  margin-bottom: 28px;
  padding-bottom: 24px;
  border-bottom: 1px solid var(--service-line);
}

.service-group-heading small {
  display: block;
  margin-bottom: 9px;
  color: var(--service-teal);
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.17em;
}

.service-group-heading h2 {
  margin: 0;
  color: var(--service-ink);
  font-size: clamp(30px, 4vw, 48px);
  letter-spacing: -0.04em;
}

.service-group-heading p {
  margin: 0;
  color: #57706b;
  font-size: 13px;
  line-height: 1.85;
}

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

.service-route-card {
  position: relative;
  display: grid;
  grid-template-rows: auto 1fr auto;
  min-height: 230px;
  padding: 24px;
  overflow: hidden;
  border: 1px solid var(--service-line);
  border-radius: 25px;
  color: var(--service-ink);
  background: rgba(255, 255, 255, 0.78);
  box-shadow: 0 14px 45px rgba(13, 48, 44, 0.06);
  transition: transform 220ms ease, box-shadow 220ms ease, border-color 220ms ease;
}

.service-route-card::after {
  content: "";
  position: absolute;
  right: -34px;
  bottom: -34px;
  width: 100px;
  height: 100px;
  border: 1px solid rgba(12, 125, 112, 0.16);
  border-radius: 50%;
  transition: transform 320ms ease, background 220ms ease;
}

.service-route-card:hover,
.service-route-card:focus-visible {
  border-color: rgba(12, 125, 112, 0.38);
  box-shadow: 0 24px 65px rgba(13, 48, 44, 0.12);
  transform: translateY(-6px);
}

.service-route-card:hover::after,
.service-route-card:focus-visible::after {
  background: rgba(117, 219, 199, 0.15);
  transform: scale(1.25);
}

.service-route-card .route-index {
  color: #70918a;
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.14em;
}

.service-route-card h3 {
  max-width: 88%;
  margin: 28px 0 8px;
  font-size: clamp(20px, 2vw, 27px);
  line-height: 1.22;
  letter-spacing: -0.035em;
}

.service-route-card p {
  max-width: 92%;
  margin: 0;
  color: #647b76;
  font-size: 12px;
  line-height: 1.65;
}

.service-route-card .route-link {
  margin-top: 28px;
  color: var(--service-teal);
  font-size: 12px;
  font-weight: 800;
}

/* Service detail */
.service-detail-page {
  background: linear-gradient(180deg, #f7f8f2 0, #fff 620px);
}

.service-detail-hero {
  position: relative;
  margin: 28px auto 44px;
  padding: clamp(34px, 5vw, 66px);
  overflow: hidden;
  border: 1px solid var(--service-line);
  border-radius: 40px;
  color: #eaf5f1;
  background: linear-gradient(135deg, #0b302d, #0b5b51);
}

.service-detail-hero::after {
  content: "";
  position: absolute;
  top: -90px;
  right: -40px;
  width: 310px;
  height: 310px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(121, 229, 208, 0.2), transparent 68%);
}

.service-detail-hero > * {
  position: relative;
  z-index: 1;
}

.service-detail-hero .crumbs {
  padding: 0;
  color: #9fc4bc;
}

.service-detail-hero .crumbs a {
  color: #dceee9;
}

.service-detail-label {
  display: inline-flex;
  margin-top: 32px;
  padding: 7px 11px;
  border: 1px solid rgba(151, 230, 214, 0.35);
  border-radius: 999px;
  color: #91e3d3;
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.14em;
}

.service-detail-hero h1 {
  max-width: 880px;
  margin: 16px 0 0;
  font-size: clamp(38px, 5.2vw, 68px);
  line-height: 1.05;
  letter-spacing: -0.05em;
}

.service-detail-source-title {
  max-width: 760px;
  margin: 18px 0 0;
  color: #b8d2cc;
  font-size: 14px;
}

.service-detail-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 270px;
  gap: clamp(38px, 6vw, 82px);
  align-items: start;
  padding-bottom: 80px;
}

.service-detail-content {
  min-width: 0;
}

.service-clean-content {
  color: #263e3a;
}

.service-clean-content > section,
.service-clean-content .container > section {
  margin: 0 0 58px;
}

.service-clean-content .service-source-intro {
  margin-bottom: 46px;
  padding: 0 0 34px;
  border-bottom: 1px solid var(--service-line);
}

.service-clean-content .service-source-intro h1 {
  display: none;
}

.service-clean-content .service-source-intro p,
.service-clean-content .intro-tagline {
  margin: 0;
  color: var(--service-teal);
  font-size: clamp(20px, 2.4vw, 30px);
  font-weight: 700;
  line-height: 1.45;
}

.service-clean-content h2 {
  margin: 54px 0 22px;
  padding-top: 8px;
  color: var(--service-ink);
  font-size: clamp(28px, 3.2vw, 40px);
  line-height: 1.2;
  letter-spacing: -0.035em;
}

.service-clean-content h3 {
  margin: 34px 0 14px;
  color: var(--service-ink);
  font-size: 23px;
  line-height: 1.35;
}

.service-clean-content h4 {
  margin: 20px 0 9px;
  color: var(--service-ink);
  font-size: 17px;
}

.service-clean-content p,
.service-clean-content li {
  color: #405b56;
  font-size: 15px;
  line-height: 1.9;
}

.service-clean-content p {
  margin: 0 0 16px;
}

.service-clean-content ul,
.service-clean-content ol {
  padding-left: 24px;
}

.service-clean-content img {
  width: auto;
  max-width: 100%;
  height: auto;
  margin: 24px auto;
  border-radius: 20px;
  box-shadow: 0 18px 55px rgba(13, 48, 44, 0.09);
}

.service-clean-content table {
  display: block;
  width: 100%;
  margin: 28px 0;
  overflow-x: auto;
  border-collapse: collapse;
}

.service-clean-content th,
.service-clean-content td {
  min-width: 120px;
  padding: 12px 14px;
  border: 1px solid var(--service-line);
  text-align: left;
  font-size: 13px;
}

.service-clean-content th {
  color: var(--service-ink);
  background: #eaf3f0;
}

.service-clean-content :is(.feature-grid, .process-steps, .application-grid, .platform-container, .flow-steps, .benefits-grid, .stats-container, .workflow, .report-features, .tech-stack) {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 13px;
  margin: 24px 0 34px;
}

.service-clean-content :is(.feature-card, .process-step, .application-card, .platform-card, .step-card, .benefit-card, .stat-card, .case-study, .feature, .tech-item) {
  min-width: 0;
  padding: 20px;
  border: 1px solid var(--service-line);
  border-radius: 20px;
  background: #f8faf5;
}

.service-clean-content .highlight,
.service-clean-content .intro-description {
  margin: 24px 0;
  padding: 24px;
  border-left: 4px solid var(--service-mint);
  border-radius: 0 18px 18px 0;
  background: #edf6f3;
}

.service-clean-content .service-inline-cta,
.service-clean-content .cta-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 46px;
  margin: 12px 0;
  padding: 0 20px;
  border-radius: 999px;
  color: #fff;
  background: var(--service-ink);
  font-size: 13px;
  font-weight: 800;
}

.service-detail-aside {
  position: sticky;
  top: 88px;
  display: grid;
  gap: 22px;
}

.service-toc,
.service-contact-panel {
  padding: 22px;
  border: 1px solid var(--service-line);
  border-radius: 24px;
  background: #f8faf5;
}

.service-toc small,
.service-contact-panel small {
  display: block;
  margin-bottom: 12px;
  color: #739088;
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.14em;
}

.service-toc nav {
  display: grid;
  gap: 4px;
}

.service-toc a {
  padding: 7px 9px;
  border-radius: 9px;
  color: #49635e;
  font-size: 12px;
  line-height: 1.45;
}

.service-toc a:hover,
.service-toc a:focus-visible {
  color: var(--service-ink);
  background: #e4f1ed;
}

.service-contact-panel h3 {
  margin: 0 0 9px;
  color: var(--service-ink);
  font-size: 20px;
}

.service-contact-panel p {
  margin: 0 0 18px;
  color: #5d7771;
  font-size: 12px;
  line-height: 1.7;
}

.service-contact-panel a {
  display: inline-flex;
  min-height: 42px;
  align-items: center;
  justify-content: center;
  padding: 0 16px;
  border-radius: 999px;
  color: #fff;
  background: var(--service-ink);
  font-size: 12px;
  font-weight: 800;
}

@media (max-width: 980px) {
  .service-page-hero,
  .service-group-heading,
  .service-detail-layout {
    grid-template-columns: 1fr;
  }

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

  .service-detail-aside {
    position: static;
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 640px) {
  .service-page-hero {
    margin-top: 18px;
    margin-bottom: 56px;
    padding: 32px 22px;
    border-radius: 28px;
  }

  .service-page-hero h1 {
    font-size: 42px;
  }

  .service-group {
    margin-bottom: 64px;
  }

  .service-group-heading,
  .service-card-grid,
  .service-detail-aside {
    grid-template-columns: 1fr;
  }

  .service-route-card {
    min-height: 200px;
  }

  .service-detail-hero {
    margin-top: 18px;
    padding: 30px 22px;
    border-radius: 28px;
  }

  .service-clean-content :is(.feature-grid, .process-steps, .application-grid, .platform-container, .flow-steps, .benefits-grid, .stats-container, .workflow, .report-features, .tech-stack) {
    grid-template-columns: 1fr;
  }

  .service-clean-content h2 {
    font-size: 29px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .service-page-hero .service-particle-layer,
  .service-detail-hero .service-particle-layer {
    opacity: 0.38;
  }
}
