:root {
  color-scheme: dark;
  --bg: #07080c;
  --bg-deep: #030407;
  --surface: #101219;
  --surface-soft: #171a24;
  --surface-raised: #1d2130;
  --text: #f7f4ea;
  --muted: #a9adba;
  --quiet: #717889;
  --line: rgba(255, 255, 255, 0.1);
  --line-strong: rgba(255, 255, 255, 0.18);
  --primary: #c8ff6b;
  --primary-dark: #97d63b;
  --primary-light: #f2ffb3;
  --accent: #c8ff6b;
  --accent-soft: rgba(200, 255, 107, 0.13);
  --warning: #f4b75f;
  --success: #75e7b1;
  --success-soft: rgba(117, 231, 177, 0.12);
  --error: #ff8f86;
  --error-soft: rgba(255, 143, 134, 0.12);
  --empty: #8f96a8;
  --empty-soft: rgba(255, 255, 255, 0.05);
  --disabled: #666c7a;
  --disabled-soft: rgba(255, 255, 255, 0.07);
  --focus-ring: rgba(200, 255, 107, 0.42);
  --shadow: 0 28px 90px rgba(0, 0, 0, 0.45);
  --shadow-soft: 0 18px 60px rgba(0, 0, 0, 0.28);
  --radius-xl: 32px;
  --radius-lg: 24px;
  --radius-md: 16px;
  --ease-out: cubic-bezier(0.32, 0.72, 0, 1);
  --ease-press: cubic-bezier(0.2, 0.8, 0.2, 1);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  min-width: 320px;
  margin: 0;
  background:
    radial-gradient(circle at 18% 8%, rgba(200, 255, 107, 0.13), transparent 26rem),
    radial-gradient(circle at 86% 16%, rgba(200, 255, 107, 0.1), transparent 28rem),
    radial-gradient(circle at 54% 68%, rgba(247, 244, 234, 0.05), transparent 34rem),
    linear-gradient(180deg, var(--bg-deep), var(--bg) 32rem, #0c0e14);
  color: var(--text);
  font-family: "Geist", "PingFang SC", "Microsoft YaHei", system-ui, sans-serif;
  font-size: 16px;
  line-height: 1.6;
}

.page-main {
  width: 100%;
  max-width: 100%;
  overflow-x: clip;
  overflow-y: visible;
}

.skip-link {
  position: fixed;
  top: 12px;
  left: 12px;
  z-index: 25;
  border-radius: 999px;
  background: var(--primary);
  color: #101308;
  padding: 10px 14px;
  font-weight: 900;
  transform: translateY(-150%);
  transition: transform 360ms var(--ease-out);
}

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

body::before {
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  background:
    linear-gradient(rgba(255, 255, 255, 0.035) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.035) 1px, transparent 1px);
  background-size: 72px 72px;
  mask-image: linear-gradient(to bottom, rgba(0, 0, 0, 0.78), transparent 70%);
  content: "";
}

.page-grain {
  position: fixed;
  inset: 0;
  z-index: 30;
  pointer-events: none;
  opacity: 0.035;
  background-image:
    repeating-radial-gradient(circle at 20% 20%, #fff 0 1px, transparent 1px 4px),
    repeating-linear-gradient(115deg, #fff 0 1px, transparent 1px 7px);
  mix-blend-mode: screen;
}

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

button,
input,
textarea,
select {
  font: inherit;
}

button {
  min-height: 46px;
  border: 0;
  cursor: pointer;
  transition:
    transform 520ms var(--ease-out),
    opacity 520ms var(--ease-out),
    background 520ms var(--ease-out),
    color 520ms var(--ease-out),
    box-shadow 520ms var(--ease-out);
  touch-action: manipulation;
}

button:active {
  transform: scale(0.98);
}

textarea,
input,
select {
  width: 100%;
  min-height: 48px;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: rgba(3, 4, 7, 0.5);
  color: var(--text);
  outline: none;
  transition:
    border-color 520ms var(--ease-out),
    background 520ms var(--ease-out),
    box-shadow 520ms var(--ease-out);
}

textarea:focus,
input:focus,
select:focus,
button:focus-visible,
a:focus-visible {
  outline: 3px solid var(--focus-ring);
  outline-offset: 3px;
}

textarea {
  min-height: 148px;
  resize: vertical;
  padding: 14px 16px;
}

input,
select {
  padding: 0 15px;
}

label {
  display: grid;
  gap: 8px;
  color: var(--muted);
  font-size: 13px;
  font-weight: 800;
}

select {
  appearance: none;
  background-image:
    linear-gradient(45deg, transparent 50%, var(--primary) 50%),
    linear-gradient(135deg, var(--primary) 50%, transparent 50%);
  background-position:
    calc(100% - 20px) 21px,
    calc(100% - 14px) 21px;
  background-size: 6px 6px;
  background-repeat: no-repeat;
}

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

h1,
h2,
h3,
h4 {
  color: var(--text);
  line-height: 0.98;
  letter-spacing: 0;
}

h1 {
  max-width: min(1120px, 100%);
  margin-bottom: 24px;
  font-size: clamp(46px, 6.4vw, 92px);
  font-weight: 900;
}

h2 {
  margin-bottom: 14px;
  font-size: clamp(34px, 4vw, 58px);
  font-weight: 880;
}

h3 {
  margin-bottom: 10px;
  font-size: 22px;
  font-weight: 850;
}

h4 {
  margin: 0 0 12px;
  font-size: 15px;
  font-weight: 900;
}

.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: 20;
  padding: 18px 16px 0;
  pointer-events: none;
}

.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: min(1080px, 100%);
  min-height: 66px;
  margin: 0 auto;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: rgba(8, 10, 16, 0.76);
  padding: 8px 10px;
  box-shadow: var(--shadow-soft), inset 0 1px 1px rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(26px);
  pointer-events: auto;
}

.brand,
.nav-links {
  display: flex;
  align-items: center;
}

.brand {
  min-height: 48px;
  gap: 11px;
  border-radius: 999px;
  padding: 5px 16px 5px 6px;
  color: var(--text);
  font-weight: 900;
}

.brand-logo {
  width: 42px;
  height: 42px;
  flex: 0 0 auto;
  border-radius: 50%;
  object-fit: cover;
  box-shadow: 0 0 0 6px rgba(255, 255, 255, 0.06), 0 18px 42px rgba(200, 255, 107, 0.18);
}

.nav-links {
  gap: 4px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.055);
  padding: 4px;
}

.nav-links a {
  min-height: 42px;
  border-radius: 999px;
  padding: 10px 16px;
  color: var(--muted);
  font-size: 14px;
  font-weight: 800;
  transition:
    transform 520ms var(--ease-out),
    background 520ms var(--ease-out),
    color 520ms var(--ease-out);
}

.nav-links a:hover,
.nav-links a.is-active {
  background: rgba(255, 255, 255, 0.09);
  color: var(--text);
  transform: translateY(-1px);
}

.hero {
  position: relative;
  overflow: hidden;
  min-height: min(920px, 100dvh);
}

.hero::before {
  position: absolute;
  inset: 7rem auto auto -8rem;
  width: 34rem;
  height: 34rem;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 50%;
  content: "";
}

.hero::after {
  position: absolute;
  right: -14rem;
  bottom: 4rem;
  width: 40rem;
  height: 40rem;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(200, 255, 107, 0.13), transparent 66%);
  content: "";
}

.hero-inner {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(280px, 360px);
  gap: clamp(24px, 5vw, 70px);
  width: min(1320px, calc(100% - 48px));
  margin: 0 auto;
  padding: clamp(96px, 13vw, 160px) 0 clamp(78px, 10vw, 132px);
}

.hero-copy {
  align-self: center;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  min-height: 28px;
  margin: 0 0 18px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.055);
  color: var(--primary);
  padding: 4px 11px;
  font-size: 10px;
  font-weight: 900;
  letter-spacing: 0.2em;
  text-transform: uppercase;
}

.hero-text {
  max-width: 680px;
  margin-bottom: 26px;
  color: var(--muted);
  font-size: clamp(17px, 2vw, 21px);
}

.tool-category {
  display: inline-flex;
  align-items: center;
  min-height: 30px;
  border: 1px solid rgba(200, 255, 107, 0.2);
  border-radius: 999px;
  background: rgba(200, 255, 107, 0.075);
  color: var(--primary-light);
  padding: 5px 11px;
  font-size: 12px;
  font-weight: 900;
}

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

.primary-link,
.ghost-link {
  display: inline-flex;
  min-height: 56px;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  padding: 0 24px;
  font-weight: 950;
  transition:
    transform 620ms var(--ease-out),
    background 620ms var(--ease-out),
    color 620ms var(--ease-out);
}

.primary-link {
  background: var(--primary);
  color: #101308;
  box-shadow: inset 0 1px 1px rgba(255, 255, 255, 0.5), 0 20px 54px rgba(200, 255, 107, 0.18);
}

.ghost-link {
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.065);
  color: var(--text);
}

.primary-link:hover,
.ghost-link:hover {
  transform: translateY(-3px);
}

.search-panel {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 8px;
  max-width: 860px;
  margin-bottom: 14px;
  border: 1px solid var(--line);
  border-radius: 28px;
  background: rgba(255, 255, 255, 0.055);
  padding: 7px;
  box-shadow: var(--shadow), inset 0 1px 1px rgba(255, 255, 255, 0.12);
}

.search-panel:focus-within {
  border-color: rgba(200, 255, 107, 0.36);
  box-shadow:
    0 0 0 5px rgba(200, 255, 107, 0.08),
    var(--shadow);
}

.search-panel input {
  border: 0;
  border-radius: 22px;
  background: rgba(3, 4, 7, 0.42);
}

.tool-filter-panel {
  display: grid;
  grid-template-columns: repeat(2, minmax(180px, 240px));
  gap: 12px;
  margin-bottom: 16px;
}

.tool-filter-panel label {
  min-width: 0;
}

.tool-memory {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 18px;
  border: 1px solid var(--line);
  border-radius: 22px;
  background: rgba(255, 255, 255, 0.045);
  padding: 14px 16px;
}

.tool-memory strong,
.tool-memory p {
  margin: 0;
}

.tool-memory p {
  color: var(--quiet);
  font-size: 13px;
  font-weight: 800;
}

.tool-memory-list {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  justify-content: flex-end;
}

.search-panel button,
.tool-actions button,
.copy-btn,
.favorite-toggle,
.empty-actions button,
.contact-link {
  display: inline-flex;
  min-width: 92px;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  background: var(--primary);
  color: #101308;
  padding: 0 18px;
  font-weight: 900;
  box-shadow: inset 0 1px 1px rgba(255, 255, 255, 0.5), 0 14px 38px rgba(200, 255, 107, 0.16);
}

.search-panel button:hover,
.tool-actions button:hover,
.copy-btn:hover,
.favorite-toggle:hover,
.empty-actions button:hover,
.contact-link:hover {
  background: var(--primary-light);
  transform: translateY(-2px);
}

button:disabled,
.tool-actions button[aria-busy="true"],
.copy-btn:disabled {
  cursor: not-allowed;
  background: var(--disabled-soft) !important;
  color: var(--disabled) !important;
  opacity: 0.62;
  transform: none;
  box-shadow: none;
}

.tool-actions button[aria-busy="true"]::after {
  width: 0.8em;
  height: 0.8em;
  margin-left: 8px;
  border: 2px solid currentColor;
  border-right-color: transparent;
  border-radius: 50%;
  content: "";
  animation: spin 700ms var(--ease-press) infinite;
}

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

.hero-brand-panel {
  position: relative;
  display: grid;
  align-self: center;
  gap: 16px;
}

.shell,
.tool-card,
.feature,
.legal-content {
  border: 1px solid var(--line);
  border-radius: var(--radius-xl);
  background: rgba(255, 255, 255, 0.055);
  padding: 7px;
  box-shadow: var(--shadow-soft), inset 0 1px 1px rgba(255, 255, 255, 0.08);
}

.hero-logo-wrap {
  display: grid;
  min-height: 460px;
  place-items: center;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: calc(var(--radius-xl) - 7px);
  background:
    radial-gradient(circle at 50% 45%, rgba(200, 255, 107, 0.16), transparent 48%),
    linear-gradient(145deg, rgba(255, 255, 255, 0.1), rgba(255, 255, 255, 0.025));
  box-shadow: inset 0 1px 1px rgba(255, 255, 255, 0.14);
}

.hero-logo {
  width: min(250px, 72%);
  height: auto;
  border-radius: 50%;
  filter: drop-shadow(0 28px 54px rgba(200, 255, 107, 0.2));
}

.category-band,
.tools-section,
.features,
.contact,
.desire-section {
  width: min(1320px, calc(100% - 48px));
  margin: 0 auto;
}

.marquee-band {
  overflow: hidden;
  border-block: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.035);
}

.marquee-track {
  display: flex;
  width: max-content;
  gap: clamp(28px, 6vw, 86px);
  padding: 22px 0;
  color: rgba(247, 244, 234, 0.2);
  font-size: clamp(34px, 6vw, 84px);
  font-weight: 950;
  line-height: 1;
  white-space: nowrap;
  animation: marquee 32s linear infinite;
}

.marquee-track span {
  filter: grayscale(1);
}

@keyframes marquee {
  to {
    transform: translateX(-50%);
  }
}

.category-band {
  padding: 88px 0 28px;
}

.category-list {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.category-list button {
  border: 1px solid var(--line);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.055);
  color: var(--muted);
  padding: 0 17px;
  font-size: 14px;
  font-weight: 900;
}

.category-list button:hover {
  color: var(--text);
  transform: translateY(-2px);
}

.category-list button[aria-pressed="true"] {
  border-color: rgba(200, 255, 107, 0.36);
  background: rgba(200, 255, 107, 0.12);
  color: var(--primary-light);
}

.tools-section {
  padding: 72px 0 148px;
}

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

.result-count {
  margin: 0;
  color: var(--muted);
  font-size: 14px;
  font-weight: 900;
}

.tool-grid {
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  grid-auto-flow: dense;
  gap: 0;
  border: 1px solid var(--line);
  border-radius: var(--radius-xl);
  overflow: hidden;
}

.tool-card {
  display: flex;
  min-width: 0;
  flex-direction: column;
  grid-column: span 6;
  border-radius: 0;
  border-width: 0 1px 1px 0;
  box-shadow: none;
  transition:
    transform 700ms var(--ease-out),
    border-color 700ms var(--ease-out),
    background 700ms var(--ease-out);
}

.tool-card:nth-child(1),
.tool-card:nth-child(6) {
  grid-column: span 7;
}

.tool-card:nth-child(2),
.tool-card:nth-child(5) {
  grid-column: span 5;
}

.tool-card:nth-child(7) {
  grid-column: span 6;
}

.tool-card:hover,
.tool-card:focus-within {
  border-color: rgba(200, 255, 107, 0.22);
  background: rgba(255, 255, 255, 0.075);
  transform: translateY(-5px);
}

.tool-card header,
.tool-body,
.feature {
  position: relative;
}

.tool-card header {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-content: start;
  gap: 10px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-bottom: 0;
  border-radius: calc(var(--radius-xl) - 7px) calc(var(--radius-xl) - 7px) 0 0;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.085), rgba(255, 255, 255, 0.035));
  padding: 20px 24px 8px;
}

.tool-card header .tool-category,
.tool-card header h3,
.tool-card header p {
  grid-column: 1;
}

.favorite-toggle {
  grid-column: 2;
  grid-row: 1 / span 2;
  align-self: start;
  min-width: 78px;
  min-height: 38px;
  padding: 0 12px;
  font-size: 13px;
}

.favorite-toggle[aria-pressed="true"] {
  background: var(--primary-light);
  color: #101308;
}

.tool-card h3,
.tool-card p {
  margin-bottom: 0;
}

.tool-card p {
  color: var(--muted);
}

.tool-body {
  display: grid;
  flex: 1;
  gap: 14px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-top: 0;
  border-radius: 0 0 calc(var(--radius-xl) - 7px) calc(var(--radius-xl) - 7px);
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.035), rgba(255, 255, 255, 0.018));
  padding: 10px 24px 24px;
}

.tool-actions {
  display: flex;
  align-self: start;
  align-items: center;
  flex-wrap: wrap;
  gap: 10px;
}

.tool-actions button,
.copy-btn {
  flex: 0 0 auto;
  min-width: 104px;
  height: 46px;
  min-height: 46px;
  border-radius: 999px;
  padding: 0 18px;
}

.tool-actions button:only-child {
  min-width: 120px;
  max-width: 160px;
}

.output-block {
  display: grid;
  gap: 10px;
}

.output-header,
.output-tools {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.output-actions {
  display: flex;
  flex: 0 0 auto;
  flex-wrap: wrap;
  gap: 8px;
  justify-content: flex-end;
}

.output-meta {
  display: grid;
  gap: 2px;
}

.output-meta strong {
  color: var(--text);
}

.output-status {
  display: block;
  min-height: 18px;
  color: var(--quiet);
  font-size: 13px;
  font-weight: 800;
}

.secondary {
  border: 1px solid var(--line) !important;
  background: rgba(255, 255, 255, 0.065) !important;
  color: var(--text) !important;
  box-shadow: inset 0 1px 1px rgba(255, 255, 255, 0.08) !important;
}

.secondary:hover {
  background: rgba(255, 255, 255, 0.1) !important;
  color: var(--primary-light) !important;
}

.output {
  min-height: 56px;
  overflow: auto;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: rgba(3, 4, 7, 0.52);
  color: #e6eaf2;
  padding: 14px;
  white-space: pre-wrap;
  word-break: break-word;
}

.output--success {
  border-color: rgba(117, 231, 177, 0.36);
  background: var(--success-soft);
}

.output--error {
  border-color: rgba(255, 143, 134, 0.38);
  background: var(--error-soft);
  color: #ffd4d0;
}

.output-block[data-state="error"] .output-status {
  color: var(--error);
}

.output-block[data-state="success"] .output-status {
  color: var(--success);
}

.output-block[data-state="empty-result"] .output-status,
.output-block[data-state="empty"] .output-status {
  color: var(--empty);
}

.output--empty,
.output--empty-result {
  border-color: var(--line);
  background: var(--empty-soft);
  color: var(--empty);
}

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

.token-calc-sections {
  display: grid;
  gap: 12px;
}

.token-calc-note {
  margin: 0;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: rgba(200, 255, 107, 0.075);
  color: var(--primary-light);
  padding: 12px 14px;
  font-size: 13px;
  font-weight: 850;
}

.token-calc-group {
  border: 1px solid var(--line);
  border-radius: 20px;
  background: rgba(255, 255, 255, 0.035);
  padding: 14px;
}

.token-calc-group h4 {
  color: var(--primary-light);
}

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

.token-share-panel {
  display: grid;
  gap: 12px;
  border: 1px solid var(--line);
  border-radius: 22px;
  background: rgba(255, 255, 255, 0.04);
  padding: 14px;
}

.token-share-panel[hidden] {
  display: none;
}

.token-share-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
}

.token-share-header strong,
.token-share-header p {
  margin: 0;
}

.token-share-header p {
  color: var(--quiet);
  font-size: 13px;
  font-weight: 800;
}

.token-share-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  flex: 0 0 auto;
}

.token-share-preview {
  width: 100%;
  max-height: 520px;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: rgba(3, 4, 7, 0.52);
  cursor: zoom-in;
  object-fit: contain;
}

.token-share-modal {
  position: fixed;
  z-index: 1000;
  inset: 0;
  display: grid;
  place-items: center;
  background: rgba(3, 4, 7, 0.82);
  padding: 20px;
}

.token-share-modal-dialog {
  position: relative;
  width: min(100%, 1120px);
  max-height: calc(100vh - 40px);
  display: grid;
  gap: 12px;
}

.token-share-modal-close {
  justify-self: end;
  min-width: 88px;
  min-height: 42px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.1);
  color: var(--text);
  font-weight: 900;
}

.token-share-modal-image {
  width: 100%;
  max-height: calc(100vh - 102px);
  border: 1px solid var(--line);
  border-radius: 18px;
  background: rgba(3, 4, 7, 0.72);
  object-fit: contain;
}

.checkbox-group {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 14px;
  margin: 0;
  border: 1px solid var(--line);
  border-radius: 18px;
  padding: 12px;
}

.checkbox-group legend {
  padding: 0 6px;
  color: var(--muted);
  font-size: 13px;
  font-weight: 900;
}

.checkbox-group label {
  display: inline-flex;
  min-height: 42px;
  align-items: center;
  gap: 8px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.045);
  padding: 4px 10px;
  color: var(--text);
}

.checkbox-group input {
  width: auto;
  min-height: 0;
  accent-color: var(--primary);
}

.result-row {
  display: grid;
  grid-template-columns: 120px minmax(0, 1fr) auto;
  gap: 8px;
  align-items: center;
}

.result-row code {
  overflow-wrap: anywhere;
  border-radius: 14px;
  background: rgba(3, 4, 7, 0.46);
  padding: 10px;
}

.empty-state {
  border: 1px dashed var(--line-strong);
  border-radius: var(--radius-xl);
  background: rgba(255, 255, 255, 0.04);
  padding: 34px;
  color: var(--muted);
  text-align: center;
}

.empty-state p {
  margin-bottom: 8px;
}

.empty-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 10px;
  margin-top: 16px;
}

.features {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  grid-auto-flow: dense;
  gap: 0;
  border: 1px solid var(--line);
  border-radius: var(--radius-xl);
  overflow: hidden;
  padding: 0;
}

.feature {
  min-height: 250px;
  border-radius: 0;
  border-width: 0 1px 0 0;
  box-shadow: none;
  padding: 28px;
}

.feature::before {
  position: absolute;
  inset: 7px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: calc(var(--radius-xl) - 7px);
  background: linear-gradient(145deg, rgba(255, 255, 255, 0.08), rgba(255, 255, 255, 0.025));
  content: "";
}

.feature > * {
  position: relative;
  z-index: 1;
}

.feature-icon {
  display: none;
}

.feature h3,
.feature p {
  max-width: 34rem;
  margin-right: 0;
  margin-left: 0;
}

.feature h3 {
  margin-top: 0;
  padding-top: 92px;
  font-size: clamp(26px, 3vw, 42px);
  line-height: 1.05;
}

.feature p,
.contact p {
  color: var(--muted);
}

.desire-section {
  display: grid;
  grid-template-columns: minmax(300px, 0.72fr) minmax(0, 1fr);
  gap: clamp(28px, 6vw, 84px);
  align-items: start;
  padding: 132px 0 150px;
}

.desire-copy {
  position: sticky;
  top: 130px;
  align-self: start;
}

.scrub-text {
  max-width: 560px;
  margin: 0;
  color: rgba(247, 244, 234, 0.76);
  font-size: clamp(32px, 3.6vw, 54px);
  line-height: 1.08;
  text-wrap: balance;
}

.scrub-text.is-scrubbed {
  color: var(--text);
}

.stack-list {
  display: grid;
  gap: 14px;
}

.stack-card {
  position: relative;
  top: auto;
  display: grid;
  grid-template-columns: 88px minmax(0, 1fr);
  gap: 24px;
  min-height: 190px;
  border: 1px solid var(--line);
  border-radius: 28px;
  background:
    radial-gradient(circle at 100% 0%, rgba(200, 255, 107, 0.1), transparent 36%),
    rgba(255, 255, 255, 0.052);
  padding: 28px;
  box-shadow: var(--shadow-soft);
  transform-origin: center;
  transition:
    transform 620ms var(--ease-out),
    background 620ms var(--ease-out),
    border-color 620ms var(--ease-out);
}

.stack-card:hover {
  border-color: rgba(200, 255, 107, 0.24);
  background:
    radial-gradient(circle at 100% 0%, rgba(200, 255, 107, 0.14), transparent 36%),
    rgba(255, 255, 255, 0.068);
  transform: translateY(-3px);
}

.stack-card span {
  display: inline-grid;
  width: 64px;
  height: 64px;
  place-items: center;
  border: 1px solid rgba(200, 255, 107, 0.22);
  border-radius: 18px;
  background: rgba(200, 255, 107, 0.1);
  color: var(--primary);
  font-size: 14px;
  font-weight: 950;
}

.stack-card h3 {
  grid-column: 2;
  max-width: 520px;
  margin: 0 0 10px;
  font-size: clamp(28px, 3vw, 44px);
  line-height: 1.08;
  text-wrap: balance;
}

.stack-card p {
  grid-column: 2;
  max-width: 560px;
  margin: 0;
  color: var(--muted);
}

.contact {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 28px;
  border: 1px solid var(--line);
  border-radius: var(--radius-xl);
  background:
    radial-gradient(circle at 15% 20%, rgba(200, 255, 107, 0.1), transparent 30%),
    rgba(255, 255, 255, 0.05);
  margin-top: 24px;
  padding: clamp(28px, 5vw, 64px);
  box-shadow: var(--shadow-soft), inset 0 1px 1px rgba(255, 255, 255, 0.09);
}

.contact-link {
  min-height: 54px;
  flex: 0 0 auto;
  padding: 0 22px;
}

.site-footer {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 20px;
  padding: 34px max(20px, calc((100% - 1180px) / 2));
  color: var(--muted);
}

.footer-main,
.footer-compliance {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 16px;
}

.footer-main {
  color: var(--text);
  font-weight: 800;
}

.footer-compliance {
  justify-content: flex-end;
  font-size: 14px;
}

.footer-compliance a {
  display: inline-flex;
  min-height: 44px;
  align-items: center;
  transition: color 520ms var(--ease-out);
}

.footer-compliance a:hover {
  color: var(--primary-light);
}

.legal-page {
  width: min(900px, calc(100% - 40px));
  margin: 0 auto;
  padding: 110px 0;
}

.legal-content {
  color: var(--muted);
}

.legal-content h1,
.legal-content h2,
.legal-content h3 {
  color: var(--text);
}

.legal-content a {
  color: var(--primary-light);
  font-weight: 900;
}

.reveal {
  opacity: 0;
  transform: translateY(56px);
  transition:
    transform 900ms var(--ease-out),
    opacity 900ms var(--ease-out);
}

.reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}

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

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

  .reveal {
    opacity: 1;
    transform: none;
  }
}

@media (max-width: 900px) {
  .hero-inner,
  .features,
  .desire-section {
    grid-template-columns: 1fr;
  }

  .hero-inner {
    padding: 88px 0 56px;
  }

  .hero-brand-panel {
    align-self: stretch;
  }

  .hero-logo-wrap {
    min-height: 260px;
  }

  .tool-card,
  .tool-card:nth-child(1),
  .tool-card:nth-child(2),
  .tool-card:nth-child(5),
  .tool-card:nth-child(6) {
    grid-column: span 12;
  }

  .desire-copy {
    position: static;
  }

  .stack-card {
    grid-template-columns: 72px minmax(0, 1fr);
  }

  .contact,
  .site-footer {
    align-items: flex-start;
    grid-template-columns: 1fr;
  }

  .contact {
    flex-direction: column;
  }

  .footer-compliance {
    justify-content: flex-start;
  }
}

@media (max-width: 640px) {
  body {
    font-size: 15px;
  }

  .site-header {
    padding: 12px 10px 0;
  }

  .nav {
    align-items: stretch;
    flex-direction: column;
    gap: 8px;
    border-radius: 26px;
  }

  .brand {
    justify-content: center;
  }

  .nav-links {
    width: 100%;
    justify-content: space-between;
  }

  .nav-links a {
    flex: 1;
    padding-right: 8px;
    padding-left: 8px;
    text-align: center;
  }

  .hero::before,
  .hero::after {
    display: none;
  }

  .hero-inner,
  .category-band,
  .tools-section,
  .features,
  .contact,
  .desire-section,
  .legal-page {
    width: min(100% - 24px, 1180px);
  }

  .hero-inner {
    gap: 26px;
    padding: 56px 0 34px;
  }

  h1 {
    font-size: 40px;
    overflow-wrap: anywhere;
  }

  h2 {
    font-size: 34px;
  }

  .hero-text {
    font-size: 16px;
  }

  .search-panel,
  .tool-filter-panel,
  .inline-grid,
  .result-row {
    grid-template-columns: 1fr;
  }

  .tool-memory {
    align-items: stretch;
    flex-direction: column;
  }

  .tool-memory-list {
    justify-content: flex-start;
  }

  .tool-memory-list button {
    flex: 1 1 136px;
  }

  .search-panel button,
  .tool-actions button,
  .copy-btn,
  .favorite-toggle,
  .contact-link {
    width: 100%;
  }

  .hero-logo-shell {
    display: none;
  }

  .category-list {
    flex-wrap: nowrap;
    overflow-x: auto;
    padding-bottom: 6px;
  }

  .category-list button {
    flex: 0 0 auto;
  }

  .tools-section {
    padding: 56px 0 88px;
  }

  .section-heading {
    align-items: flex-start;
    flex-direction: column;
    gap: 8px;
  }

  .tool-card header {
    grid-template-columns: 1fr;
    padding: 18px 18px 0;
  }

  .favorite-toggle,
  .tool-card header .tool-category,
  .tool-card header h3,
  .tool-card header p {
    grid-column: 1;
  }

  .favorite-toggle {
    grid-row: auto;
  }

  .tool-body {
    padding: 10px 18px 18px;
  }

  .output-tools {
    align-items: stretch;
    flex-direction: column;
  }

  .output-actions {
    flex-direction: column;
  }

  .features {
    border-radius: 24px;
  }

  .feature {
    min-height: auto;
    border-width: 0 0 1px;
  }

  .feature::before {
    min-height: auto;
  }

  .feature h3 {
    margin-top: 0;
    padding-top: 78px;
  }

  .desire-section {
    padding: 88px 0;
  }

  .stack-card {
    grid-template-columns: 1fr;
    gap: 16px;
    min-height: auto;
    padding: 22px;
  }

  .stack-card span {
    width: max-content;
    min-width: 56px;
    height: 40px;
    padding: 0 12px;
  }

  .stack-card h3,
  .stack-card p {
    grid-column: 1;
  }

  .contact {
    padding: 24px;
  }

  .footer-compliance {
    gap: 4px 12px;
  }

  .footer-compliance a {
    min-width: 44px;
  }
}
