:root {
  --bg: #070707;
  --bg-2: #0e0e0e;
  --card: #121212;
  --card-hover: #171717;
  --line: #242424;
  --line-soft: #1a1a1a;
  --text: #f4f4f5;
  --muted: #a1a1aa;
  --dim: #71717a;
  --white: #ffffff;
  --green: #22c55e;
  --blue: #3b82f6;
  --purple: #a855f7;
  --cyan: #22d3ee;
  --amber: #f59e0b;
  --rose: #f43f5e;
  --radius: 16px;
  --max: 1180px;
  --nav-h: 68px;
}
* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: "Open Sans", system-ui, sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  min-height: 100vh;
}
a { color: inherit; text-decoration: none; }
button, input, select, textarea { font-family: inherit; }
button { cursor: pointer; border: none; background: none; color: inherit; }
img { max-width: 100%; display: block; }

.nav {
  position: sticky; top: 0; z-index: 100; height: var(--nav-h);
  background: rgba(7,7,7,.82); backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--line);
}
.nav-inner {
  max-width: var(--max); margin: 0 auto; height: 100%; padding: 0 22px;
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
}
.logo { display: flex; align-items: center; gap: 11px; font-weight: 800; letter-spacing: .03em; font-size: 14px; }
.logo-mark {
  width: 34px; height: 34px; border-radius: 10px;
  background: linear-gradient(145deg, #fff, #cfcfcf); color: #000;
  display: grid; place-items: center; font-size: 11px; font-weight: 800;
}
.logo small { display: block; font-weight: 500; color: var(--dim); letter-spacing: 0; font-size: 11px; margin-top: 1px; }
.nav-links { display: flex; align-items: center; gap: 4px; flex-wrap: wrap; }
.nav-links a {
  padding: 8px 12px; border-radius: 999px; font-size: 13px; font-weight: 600;
  color: var(--muted); transition: .15s ease;
}
.nav-links a:hover, .nav-links a.active { color: var(--text); background: rgba(255,255,255,.05); }
.nav-actions { display: flex; gap: 8px; align-items: center; }
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: 10px 16px; border-radius: 999px; font-size: 13px; font-weight: 700;
  border: 1px solid var(--line); background: #151515; color: var(--text);
  transition: .18s ease; white-space: nowrap;
}
.btn:hover { background: #1c1c1c; border-color: #333; }
.btn-primary { background: var(--white); color: #000; border-color: var(--white); }
.btn-primary:hover { background: #e4e4e7; border-color: #e4e4e7; }
.btn-ghost { background: transparent; }
.btn:disabled { opacity: .5; cursor: not-allowed; }
.menu-toggle {
  display: none; width: 40px; height: 40px; border-radius: 10px; border: 1px solid var(--line);
  align-items: center; justify-content: center; flex-direction: column; gap: 5px;
}
.menu-toggle span { display: block; width: 16px; height: 1.5px; background: #fff; }
@media (max-width: 900px) {
  .nav-links { display: none; }
  .nav-actions .btn-ghost { display: none; }
  .menu-toggle { display: flex; }
  .nav.open .nav-links {
    display: flex; position: absolute; top: var(--nav-h); left: 0; right: 0;
    flex-direction: column; background: #0b0b0b; border-bottom: 1px solid var(--line);
    padding: 12px; gap: 4px;
  }
  .nav.open .nav-links a { width: 100%; }
}

.wrap { max-width: var(--max); margin: 0 auto; padding: 0 22px; }
section { padding: 64px 0; scroll-margin-top: calc(var(--nav-h) + 12px); }
.section-head {
  display: flex; flex-wrap: wrap; align-items: end; justify-content: space-between;
  gap: 16px; margin-bottom: 28px;
}
.kicker {
  color: var(--dim); font-size: 12px; font-weight: 800; letter-spacing: .12em;
  text-transform: uppercase; margin-bottom: 8px;
}
h1 { font-size: clamp(1.8rem, 4vw, 2.6rem); line-height: 1.12; font-weight: 800; letter-spacing: -.03em; }
h2 { font-size: clamp(1.35rem, 2.6vw, 1.85rem); font-weight: 800; letter-spacing: -.02em; }
h3 { font-size: 1.05rem; font-weight: 700; }
.section-desc, .muted { color: var(--muted); font-size: 15px; }
.lead { color: var(--muted); font-size: 1.05rem; max-width: 56ch; }

.hero {
  position: relative; overflow: hidden; border-bottom: 1px solid var(--line);
}
.hero::before {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background:
    radial-gradient(ellipse 80% 55% at 50% -20%, rgba(255,255,255,.09), transparent 55%),
    radial-gradient(ellipse 35% 40% at 85% 30%, rgba(168,85,247,.1), transparent 55%),
    radial-gradient(ellipse 30% 35% at 10% 70%, rgba(59,130,246,.1), transparent 55%);
}
.hero-inner { position: relative; max-width: var(--max); margin: 0 auto; padding: 64px 22px 52px; }
.badge {
  display: inline-flex; align-items: center; gap: 8px; padding: 7px 12px; border-radius: 999px;
  border: 1px solid var(--line); background: rgba(255,255,255,.04); color: var(--muted);
  font-size: 12px; font-weight: 700; letter-spacing: .04em; text-transform: uppercase; margin-bottom: 18px;
}
.badge .dot {
  width: 7px; height: 7px; border-radius: 50%; background: var(--green);
  box-shadow: 0 0 0 4px rgba(34,197,94,.15);
}
.hero-cta { display: flex; flex-wrap: wrap; gap: 10px; margin: 24px 0 32px; }
.stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; max-width: 720px; }
.stat {
  background: rgba(255,255,255,.03); border: 1px solid var(--line); border-radius: 14px; padding: 14px 16px;
}
.stat b { display: block; font-size: 1.3rem; font-weight: 800; letter-spacing: -.02em; }
.stat span { color: var(--dim); font-size: 12px; font-weight: 600; }
@media (max-width: 700px) { .stats { grid-template-columns: 1fr 1fr; } }

.filters {
  display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 22px;
  position: sticky; top: calc(var(--nav-h) + 8px); z-index: 40; padding: 10px 0;
  background: linear-gradient(var(--bg) 70%, transparent);
}
.filter-btn, .chip-btn {
  padding: 9px 14px; border-radius: 999px; border: 1px solid var(--line);
  background: var(--card); color: var(--muted); font-size: 13px; font-weight: 700; transition: .15s ease;
}
.filter-btn:hover, .chip-btn:hover { color: var(--text); border-color: #333; }
.filter-btn.active, .chip-btn.active { background: var(--white); color: #000; border-color: var(--white); }
.search-wrap { flex: 1; min-width: 200px; max-width: 320px; position: relative; }
.search-wrap input {
  width: 100%; background: var(--card); border: 1px solid var(--line); border-radius: 999px;
  padding: 10px 14px 10px 38px; color: var(--text); font-size: 13px; outline: none;
}
.search-wrap input:focus { border-color: #444; }
.search-wrap::before {
  content: "⌕"; position: absolute; left: 14px; top: 50%; transform: translateY(-50%);
  color: var(--dim); font-size: 15px;
}

.tools-grid, .grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; }
.grid-2 { display: grid; grid-template-columns: repeat(2, 1fr); gap: 14px; }
@media (max-width: 980px) {
  .tools-grid, .grid-3 { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 620px) {
  .tools-grid, .grid-3, .grid-2 { grid-template-columns: 1fr; }
}

.tool, .card {
  background: var(--card); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 20px; display: flex; flex-direction: column; transition: .2s ease; position: relative;
}
.tool { min-height: 230px; }
.tool:hover, .card:hover { background: var(--card-hover); border-color: #333; transform: translateY(-2px); }
.tool.hidden { display: none; }
.tool-top { display: flex; align-items: flex-start; justify-content: space-between; gap: 10px; margin-bottom: 14px; }
.tool-icon {
  width: 46px; height: 46px; border-radius: 13px; display: grid; place-items: center;
  font-size: 20px; border: 1px solid transparent;
}
.tool-icon.seo { background: rgba(59,130,246,.12); border-color: rgba(59,130,246,.25); }
.tool-icon.ai { background: rgba(168,85,247,.12); border-color: rgba(168,85,247,.25); }
.tool-icon.wp { background: rgba(34,211,238,.1); border-color: rgba(34,211,238,.22); }
.tool-icon.biz { background: rgba(245,158,11,.12); border-color: rgba(245,158,11,.25); }
.pills { display: flex; flex-wrap: wrap; gap: 6px; justify-content: flex-end; }
.pill {
  font-size: 10px; font-weight: 800; letter-spacing: .05em; text-transform: uppercase;
  padding: 4px 8px; border-radius: 999px; border: 1px solid var(--line);
  color: var(--muted); background: rgba(255,255,255,.03);
}
.pill.free { color: #86efac; border-color: rgba(34,197,94,.3); background: rgba(34,197,94,.08); }
.pill.pro { color: #fde68a; border-color: rgba(245,158,11,.3); background: rgba(245,158,11,.08); }
.pill.soon { color: #c4b5fd; border-color: rgba(168,85,247,.3); background: rgba(168,85,247,.08); }
.pill.mvp { color: #93c5fd; border-color: rgba(59,130,246,.3); background: rgba(59,130,246,.08); }
.tool h3, .card h3 { margin-bottom: 8px; }
.tool p, .card p { color: var(--muted); font-size: 13.5px; flex: 1; }
.tool-foot {
  display: flex; align-items: center; justify-content: space-between; gap: 10px;
  margin-top: 18px; padding-top: 14px; border-top: 1px solid var(--line-soft);
}
.cat-label { font-size: 11px; font-weight: 700; color: var(--dim); text-transform: uppercase; letter-spacing: .06em; }
.tool-link { font-size: 13px; font-weight: 700; color: var(--text); display: inline-flex; align-items: center; gap: 6px; }
.tool:hover .tool-link span { transform: translateX(3px); }
.tool-link span { transition: transform .15s ease; }

.cats { display: grid; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); gap: 12px; }
@media (max-width: 900px) { .cats { grid-template-columns: 1fr 1fr; } }
@media (max-width: 520px) { .cats { grid-template-columns: 1fr; } }
.cat {
  background: var(--card); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 22px; transition: .2s ease;
}
.cat:hover { border-color: #333; background: var(--card-hover); }
.cat .ico {
  width: 42px; height: 42px; border-radius: 12px; display: grid; place-items: center;
  font-size: 18px; margin-bottom: 14px; border: 1px solid var(--line); background: #161616;
}
.cat h3 { margin-bottom: 6px; }
.cat p { color: var(--muted); font-size: 13.5px; }
.cat .count { margin-top: 14px; font-size: 12px; font-weight: 700; color: var(--dim); }

.packs { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; }
@media (max-width: 900px) { .packs { grid-template-columns: 1fr; } }
.pack {
  background: var(--card); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 26px 22px; display: flex; flex-direction: column;
}
.pack.featured {
  border-color: rgba(255,255,255,.28);
  background: linear-gradient(180deg, rgba(255,255,255,.05), transparent 40%), var(--card);
  box-shadow: 0 20px 50px rgba(0,0,0,.35);
}
.pack .tag {
  display: inline-block; width: fit-content; font-size: 11px; font-weight: 800;
  letter-spacing: .06em; text-transform: uppercase; padding: 5px 9px; border-radius: 8px;
  background: #222; color: var(--muted); margin-bottom: 14px;
}
.pack.featured .tag { background: #fff; color: #000; }
.pack h3 { font-size: 1.25rem; font-weight: 800; margin-bottom: 6px; }
.pack .price { color: var(--muted); font-size: 14px; margin-bottom: 18px; }
.pack ul { list-style: none; display: grid; gap: 10px; flex: 1; margin-bottom: 22px; }
.pack li { position: relative; padding-left: 22px; color: var(--muted); font-size: 14px; }
.pack li::before { content: "✓"; position: absolute; left: 0; color: var(--green); font-weight: 800; }

.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; }
@media (max-width: 800px) { .steps { grid-template-columns: 1fr; } }
.step {
  background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 22px;
}
.step-num {
  width: 36px; height: 36px; border-radius: 50%; background: #fff; color: #000;
  font-weight: 800; display: grid; place-items: center; margin-bottom: 14px; font-size: 14px;
}
.step h3 { margin-bottom: 8px; }
.step p { color: var(--muted); font-size: 14px; }

.cta-band {
  border: 1px solid var(--line); border-radius: 22px; padding: 40px 28px; text-align: center;
  background:
    radial-gradient(ellipse 60% 80% at 100% 0%, rgba(168,85,247,.12), transparent 50%),
    radial-gradient(ellipse 50% 70% at 0% 100%, rgba(59,130,246,.1), transparent 50%),
    var(--card);
}
.cta-band h2 { max-width: 18ch; margin: 0 auto 12px; }
.cta-band p { color: var(--muted); max-width: 48ch; margin: 0 auto 22px; }
.cta-band .actions { display: flex; flex-wrap: wrap; gap: 10px; justify-content: center; }

footer { border-top: 1px solid var(--line); padding: 36px 22px 48px; margin-top: 20px; }
.footer-inner {
  max-width: var(--max); margin: 0 auto;
  display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: 28px;
}
@media (max-width: 800px) { .footer-inner { grid-template-columns: 1fr 1fr; } }
@media (max-width: 480px) { .footer-inner { grid-template-columns: 1fr; } }
.footer-brand p { color: var(--muted); font-size: 14px; margin-top: 12px; max-width: 32ch; }
.footer-col h4 {
  font-size: 12px; text-transform: uppercase; letter-spacing: .08em; color: var(--dim); margin-bottom: 12px;
}
.footer-col a { display: block; color: var(--muted); font-size: 14px; padding: 5px 0; }
.footer-col a:hover { color: var(--text); }
.footer-bottom {
  max-width: var(--max); margin: 28px auto 0; padding-top: 18px;
  border-top: 1px solid var(--line-soft); display: flex; flex-wrap: wrap;
  justify-content: space-between; gap: 10px; color: var(--dim); font-size: 12px;
}

/* Tool page layout */
.tool-page { padding: 40px 0 72px; }
.tool-header { margin-bottom: 28px; max-width: 62ch; }
.tool-header .breadcrumbs {
  display: flex; flex-wrap: wrap; gap: 8px; align-items: center;
  color: var(--dim); font-size: 13px; font-weight: 600; margin-bottom: 14px;
}
.tool-header .breadcrumbs a { color: var(--muted); }
.tool-header .breadcrumbs a:hover { color: var(--text); }
.tool-layout { display: grid; grid-template-columns: 1.1fr .9fr; gap: 18px; align-items: start; }
@media (max-width: 900px) { .tool-layout { grid-template-columns: 1fr; } }
.panel {
  background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 22px;
}
.panel h3 { margin-bottom: 14px; font-size: 1rem; }
.field { margin-bottom: 14px; }
.field label {
  display: block; font-size: 12px; font-weight: 700; color: var(--muted);
  text-transform: uppercase; letter-spacing: .05em; margin-bottom: 7px;
}
.field input, .field select, .field textarea {
  width: 100%; background: #0d0d0d; border: 1px solid var(--line); border-radius: 12px;
  padding: 12px 14px; color: var(--text); font-size: 14px; outline: none;
}
.field input:focus, .field select:focus, .field textarea:focus { border-color: #555; }
.field textarea { min-height: 120px; resize: vertical; line-height: 1.55; }
.field .hint { color: var(--dim); font-size: 12px; margin-top: 6px; }
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
@media (max-width: 600px) { .field-row { grid-template-columns: 1fr; } }
.actions-row { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 8px; }
.output-box {
  background: #0a0a0a; border: 1px solid var(--line); border-radius: 12px;
  padding: 14px; font-size: 14px; white-space: pre-wrap; word-break: break-word;
  min-height: 80px; color: var(--text); font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  line-height: 1.55;
}
.char-count { font-size: 12px; color: var(--dim); margin-top: 6px; }
.char-count.ok { color: var(--green); }
.char-count.warn { color: var(--amber); }
.char-count.bad { color: var(--rose); }
.checklist-item {
  display: flex; gap: 12px; align-items: flex-start; padding: 12px 0;
  border-bottom: 1px solid var(--line-soft);
}
.checklist-item:last-child { border-bottom: none; }
.checklist-item input { width: 18px; height: 18px; margin-top: 2px; accent-color: #fff; }
.checklist-item label { flex: 1; cursor: pointer; font-size: 14px; color: var(--muted); }
.checklist-item label strong { color: var(--text); display: block; margin-bottom: 2px; }
.score-ring {
  width: 120px; height: 120px; border-radius: 50%; margin: 0 auto 14px;
  display: grid; place-items: center; font-size: 1.8rem; font-weight: 800;
  background: conic-gradient(var(--green) calc(var(--p) * 1%), #222 0);
  position: relative;
}
.score-ring::before {
  content: ""; position: absolute; inset: 10px; border-radius: 50%; background: var(--card);
}
.score-ring span { position: relative; z-index: 1; }
.toast {
  position: fixed; bottom: 24px; left: 50%; transform: translateX(-50%) translateY(16px);
  background: #fff; color: #000; padding: 12px 18px; border-radius: 999px;
  font-weight: 700; font-size: 13px; opacity: 0; pointer-events: none; transition: .25s ease; z-index: 300;
  box-shadow: 0 10px 30px rgba(0,0,0,.4);
}
.toast.show { opacity: 1; transform: translateX(-50%) translateY(0); }
.empty {
  display: none; text-align: center; padding: 48px 20px; color: var(--muted);
  border: 1px dashed var(--line); border-radius: var(--radius);
}
.empty.show { display: block; }
.pro-cta {
  margin-top: 16px; padding: 14px 16px; border-radius: 12px;
  border: 1px solid rgba(245,158,11,.25); background: rgba(245,158,11,.08);
  color: var(--muted); font-size: 13.5px;
}
.pro-cta a { color: #fde68a; font-weight: 700; text-decoration: underline; }
.dropzone {
  border: 1.5px dashed var(--line); border-radius: 14px; padding: 28px; text-align: center;
  color: var(--muted); background: #0d0d0d; cursor: pointer; transition: .15s ease;
}
.dropzone:hover, .dropzone.drag { border-color: #666; color: var(--text); }
.preview-grid { display: grid; gap: 12px; margin-top: 14px; }
.preview-card {
  display: grid; grid-template-columns: 80px 1fr auto; gap: 12px; align-items: center;
  background: #0d0d0d; border: 1px solid var(--line); border-radius: 12px; padding: 10px;
}
.preview-card img { width: 80px; height: 60px; object-fit: cover; border-radius: 8px; background: #111; }
.preview-card .meta { font-size: 12px; color: var(--dim); }
.preview-card .meta b { display: block; color: var(--text); font-size: 13px; margin-bottom: 2px; }
.note {
  border-left: 3px solid #fff; background: linear-gradient(90deg, rgba(255,255,255,.05), transparent);
  padding: 14px 16px; border-radius: 0 12px 12px 0; color: var(--muted); font-size: 14px; margin: 16px 0;
}
