:root {
  color-scheme: dark;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  background: #090b0f;
  color: #f4f5f7;

  --background: #090b0f;
  --surface: #11151b;
  --surface-hover: #171d25;
  --line: #29313d;
  --text: #f4f5f7;
  --muted: #a8b1be;
  --accent: #8ed8ff;
  --accent-strong: #c4ebff;
  --page-width: 1180px;
}

* {
  box-sizing: border-box;
}

html {
  min-width: 320px;
  background: var(--background);
}

body {
  min-height: 100vh;
  margin: 0;
  background:
    radial-gradient(circle at 80% 10%, rgb(41 93 122 / 22%), transparent 34rem),
    var(--background);
  color: var(--text);
  font-size: 1rem;
  line-height: 1.6;
}

a {
  color: inherit;
}

img {
  display: block;
  max-width: 100%;
}

.page-shell,
.site-footer {
  width: min(100% - 40px, var(--page-width));
  margin-inline: auto;
}

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

.page-shell {
  padding-block: 16px 64px;
}

.hero {
  position: relative;
}

.hero__content {
  position: absolute;
  top: 50%;
  left: clamp(24px, 6vw, 72px);
  z-index: 2;
  max-width: 570px;
  transform: translateY(-50%);
}

.eyebrow {
  margin: 0 0 12px;
  color: var(--accent);
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.15em;
  text-transform: uppercase;
}

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

h1 {
  max-width: 12ch;
  margin-bottom: 22px;
  font-size: clamp(2.7rem, 7vw, 5.8rem);
  line-height: 0.98;
  letter-spacing: -0.055em;
}

.hero__intro {
  max-width: 48ch;
  margin-bottom: 0;
  color: var(--muted);
  font-size: clamp(1.05rem, 2vw, 1.25rem);
}

.hero__visual {
  position: relative;
  margin: 0;
}

.hero__visual::after {
  position: absolute;
  inset: 0;
  border-radius: 20px;
  background: linear-gradient(90deg, rgb(3 7 10 / 82%) 0%, rgb(3 7 10 / 48%) 43%, transparent 70%);
  content: "";
  pointer-events: none;
}

.hero__visual::before {
  position: absolute;
  inset: -12px 12px 12px -12px;
  z-index: -1;
  border: 1px solid #315166;
  border-radius: 24px;
  content: "";
}

.hero__visual img {
  width: 100%;
  aspect-ratio: 3 / 2;
  border-radius: 20px;
  object-fit: cover;
}

.tools {
  margin-top: 24px;
}

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

.section-heading .eyebrow {
  margin-bottom: 6px;
}

h2 {
  margin-bottom: 0;
  font-size: clamp(1.4rem, 2.5vw, 1.7rem);
  line-height: 1.1;
  letter-spacing: -0.035em;
}

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

.tool-card {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  gap: 18px;
  min-height: 210px;
  border: 1px solid var(--line);
  border-radius: 18px;
  padding: clamp(22px, 4vw, 34px);
  background: var(--surface);
  text-decoration: none;
  transition: border-color 160ms ease, background 160ms ease, transform 160ms ease;
}

.tool-card:hover {
  border-color: #4a6172;
  background: var(--surface-hover);
  transform: translateY(-3px);
}

.tool-card__number {
  color: var(--accent);
  font-family: ui-monospace, "Cascadia Code", Consolas, monospace;
  font-size: 0.8rem;
}

.tool-card__content {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.tool-card__content strong {
  font-size: clamp(1.05rem, 2vw, 1.25rem);
  line-height: 1.2;
}

.tool-card__content > span {
  color: var(--muted);
}

.tool-card__arrow {
  align-self: end;
  color: var(--accent-strong);
  font-size: 1.5rem;
}

.site-footer {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  border-top: 1px solid var(--line);
  padding-block: 24px 32px;
  color: var(--muted);
  font-size: 0.85rem;
}

@media (max-width: 820px) {
  .page-shell {
    padding-top: 14px;
  }

  .hero__content {
    right: 32px;
    left: 32px;
    max-width: 570px;
  }

  .hero__visual {
    width: 100%;
  }

  .hero__visual img {
    min-height: 430px;
  }

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

@media (max-width: 520px) {
  .page-shell,
  .site-footer {
    width: min(100% - 24px, var(--page-width));
  }

  .page-shell {
    padding-block: 10px 48px;
  }

  h1 {
    font-size: clamp(2.5rem, 15vw, 4rem);
  }

  .hero__visual::before {
    inset: -7px 7px 7px -7px;
    border-radius: 18px;
  }

  .hero__visual img {
    min-height: 410px;
    border-radius: 14px;
  }

  .hero__visual::after {
    border-radius: 14px;
    background: linear-gradient(90deg, rgb(3 7 10 / 86%) 0%, rgb(3 7 10 / 56%) 72%, rgb(3 7 10 / 24%) 100%);
  }

  .hero__content {
    right: 18px;
    left: 18px;
  }

  .tools {
    margin-top: 18px;
  }

  .tool-card {
    grid-template-columns: auto minmax(0, 1fr);
    min-height: 0;
  }

  .tool-card__arrow {
    display: none;
  }

  .site-footer {
    flex-direction: column;
    gap: 4px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .tool-card {
    transition: none;
  }
}
