/* ==========================================
   [SITE NAME] - Global Stylesheet
   ========================================== */

:root {
  --bg: #f5f5f7;
  --surface: #ffffff;
  --surface2: #f0f0f5;
  --border: #e2e2ea;
  --accent: #4f46e5;
  --accent2: #06b6d4;
  --accent3: #10b981;
  --accent4: #f59e0b;
  --text: #0f0f1a;
  --muted: #6b7280;
  --shadow: 0 4px 24px rgba(79,70,229,0.08);
  --shadow-hover: 0 8px 40px rgba(79,70,229,0.18);
  --radius: 14px;
  --radius-lg: 20px;
}

* { margin: 0; padding: 0; box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  font-family: 'DM Sans', system-ui, sans-serif;
  font-size: 16px;
  font-weight: 400;
  line-height: 1.7;
  color: var(--text);
  background: var(--bg);
  overflow-x: hidden;
  position: relative;
}

#bgCanvas {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 0;
  pointer-events: none;
}

main, header, footer { position: relative; z-index: 1; }

h1, h2, h3, h4, h5, h6 { font-family: 'Syne', sans-serif; color: var(--text); line-height: 1.25; }
h1 { font-size: 42px; font-weight: 800; }
h2 { font-size: 28px; font-weight: 700; }
h3 { font-size: 20px; font-weight: 600; }

p { color: var(--text); }

a { color: var(--accent); text-decoration: none; transition: color 0.2s ease; }
a:hover { color: var(--accent2); }

img { max-width: 100%; height: auto; }

/* ===== HEADER ===== */
.site-header {
  background: rgba(255,255,255,0.85);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1.5px solid var(--border);
  position: sticky;
  top: 0;
  z-index: 100;
}
.header-inner {
  max-width: 1240px;
  margin: 0 auto;
  padding: 16px 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}
.logo {
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: 'Syne', sans-serif;
  font-weight: 800;
  font-size: 22px;
  color: var(--text);
}
.logo-icon {
  width: 36px;
  height: 36px;
  border-radius: 10px;
  background: linear-gradient(135deg, #4f46e5, #06b6d4);
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-size: 18px;
}
.main-nav { display: flex; gap: 8px; align-items: center; }
.nav-item { position: relative; }
.nav-link {
  padding: 10px 16px;
  border-radius: 10px;
  font-weight: 500;
  font-size: 15px;
  color: var(--text);
  display: inline-flex;
  align-items: center;
  gap: 6px;
  cursor: pointer;
  transition: background 0.2s ease;
}
.nav-link:hover { background: var(--surface2); color: var(--accent); }
.nav-link svg { width: 14px; height: 14px; }

.dropdown {
  position: absolute;
  top: calc(100% + 8px);
  left: 0;
  background: white;
  border: 1.5px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow-hover);
  padding: 12px;
  min-width: 280px;
  opacity: 0;
  visibility: hidden;
  transform: translateY(-8px);
  transition: all 0.2s ease;
}
.nav-item:hover .dropdown,
.nav-item:focus-within .dropdown { opacity: 1; visibility: visible; transform: translateY(0); }
.dropdown a {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 12px;
  border-radius: 10px;
  color: var(--text);
  font-size: 14px;
  font-weight: 500;
}
.dropdown a:hover { background: var(--surface2); color: var(--accent); }
.dropdown-icon {
  width: 32px;
  height: 32px;
  border-radius: 8px;
  background: rgba(79,70,229,0.1);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 14px;
  flex-shrink: 0;
}

.header-cta {
  background: linear-gradient(135deg, #4f46e5, #06b6d4);
  color: white;
  padding: 10px 22px;
  border-radius: 50px;
  font-family: 'DM Sans', sans-serif;
  font-size: 14px;
  font-weight: 600;
  border: none;
  cursor: pointer;
  box-shadow: 0 4px 20px rgba(79,70,229,0.35);
  transition: all 0.25s ease;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 6px;
}
.header-cta:hover { transform: translateY(-2px); box-shadow: 0 8px 30px rgba(79,70,229,0.45); color: white; }

.hamburger {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: 8px;
  flex-direction: column;
  gap: 5px;
}
.hamburger span {
  width: 22px;
  height: 2px;
  background: var(--text);
  border-radius: 2px;
  transition: all 0.25s ease;
}

.mobile-menu {
  position: fixed;
  top: 0;
  right: -100%;
  width: 85%;
  max-width: 360px;
  height: 100vh;
  background: white;
  box-shadow: -8px 0 40px rgba(0,0,0,0.15);
  padding: 80px 24px 24px;
  overflow-y: auto;
  transition: right 0.3s ease;
  z-index: 200;
}
.mobile-menu.open { right: 0; }
.mobile-menu-overlay {
  position: fixed;
  inset: 0;
  background: rgba(15,15,26,0.5);
  opacity: 0;
  visibility: hidden;
  transition: all 0.3s ease;
  z-index: 150;
}
.mobile-menu-overlay.open { opacity: 1; visibility: visible; }
.mobile-close {
  position: absolute;
  top: 20px;
  right: 20px;
  background: var(--surface2);
  border: none;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  font-size: 20px;
  cursor: pointer;
}
.mobile-menu h4 {
  font-family: 'Syne', sans-serif;
  font-size: 13px;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--muted);
  margin: 20px 0 8px;
  font-weight: 600;
}
.mobile-menu a {
  display: block;
  padding: 10px 0;
  color: var(--text);
  font-weight: 500;
  border-bottom: 1px solid var(--border);
}

/* ===== MAIN CONTAINER ===== */
.container {
  max-width: 1240px;
  margin: 0 auto;
  padding: 0 24px;
}
.narrow { max-width: 880px; margin: 0 auto; padding: 0 24px; }

/* ===== HERO ===== */
.hero {
  padding: 80px 0 60px;
  text-align: center;
}
.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(79,70,229,0.08);
  color: var(--accent);
  padding: 8px 18px;
  border-radius: 50px;
  font-size: 13px;
  font-weight: 600;
  border: 1.5px solid rgba(79,70,229,0.2);
  margin-bottom: 24px;
  text-transform: uppercase;
  letter-spacing: 0.06em;
}
.hero h1 {
  font-size: clamp(32px, 5vw, 56px);
  margin-bottom: 20px;
  background: linear-gradient(135deg, #0f0f1a 0%, #4f46e5 70%, #06b6d4 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}
.hero p.lead {
  font-size: 18px;
  color: var(--muted);
  max-width: 720px;
  margin: 0 auto 32px;
}
.hero-actions { display: flex; justify-content: center; gap: 14px; flex-wrap: wrap; }

/* ===== BUTTONS ===== */
.btn-primary {
  background: linear-gradient(135deg, #4f46e5, #06b6d4);
  color: white;
  padding: 14px 32px;
  border-radius: 50px;
  font-family: 'DM Sans', sans-serif;
  font-size: 15px;
  font-weight: 600;
  border: none;
  cursor: pointer;
  box-shadow: 0 4px 20px rgba(79,70,229,0.35);
  transition: all 0.25s ease;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 8px;
}
.btn-primary:hover { transform: translateY(-2px); box-shadow: 0 8px 30px rgba(79,70,229,0.45); color: white; }
.btn-primary:active { transform: translateY(0) scale(0.98); }

.btn-secondary {
  background: white;
  color: var(--accent);
  padding: 13px 30px;
  border-radius: 50px;
  border: 2px solid var(--accent);
  font-family: 'DM Sans', sans-serif;
  font-size: 15px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.25s ease;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 8px;
}
.btn-secondary:hover { background: var(--accent); color: white; }

.pill-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: rgba(79,70,229,0.08);
  color: var(--accent);
  padding: 8px 18px;
  border-radius: 50px;
  font-size: 13px;
  font-weight: 600;
  border: 1.5px solid rgba(79,70,229,0.2);
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

/* ===== TOOL CARDS ===== */
.tools-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 24px;
  margin: 40px 0;
}
.tool-card {
  background: white;
  border-radius: var(--radius-lg);
  border: 1.5px solid var(--border);
  padding: 28px;
  box-shadow: var(--shadow);
  transition: all 0.3s ease;
  display: flex;
  flex-direction: column;
  text-decoration: none;
  color: inherit;
}
.tool-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-hover);
  border-color: var(--accent);
  color: inherit;
}
.tool-icon {
  width: 60px;
  height: 60px;
  border-radius: 16px;
  background: linear-gradient(135deg, #4f46e5, #06b6d4);
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-size: 26px;
  margin-bottom: 18px;
}
.tool-icon.cyan { background: linear-gradient(135deg, #06b6d4, #10b981); }
.tool-icon.green { background: linear-gradient(135deg, #10b981, #4f46e5); }
.tool-icon.amber { background: linear-gradient(135deg, #f59e0b, #4f46e5); }
.tool-card h3 {
  font-family: 'Syne', sans-serif;
  font-size: 18px;
  font-weight: 700;
  margin-bottom: 8px;
}
.tool-card p {
  font-size: 14px;
  color: var(--muted);
  margin-bottom: 18px;
  flex: 1;
}
.tool-card .try-now {
  font-weight: 600;
  color: var(--accent);
  font-size: 14px;
  display: inline-flex;
  align-items: center;
  gap: 4px;
  transition: gap 0.2s ease;
}
.tool-card:hover .try-now { gap: 10px; }

/* ===== SECTION ===== */
section.block { padding: 60px 0; }
.section-header { text-align: center; margin-bottom: 40px; }
.section-header h2 { margin-bottom: 12px; }
.section-header p { color: var(--muted); max-width: 640px; margin: 0 auto; }

/* ===== TOOL PLACEHOLDER (where tools will go later) ===== */
.tool-placeholder {
  background: white;
  border: 2px dashed var(--accent);
  border-radius: var(--radius-lg);
  padding: 60px 32px;
  text-align: center;
  margin: 32px 0;
  box-shadow: var(--shadow);
}
.tool-placeholder .ph-icon {
  width: 80px;
  height: 80px;
  border-radius: 24px;
  background: linear-gradient(135deg, rgba(79,70,229,0.12), rgba(6,182,212,0.12));
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 36px;
  margin: 0 auto 20px;
}
.tool-placeholder h3 { margin-bottom: 8px; font-size: 24px; }
.tool-placeholder p { color: var(--muted); max-width: 540px; margin: 0 auto; }

/* ===== CONTENT BLOCKS ===== */
.content-card {
  background: white;
  border: 1.5px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 36px;
  box-shadow: var(--shadow);
  margin: 24px 0;
}
.content-card h2 { margin-bottom: 16px; }
.content-card h3 { margin-top: 24px; margin-bottom: 10px; }
.content-card p { margin-bottom: 14px; }
.content-card ol, .content-card ul { padding-left: 22px; margin: 12px 0; }
.content-card ol li, .content-card ul li { margin-bottom: 8px; }

/* ===== FAQ ===== */
.faq-item {
  background: white;
  border: 1.5px solid var(--border);
  border-radius: var(--radius);
  margin-bottom: 12px;
  overflow: hidden;
  transition: all 0.25s ease;
}
.faq-item:hover { border-color: var(--accent); }
.faq-question {
  padding: 18px 22px;
  font-weight: 600;
  font-family: 'Syne', sans-serif;
  font-size: 17px;
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
  list-style: none;
}
.faq-question::-webkit-details-marker { display: none; }
.faq-question::after { content: "+"; font-size: 24px; color: var(--accent); transition: transform 0.25s ease; }
.faq-item[open] .faq-question::after { transform: rotate(45deg); }
.faq-answer { padding: 0 22px 18px; color: var(--muted); }

/* ===== AD SLOT ===== */
.ad-slot {
  background: var(--surface2);
  border: 1.5px dashed var(--border);
  border-radius: var(--radius);
  padding: 20px;
  text-align: center;
  font-size: 12px;
  color: var(--muted);
  min-height: 100px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 24px 0;
}
.ad-slot::before { content: "Advertisement"; }

/* ===== BREADCRUMBS ===== */
.breadcrumbs {
  font-size: 13px;
  color: var(--muted);
  padding: 18px 0 8px;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}
.breadcrumbs a { color: var(--muted); font-weight: 500; }
.breadcrumbs a:hover { color: var(--accent); }
.breadcrumbs .sep { margin: 0 8px; opacity: 0.5; }

/* ===== FOOTER ===== */
.site-footer {
  background: #0f0f1a;
  color: #9ca3af;
  margin-top: 80px;
  border-top: 1px solid #1f1f2e;
}
.footer-inner {
  max-width: 1240px;
  margin: 0 auto;
  padding: 60px 24px 24px;
}
.footer-cols {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1fr;
  gap: 40px;
  margin-bottom: 40px;
}
.footer-brand .logo { color: white; margin-bottom: 14px; }
.footer-brand p { color: #9ca3af; font-size: 14px; max-width: 280px; }
.footer-col h4 {
  font-family: 'Syne', sans-serif;
  color: white;
  font-size: 15px;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  margin-bottom: 16px;
  font-weight: 700;
}
.footer-col ul { list-style: none; }
.footer-col ul li { margin-bottom: 10px; }
.footer-col a { color: #9ca3af; font-size: 14px; transition: color 0.2s ease; }
.footer-col a:hover { color: white; }
.footer-bottom {
  border-top: 1px solid #1f1f2e;
  padding-top: 24px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 16px;
  font-size: 13px;
}
.footer-bottom-links { display: flex; gap: 22px; flex-wrap: wrap; }
.footer-bottom-links a { color: #9ca3af; }
.footer-bottom-links a:hover { color: white; }

/* ===== ANIMATIONS ===== */
.fade-up { opacity: 0; transform: translateY(24px); animation: fadeUp 0.6s ease forwards; }
.fade-up:nth-child(1) { animation-delay: 0.05s; }
.fade-up:nth-child(2) { animation-delay: 0.15s; }
.fade-up:nth-child(3) { animation-delay: 0.25s; }
.fade-up:nth-child(4) { animation-delay: 0.35s; }
.fade-up:nth-child(5) { animation-delay: 0.45s; }
@keyframes fadeUp { to { opacity: 1; transform: translateY(0); } }

/* ===== CATEGORY HERO (for category landing pages) ===== */
.cat-hero {
  padding: 60px 0 40px;
  text-align: center;
}
.cat-hero h1 {
  font-size: clamp(28px, 4vw, 44px);
  margin-bottom: 16px;
}
.cat-hero p.lead { font-size: 17px; color: var(--muted); max-width: 700px; margin: 0 auto; }

/* ===== RESPONSIVE ===== */
@media (max-width: 900px) {
  .main-nav { display: none; }
  .header-cta { display: none; }
  .hamburger { display: flex; }
  .footer-cols { grid-template-columns: 1fr 1fr; gap: 30px; }
  .hero { padding: 50px 0 40px; }
  h1 { font-size: 32px; }
  h2 { font-size: 24px; }
  .content-card { padding: 24px; }
}
@media (max-width: 540px) {
  .footer-cols { grid-template-columns: 1fr; }
  .footer-bottom { flex-direction: column; text-align: center; }
  .header-inner { padding: 14px 18px; }
  .container, .narrow { padding: 0 18px; }
  .tools-grid { grid-template-columns: 1fr; }
}
