:root {
  color-scheme: light;
  --bg: #efefed;
  --paper: #ffffff;
  --ink: #17202a;
  --muted: #65717f;
  --line: #d8dce0;
  --head: #303234;
  --accent: #ed1c24;
  --soft: #f6f5f2;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  min-height: 100vh;
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: Arial, Helvetica, sans-serif;
  font-size: 14px;
  line-height: 1.5;
}

a {
  color: inherit;
}

.skip-link {
  position: absolute;
  top: -60px;
  left: 16px;
  z-index: 20;
  padding: 10px 14px;
  border-radius: 4px;
  background: var(--head);
  color: #ffffff;
  font-weight: 700;
  text-decoration: none;
}

.skip-link:focus {
  top: 12px;
}

.site-header {
  border-top: 4px solid var(--accent);
  border-bottom: 1px solid var(--line);
  background: var(--paper);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  width: min(1120px, calc(100% - 48px));
  min-height: 72px;
  margin: 0 auto;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 14px;
  text-decoration: none;
}

.brand-logo {
  display: block;
  width: 146px;
  height: auto;
}

.brand-divider {
  width: 1px;
  height: 28px;
  background: var(--line);
}

.brand-name {
  color: var(--head);
  font-size: 17px;
  font-weight: 700;
  letter-spacing: -0.01em;
}

.internal-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 11px;
  border: 1px solid #e7d4d5;
  border-radius: 999px;
  background: #fbf1f1;
  color: #8d171d;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  white-space: nowrap;
}

.internal-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--accent);
}

.hero {
  position: relative;
  overflow: hidden;
  background: var(--head);
  color: #ffffff;
}

.hero::after {
  position: absolute;
  top: -170px;
  right: -80px;
  width: 460px;
  height: 460px;
  border: 1px solid rgba(255, 255, 255, 0.09);
  border-radius: 50%;
  box-shadow: 0 0 0 70px rgba(255, 255, 255, 0.025), 0 0 0 140px rgba(255, 255, 255, 0.018);
  content: "";
  pointer-events: none;
}

.hero-inner {
  position: relative;
  z-index: 1;
  width: min(1120px, calc(100% - 48px));
  margin: 0 auto;
  padding: 58px 0 62px;
}

.eyebrow {
  margin: 0 0 8px;
  color: var(--accent);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.eyebrow-light {
  color: #ff6b70;
}

.hero h1 {
  max-width: 720px;
  margin: 0;
  font-size: clamp(34px, 5vw, 54px);
  font-weight: 700;
  letter-spacing: -0.035em;
  line-height: 1.05;
}

.hero-copy {
  max-width: 620px;
  margin: 18px 0 0;
  color: rgba(255, 255, 255, 0.72);
  font-size: 16px;
  line-height: 1.6;
}

.tools-section {
  width: min(1120px, calc(100% - 48px));
  margin: 0 auto;
  padding: 46px 0 64px;
}

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

.section-head h2 {
  margin: 0;
  color: var(--head);
  font-size: 26px;
  letter-spacing: -0.02em;
}

.section-note {
  margin: 0 0 3px;
  color: var(--muted);
  font-size: 12px;
}

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

.tool-card {
  position: relative;
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: start;
  gap: 14px;
  min-height: 176px;
  padding: 22px 20px;
  border: 1px solid var(--line);
  border-top: 3px solid transparent;
  border-radius: 6px;
  background: var(--paper);
  text-decoration: none;
  transition: transform 160ms ease, border-color 160ms ease, box-shadow 160ms ease;
}

.tool-card:hover {
  transform: translateY(-3px);
  border-color: #c6cbd0;
  border-top-color: var(--accent);
  box-shadow: 0 14px 30px rgba(23, 32, 42, 0.08);
}

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

.tool-icon {
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  border-radius: 5px;
  background: var(--soft);
  color: var(--accent);
}

.tool-icon svg {
  width: 23px;
  height: 23px;
}

.tool-copy {
  display: flex;
  flex-direction: column;
  min-width: 0;
}

.tool-title {
  color: var(--head);
  font-size: 18px;
  font-weight: 700;
  letter-spacing: -0.01em;
}

.tool-description {
  margin-top: 6px;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.5;
}

.tool-path {
  margin-top: auto;
  padding-top: 18px;
  color: #8a939c;
  font-family: "Courier New", monospace;
  font-size: 11px;
  letter-spacing: 0.01em;
}

.tool-arrow {
  display: grid;
  place-items: center;
  width: 30px;
  height: 30px;
  margin-top: 6px;
  border: 1px solid var(--line);
  border-radius: 50%;
  color: var(--muted);
  transition: background 160ms ease, border-color 160ms ease, color 160ms ease;
}

.tool-arrow svg {
  width: 15px;
  height: 15px;
}

.tool-card:hover .tool-arrow {
  border-color: var(--accent);
  background: var(--accent);
  color: #ffffff;
}

.site-footer {
  border-top: 1px solid var(--line);
  background: var(--paper);
}

.footer-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  width: min(1120px, calc(100% - 48px));
  min-height: 62px;
  margin: 0 auto;
  color: var(--muted);
  font-size: 11px;
}

.footer-note {
  color: #8a939c;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

@media (max-width: 900px) {
  .tool-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 620px) {
  .header-inner,
  .hero-inner,
  .tools-section,
  .footer-inner {
    width: min(100% - 32px, 1120px);
  }

  .header-inner {
    min-height: 64px;
  }

  .brand-logo {
    width: 116px;
  }

  .brand-divider,
  .brand-name {
    display: none;
  }

  .internal-badge {
    padding: 5px 8px;
    font-size: 9px;
  }

  .hero-inner {
    padding: 42px 0 46px;
  }

  .hero-copy {
    font-size: 14px;
  }

  .tools-section {
    padding: 34px 0 46px;
  }

  .section-head {
    display: block;
    margin-bottom: 16px;
  }

  .section-note {
    margin-top: 6px;
  }

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

  .tool-card {
    min-height: 154px;
  }

  .footer-inner {
    min-height: 56px;
  }

  .footer-note {
    display: none;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  .tool-card,
  .tool-arrow {
    transition: none;
  }
}
