:root {
  --blue-500: #305ddd;
  --blue-400: #5481e6;
  --off-white: #fcfbff;
  --white: #ffffff;
  --text: #1d1c1c;
  --muted: #8e8d93;
  --border: rgba(48, 93, 221, 0.12);
  --shadow: 0 20px 50px rgba(63, 86, 152, 0.06);
  --radius-lg: 24px;
  --radius-sm: 999px;
  --page-width: 860px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100vh;
  font-family: 'Lato', 'Segoe UI', sans-serif;
  color: var(--text);
  background:
    radial-gradient(circle at top right, rgba(84, 129, 230, 0.14), transparent 28%),
    linear-gradient(180deg, #ffffff 0%, var(--off-white) 100%);
}

a {
  color: inherit;
  text-decoration: none;
}

button,
input,
textarea,
select {
  font: inherit;
}

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

.site-header {
  display: flex;
  justify-content: flex-start;
  align-items: center;
  min-height: 48px;
}

.site-wordmark {
  color: var(--blue-500);
  font-size: 0.92rem;
  font-weight: 700;
  letter-spacing: 0.03em;
}

.tool-stage {
  padding-top: 72px;
}

.intro-text {
  margin: 0 0 28px;
  max-width: 34ch;
  color: var(--text);
  font-size: 1.02rem;
  line-height: 1.7;
}

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

.tools-grid {
  display: grid;
  gap: 20px;
}

.tool-link {
  display: inline-flex;
  align-items: center;
  width: fit-content;
  color: var(--blue-500);
  font-size: 1rem;
  font-weight: 700;
  transition: color 180ms ease;
}

.tool-link:hover {
  color: var(--blue-400);
}

.tool-card {
  display: grid;
  gap: 18px;
  padding: 32px;
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  background: rgba(255, 255, 255, 0.9);
  box-shadow: var(--shadow);
  transition:
    transform 180ms ease,
    box-shadow 180ms ease;
}

.tool-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 22px 52px rgba(63, 86, 152, 0.08);
}

.tool-card h2 {
  margin: 0;
  font-size: clamp(1.5rem, 4vw, 1.9rem);
  line-height: 1.15;
  letter-spacing: -0.03em;
}

.tool-card p {
  margin: 0;
  max-width: 38ch;
  color: var(--text);
  font-size: 1rem;
  line-height: 1.7;
}

@media (max-width: 960px) {
  .page-shell {
    width: min(calc(100% - 32px), var(--page-width));
    padding-top: 28px;
    padding-bottom: 44px;
  }
}

@media (max-width: 640px) {
  .page-shell {
    width: min(calc(100% - 20px), var(--page-width));
    padding-top: 20px;
    padding-bottom: 32px;
  }

  .site-header {
    min-height: 40px;
  }

  .site-wordmark {
    font-size: 0.9rem;
  }

  .tool-stage {
    padding-top: 48px;
  }

  .tool-card {
    padding: 24px;
  }
}
