/* ==========================================================================
   SEO Website Analyzer - Design System & Modern SaaS Stylesheet
   ========================================================================== */

/* --------------------------------------------------------------------------
   1. CSS Custom Properties / Design Tokens
   -------------------------------------------------------------------------- */
:root {
  /* Color Palette */
  --primary: #3b82f6;
  --primary-hover: #2563eb;
  --primary-light: #eff6ff;
  --primary-glow: rgba(59, 130, 246, 0.25);
  
  --secondary: #8b5cf6;
  --secondary-hover: #7c3aed;

  --dark-bg: #0f172a;
  --dark-surface: #1e293b;
  --dark-border: #334155;

  --light-bg: #f8fafc;
  --light-surface: #ffffff;
  --light-border: #e2e8f0;

  --text-main: #0f172a;
  --text-muted: #64748b;
  --text-inverse: #f8fafc;

  /* Status Colors */
  --pass-color: #10b981;
  --pass-bg: #ecfdf5;
  --pass-border: #a7f3d0;

  --warning-color: #f59e0b;
  --warning-bg: #fffbeb;
  --warning-border: #fde68a;

  --error-color: #ef4444;
  --error-bg: #fef2f2;
  --error-border: #fecaca;

  --info-color: #6366f1;
  --info-bg: #eef2ff;
  --info-border: #c7d2fe;

  /* Typography & Geometry */
  --font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --radius-sm: 8px;
  --radius-md: 12px;
  --radius-lg: 18px;
  --radius-full: 9999px;

  --shadow-sm: 0 1px 3px rgba(0, 0, 0, 0.08);
  --shadow-md: 0 4px 12px rgba(0, 0, 0, 0.08), 0 2px 4px rgba(0, 0, 0, 0.04);
  --shadow-lg: 0 12px 32px rgba(15, 23, 42, 0.12), 0 4px 12px rgba(15, 23, 42, 0.06);
  --shadow-glow: 0 0 25px var(--primary-glow);

  --transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
}

/* --------------------------------------------------------------------------
   2. Reset & General Styles
   -------------------------------------------------------------------------- */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  font-family: var(--font-family);
  font-size: 16px;
  line-height: 1.6;
  color: var(--text-main);
  background-color: var(--light-bg);
  scroll-behavior: smooth;
  -webkit-font-smoothing: antialiased;
}

body {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

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

a:hover {
  color: var(--primary-hover);
}

button, input, select {
  font-family: inherit;
  font-size: inherit;
}

/* Container */
.container {
  width: 100%;
  max-width: 1240px;
  margin: 0 auto;
  padding: 0 1.5rem;
}

/* --------------------------------------------------------------------------
   3. Header Navigation
   -------------------------------------------------------------------------- */
.site-header {
  background: rgba(15, 23, 42, 0.95);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--dark-border);
  position: sticky;
  top: 0;
  z-index: 100;
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 72px;
}

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

.logo img {
  height: 38px;
  width: auto;
}

.main-nav {
  display: flex;
  align-items: center;
  gap: 1.75rem;
}

.nav-link {
  color: #94a3b8;
  font-weight: 500;
  font-size: 0.95rem;
}

.nav-link:hover, .nav-link.active {
  color: #ffffff;
}

.nav-cta {
  background: linear-gradient(135deg, var(--primary), var(--secondary));
  color: #ffffff !important;
  padding: 0.5rem 1.25rem;
  border-radius: var(--radius-full);
  font-weight: 600;
  box-shadow: 0 4px 14px rgba(59, 130, 246, 0.35);
}

.nav-cta:hover {
  transform: translateY(-1px);
  box-shadow: 0 6px 20px rgba(59, 130, 246, 0.45);
}

/* --------------------------------------------------------------------------
   4. Hero Section & Analyzer Input
   -------------------------------------------------------------------------- */
.hero-section {
  background: radial-gradient(circle at 50% 20%, #1e293b 0%, #0f172a 70%);
  color: var(--text-inverse);
  padding: 5rem 0 6rem;
  text-align: center;
  position: relative;
  overflow: hidden;
}

.hero-section::before {
  content: "";
  position: absolute;
  top: -50%;
  left: -50%;
  width: 200%;
  height: 200%;
  background: radial-gradient(circle at 50% 50%, rgba(59, 130, 246, 0.08) 0%, transparent 60%);
  pointer-events: none;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.15);
  padding: 0.35rem 1rem;
  border-radius: var(--radius-full);
  font-size: 0.875rem;
  color: #38bdf8;
  margin-bottom: 1.5rem;
  backdrop-filter: blur(8px);
}

.hero-title {
  font-size: 3rem;
  font-weight: 800;
  line-height: 1.15;
  letter-spacing: -0.025em;
  margin-bottom: 1.25rem;
}

.hero-title span {
  background: linear-gradient(135deg, #60a5fa, #c084fc);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.hero-subtitle {
  font-size: 1.2rem;
  color: #94a3b8;
  max-width: 680px;
  margin: 0 auto 2.5rem;
  font-weight: 400;
}

/* Analyzer Input Bar */
.analyzer-form-wrap {
  max-width: 760px;
  margin: 0 auto;
  position: relative;
  z-index: 10;
}

.analyzer-input-group {
  display: flex;
  background: #ffffff;
  padding: 0.5rem;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg), var(--shadow-glow);
  border: 2px solid transparent;
  transition: var(--transition);
}

.analyzer-input-group:focus-within {
  border-color: var(--primary);
}

.input-icon {
  display: flex;
  align-items: center;
  padding-left: 1rem;
  color: #94a3b8;
}

.analyzer-input {
  flex: 1;
  border: none;
  outline: none;
  padding: 1rem;
  font-size: 1.05rem;
  color: var(--text-main);
  background: transparent;
}

.analyzer-btn {
  background: linear-gradient(135deg, var(--primary), var(--secondary));
  color: #ffffff;
  border: none;
  padding: 1rem 2.25rem;
  border-radius: var(--radius-md);
  font-weight: 700;
  font-size: 1.05rem;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  transition: var(--transition);
  box-shadow: 0 4px 12px rgba(59, 130, 246, 0.4);
  white-space: nowrap;
}

.analyzer-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 20px rgba(59, 130, 246, 0.5);
}

.analyzer-btn:disabled {
  opacity: 0.7;
  cursor: not-allowed;
  transform: none;
}

.trust-badges {
  display: flex;
  justify-content: center;
  gap: 2rem;
  margin-top: 2rem;
  color: #64748b;
  font-size: 0.875rem;
}

.trust-badge-item {
  display: flex;
  align-items: center;
  gap: 0.4rem;
}

/* --------------------------------------------------------------------------
   5. Loading & Error Banner States
   -------------------------------------------------------------------------- */
.status-container {
  max-width: 760px;
  margin: 2rem auto 0;
}

.loader-card {
  background: #1e293b;
  border: 1px solid var(--dark-border);
  border-radius: var(--radius-md);
  padding: 2rem;
  text-align: center;
  color: #ffffff;
  box-shadow: var(--shadow-md);
}

.spinner {
  width: 48px;
  height: 48px;
  border: 4px solid rgba(255, 255, 255, 0.1);
  border-left-color: var(--primary);
  border-radius: 50%;
  animation: spin 1s linear infinite;
  margin: 0 auto 1.25rem;
}

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

.loader-steps {
  margin-top: 1rem;
  font-size: 0.95rem;
  color: #94a3b8;
}

.error-banner {
  background: var(--error-bg);
  border: 1px solid var(--error-border);
  color: #991b1b;
  padding: 1.25rem 1.5rem;
  border-radius: var(--radius-md);
  display: flex;
  align-items: flex-start;
  gap: 1rem;
  text-align: left;
  box-shadow: var(--shadow-sm);
}

.error-banner-icon {
  font-size: 1.5rem;
  line-height: 1;
}

.error-title {
  font-weight: 700;
  font-size: 1rem;
  margin-bottom: 0.25rem;
}

/* --------------------------------------------------------------------------
   6. Audit Results Dashboard
   -------------------------------------------------------------------------- */
.dashboard-section {
  padding: 3rem 0;
  margin-top: -2rem;
  position: relative;
  z-index: 20;
}

/* Score Overview Header Card */
.score-overview-card {
  background: var(--light-surface);
  border-radius: var(--radius-lg);
  border: 1px solid var(--light-border);
  padding: 2rem 2.5rem;
  box-shadow: var(--shadow-lg);
  margin-bottom: 2.5rem;
  display: grid;
  grid-template-columns: 260px 1fr auto;
  gap: 2.5rem;
  align-items: center;
}

.score-gauge-wrap {
  text-align: center;
  position: relative;
}

.score-svg-meter {
  width: 170px;
  height: 170px;
  transform: rotate(-90deg);
}

.score-bg-ring {
  fill: none;
  stroke: #e2e8f0;
  stroke-width: 12;
}

.score-progress-ring {
  fill: none;
  stroke: var(--primary);
  stroke-width: 12;
  stroke-linecap: round;
  stroke-dasharray: 440;
  stroke-dashoffset: 440;
  transition: stroke-dashoffset 1.5s ease-out, stroke 0.5s ease;
}

.score-number-display {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -60%);
  text-align: center;
}

.score-val {
  font-size: 2.75rem;
  font-weight: 800;
  line-height: 1;
  color: var(--text-main);
}

.score-max {
  font-size: 0.9rem;
  color: var(--text-muted);
  font-weight: 600;
}

.score-label-badge {
  display: inline-block;
  margin-top: 0.5rem;
  padding: 0.35rem 1rem;
  border-radius: var(--radius-full);
  font-weight: 700;
  font-size: 0.875rem;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.score-details-meta {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.analyzed-url-heading {
  font-size: 1.4rem;
  font-weight: 700;
  word-break: break-all;
}

.analyzed-url-heading a {
  color: var(--text-main);
}

.analyzed-url-heading a:hover {
  color: var(--primary);
}

/* Metric Stats Row */
.summary-counters-row {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
}

.counter-pill {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.6rem 1.2rem;
  border-radius: var(--radius-md);
  font-weight: 700;
  font-size: 0.95rem;
  cursor: pointer;
  transition: var(--transition);
}

.counter-pill.pass { background: var(--pass-bg); color: var(--pass-color); border: 1px solid var(--pass-border); }
.counter-pill.warning { background: var(--warning-bg); color: var(--warning-color); border: 1px solid var(--warning-border); }
.counter-pill.error { background: var(--error-bg); color: var(--error-color); border: 1px solid var(--error-border); }
.counter-pill.info { background: var(--info-bg); color: var(--info-color); border: 1px solid var(--info-border); }

.counter-pill:hover {
  transform: translateY(-2px);
}

.score-disclaimer-notice {
  font-size: 0.825rem;
  color: var(--text-muted);
  background: var(--light-bg);
  padding: 0.75rem 1rem;
  border-radius: var(--radius-sm);
  border-left: 3px solid var(--primary);
}

/* Action Buttons Header Bar */
.action-buttons-wrap {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.btn-action {
  background: #ffffff;
  border: 1px solid var(--light-border);
  color: var(--text-main);
  padding: 0.65rem 1.25rem;
  border-radius: var(--radius-md);
  font-weight: 600;
  font-size: 0.9rem;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  transition: var(--transition);
}

.btn-action:hover {
  background: var(--light-bg);
  border-color: var(--text-muted);
  transform: translateY(-1px);
}

/* --------------------------------------------------------------------------
   7. Category Filter Tabs & Navigation
   -------------------------------------------------------------------------- */
.category-tabs-bar {
  display: flex;
  gap: 0.5rem;
  overflow-x: auto;
  border-bottom: 2px solid var(--light-border);
  margin-bottom: 2rem;
  padding-bottom: 0.25rem;
}

.tab-btn {
  background: transparent;
  border: none;
  padding: 0.75rem 1.25rem;
  font-weight: 600;
  font-size: 0.95rem;
  color: var(--text-muted);
  cursor: pointer;
  border-bottom: 3px solid transparent;
  margin-bottom: -0.25rem;
  white-space: nowrap;
  transition: var(--transition);
}

.tab-btn:hover {
  color: var(--primary);
}

.tab-btn.active {
  color: var(--primary);
  border-bottom-color: var(--primary);
}

/* --------------------------------------------------------------------------
   8. SERP Snippet Preview Card
   -------------------------------------------------------------------------- */
.serp-card {
  background: var(--light-surface);
  border: 1px solid var(--light-border);
  border-radius: var(--radius-md);
  padding: 1.75rem;
  box-shadow: var(--shadow-md);
  margin-bottom: 2rem;
}

.serp-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 1.25rem;
}

.serp-title-heading {
  font-size: 1.15rem;
  font-weight: 700;
}

.serp-device-toggle {
  display: flex;
  background: var(--light-bg);
  padding: 0.25rem;
  border-radius: var(--radius-sm);
  border: 1px solid var(--light-border);
}

.device-btn {
  border: none;
  background: transparent;
  padding: 0.35rem 0.75rem;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--text-muted);
  cursor: pointer;
  border-radius: 4px;
}

.device-btn.active {
  background: var(--light-surface);
  color: var(--primary);
  box-shadow: var(--shadow-sm);
}

/* SERP Google Styling */
.serp-preview-box {
  background: #ffffff;
  border: 1px solid #dfe1e5;
  border-radius: 8px;
  padding: 1.25rem;
  font-family: arial, sans-serif;
  max-width: 600px;
}

.serp-site-identity {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 14px;
  line-height: 1.3;
  color: #202124;
  margin-bottom: 0.4rem;
}

.serp-favicon-icon {
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: #e8eaed;
}

.serp-url-text {
  font-size: 14px;
  color: #202124;
  word-break: break-all;
}

.serp-title-link {
  font-size: 20px;
  line-height: 1.3;
  color: #1a0dab;
  font-weight: 400;
  margin-bottom: 0.3rem;
  word-wrap: break-word;
}

.serp-title-link:hover {
  text-decoration: underline;
}

.serp-snippet-desc {
  font-size: 14px;
  line-height: 1.57;
  color: #4d5156;
  word-wrap: break-word;
}

/* --------------------------------------------------------------------------
   9. Detailed Audit Finding Cards
   -------------------------------------------------------------------------- */
.findings-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.5rem;
}

.finding-card {
  background: var(--light-surface);
  border-radius: var(--radius-md);
  border: 1px solid var(--light-border);
  padding: 1.5rem 1.75rem;
  box-shadow: var(--shadow-sm);
  transition: var(--transition);
}

.finding-card:hover {
  box-shadow: var(--shadow-md);
  border-color: #cbd5e1;
}

.finding-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 1rem;
}

.finding-title-wrap {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.status-badge-icon {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 800;
  font-size: 0.95rem;
}

.status-badge-icon.pass { background: var(--pass-bg); color: var(--pass-color); }
.status-badge-icon.warning { background: var(--warning-bg); color: var(--warning-color); }
.status-badge-icon.error { background: var(--error-bg); color: var(--error-color); }
.status-badge-icon.info { background: var(--info-bg); color: var(--info-color); }

.finding-title {
  font-size: 1.1rem;
  font-weight: 700;
}

.status-pill {
  font-size: 0.75rem;
  font-weight: 800;
  padding: 0.25rem 0.75rem;
  border-radius: var(--radius-full);
  text-transform: uppercase;
}

.status-pill.pass { background: var(--pass-bg); color: var(--pass-color); border: 1px solid var(--pass-border); }
.status-pill.warning { background: var(--warning-bg); color: var(--warning-color); border: 1px solid var(--warning-border); }
.status-pill.error { background: var(--error-bg); color: var(--error-color); border: 1px solid var(--error-border); }
.status-pill.info { background: var(--info-bg); color: var(--info-color); border: 1px solid var(--info-border); }

/* Finding Card Details */
.detected-value-box {
  background: var(--light-bg);
  border: 1px solid var(--light-border);
  border-radius: var(--radius-sm);
  padding: 0.85rem 1rem;
  font-family: monospace;
  font-size: 0.9rem;
  color: var(--text-main);
  margin-bottom: 1rem;
  word-break: break-all;
}

.finding-meta-block {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.25rem;
}

.meta-info-box {
  font-size: 0.9rem;
  line-height: 1.5;
}

.meta-info-box strong {
  display: block;
  font-size: 0.825rem;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  color: var(--text-muted);
  margin-bottom: 0.25rem;
}

/* Heading Hierarchy Visualizer */
.heading-tree-box {
  margin-top: 1rem;
  background: var(--dark-bg);
  color: #f8fafc;
  padding: 1.25rem;
  border-radius: var(--radius-sm);
  max-height: 280px;
  overflow-y: auto;
  font-family: monospace;
  font-size: 0.875rem;
}

.heading-tree-item {
  padding: 0.25rem 0;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.tag-badge {
  background: var(--primary);
  color: #ffffff;
  padding: 0.1rem 0.4rem;
  border-radius: 4px;
  font-size: 0.75rem;
  font-weight: 700;
}

/* --------------------------------------------------------------------------
   10. Recommendations & Action Plan Section
   -------------------------------------------------------------------------- */
.recommendations-card {
  background: var(--light-surface);
  border: 1px solid var(--light-border);
  border-radius: var(--radius-md);
  padding: 2rem;
  box-shadow: var(--shadow-md);
  margin-top: 2.5rem;
}

.rec-list {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  margin-top: 1.25rem;
}

.rec-item {
  display: flex;
  align-items: flex-start;
  gap: 1rem;
  background: var(--light-bg);
  padding: 1.25rem;
  border-radius: var(--radius-sm);
  border-left: 4px solid var(--primary);
}

.rec-item.High { border-left-color: var(--error-color); }
.rec-item.Medium { border-left-color: var(--warning-color); }

.rec-priority-badge {
  font-size: 0.75rem;
  font-weight: 800;
  padding: 0.2rem 0.6rem;
  border-radius: 4px;
  text-transform: uppercase;
  white-space: nowrap;
}

.rec-priority-badge.High { background: var(--error-bg); color: var(--error-color); }
.rec-priority-badge.Medium { background: var(--warning-bg); color: var(--warning-color); }

.rec-content h4 {
  font-size: 1rem;
  margin-bottom: 0.25rem;
}

.rec-content p {
  font-size: 0.9rem;
  color: var(--text-muted);
}

/* --------------------------------------------------------------------------
   10b. DeepSeek AI Recommendations Card
   -------------------------------------------------------------------------- */
.ai-card {
  background: linear-gradient(135deg, #ffffff 0%, #f8fafc 100%);
  border: 1px solid #cbd5e1;
  border-radius: var(--radius-md);
  padding: 2rem;
  box-shadow: var(--shadow-md);
  margin-top: 2rem;
  position: relative;
  overflow: hidden;
}

.ai-card::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 4px;
  height: 100%;
  background: linear-gradient(180deg, #3b82f6, #8b5cf6);
}

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

.ai-title-wrap {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.ai-badge {
  background: linear-gradient(135deg, #3b82f6, #8b5cf6);
  color: #ffffff;
  font-size: 0.75rem;
  font-weight: 800;
  padding: 0.25rem 0.75rem;
  border-radius: var(--radius-full);
  text-transform: uppercase;
  letter-spacing: 0.5px;
  box-shadow: 0 2px 8px rgba(139, 92, 246, 0.3);
}

.btn-ai-generate {
  background: linear-gradient(135deg, #3b82f6, #8b5cf6);
  color: #ffffff;
  border: none;
  padding: 0.75rem 1.5rem;
  border-radius: var(--radius-md);
  font-weight: 700;
  font-size: 0.95rem;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  transition: var(--transition);
  box-shadow: 0 4px 12px rgba(139, 92, 246, 0.35);
}

.btn-ai-generate:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 18px rgba(139, 92, 246, 0.45);
}

.btn-ai-generate:disabled {
  opacity: 0.65;
  cursor: not-allowed;
  transform: none;
}

.ai-loading-box {
  display: flex;
  align-items: center;
  gap: 1rem;
  background: #f1f5f9;
  border: 1px solid #cbd5e1;
  padding: 1rem 1.25rem;
  border-radius: var(--radius-sm);
  color: #334155;
  font-size: 0.95rem;
  font-weight: 500;
  margin-top: 1rem;
}

.spinner-sm {
  width: 22px;
  height: 22px;
  border: 3px solid rgba(139, 92, 246, 0.2);
  border-left-color: #8b5cf6;
  border-radius: 50%;
  animation: spin 0.8s linear infinite;
  flex-shrink: 0;
}

.ai-error-box {
  background: var(--error-bg);
  border: 1px solid var(--error-border);
  color: #991b1b;
  padding: 1rem 1.25rem;
  border-radius: var(--radius-sm);
  font-size: 0.95rem;
  margin-top: 1rem;
}

.ai-results-list {
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
  margin-top: 1.25rem;
}

.ai-rec-item {
  display: flex;
  align-items: flex-start;
  gap: 0.85rem;
  background: #ffffff;
  border: 1px solid var(--light-border);
  padding: 1.1rem 1.25rem;
  border-radius: var(--radius-sm);
  font-size: 0.95rem;
  line-height: 1.55;
  box-shadow: var(--shadow-sm);
}

.ai-rec-icon {
  width: 26px;
  height: 26px;
  background: #eff6ff;
  color: #3b82f6;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 800;
  font-size: 0.85rem;
  flex-shrink: 0;
  margin-top: 0.1rem;
}

/* --------------------------------------------------------------------------
   11. Educational Content & FAQ Section
   -------------------------------------------------------------------------- */
.content-section {
  padding: 4.5rem 0;
  background: var(--light-surface);
  border-top: 1px solid var(--light-border);
}

.section-header-center {
  text-align: center;
  max-width: 700px;
  margin: 0 auto 3rem;
}

.section-title {
  font-size: 2.25rem;
  font-weight: 800;
  letter-spacing: -0.02em;
  margin-bottom: 1rem;
}

.section-subtitle {
  font-size: 1.1rem;
  color: var(--text-muted);
}

.seo-features-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 2rem;
  margin-bottom: 4rem;
}

.feature-box {
  background: var(--light-bg);
  border: 1px solid var(--light-border);
  border-radius: var(--radius-md);
  padding: 2rem;
  transition: var(--transition);
}

.feature-box:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
}

.feature-icon {
  width: 50px;
  height: 50px;
  background: var(--primary-light);
  color: var(--primary);
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  margin-bottom: 1.25rem;
}

.feature-box h3 {
  font-size: 1.2rem;
  margin-bottom: 0.75rem;
}

.feature-box p {
  color: var(--text-muted);
  font-size: 0.95rem;
  line-height: 1.6;
}

/* FAQ Accordion */
.faq-accordion {
  max-width: 840px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.faq-item {
  background: var(--light-bg);
  border: 1px solid var(--light-border);
  border-radius: var(--radius-md);
  overflow: hidden;
}

.faq-button {
  width: 100%;
  background: transparent;
  border: none;
  padding: 1.25rem 1.5rem;
  text-align: left;
  font-weight: 700;
  font-size: 1.05rem;
  color: var(--text-main);
  display: flex;
  justify-content: space-between;
  align-items: center;
  cursor: pointer;
}

.faq-icon-arrow {
  transition: transform 0.3s ease;
}

.faq-item.active .faq-icon-arrow {
  transform: rotate(180deg);
}

.faq-content {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.35s ease, padding 0.35s ease;
  padding: 0 1.5rem;
  color: var(--text-muted);
  font-size: 0.95rem;
  line-height: 1.6;
}

.faq-item.active .faq-content {
  max-height: 300px;
  padding: 0 1.5rem 1.5rem;
}

/* --------------------------------------------------------------------------
   12. Footer Section
   -------------------------------------------------------------------------- */
.site-footer {
  background: var(--dark-bg);
  color: #94a3b8;
  padding: 4rem 0 2rem;
  border-top: 1px solid var(--dark-border);
  margin-top: auto;
}

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

.footer-brand p {
  margin-top: 1rem;
  font-size: 0.9rem;
  line-height: 1.6;
  max-width: 320px;
}

.footer-col h4 {
  color: #ffffff;
  font-size: 1rem;
  font-weight: 700;
  margin-bottom: 1.25rem;
}

.footer-links {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.footer-links a {
  color: #94a3b8;
  font-size: 0.9rem;
}

.footer-links a:hover {
  color: #ffffff;
}

.footer-bottom {
  border-top: 1px solid var(--dark-border);
  padding-top: 2rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.875rem;
}

/* --------------------------------------------------------------------------
   13. Responsive Media Queries
   -------------------------------------------------------------------------- */
@media (max-width: 992px) {
  .score-overview-card {
    grid-template-columns: 1fr;
    text-align: center;
    justify-items: center;
  }
  
  .footer-grid {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 768px) {
  .hero-title {
    font-size: 2.25rem;
  }

  .analyzer-input-group {
    flex-direction: column;
  }

  .analyzer-btn {
    width: 100%;
    justify-content: center;
  }

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

  .footer-bottom {
    flex-direction: column;
    gap: 1rem;
    text-align: center;
  }

  .finding-meta-block {
    grid-template-columns: 1fr;
  }
}
