/* ── DNX AI — Global Styles ──────────────────────────────────────────── */
:root {
  --bg:       #09090f;
  --surface:  #111118;
  --card:     #16161e;
  --card2:    #1c1c26;
  --border:   rgba(255,255,255,0.08);
  --border2:  rgba(255,255,255,0.14);
  --accent:   #7c5cfc;
  --accent2:  #00d4aa;
  --accent3:  #f7b731;
  --txt:      #f0f0f8;
  --muted:    #7878a0;
  --muted2:   #55556a;
  --radius:   14px;
  --radius-sm:8px;
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }

body {
  background: var(--bg);
  color: var(--txt);
  font-family: 'DM Sans', sans-serif;
  font-size: 15px;
  line-height: 1.65;
  min-height: 100vh;
}

a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }
button { cursor: pointer; font-family: inherit; }

/* ── Typography ─────────────────────────────────────────────────────── */
h1,h2,h3,h4 { font-family: 'Syne', sans-serif; font-weight: 700; line-height: 1.15; letter-spacing: -0.03em; }
h1 { font-size: clamp(32px, 5vw, 56px); font-weight: 800; }
h2 { font-size: clamp(24px, 3vw, 36px); }
h3 { font-size: 20px; }
h4 { font-size: 13px; letter-spacing: 0.08em; text-transform: uppercase; color: var(--muted); font-weight: 700; }

/* ── Layout ─────────────────────────────────────────────────────────── */
.wrap     { max-width: 1140px; margin: 0 auto; padding: 0 24px; }
.wrap-sm  { max-width: 760px;  margin: 0 auto; padding: 0 24px; }
.section  { padding: 72px 0; }
.section-sm { padding: 48px 0; }
.divider  { height: 1px; background: var(--border); }

/* ── Nav ─────────────────────────────────────────────────────────────── */
.nav {
  position: sticky; top: 0; z-index: 100;
  background: rgba(9,9,15,0.85);
  backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--border);
}
.nav-inner {
  max-width: 1140px; margin: 0 auto;
  display: flex; align-items: center; justify-content: space-between;
  padding: 0 24px; height: 64px;
}
.logo {
  font-family: 'Syne', sans-serif; font-weight: 800; font-size: 22px;
  letter-spacing: -0.04em;
}
.logo span { color: var(--accent); }
.nav-links { display: flex; align-items: center; gap: 8px; }
.nav-links a {
  color: var(--muted); font-size: 14px; font-weight: 400;
  padding: 6px 12px; border-radius: 8px;
  transition: color .2s, background .2s;
}
.nav-links a:hover, .nav-links a.active { color: var(--txt); background: rgba(255,255,255,0.06); }
.nav-cta {
  background: var(--accent) !important;
  color: #fff !important;
  padding: 7px 18px !important;
  border-radius: 20px !important;
  font-weight: 500 !important;
  margin-left: 8px;
}
.nav-cta:hover { opacity: .88; }
.hamburger { display: none; background: none; border: none; flex-direction: column; gap: 5px; padding: 4px; }
.hamburger span { display: block; width: 22px; height: 2px; background: var(--txt); border-radius: 2px; transition: .3s; }

/* ── Hero ────────────────────────────────────────────────────────────── */
.hero {
  position: relative; overflow: hidden;
  padding: 100px 24px 72px;
  text-align: center;
  background:
    radial-gradient(ellipse 80% 60% at 50% -10%, rgba(124,92,252,.18) 0%, transparent 70%),
    radial-gradient(ellipse 40% 30% at 80% 80%, rgba(0,212,170,.08) 0%, transparent 60%);
}
.hero::before {
  content: '';
  position: absolute; inset: 0;
  background-image:
    linear-gradient(rgba(255,255,255,.025) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,.025) 1px, transparent 1px);
  background-size: 60px 60px;
  mask-image: radial-gradient(ellipse 80% 80% at 50% 50%, black 30%, transparent 100%);
}
.hero-eyebrow {
  display: inline-block;
  background: rgba(124,92,252,.12);
  border: 1px solid rgba(124,92,252,.3);
  color: #b09ffe;
  font-size: 11px; font-weight: 700; letter-spacing: .1em; text-transform: uppercase;
  padding: 5px 16px; border-radius: 20px; margin-bottom: 28px;
}
.hero h1 { max-width: 800px; margin: 0 auto 20px; }
.hero h1 .c1 { color: var(--accent); }
.hero h1 .c2 { color: var(--accent2); }
.hero-sub { color: var(--muted); font-size: 17px; max-width: 540px; margin: 0 auto 40px; font-weight: 300; }

/* ── Search ──────────────────────────────────────────────────────────── */
.search-wrap { max-width: 560px; margin: 0 auto 56px; position: relative; }
.search-wrap input {
  width: 100%; background: var(--card);
  border: 1px solid var(--border2);
  border-radius: 50px; padding: 16px 60px 16px 24px;
  color: var(--txt); font-size: 15px; outline: none;
  font-family: 'DM Sans', sans-serif;
  transition: border-color .2s, box-shadow .2s;
}
.search-wrap input::placeholder { color: var(--muted2); }
.search-wrap input:focus { border-color: var(--accent); box-shadow: 0 0 0 3px rgba(124,92,252,.15); }
.search-wrap button {
  position: absolute; right: 6px; top: 50%; transform: translateY(-50%);
  background: var(--accent); border: none; color: #fff;
  width: 44px; height: 44px; border-radius: 50%;
  font-size: 18px; display: flex; align-items: center; justify-content: center;
  transition: opacity .2s;
}
.search-wrap button:hover { opacity: .85; }

/* ── Stats Bar ───────────────────────────────────────────────────────── */
.stats-bar {
  display: flex; justify-content: center; gap: 48px;
  padding: 28px 0; flex-wrap: wrap;
  border-top: 1px solid var(--border); border-bottom: 1px solid var(--border);
}
.stat-item { text-align: center; }
.stat-n { font-family: 'Syne', sans-serif; font-size: 28px; font-weight: 800; color: var(--txt); }
.stat-n span { color: var(--accent); }
.stat-l { font-size: 12px; color: var(--muted); margin-top: 2px; letter-spacing: .04em; }

/* ── Section Headers ─────────────────────────────────────────────────── */
.sec-label { color: var(--accent); font-size: 11px; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; margin-bottom: 8px; }
.sec-title { margin-bottom: 36px; }
.sec-header { display: flex; align-items: flex-end; justify-content: space-between; margin-bottom: 36px; flex-wrap: wrap; gap: 16px; }
.sec-header .sec-title { margin-bottom: 0; }
.view-all { color: var(--accent); font-size: 13px; font-weight: 500; transition: opacity .2s; }
.view-all:hover { opacity: .7; }

/* ── Category Grid ───────────────────────────────────────────────────── */
.cat-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(160px, 1fr)); gap: 12px; }
.cat-card {
  background: var(--card); border: 1px solid var(--border);
  border-radius: var(--radius); padding: 20px 18px;
  transition: all .22s; display: block;
}
.cat-card:hover { border-color: var(--accent); background: #1d1a2e; transform: translateY(-2px); }
.cat-icon { font-size: 26px; margin-bottom: 12px; }
.cat-name { font-family: 'Syne', sans-serif; font-size: 13px; font-weight: 700; }
.cat-count { font-size: 12px; color: var(--muted); margin-top: 4px; }

/* ── Tool Cards ──────────────────────────────────────────────────────── */
.tools-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 16px; }
.tool-card {
  background: var(--card); border: 1px solid var(--border);
  border-radius: var(--radius); padding: 22px;
  transition: all .22s; position: relative; display: flex; flex-direction: column;
}
.tool-card:hover { border-color: rgba(124,92,252,.4); transform: translateY(-3px); box-shadow: 0 16px 40px rgba(0,0,0,.3); }
.tool-card.featured { border-color: rgba(124,92,252,.35); background: #1a1827; }
.feat-badge {
  position: absolute; top: 14px; right: 14px;
  background: rgba(124,92,252,.2); color: #b09ffe;
  font-size: 10px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase;
  padding: 3px 10px; border-radius: 20px;
}
.tool-logo {
  width: 48px; height: 48px; border-radius: 12px;
  background: var(--card2); border: 1px solid var(--border);
  display: flex; align-items: center; justify-content: center;
  font-size: 22px; margin-bottom: 16px; overflow: hidden; flex-shrink: 0;
}
.tool-logo img { width: 100%; height: 100%; object-fit: cover; }
.tool-name { font-family: 'Syne', sans-serif; font-size: 17px; font-weight: 700; margin-bottom: 6px; }
.tool-tagline { font-size: 13px; color: var(--muted); line-height: 1.5; margin-bottom: 14px; flex: 1; }
.tool-tags { display: flex; gap: 6px; flex-wrap: wrap; margin-bottom: 14px; }
.tag {
  background: rgba(255,255,255,.05); color: var(--muted);
  font-size: 11px; padding: 3px 9px; border-radius: 20px;
  border: 1px solid var(--border);
}
.tag.pricing-free    { color: #00d4aa; border-color: rgba(0,212,170,.3); background: rgba(0,212,170,.08); }
.tag.pricing-paid    { color: #f7b731; border-color: rgba(247,183,49,.3); background: rgba(247,183,49,.08); }
.tag.pricing-freemium{ color: #b09ffe; border-color: rgba(176,159,254,.3); background: rgba(176,159,254,.08); }
.tool-footer { display: flex; align-items: center; justify-content: space-between; padding-top: 14px; border-top: 1px solid var(--border); margin-top: auto; }
.tool-upvotes { font-size: 12px; color: var(--muted); }
.tool-upvotes span { color: var(--accent2); font-weight: 600; }
.btn-visit {
  background: var(--card2); border: 1px solid var(--border2); color: var(--txt);
  font-size: 12px; font-weight: 500; padding: 6px 14px; border-radius: 8px;
  transition: all .2s;
}
.btn-visit:hover { background: var(--accent); border-color: var(--accent); color: #fff; }

/* ── Filters Bar ─────────────────────────────────────────────────────── */
.filters-bar {
  display: flex; gap: 8px; flex-wrap: wrap;
  padding: 20px 0 32px;
}
.filter-btn {
  background: var(--card); border: 1px solid var(--border);
  color: var(--muted); font-size: 13px; font-weight: 400;
  padding: 7px 16px; border-radius: 20px;
  transition: all .2s; white-space: nowrap;
}
.filter-btn:hover, .filter-btn.active {
  background: var(--accent); border-color: var(--accent);
  color: #fff;
}

/* ── Newsletter Block ────────────────────────────────────────────────── */
.newsletter-block {
  background: linear-gradient(135deg, #1a1827 0%, #17201e 100%);
  border: 1px solid var(--border2); border-radius: 20px;
  padding: 56px 40px; text-align: center;
}
.newsletter-block h2 { margin-bottom: 12px; }
.newsletter-block p  { color: var(--muted); margin-bottom: 32px; font-size: 15px; }
.nl-form { display: flex; gap: 10px; max-width: 440px; margin: 0 auto; }
.nl-form input {
  flex: 1; background: var(--card); border: 1px solid var(--border2);
  border-radius: 10px; padding: 13px 18px; color: var(--txt);
  font-size: 14px; outline: none; font-family: inherit;
  transition: border-color .2s;
}
.nl-form input:focus { border-color: var(--accent2); }
.nl-form input::placeholder { color: var(--muted2); }
.nl-form button {
  background: var(--accent2); border: none; color: #061a14;
  font-weight: 700; padding: 13px 24px; border-radius: 10px;
  font-size: 14px; white-space: nowrap; transition: opacity .2s;
}
.nl-form button:hover { opacity: .88; }

/* ── Buttons ─────────────────────────────────────────────────────────── */
.btn {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 12px 28px; border-radius: 10px; font-size: 14px; font-weight: 500;
  border: none; transition: all .22s;
}
.btn-primary { background: var(--accent); color: #fff; }
.btn-primary:hover { opacity: .88; transform: translateY(-1px); }
.btn-outline { background: transparent; border: 1px solid var(--border2); color: var(--txt); }
.btn-outline:hover { border-color: var(--accent); color: var(--accent); }
.btn-accent2 { background: var(--accent2); color: #061a14; font-weight: 700; }
.btn-accent2:hover { opacity: .88; }

/* ── Forms ───────────────────────────────────────────────────────────── */
.form-group { margin-bottom: 20px; }
.form-group label { display: block; font-size: 13px; font-weight: 500; color: var(--muted); margin-bottom: 7px; letter-spacing: .02em; }
.form-control {
  width: 100%; background: var(--card); border: 1px solid var(--border2);
  border-radius: 10px; padding: 12px 16px; color: var(--txt);
  font-size: 14px; outline: none; font-family: inherit;
  transition: border-color .2s, box-shadow .2s;
}
.form-control:focus { border-color: var(--accent); box-shadow: 0 0 0 3px rgba(124,92,252,.12); }
.form-control::placeholder { color: var(--muted2); }
select.form-control { appearance: none; }
textarea.form-control { resize: vertical; min-height: 100px; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }

/* ── Alert / Notice ──────────────────────────────────────────────────── */
.alert { padding: 14px 18px; border-radius: 10px; font-size: 14px; margin-bottom: 20px; }
.alert-success { background: rgba(0,212,170,.1); border: 1px solid rgba(0,212,170,.3); color: var(--accent2); }
.alert-error   { background: rgba(252,92,92,.1);  border: 1px solid rgba(252,92,92,.3);  color: #fc5c5c; }

/* ── Blog ────────────────────────────────────────────────────────────── */
.blog-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 20px; }
.blog-card {
  background: var(--card); border: 1px solid var(--border);
  border-radius: var(--radius); overflow: hidden; transition: all .22s; display: block;
}
.blog-card:hover { border-color: rgba(124,92,252,.4); transform: translateY(-3px); }
.blog-thumb { height: 180px; background: linear-gradient(135deg, #1a1827, #17201e); display: flex; align-items: center; justify-content: center; font-size: 48px; }
.blog-body { padding: 20px; }
.blog-cat { color: var(--accent); font-size: 11px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; margin-bottom: 8px; }
.blog-title { font-family: 'Syne', sans-serif; font-size: 17px; font-weight: 700; margin-bottom: 8px; line-height: 1.3; }
.blog-meta { font-size: 12px; color: var(--muted); }

/* ── Page Hero (inner pages) ─────────────────────────────────────────── */
.page-hero {
  padding: 56px 24px 48px;
  background: radial-gradient(ellipse 70% 50% at 50% 0%, rgba(124,92,252,.12) 0%, transparent 70%);
  text-align: center;
}
.page-hero h1 { font-size: clamp(28px, 4vw, 44px); margin-bottom: 12px; }
.page-hero p  { color: var(--muted); max-width: 520px; margin: 0 auto; }

/* ── Submit / Pricing Cards ──────────────────────────────────────────── */
.pricing-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 16px; }
.pricing-card {
  background: var(--card); border: 1px solid var(--border);
  border-radius: var(--radius); padding: 28px;
}
.pricing-card.highlight { border-color: var(--accent); background: #1a1827; }
.pricing-card .price { font-family: 'Syne', sans-serif; font-size: 36px; font-weight: 800; margin: 12px 0 4px; }
.pricing-card .price span { font-size: 16px; color: var(--muted); font-weight: 400; }
.pricing-card ul { list-style: none; margin: 20px 0; }
.pricing-card ul li { padding: 7px 0; font-size: 14px; color: var(--muted); border-bottom: 1px solid var(--border); }
.pricing-card ul li::before { content: '✓ '; color: var(--accent2); font-weight: 700; }

/* ── Advertise ───────────────────────────────────────────────────────── */
.money-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 14px; }
.money-card { background: var(--card); border: 1px solid var(--border); border-radius: var(--radius); padding: 22px; }
.money-icon { font-size: 28px; margin-bottom: 12px; }
.money-title { font-family: 'Syne', sans-serif; font-size: 15px; font-weight: 700; margin-bottom: 6px; }
.money-desc  { font-size: 13px; color: var(--muted); line-height: 1.5; }
.money-est   { font-size: 12px; color: var(--accent2); font-weight: 600; margin-top: 10px; }

/* ── Tool Detail ─────────────────────────────────────────────────────── */
.tool-detail { display: grid; grid-template-columns: 1fr 300px; gap: 32px; align-items: start; }
.tool-detail-main { background: var(--card); border: 1px solid var(--border); border-radius: var(--radius); padding: 32px; }
.tool-detail-side { position: sticky; top: 80px; }
.tool-detail-card { background: var(--card); border: 1px solid var(--border); border-radius: var(--radius); padding: 24px; margin-bottom: 16px; }

/* ── Footer ──────────────────────────────────────────────────────────── */
.footer {
  background: var(--surface); border-top: 1px solid var(--border);
  padding: 64px 0 0;
}
.footer-inner {
  max-width: 1140px; margin: 0 auto; padding: 0 24px;
  display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: 40px;
}
.footer-brand p { color: var(--muted); font-size: 14px; margin: 12px 0 20px; max-width: 260px; }
.footer-social { display: flex; gap: 10px; }
.footer-social a {
  width: 36px; height: 36px; background: var(--card); border: 1px solid var(--border);
  border-radius: 8px; display: flex; align-items: center; justify-content: center;
  font-size: 13px; font-weight: 700; color: var(--muted);
  transition: all .2s;
}
.footer-social a:hover { border-color: var(--accent); color: var(--accent); }
.footer-col h4 { font-size: 11px; letter-spacing: .1em; text-transform: uppercase; color: var(--muted); margin-bottom: 16px; font-family: 'Syne', sans-serif; }
.footer-col a { display: block; color: var(--muted); font-size: 13px; padding: 5px 0; transition: color .2s; }
.footer-col a:hover { color: var(--txt); }
.footer-bottom {
  max-width: 1140px; margin: 48px auto 0; padding: 20px 24px;
  border-top: 1px solid var(--border);
  display: flex; justify-content: space-between; align-items: center;
  font-size: 12px; color: var(--muted2); flex-wrap: wrap; gap: 10px;
}
.footer-bottom a { color: var(--muted); }
.footer-bottom a:hover { color: var(--txt); }

/* ── Responsive ──────────────────────────────────────────────────────── */
@media (max-width: 768px) {
  .hamburger { display: flex; }
  .nav-links {
    display: none; position: absolute; top: 64px; left: 0; right: 0;
    background: var(--surface); border-bottom: 1px solid var(--border);
    flex-direction: column; padding: 16px; gap: 4px;
  }
  .nav-links.open { display: flex; }
  .nav-links a { padding: 10px 14px; }
  .nav-cta { margin-left: 0; margin-top: 8px; text-align: center; }
  .tool-detail { grid-template-columns: 1fr; }
  .tool-detail-side { position: static; }
  .footer-inner { grid-template-columns: 1fr 1fr; }
  .form-row { grid-template-columns: 1fr; }
  .stats-bar { gap: 28px; }
  .nl-form { flex-direction: column; }
  .newsletter-block { padding: 36px 20px; }
}
@media (max-width: 480px) {
  .footer-inner { grid-template-columns: 1fr; }
  .hero { padding: 72px 20px 48px; }
}

/* ── Animations ──────────────────────────────────────────────────────── */
@keyframes fadeUp { from { opacity: 0; transform: translateY(20px); } to { opacity: 1; transform: translateY(0); } }
.fade-up { animation: fadeUp .5s ease both; }
.fade-up-2 { animation: fadeUp .5s .1s ease both; }
.fade-up-3 { animation: fadeUp .5s .2s ease both; }

/* ── Pagination ──────────────────────────────────────────────────────── */
.pagination { display: flex; justify-content: center; gap: 8px; padding: 40px 0; }
.pagination a, .pagination span {
  width: 38px; height: 38px; border-radius: 8px;
  display: flex; align-items: center; justify-content: center;
  font-size: 14px; border: 1px solid var(--border); background: var(--card); color: var(--muted);
  transition: all .2s;
}
.pagination a:hover { border-color: var(--accent); color: var(--accent); }
.pagination .current { background: var(--accent); border-color: var(--accent); color: #fff; }

/* ── Breadcrumb ──────────────────────────────────────────────────────── */
.breadcrumb { display: flex; gap: 8px; align-items: center; font-size: 13px; color: var(--muted); margin-bottom: 24px; flex-wrap: wrap; }
.breadcrumb a { color: var(--muted); }
.breadcrumb a:hover { color: var(--txt); }
.breadcrumb span { color: var(--muted2); }

/* ── Empty State ─────────────────────────────────────────────────────── */
.empty { text-align: center; padding: 64px 0; color: var(--muted); }
.empty-icon { font-size: 48px; margin-bottom: 16px; }
.empty h3 { color: var(--txt); margin-bottom: 8px; }
