:root {
  color-scheme: dark;
  --bg: #07111f;
  --panel: rgba(15, 23, 42, 0.78);
  --panel-strong: #101b31;
  --text: #e5eefc;
  --muted: #9fb0ca;
  --line: rgba(148, 163, 184, 0.2);
  --primary: #67e8f9;
  --primary-strong: #22d3ee;
  --accent: #a78bfa;
  --success: #86efac;
  --shadow: 0 24px 80px rgba(0, 0, 0, 0.35);
  font-family: Inter, "PingFang SC", "Microsoft YaHei", system-ui, sans-serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  min-height: 100vh;
  color: var(--text);
  background:
    radial-gradient(circle at top left, rgba(34, 211, 238, 0.22), transparent 32rem),
    radial-gradient(circle at 80% 10%, rgba(167, 139, 250, 0.18), transparent 28rem),
    linear-gradient(135deg, #06101e 0%, var(--bg) 42%, #0f172a 100%);
}

a { color: inherit; text-decoration: none; }
button, input { font: inherit; }
.page-shell { width: min(1180px, calc(100% - 32px)); margin: 0 auto; }
.hero { padding: 28px 0 72px; }
.topbar, .hero-grid, .section-heading, .card-footer, .card-topline, .category-tabs { display: flex; align-items: center; }
.topbar { justify-content: space-between; gap: 24px; margin-bottom: 72px; }
.brand { display: inline-flex; align-items: center; gap: 12px; font-weight: 800; letter-spacing: -0.03em; font-size: 1.2rem; }
.brand-mark {
  display: grid; place-items: center; width: 42px; height: 42px; border-radius: 14px;
  background: linear-gradient(135deg, var(--primary), var(--accent)); color: #06101e; box-shadow: 0 12px 32px rgba(34, 211, 238, 0.26);
}
.nav-links { display: flex; gap: 20px; color: var(--muted); font-size: 0.95rem; }
.nav-links a:hover { color: var(--text); }
.hero-grid { align-items: stretch; justify-content: space-between; gap: 40px; }
.hero-copy { max-width: 720px; }
.eyebrow { margin: 0 0 14px; color: var(--primary); text-transform: uppercase; letter-spacing: 0.18em; font-size: 0.75rem; font-weight: 800; }
h1, h2, h3, p { margin-top: 0; }
h1 { margin-bottom: 22px; font-size: clamp(3rem, 8vw, 6.6rem); line-height: 0.92; letter-spacing: -0.08em; }
h2 { margin-bottom: 0; font-size: clamp(2rem, 4vw, 3.4rem); letter-spacing: -0.05em; }
.hero-intro { max-width: 680px; color: var(--muted); font-size: 1.08rem; line-height: 1.9; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 34px; }
.button { display: inline-flex; align-items: center; justify-content: center; min-height: 48px; padding: 0 22px; border-radius: 999px; font-weight: 700; }
.primary { background: var(--primary); color: #06101e; }
.secondary { border: 1px solid var(--line); color: var(--text); background: rgba(255,255,255,0.04); }
.hero-panel { position: relative; overflow: hidden; min-width: 320px; padding: 28px; border: 1px solid var(--line); border-radius: 32px; background: var(--panel); box-shadow: var(--shadow); }
.panel-glow { position: absolute; inset: -30% -20% auto auto; width: 180px; height: 180px; border-radius: 50%; background: rgba(103, 232, 249, 0.3); filter: blur(40px); }
.hero-panel p, .hero-panel span { color: var(--muted); }
.hero-panel strong { display: block; margin: 10px 0; font-size: 5rem; line-height: 1; letter-spacing: -0.08em; }
.mini-stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; margin-top: 32px; }
.mini-stats div { padding: 14px; border-radius: 20px; background: rgba(255,255,255,0.06); }
.mini-stats b, .mini-stats small { display: block; }
.mini-stats small { color: var(--muted); margin-top: 4px; }
.section { padding: 54px 0; }
.section-heading { justify-content: space-between; gap: 24px; margin-bottom: 26px; }
.section-heading.compact { align-items: flex-end; }
.section-heading.compact > p { color: var(--muted); margin-bottom: 8px; }
.search-box { width: min(360px, 100%); display: grid; gap: 8px; color: var(--muted); }
.search-box input { width: 100%; border: 1px solid var(--line); border-radius: 18px; background: rgba(255,255,255,0.06); color: var(--text); padding: 14px 16px; outline: none; }
.search-box input:focus { border-color: var(--primary); box-shadow: 0 0 0 4px rgba(103, 232, 249, 0.12); }
.category-tabs { flex-wrap: wrap; gap: 10px; margin-bottom: 26px; }
.category-tabs button { cursor: pointer; border: 1px solid var(--line); border-radius: 999px; padding: 10px 16px; background: rgba(255,255,255,0.04); color: var(--muted); }
.category-tabs button.active { background: var(--text); color: #07111f; border-color: var(--text); }
.tool-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px; }
.tool-card { display: flex; flex-direction: column; min-height: 360px; padding: 22px; border: 1px solid var(--line); border-radius: 28px; background: linear-gradient(180deg, rgba(15,23,42,0.92), rgba(15,23,42,0.62)); box-shadow: 0 16px 50px rgba(0,0,0,0.2); transition: transform 180ms ease, border-color 180ms ease; }
.tool-card:hover { transform: translateY(-4px); border-color: rgba(103, 232, 249, 0.55); }
.card-topline { justify-content: space-between; gap: 10px; margin-bottom: 18px; }
.category-pill, .featured-pill { border-radius: 999px; padding: 6px 10px; font-size: 0.78rem; font-weight: 700; }
.category-pill { background: rgba(103, 232, 249, 0.12); color: var(--primary); }
.featured-pill { background: rgba(134, 239, 172, 0.12); color: var(--success); }
.featured-pill[hidden] { display: none; }
.tool-card h3 { font-size: 1.45rem; margin-bottom: 12px; letter-spacing: -0.03em; }
.summary { color: #cbd5e1; line-height: 1.7; }
.best-for { margin-top: auto; color: #dbeafe; line-height: 1.65; font-size: 0.95rem; }
.reason { color: var(--muted); line-height: 1.65; font-size: 0.9rem; margin-bottom: 0; }
.tags { display: flex; flex-wrap: wrap; gap: 8px; margin: 18px 0; }
.tags span { color: var(--muted); border: 1px solid var(--line); border-radius: 999px; padding: 5px 9px; font-size: 0.8rem; }
.card-footer { justify-content: space-between; gap: 12px; border-top: 1px solid var(--line); padding-top: 16px; }
.pricing { color: var(--muted); font-size: 0.9rem; }
.card-footer a { color: var(--primary); font-weight: 800; }
.empty-state { text-align: center; color: var(--muted); padding: 48px 0; }
.workflow { padding-bottom: 88px; }
.workflow-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px; }
.workflow-grid article { padding: 26px; border-radius: 28px; background: rgba(255,255,255,0.06); border: 1px solid var(--line); }
.workflow-grid span { display: inline-flex; color: var(--primary); font-weight: 800; margin-bottom: 24px; }
.workflow-grid p { color: var(--muted); line-height: 1.7; margin-bottom: 0; }

@media (max-width: 920px) {
  .hero-grid, .section-heading { flex-direction: column; align-items: flex-start; }
  .hero-panel { width: 100%; min-width: 0; }
  .tool-grid, .workflow-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 640px) {
  .page-shell { width: min(100% - 22px, 1180px); }
  .topbar { align-items: flex-start; flex-direction: column; margin-bottom: 44px; }
  .nav-links { flex-wrap: wrap; }
  h1 { font-size: 3.3rem; }
  .tool-grid, .workflow-grid, .mini-stats { grid-template-columns: 1fr; }
  .tool-card { min-height: auto; }
}
