:root {
  --ink: #101010;
  --muted: #5c626b;
  --line: #dde1e6;
  --paper: #ffffff;
  --page: #f6f7f9;
  --teal: #0f766e;
  --teal-dark: #0a4f49;
  --amber: #b7791f;
  --coral: #cf4b45;
  --green: #3f7d20;
  --blue: #315fd5;
  --shadow: 0 18px 45px rgba(16, 16, 16, 0.08);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--ink);
  background: var(--page);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  line-height: 1.6;
}

img,
svg {
  display: block;
}

[hidden] {
  display: none !important;
}

a {
  color: inherit;
}

button,
input {
  font: inherit;
}

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

.skip-link {
  position: absolute;
  left: 16px;
  top: -60px;
  z-index: 20;
  padding: 10px 14px;
  background: var(--ink);
  color: #fff;
  text-decoration: none;
  border-radius: 6px;
}

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

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

.site-header {
  position: sticky;
  top: 0;
  z-index: 10;
  background: rgba(255, 255, 255, 0.94);
  border-bottom: 1px solid var(--line);
  backdrop-filter: blur(16px);
}

.header-inner,
.footer-grid,
.footer-bottom,
.section-heading,
.trust-grid,
.collections-grid {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

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

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--ink);
  text-decoration: none;
  font-weight: 800;
  letter-spacing: 0;
}

.brand span {
  font-size: 1.12rem;
}

.site-nav,
.site-footer nav {
  display: flex;
  align-items: center;
  gap: 6px;
  flex-wrap: wrap;
}

.site-nav a,
.site-footer nav a {
  padding: 9px 11px;
  color: var(--muted);
  text-decoration: none;
  border-radius: 6px;
}

.site-nav a:hover,
.site-nav a:focus-visible,
.site-footer nav a:hover,
.site-footer nav a:focus-visible {
  color: var(--ink);
  background: #eef1f4;
  outline: none;
}

.hero-section {
  padding: 72px 0 48px;
  background: #fff;
  border-bottom: 1px solid var(--line);
}

.hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 360px;
  gap: 48px;
  align-items: center;
}

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

h1,
h2,
h3 {
  margin: 0;
  line-height: 1.08;
  letter-spacing: 0;
}

h1 {
  max-width: 720px;
  font-size: 4rem;
}

h2 {
  font-size: 2.15rem;
}

h3 {
  font-size: 1.18rem;
}

.hero-text {
  max-width: 650px;
  margin: 18px 0 24px;
  color: var(--muted);
  font-size: 1.15rem;
}

.search-area {
  position: relative;
  width: min(100%, 680px);
}

.hero-search {
  display: flex;
  align-items: center;
  width: 100%;
  min-height: 58px;
  padding: 0 16px;
  gap: 12px;
  background: #fff;
  border: 1px solid #cfd6dd;
  border-radius: 8px;
  box-shadow: 0 10px 26px rgba(16, 16, 16, 0.07);
}

.hero-search:focus-within {
  border-color: var(--teal);
  box-shadow: 0 0 0 4px rgba(15, 118, 110, 0.14);
}

.hero-search svg {
  width: 22px;
  height: 22px;
  flex: 0 0 auto;
  fill: none;
  stroke: var(--teal);
  stroke-width: 2;
  stroke-linecap: round;
}

.hero-search input {
  width: 100%;
  min-width: 0;
  border: 0;
  outline: 0;
  color: var(--ink);
  background: transparent;
}

.search-panel {
  position: absolute;
  left: 0;
  right: 0;
  top: calc(100% + 8px);
  z-index: 9;
  padding: 10px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: var(--shadow);
}

.search-panel-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 4px 6px 10px;
  color: var(--muted);
  font-size: 0.86rem;
  font-weight: 800;
}

.search-clear {
  padding: 0;
  color: var(--teal);
  background: transparent;
  border: 0;
  cursor: pointer;
  font-weight: 900;
}

.suggestion-list {
  display: grid;
  gap: 6px;
}

.suggestion-item {
  display: grid;
  grid-template-columns: 34px 1fr auto;
  gap: 10px;
  align-items: center;
  width: 100%;
  min-height: 52px;
  padding: 9px;
  color: var(--ink);
  background: #f8f9fb;
  border: 1px solid transparent;
  border-radius: 8px;
  text-align: left;
  cursor: pointer;
}

.suggestion-item:hover,
.suggestion-item:focus-visible {
  background: #fff;
  border-color: #b9c4ce;
  outline: none;
}

.suggestion-icon {
  width: 34px;
  height: 34px;
  display: grid;
  place-items: center;
  color: #fff;
  background: var(--teal);
  border-radius: 8px;
  font-size: 0.78rem;
  font-weight: 900;
}

.suggestion-copy strong,
.suggestion-copy span {
  display: block;
}

.suggestion-copy strong {
  line-height: 1.2;
}

.suggestion-copy span,
.suggestion-action {
  color: var(--muted);
  font-size: 0.84rem;
}

.suggestion-empty {
  margin: 0;
  padding: 12px 9px;
  color: var(--muted);
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 18px;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 0 16px;
  border: 1px solid transparent;
  border-radius: 8px;
  font-weight: 800;
  text-decoration: none;
}

.button.primary {
  color: #fff;
  background: var(--teal);
}

.button.primary:hover,
.button.primary:focus-visible {
  background: var(--teal-dark);
}

.button.secondary {
  color: var(--ink);
  background: #fff;
  border-color: var(--line);
}

.button.secondary:hover,
.button.secondary:focus-visible {
  border-color: #aeb7c2;
}

.tool-preview {
  padding: 18px;
  background: var(--ink);
  color: #fff;
  border-radius: 8px;
  box-shadow: var(--shadow);
}

.preview-header {
  display: flex;
  align-items: center;
  gap: 8px;
  padding-bottom: 14px;
  margin-bottom: 14px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.16);
  color: #e8ecef;
  font-size: 0.92rem;
  font-weight: 800;
}

.status-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: #6fd38f;
}

.preview-list {
  display: grid;
  gap: 12px;
}

.preview-list div {
  display: grid;
  grid-template-columns: 42px 1fr;
  grid-template-areas:
    "icon title"
    "icon meta";
  column-gap: 12px;
  align-items: center;
  min-height: 54px;
  padding: 12px;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 8px;
}

.preview-icon,
.card-icon {
  width: 42px;
  height: 42px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 8px;
  color: #fff;
  font-weight: 900;
}

.preview-icon {
  grid-area: icon;
}

.preview-list strong {
  grid-area: title;
}

.preview-list small {
  grid-area: meta;
  color: #cfd5da;
}

.quick-band {
  border-bottom: 1px solid var(--line);
  background: #f0f3f4;
}

.quick-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 1px;
  background: var(--line);
}

.quick-grid div {
  min-height: 94px;
  padding: 18px;
  background: #f8f9fb;
}

.quick-grid strong,
.quick-grid span {
  display: block;
}

.quick-grid strong {
  margin-bottom: 3px;
}

.quick-grid span {
  color: var(--muted);
  font-size: 0.94rem;
}

.section {
  padding: 72px 0;
}

.section-heading {
  align-items: end;
  margin-bottom: 22px;
}

.section-heading h2 {
  margin-top: 0;
}

.result-count {
  margin: 0;
  color: var(--muted);
  font-weight: 800;
}

.filter-bar {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 24px;
}

.filter-button {
  min-height: 40px;
  padding: 0 14px;
  color: var(--muted);
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 8px;
  cursor: pointer;
  font-weight: 800;
}

.filter-button:hover,
.filter-button:focus-visible {
  color: var(--ink);
  border-color: #aeb7c2;
  outline: none;
}

.filter-button.active {
  color: #fff;
  background: var(--ink);
  border-color: var(--ink);
}

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

.tool-card {
  display: grid;
  grid-template-rows: auto 1fr auto;
  min-height: 330px;
  padding: 18px;
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: 0 8px 24px rgba(16, 16, 16, 0.04);
  overflow-wrap: anywhere;
}

.tool-card:hover {
  border-color: #bac2cc;
  transform: translateY(-2px);
  transition: transform 140ms ease, border-color 140ms ease;
}

.tool-card-highlight {
  border-color: var(--teal);
  box-shadow: 0 0 0 4px rgba(15, 118, 110, 0.14), 0 8px 24px rgba(16, 16, 16, 0.04);
}

.tool-card .card-icon {
  margin-bottom: 18px;
}

.tool-card h3 {
  margin-top: 10px;
}

.tool-card p {
  margin: 10px 0 16px;
  color: var(--muted);
  font-size: 0.98rem;
}

.tag {
  display: inline-flex;
  align-items: center;
  min-height: 24px;
  padding: 0 8px;
  border-radius: 999px;
  font-size: 0.76rem;
  font-weight: 900;
}

.tag.accent {
  color: #073b36;
  background: #cdeee8;
}

.tag.soft {
  color: #59400d;
  background: #f6e5bd;
}

.mini-list {
  display: grid;
  gap: 7px;
  padding: 14px 0 0;
  margin: 0;
  list-style: none;
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: 0.92rem;
}

.mini-list li {
  position: relative;
  padding-left: 16px;
}

.mini-list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.72em;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--teal);
}

.empty-state {
  padding: 22px;
  margin: 18px 0 0;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 8px;
  color: var(--muted);
}

.text-icon {
  background: var(--teal);
}

.color-icon {
  background:
    linear-gradient(135deg, #0f766e 0 33%, #cf4b45 33% 66%, #b7791f 66% 100%);
}

.code-icon {
  background: var(--ink);
}

.image-icon {
  background:
    linear-gradient(135deg, #315fd5 0 50%, #3f7d20 50% 100%);
}

.calc-icon {
  background: var(--amber);
}

.seo-icon {
  background:
    linear-gradient(135deg, #101010 0 55%, #0f766e 55% 100%);
}

.qr-icon {
  position: relative;
  background: #fff;
  border: 2px solid var(--ink);
}

.qr-icon::before {
  content: "";
  width: 22px;
  height: 22px;
  background:
    linear-gradient(var(--ink) 0 0) 0 0 / 8px 8px no-repeat,
    linear-gradient(var(--ink) 0 0) 14px 0 / 8px 8px no-repeat,
    linear-gradient(var(--ink) 0 0) 0 14px / 8px 8px no-repeat,
    linear-gradient(var(--ink) 0 0) 14px 14px / 8px 8px no-repeat,
    linear-gradient(var(--ink) 0 0) 7px 7px / 8px 8px no-repeat;
}

.time-icon {
  position: relative;
  background: var(--coral);
}

.time-icon::before,
.time-icon::after {
  content: "";
  position: absolute;
  left: 50%;
  top: 50%;
  width: 2px;
  height: 13px;
  background: #fff;
  transform-origin: bottom center;
}

.time-icon::before {
  transform: translate(-50%, -100%) rotate(0deg);
}

.time-icon::after {
  transform: translate(-50%, -100%) rotate(90deg);
}

.collections-section {
  background: #fff;
  border-block: 1px solid var(--line);
}

.collections-grid {
  align-items: start;
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
}

.collections-grid p,
.trust-points p,
.page-content p,
.page-content li {
  color: var(--muted);
}

.collections-list {
  display: grid;
  gap: 12px;
  margin: 0;
  padding: 0;
  list-style: none;
  counter-reset: collections;
}

.collections-list li {
  position: relative;
  min-height: 82px;
  padding: 16px 16px 16px 58px;
  background: #f8f9fb;
  border: 1px solid var(--line);
  border-radius: 8px;
  counter-increment: collections;
}

.collections-list li::before {
  content: counter(collections);
  position: absolute;
  left: 16px;
  top: 16px;
  width: 28px;
  height: 28px;
  display: grid;
  place-items: center;
  color: #fff;
  background: var(--teal);
  border-radius: 50%;
  font-weight: 900;
}

.collections-list strong,
.collections-list span {
  display: block;
}

.collections-list span {
  color: var(--muted);
}

.trust-section {
  background: #f6f7f9;
}

.trust-grid {
  align-items: start;
}

.trust-points {
  max-width: 650px;
  display: grid;
  gap: 12px;
}

.trust-points p {
  margin: 0;
}

.site-footer {
  padding: 34px 0 24px;
  background: #101010;
  color: #fff;
}

.site-footer p {
  margin: 12px 0 0;
  color: #c7ccd1;
}

.footer-brand {
  color: #fff;
}

.site-footer nav a {
  color: #c7ccd1;
}

.site-footer nav a:hover,
.site-footer nav a:focus-visible {
  color: #fff;
  background: rgba(255, 255, 255, 0.08);
}

.footer-bottom {
  margin-top: 28px;
  padding-top: 18px;
  border-top: 1px solid rgba(255, 255, 255, 0.14);
  color: #aeb6bd;
  font-size: 0.92rem;
}

.page-hero {
  padding: 68px 0 36px;
  background: #fff;
  border-bottom: 1px solid var(--line);
}

.page-hero h1 {
  font-size: 3rem;
}

.page-hero p {
  max-width: 760px;
  color: var(--muted);
  font-size: 1.08rem;
}

.page-content {
  padding: 54px 0 72px;
}

.content-panel {
  max-width: 840px;
  padding: 28px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 8px;
}

.content-panel h2 {
  margin-top: 28px;
  font-size: 1.45rem;
}

.content-panel h2:first-child {
  margin-top: 0;
}

.content-panel ul {
  padding-left: 20px;
}

.contact-list {
  display: grid;
  gap: 12px;
  padding: 0;
  margin: 18px 0 0;
  list-style: none;
}

.contact-list a {
  color: var(--teal);
  font-weight: 800;
}

@media (max-width: 980px) {
  .hero-grid,
  .collections-grid {
    grid-template-columns: 1fr;
  }

  .tool-preview {
    max-width: 520px;
  }

  .quick-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .tools-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 720px) {
  .header-inner,
  .section-heading,
  .trust-grid,
  .footer-grid,
  .footer-bottom {
    align-items: flex-start;
    flex-direction: column;
  }

  .header-inner {
    padding: 14px 0;
  }

  .site-nav {
    width: 100%;
    gap: 2px;
  }

  .site-nav a {
    padding-inline: 8px;
  }

  .hero-section {
    padding-top: 48px;
  }

  h1 {
    font-size: 2.75rem;
  }

  h2 {
    font-size: 1.8rem;
  }

  .page-hero h1 {
    font-size: 2.35rem;
  }

  .hero-text {
    font-size: 1rem;
  }

  .tools-grid,
  .quick-grid {
    grid-template-columns: 1fr;
  }

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

  .section {
    padding: 54px 0;
  }
}

@media (max-width: 420px) {
  .container {
    width: min(100% - 22px, 1120px);
  }

  .site-nav a {
    font-size: 0.93rem;
  }

  .hero-search {
    min-height: 54px;
    padding-inline: 12px;
  }

  .suggestion-item {
    grid-template-columns: 34px 1fr;
  }

  .suggestion-action {
    display: none;
  }

  .button {
    width: 100%;
  }

  .filter-button {
    flex: 1 1 auto;
  }
}
