/* ============================================================
   Instagram Keyword Generator — SEOWebChecker.com
   © 2026 SEOWebChecker.com — All Rights Reserved
   ============================================================ */

/* ---------- CSS CUSTOM PROPERTIES ---------- */
:root {
  --primary: #7C3AED;
  --primary-dark: #6D28D9;
  --primary-light: #A78BFA;
  --accent: #EC4899;
  --accent-2: #F59E0B;
  --gradient: linear-gradient(135deg, #7C3AED 0%, #EC4899 100%);
  --gradient-hover: linear-gradient(135deg, #6D28D9 0%, #DB2777 100%);

  /* Dark theme (default) */
  --bg: #0D0D1A;
  --bg-2: #13132A;
  --bg-card: #1A1A35;
  --bg-card-2: #21213D;
  --bg-input: #1E1E38;
  --border: rgba(124,58,237,0.2);
  --border-2: rgba(255,255,255,0.07);
  --text: #E2E8F0;
  --text-2: #94A3B8;
  --text-3: #64748B;
  --heading: #F1F5F9;
  --nav-bg: rgba(13,13,26,0.95);
  --shadow: 0 8px 32px rgba(124,58,237,0.15);
  --shadow-card: 0 4px 20px rgba(0,0,0,0.4);
  --chip-bg: rgba(124,58,237,0.15);
  --chip-border: rgba(124,58,237,0.35);
  --success: #10B981;
  --error: #EF4444;
  --warning: #F59E0B;

  --radius: 14px;
  --radius-sm: 8px;
  --radius-pill: 100px;
  --transition: 0.25s cubic-bezier(0.4,0,0.2,1);
  --font-main: 'Inter', system-ui, sans-serif;
  --font-heading: 'Outfit', system-ui, sans-serif;
  --nav-h: 68px;
}

[data-theme="light"] {
  --bg: #F8F7FF;
  --bg-2: #F0EEF9;
  --bg-card: #FFFFFF;
  --bg-card-2: #F5F3FF;
  --bg-input: #FFFFFF;
  --border: rgba(124,58,237,0.2);
  --border-2: rgba(0,0,0,0.07);
  --text: #1E1B4B;
  --text-2: #4B5563;
  --text-3: #9CA3AF;
  --heading: #0F0A23;
  --nav-bg: rgba(248,247,255,0.97);
  --shadow: 0 8px 32px rgba(124,58,237,0.12);
  --shadow-card: 0 4px 20px rgba(0,0,0,0.08);
  --chip-bg: rgba(124,58,237,0.08);
  --chip-border: rgba(124,58,237,0.3);
}

/* ---------- RESET & BASE ---------- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; font-size: 16px; }

body {
  font-family: var(--font-main);
  background: var(--bg);
  color: var(--text);
  line-height: 1.65;
  overflow-x: hidden;
  transition: background var(--transition), color var(--transition);
  min-height: 100vh;
}

h1,h2,h3,h4,h5,h6 {
  font-family: var(--font-heading);
  color: var(--heading);
  line-height: 1.25;
  letter-spacing: -0.02em;
}

a { color: var(--primary-light); text-decoration: none; transition: color var(--transition); }
a:hover { color: var(--accent); }

img { max-width: 100%; height: auto; display: block; }
ul { list-style: none; }
button { cursor: pointer; font-family: var(--font-main); }
input, select, textarea { font-family: var(--font-main); }

.container {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
}

/* ---------- COOKIE BANNER ---------- */
#cookieBanner {
  position: fixed;
  bottom: 0; left: 0; right: 0;
  z-index: 9999;
  background: var(--bg-card);
  border-top: 1px solid var(--border);
  padding: 14px 20px;
  display: flex;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
  box-shadow: 0 -4px 20px rgba(0,0,0,0.3);
  transform: translateY(100%);
  transition: transform 0.4s cubic-bezier(0.4,0,0.2,1);
}
#cookieBanner.visible { transform: translateY(0); }
#cookieBanner p { flex: 1; min-width: 220px; font-size: 0.85rem; color: var(--text-2); }
#cookieBanner a { color: var(--primary-light); }
.cookie-btns { display: flex; gap: 10px; flex-shrink: 0; }
.btn-cookie-accept {
  background: var(--gradient);
  color: #fff;
  border: none;
  border-radius: var(--radius-pill);
  padding: 8px 20px;
  font-size: 0.85rem;
  font-weight: 600;
}
.btn-cookie-dismiss {
  background: transparent;
  color: var(--text-2);
  border: 1px solid var(--border-2);
  border-radius: var(--radius-pill);
  padding: 8px 16px;
  font-size: 0.85rem;
}
.btn-cookie-accept:hover, .btn-cookie-dismiss:hover { opacity: 0.85; }

/* ---------- NAVIGATION ---------- */
.navbar {
  position: fixed;
  top: 0; left: 0; right: 0;
  height: var(--nav-h);
  background: var(--nav-bg);
  backdrop-filter: blur(16px) saturate(180%);
  -webkit-backdrop-filter: blur(16px) saturate(180%);
  border-bottom: 1px solid var(--border-2);
  z-index: 1000;
  transition: background var(--transition), box-shadow var(--transition);
}
.navbar.scrolled { box-shadow: 0 4px 20px rgba(0,0,0,0.25); }

.nav-inner {
  display: flex;
  align-items: center;
  height: 100%;
  gap: 8px;
}

.nav-logo {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  flex-shrink: 0;
}
.nav-logo-icon {
  width: 36px; height: 36px;
  background: var(--gradient);
  border-radius: 10px;
  display: flex; align-items: center; justify-content: center;
  font-size: 1.1rem;
}
.nav-logo-text {
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 1.05rem;
  color: var(--heading);
}
.nav-logo-text span { color: var(--primary-light); }

.nav-links {
  display: flex;
  align-items: center;
  gap: 4px;
  margin-left: auto;
}

.nav-item { position: relative; }

.nav-link {
  display: flex; align-items: center; gap: 5px;
  padding: 8px 14px;
  color: var(--text-2);
  font-size: 0.875rem;
  font-weight: 500;
  border-radius: var(--radius-sm);
  transition: all var(--transition);
  white-space: nowrap;
}
.nav-link:hover, .nav-link.active {
  color: var(--heading);
  background: var(--chip-bg);
}
.nav-link svg { width: 14px; height: 14px; transition: transform var(--transition); }
.nav-item:hover .nav-link svg { transform: rotate(180deg); }

/* Dropdown */
.dropdown {
  position: absolute;
  top: 100%;
  left: 50%;
  transform: translateX(-50%);
  min-width: 580px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 16px;
  opacity: 0;
  visibility: hidden;
  transition: opacity var(--transition), visibility var(--transition), transform var(--transition);
  transform: translateX(-50%) translateY(8px);
  box-shadow: var(--shadow);
  z-index: 100;
}
.nav-item:hover .dropdown,
.nav-item:focus-within .dropdown {
  opacity: 1;
  visibility: visible;
  transform: translateX(-50%) translateY(0);
}
.dropdown-title {
  font-size: 0.7rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--text-3);
  padding: 0 8px 10px;
  border-bottom: 1px solid var(--border-2);
  margin-bottom: 10px;
}
.dropdown-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2px;
}
.dropdown-link {
  display: flex; align-items: center; gap: 10px;
  padding: 10px 8px;
  border-radius: var(--radius-sm);
  color: var(--text-2);
  font-size: 0.82rem;
  font-weight: 500;
  transition: all var(--transition);
}
.dropdown-link:hover {
  background: var(--chip-bg);
  color: var(--primary-light);
}
.dropdown-link-icon {
  width: 28px; height: 28px;
  background: var(--bg-2);
  border-radius: 7px;
  display: flex; align-items: center; justify-content: center;
  font-size: 0.8rem;
  flex-shrink: 0;
}

/* Nav right side */
.nav-actions {
  display: flex; align-items: center; gap: 8px;
  margin-left: 12px;
}

.btn-theme {
  width: 38px; height: 38px;
  border: 1px solid var(--border-2);
  background: var(--bg-card);
  border-radius: 10px;
  display: flex; align-items: center; justify-content: center;
  font-size: 1rem;
  color: var(--text-2);
  transition: all var(--transition);
}
.btn-theme:hover { background: var(--chip-bg); color: var(--primary-light); border-color: var(--border); }

/* Hamburger */
.nav-hamburger {
  display: none;
  flex-direction: column; gap: 5px;
  width: 38px; height: 38px;
  background: var(--bg-card);
  border: 1px solid var(--border-2);
  border-radius: 10px;
  align-items: center; justify-content: center;
  color: var(--text-2);
  font-size: 1.2rem;
}

/* Mobile nav overlay */
.mobile-nav {
  display: none;
  position: fixed;
  top: var(--nav-h); left: 0; right: 0; bottom: 0;
  background: var(--bg);
  z-index: 999;
  overflow-y: auto;
  padding: 16px 20px 32px;
  flex-direction: column;
  gap: 4px;
}
.mobile-nav.open { display: flex; }
.mobile-nav-section { margin-bottom: 16px; }
.mobile-nav-label {
  font-size: 0.7rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--text-3);
  padding: 8px 12px 4px;
}
.mobile-nav-link {
  display: flex; align-items: center; gap: 10px;
  padding: 11px 12px;
  border-radius: var(--radius-sm);
  color: var(--text-2);
  font-size: 0.9rem;
  font-weight: 500;
  transition: all var(--transition);
}
.mobile-nav-link:hover {
  background: var(--chip-bg);
  color: var(--primary-light);
}

/* ---------- BREADCRUMB ---------- */
.breadcrumb {
  padding: calc(var(--nav-h) + 16px) 0 0;
}
.breadcrumb-inner {
  display: flex; align-items: center; gap: 8px;
  flex-wrap: wrap;
  font-size: 0.8rem;
  color: var(--text-3);
}
.breadcrumb-inner a { color: var(--text-3); }
.breadcrumb-inner a:hover { color: var(--primary-light); }
.breadcrumb-sep { opacity: 0.4; }
.breadcrumb-inner span { color: var(--primary-light); font-weight: 500; }

/* ---------- HERO ---------- */
.hero {
  padding: 40px 0 60px;
  position: relative;
  overflow: hidden;
}
.hero::before {
  content: '';
  position: absolute;
  top: -60%; left: -20%; right: -20%;
  height: 80%;
  background: radial-gradient(ellipse at center, rgba(124,58,237,0.12) 0%, transparent 70%);
  pointer-events: none;
}

.hero-inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: start;
}

.hero-badge {
  display: inline-flex; align-items: center; gap: 8px;
  background: rgba(124,58,237,0.12);
  border: 1px solid rgba(124,58,237,0.25);
  border-radius: var(--radius-pill);
  padding: 6px 16px;
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--primary-light);
  margin-bottom: 20px;
  letter-spacing: 0.03em;
}

.hero h1 {
  font-size: clamp(1.9rem, 3.5vw, 3rem);
  font-weight: 800;
  margin-bottom: 18px;
}
.hero h1 .gradient-text {
  background: var(--gradient);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.hero-desc {
  color: var(--text-2);
  font-size: 1.05rem;
  margin-bottom: 32px;
  line-height: 1.7;
}

/* Form Card */
.form-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 20px;
  padding: 30px;
  box-shadow: var(--shadow);
  position: relative;
}
.form-card::before {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: 20px;
  padding: 1px;
  background: var(--gradient);
  -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
  -webkit-mask-composite: destination-out;
  mask-composite: exclude;
  pointer-events: none;
}

.form-row { margin-bottom: 18px; }
.form-row label {
  display: block;
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--text-2);
  margin-bottom: 7px;
  letter-spacing: 0.02em;
}
.form-row label .req { color: var(--accent); margin-left: 2px; }

.form-input, .form-select {
  width: 100%;
  padding: 12px 16px;
  background: var(--bg-input);
  border: 1px solid var(--border-2);
  border-radius: var(--radius-sm);
  color: var(--text);
  font-size: 0.95rem;
  transition: border-color var(--transition), box-shadow var(--transition);
  outline: none;
  appearance: none;
}
.form-input:focus, .form-select:focus {
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(124,58,237,0.18);
}
.form-input.error { border-color: var(--error); }
.form-input::placeholder { color: var(--text-3); }

.form-select {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1l5 5 5-5' stroke='%2394A3B8' stroke-width='1.5' fill='none' stroke-linecap='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 14px center;
  padding-right: 38px;
  cursor: pointer;
}
[data-theme="light"] .form-select {
  background-color: #fff;
  color: #1E1B4B;
}
[data-theme="light"] .form-input { background-color: #fff; color: #1E1B4B; }

/* Slider */
.slider-wrap { display: flex; align-items: center; gap: 12px; }
.form-slider {
  flex: 1;
  -webkit-appearance: none;
  height: 4px;
  border-radius: 4px;
  background: var(--border-2);
  outline: none;
  cursor: pointer;
}
.form-slider::-webkit-slider-thumb {
  -webkit-appearance: none;
  width: 18px; height: 18px;
  border-radius: 50%;
  background: var(--gradient);
  cursor: pointer;
  box-shadow: 0 2px 8px rgba(124,58,237,0.4);
}
.slider-val {
  min-width: 38px; text-align: center;
  font-weight: 700;
  color: var(--primary-light);
  font-size: 0.9rem;
}

.form-grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }

.field-error {
  font-size: 0.78rem;
  color: var(--error);
  margin-top: 5px;
  display: none;
}
.field-error.show { display: block; }

/* Char counter */
.char-count {
  font-size: 0.75rem;
  color: var(--text-3);
  text-align: right;
  margin-top: 4px;
}
.char-count.warn { color: var(--warning); }

/* Generate Button */
.btn-generate {
  width: 100%;
  padding: 15px;
  background: var(--gradient);
  border: none;
  border-radius: var(--radius-sm);
  color: #fff;
  font-size: 1rem;
  font-weight: 700;
  font-family: var(--font-heading);
  letter-spacing: 0.02em;
  transition: all var(--transition);
  display: flex; align-items: center; justify-content: center; gap: 10px;
  margin-top: 20px;
  position: relative;
  overflow: hidden;
}
.btn-generate::after {
  content: '';
  position: absolute;
  inset: 0;
  background: rgba(255,255,255,0);
  transition: background var(--transition);
}
.btn-generate:hover:not(:disabled)::after { background: rgba(255,255,255,0.08); }
.btn-generate:hover:not(:disabled) {
  transform: translateY(-1px);
  box-shadow: 0 8px 24px rgba(124,58,237,0.45);
}
.btn-generate:disabled {
  opacity: 0.65;
  cursor: not-allowed;
  transform: none;
}

/* Spinner */
.spinner {
  width: 18px; height: 18px;
  border: 2px solid rgba(255,255,255,0.3);
  border-top-color: #fff;
  border-radius: 50%;
  animation: spin 0.7s linear infinite;
  display: none;
}
.btn-generate.loading .spinner { display: inline-block; }
.btn-generate.loading .btn-text::after { content: '…'; }

@keyframes spin { to { transform: rotate(360deg); } }

/* Social Proof in Hero */
.hero-social-proof {
  display: flex; align-items: center; gap: 12px;
  margin-top: 28px;
  flex-wrap: wrap;
}
.proof-item {
  display: flex; align-items: center; gap: 6px;
  font-size: 0.82rem; color: var(--text-2);
}
.proof-icon { font-size: 1rem; }
.proof-divider { width: 1px; height: 16px; background: var(--border-2); }

/* ---------- SHARE & FEEDBACK BAR ---------- */
.share-bar {
  padding: 20px 0;
  border-top: 1px solid var(--border-2);
  border-bottom: 1px solid var(--border-2);
  margin-bottom: 0;
}
.share-bar-inner {
  display: flex; align-items: center; justify-content: center; gap: 12px;
  flex-wrap: wrap;
}
.share-label {
  font-size: 0.82rem; font-weight: 600; color: var(--text-3);
  margin-right: 4px;
  white-space: nowrap;
}
.share-btn {
  display: inline-flex; align-items: center; gap: 7px;
  padding: 8px 16px;
  border-radius: var(--radius-pill);
  font-size: 0.8rem;
  font-weight: 600;
  border: 1px solid var(--border-2);
  background: var(--bg-card);
  color: var(--text-2);
  transition: all var(--transition);
  white-space: nowrap;
}
.share-btn:hover { border-color: var(--primary); color: var(--primary-light); background: var(--chip-bg); }
.share-btn.twitter:hover  { border-color: #1DA1F2; color: #1DA1F2; }
.share-btn.facebook:hover { border-color: #1877F2; color: #1877F2; }
.share-btn.linkedin:hover { border-color: #0A66C2; color: #0A66C2; }
.share-btn.whatsapp:hover { border-color: #25D366; color: #25D366; }
.share-btn.reddit:hover   { border-color: #FF4500; color: #FF4500; }
.share-btn.feedback { 
  background: var(--gradient); color: #fff; border: none;
}
.share-btn.feedback:hover { transform: translateY(-1px); box-shadow: var(--shadow); }

/* ---------- RESULTS SECTION ---------- */
#resultsSection {
  padding: 50px 0;
  display: none;
}
#resultsSection.visible { display: block; }

.results-header {
  display: flex; align-items: center; justify-content: space-between;
  flex-wrap: wrap; gap: 14px;
  margin-bottom: 24px;
}
.results-title {
  font-size: 1.5rem; font-weight: 700; color: var(--heading);
  display: flex; align-items: center; gap: 10px;
}
.results-title .topic-tag {
  font-size: 0.78rem;
  background: var(--chip-bg);
  border: 1px solid var(--chip-border);
  border-radius: var(--radius-pill);
  padding: 4px 12px;
  color: var(--primary-light);
  font-weight: 600;
}
.results-actions { display: flex; gap: 10px; flex-wrap: wrap; }
.btn-action {
  display: inline-flex; align-items: center; gap: 7px;
  padding: 9px 18px;
  border-radius: var(--radius-sm);
  font-size: 0.84rem;
  font-weight: 600;
  transition: all var(--transition);
  border: 1px solid var(--border);
  background: var(--bg-card);
  color: var(--text-2);
}
.btn-action:hover { background: var(--chip-bg); color: var(--primary-light); border-color: var(--primary); }
.btn-action.primary { background: var(--gradient); color: #fff; border: none; }
.btn-action.primary:hover { transform: translateY(-1px); box-shadow: var(--shadow); }

/* Keyword Stats */
.kw-stats-row {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(120px, 1fr));
  gap: 12px;
  margin-bottom: 28px;
}
.kw-stat-card {
  background: var(--bg-card);
  border: 1px solid var(--border-2);
  border-radius: var(--radius-sm);
  padding: 14px;
  text-align: center;
}
.kw-stat-num {
  font-family: var(--font-heading);
  font-size: 1.6rem;
  font-weight: 800;
  background: var(--gradient);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  display: block;
}
.kw-stat-label { font-size: 0.72rem; color: var(--text-3); margin-top: 2px; font-weight: 500; }

/* Tabs */
.tabs-wrap {
  border-bottom: 1px solid var(--border-2);
  margin-bottom: 20px;
  overflow-x: auto;
  scrollbar-width: none;
}
.tabs-wrap::-webkit-scrollbar { display: none; }
.tabs {
  display: flex; gap: 4px;
  min-width: max-content;
}
.tab-btn {
  padding: 10px 18px;
  border: none; background: transparent;
  color: var(--text-3);
  font-size: 0.84rem; font-weight: 600;
  border-bottom: 2px solid transparent;
  transition: all var(--transition);
  white-space: nowrap;
  display: flex; align-items: center; gap: 7px;
}
.tab-btn .tab-count {
  background: var(--bg-2);
  border-radius: var(--radius-pill);
  padding: 2px 7px;
  font-size: 0.7rem;
  min-width: 22px; text-align: center;
}
.tab-btn:hover { color: var(--text-2); }
.tab-btn.active {
  color: var(--primary-light);
  border-bottom-color: var(--primary);
}
.tab-btn.active .tab-count {
  background: rgba(124,58,237,0.2);
  color: var(--primary-light);
}

.tab-panel { display: none; }
.tab-panel.active { display: block; }

/* Keyword Chips */
.kw-grid {
  display: flex; flex-wrap: wrap; gap: 10px;
  padding: 4px 0;
}
.kw-chip {
  display: inline-flex; align-items: center; gap: 8px;
  background: var(--chip-bg);
  border: 1px solid var(--chip-border);
  border-radius: var(--radius-pill);
  padding: 8px 16px;
  font-size: 0.85rem;
  font-weight: 500;
  color: var(--text);
  transition: all var(--transition);
  cursor: default;
}
.kw-chip:hover {
  background: rgba(124,58,237,0.25);
  border-color: var(--primary);
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(124,58,237,0.2);
}
.kw-chip .chip-copy {
  opacity: 0;
  font-size: 0.75rem;
  color: var(--primary-light);
  cursor: pointer;
  transition: opacity var(--transition);
  background: none; border: none;
  padding: 0;
  font-family: var(--font-main);
}
.kw-chip:hover .chip-copy { opacity: 1; }
.kw-chip .chip-copy:hover { color: var(--accent); }

/* Hashtag chips */
.tab-panel[data-cat="hashtag_keywords"] .kw-chip {
  background: rgba(236,72,153,0.1);
  border-color: rgba(236,72,153,0.3);
  color: #F9A8D4;
}
.tab-panel[data-cat="hashtag_keywords"] .kw-chip:hover {
  background: rgba(236,72,153,0.2);
  border-color: var(--accent);
}
[data-theme="light"] .tab-panel[data-cat="hashtag_keywords"] .kw-chip { color: #9D174D; }

/* CTA chip */
.tab-panel[data-cat="cta_keywords"] .kw-chip,
.tab-panel[data-cat="caption_keywords"] .kw-chip {
  background: rgba(245,158,11,0.08);
  border-color: rgba(245,158,11,0.25);
  border-radius: var(--radius-sm);
  padding: 10px 16px;
}

/* Toast */
.toast {
  position: fixed;
  bottom: 90px; right: 20px;
  background: var(--success);
  color: #fff;
  padding: 12px 20px;
  border-radius: var(--radius-sm);
  font-size: 0.875rem;
  font-weight: 600;
  z-index: 5000;
  opacity: 0;
  transform: translateY(10px);
  transition: all 0.3s ease;
  pointer-events: none;
  max-width: 300px;
}
.toast.show { opacity: 1; transform: translateY(0); }
.toast.error { background: var(--error); }

/* Error state */
.error-card {
  background: rgba(239,68,68,0.08);
  border: 1px solid rgba(239,68,68,0.3);
  border-radius: var(--radius);
  padding: 24px;
  text-align: center;
  color: var(--error);
}
.error-card h3 { font-size: 1.1rem; margin-bottom: 8px; }
.error-card p { font-size: 0.9rem; opacity: 0.8; }

/* ---------- RELATED TOOLS ---------- */
.related-tools {
  padding: 48px 0;
  background: var(--bg-2);
}
.section-label {
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--primary-light);
  margin-bottom: 10px;
  display: block;
}
.section-title {
  font-size: clamp(1.4rem, 2.5vw, 2rem);
  font-weight: 700;
  margin-bottom: 8px;
}
.section-desc {
  color: var(--text-2);
  font-size: 0.95rem;
  margin-bottom: 32px;
  max-width: 600px;
}

.tools-scroll {
  display: flex; gap: 12px;
  overflow-x: auto;
  scrollbar-width: thin;
  scrollbar-color: var(--primary) transparent;
  padding-bottom: 8px;
}
.tools-scroll::-webkit-scrollbar { height: 4px; }
.tools-scroll::-webkit-scrollbar-track { background: transparent; }
.tools-scroll::-webkit-scrollbar-thumb { background: var(--primary); border-radius: 4px; }

.tool-card-sm {
  flex-shrink: 0;
  background: var(--bg-card);
  border: 1px solid var(--border-2);
  border-radius: var(--radius);
  padding: 14px 18px;
  display: flex; align-items: center; gap: 10px;
  font-size: 0.82rem;
  color: var(--text-2);
  font-weight: 500;
  transition: all var(--transition);
  white-space: nowrap;
  min-width: 0;
  max-width: 240px;
}
.tool-card-sm:hover {
  background: var(--chip-bg);
  border-color: var(--border);
  color: var(--primary-light);
  transform: translateY(-2px);
  box-shadow: var(--shadow-card);
}
.tool-card-sm .tc-icon {
  width: 30px; height: 30px;
  background: var(--chip-bg);
  border-radius: 8px;
  display: flex; align-items: center; justify-content: center;
  font-size: 0.9rem;
  flex-shrink: 0;
}

/* ---------- FEATURES ---------- */
.features { padding: 72px 0; }
.features-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 20px;
  margin-top: 40px;
}
.feature-card {
  background: var(--bg-card);
  border: 1px solid var(--border-2);
  border-radius: var(--radius);
  padding: 24px;
  transition: all var(--transition);
  position: relative;
  overflow: hidden;
}
.feature-card::after {
  content: '';
  position: absolute;
  bottom: 0; left: 0; right: 0; height: 2px;
  background: var(--gradient);
  transform: scaleX(0);
  transition: transform var(--transition);
  transform-origin: left;
}
.feature-card:hover { border-color: var(--border); box-shadow: var(--shadow-card); transform: translateY(-3px); }
.feature-card:hover::after { transform: scaleX(1); }
.feature-icon {
  width: 48px; height: 48px;
  border-radius: 12px;
  background: var(--chip-bg);
  border: 1px solid var(--chip-border);
  display: flex; align-items: center; justify-content: center;
  font-size: 1.4rem;
  margin-bottom: 16px;
}
.feature-card h3 {
  font-size: 1rem; font-weight: 700;
  margin-bottom: 8px; color: var(--heading);
}
.feature-card p { font-size: 0.875rem; color: var(--text-2); line-height: 1.6; }

/* ---------- HOW IT WORKS ---------- */
.how-it-works { padding: 72px 0; background: var(--bg-2); }
.steps-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 20px;
  margin-top: 40px;
  position: relative;
}
.step-card {
  background: var(--bg-card);
  border: 1px solid var(--border-2);
  border-radius: var(--radius);
  padding: 28px 22px;
  text-align: center;
  transition: all var(--transition);
}
.step-card:hover { border-color: var(--border); box-shadow: var(--shadow-card); transform: translateY(-2px); }
.step-num {
  width: 44px; height: 44px;
  background: var(--gradient);
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-weight: 800; font-size: 1rem; color: #fff;
  margin: 0 auto 16px;
  font-family: var(--font-heading);
}
.step-card h3 { font-size: 0.95rem; font-weight: 700; margin-bottom: 8px; }
.step-card p { font-size: 0.83rem; color: var(--text-2); line-height: 1.6; }

/* ---------- SEO ARTICLE ---------- */
.seo-article { padding: 64px 0; }
.article-card {
  background: var(--bg-card);
  border: 1px solid var(--border-2);
  border-radius: 20px;
  padding: 40px;
  max-width: 860px;
  margin: 0 auto;
}
.article-card h2 {
  font-size: 1.5rem; font-weight: 700; margin-bottom: 16px;
}
.article-card p {
  color: var(--text-2); font-size: 0.95rem; line-height: 1.8; margin-bottom: 14px;
}
.article-card p:last-child { margin-bottom: 0; }

/* ---------- FAQ ---------- */
.faq { padding: 72px 0; background: var(--bg-2); }
.faq-list { max-width: 780px; margin: 40px auto 0; display: flex; flex-direction: column; gap: 12px; }
.faq-item {
  background: var(--bg-card);
  border: 1px solid var(--border-2);
  border-radius: var(--radius);
  overflow: hidden;
  transition: border-color var(--transition);
}
.faq-item.open { border-color: var(--border); }
.faq-q {
  width: 100%; text-align: left;
  display: flex; justify-content: space-between; align-items: center; gap: 12px;
  padding: 18px 22px;
  background: transparent;
  border: none;
  color: var(--heading);
  font-size: 0.95rem; font-weight: 600;
  font-family: var(--font-main);
  cursor: pointer;
  transition: color var(--transition);
}
.faq-q:hover { color: var(--primary-light); }
.faq-icon {
  width: 24px; height: 24px; flex-shrink: 0;
  background: var(--chip-bg);
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-size: 0.8rem; color: var(--primary-light);
  transition: transform var(--transition), background var(--transition);
}
.faq-item.open .faq-icon { transform: rotate(45deg); background: rgba(124,58,237,0.25); }
.faq-a {
  max-height: 0; overflow: hidden;
  transition: max-height 0.4s cubic-bezier(0.4,0,0.2,1);
}
.faq-a-inner {
  padding: 0 22px 18px;
  color: var(--text-2); font-size: 0.9rem; line-height: 1.75;
}

/* ---------- CTA ---------- */
.cta { padding: 80px 0; }
.cta-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 24px;
  padding: 56px 40px;
  text-align: center;
  position: relative;
  overflow: hidden;
}
.cta-card::before {
  content: '';
  position: absolute;
  top: -50%; left: 50%; transform: translateX(-50%);
  width: 60%; height: 100%;
  background: radial-gradient(ellipse, rgba(124,58,237,0.12) 0%, transparent 70%);
  pointer-events: none;
}
.cta-card h2 { font-size: clamp(1.6rem, 2.5vw, 2.2rem); font-weight: 800; margin-bottom: 14px; }
.cta-card p { color: var(--text-2); font-size: 1rem; margin-bottom: 32px; max-width: 500px; margin-left: auto; margin-right: auto; }
.cta-btns { display: flex; justify-content: center; gap: 14px; flex-wrap: wrap; }
.btn-cta {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 14px 28px;
  border-radius: var(--radius-sm);
  font-size: 0.95rem; font-weight: 700;
  font-family: var(--font-heading);
  transition: all var(--transition);
  border: 1px solid transparent;
}
.btn-cta.primary {
  background: var(--gradient); color: #fff; border: none;
}
.btn-cta.primary:hover { transform: translateY(-2px); box-shadow: 0 8px 24px rgba(124,58,237,0.4); }
.btn-cta.secondary {
  background: transparent;
  color: var(--text-2);
  border-color: var(--border);
}
.btn-cta.secondary:hover { background: var(--chip-bg); color: var(--primary-light); border-color: var(--primary); }

/* ---------- FOOTER ---------- */
.footer {
  background: var(--bg-2);
  border-top: 1px solid var(--border-2);
  padding: 56px 0 24px;
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.8fr repeat(3, 1fr);
  gap: 40px;
  margin-bottom: 40px;
}
.footer-brand { }
.footer-logo {
  display: flex; align-items: center; gap: 10px;
  text-decoration: none; margin-bottom: 12px;
}
.footer-logo-icon {
  width: 34px; height: 34px;
  background: var(--gradient);
  border-radius: 9px;
  display: flex; align-items: center; justify-content: center;
  font-size: 1rem;
}
.footer-logo-text {
  font-family: var(--font-heading);
  font-weight: 700; font-size: 1rem;
  color: var(--heading);
}
.footer-desc { font-size: 0.82rem; color: var(--text-3); line-height: 1.6; margin-bottom: 16px; }
.footer-col h4 {
  font-size: 0.78rem; font-weight: 700;
  text-transform: uppercase; letter-spacing: 0.08em;
  color: var(--text-3);
  margin-bottom: 14px;
}
.footer-links { display: flex; flex-direction: column; gap: 8px; }
.footer-links a {
  font-size: 0.83rem; color: var(--text-2);
  transition: color var(--transition);
  line-height: 1.4;
}
.footer-links a:hover { color: var(--primary-light); }
.footer-bottom {
  border-top: 1px solid var(--border-2);
  padding-top: 20px;
  display: flex; justify-content: space-between; align-items: center;
  flex-wrap: wrap; gap: 12px;
}
.footer-copyright { font-size: 0.78rem; color: var(--text-3); }
.footer-disclaimer { font-size: 0.73rem; color: var(--text-3); max-width: 500px; line-height: 1.5; }
.footer-legal-links { display: flex; gap: 16px; }
.footer-legal-links a { font-size: 0.78rem; color: var(--text-3); }
.footer-legal-links a:hover { color: var(--primary-light); }

/* ---------- SECTION HEADER ---------- */
.section-header { text-align: center; margin-bottom: 4px; }
.section-header .section-desc { margin: 0 auto 0; }

/* ---------- UTILITY ---------- */
.sr-only {
  position: absolute; width: 1px; height: 1px;
  padding: 0; margin: -1px; overflow: hidden;
  clip: rect(0,0,0,0); border: 0;
}

/* Loading skeleton */
.skeleton {
  background: linear-gradient(90deg, var(--bg-card) 25%, var(--bg-card-2) 50%, var(--bg-card) 75%);
  background-size: 200% 100%;
  animation: shimmer 1.4s infinite;
  border-radius: 8px;
}
@keyframes shimmer { to { background-position: -200% 0; } }

/* Progress bar */
.progress-bar-wrap {
  width: 100%; height: 4px;
  background: var(--border-2);
  border-radius: 4px;
  overflow: hidden;
  margin-top: 16px;
  display: none;
}
.progress-bar-wrap.visible { display: block; }
.progress-bar {
  height: 100%;
  background: var(--gradient);
  border-radius: 4px;
  width: 0%;
  transition: width 0.3s ease;
}

/* ============================================================
   RESPONSIVE BREAKPOINTS
   ============================================================ */
@media (max-width: 1024px) {
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 30px; }
  .hero-inner { gap: 40px; }
  .dropdown { min-width: 480px; }
}

@media (max-width: 768px) {
  :root { --nav-h: 60px; }

  .nav-links { display: none; }
  .nav-hamburger { display: flex; }

  .hero-inner {
    grid-template-columns: 1fr;
    gap: 30px;
  }
  .hero { padding: 24px 0 50px; }

  .form-grid-2 { grid-template-columns: 1fr; }

  .footer-grid { grid-template-columns: 1fr 1fr; }
  .footer-brand { grid-column: 1 / -1; }

  .footer-bottom { flex-direction: column; align-items: flex-start; }

  .kw-stats-row { grid-template-columns: repeat(4, 1fr); }

  .results-header { flex-direction: column; align-items: flex-start; }

  .cta-card { padding: 40px 24px; }

  .share-bar-inner { justify-content: flex-start; }

  .features-grid { grid-template-columns: 1fr 1fr; }
  .steps-grid { grid-template-columns: 1fr 1fr; }

  .article-card { padding: 24px; }
}

@media (max-width: 480px) {
  .container { padding: 0 16px; }

  .hero h1 { font-size: 1.6rem; }
  .form-card { padding: 20px 16px; }

  .footer-grid { grid-template-columns: 1fr; }

  .kw-stats-row { grid-template-columns: repeat(2, 1fr); }

  .features-grid { grid-template-columns: 1fr; }
  .steps-grid { grid-template-columns: 1fr; }

  .cta-btns { flex-direction: column; }
  .btn-cta { justify-content: center; }

  .results-actions { flex-direction: column; width: 100%; }
  .btn-action { justify-content: center; }

  .tabs { gap: 2px; }
  .tab-btn { padding: 10px 12px; font-size: 0.78rem; }
}
