/*
Theme Name: SEO Forecasting Tool
Theme URI: https://seoforecastingtool.com
Author: SEO Forecasting Tool
Author URI: https://seoforecastingtool.com
Description: Premium precision-data theme for SEO Forecasting Tool — dark, technical, built for SEO professionals.
Version: 2.0
Requires at least: 6.0
Tested up to: 6.5
Requires PHP: 8.0
License: GPL v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: seo-forecast
Tags: dark, custom-menu, featured-images, full-width-template, threaded-comments, translation-ready
*/

/* =====================================================
   CSS CUSTOM PROPERTIES
   ===================================================== */
:root {
  --bg-primary:     #080d1a;
  --bg-secondary:   #0f1628;
  --bg-card:        #131d35;
  --bg-card-hover:  #192342;
  --bg-input:       #0e1829;
  --border:         rgba(0, 212, 170, 0.15);
  --border-subtle:  rgba(255,255,255,0.06);
  --accent:         #00d4aa;
  --accent-dark:    #00a882;
  --accent-glow:    rgba(0,212,170,0.15);
  --accent-blue:    #3b82f6;
  --accent-orange:  #f59e0b;
  --accent-purple:  #8b5cf6;
  --text-primary:   #eef2ff;
  --text-secondary: #94a3b8;
  --text-muted:     #4b5680;
  --font-mono:      'IBM Plex Mono', monospace;
  --font-sans:      'DM Sans', sans-serif;
  --radius:         10px;
  --radius-lg:      16px;
  --shadow:         0 4px 24px rgba(0,0,0,0.4);
  --shadow-lg:      0 12px 48px rgba(0,0,0,0.5);
  --transition:     0.22s cubic-bezier(0.4,0,0.2,1);
  --max-width:      1200px;
  --grid-line:      rgba(0, 212, 170, 0.04);
}

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

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

body {
  background-color: var(--bg-primary);
  color: var(--text-primary);
  font-family: var(--font-sans);
  font-size: 1rem;
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

/* Grid texture on body */
body::before {
  content: '';
  position: fixed;
  inset: 0;
  background-image:
    linear-gradient(var(--grid-line) 1px, transparent 1px),
    linear-gradient(90deg, var(--grid-line) 1px, transparent 1px);
  background-size: 48px 48px;
  pointer-events: none;
  z-index: 0;
}

a { color: var(--accent); text-decoration: none; transition: color var(--transition); }
a:hover { color: #fff; }
img { max-width: 100%; height: auto; display: block; }

h1,h2,h3,h4,h5,h6 {
  font-family: var(--font-mono);
  font-weight: 600;
  line-height: 1.2;
  letter-spacing: -0.02em;
  color: var(--text-primary);
}

h1 { font-size: clamp(2rem, 5vw, 3.5rem); }
h2 { font-size: clamp(1.5rem, 3.5vw, 2.5rem); }
h3 { font-size: clamp(1.1rem, 2vw, 1.5rem); }
h4 { font-size: 1.1rem; }

p { color: var(--text-secondary); margin-bottom: 1rem; }
p:last-child { margin-bottom: 0; }

ul, ol { padding-left: 1.5rem; }
li { color: var(--text-secondary); margin-bottom: 0.3rem; }

code, pre {
  font-family: var(--font-mono);
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: 4px;
}
code { padding: 2px 6px; font-size: 0.85em; }
pre { padding: 1.5rem; overflow-x: auto; }

blockquote {
  border-left: 3px solid var(--accent);
  padding-left: 1.5rem;
  margin: 1.5rem 0;
  font-style: italic;
  color: var(--text-secondary);
}

hr {
  border: none;
  border-top: 1px solid var(--border-subtle);
  margin: 3rem 0;
}

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

.section { padding: 6rem 0; }
.section--sm { padding: 4rem 0; }
.section--lg { padding: 8rem 0; }

/* =====================================================
   BUTTONS
   ===================================================== */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.75rem 1.75rem;
  border-radius: 8px;
  font-family: var(--font-mono);
  font-size: 0.875rem;
  font-weight: 600;
  letter-spacing: 0.02em;
  border: none;
  cursor: pointer;
  transition: all var(--transition);
  position: relative;
  overflow: hidden;
  text-decoration: none;
}

.btn::before {
  content: '';
  position: absolute;
  inset: 0;
  background: rgba(255,255,255,0.1);
  opacity: 0;
  transition: opacity var(--transition);
}
.btn:hover::before { opacity: 1; }

.btn-primary {
  background: var(--accent);
  color: #000;
  box-shadow: 0 0 24px var(--accent-glow);
}
.btn-primary:hover {
  background: #00f0c0;
  color: #000;
  box-shadow: 0 0 36px rgba(0,212,170,0.4);
  transform: translateY(-1px);
}

.btn-outline {
  background: transparent;
  color: var(--text-primary);
  border: 1px solid var(--border);
}
.btn-outline:hover {
  border-color: var(--accent);
  color: var(--accent);
  transform: translateY(-1px);
}

.btn-ghost {
  background: transparent;
  color: var(--text-secondary);
  padding: 0.5rem 1rem;
}
.btn-ghost:hover { color: var(--accent); }

.btn-lg { padding: 1rem 2.5rem; font-size: 1rem; }
.btn-sm { padding: 0.5rem 1.25rem; font-size: 0.8rem; }

/* =====================================================
   BADGES
   ===================================================== */
.badge {
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
  padding: 0.25rem 0.75rem;
  border-radius: 100px;
  font-family: var(--font-mono);
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}
.badge-teal { background: rgba(0,212,170,0.12); color: var(--accent); border: 1px solid rgba(0,212,170,0.25); }
.badge-blue { background: rgba(59,130,246,0.12); color: var(--accent-blue); border: 1px solid rgba(59,130,246,0.25); }
.badge-v1 { background: rgba(0,212,170,0.1); color: var(--accent); border: 1px solid rgba(0,212,170,0.2); font-size: 0.65rem; padding: 0.15rem 0.5rem; }
.badge-v2 { background: rgba(139,92,246,0.1); color: var(--accent-purple); border: 1px solid rgba(139,92,246,0.2); font-size: 0.65rem; padding: 0.15rem 0.5rem; }

/* =====================================================
   HEADER / NAVIGATION
   ===================================================== */
#site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  transition: all var(--transition);
}

#site-header.scrolled {
  background: rgba(8, 13, 26, 0.95);
  backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--border-subtle);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 70px;
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 1.5rem;
}

.site-logo {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  font-family: var(--font-mono);
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--text-primary);
  text-decoration: none;
}

.site-logo:hover { color: var(--accent); }

.logo-icon {
  width: 36px;
  height: 36px;
  background: var(--accent);
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.1rem;
  box-shadow: 0 0 16px var(--accent-glow);
  flex-shrink: 0;
}

.primary-nav {
  display: flex;
  align-items: center;
  gap: 0.25rem;
  list-style: none;
  padding: 0;
  margin: 0;
}

.primary-nav li a {
  font-family: var(--font-mono);
  font-size: 0.82rem;
  font-weight: 500;
  color: var(--text-secondary);
  padding: 0.5rem 0.875rem;
  border-radius: 6px;
  transition: all var(--transition);
  letter-spacing: 0.02em;
}

.primary-nav li a:hover,
.primary-nav li.current-menu-item a {
  color: var(--text-primary);
  background: var(--bg-card);
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.mobile-menu-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 8px;
}

.mobile-menu-toggle span {
  display: block;
  width: 22px;
  height: 2px;
  background: var(--text-primary);
  border-radius: 2px;
  transition: all var(--transition);
}

/* =====================================================
   HERO SECTION
   ===================================================== */
.hero {
  min-height: 100vh;
  display: flex;
  align-items: center;
  position: relative;
  overflow: hidden;
  padding-top: 70px;
}

.hero-bg {
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse 80% 60% at 50% 30%, rgba(0,212,170,0.07) 0%, transparent 60%),
              radial-gradient(ellipse 40% 40% at 80% 70%, rgba(59,130,246,0.05) 0%, transparent 50%);
}

.hero-content {
  position: relative;
  z-index: 2;
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 4rem 1.5rem;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: center;
}

.hero-text { max-width: 580px; }

.hero-label {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-family: var(--font-mono);
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--accent);
  letter-spacing: 0.1em;
  text-transform: uppercase;
  margin-bottom: 1.5rem;
}

.hero-label::before {
  content: '';
  display: inline-block;
  width: 6px;
  height: 6px;
  background: var(--accent);
  border-radius: 50%;
  animation: pulse-dot 2s ease-in-out infinite;
}

@keyframes pulse-dot {
  0%,100% { box-shadow: 0 0 0 0 var(--accent-glow); }
  50% { box-shadow: 0 0 0 6px transparent; }
}

.hero h1 {
  margin-bottom: 1.5rem;
  font-size: clamp(2.2rem, 5vw, 3.8rem);
}

.hero h1 em {
  font-style: normal;
  color: var(--accent);
  position: relative;
}

.hero-desc {
  font-size: 1.125rem;
  line-height: 1.8;
  color: var(--text-secondary);
  margin-bottom: 2.5rem;
  max-width: 480px;
}

.hero-trust {
  display: flex;
  flex-wrap: wrap;
  gap: 1.5rem;
  margin-top: 2rem;
}

.trust-item {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-family: var(--font-mono);
  font-size: 0.75rem;
  color: var(--text-muted);
}

.trust-item span.check {
  color: var(--accent);
  font-size: 0.85rem;
}

.hero-actions {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
  align-items: center;
}

/* Hero Dashboard Preview */
.hero-visual {
  position: relative;
}

.hero-dashboard {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 1.5rem;
  box-shadow: var(--shadow-lg), 0 0 60px rgba(0,212,170,0.06);
  animation: float 6s ease-in-out infinite;
}

@keyframes float {
  0%,100% { transform: translateY(0); }
  50% { transform: translateY(-8px); }
}

.dash-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 1.5rem;
  padding-bottom: 1rem;
  border-bottom: 1px solid var(--border-subtle);
}

.dash-title {
  font-family: var(--font-mono);
  font-size: 0.8rem;
  color: var(--text-muted);
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.dash-dots { display: flex; gap: 5px; }
.dash-dots span {
  width: 8px; height: 8px;
  border-radius: 50%;
}
.dash-dots span:nth-child(1) { background: #ff5f57; }
.dash-dots span:nth-child(2) { background: #ffbd2e; }
.dash-dots span:nth-child(3) { background: #28ca41; }

.dash-metrics {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
  margin-bottom: 1.5rem;
}

.metric-card {
  background: var(--bg-secondary);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius);
  padding: 1rem 1.25rem;
}

.metric-label {
  font-family: var(--font-mono);
  font-size: 0.65rem;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-bottom: 0.4rem;
}

.metric-value {
  font-family: var(--font-mono);
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--text-primary);
}

.metric-value.teal { color: var(--accent); }
.metric-value.blue { color: var(--accent-blue); }

.metric-sub {
  font-family: var(--font-mono);
  font-size: 0.65rem;
  color: var(--accent);
  margin-top: 0.2rem;
}

.dash-bar-chart { margin-bottom: 1.25rem; }

.bar-label {
  display: flex;
  justify-content: space-between;
  font-family: var(--font-mono);
  font-size: 0.65rem;
  color: var(--text-muted);
  margin-bottom: 0.4rem;
}

.bar-track {
  background: var(--bg-secondary);
  border-radius: 3px;
  height: 6px;
  overflow: hidden;
  margin-bottom: 0.6rem;
}

.bar-fill {
  height: 100%;
  border-radius: 3px;
  background: var(--accent);
  animation: grow-bar 1.5s ease-out forwards;
  transform-origin: left;
}

@keyframes grow-bar {
  from { transform: scaleX(0); }
  to { transform: scaleX(1); }
}

.bar-fill.blue { background: var(--accent-blue); }
.bar-fill.orange { background: var(--accent-orange); }

.dash-tag {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  background: rgba(0,212,170,0.08);
  border: 1px solid rgba(0,212,170,0.2);
  border-radius: 100px;
  padding: 0.3rem 0.8rem;
  font-family: var(--font-mono);
  font-size: 0.7rem;
  color: var(--accent);
}

/* =====================================================
   STATS BAR
   ===================================================== */
.stats-bar {
  background: var(--bg-secondary);
  border-top: 1px solid var(--border-subtle);
  border-bottom: 1px solid var(--border-subtle);
  padding: 1.5rem 0;
  position: relative;
  z-index: 1;
}

.stats-inner {
  display: flex;
  justify-content: center;
  gap: 4rem;
  flex-wrap: wrap;
}

.stat-item {
  text-align: center;
}

.stat-number {
  font-family: var(--font-mono);
  font-size: 1.75rem;
  font-weight: 700;
  color: var(--accent);
  display: block;
  line-height: 1;
}

.stat-label {
  font-size: 0.8rem;
  color: var(--text-muted);
  margin-top: 0.3rem;
  display: block;
}

/* =====================================================
   TOOLS GRID
   ===================================================== */
.tools-section { padding: 6rem 0; }

.section-header {
  text-align: center;
  margin-bottom: 3.5rem;
}

.section-header .overline {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 0.75rem;
  display: block;
}

.section-header h2 { margin-bottom: 0.75rem; }

.section-header p {
  max-width: 540px;
  margin: 0 auto;
  font-size: 1.05rem;
}

.tools-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.25rem;
}

.tool-card {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  padding: 1.75rem;
  transition: all var(--transition);
  position: relative;
  overflow: hidden;
  cursor: pointer;
  display: flex;
  flex-direction: column;
  text-decoration: none;
}

.tool-card::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 2px;
  background: linear-gradient(90deg, var(--accent), transparent);
  opacity: 0;
  transition: opacity var(--transition);
}

.tool-card:hover {
  background: var(--bg-card-hover);
  border-color: var(--border);
  transform: translateY(-3px);
  box-shadow: 0 12px 40px rgba(0,0,0,0.4), 0 0 20px var(--accent-glow);
}

.tool-card:hover::before { opacity: 1; }

.tool-card-top {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  margin-bottom: 1rem;
}

.tool-emoji {
  font-size: 1.75rem;
  line-height: 1;
}

.tool-card h3 {
  font-size: 1rem;
  font-weight: 600;
  color: var(--text-primary);
  margin: 0.75rem 0 0.5rem;
  line-height: 1.3;
}

.tool-card p {
  font-size: 0.875rem;
  color: var(--text-secondary);
  flex-grow: 1;
  margin-bottom: 1.25rem;
}

.tool-card-link {
  font-family: var(--font-mono);
  font-size: 0.78rem;
  color: var(--accent);
  display: flex;
  align-items: center;
  gap: 0.3rem;
  transition: gap var(--transition);
}

.tool-card:hover .tool-card-link { gap: 0.5rem; }

/* =====================================================
   FEATURES / WHY SECTION
   ===================================================== */
.features-section {
  padding: 6rem 0;
  background: var(--bg-secondary);
  position: relative;
}

.features-section::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 1px;
  background: var(--border-subtle);
}

.features-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 2rem;
  margin-top: 3rem;
}

.feature-card {
  padding: 1.75rem;
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  transition: all var(--transition);
}

.feature-card:hover {
  border-color: var(--border);
  transform: translateY(-2px);
}

.feature-icon {
  font-size: 1.75rem;
  margin-bottom: 1rem;
  display: block;
}

.feature-card h3 {
  font-size: 0.95rem;
  margin-bottom: 0.5rem;
}

.feature-card p {
  font-size: 0.85rem;
  color: var(--text-muted);
}

/* =====================================================
   SOCIAL PROOF / TESTIMONIALS
   ===================================================== */
.testimonials-section { padding: 6rem 0; }

.testimonials-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
  margin-top: 3rem;
}

.testimonial-card {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  padding: 2rem;
  transition: all var(--transition);
}

.testimonial-card:hover {
  border-color: var(--border);
  transform: translateY(-2px);
}

.stars {
  color: var(--accent-orange);
  font-size: 0.9rem;
  margin-bottom: 1rem;
  letter-spacing: 2px;
}

.testimonial-card blockquote {
  border: none;
  padding: 0;
  margin: 0 0 1.5rem;
  font-style: normal;
  font-size: 0.95rem;
  line-height: 1.7;
  color: var(--text-secondary);
}

.testimonial-author {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.author-avatar {
  width: 40px; height: 40px;
  border-radius: 50%;
  background: var(--bg-secondary);
  border: 2px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-mono);
  font-size: 0.8rem;
  font-weight: 700;
  color: var(--accent);
  flex-shrink: 0;
}

.author-info strong {
  display: block;
  font-family: var(--font-mono);
  font-size: 0.82rem;
  color: var(--text-primary);
  font-weight: 600;
}

.author-info span {
  font-size: 0.78rem;
  color: var(--text-muted);
}

/* =====================================================
   BLOG PREVIEW
   ===================================================== */
.blog-preview-section { padding: 6rem 0; }

.blog-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
  margin-top: 3rem;
}

.blog-card {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  overflow: hidden;
  transition: all var(--transition);
  display: flex;
  flex-direction: column;
  text-decoration: none;
}

.blog-card:hover {
  border-color: var(--border);
  transform: translateY(-3px);
  box-shadow: var(--shadow);
}

.blog-card-image {
  aspect-ratio: 16/9;
  background: var(--bg-secondary);
  overflow: hidden;
  position: relative;
}

.blog-card-image img { width: 100%; height: 100%; object-fit: cover; }

.blog-card-image-placeholder {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2.5rem;
  background: linear-gradient(135deg, var(--bg-secondary), var(--bg-card));
}

.blog-card-body {
  padding: 1.5rem;
  flex-grow: 1;
  display: flex;
  flex-direction: column;
}

.blog-meta {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin-bottom: 0.75rem;
  font-family: var(--font-mono);
  font-size: 0.7rem;
  color: var(--text-muted);
}

.blog-cat {
  color: var(--accent);
  font-weight: 600;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.blog-card h3 {
  font-size: 1rem;
  margin-bottom: 0.75rem;
  color: var(--text-primary);
  line-height: 1.4;
  flex-grow: 1;
}

.blog-card-link {
  font-family: var(--font-mono);
  font-size: 0.78rem;
  color: var(--accent);
  display: flex;
  align-items: center;
  gap: 0.3rem;
  margin-top: auto;
  padding-top: 1rem;
}

/* =====================================================
   EMAIL CAPTURE
   ===================================================== */
.email-capture-section {
  padding: 5rem 0;
  background: var(--bg-secondary);
  position: relative;
  overflow: hidden;
}

.email-capture-section::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse 60% 80% at 50% 50%, rgba(0,212,170,0.05) 0%, transparent 70%);
  pointer-events: none;
}

.email-capture-inner {
  text-align: center;
  max-width: 560px;
  margin: 0 auto;
  position: relative;
  z-index: 1;
}

.email-capture-inner h2 { margin-bottom: 0.75rem; }
.email-capture-inner p { margin-bottom: 2rem; }

.email-form {
  display: flex;
  gap: 0.75rem;
  max-width: 440px;
  margin: 0 auto;
}

.email-input {
  flex: 1;
  background: var(--bg-input);
  border: 1px solid var(--border-subtle);
  border-radius: 8px;
  padding: 0.75rem 1rem;
  color: var(--text-primary);
  font-family: var(--font-sans);
  font-size: 0.9rem;
  transition: border-color var(--transition);
  outline: none;
}

.email-input:focus {
  border-color: var(--accent);
  box-shadow: 0 0 0 3px var(--accent-glow);
}

.email-input::placeholder { color: var(--text-muted); }

.email-note {
  font-size: 0.78rem;
  color: var(--text-muted);
  margin-top: 0.75rem;
  display: block;
}

/* =====================================================
   CTA SECTION
   ===================================================== */
.cta-section {
  padding: 7rem 0;
  position: relative;
  overflow: hidden;
  text-align: center;
}

.cta-section::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse 70% 70% at 50% 50%, rgba(0,212,170,0.06) 0%, transparent 60%);
  pointer-events: none;
}

.cta-section h2 { margin-bottom: 1rem; }
.cta-section p { margin-bottom: 2.5rem; font-size: 1.1rem; }

.cta-actions {
  display: flex;
  gap: 1rem;
  justify-content: center;
  flex-wrap: wrap;
}

/* =====================================================
   FOOTER
   ===================================================== */
#site-footer {
  background: var(--bg-secondary);
  border-top: 1px solid var(--border-subtle);
  padding: 4rem 0 2rem;
  position: relative;
  z-index: 1;
}

.footer-top {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 3rem;
  margin-bottom: 3rem;
  padding-bottom: 3rem;
  border-bottom: 1px solid var(--border-subtle);
}

.footer-brand p {
  font-size: 0.875rem;
  margin-top: 1rem;
  margin-bottom: 1.5rem;
  max-width: 300px;
}

.footer-col h4 {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--text-muted);
  margin-bottom: 1.25rem;
}

.footer-col ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

.footer-col ul li {
  margin-bottom: 0.65rem;
}

.footer-col ul li a {
  font-size: 0.875rem;
  color: var(--text-secondary);
  transition: color var(--transition);
}

.footer-col ul li a:hover { color: var(--accent); }

.footer-bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 1rem;
}

.footer-copy {
  font-family: var(--font-mono);
  font-size: 0.78rem;
  color: var(--text-muted);
}

.footer-links {
  display: flex;
  gap: 1.5rem;
  list-style: none;
  padding: 0;
  margin: 0;
}

.footer-links a {
  font-family: var(--font-mono);
  font-size: 0.78rem;
  color: var(--text-muted);
}
.footer-links a:hover { color: var(--accent); }

/* =====================================================
   PRICING PAGE
   ===================================================== */
.pricing-hero {
  padding: 8rem 0 4rem;
  text-align: center;
}

.pricing-hero h1 { margin-bottom: 1rem; }
.pricing-hero p { font-size: 1.1rem; }

.pricing-toggle {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1rem;
  margin: 2.5rem 0;
  font-family: var(--font-mono);
  font-size: 0.85rem;
}

.toggle-track {
  width: 48px; height: 26px;
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: 100px;
  position: relative;
  cursor: pointer;
  transition: background var(--transition);
}

.toggle-track.active { background: var(--accent); }

.toggle-thumb {
  position: absolute;
  top: 3px; left: 3px;
  width: 18px; height: 18px;
  background: #fff;
  border-radius: 50%;
  transition: left var(--transition);
}

.toggle-track.active .toggle-thumb { left: 25px; }

.pricing-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
  margin: 3rem 0;
  align-items: start;
}

.pricing-card {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  padding: 2.5rem 2rem;
  transition: all var(--transition);
  position: relative;
}

.pricing-card.featured {
  border-color: var(--accent);
  background: var(--bg-card-hover);
  box-shadow: 0 0 40px var(--accent-glow);
}

.pricing-card.featured::before {
  content: 'Most Popular';
  position: absolute;
  top: -1px; left: 50%;
  transform: translateX(-50%);
  background: var(--accent);
  color: #000;
  font-family: var(--font-mono);
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  padding: 0.3rem 1rem;
  border-radius: 0 0 8px 8px;
}

.plan-name {
  font-family: var(--font-mono);
  font-size: 0.8rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--text-muted);
  margin-bottom: 0.75rem;
  display: block;
}

.plan-price {
  margin-bottom: 0.5rem;
}

.plan-price .amount {
  font-family: var(--font-mono);
  font-size: 3rem;
  font-weight: 700;
  color: var(--text-primary);
  line-height: 1;
}

.plan-price .currency {
  font-family: var(--font-mono);
  font-size: 1.25rem;
  color: var(--text-secondary);
  vertical-align: super;
}

.plan-price .period {
  font-family: var(--font-mono);
  font-size: 0.8rem;
  color: var(--text-muted);
}

.plan-desc {
  font-size: 0.875rem;
  margin-bottom: 2rem;
  padding-bottom: 2rem;
  border-bottom: 1px solid var(--border-subtle);
}

.plan-features {
  list-style: none;
  padding: 0;
  margin: 0 0 2rem;
}

.plan-features li {
  display: flex;
  align-items: flex-start;
  gap: 0.6rem;
  font-size: 0.875rem;
  color: var(--text-secondary);
  margin-bottom: 0.85rem;
  padding: 0;
}

.plan-features li::before {
  content: '✓';
  color: var(--accent);
  font-weight: 700;
  flex-shrink: 0;
  font-family: var(--font-mono);
  font-size: 0.8rem;
  margin-top: 1px;
}

.plan-features li.disabled {
  color: var(--text-muted);
}

.plan-features li.disabled::before {
  content: '✕';
  color: var(--text-muted);
}

.pricing-faq {
  max-width: 700px;
  margin: 4rem auto 0;
}

.pricing-faq h2 {
  text-align: center;
  margin-bottom: 2rem;
}

.faq-item {
  border-bottom: 1px solid var(--border-subtle);
}

.faq-question {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1.25rem 0;
  cursor: pointer;
  font-family: var(--font-mono);
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--text-primary);
  transition: color var(--transition);
}

.faq-question:hover { color: var(--accent); }

.faq-chevron {
  font-size: 0.8rem;
  color: var(--text-muted);
  transition: transform var(--transition);
  flex-shrink: 0;
}

.faq-item.open .faq-chevron { transform: rotate(180deg); }

.faq-answer {
  display: none;
  padding-bottom: 1.25rem;
  font-size: 0.9rem;
  line-height: 1.7;
}

.faq-item.open .faq-answer { display: block; }

/* =====================================================
   TOOL PAGE TEMPLATE
   ===================================================== */
.tool-page-hero {
  padding: 9rem 0 4rem;
  position: relative;
}

.tool-page-hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse 60% 80% at 30% 50%, rgba(0,212,170,0.05) 0%, transparent 60%);
  pointer-events: none;
}

.tool-breadcrumb {
  font-family: var(--font-mono);
  font-size: 0.78rem;
  color: var(--text-muted);
  margin-bottom: 1.5rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  position: relative;
  z-index: 1;
}

.tool-breadcrumb a { color: var(--text-muted); }
.tool-breadcrumb a:hover { color: var(--accent); }
.tool-breadcrumb span { color: var(--text-muted); }

.tool-page-hero h1 {
  position: relative;
  z-index: 1;
  margin-bottom: 1rem;
}

.tool-page-hero .hero-desc {
  position: relative;
  z-index: 1;
  max-width: 560px;
  margin-bottom: 0;
}

.tool-layout {
  display: grid;
  grid-template-columns: 1fr 300px;
  gap: 2.5rem;
  padding: 3rem 0 5rem;
  align-items: start;
}

.tool-main > .tool-widget-wrapper {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow);
  margin-bottom: 2.5rem;
}

.tool-section {
  margin-bottom: 2.5rem;
}

.tool-section h2 {
  font-size: 1.3rem;
  margin-bottom: 1rem;
  padding-bottom: 0.75rem;
  border-bottom: 1px solid var(--border-subtle);
}

.tool-section h3 {
  font-size: 1rem;
  margin: 1.5rem 0 0.5rem;
}

.tool-section p, .tool-section li {
  font-size: 0.9rem;
  color: var(--text-secondary);
}

.how-to-steps {
  counter-reset: steps;
  list-style: none;
  padding: 0;
  margin: 0;
}

.how-to-steps li {
  counter-increment: steps;
  position: relative;
  padding: 1.25rem 1.25rem 1.25rem 3.5rem;
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius);
  margin-bottom: 0.75rem;
}

.how-to-steps li::before {
  content: counter(steps);
  position: absolute;
  left: 1.25rem;
  top: 50%;
  transform: translateY(-50%);
  width: 24px; height: 24px;
  background: var(--accent);
  color: #000;
  border-radius: 50%;
  font-family: var(--font-mono);
  font-size: 0.72rem;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* Tool sidebar */
.tool-sidebar {
  position: sticky;
  top: 90px;
}

.sidebar-card {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  padding: 1.5rem;
  margin-bottom: 1.5rem;
}

.sidebar-card h4 {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--text-muted);
  margin-bottom: 1rem;
}

.other-tools-list {
  list-style: none;
  padding: 0;
  margin: 0;
}

.other-tools-list li {
  margin-bottom: 0;
}

.other-tools-list a {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.6rem 0.75rem;
  border-radius: 6px;
  font-size: 0.84rem;
  color: var(--text-secondary);
  transition: all var(--transition);
  border: 1px solid transparent;
}

.other-tools-list a:hover {
  background: var(--bg-card-hover);
  border-color: var(--border-subtle);
  color: var(--text-primary);
}

.sidebar-upgrade {
  background: linear-gradient(135deg, rgba(0,212,170,0.1), rgba(59,130,246,0.08));
  border-color: var(--border);
  text-align: center;
}

.sidebar-upgrade .sidebar-icon { font-size: 2rem; margin-bottom: 0.75rem; display: block; }
.sidebar-upgrade h4 { color: var(--text-primary); font-size: 0.9rem; letter-spacing: 0; text-transform: none; margin-bottom: 0.5rem; }
.sidebar-upgrade p { font-size: 0.8rem; margin-bottom: 1.25rem; }
.sidebar-upgrade .btn { width: 100%; justify-content: center; }

/* =====================================================
   BLOG TEMPLATES
   ===================================================== */
.blog-header {
  padding: 9rem 0 4rem;
  text-align: center;
}

.blog-index-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.5rem;
  padding-bottom: 5rem;
}

.blog-index-grid .blog-card:first-child {
  grid-column: 1 / -1;
}

.single-post {
  padding: 9rem 0 6rem;
}

.single-post-inner {
  display: grid;
  grid-template-columns: 1fr 280px;
  gap: 3rem;
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 1.5rem;
}

.post-header { margin-bottom: 2.5rem; }

.post-meta {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin-bottom: 1.5rem;
  font-family: var(--font-mono);
  font-size: 0.78rem;
  color: var(--text-muted);
}

.post-content h2,
.post-content h3 {
  margin: 2rem 0 0.75rem;
}

.post-content p {
  margin-bottom: 1.25rem;
  color: var(--text-secondary);
  line-height: 1.8;
}

.post-content ul,
.post-content ol {
  margin-bottom: 1.25rem;
}

.post-content img {
  border-radius: var(--radius);
  margin: 1.5rem 0;
}

/* =====================================================
   PAGE: ABOUT / GENERIC
   ===================================================== */
.page-hero {
  padding: 9rem 0 4rem;
  position: relative;
}

.page-content {
  padding: 3rem 0 6rem;
  max-width: 760px;
  margin: 0 auto;
}

/* =====================================================
   RESPONSIVE
   ===================================================== */
@media (max-width: 1024px) {
  .hero-content { grid-template-columns: 1fr; gap: 3rem; }
  .hero-visual { display: none; }
  .tools-grid { grid-template-columns: repeat(2, 1fr); }
  .features-grid { grid-template-columns: repeat(2, 1fr); }
  .pricing-grid { grid-template-columns: 1fr; max-width: 420px; margin-left: auto; margin-right: auto; }
  .footer-top { grid-template-columns: 1fr 1fr; gap: 2rem; }
  .tool-layout { grid-template-columns: 1fr; }
  .tool-sidebar { position: static; }
  .testimonials-grid { grid-template-columns: 1fr; }
  .blog-grid { grid-template-columns: repeat(2, 1fr); }
  .blog-index-grid { grid-template-columns: 1fr; }
  .blog-index-grid .blog-card:first-child { grid-column: 1; }
}

@media (max-width: 768px) {
  .primary-nav { display: none; }
  .primary-nav.open {
    display: flex;
    flex-direction: column;
    position: fixed;
    top: 70px; left: 0; right: 0;
    background: var(--bg-secondary);
    border-bottom: 1px solid var(--border-subtle);
    padding: 1rem;
    z-index: 999;
  }
  .mobile-menu-toggle { display: flex; }
  .header-actions .btn { display: none; }
  .header-actions .btn:last-child { display: flex; }
  .tools-grid { grid-template-columns: 1fr; }
  .features-grid { grid-template-columns: 1fr; }
  .stats-inner { gap: 2rem; }
  .email-form { flex-direction: column; }
  .testimonials-grid { grid-template-columns: 1fr; }
  .blog-grid { grid-template-columns: 1fr; }
  .footer-top { grid-template-columns: 1fr; }
  .single-post-inner { grid-template-columns: 1fr; }
  h1 { font-size: 1.8rem; }
  h2 { font-size: 1.4rem; }
}

/* =====================================================
   NAV DROPDOWN
   ===================================================== */
.primary-nav li { position: relative; }

.nav-dropdown {
  display: none;
  position: absolute;
  top: calc(100% + 8px);
  left: 0;
  min-width: 200px;
  background: var(--bg-secondary);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius);
  padding: 0.5rem;
  box-shadow: var(--shadow-lg);
  z-index: 100;
  list-style: none;
}

.primary-nav li:hover .nav-dropdown { display: block; }

.nav-dropdown li a {
  display: block;
  padding: 0.6rem 0.875rem;
  border-radius: 6px;
  font-size: 0.82rem;
  color: var(--text-secondary);
  transition: all var(--transition);
}

.nav-dropdown li a:hover {
  background: var(--bg-card);
  color: var(--text-primary);
}

.nav-arrow {
  font-size: 0.6rem;
  opacity: 0.6;
  transition: transform var(--transition);
}
.primary-nav li:hover .nav-arrow { transform: rotate(180deg); }

/* =====================================================
   SEARCH FORM
   ===================================================== */
.search-form { display: flex; gap: 0.5rem; }
.search-form input[type="search"] {
  background: var(--bg-input);
  border: 1px solid var(--border-subtle);
  border-radius: 8px;
  padding: 0.65rem 1rem;
  color: var(--text-primary);
  font-family: var(--font-sans);
  font-size: 0.9rem;
  outline: none;
  flex: 1;
  transition: border-color var(--transition);
}
.search-form input:focus { border-color: var(--accent); }
.search-form button[type="submit"] { flex-shrink: 0; }

/* =====================================================
   COMMENT FORM OVERRIDES
   ===================================================== */
#respond {
  margin-top: 2.5rem;
  padding: 2rem;
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
}
.comment-form input,
.comment-form textarea {
  background: var(--bg-input) !important;
  border: 1px solid var(--border-subtle) !important;
  border-radius: 8px !important;
  color: var(--text-primary) !important;
  font-family: var(--font-sans) !important;
}
.comment-form input:focus,
.comment-form textarea:focus {
  border-color: var(--accent) !important;
  box-shadow: 0 0 0 3px var(--accent-glow) !important;
  outline: none !important;
}
.comment-notes { font-size: 0.85rem; color: var(--text-muted); }
.form-submit { margin: 0; }

/* =====================================================
   PAGINATION
   ===================================================== */
.page-numbers {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 38px;
  height: 38px;
  padding: 0 0.75rem;
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: 6px;
  font-family: var(--font-mono);
  font-size: 0.82rem;
  color: var(--text-secondary);
  margin: 0 3px;
  text-decoration: none;
  transition: all var(--transition);
}
.page-numbers:hover,
.page-numbers.current {
  background: var(--accent);
  color: #000;
  border-color: var(--accent);
}
.page-numbers.dots { background: transparent; border-color: transparent; }

/* =====================================================
   WP CONTENT (BLOCK EDITOR / GUTENBERG RESET)
   ===================================================== */
.post-content .wp-block-image { margin: 2rem 0; }
.post-content .wp-block-image img { border-radius: var(--radius); }
.post-content .wp-block-quote {
  border-left: 3px solid var(--accent);
  padding: 1rem 1.5rem;
  margin: 1.5rem 0;
  background: var(--bg-card);
  border-radius: 0 var(--radius) var(--radius) 0;
}
.post-content .wp-block-code { font-family: var(--font-mono); }
.post-content .wp-block-table table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.875rem;
}
.post-content .wp-block-table th {
  background: var(--bg-card);
  color: var(--text-primary);
  font-family: var(--font-mono);
  font-size: 0.75rem;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  padding: 0.75rem 1rem;
  border-bottom: 1px solid var(--border);
  text-align: left;
}
.post-content .wp-block-table td {
  padding: 0.75rem 1rem;
  border-bottom: 1px solid var(--border-subtle);
  color: var(--text-secondary);
}
.post-content .wp-block-table tr:last-child td { border-bottom: none; }
.post-content .wp-block-separator {
  border: none;
  border-top: 1px solid var(--border-subtle);
  margin: 2.5rem 0;
}
.post-content figure figcaption {
  font-size: 0.78rem;
  color: var(--text-muted);
  text-align: center;
  margin-top: 0.5rem;
  font-style: italic;
}

/* =====================================================
   SKIP LINK (ACCESSIBILITY)
   ===================================================== */
.skip-link {
  position: absolute;
  top: -100px;
  left: 1rem;
  background: var(--accent);
  color: #000;
  padding: 0.5rem 1rem;
  border-radius: 0 0 6px 6px;
  font-family: var(--font-mono);
  font-size: 0.8rem;
  font-weight: 700;
  z-index: 9999;
  transition: top 0.2s;
}
.skip-link:focus { top: 0; color: #000; }

/* =====================================================
   PRINT STYLES
   ===================================================== */
@media print {
  #site-header, #site-footer, .tool-sidebar,
  .cta-section, .email-capture-section,
  .hero-visual, .mobile-menu-toggle { display: none !important; }
  body { background: #fff; color: #000; }
  a { color: #000; }
  .tool-layout { display: block; }
}

/* =====================================================
   BLOG ARCHIVE GRID (new)
   ===================================================== */
.blog-archive-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
  margin-top: 3rem;
}

/* Featured first post: full-width row */
.blog-archive-grid .blog-card--featured {
  grid-column: 1 / -1;
  display: grid;
  grid-template-columns: 1fr 1fr;
}

.blog-archive-grid .blog-card--featured .blog-card-image {
  aspect-ratio: auto;
  min-height: 320px;
}

/* Remaining posts back to thirds */
.blog-archive-grid .blog-card:not(.blog-card--featured) {
  grid-column: span 1;
}

/* Blog card title */
.blog-card-title {
  font-size: 1rem;
  margin-bottom: 0.5rem;
  color: var(--text-primary);
  line-height: 1.4;
}

.blog-card-excerpt {
  font-size: 0.875rem;
  color: var(--text-muted);
  flex-grow: 1;
  margin-bottom: 0;
}

/* =====================================================
   TOOL FILTER PILLS
   ===================================================== */
.filter-btn.active {
  background: var(--accent) !important;
  color: #000 !important;
  border-color: var(--accent) !important;
}

/* =====================================================
   CALLOUT BLOCKS (for shortcodes & content)
   ===================================================== */
.sft-callout {
  border-radius: var(--radius);
  padding: 1.25rem 1.5rem;
  margin: 1.5rem 0;
  display: flex;
  gap: 0.75rem;
  align-items: flex-start;
}

/* =====================================================
   TAG CLOUD (widget)
   ===================================================== */
.tagcloud a {
  display: inline-block;
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: 100px;
  padding: 0.25rem 0.75rem;
  font-family: var(--font-mono);
  font-size: 0.75rem !important;
  color: var(--text-secondary);
  margin: 0.2rem;
  transition: all var(--transition);
  text-decoration: none;
}
.tagcloud a:hover {
  border-color: var(--accent);
  color: var(--accent);
}

/* =====================================================
   RESPONSIVE: Blog archive
   ===================================================== */
@media (max-width: 1024px) {
  .blog-archive-grid { grid-template-columns: repeat(2, 1fr); }
  .blog-archive-grid .blog-card--featured { grid-template-columns: 1fr; }
  .blog-archive-grid .blog-card--featured .blog-card-image { min-height: 240px; }
}

@media (max-width: 768px) {
  .blog-archive-grid { grid-template-columns: 1fr; }
  .blog-archive-grid .blog-card--featured { grid-column: 1; }
}
