:root {
  --bg: #09111f;
  --bg-deep: #060c16;
  --surface: #101b2b;
  --surface-raised: #152236;
  --surface-soft: #0d1828;
  --text: #f4f7fb;
  --muted: #a7b5c8;
  --muted-strong: #c7d1df;
  --border: #24344a;
  --border-bright: #344a66;
  --accent: #72e49a;
  --accent-strong: #42d77c;
  --accent-ink: #062613;
  --blue: #72c7ff;
  --danger: #ff9b9b;
  --shadow: 0 18px 55px rgba(0, 0, 0, 0.24);
  --radius-sm: 10px;
  --radius-md: 16px;
  --radius-lg: 24px;
  --container: 1180px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-width: 280px;
  background: var(--bg);
  color: var(--text);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}

body.menu-open {
  overflow: hidden;
}

body.menu-open .site-header {
  background: var(--bg);
  backdrop-filter: none;
}

button,
input {
  font: inherit;
}

button,
a {
  -webkit-tap-highlight-color: transparent;
}

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

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

[hidden] {
  display: none !important;
}

.container {
  width: min(var(--container), calc(100% - 40px));
  margin-inline: auto;
}

.skip-link {
  position: fixed;
  top: 12px;
  left: 12px;
  z-index: 9999;
  padding: 10px 14px;
  border-radius: 8px;
  background: var(--accent);
  color: var(--accent-ink);
  font-weight: 750;
  transform: translateY(-160%);
  transition: transform 160ms ease;
}

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

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

.site-header {
  position: sticky;
  top: 0;
  z-index: 1000;
  border-bottom: 1px solid rgba(52, 74, 102, 0.75);
  background: rgba(9, 17, 31, 0.86);
  backdrop-filter: blur(18px);
}

.header-inner {
  min-height: 72px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 11px;
  min-width: 0;
  font-size: 0.98rem;
  font-weight: 650;
  letter-spacing: -0.01em;
  white-space: nowrap;
}

.brand strong {
  color: var(--accent);
}

.brand img {
  flex: 0 0 auto;
  border-radius: 10px;
  filter: invert(1) brightness(2);
}

.site-nav {
  position: fixed;
  top: 0;
  right: 0;
  z-index: 1200;
  width: min(360px, 88vw);
  height: 100dvh;
  padding: 20px;
  background: var(--surface);
  border-left: 1px solid var(--border);
  box-shadow: var(--shadow);
  visibility: hidden;
  transform: translateX(102%);
  transition: transform 220ms ease, visibility 220ms;
}

.site-nav[data-open="true"] {
  visibility: visible;
  transform: translateX(0);
}

.site-nav ul {
  display: grid;
  gap: 6px;
  margin: 28px 0 0;
  padding: 0;
  list-style: none;
}

.site-nav a {
  display: flex;
  min-height: 48px;
  align-items: center;
  padding: 10px 12px;
  border-radius: var(--radius-sm);
  color: var(--muted-strong);
  font-weight: 650;
}

.site-nav a:hover {
  background: rgba(114, 228, 154, 0.08);
  color: var(--accent);
}

.mobile-nav-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-bottom: 16px;
  border-bottom: 1px solid var(--border);
  font-weight: 750;
}

.nav-close,
.nav-toggle {
  display: inline-grid;
  place-items: center;
  width: 44px;
  height: 44px;
  border: 1px solid var(--border);
  border-radius: 12px;
  background: var(--surface);
  color: var(--text);
  cursor: pointer;
}

.nav-close {
  border: 0;
  font-size: 1.8rem;
}

.nav-toggle {
  gap: 4px;
  padding: 11px;
}

.nav-toggle span {
  display: block;
  width: 20px;
  height: 2px;
  border-radius: 999px;
  background: currentColor;
}

.nav-scrim {
  position: fixed;
  inset: 0;
  z-index: 999;
  background: rgba(2, 7, 14, 0.78);
}

.hero {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  border-bottom: 1px solid var(--border);
  background:
    radial-gradient(800px 420px at 82% 8%, rgba(114, 228, 154, 0.13), transparent 66%),
    radial-gradient(650px 380px at 8% 92%, rgba(114, 199, 255, 0.1), transparent 65%),
    linear-gradient(180deg, #0b1728 0%, var(--bg) 100%);
}

.hero::after {
  position: absolute;
  z-index: -1;
  inset: 0;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.022) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.022) 1px, transparent 1px);
  background-size: 48px 48px;
  content: "";
  mask-image: linear-gradient(to bottom, rgba(0, 0, 0, 0.7), transparent 92%);
}

.hero-inner {
  max-width: 900px;
  padding-top: clamp(68px, 9vw, 118px);
  padding-bottom: clamp(64px, 8vw, 104px);
  text-align: center;
}

.eyebrow,
.section-kicker {
  margin: 0 0 16px;
  color: var(--accent);
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 9px;
}

.eyebrow span {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 0 5px rgba(114, 228, 154, 0.12);
}

.hero h1 {
  margin: 0;
  font-size: clamp(2.35rem, 7vw, 5.3rem);
  line-height: 0.98;
  letter-spacing: -0.055em;
}

.hero h1 em {
  color: var(--accent);
  font-style: normal;
}

.hero-copy {
  max-width: 680px;
  margin: 26px auto 0;
  color: var(--muted-strong);
  font-size: clamp(1rem, 2vw, 1.18rem);
}

.tool-search {
  position: relative;
  display: flex;
  align-items: center;
  width: min(680px, 100%);
  min-height: 60px;
  margin: 38px auto 0;
  padding: 0 14px 0 18px;
  border: 1px solid var(--border-bright);
  border-radius: 16px;
  background: rgba(16, 27, 43, 0.94);
  box-shadow: 0 18px 45px rgba(0, 0, 0, 0.25);
  color: var(--muted);
  text-align: left;
  transition: border-color 160ms ease, box-shadow 160ms ease;
}

.tool-search:focus-within {
  border-color: var(--accent);
  box-shadow: 0 0 0 4px rgba(114, 228, 154, 0.11), 0 18px 45px rgba(0, 0, 0, 0.25);
}

.tool-search input {
  width: 100%;
  min-width: 0;
  height: 58px;
  padding: 0 14px;
  border: 0;
  outline: 0;
  background: transparent;
  color: var(--text);
  font-size: 1rem;
}

.tool-search input::placeholder {
  color: #8393a9;
}

.tool-search kbd {
  display: none;
  min-width: 30px;
  padding: 3px 8px;
  border: 1px solid var(--border-bright);
  border-radius: 7px;
  background: var(--bg-deep);
  color: var(--muted);
  font: 0.78rem ui-monospace, SFMono-Regular, Consolas, monospace;
  text-align: center;
}

.search-suggestions {
  position: absolute;
  top: calc(100% + 10px);
  left: 0;
  z-index: 100;
  width: 100%;
  max-height: 370px;
  margin: 0;
  padding: 7px;
  overflow-y: auto;
  border: 1px solid var(--border-bright);
  border-radius: 14px;
  background: var(--surface);
  box-shadow: var(--shadow);
  list-style: none;
}

.suggestion-option {
  display: block;
  width: 100%;
  padding: 11px 12px;
  border-radius: 9px;
  cursor: pointer;
}

.suggestion-option:hover,
.suggestion-option[aria-selected="true"] {
  background: rgba(114, 228, 154, 0.09);
}

.suggestion-title,
.suggestion-description {
  display: block;
}

.suggestion-title {
  color: var(--text);
  font-weight: 700;
}

.suggestion-description {
  margin-top: 2px;
  color: var(--muted);
  font-size: 0.86rem;
}

.hero-proof {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 12px 26px;
  margin-top: 28px;
  color: var(--muted);
  font-size: 0.88rem;
}

.hero-proof span {
  display: inline-flex;
  align-items: center;
  gap: 5px;
}

.hero-proof span + span::before {
  width: 3px;
  height: 3px;
  margin-right: 20px;
  border-radius: 50%;
  background: var(--border-bright);
  content: "";
}

.hero-proof strong {
  color: var(--text);
}

.tool-library {
  padding-top: clamp(64px, 8vw, 96px);
  padding-bottom: clamp(72px, 9vw, 112px);
  scroll-margin-top: 86px;
}

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

.catalog-heading h2,
.feedback-inner h2 {
  margin: 0;
  max-width: 720px;
  font-size: clamp(1.8rem, 4vw, 3rem);
  line-height: 1.08;
  letter-spacing: -0.035em;
}

.section-kicker {
  margin-bottom: 10px;
}

.result-count {
  flex: 0 0 auto;
  margin: 0 0 4px;
  color: var(--muted);
  font-size: 0.9rem;
}

.filter-bar {
  display: flex;
  gap: 9px;
  margin: 0 0 32px;
  padding-bottom: 4px;
  overflow-x: auto;
  scrollbar-width: thin;
}

.filter-chip {
  flex: 0 0 auto;
  min-height: 42px;
  padding: 8px 15px;
  border: 1px solid var(--border);
  border-radius: 999px;
  background: transparent;
  color: var(--muted-strong);
  cursor: pointer;
  font-size: 0.88rem;
  font-weight: 650;
  transition: border-color 150ms ease, background 150ms ease, color 150ms ease;
}

.filter-chip:hover {
  border-color: var(--border-bright);
  background: var(--surface);
  color: var(--text);
}

.filter-chip.active,
.filter-chip[aria-pressed="true"] {
  border-color: var(--accent);
  background: var(--accent);
  color: var(--accent-ink);
}

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

.tool-card {
  min-width: 0;
}

.tool-card-link {
  display: flex;
  height: 100%;
  min-height: 420px;
  flex-direction: column;
  overflow: hidden;
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  background: var(--surface);
  box-shadow: 0 10px 32px rgba(0, 0, 0, 0.13);
  transition: transform 180ms ease, border-color 180ms ease, box-shadow 180ms ease;
}

.tool-card-link:hover {
  border-color: var(--border-bright);
  box-shadow: 0 18px 46px rgba(0, 0, 0, 0.22);
  transform: translateY(-4px);
}

.tool-card-link:focus-visible {
  outline-offset: 4px;
}

.tool-media {
  position: relative;
  height: 190px;
  overflow: hidden;
  border-bottom: 1px solid var(--border);
  background: #e8edf2;
}

.tool-media::after {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(9, 17, 31, 0.18), transparent 45%);
  content: "";
  pointer-events: none;
}

.tool-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 260ms ease;
}

.tool-card-link:hover .tool-media img {
  transform: scale(1.025);
}

.popular-badge {
  position: absolute;
  top: 12px;
  right: 12px;
  z-index: 1;
  padding: 5px 9px;
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 999px;
  background: rgba(9, 17, 31, 0.84);
  color: var(--accent);
  font-size: 0.7rem;
  font-weight: 800;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  backdrop-filter: blur(8px);
}

.tool-body {
  flex: 1;
  padding: 20px 20px 14px;
}

.category-label {
  color: var(--accent);
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.09em;
  text-transform: uppercase;
}

.tool-body h3 {
  margin: 8px 0 8px;
  font-size: 1.16rem;
  line-height: 1.25;
  letter-spacing: -0.015em;
}

.tool-body p {
  margin: 0;
  color: var(--muted);
  font-size: 0.93rem;
}

.tool-action {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 54px;
  margin: 0 20px;
  border-top: 1px solid var(--border);
  color: var(--muted-strong);
  font-size: 0.88rem;
  font-weight: 700;
}

.tool-action span:last-child {
  color: var(--accent);
  font-size: 1.15rem;
  transition: transform 160ms ease;
}

.tool-card-link:hover .tool-action span:last-child {
  transform: translate(2px, -2px);
}

.empty-state {
  padding: 64px 20px;
  border: 1px dashed var(--border-bright);
  border-radius: var(--radius-lg);
  background: var(--surface-soft);
  text-align: center;
}

.empty-state > div {
  color: var(--accent);
  font-size: 2.6rem;
}

.empty-state h3 {
  margin: 6px 0;
  font-size: 1.35rem;
}

.empty-state p {
  margin: 0 0 20px;
  color: var(--muted);
}

.empty-state button,
.primary-button {
  display: inline-flex;
  min-height: 48px;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 10px 18px;
  border: 1px solid var(--accent);
  border-radius: 11px;
  background: var(--accent);
  color: var(--accent-ink);
  cursor: pointer;
  font-weight: 800;
  transition: background 150ms ease, color 150ms ease, transform 150ms ease;
}

.empty-state button:hover,
.primary-button:hover {
  background: var(--accent-strong);
  transform: translateY(-2px);
}

.feedback-section {
  border-block: 1px solid var(--border);
  background:
    radial-gradient(600px 260px at 82% 50%, rgba(114, 228, 154, 0.1), transparent 70%),
    var(--surface-soft);
  scroll-margin-top: 86px;
}

.feedback-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 48px;
  padding-top: clamp(54px, 7vw, 80px);
  padding-bottom: clamp(54px, 7vw, 80px);
}

.feedback-inner > div > p:last-child {
  max-width: 650px;
  margin: 16px 0 0;
  color: var(--muted);
}

.primary-button {
  flex: 0 0 auto;
}

.site-footer {
  padding: 32px 0;
  background: var(--bg-deep);
  color: var(--muted);
  font-size: 0.84rem;
}

.footer-inner {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 28px;
}

.footer-brand {
  color: var(--muted-strong);
  font-size: 0.88rem;
}

.footer-inner nav {
  display: flex;
  gap: 22px;
}

.footer-inner nav a:hover {
  color: var(--accent);
}

.footer-inner > p {
  margin: 0;
  text-align: right;
}

@media (min-width: 700px) {
  .tool-search kbd {
    display: inline-block;
  }
}

@media (min-width: 900px) {
  .nav-toggle,
  .mobile-nav-heading,
  .nav-scrim {
    display: none !important;
  }

  .site-nav {
    position: static;
    width: auto;
    height: auto;
    padding: 0;
    border: 0;
    background: transparent;
    box-shadow: none;
    visibility: visible;
    transform: none;
    transition: none;
  }

  .site-nav ul {
    display: flex;
    align-items: center;
    gap: 4px;
    margin: 0;
  }

  .site-nav a {
    min-height: 42px;
    padding-inline: 14px;
  }
}

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

  .footer-inner {
    grid-template-columns: 1fr;
    justify-items: start;
  }

  .footer-inner > p {
    text-align: left;
  }
}

@media (max-width: 640px) {
  .container {
    width: min(var(--container), calc(100% - 32px));
  }

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

  .brand {
    max-width: calc(100% - 64px);
    font-size: 0.9rem;
  }

  .brand img {
    width: 36px;
    height: 36px;
  }

  .hero-inner {
    padding-top: 62px;
    padding-bottom: 62px;
  }

  .hero h1 {
    font-size: clamp(2.3rem, 12vw, 3.65rem);
  }

  .hero-copy {
    margin-top: 20px;
  }

  .tool-search {
    min-height: 56px;
    margin-top: 30px;
    padding-left: 14px;
  }

  .tool-search input {
    height: 54px;
    padding-inline: 11px 4px;
    font-size: 0.95rem;
  }

  .hero-proof {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 8px;
  }

  .hero-proof span {
    display: block;
    padding: 9px 5px;
    border: 1px solid rgba(52, 74, 102, 0.72);
    border-radius: 9px;
    background: rgba(16, 27, 43, 0.42);
    text-align: center;
  }

  .hero-proof span + span::before {
    display: none;
  }

  .hero-proof strong {
    display: block;
  }

  .catalog-heading {
    display: block;
  }

  .result-count {
    margin-top: 12px;
  }

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

  .tool-card-link {
    min-height: 0;
  }

  .tool-media {
    height: clamp(170px, 51vw, 215px);
  }

  .feedback-inner {
    display: block;
  }

  .primary-button {
    width: 100%;
    margin-top: 26px;
  }

  .footer-inner nav {
    flex-wrap: wrap;
    gap: 12px 20px;
  }
}

@media (max-width: 360px) {
  .brand span {
    max-width: 150px;
    overflow: hidden;
    text-overflow: ellipsis;
  }

  .eyebrow {
    font-size: 0.68rem;
  }

  .hero-proof {
    grid-template-columns: 1fr;
  }
}

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

  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    transition-duration: 0.01ms !important;
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
  }
}
