/* AI Tool Gyaan — clean light theme, indigo/violet accent, mobile-first */
:root {
  --indigo: #4f46e5;
  --violet: #7c3aed;
  --grad: linear-gradient(135deg, #4f46e5, #7c3aed);
  --ink: #0f172a;
  --muted: #64748b;
  --border: #e2e8f0;
  --bg: #ffffff;
  --soft: #f8fafc;
  --soft-violet: #eef2ff;
  --radius: 14px;
  --shadow: 0 4px 24px rgba(79, 70, 229, 0.08);
}
* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  color: var(--ink);
  background: var(--bg);
  line-height: 1.65;
  font-size: 16px;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--indigo); text-decoration: none; }
a:hover { text-decoration: underline; }
.container { max-width: 1080px; margin: 0 auto; padding: 0 20px; }
.container-narrow { max-width: 760px; margin: 0 auto; padding: 0 20px; }

/* ---- Compact subtle header (no bulky buttons) ---- */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--border);
}
.nav { display: flex; align-items: center; justify-content: space-between; height: 56px; }
.logo { font-size: 1.05rem; font-weight: 800; letter-spacing: -0.02em; color: var(--ink); }
.logo:hover { text-decoration: none; }
.logo span { background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; }
.nav-links { display: flex; align-items: center; gap: 22px; list-style: none; }
.nav-links a { font-size: 0.84rem; font-weight: 500; color: var(--muted); }
.nav-links a:hover, .nav-links a.active { color: var(--indigo); text-decoration: none; }
.hamburger { display: none; background: none; border: none; font-size: 1.3rem; cursor: pointer; color: var(--ink); }

/* ---- Hero ---- */
.hero { background: var(--soft); border-bottom: 1px solid var(--border); padding: 56px 0 48px; }
.hero-badge {
  display: inline-block; font-size: 0.75rem; font-weight: 700; letter-spacing: 0.06em;
  text-transform: uppercase; color: var(--indigo); background: var(--soft-violet);
  padding: 5px 12px; border-radius: 999px; margin-bottom: 16px;
}
.hero h1 { font-size: 2rem; line-height: 1.2; letter-spacing: -0.02em; margin-bottom: 12px; }
.hero h1 .grad { background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; }
.hero p { color: var(--muted); font-size: 1.02rem; max-width: 640px; }

/* ---- Category chips ---- */
.chips { display: flex; flex-wrap: wrap; gap: 10px; margin: 28px 0 8px; }
.chip {
  font-size: 0.82rem; font-weight: 600; color: var(--muted);
  border: 1px solid var(--border); background: #fff;
  padding: 7px 15px; border-radius: 999px; cursor: pointer; transition: all 0.15s;
}
.chip:hover { border-color: var(--indigo); color: var(--indigo); }
.chip.active, a.chip.active { background: var(--grad); color: #fff; border-color: transparent; }
a.chip:hover { text-decoration: none; }

/* ---- Section titles ---- */
.section { padding: 44px 0; }
.section-head { display: flex; align-items: baseline; justify-content: space-between; margin-bottom: 22px; }
.section-head h2 { font-size: 1.35rem; letter-spacing: -0.01em; }
.section-head a { font-size: 0.85rem; font-weight: 600; }

/* ---- Review cards ---- */
.grid { display: grid; grid-template-columns: 1fr; gap: 20px; }
.card {
  border: 1px solid var(--border); border-radius: var(--radius); overflow: hidden;
  background: #fff; transition: transform 0.15s, box-shadow 0.15s;
  display: flex; flex-direction: column;
}
.card:hover { transform: translateY(-3px); box-shadow: var(--shadow); }
.card a.card-link:hover { text-decoration: none; }
.card-cover { aspect-ratio: 16 / 9; background: var(--soft-violet); overflow: hidden; }
.card-cover img { width: 100%; height: 100%; object-fit: cover; }
.card-body { padding: 18px; display: flex; flex-direction: column; gap: 10px; flex: 1; }
.card-meta { display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.cat-tag {
  font-size: 0.7rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.05em;
  color: var(--indigo); background: var(--soft-violet); padding: 3px 10px; border-radius: 999px;
}
.stars { color: #f59e0b; font-size: 0.85rem; letter-spacing: 1px; white-space: nowrap; }
.card-body h3 { font-size: 1.05rem; line-height: 1.35; }
.card-body h3 a { color: var(--ink); }
.card-body h3 a:hover { color: var(--indigo); text-decoration: none; }
.card-body p { font-size: 0.9rem; color: var(--muted); flex: 1; }
.card-foot { display: flex; align-items: center; justify-content: space-between; font-size: 0.8rem; color: var(--muted); }
.read-more { font-weight: 700; font-size: 0.85rem; }

/* ---- Article ---- */
.article-hero { padding: 36px 0 0; }
.article-hero .cat-tag { margin-bottom: 12px; display: inline-block; }
.article-hero h1 { font-size: 1.8rem; line-height: 1.25; letter-spacing: -0.02em; margin-bottom: 10px; }
.article-meta { display: flex; flex-wrap: wrap; gap: 14px; font-size: 0.85rem; color: var(--muted); margin-bottom: 20px; }
.article-cover { border-radius: var(--radius); overflow: hidden; margin-bottom: 28px; border: 1px solid var(--border); }
.article-body { font-size: 1.02rem; }
.article-body h2 { font-size: 1.4rem; margin: 34px 0 12px; letter-spacing: -0.01em; }
.article-body h3 { font-size: 1.12rem; margin: 26px 0 8px; }
.article-body p, .article-body ul, .article-body ol { margin-bottom: 16px; }
.article-body ul, .article-body ol { padding-left: 24px; }
.article-body li { margin-bottom: 6px; }
.article-body blockquote {
  border-left: 3px solid var(--indigo); background: var(--soft);
  padding: 14px 18px; border-radius: 0 10px 10px 0; margin-bottom: 16px; color: var(--muted);
}

/* Rating box */
.rating-box {
  background: var(--soft); border: 1px solid var(--border); border-radius: var(--radius);
  padding: 22px; margin: 24px 0; display: flex; flex-wrap: wrap; gap: 20px; align-items: center;
}
.rating-score { text-align: center; min-width: 110px; }
.rating-score .num { font-size: 2.6rem; font-weight: 800; background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; line-height: 1; }
.rating-score .of { font-size: 0.85rem; color: var(--muted); }
.rating-facts { flex: 1; min-width: 220px; font-size: 0.9rem; }
.rating-facts div { padding: 6px 0; border-bottom: 1px dashed var(--border); }
.rating-facts div:last-child { border-bottom: none; }
.rating-facts strong { color: var(--ink); }

/* Pros / cons */
.pc-grid { display: grid; grid-template-columns: 1fr; gap: 16px; margin: 20px 0 8px; }
.pros, .cons { border-radius: var(--radius); padding: 18px; font-size: 0.93rem; }
.pros { background: #f0fdf4; border: 1px solid #bbf7d0; }
.cons { background: #fef2f2; border: 1px solid #fecaca; }
.pros h3, .cons h3 { font-size: 1rem; margin: 0 0 10px; }
.pros h3 { color: #15803d; }
.cons h3 { color: #b91c1c; }
.pros ul, .cons ul { list-style: none; padding: 0; margin: 0; }
.pros li, .cons li { margin-bottom: 8px; padding-left: 26px; position: relative; }
.pros li::before { content: "✓"; position: absolute; left: 0; color: #16a34a; font-weight: 800; }
.cons li::before { content: "✕"; position: absolute; left: 0; color: #dc2626; font-weight: 800; }

/* Pricing table */
.pricing-table { width: 100%; border-collapse: collapse; margin: 16px 0 8px; font-size: 0.92rem; }
.pricing-table th, .pricing-table td { border: 1px solid var(--border); padding: 12px 14px; text-align: left; }
.pricing-table th { background: var(--soft-violet); color: var(--indigo); font-size: 0.82rem; text-transform: uppercase; letter-spacing: 0.04em; }
.pricing-table tr:nth-child(even) td { background: var(--soft); }

/* FAQ */
.faq { margin: 16px 0; }
.faq details { border: 1px solid var(--border); border-radius: 10px; margin-bottom: 10px; background: #fff; }
.faq summary { padding: 14px 16px; font-weight: 600; font-size: 0.95rem; cursor: pointer; list-style: none; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; float: right; color: var(--indigo); font-weight: 800; }
.faq details[open] summary::after { content: "−"; }
.faq details p { padding: 0 16px 14px; font-size: 0.93rem; color: var(--muted); margin: 0; }

/* CTA band */
.cta-band { background: var(--grad); border-radius: var(--radius); padding: 28px; color: #fff; margin: 36px 0; text-align: center; }
.cta-band h3 { margin-bottom: 8px; font-size: 1.2rem; }
.cta-band p { opacity: 0.9; font-size: 0.93rem; margin-bottom: 16px; }
.btn {
  display: inline-block; background: #fff; color: var(--indigo); font-weight: 700;
  padding: 11px 26px; border-radius: 999px; font-size: 0.92rem; border: none; cursor: pointer;
}
.btn:hover { text-decoration: none; transform: translateY(-1px); }
.btn-outline {
  background: #fff; color: var(--indigo); border: 1.5px solid var(--indigo);
}
.btn-sm { padding: 8px 18px; font-size: 0.82rem; }

/* ---- Forms ---- */
.form { display: flex; flex-direction: column; gap: 16px; margin-top: 20px; }
.form label { font-size: 0.88rem; font-weight: 600; display: flex; flex-direction: column; gap: 6px; }
.form input, .form textarea, .form select {
  font: inherit; font-size: 0.95rem; padding: 12px 14px;
  border: 1px solid var(--border); border-radius: 10px; background: #fff; color: var(--ink);
}
.form input:focus, .form textarea:focus { outline: 2px solid var(--indigo); border-color: var(--indigo); }
.form .btn { align-self: flex-start; background: var(--grad); color: #fff; }

/* ---- Footer ---- */
.site-footer { background: var(--ink); color: #cbd5e1; margin-top: 56px; }
.foot-grid { display: grid; grid-template-columns: 1fr; gap: 28px; padding: 44px 0 28px; }
.site-footer h4 { color: #fff; font-size: 0.9rem; margin-bottom: 12px; }
.site-footer ul { list-style: none; }
.site-footer li { margin-bottom: 8px; }
.site-footer a { color: #cbd5e1; font-size: 0.88rem; }
.site-footer a:hover { color: #fff; }
.foot-bottom { border-top: 1px solid #1e293b; padding: 18px 0; font-size: 0.8rem; color: #64748b; text-align: center; }
.footer-logo { color: #fff; font-weight: 800; font-size: 1.05rem; }
.footer-logo:hover { text-decoration: none; }
.footer-logo span { background: linear-gradient(135deg, #a5b4fc, #c4b5fd); -webkit-background-clip: text; background-clip: text; color: transparent; }

/* Empty state */
.empty { text-align: center; padding: 48px 20px; color: var(--muted); }

/* ---- Tablet / desktop ---- */
@media (min-width: 640px) {
  .grid { grid-template-columns: repeat(2, 1fr); }
  .pc-grid { grid-template-columns: 1fr 1fr; }
  .hero h1 { font-size: 2.6rem; }
  .article-hero h1 { font-size: 2.2rem; }
}
@media (min-width: 960px) {
  .grid.cols-3 { grid-template-columns: repeat(3, 1fr); }
  .foot-grid { grid-template-columns: 1.4fr 1fr 1fr 1fr; }
}
@media (max-width: 720px) {
  .hamburger { display: block; }
  .nav-links {
    display: none; position: absolute; top: 56px; left: 0; right: 0;
    background: #fff; flex-direction: column; align-items: flex-start;
    padding: 12px 20px 18px; border-bottom: 1px solid var(--border); gap: 4px;
  }
  .nav-links.open { display: flex; }
  .nav-links a { display: block; padding: 8px 0; font-size: 0.95rem; }
  .nav { position: relative; }
  .hero { padding: 40px 0 34px; }
}
