/* ═══════════════════════════════════════════════════════
   Pan Tool — Modern SaaS Design (Frybix-inspired)
   Bright, bold, premium — white + deep purple
   ═══════════════════════════════════════════════════════ */

/* ── CSS Variables ─────────────────────────────────── */
:root {
  /* Backgrounds */
  --bg-primary:    #ffffff;
  --bg-secondary:  #F4F7FE;
  --bg-tertiary:   #EDF0F7;
  --bg-card:       #ffffff;
  --bg-card-hover: #ffffff;
  --border:        rgba(226,232,240,0.8);
  --border-hover:  rgba(67,24,255,0.3);

  /* Primary palette — deep purple / indigo */
  --primary:       #4318FF;
  --primary-light: #7551FF;
  --primary-dark:  #2B00FF;
  --primary-glow:  rgba(67,24,255,0.15);
  --primary-bg:    rgba(67,24,255,0.06);

  /* Accent colors */
  --accent:        #05CD99;
  --accent-light:  #01B574;
  --accent-glow:   rgba(5,205,153,0.12);

  --success:       #05CD99;
  --warning:       #FFB547;
  --error:         #EE5D50;

  /* Text */
  --text-primary:   #1B2559;
  --text-secondary: #68769F;
  --text-muted:     #A3AED0;

  /* Fonts */
  --font-sans: 'DM Sans', system-ui, -apple-system, sans-serif;
  --font-mono: 'JetBrains Mono', 'Fira Code', monospace;

  /* Radius */
  --radius-sm: 10px;
  --radius-md: 14px;
  --radius-lg: 20px;
  --radius-xl: 24px;
  --radius-2xl: 30px;

  /* Shadows */
  --shadow-sm:   0 2px 8px rgba(27,37,89,0.04);
  --shadow-md:   0 4px 20px rgba(27,37,89,0.06);
  --shadow-lg:   0 8px 40px rgba(27,37,89,0.08);
  --shadow-card: 0 4px 25px rgba(27,37,89,0.06);
  --shadow-glow: 0 0 40px var(--primary-glow);

  /* Misc */
  --transition: 220ms cubic-bezier(0.4,0,0.2,1);
  --max-w: 1200px;
}

/* ── Reset ─────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; font-size: 16px; }
img, video { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
ul { list-style: none; }

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

/* ── Layout ────────────────────────────────────────── */
.container { max-width: var(--max-w); margin: 0 auto; padding: 0 1.5rem; position: relative; z-index: 1; }

/* ── Typography ────────────────────────────────────── */
h1,h2,h3,h4 { line-height: 1.2; font-weight: 700; letter-spacing: -0.02em; color: var(--text-primary); }
h1 { font-size: clamp(2rem, 5vw, 3.2rem); font-weight: 800; }
h2 { font-size: clamp(1.4rem, 3vw, 2.1rem); }
h3 { font-size: 1.15rem; }
p  { color: var(--text-secondary); margin-bottom: 1rem; }

.gradient-text {
  background: linear-gradient(135deg, var(--primary) 0%, var(--primary-light) 50%, var(--accent) 100%);
  -webkit-background-clip: text; -webkit-text-fill-color: transparent; background-clip: text;
}

/* ── Navbar ────────────────────────────────────────── */
.navbar {
  position: sticky; top: 0; z-index: 100;
  background: rgba(255,255,255,0.92);
  backdrop-filter: blur(20px) saturate(1.4);
  -webkit-backdrop-filter: blur(20px) saturate(1.4);
  border-bottom: 1px solid rgba(226,232,240,0.6);
  transition: box-shadow 0.3s ease;
}
.navbar-inner {
  display: flex; align-items: center; justify-content: space-between;
  height: 70px; max-width: var(--max-w); margin: 0 auto; padding: 0 1.5rem;
}
.nav-logo {
  display: flex; align-items: center; gap: 0.6rem;
  font-size: 1.25rem; font-weight: 800; letter-spacing: -0.02em;
  color: var(--text-primary);
}
.nav-logo .logo-icon {
  width: 38px; height: 38px;
  background: linear-gradient(135deg, var(--primary), var(--primary-light));
  border-radius: var(--radius-md); display: grid; place-items: center;
  font-size: 1rem; color: #fff;
  box-shadow: 0 4px 15px rgba(67,24,255,0.3);
}
.nav-menu { display: flex; align-items: center; gap: 0.25rem; }
.nav-link {
  padding: 0.5rem 1rem; border-radius: var(--radius-sm);
  font-size: 0.9rem; font-weight: 500; color: var(--text-secondary);
  transition: color var(--transition);
}
.nav-link:hover { color: var(--text-primary); }
.nav-link.active { color: var(--primary); font-weight: 600; }

/* Dropdown */
.nav-dropdown { position: relative; }
.nav-dropdown-toggle { cursor: pointer; display: flex; align-items: center; gap: 4px; }
.nav-dropdown-toggle::after { content: '▾'; font-size: 0.7rem; opacity: 0.5; }
.dropdown-menu {
  position: absolute; top: calc(100% + 10px); left: 50%;
  transform: translateX(-50%); background: var(--bg-card);
  border: 1px solid var(--border); border-radius: var(--radius-lg);
  padding: 0.6rem; min-width: 230px;
  box-shadow: var(--shadow-lg); z-index: 200;
  display: flex; flex-direction: column; gap: 2px;
  opacity: 0; visibility: hidden; pointer-events: none;
  transition: opacity var(--transition), transform var(--transition);
  transform: translateX(-50%) translateY(-8px);
}
.nav-dropdown:hover .dropdown-menu,
.nav-dropdown:focus-within .dropdown-menu {
  opacity: 1; visibility: visible; pointer-events: auto;
  transform: translateX(-50%) translateY(0);
}
.dropdown-item {
  padding: 0.55rem 1rem; border-radius: var(--radius-sm);
  font-size: 0.85rem; color: var(--text-secondary);
  transition: background var(--transition), color var(--transition);
  display: flex; align-items: center; gap: 0.5rem;
}
.dropdown-item:hover { background: var(--primary-bg); color: var(--primary); }
.dropdown-item .icon { font-size: 0.9rem; }

/* Hamburger */
.nav-toggle {
  display: none; flex-direction: column; gap: 5px;
  background: none; border: none; cursor: pointer; padding: 6px;
}
.nav-toggle span {
  display: block; width: 22px; height: 2px; background: var(--text-primary);
  border-radius: 2px; transition: transform var(--transition), opacity var(--transition);
}
.nav-toggle.is-active span:nth-child(1) { transform: rotate(45deg) translate(5px,5px); }
.nav-toggle.is-active span:nth-child(2) { opacity: 0; }
.nav-toggle.is-active span:nth-child(3) { transform: rotate(-45deg) translate(5px,-5px); }

/* ── Ad Units ───────────────────────────────────────── */
.ad-unit {
  width: 100%; display: flex; flex-direction: column;
  align-items: center; gap: 6px; padding: 0.75rem 0; margin: 1rem 0;
}
.ad-label {
  font-size: 0.68rem; font-weight: 600; letter-spacing: 0.08em;
  text-transform: uppercase; color: var(--text-muted);
}
.ad-placeholder {
  width: 100%; min-height: 90px; background: var(--bg-secondary);
  border: 1px dashed rgba(226,232,240,0.8); border-radius: var(--radius-md);
  display: grid; place-items: center;
}
.ad-in-content .ad-placeholder { min-height: 280px; max-width: 336px; }
.ad-mid-content .ad-placeholder { min-height: 60px; max-width: 468px; }

/* ── Hero (Homepage) ───────────────────────────────── */
.hero {
  padding: 5rem 0 4rem;
  text-align: center;
  position: relative;
  background: linear-gradient(180deg, var(--bg-primary) 0%, var(--bg-secondary) 100%);
  overflow: hidden;
}
.hero::before {
  content: '';
  position: absolute;
  top: -60%; left: 50%; transform: translateX(-50%);
  width: 140%; height: 100%;
  background: radial-gradient(ellipse at center, rgba(67,24,255,0.07) 0%, transparent 70%);
  pointer-events: none;
}
.hero::after {
  content: '';
  position: absolute;
  bottom: 0; left: 0; right: 0;
  height: 120px;
  background: linear-gradient(180deg, transparent, var(--bg-secondary));
  pointer-events: none;
}
.hero-shape {
  position: absolute;
  top: -200px; right: -100px;
  width: 600px; height: 600px;
  background: linear-gradient(135deg, rgba(67,24,255,0.06), rgba(117,81,255,0.04));
  border-radius: 50%;
  pointer-events: none;
  z-index: 0;
}
.hero-shape-2 {
  position: absolute;
  bottom: -150px; left: -80px;
  width: 400px; height: 400px;
  background: linear-gradient(135deg, rgba(5,205,153,0.05), rgba(67,24,255,0.03));
  border-radius: 50%;
  pointer-events: none;
  z-index: 0;
}
.hero-badge {
  display: inline-flex; align-items: center; gap: 8px;
  background: var(--bg-card); border: 1px solid var(--border);
  border-radius: 99px; padding: 0.45rem 1.4rem;
  font-size: 0.82rem; color: var(--primary); font-weight: 600;
  margin-bottom: 1.75rem;
  box-shadow: var(--shadow-sm);
  position: relative; z-index: 1;
}
.hero h1 { margin-bottom: 1.25rem; position: relative; z-index: 1; }
.hero p {
  font-size: 1.1rem; max-width: 580px; margin: 0 auto 2.5rem;
  line-height: 1.7; position: relative; z-index: 1;
}
.hero-actions { display: flex; gap: 1rem; justify-content: center; flex-wrap: wrap; position: relative; z-index: 1; }

/* ── Buttons ───────────────────────────────────────── */
.btn {
  display: inline-flex; align-items: center; gap: 0.5rem;
  padding: 0.75rem 1.6rem; border-radius: 99px;
  font-size: 0.9rem; font-weight: 600; font-family: var(--font-sans);
  cursor: pointer; border: none; transition: all var(--transition);
  white-space: nowrap; position: relative;
}
.btn-primary {
  background: linear-gradient(135deg, var(--primary), var(--primary-dark));
  color: #fff;
  box-shadow: 0 4px 18px rgba(67,24,255,0.3), inset 0 1px 0 rgba(255,255,255,0.15);
}
.btn-primary:hover {
  background: linear-gradient(135deg, var(--primary-light), var(--primary));
  box-shadow: 0 8px 30px rgba(67,24,255,0.4);
  transform: translateY(-2px);
}
.btn-accent {
  background: linear-gradient(135deg, var(--accent), var(--accent-light));
  color: #fff;
  box-shadow: 0 4px 16px rgba(5,205,153,0.25);
}
.btn-accent:hover { box-shadow: 0 8px 28px rgba(5,205,153,0.35); transform: translateY(-2px); }
.btn-ghost {
  background: var(--bg-card); color: var(--text-primary);
  border: 1.5px solid var(--border);
  box-shadow: var(--shadow-sm);
}
.btn-ghost:hover {
  border-color: var(--primary);
  color: var(--primary);
  box-shadow: var(--shadow-md);
  transform: translateY(-1px);
}
.btn-sm { padding: 0.5rem 1.1rem; font-size: 0.82rem; }
.btn-lg { padding: 0.95rem 2.4rem; font-size: 1rem; }

/* ── Section Heading ──────────────────────────────── */
.section-heading { text-align: center; margin-bottom: 3rem; }
.section-heading h2 { margin-bottom: 0.5rem; }
.section-heading p { font-size: 1.05rem; margin-top: 0.5rem; }

/* ── Tool Cards Grid ───────────────────────────────── */
.tools-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 1.25rem;
  padding-bottom: 4rem;
}
.tool-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 1.75rem;
  transition: transform var(--transition), border-color var(--transition), box-shadow var(--transition);
  opacity: 0; transform: translateY(20px);
  cursor: pointer; display: block;
  box-shadow: var(--shadow-card);
}
.tool-card.revealed {
  opacity: 1; transform: translateY(0);
  transition: opacity 0.5s ease, transform 0.5s ease, border-color var(--transition), box-shadow var(--transition);
}
.tool-card:hover {
  border-color: var(--border-hover);
  box-shadow: 0 12px 40px rgba(67,24,255,0.1), 0 4px 20px rgba(27,37,89,0.06);
  transform: translateY(-6px);
}
.tool-card-icon {
  width: 52px; height: 52px; border-radius: var(--radius-md);
  display: grid; place-items: center; font-size: 1.5rem;
  margin-bottom: 1rem;
}
.tool-card h3 { font-size: 1.05rem; margin-bottom: 0.4rem; }
.tool-card p  { font-size: 0.85rem; margin: 0; }
.tool-card-arrow { float: right; color: var(--primary); font-size: 1.1rem; margin-top: -2.5rem; transition: transform var(--transition); }
.tool-card:hover .tool-card-arrow { transform: translateX(4px); }

/* Card color variants */
.card-indigo  .tool-card-icon { background: rgba(67,24,255,0.08); }
.card-cyan    .tool-card-icon { background: rgba(5,205,153,0.08); }
.card-violet  .tool-card-icon { background: rgba(117,81,255,0.08); }
.card-emerald .tool-card-icon { background: rgba(5,205,153,0.08); }
.card-amber   .tool-card-icon { background: rgba(255,181,71,0.1); }
.card-rose    .tool-card-icon { background: rgba(238,93,80,0.08); }

/* ── Stats Strip ───────────────────────────────────── */
.stats-strip {
  display: flex; justify-content: center; gap: 3.5rem;
  padding: 2.5rem 0; flex-wrap: wrap;
}
.stat { text-align: center; }
.stat-num {
  font-size: 2.25rem; font-weight: 800;
  background: linear-gradient(135deg, var(--primary), var(--primary-light));
  -webkit-background-clip: text; -webkit-text-fill-color: transparent; background-clip: text;
}
.stat-label { font-size: 0.82rem; color: var(--text-muted); margin: 0; font-weight: 500; }

/* ── Tool Page Layout ──────────────────────────────── */
.tool-page-header {
  padding: 3rem 0 2rem;
  background: var(--bg-primary);
  border-bottom: 1px solid var(--border);
}
.breadcrumb {
  display: flex; align-items: center; gap: 0.5rem;
  font-size: 0.82rem; color: var(--text-muted); margin-bottom: 0.75rem;
}
.breadcrumb a { color: var(--text-muted); transition: color var(--transition); }
.breadcrumb a:hover { color: var(--primary); }
.breadcrumb span { color: var(--text-muted); }
.tool-page-header h1 { margin-bottom: 0.5rem; }
.tool-page-header p { margin: 0; font-size: 1.05rem; }

/* ── Tool UI ───────────────────────────────────────── */
.tool-ui { padding: 2rem 0; }
.tool-columns {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.5rem;
}
.tool-col label {
  display: flex; justify-content: space-between; align-items: center;
  font-size: 0.8rem; font-weight: 600; text-transform: uppercase;
  letter-spacing: 0.06em; color: var(--text-muted); margin-bottom: 0.5rem;
}
.char-count { font-weight: 400; text-transform: none; letter-spacing: 0; }
textarea {
  width: 100%; min-height: 240px; max-height: 600px;
  background: var(--bg-primary); color: var(--text-primary);
  border: 1.5px solid var(--border); border-radius: var(--radius-md);
  padding: 1.1rem; font-family: var(--font-mono); font-size: 0.85rem;
  line-height: 1.6; resize: vertical; outline: none;
  transition: border-color var(--transition), box-shadow var(--transition);
  box-shadow: var(--shadow-sm);
}
textarea:focus {
  border-color: var(--primary);
  box-shadow: 0 0 0 4px rgba(67,24,255,0.08);
}
textarea[readonly] { background: var(--bg-secondary); color: var(--text-secondary); cursor: default; }
.tool-actions {
  display: flex; gap: 0.75rem; margin-top: 0.75rem; flex-wrap: wrap;
}

/* ── Alerts ────────────────────────────────────────── */
.alert {
  padding: 0.9rem 1.2rem; border-radius: var(--radius-md);
  font-size: 0.875rem; margin: 1rem 0; display: flex; align-items: center; gap: 0.6rem;
}
.alert-error   { background: rgba(238,93,80,0.06);  border: 1px solid rgba(238,93,80,0.2);  color: var(--error); }
.alert-success { background: rgba(5,205,153,0.06); border: 1px solid rgba(5,205,153,0.2); color: var(--success); }
.alert-info    { background: rgba(67,24,255,0.05); border: 1px solid rgba(67,24,255,0.15); color: var(--primary); }

/* ── SEO Content / Article ─────────────────────────── */
.tool-content {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-xl);
  padding: 2.5rem;
  margin: 2rem 0 3rem;
  box-shadow: var(--shadow-card);
}
.content-section { margin-bottom: 2.5rem; }
.content-section:last-child { margin-bottom: 0; }
.content-section h2 {
  font-size: 1.35rem; margin-bottom: 1rem;
  padding-bottom: 0.5rem; border-bottom: 1px solid var(--border);
  color: var(--text-primary);
}
.content-section p { color: var(--text-secondary); line-height: 1.8; }
.content-section ol, .content-section ul {
  padding-left: 1.5rem; color: var(--text-secondary); line-height: 1.9;
}
.content-section ol { list-style: decimal; }
.content-section ul { list-style: disc; }
.content-section li { margin-bottom: 0.4rem; }
.content-section strong { color: var(--text-primary); }

/* Code Examples */
.code-example {
  background: #1B2559; border: 1px solid rgba(67,24,255,0.15);
  border-radius: var(--radius-md); overflow: hidden; margin: 1rem 0;
}
.code-example-label {
  padding: 0.5rem 1rem; background: rgba(67,24,255,0.15);
  font-size: 0.72rem; font-weight: 600; text-transform: uppercase;
  letter-spacing: 0.06em; color: rgba(255,255,255,0.8);
  border-bottom: 1px solid rgba(67,24,255,0.15);
}
.code-example pre {
  padding: 1.1rem; font-family: var(--font-mono); font-size: 0.82rem;
  color: #a5b4fc; line-height: 1.7; overflow-x: auto;
  white-space: pre-wrap; word-break: break-word;
}

/* ── Static Pages (About, Contact, Terms) ────────────── */
.page-hero {
  padding: 4rem 0 3rem;
  background: linear-gradient(180deg, var(--primary-bg) 0%, var(--bg-secondary) 100%);
  text-align: center;
  border-bottom: 1px solid var(--border);
  margin-bottom: 3rem;
}
.page-hero h1 { margin-bottom: 1rem; font-size: clamp(2.2rem, 5vw, 3rem); }
.page-hero p { font-size: 1.15rem; color: var(--text-secondary); max-width: 600px; margin: 0 auto; }
.breadcrumb {
  display: flex; align-items: center; justify-content: center; gap: 0.5rem;
  font-size: 0.85rem; color: var(--text-secondary); font-weight: 500;
  margin-bottom: 1.5rem;
}
.breadcrumb a { color: var(--primary); transition: color 0.2s; }
.breadcrumb a:hover { color: var(--primary-light); text-decoration: underline; }
.breadcrumb span { opacity: 0.5; }

.page-content {
  max-width: 800px; margin: 0 auto; padding: 0 1.5rem 5rem;
  background: var(--bg-primary);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--border);
  padding: 3rem;
}
.page-content h2 { margin: 2rem 0 1rem; font-size: 1.6rem; color: var(--text-primary); }
.page-content h2:first-child { margin-top: 0; }
.page-content p { font-size: 1.05rem; line-height: 1.7; margin-bottom: 1.2rem; }
.page-content ul { list-style: disc; margin-left: 1.5rem; margin-bottom: 1.5rem; }
.page-content li { margin-bottom: 0.5rem; color: var(--text-secondary); }
.page-content .alert { margin-bottom: 2rem; padding: 1rem; border-radius: var(--radius-md); font-weight: 500; }
.page-content .alert-success { background: #e6f6f4; color: #0d826a; border: 1px solid #c1ece4; }
.page-content .alert-error { background: #fdf2f2; color: #c81e1e; border: 1px solid #fbd5d5; }
.page-content form { margin-top: 2rem; }

/* ── Tools ─────────────────────────────────────────── */
.toast {
  position: fixed; bottom: 1.5rem; right: 1.5rem; z-index: 9999;
  background: var(--bg-card); border: 1.5px solid var(--border);
  border-radius: var(--radius-md); padding: 0.75rem 1.25rem;
  font-size: 0.875rem; font-weight: 500;
  box-shadow: var(--shadow-lg);
  opacity: 0; transform: translateY(8px);
  transition: opacity 0.25s ease, transform 0.25s ease;
}
.toast.toast-show  { opacity: 1; transform: translateY(0); }
.toast.toast-success { border-color: rgba(5,205,153,0.4); color: var(--success); }
.toast.toast-warning { border-color: rgba(255,181,71,0.4);  color: #E08B00; }

/* ── Blog Cards ────────────────────────────────────── */
.blog-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 1.5rem;
  padding-bottom: 4rem;
}
.blog-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  transition: transform var(--transition), border-color var(--transition), box-shadow var(--transition);
  display: flex; flex-direction: column;
  opacity: 1; transform: none;
  box-shadow: var(--shadow-card);
}
.blog-card.revealed { opacity: 1; transform: none; }
.blog-card:hover {
  border-color: var(--border-hover);
  box-shadow: 0 12px 40px rgba(67,24,255,0.08), 0 4px 20px rgba(27,37,89,0.06);
  transform: translateY(-4px);
}
.blog-card-img {
  width: 100%; height: 180px; object-fit: cover;
  background: linear-gradient(135deg, var(--bg-secondary), var(--bg-tertiary));
  display: flex; align-items: center; justify-content: center;
  font-size: 3rem;
}
.blog-card-body { padding: 1.5rem; flex: 1; display: flex; flex-direction: column; }
.blog-card-meta { font-size: 0.75rem; color: var(--text-muted); margin-bottom: 0.6rem; }
.blog-card-meta span { color: var(--primary); font-weight: 500; }
.blog-card h3 { font-size: 1.05rem; margin-bottom: 0.6rem; color: var(--text-primary); }
.blog-card p { font-size: 0.875rem; color: var(--text-secondary); margin: 0 0 1rem; flex: 1; }
.blog-card .read-more,
.read-more {
  font-size: 0.82rem; font-weight: 600; color: var(--primary);
  display: inline-flex; align-items: center; gap: 4px;
  transition: gap var(--transition);
}
.blog-card:hover .read-more { gap: 8px; }

/* Blog Article */
.article-meta { display: flex; gap: 1rem; align-items: center; flex-wrap: wrap; margin: 0.75rem 0 2rem; }
.article-meta span { font-size: 0.8rem; color: var(--text-muted); }
.article-meta span strong { color: var(--primary); }
.article-body h2 { font-size: 1.4rem; margin: 2.5rem 0 1rem; color: var(--text-primary); }
.article-body h3 { font-size: 1.1rem; margin: 1.5rem 0 0.6rem; color: var(--text-primary); }
.article-body p  { color: var(--text-secondary); line-height: 1.85; margin-bottom: 1.1rem; }
.article-body ul, .article-body ol { padding-left: 1.5rem; color: var(--text-secondary); line-height: 1.9; margin-bottom: 1rem; }
.article-body ul { list-style: disc; }
.article-body ol { list-style: decimal; }
.article-body li { margin-bottom: 0.4rem; }
.article-body strong { color: var(--text-primary); }
.article-body a:not(.btn) { color: var(--primary); text-decoration: underline; }
.article-body .code-example { margin: 1.5rem 0; }
.article-cta {
  margin: 3rem 0;
  background: linear-gradient(135deg, rgba(67,24,255,0.06), rgba(5,205,153,0.04));
  border: 1px solid rgba(67,24,255,0.12);
  border-radius: var(--radius-lg);
  padding: 2.25rem;
  text-align: center;
}
.article-cta h3 { color: var(--text-primary); margin-bottom: 0.5rem; }
.article-cta p  { margin-bottom: 1.25rem; }
.tag-list { display: flex; gap: 0.5rem; flex-wrap: wrap; margin-bottom: 0.75rem; }
.tag {
  padding: 0.2rem 0.75rem; border-radius: 99px;
  font-size: 0.72rem; font-weight: 600;
  background: var(--primary-bg); color: var(--primary);
  border: 1px solid rgba(67,24,255,0.1);
}

/* ── Static Pages ──────────────────────────────────── */
.page-hero {
  padding: 3.5rem 0 2.5rem;
  background: var(--bg-primary);
  border-bottom: 1px solid var(--border);
  position: relative;
}
.page-content {
  max-width: 820px; margin: 2.5rem auto; padding: 0 1.5rem 4rem;
}
.page-content h2 { font-size: 1.25rem; margin: 2rem 0 0.75rem; color: var(--text-primary); }
.page-content p,
.page-content li { color: var(--text-secondary); line-height: 1.85; }
.page-content ul,
.page-content ol { padding-left: 1.5rem; margin-bottom: 1rem; }
.page-content ul { list-style: disc; }
.page-content ol { list-style: decimal; }
.page-content a  { color: var(--primary); text-decoration: underline; }

/* Contact Form */
.contact-form { max-width: 620px; }
.form-group { margin-bottom: 1.25rem; }
.form-group label {
  display: block; font-size: 0.85rem; font-weight: 600;
  color: var(--text-secondary); margin-bottom: 0.4rem;
}
.form-group input,
.form-group textarea,
.form-group select {
  width: 100%; padding: 0.8rem 1rem;
  background: var(--bg-primary); color: var(--text-primary);
  border: 1.5px solid var(--border); border-radius: var(--radius-md);
  font-family: var(--font-sans); font-size: 0.9rem; outline: none;
  transition: border-color var(--transition), box-shadow var(--transition);
  box-shadow: var(--shadow-sm);
}
.form-group input:focus,
.form-group textarea:focus {
  border-color: var(--primary); box-shadow: 0 0 0 4px rgba(67,24,255,0.08);
}
.form-group textarea { min-height: 160px; resize: vertical; }

/* ── Footer ────────────────────────────────────────── */
.site-footer {
  background: #1B2559;
  border-top: none;
  padding: 4rem 0 2rem;
  position: relative; z-index: 1;
  color: #cbd5e1;
}
.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 2.5rem;
  margin-bottom: 3rem;
}
.footer-brand p { font-size: 0.875rem; color: rgba(255,255,255,0.5); margin-top: 0.75rem; line-height: 1.7; }
.site-footer .nav-logo { color: #fff; }
.site-footer .nav-logo .logo-icon {
  box-shadow: 0 4px 15px rgba(67,24,255,0.4);
}
.footer-col h4 {
  font-size: 0.8rem; font-weight: 700; text-transform: uppercase;
  letter-spacing: 0.08em; color: rgba(255,255,255,0.4); margin-bottom: 1.25rem;
}
.footer-col ul { display: flex; flex-direction: column; gap: 0.65rem; }
.footer-col a { font-size: 0.875rem; color: rgba(255,255,255,0.6); transition: color var(--transition); }
.footer-col a:hover { color: #fff; }
.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.08); padding-top: 1.5rem;
  display: flex; justify-content: space-between; align-items: center;
  flex-wrap: wrap; gap: 0.75rem;
}
.footer-bottom p { font-size: 0.8rem; color: rgba(255,255,255,0.35); margin: 0; }

/* ── Cookie Consent Banner ─────────────────────────── */
.cookie-banner {
  position: fixed; bottom: 0; left: 0; right: 0; z-index: 10000;
  background: rgba(255,255,255,0.97);
  backdrop-filter: blur(16px); -webkit-backdrop-filter: blur(16px);
  border-top: 1px solid var(--border);
  padding: 1.25rem 1.5rem;
  box-shadow: 0 -4px 30px rgba(27,37,89,0.08);
  transform: translateY(100%);
  transition: transform 0.4s ease;
}
.cookie-banner.cookie-visible { transform: translateY(0); }
.cookie-inner {
  max-width: var(--max-w); margin: 0 auto;
  display: flex; align-items: center; justify-content: space-between;
  gap: 1.5rem; flex-wrap: wrap;
}
.cookie-text { flex: 1; min-width: 280px; }
.cookie-text p {
  font-size: 0.85rem; color: var(--text-secondary);
  margin: 0; line-height: 1.6;
}
.cookie-text a { color: var(--primary); text-decoration: underline; }
.cookie-actions { display: flex; gap: 0.75rem; flex-shrink: 0; }

/* ── Responsive ────────────────────────────────────── */
@media (max-width: 900px) {
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .tool-columns { grid-template-columns: 1fr; }
}
@media (max-width: 680px) {
  .nav-menu {
    display: none; flex-direction: column; align-items: stretch; gap: 0;
    position: absolute; top: 70px; left: 0; right: 0;
    background: rgba(255,255,255,0.98);
    backdrop-filter: blur(20px); -webkit-backdrop-filter: blur(20px);
    border-bottom: 1px solid var(--border);
    padding: 1rem;
    box-shadow: var(--shadow-lg);
  }
  .nav-menu.nav-open { display: flex; }
  .nav-toggle { display: flex; }
  .dropdown-menu {
    position: static; transform: none; opacity: 1; visibility: visible;
    pointer-events: auto; border: none; background: transparent; box-shadow: none;
    padding: 0 0 0 1rem;
  }
  .nav-dropdown:hover .dropdown-menu { transform: none; }
  .footer-grid { grid-template-columns: 1fr; }
  .stats-strip { gap: 1.5rem; }
  .tool-content { padding: 1.5rem; }
  .cookie-inner { flex-direction: column; text-align: center; }
  .hero { padding: 3rem 0 2.5rem; }
}
