:root {
  --navy: #001e62;
  --navy-deep: #001342;
  --blue: #00a7e1;
  --ink: #07183b;
  --muted: #66738f;
  --line: #dfe6f0;
  --surface: #ffffff;
  --background: #f4f7fb;
  --shadow: 0 18px 42px rgba(0, 30, 98, 0.09);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  min-width: 320px;
  margin: 0;
  color: var(--ink);
  background:
    radial-gradient(circle at 8% 22%, rgba(0, 167, 225, 0.07), transparent 28rem),
    radial-gradient(circle at 92% 78%, rgba(0, 30, 98, 0.06), transparent 30rem),
    var(--background);
  font-family: "DM Sans", Arial, sans-serif;
  -webkit-font-smoothing: antialiased;
}

.topbar {
  position: relative;
  z-index: 10;
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  height: 76px;
  padding: 0 clamp(22px, 4vw, 64px);
  background: rgba(255, 255, 255, 0.95);
  border-top: 3px solid var(--navy);
  border-bottom: 1px solid var(--line);
  box-shadow: 0 3px 18px rgba(3, 25, 69, 0.04);
}

.brand {
  display: inline-flex;
  align-items: center;
  width: fit-content;
}

.brand img {
  display: block;
  width: auto;
  object-fit: contain;
}

.brand--pacd img {
  max-width: 112px;
  height: 40px;
}

.brand--primark {
  justify-self: end;
}

.brand--primark img {
  max-width: 156px;
  height: 34px;
}

.topbar__title {
  margin: 0;
  color: var(--navy);
  font-size: 15px;
  font-weight: 700;
  letter-spacing: -0.01em;
}

main {
  width: min(1180px, calc(100% - 40px));
  margin: 0 auto;
}

.hero {
  position: relative;
  padding: clamp(64px, 8vw, 104px) 0 clamp(48px, 6vw, 72px);
  text-align: center;
}

.hero::after {
  position: absolute;
  bottom: 0;
  left: 50%;
  width: 48px;
  height: 3px;
  background: var(--blue);
  border-radius: 999px;
  content: "";
  transform: translateX(-50%);
}

.hero__eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 22px;
  color: var(--navy);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.hero__eyebrow-mark {
  width: 26px;
  height: 2px;
  background: var(--blue);
}

h1,
h2,
h3,
p {
  margin-top: 0;
}

h1 {
  max-width: 760px;
  margin-right: auto;
  margin-bottom: 22px;
  margin-left: auto;
  color: var(--navy-deep);
  font-size: clamp(40px, 6vw, 68px);
  line-height: 1.04;
  letter-spacing: -0.055em;
}

h1 span {
  color: var(--blue);
}

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

.tools {
  padding: clamp(50px, 7vw, 78px) 0 76px;
}

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

.section-heading__label,
.tool-card__type {
  margin-bottom: 7px;
  color: var(--blue);
  font-size: 9px;
  font-weight: 700;
  letter-spacing: 0.13em;
  text-transform: uppercase;
}

.section-heading h2 {
  margin-bottom: 0;
  color: var(--navy-deep);
  font-size: clamp(27px, 4vw, 36px);
  letter-spacing: -0.035em;
}

.section-heading__hint {
  margin-bottom: 4px;
  color: var(--muted);
  font-size: 13px;
}

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

.tool-card {
  position: relative;
  display: grid;
  grid-template-columns: auto 1fr;
  grid-template-rows: 1fr auto;
  gap: 0 22px;
  min-height: 260px;
  padding: 32px;
  overflow: hidden;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 16px;
  box-shadow: 0 8px 24px rgba(0, 30, 98, 0.045);
  transition: border-color 180ms ease, box-shadow 180ms ease, transform 180ms ease;
}

.tool-card::before {
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 4px;
  background: linear-gradient(90deg, var(--navy), var(--blue));
  content: "";
  opacity: 0;
  transform: scaleX(0.65);
  transition: opacity 180ms ease, transform 180ms ease;
}

.tool-card:hover {
  border-color: #c9d7e9;
  box-shadow: var(--shadow);
  transform: translateY(-4px);
}

.tool-card:hover::before {
  opacity: 1;
  transform: scaleX(1);
}

.tool-card__number {
  position: absolute;
  top: 22px;
  right: 25px;
  color: #e8edf5;
  font-size: 44px;
  font-weight: 700;
  letter-spacing: -0.05em;
  line-height: 1;
}

.tool-card__icon {
  display: grid;
  grid-row: 1;
  place-items: center;
  width: 54px;
  height: 54px;
  color: var(--navy);
  background: #eef6fb;
  border-radius: 13px;
}

.tool-card__icon svg {
  width: 27px;
  height: 27px;
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 1.7;
}

.tool-card__content {
  position: relative;
  z-index: 1;
  grid-column: 2;
  grid-row: 1;
  padding-top: 3px;
}

.tool-card h3 {
  max-width: 310px;
  margin-bottom: 10px;
  color: var(--navy-deep);
  font-size: 22px;
  line-height: 1.2;
  letter-spacing: -0.025em;
}

.tool-card__content > p:last-child {
  max-width: 360px;
  margin-bottom: 24px;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.6;
}

.tool-card__link {
  position: relative;
  z-index: 2;
  display: inline-flex;
  grid-column: 1 / -1;
  grid-row: 2;
  align-items: center;
  justify-content: space-between;
  align-self: end;
  min-height: 48px;
  padding: 0 18px;
  color: #fff;
  background: var(--navy);
  border-radius: 8px;
  font-size: 14px;
  font-weight: 700;
  text-decoration: none;
  transition: background 180ms ease, box-shadow 180ms ease;
}

.tool-card__link:hover {
  background: var(--navy-deep);
  box-shadow: 0 7px 16px rgba(0, 30, 98, 0.2);
}

.tool-card__link:focus-visible,
.brand:focus-visible {
  outline: 3px solid rgba(0, 167, 225, 0.45);
  outline-offset: 3px;
}

.tool-card__link svg {
  width: 19px;
  height: 19px;
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 1.8;
  transition: transform 180ms ease;
}

.tool-card__link:hover svg {
  transform: translateX(3px);
}

footer {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 13px;
  min-height: 58px;
  padding: 14px 22px;
  color: #a7afbf;
  background: #fff;
  border-top: 1px solid var(--line);
  font-size: 9px;
  text-align: center;
}

footer p {
  margin-bottom: 0;
}
footer a {
  color: #8e99ad;
  font-weight: 700;
  text-decoration: none;
}

footer a:hover {
  color: var(--blue);
  text-decoration: underline;
  text-underline-offset: 2px;
}

footer a:focus-visible {
  outline: 3px solid rgba(0, 167, 225, 0.45);
  outline-offset: 3px;
}

.footer__divider {
  width: 1px;
  height: 12px;
  background: #ccd5e2;
}

@media (max-width: 760px) {
  .topbar {
    height: 68px;
    padding: 0 18px;
  }

  .topbar__title {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
  }

  .brand--pacd img {
    max-width: 88px;
    height: 34px;
  }

  .brand--primark {
    grid-column: 3;
  }

  .brand--primark img {
    max-width: 118px;
    height: 27px;
  }

  main {
    width: min(100% - 28px, 580px);
  }

  .hero {
    padding-top: 56px;
  }

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

  .section-heading__hint {
    display: none;
  }
}

@media (max-width: 440px) {
  .tool-card {
    grid-template-columns: 1fr;
    min-height: 290px;
    padding: 26px;
  }

  .tool-card__icon {
    margin-bottom: 20px;
  }

  .tool-card__content {
    grid-column: 1;
    grid-row: 2;
  }

  .tool-card__link {
    grid-row: 3;
  }

  footer {
    flex-direction: column;
    gap: 5px;
  }

  .footer__divider {
    display: none;
  }
}

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