:root {
  color-scheme: light;
  --ink: #17233b;
  --muted: #61708a;
  --line: #e4eaf2;
  --surface: #ffffff;
  --canvas: #f3f6fb;
  --navy: #101b31;
  --teal: #77e0c1;
  --shadow: 0 16px 38px rgba(31, 48, 77, 0.08);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", "Microsoft YaHei", sans-serif;
}

* {
  box-sizing: border-box;
}

html {
  min-width: 320px;
  background: var(--canvas);
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--ink);
  background:
    radial-gradient(ellipse at 12% 34%, rgba(107, 160, 255, 0.08), transparent 30rem),
    var(--canvas);
}

a {
  color: inherit;
}

a:focus-visible,
.skip-link:focus-visible {
  outline: 3px solid #168b75;
  outline-offset: 4px;
}

.skip-link {
  position: absolute;
  z-index: 10;
  top: 0.75rem;
  left: 0.75rem;
  padding: 0.7rem 1rem;
  transform: translateY(-180%);
  border-radius: 0.7rem;
  color: #fff;
  background: #101b31;
  text-decoration: none;
}

.skip-link:focus {
  transform: translateY(0);
}

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

.hero {
  position: relative;
  overflow: hidden;
  min-height: 300px;
  margin-top: 34px;
  padding: 42px 48px 38px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 28px;
  color: #f5f8ff;
  background: linear-gradient(118deg, #101b31 0%, #172b48 60%, #16464e 145%);
  box-shadow: 0 24px 60px rgba(18, 34, 57, 0.18);
}

.hero-topline,
.card-topline,
.site-footer,
.section-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.hero-topline {
  position: relative;
  z-index: 1;
  justify-content: flex-start;
  gap: 12px;
}

.brand-mark {
  display: grid;
  width: 34px;
  height: 34px;
  place-items: center;
  border: 1px solid rgba(119, 224, 193, 0.55);
  border-radius: 11px;
  color: var(--teal);
  font-size: 18px;
  font-weight: 800;
}

.eyebrow {
  margin: 0;
  color: #a9bacf;
  font-size: 0.7rem;
  font-weight: 750;
  letter-spacing: 0.17em;
}

.hero h1 {
  position: relative;
  z-index: 1;
  max-width: 720px;
  margin: 34px 0 10px;
  font-size: clamp(2.1rem, 5vw, 3.7rem);
  font-weight: 760;
  letter-spacing: -0.055em;
  line-height: 1.1;
}

.hero h1 span {
  color: var(--teal);
}

.hero-copy {
  position: relative;
  z-index: 1;
  max-width: 590px;
  margin: 0;
  color: #c2cee0;
  font-size: 1rem;
  line-height: 1.8;
}

.hero-note {
  position: relative;
  z-index: 1;
  display: inline-flex;
  align-items: center;
  gap: 9px;
  margin-top: 25px;
  padding: 9px 13px;
  border: 1px solid rgba(221, 235, 248, 0.15);
  border-radius: 999px;
  color: #d5e1ef;
  background: rgba(255, 255, 255, 0.055);
  font-size: 0.78rem;
}

.note-dot,
.badge-dot {
  width: 7px;
  height: 7px;
  flex: 0 0 7px;
  border-radius: 50%;
  background: #70d9b5;
}

.hero-orbit {
  position: absolute;
  right: -110px;
  bottom: -285px;
  width: 480px;
  height: 480px;
  border: 1px solid rgba(161, 221, 224, 0.13);
  border-radius: 50%;
  pointer-events: none;
}

.hero-orbit-one::before,
.hero-orbit-two::before {
  position: absolute;
  inset: 36px;
  border: 1px solid rgba(161, 221, 224, 0.1);
  border-radius: inherit;
  content: "";
}

.hero-orbit-two {
  right: -58px;
  bottom: -332px;
  width: 480px;
  height: 480px;
  border-color: rgba(119, 224, 193, 0.13);
}

.main-content {
  padding: 54px 0 30px;
}

.section-heading {
  align-items: flex-end;
  margin: 0 2px 22px;
}

.section-eyebrow {
  margin-bottom: 8px;
  color: #74839a;
  font-size: 0.65rem;
}

.section-heading h2 {
  margin: 0;
  font-size: 1.55rem;
  letter-spacing: -0.04em;
}

.section-hint {
  margin: 0 0 3px;
  color: var(--muted);
  font-size: 0.82rem;
}

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

.service-card {
  grid-column: span 2;
  display: flex;
  min-height: 230px;
  flex-direction: column;
  padding: 22px;
  border: 1px solid var(--line);
  border-radius: 19px;
  background: var(--surface);
  box-shadow: var(--shadow);
}

.service-card:nth-child(4) {
  grid-column: 2 / span 2;
}

.card-topline {
  gap: 10px;
}

.card-index {
  color: #9aa7b9;
  font-size: 0.75rem;
  font-weight: 750;
  letter-spacing: 0.08em;
}

.badge {
  display: inline-flex;
  min-height: 26px;
  align-items: center;
  gap: 7px;
  padding: 4px 9px;
  border: 1px solid transparent;
  border-radius: 999px;
  font-size: 0.68rem;
  font-weight: 700;
  white-space: nowrap;
}

.badge-public {
  border-color: #c6eddf;
  color: #17694e;
  background: #edfaf5;
}

.badge-private {
  border-color: #d6e2f5;
  color: #365b8b;
  background: #f0f5fd;
}

.badge-private .badge-dot {
  background: #6e94c9;
}

.badge-pending {
  border-color: #f0e0bd;
  color: #806022;
  background: #fff8e9;
}

.badge-info {
  border-color: #e2d9f4;
  color: #66508c;
  background: #f6f2fc;
}

.service-card h3 {
  margin: 22px 0 8px;
  font-size: 1.2rem;
  letter-spacing: -0.03em;
}

.service-card > p {
  margin: 0;
  color: var(--muted);
  font-size: 0.86rem;
  line-height: 1.75;
}

.service-card .card-footnote {
  margin-top: auto;
  padding-top: 15px;
  color: #718098;
  font-size: 0.75rem;
}

.card-vault {
  border-color: #d7e8e3;
  background: linear-gradient(155deg, #fff 0%, #f8fffc 100%);
}

.card-action {
  display: flex;
  min-height: 42px;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-top: auto;
  padding: 10px 13px;
  border: 1px solid #d7e9e2;
  border-radius: 11px;
  color: #155d49;
  background: #f2fbf7;
  font-size: 0.8rem;
  font-weight: 730;
  text-decoration: none;
  transition: border-color 150ms ease, background-color 150ms ease, transform 150ms ease;
}

.card-action:hover {
  transform: translateY(-1px);
  border-color: #a7d8c7;
  background: #eaf8f2;
}

.action-arrow {
  font-size: 1.05rem;
}

.card-pending {
  background: linear-gradient(150deg, #fff 0%, #fffdf7 100%);
}

.site-footer {
  gap: 16px;
  padding: 22px 2px 30px;
  border-top: 1px solid #e1e7ef;
  color: #78869a;
  font-size: 0.72rem;
}

@media (max-width: 760px) {
  .page-shell {
    width: min(100% - 32px, 600px);
  }

  .hero {
    min-height: 275px;
    margin-top: 16px;
    padding: 30px 25px;
    border-radius: 22px;
  }

  .hero h1 {
    margin-top: 31px;
  }

  .hero-orbit {
    right: -245px;
    bottom: -335px;
  }

  .hero-orbit-two {
    right: -210px;
    bottom: -373px;
  }

  .main-content {
    padding-top: 40px;
  }

  .section-heading {
    align-items: flex-start;
    flex-direction: column;
    gap: 8px;
  }

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

  .service-card,
  .service-card:nth-child(4) {
    grid-column: auto;
    min-height: 230px;
    padding: 17px;
  }

  .service-card:first-child {
    grid-column: 1 / -1;
    min-height: 205px;
  }

  .badge {
    padding-inline: 7px;
    font-size: 0.64rem;
  }
}

@media (max-width: 430px) {
  .page-shell {
    width: calc(100% - 24px);
  }

  .hero {
    padding: 27px 20px;
  }

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

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

  .service-card,
  .service-card:nth-child(4),
  .service-card:first-child {
    grid-column: 1;
    min-height: 196px;
  }

  .site-footer {
    align-items: flex-start;
    flex-direction: column;
    gap: 7px;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    transition-duration: 0.01ms !important;
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
  }
}
