:root {
  color-scheme: light;
  --page: #f4f7fb;
  --ink: #172a43;
  --muted: #465a70;
  --line: #d8e2ed;
  --white: #fff;
  --navy: #153657;
  --midnight: #0b192b;
  --sky: #91caff;
  --focus: #2866a6;
  --font: "Segoe UI", system-ui, sans-serif;
}

*, *::before, *::after {
  box-sizing: border-box;
}

body {
  margin: 0;
  min-width: 0;
  background: var(--page);
  color: var(--ink);
  font: 1rem/1.55 var(--font);
}

button {
  font: inherit;
}

a {
  color: inherit;
}

:focus-visible {
  outline: 3px solid var(--focus);
  outline-offset: 4px;
}

.skip-link {
  position: absolute;
  z-index: 3;
  top: 0.75rem;
  left: 0.75rem;
  padding: 0.6rem 1rem;
  transform: translateY(-200%);
  border-radius: 0.4rem;
  background: var(--navy);
  color: var(--white);
}

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

.shell {
  width: min(calc(100% - 5rem), 74rem);
  margin-inline: auto;
}

.site-header {
  border-bottom: 1px solid var(--line);
}

.header-inner {
  min-height: 4.5rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.wordmark {
  display: flex;
  align-items: center;
  gap: 0.7rem;
  font-weight: 650;
  letter-spacing: -0.025em;
}

.brand-mark {
  display: block;
  width: 2.375rem;
  height: 2.375rem;
  flex: none;
}

.nav-link {
  display: inline-block;
  padding: 0.55rem 0.75rem;
  border-radius: 0.45rem;
  color: var(--muted);
  font-size: 0.9375rem;
  font-weight: 600;
  text-decoration: none;
}

.nav-link:hover {
  background: #e8eff7;
  color: var(--ink);
}

.hero {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  display: grid;
  align-items: center;
  min-height: 23rem;
  margin-top: 2rem;
  padding: 3rem clamp(2rem, 5vw, 4.25rem);
  border-radius: 1rem;
  background: var(--midnight);
  color: var(--white);
}

.hero-image {
  position: absolute;
  z-index: -2;
  inset: 0 0 0 auto;
  width: 68%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}

.hero::before {
  position: absolute;
  z-index: -1;
  inset: 0;
  background: linear-gradient(90deg, var(--midnight) 27%, rgb(11 25 43 / 95%) 34%, rgb(11 25 43 / 36%) 51%, transparent 68%);
  content: "";
}

.hero-copy {
  max-width: 32rem;
}

.hero h1 {
  margin: 0;
  font-size: clamp(3.25rem, 6vw, 5.125rem);
  font-weight: 700;
  letter-spacing: -0.066em;
  line-height: 0.99;
}

.hero h1 span {
  display: block;
  color: var(--sky);
}

.hero-description {
  margin: 1.35rem 0 0;
  color: #dce9f6;
  font-size: 1.0625rem;
}

.tools {
  margin-top: 2.65rem;
  scroll-margin-top: 1rem;
}

.tools h2 {
  margin: 0 0 1rem;
  font-size: clamp(1.55rem, 3vw, 1.875rem);
  font-weight: 700;
  letter-spacing: -0.045em;
  line-height: 1.2;
}

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

.tool-card {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  min-width: 0;
  padding: 1.525rem;
  border: 1px solid var(--line);
  border-radius: 0.8rem;
  background: var(--white);
  box-shadow: 0 2px 4px rgb(21 54 87 / 4%);
}

.tool-card-planned {
  background: #eef3f8;
  box-shadow: none;
}

.tool-icon {
  display: grid;
  width: 2.75rem;
  height: 2.75rem;
  margin-bottom: 0.8rem;
  place-items: center;
  border-radius: 0.65rem;
  background: #dbeeff;
  color: #1c568f;
}

.tool-card-planned .tool-icon {
  background: #e1e9f1;
  color: #485c70;
}

.tool-icon svg {
  width: 1.375rem;
  height: 1.375rem;
}

.tool-card h3 {
  margin: 0 0 0.375rem;
  font-size: 1.3125rem;
  font-weight: 700;
  letter-spacing: -0.035em;
  line-height: 1.2;
}

.tool-card p {
  max-width: 27rem;
  margin: 0 0 1.15rem;
  color: var(--muted);
}

.tool-action {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  min-height: 2.75rem;
  margin-top: auto;
  padding: 0.55rem 0.85rem;
  border: 1px solid transparent;
  border-radius: 0.5rem;
  background: var(--navy);
  color: var(--white);
  font-size: 0.9375rem;
  font-weight: 650;
  text-decoration: none;
}

a.tool-action:hover {
  background: #214b74;
}

.tool-action svg {
  width: 1.05rem;
  height: 1.05rem;
  flex: none;
}

.tool-action:disabled {
  border-color: var(--line);
  background: #e6edf4;
  color: #485c70;
}

.site-footer {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  margin-top: 2.25rem;
  padding-block: 1rem 1.3rem;
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: 0.875rem;
}

.site-footer span:last-child {
  flex: none;
  font-variant-numeric: tabular-nums;
}

@media (max-width: 54rem) {
  .shell {
    width: calc(100% - 3rem);
  }

  .hero-image {
    width: 76%;
    object-position: 80% 50%;
  }
}

@media (max-width: 42rem) {
  .shell {
    width: calc(100% - 2rem);
  }

  .header-inner {
    min-height: 3.875rem;
  }

  .hero {
    align-items: start;
    min-height: 27.5rem;
    margin-top: 1rem;
    padding: 1.8rem 1.5rem;
  }

  .hero-image {
    inset: auto 0 0;
    width: 100%;
    height: 59%;
    object-position: right center;
  }

  .hero::before {
    background: linear-gradient(180deg, var(--midnight) 40%, rgb(11 25 43 / 68%) 50%, transparent 67%);
  }

  .hero h1 {
    font-size: clamp(2.45rem, 9vw, 3.85rem);
  }

  .hero-description {
    max-width: 19rem;
    margin-top: 0.95rem;
  }

  .tools {
    margin-top: 1.85rem;
  }

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

  .tool-card {
    padding: 1.25rem;
  }
}
