:root {
  --brand: #2878ff;
  --brand-dark: #155fd6;
  --brand-soft: #edf4ff;
  --text: #111827;
  --muted: #667085;
  --border: #e5eaf1;
  --surface: #ffffff;
  --background: #f5f8fc;
  --shadow: 0 18px 50px rgba(18, 40, 76, 0.09);
  --shadow-hover: 0 24px 64px rgba(18, 40, 76, 0.16);
}

* {
  box-sizing: border-box;
}

html {
  min-height: 100%;
  background: var(--background);
}

body {
  min-height: 100vh;
  margin: 0;
  color: var(--text);
  background:
    radial-gradient(circle at 15% 10%, rgba(40, 120, 255, 0.12), transparent 30%),
    radial-gradient(circle at 90% 90%, rgba(40, 120, 255, 0.08), transparent 32%),
    var(--background);
  font-family: Inter, ui-sans-serif, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Arial, sans-serif;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  background-image:
    linear-gradient(rgba(40, 120, 255, 0.025) 1px, transparent 1px),
    linear-gradient(90deg, rgba(40, 120, 255, 0.025) 1px, transparent 1px);
  background-size: 38px 38px;
  mask-image: linear-gradient(to bottom, rgba(0, 0, 0, 0.65), transparent 80%);
}

.page-shell {
  position: relative;
  z-index: 1;
  min-height: 100vh;
  display: grid;
  place-items: center;
  padding: 42px 22px;
}

.portal {
  width: min(1080px, 100%);
}

.portal-header {
  max-width: 720px;
  margin: 0 auto 34px;
  text-align: center;
}

.brand {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 30px;
}

.brand-logo {
  display: block;
  width: clamp(150px, 18vw, 190px);
  height: auto;
  max-height: 58px;
  object-fit: contain;
}

.eyebrow {
  margin: 0 0 12px;
  color: var(--brand);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.18em;
}

h1 {
  margin: 0;
  font-size: clamp(34px, 5vw, 58px);
  line-height: 1.08;
  letter-spacing: -0.04em;
}

.intro {
  max-width: 620px;
  margin: 18px auto 0;
  color: var(--muted);
  font-size: clamp(15px, 2vw, 18px);
  line-height: 1.7;
}

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

.service-card {
  position: relative;
  min-height: 340px;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  overflow: hidden;
  padding: 32px;
  color: inherit;
  text-decoration: none;
  background: rgba(255, 255, 255, 0.94);
  border: 1px solid rgba(229, 234, 241, 0.96);
  border-radius: 24px;
  box-shadow: var(--shadow);
  transition:
    transform 220ms ease,
    box-shadow 220ms ease,
    border-color 220ms ease;
}

.service-card::after {
  content: "";
  position: absolute;
  width: 180px;
  height: 180px;
  top: -95px;
  right: -75px;
  border-radius: 50%;
  background: rgba(40, 120, 255, 0.08);
  transition: transform 260ms ease, background 260ms ease;
}

.service-card:hover,
.service-card:focus-visible {
  transform: translateY(-7px);
  border-color: rgba(40, 120, 255, 0.35);
  box-shadow: var(--shadow-hover);
}

.service-card:hover::after,
.service-card:focus-visible::after {
  transform: scale(1.18);
  background: rgba(40, 120, 255, 0.12);
}

.service-card:focus-visible {
  outline: 3px solid rgba(40, 120, 255, 0.23);
  outline-offset: 4px;
}

.card-icon {
  width: 62px;
  height: 62px;
  display: grid;
  place-items: center;
  flex: 0 0 auto;
  margin-bottom: 28px;
  color: var(--brand);
  background: var(--brand-soft);
  border-radius: 18px;
}

.card-icon svg {
  width: 34px;
  height: 34px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.card-content {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.card-kicker {
  color: var(--brand);
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.16em;
}

.card-title {
  max-width: 390px;
  font-size: clamp(24px, 3vw, 31px);
  font-weight: 750;
  line-height: 1.18;
  letter-spacing: -0.025em;
}

.card-description {
  max-width: 390px;
  color: var(--muted);
  font-size: 15px;
  line-height: 1.7;
}

.card-action {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  margin-top: auto;
  padding-top: 32px;
  color: var(--brand-dark);
  font-size: 15px;
  font-weight: 750;
}

.card-action svg {
  width: 18px;
  height: 18px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
  transition: transform 180ms ease;
}

.service-card:hover .card-action svg,
.service-card:focus-visible .card-action svg {
  transform: translateX(4px);
}

.portal-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  margin-top: 26px;
  padding: 0 4px;
  color: #7b8494;
  font-size: 13px;
}

.security-note {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.security-note svg {
  width: 15px;
  height: 15px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.6;
  stroke-linecap: round;
  stroke-linejoin: round;
}

@media (max-width: 760px) {
  .page-shell {
    display: block;
    padding: 28px 16px;
  }

  .portal-header {
    margin-bottom: 26px;
  }

  .brand {
    margin-bottom: 24px;
  }

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

  .service-card {
    min-height: 0;
    padding: 25px;
    border-radius: 20px;
  }

  .card-icon {
    width: 56px;
    height: 56px;
    margin-bottom: 22px;
    border-radius: 16px;
  }

  .card-icon svg {
    width: 31px;
    height: 31px;
  }

  .card-action {
    padding-top: 24px;
  }

  .portal-footer {
    flex-direction: column;
    justify-content: center;
    gap: 8px;
    text-align: center;
  }
}

@media (max-width: 420px) {
  h1 {
    font-size: 32px;
  }

  .intro {
    font-size: 15px;
  }

  .service-card {
    padding: 22px;
  }

  .card-title {
    font-size: 24px;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    transition-duration: 0.01ms !important;
  }
}
