:root {
  color-scheme: light;
  --ink: #20252d;
  --muted: #737982;
  --line: #e9e5de;
  --paper: #faf9f6;
  --card: rgba(255, 255, 255, 0.78);
  --accent: #ee735d;
  --accent-soft: #fff0eb;
  --shadow: 0 18px 55px rgba(55, 44, 32, 0.08);
  --font-display: "Avenir Next Rounded", "Arial Rounded MT Bold", "Avenir Next", "PingFang SC", "Microsoft YaHei", sans-serif;
}

* {
  box-sizing: border-box;
}

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

body {
  min-height: 100vh;
  margin: 0;
  overflow-x: hidden;
  color: var(--ink);
  font-family: "Avenir Next", "PingFang SC", "Microsoft YaHei", sans-serif;
  background:
    radial-gradient(circle at 84% 6%, rgba(238, 115, 93, 0.13), transparent 25rem),
    radial-gradient(circle at 8% 52%, rgba(240, 215, 151, 0.13), transparent 24rem),
    var(--paper);
}

body::before {
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  content: "";
  opacity: 0.28;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 180 180' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='.08'/%3E%3C/svg%3E");
}

button,
input {
  font: inherit;
}

.page-shell {
  width: min(100% - 48px, 1080px);
  min-height: 100vh;
  margin: 0 auto;
  padding: 40px 0 26px;
  display: flex;
  flex-direction: column;
}

.hero {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  padding: 32px 0 58px;
}

.hero-topline,
.section-heading,
.footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
}

.eyebrow,
.section-kicker,
.footer,
.tool-count {
  letter-spacing: 0.16em;
  font-size: 0.7rem;
  font-weight: 700;
}

.eyebrow,
.section-kicker {
  margin: 0;
  color: var(--accent);
}

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

.brand-lockup {
  display: flex;
  align-items: center;
  gap: 22px;
  margin: 28px 0 14px;
}

.brand-icon {
  display: block;
  flex: 0 0 auto;
  width: clamp(72px, 10vw, 112px);
  height: clamp(72px, 10vw, 112px);
  object-fit: contain;
}

h1 {
  max-width: 620px;
  margin: 0;
  font-family: var(--font-display);
  font-size: clamp(3.4rem, 9vw, 6.4rem);
  font-weight: 800;
  letter-spacing: -0.075em;
  line-height: 0.95;
}

h1 span {
  color: var(--accent);
  font-style: normal;
}

.intro {
  margin-bottom: 32px;
  color: var(--muted);
  font-size: 1rem;
  line-height: 1.7;
}

.search-box {
  position: relative;
  display: flex;
  align-items: center;
  width: min(100%, 640px);
  border: 1px solid var(--line);
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.62);
  box-shadow: 0 8px 25px rgba(55, 44, 32, 0.03);
  transition: border-color 180ms ease, box-shadow 180ms ease, background 180ms ease;
}

.search-box:focus-within {
  border-color: rgba(238, 115, 93, 0.7);
  background: #fff;
  box-shadow: 0 12px 30px rgba(238, 115, 93, 0.1);
}

.search-icon {
  padding-left: 18px;
  color: var(--accent);
  font-family: Georgia, serif;
  font-size: 1.65rem;
  line-height: 1;
  transform: rotate(-20deg);
}

.search-box input {
  width: 100%;
  padding: 17px 12px;
  border: 0;
  outline: 0;
  color: var(--ink);
  background: transparent;
  font-size: 0.95rem;
}

.search-box input::placeholder {
  color: #a3a5a7;
}

kbd {
  margin-right: 13px;
  padding: 3px 7px;
  border: 1px solid var(--line);
  border-radius: 5px;
  color: #9b9da1;
  font-size: 0.7rem;
}

.tools-section {
  border-top: 1px solid var(--line);
  padding-top: 28px;
}

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

.section-kicker {
  margin-bottom: 8px;
  font-size: 0.65rem;
}

h2 {
  margin-bottom: 0;
  font-family: var(--font-display);
  font-size: clamp(1.55rem, 3.2vw, 2rem);
  font-weight: 750;
  letter-spacing: -0.035em;
}

.tool-count {
  color: var(--muted);
  font-weight: 500;
  letter-spacing: 0.04em;
}

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

.tool-card {
  position: relative;
  display: flex;
  align-items: center;
  gap: 18px;
  min-height: 112px;
  padding: 20px 22px;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 16px;
  color: #5f6570;
  text-decoration: none;
  background: var(--card);
  box-shadow: 0 2px 0 rgba(55, 44, 32, 0.015);
  transition: transform 180ms ease, border-color 180ms ease, box-shadow 180ms ease;
}

.tool-card::after {
  position: absolute;
  right: 20px;
  bottom: -36px;
  width: 78px;
  height: 78px;
  content: "";
  border: 1px solid rgba(238, 115, 93, 0.18);
  border-radius: 50%;
  transition: transform 180ms ease;
}

.tool-card:hover,
.tool-card:focus-visible {
  border-color: rgba(238, 115, 93, 0.58);
  box-shadow: var(--shadow);
  outline: none;
  transform: translateY(-3px);
}

.tool-card:hover::after,
.tool-card:focus-visible::after {
  transform: translate(-9px, -9px);
}

.tool-index {
  display: grid;
  flex: 0 0 42px;
  place-items: center;
  width: 42px;
  height: 42px;
  border-radius: 12px;
  color: var(--accent);
  background: var(--accent-soft);
  font-family: Georgia, "Times New Roman", serif;
  font-size: 1.05rem;
}

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

.tool-title {
  margin: 0 0 7px;
  font-family: var(--font-display);
  color: #5f6570;
  font-size: 1.08rem;
  font-weight: 700;
}

.tool-url {
  overflow: hidden;
  margin: 0;
  color: #9a938b;
  font-family: "SFMono-Regular", Consolas, monospace;
  font-size: 0.68rem;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.state-card {
  grid-column: 1 / -1;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 132px;
  border: 1px dashed var(--line);
  border-radius: 16px;
  color: var(--muted);
  font-size: 0.9rem;
}

.state-card.error {
  color: #aa5e50;
  border-color: rgba(170, 94, 80, 0.28);
  background: rgba(255, 240, 235, 0.5);
}

.loader {
  width: 15px;
  height: 15px;
  border: 2px solid rgba(238, 115, 93, 0.2);
  border-top-color: var(--accent);
  border-radius: 50%;
  animation: spin 0.7s linear infinite;
}

.footer {
  justify-content: flex-start;
  gap: 12px;
  margin-top: auto;
  padding-top: 56px;
  color: #aaa7a1;
  font-size: 0.62rem;
}

.footer span:nth-child(2) {
  color: var(--accent);
}

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

@keyframes spin {
  to {
    transform: rotate(360deg);
  }
}

@media (max-width: 640px) {
  .page-shell {
    width: min(100% - 32px, 1080px);
    padding-top: 24px;
  }

  .hero {
    padding: 26px 0 44px;
  }

  h1 {
    font-size: clamp(3.2rem, 17vw, 5rem);
  }

  .brand-lockup {
    gap: 14px;
  }

  .brand-icon {
    width: 72px;
    height: 72px;
  }

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

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