:root {
  --portal-navy: #081f39;
  --portal-navy-deep: #010e29;
  --portal-teal: #15899b;
  --portal-teal-bright: #48a2b0;
  --portal-teal-soft: #eaf6f8;
  --portal-surface: #ffffff;
  --portal-bg: #f6f9fc;
  --portal-text: #081f39;
  --portal-muted: #5d687b;
  --portal-border: #dce5ed;
  --portal-shadow: 0 18px 45px -28px rgba(8, 31, 57, .45);
  --portal-font: "Inter", system-ui, -apple-system, "Segoe UI", sans-serif;
}

* {
  box-sizing: border-box;
}

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

.portal-body {
  min-height: 100vh;
  margin: 0;
  color: var(--portal-text);
  background:
    radial-gradient(circle at 85% 0%, rgba(72, 162, 176, .16), transparent 30rem),
    linear-gradient(180deg, #fff 0, var(--portal-bg) 34rem);
  font-family: var(--portal-font);
  -webkit-font-smoothing: antialiased;
}

.portal-shell {
  width: min(1180px, calc(100% - 40px));
  min-height: 100vh;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
}

.portal-header {
  min-height: 86px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  border-bottom: 1px solid rgba(220, 229, 237, .8);
}

.portal-brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  color: inherit;
  text-decoration: none;
}

.portal-brand img {
  display: block;
  filter: drop-shadow(0 7px 12px rgba(8, 31, 57, .16));
}

.portal-brand span {
  display: grid;
  gap: 1px;
}

.portal-brand strong {
  font-size: 18px;
  letter-spacing: -.025em;
}

.portal-brand small,
.portal-header-label {
  color: var(--portal-muted);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: .055em;
  text-transform: uppercase;
}

.portal-header-label {
  padding: 7px 11px;
  border: 1px solid var(--portal-border);
  border-radius: 999px;
  background: rgba(255, 255, 255, .7);
}

.portal-hero {
  max-width: 790px;
  padding: 104px 0 76px;
}

.portal-eyebrow,
.portal-kicker,
.portal-tool-meta {
  color: var(--portal-teal);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: .075em;
  text-transform: uppercase;
}

.portal-hero h1 {
  max-width: 720px;
  margin: 16px 0 20px;
  font-size: clamp(42px, 6vw, 68px);
  line-height: 1.04;
  letter-spacing: -.055em;
}

.portal-hero p {
  max-width: 680px;
  margin: 0;
  color: var(--portal-muted);
  font-size: clamp(17px, 2vw, 20px);
  line-height: 1.7;
}

.portal-tools {
  padding-bottom: 88px;
}

.portal-section-heading {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 20px;
  margin-bottom: 24px;
}

.portal-section-heading h2 {
  margin: 6px 0 0;
  font-size: 26px;
  letter-spacing: -.035em;
}

.portal-tool-count {
  color: var(--portal-muted);
  font-size: 13px;
}

.portal-tool-grid {
  display: grid;
  grid-template-columns: minmax(0, 700px);
}

.portal-tool-card {
  position: relative;
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 20px;
  min-height: 190px;
  padding: 30px;
  overflow: hidden;
  color: inherit;
  text-decoration: none;
  border: 1px solid var(--portal-border);
  border-radius: 18px;
  background: rgba(255, 255, 255, .9);
  box-shadow: var(--portal-shadow);
  transition: transform .18s ease, border-color .18s ease, box-shadow .18s ease;
}

.portal-tool-card::after {
  content: "";
  position: absolute;
  inset: auto -50px -80px auto;
  width: 190px;
  height: 190px;
  border-radius: 50%;
  background: rgba(21, 137, 155, .08);
}

.portal-tool-card:hover,
.portal-tool-card:focus-visible {
  transform: translateY(-3px);
  border-color: rgba(21, 137, 155, .45);
  box-shadow: 0 24px 55px -30px rgba(8, 31, 57, .55);
}

.portal-tool-card:focus-visible {
  outline: 3px solid rgba(21, 137, 155, .2);
  outline-offset: 3px;
}

.portal-tool-icon {
  width: 64px;
  height: 64px;
  display: grid;
  place-items: center;
  border-radius: 16px;
  color: var(--portal-teal);
  background: var(--portal-teal-soft);
}

.portal-tool-icon svg {
  width: 31px;
  height: 31px;
  stroke: currentColor;
  stroke-width: 1.7;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.portal-tool-copy {
  display: grid;
  gap: 8px;
}

.portal-tool-copy strong {
  font-size: 22px;
  letter-spacing: -.025em;
}

.portal-tool-copy > span:last-child {
  max-width: 520px;
  color: var(--portal-muted);
  font-size: 14px;
  line-height: 1.65;
}

.portal-tool-arrow {
  position: relative;
  z-index: 1;
  width: 42px;
  height: 42px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  color: #fff;
  background: var(--portal-navy);
  font-size: 22px;
  transition: background .18s ease, transform .18s ease;
}

.portal-tool-card:hover .portal-tool-arrow {
  transform: translateX(3px);
  background: var(--portal-teal);
}

.portal-footer {
  display: flex;
  justify-content: space-between;
  gap: 24px;
  margin-top: auto;
  padding: 24px 0 32px;
  color: var(--portal-muted);
  border-top: 1px solid var(--portal-border);
  font-size: 12px;
}

@media (max-width: 640px) {
  .portal-shell {
    width: min(100% - 28px, 1180px);
  }

  .portal-header {
    min-height: 76px;
  }

  .portal-header-label {
    display: none;
  }

  .portal-hero {
    padding: 72px 0 58px;
  }

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

  .portal-section-heading {
    align-items: start;
  }

  .portal-tool-card {
    grid-template-columns: auto 1fr;
    gap: 16px;
    min-height: 0;
    padding: 22px;
  }

  .portal-tool-icon {
    width: 52px;
    height: 52px;
  }

  .portal-tool-arrow {
    display: none;
  }

  .portal-tool-copy strong {
    font-size: 19px;
  }

  .portal-footer {
    flex-direction: column;
    gap: 7px;
  }
}
