/*
Theme Name: Speed Test
Theme URI: https://speedtest.io
Author: Speed Test Team
Author URI: https://speedtest.io
Description: A blazing-fast, animated internet speed test WordPress theme. Check your internet speed, WiFi speed, broadband speed and more. SEO-optimized for keywords: internet speed test, speed test, wifi speed test, broadband speed test, online speed test.
Version: 1.1.0
Requires at least: 6.0
Tested up to: 6.7
Requires PHP: 8.0
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: speedtest
Tags: speed-test, internet-speed-test, wifi-speed-test, animated, mobile-first, adsense-ready, seo-optimized, dark, responsive
*/

/* =========================================
   CSS CUSTOM PROPERTIES
========================================= */
:root {
  --primary: #00d4ff;
  --primary-dark: #0099bb;
  --primary-glow: rgba(0, 212, 255, 0.3);
  --secondary: #ff6b35;
  --accent: #7c3aed;
  --bg-dark: #050a14;
  --bg-card: rgba(255,255,255,0.04);
  --bg-card-hover: rgba(255,255,255,0.08);
  --text-primary: #f0f6ff;
  --text-secondary: #8bacc8;
  --text-muted: #4a6580;
  --border: rgba(0, 212, 255, 0.15);
  --border-hover: rgba(0, 212, 255, 0.4);
  --success: #00e676;
  --warning: #ffb300;
  --danger: #ff3d57;
  --font-display: 'Orbitron', 'Rajdhani', monospace;
  --font-body: 'DM Sans', sans-serif;
  --radius: 16px;
  --radius-sm: 8px;
  --radius-lg: 24px;
  --shadow: 0 8px 32px rgba(0,0,0,0.4);
  --shadow-glow: 0 0 40px rgba(0, 212, 255, 0.2);
  --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  --max-width: 1200px;
}

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

html {
  scroll-behavior: smooth;
  font-size: 16px;
  -webkit-text-size-adjust: 100%;
}

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

body::before {
  content: '';
  position: fixed;
  inset: 0;
  background:
    radial-gradient(ellipse 80% 50% at 50% -10%, rgba(0,212,255,0.12) 0%, transparent 60%),
    radial-gradient(ellipse 40% 40% at 90% 80%, rgba(124,58,237,0.08) 0%, transparent 50%);
  pointer-events: none;
  z-index: 0;
}

img { max-width: 100%; height: auto; display: block; }
a { color: var(--primary); text-decoration: none; transition: var(--transition); }
a:hover { color: var(--primary-dark); }
ul, ol { list-style: none; }
h1,h2,h3,h4,h5,h6 { font-family: var(--font-display); font-weight: 700; line-height: 1.2; color: var(--text-primary); }

/* =========================================
   SKIP LINK (ACCESSIBILITY)
========================================= */
.skip-link {
  position: absolute;
  top: -100px;
  left: 0;
  background: var(--primary);
  color: var(--bg-dark);
  padding: 8px 16px;
  z-index: 10000;
  font-weight: 700;
  border-radius: 0 0 var(--radius-sm) 0;
  transition: top 0.2s;
}
.skip-link:focus { top: 0; }

/* =========================================
   HEADER & NAV
========================================= */
#site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  padding: 0 24px;
  height: 70px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: rgba(5, 10, 20, 0.85);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--border);
  transition: var(--transition);
}

#site-header.scrolled {
  box-shadow: 0 4px 24px rgba(0,0,0,0.5);
}

.site-logo {
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-display);
  font-size: 1.3rem;
  font-weight: 900;
  color: var(--text-primary);
  letter-spacing: 1px;
}
.site-logo .logo-icon {
  width: 36px; height: 36px;
  background: linear-gradient(135deg, var(--primary), var(--accent));
  border-radius: 10px;
  display: grid;
  place-items: center;
  font-size: 18px;
  box-shadow: 0 0 16px var(--primary-glow);
  animation: logoPulse 3s ease-in-out infinite;
}
@keyframes logoPulse {
  0%,100% { box-shadow: 0 0 16px var(--primary-glow); }
  50% { box-shadow: 0 0 32px rgba(0,212,255,0.6); }
}
.site-logo span { color: var(--primary); }

#site-nav ul {
  display: flex;
  gap: 4px;
  align-items: center;
}
#site-nav ul a {
  color: var(--text-secondary);
  font-size: 0.9rem;
  font-weight: 500;
  padding: 8px 14px;
  border-radius: var(--radius-sm);
  transition: var(--transition);
  letter-spacing: 0.3px;
}
#site-nav ul a:hover,
#site-nav ul a.active {
  color: var(--primary);
  background: rgba(0,212,255,0.08);
}

.menu-toggle {
  display: none;
  background: none;
  border: 1px solid var(--border);
  color: var(--text-primary);
  cursor: pointer;
  padding: 8px 12px;
  border-radius: var(--radius-sm);
  font-size: 20px;
  transition: var(--transition);
}
.menu-toggle:hover { background: var(--bg-card-hover); border-color: var(--primary); }

/* =========================================
   AD ZONES (ADSENSE READY - no empty space)
========================================= */
.ad-zone {
  width: 100%;
  overflow: hidden;
  margin: 0 auto;
  display: block;
  text-align: center;
}
.ad-zone:empty { display: none; margin: 0; }
.ad-zone-header  { max-width: 728px; }
.ad-zone-banner  { max-width: 970px; }
.ad-zone-sidebar { max-width: 300px; width: 300px; }
.ad-zone-inline  { max-width: 728px; }

/* =========================================
   HERO / SPEED TEST SECTION
========================================= */
#hero {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 100px 24px 60px;
  position: relative;
  text-align: center;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(0,212,255,0.1);
  border: 1px solid var(--border);
  padding: 6px 16px;
  border-radius: 50px;
  font-size: 0.8rem;
  color: var(--primary);
  font-weight: 600;
  letter-spacing: 1px;
  text-transform: uppercase;
  margin-bottom: 24px;
  animation: fadeSlideDown 0.6s ease both;
}
.hero-badge .dot {
  width: 6px; height: 6px;
  background: var(--primary);
  border-radius: 50%;
  animation: blink 1.4s ease-in-out infinite;
}
@keyframes blink { 0%,100% { opacity:1; } 50% { opacity:0.2; } }

.hero-title {
  font-size: clamp(2.2rem, 6vw, 4rem);
  font-weight: 900;
  line-height: 1.1;
  margin-bottom: 16px;
  animation: fadeSlideDown 0.7s 0.1s ease both;
}
.hero-title span { color: var(--primary); }
.hero-subtitle {
  font-size: clamp(1rem, 2.5vw, 1.2rem);
  color: var(--text-secondary);
  max-width: 560px;
  margin: 0 auto 48px;
  line-height: 1.7;
  animation: fadeSlideDown 0.7s 0.2s ease both;
}

/* Speed Meter */
.speed-meter-wrapper {
  position: relative;
  width: min(380px, 90vw);
  aspect-ratio: 1;
  margin: 0 auto 32px;
  animation: fadeSlideDown 0.7s 0.3s ease both;
}

.speed-bg-rings {
  position: absolute;
  inset: -20px;
  border-radius: 50%;
}
.speed-bg-rings::before,
.speed-bg-rings::after {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: 50%;
  border: 1px solid rgba(0,212,255,0.08);
  animation: rippleOut 3s ease-out infinite;
}
.speed-bg-rings::after {
  animation-delay: 1.5s;
}
@keyframes rippleOut {
  0% { transform: scale(0.9); opacity: 0.8; }
  100% { transform: scale(1.3); opacity: 0; }
}

.speed-gauge-svg {
  width: 100%;
  height: 100%;
  transform: rotate(-210deg);
  filter: drop-shadow(0 0 20px rgba(0,212,255,0.3));
}

.gauge-bg { fill: none; stroke: rgba(255,255,255,0.05); stroke-width: 16; stroke-linecap: round; }
.gauge-track { fill: none; stroke: rgba(0,212,255,0.1); stroke-width: 16; stroke-linecap: round; }
.gauge-fill {
  fill: none;
  stroke: url(#gaugeGrad);
  stroke-width: 16;
  stroke-linecap: round;
  stroke-dasharray: 440;
  stroke-dashoffset: 440;
  transition: stroke-dashoffset 0.1s linear;
}

.speed-center {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 4px;
}
.speed-value {
  font-family: var(--font-display);
  font-size: clamp(3rem, 10vw, 5rem);
  font-weight: 900;
  color: var(--primary);
  line-height: 1;
  text-shadow: 0 0 40px var(--primary-glow);
  transition: all 0.1s;
  min-width: 4ch;
  text-align: center;
}
.speed-unit {
  font-family: var(--font-display);
  font-size: 1rem;
  color: var(--text-secondary);
  letter-spacing: 2px;
  text-transform: uppercase;
}
.speed-label {
  font-size: 0.8rem;
  color: var(--text-muted);
  letter-spacing: 1px;
  text-transform: uppercase;
}

/* Start Button */
.btn-start {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  background: linear-gradient(135deg, var(--primary), var(--primary-dark));
  color: var(--bg-dark);
  font-family: var(--font-display);
  font-size: 1.1rem;
  font-weight: 900;
  letter-spacing: 2px;
  text-transform: uppercase;
  padding: 18px 56px;
  border: none;
  border-radius: 60px;
  cursor: pointer;
  transition: var(--transition);
  box-shadow: 0 0 30px rgba(0,212,255,0.4), 0 8px 24px rgba(0,0,0,0.3);
  animation: fadeSlideDown 0.7s 0.4s ease both;
  overflow: hidden;
}
.btn-start::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(255,255,255,0.2), transparent);
  opacity: 0;
  transition: opacity 0.3s;
}
.btn-start:hover {
  transform: translateY(-3px) scale(1.03);
  box-shadow: 0 0 50px rgba(0,212,255,0.6), 0 16px 40px rgba(0,0,0,0.4);
}
.btn-start:hover::before { opacity: 1; }
.btn-start:active { transform: scale(0.97); }
.btn-start.running {
  background: linear-gradient(135deg, var(--secondary), #e05520);
  box-shadow: 0 0 30px rgba(255,107,53,0.4), 0 8px 24px rgba(0,0,0,0.3);
}
.btn-start .btn-icon {
  width: 24px; height: 24px;
  transition: transform 0.3s;
}
.btn-start.running .btn-icon { animation: spin 1s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }

/* Live Stats Bar */
.live-stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
  max-width: 500px;
  width: 100%;
  margin: 24px auto 0;
  animation: fadeSlideDown 0.7s 0.5s ease both;
}
.stat-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 16px 12px;
  text-align: center;
  transition: var(--transition);
}
.stat-card.active {
  border-color: var(--primary);
  background: rgba(0,212,255,0.06);
  box-shadow: 0 0 20px rgba(0,212,255,0.15);
}
.stat-label {
  font-size: 0.7rem;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 1.5px;
  margin-bottom: 8px;
  font-family: var(--font-display);
}
.stat-value {
  font-family: var(--font-display);
  font-size: 1.4rem;
  font-weight: 700;
  color: var(--text-primary);
  line-height: 1;
}
.stat-unit {
  font-size: 0.65rem;
  color: var(--text-muted);
  margin-top: 4px;
  text-transform: uppercase;
  letter-spacing: 1px;
}

/* Status Message */
.speed-status {
  font-size: 0.9rem;
  color: var(--text-secondary);
  min-height: 1.5em;
  margin-top: 12px;
  animation: fadeSlideDown 0.7s 0.6s ease both;
}
.speed-status.testing { color: var(--primary); }
.speed-status.done { color: var(--success); }

/* =========================================
   RESULTS SECTION
========================================= */
#results-section {
  display: none;
  max-width: 700px;
  margin: 0 auto;
  padding: 0 24px;
  animation: fadeSlideDown 0.5s ease both;
}
#results-section.visible { display: block; }

.results-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 16px;
  margin-bottom: 24px;
}
.result-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 24px;
  text-align: center;
  transition: var(--transition);
  position: relative;
  overflow: hidden;
}
.result-card::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--primary), var(--accent));
}
.result-card.download::before { background: linear-gradient(90deg, var(--primary), #00a8cc); }
.result-card.upload::before { background: linear-gradient(90deg, var(--secondary), #ff9f70); }
.result-card.ping::before { background: linear-gradient(90deg, var(--success), #00b04e); }
.result-card.jitter::before { background: linear-gradient(90deg, var(--warning), #ff8a00); }
.result-card:hover { border-color: var(--border-hover); transform: translateY(-2px); }
.result-icon { font-size: 2rem; margin-bottom: 12px; }
.result-label { font-size: 0.75rem; color: var(--text-muted); text-transform: uppercase; letter-spacing: 1.5px; margin-bottom: 8px; font-family: var(--font-display); }
.result-number {
  font-family: var(--font-display);
  font-size: 2.2rem;
  font-weight: 900;
  color: var(--text-primary);
  line-height: 1;
}
.result-unit { font-size: 0.8rem; color: var(--text-secondary); margin-top: 6px; }
.result-rating {
  display: inline-block;
  margin-top: 8px;
  padding: 2px 10px;
  border-radius: 20px;
  font-size: 0.7rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1px;
}
.rating-excellent { background: rgba(0,230,118,0.15); color: var(--success); }
.rating-good { background: rgba(0,212,255,0.15); color: var(--primary); }
.rating-fair { background: rgba(255,179,0,0.15); color: var(--warning); }
.rating-poor { background: rgba(255,61,87,0.15); color: var(--danger); }

.share-row {
  display: flex;
  gap: 12px;
  justify-content: center;
  flex-wrap: wrap;
}
.btn-share {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 24px;
  border-radius: 50px;
  font-size: 0.85rem;
  font-weight: 600;
  cursor: pointer;
  transition: var(--transition);
  border: 1px solid var(--border);
  background: var(--bg-card);
  color: var(--text-secondary);
}
.btn-share:hover { border-color: var(--primary); color: var(--primary); background: rgba(0,212,255,0.05); transform: translateY(-2px); }
.btn-retest {
  background: linear-gradient(135deg, var(--primary), var(--primary-dark));
  color: var(--bg-dark);
  border-color: transparent;
  font-weight: 700;
}
.btn-retest:hover { color: var(--bg-dark); opacity: 0.9; }

/* =========================================
   FEATURES SECTION
========================================= */
#features {
  padding: 100px 24px;
  position: relative;
}
.section-header {
  text-align: center;
  max-width: 600px;
  margin: 0 auto 64px;
}
.section-tag {
  display: inline-block;
  font-family: var(--font-display);
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 3px;
  text-transform: uppercase;
  color: var(--primary);
  margin-bottom: 12px;
}
.section-title {
  font-size: clamp(1.8rem, 4vw, 2.8rem);
  margin-bottom: 16px;
}
.section-desc {
  color: var(--text-secondary);
  font-size: 1.05rem;
  line-height: 1.7;
}

.features-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 24px;
  max-width: var(--max-width);
  margin: 0 auto;
}
.feature-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 32px;
  transition: var(--transition);
  position: relative;
  overflow: hidden;
}
.feature-card::after {
  content: '';
  position: absolute;
  top: -50%;
  right: -50%;
  width: 200%;
  height: 200%;
  background: radial-gradient(ellipse at center, rgba(0,212,255,0.05) 0%, transparent 60%);
  opacity: 0;
  transition: opacity 0.4s;
}
.feature-card:hover { border-color: var(--border-hover); transform: translateY(-4px); box-shadow: var(--shadow-glow); }
.feature-card:hover::after { opacity: 1; }
.feature-icon-wrap {
  width: 56px; height: 56px;
  background: linear-gradient(135deg, rgba(0,212,255,0.15), rgba(124,58,237,0.15));
  border: 1px solid var(--border);
  border-radius: var(--radius);
  display: grid;
  place-items: center;
  font-size: 1.5rem;
  margin-bottom: 20px;
  transition: var(--transition);
}
.feature-card:hover .feature-icon-wrap {
  background: linear-gradient(135deg, rgba(0,212,255,0.25), rgba(124,58,237,0.25));
  border-color: var(--primary);
  box-shadow: 0 0 20px var(--primary-glow);
}
.feature-card h3 {
  font-size: 1.1rem;
  margin-bottom: 10px;
  font-family: var(--font-display);
  font-size: 1rem;
}
.feature-card p { color: var(--text-secondary); font-size: 0.92rem; line-height: 1.65; }

/* =========================================
   HOW IT WORKS
========================================= */
#how-it-works {
  padding: 100px 24px;
  background: rgba(0,212,255,0.02);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}
.steps-wrapper {
  max-width: 900px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 32px;
  position: relative;
}
.steps-wrapper::before {
  content: '';
  position: absolute;
  top: 40px;
  left: 10%;
  right: 10%;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--border), transparent);
}
.step-item { text-align: center; position: relative; z-index: 1; }
.step-number {
  width: 80px; height: 80px;
  background: var(--bg-dark);
  border: 2px solid var(--primary);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-display);
  font-size: 1.5rem;
  font-weight: 900;
  color: var(--primary);
  margin: 0 auto 20px;
  box-shadow: 0 0 24px var(--primary-glow);
  transition: var(--transition);
}
.step-item:hover .step-number {
  background: var(--primary);
  color: var(--bg-dark);
  transform: scale(1.1);
}
.step-item h3 { font-family: var(--font-display); font-size: 0.95rem; margin-bottom: 8px; }
.step-item p { color: var(--text-secondary); font-size: 0.88rem; line-height: 1.6; }

/* =========================================
   SPEED TIPS / FAQ SECTION
========================================= */
#speed-tips {
  padding: 100px 24px;
  max-width: var(--max-width);
  margin: 0 auto;
}
.tips-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 20px;
}
.tip-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 24px;
  display: flex;
  gap: 16px;
  align-items: flex-start;
  transition: var(--transition);
}
.tip-card:hover { border-color: var(--border-hover); background: var(--bg-card-hover); }
.tip-number {
  font-family: var(--font-display);
  font-size: 2rem;
  font-weight: 900;
  color: rgba(0,212,255,0.2);
  line-height: 1;
  min-width: 40px;
}
.tip-card h3 { font-size: 0.95rem; margin-bottom: 6px; font-family: var(--font-display); }
.tip-card p { color: var(--text-secondary); font-size: 0.87rem; line-height: 1.6; }

/* FAQ Accordion */
#faq { padding: 100px 24px; }
.faq-container { max-width: 800px; margin: 0 auto; }
.faq-item {
  border: 1px solid var(--border);
  border-radius: var(--radius);
  margin-bottom: 12px;
  overflow: hidden;
  transition: var(--transition);
}
.faq-item.open { border-color: var(--border-hover); }
.faq-question {
  width: 100%;
  background: var(--bg-card);
  border: none;
  padding: 20px 24px;
  text-align: left;
  color: var(--text-primary);
  font-family: var(--font-display);
  font-size: 0.95rem;
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  transition: var(--transition);
}
.faq-question:hover { background: var(--bg-card-hover); }
.faq-question .faq-icon {
  font-size: 1.2rem;
  color: var(--primary);
  transition: transform 0.3s;
  flex-shrink: 0;
}
.faq-item.open .faq-icon { transform: rotate(45deg); }
.faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.4s ease, padding 0.3s ease;
  background: rgba(0,0,0,0.2);
}
.faq-answer p {
  padding: 20px 24px;
  color: var(--text-secondary);
  line-height: 1.75;
  font-size: 0.93rem;
}
.faq-item.open .faq-answer { max-height: 500px; }

/* =========================================
   SPEED GUIDE TABLE
========================================= */
#speed-guide { padding: 100px 24px; background: rgba(0,0,0,0.2); border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); }
.speed-table-wrap {
  max-width: 900px;
  margin: 0 auto;
  overflow-x: auto;
  border-radius: var(--radius);
  border: 1px solid var(--border);
}
.speed-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.9rem;
}
.speed-table thead { background: rgba(0,212,255,0.08); }
.speed-table th {
  padding: 16px 20px;
  text-align: left;
  font-family: var(--font-display);
  font-size: 0.75rem;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  color: var(--primary);
  border-bottom: 1px solid var(--border);
}
.speed-table td {
  padding: 14px 20px;
  border-bottom: 1px solid rgba(255,255,255,0.04);
  color: var(--text-secondary);
}
.speed-table tr:last-child td { border-bottom: none; }
.speed-table tr:hover td { background: rgba(255,255,255,0.02); color: var(--text-primary); }
.badge-speed {
  display: inline-block;
  padding: 3px 12px;
  border-radius: 20px;
  font-size: 0.75rem;
  font-weight: 700;
}
.badge-excellent { background: rgba(0,230,118,0.15); color: var(--success); }
.badge-good { background: rgba(0,212,255,0.15); color: var(--primary); }
.badge-fair { background: rgba(255,179,0,0.15); color: var(--warning); }
.badge-poor { background: rgba(255,61,87,0.15); color: var(--danger); }

/* =========================================
   STATS BANNER
========================================= */
#stats-banner {
  padding: 60px 24px;
  background: linear-gradient(135deg, rgba(0,212,255,0.06), rgba(124,58,237,0.06));
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}
.stats-row {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
  gap: 32px;
  max-width: 900px;
  margin: 0 auto;
  text-align: center;
}
.stats-item .number {
  font-family: var(--font-display);
  font-size: 2.5rem;
  font-weight: 900;
  color: var(--primary);
  line-height: 1;
  margin-bottom: 8px;
}
.stats-item .desc { color: var(--text-secondary); font-size: 0.9rem; }

/* =========================================
   FOOTER
========================================= */
#site-footer {
  background: rgba(0,0,0,0.4);
  border-top: 1px solid var(--border);
  padding: 60px 24px 24px;
}
.footer-grid {
  display: grid;
  grid-template-columns: 2fr repeat(3, 1fr);
  gap: 48px;
  max-width: var(--max-width);
  margin: 0 auto 48px;
}
.footer-brand .site-logo { margin-bottom: 16px; }
.footer-brand p { color: var(--text-secondary); font-size: 0.9rem; line-height: 1.7; max-width: 280px; }
.footer-col h4 {
  font-family: var(--font-display);
  font-size: 0.8rem;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--primary);
  margin-bottom: 16px;
}
.footer-col ul { display: flex; flex-direction: column; gap: 8px; }
.footer-col ul a { color: var(--text-secondary); font-size: 0.88rem; transition: var(--transition); }
.footer-col ul a:hover { color: var(--primary); padding-left: 4px; }
.footer-bottom {
  max-width: var(--max-width);
  margin: 0 auto;
  padding-top: 24px;
  border-top: 1px solid var(--border);
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px;
}
.footer-bottom p, .footer-bottom a { color: var(--text-muted); font-size: 0.82rem; }
.footer-bottom a:hover { color: var(--primary); }

/* =========================================
   PAGES (ABOUT, CONTACT, PRIVACY, TERMS)
========================================= */
.page-hero {
  padding: 140px 24px 80px;
  text-align: center;
  max-width: 700px;
  margin: 0 auto;
}
.page-hero h1 { font-size: clamp(2rem, 5vw, 3.2rem); margin-bottom: 16px; }
.page-hero p { color: var(--text-secondary); font-size: 1.05rem; line-height: 1.7; }

.page-content {
  max-width: 800px;
  margin: 0 auto;
  padding: 0 24px 100px;
}
.page-content h2 { font-size: 1.4rem; margin: 40px 0 16px; padding-bottom: 12px; border-bottom: 1px solid var(--border); font-family: var(--font-display); }
.page-content h3 { font-size: 1.1rem; margin: 28px 0 10px; color: var(--primary); font-family: var(--font-display); }
.page-content p { color: var(--text-secondary); line-height: 1.8; margin-bottom: 16px; }
.page-content ul { margin: 16px 0; padding-left: 20px; }
.page-content ul li { color: var(--text-secondary); line-height: 1.8; margin-bottom: 8px; list-style: disc; }
.page-content a { color: var(--primary); }
.page-content a:hover { text-decoration: underline; }

/* Contact Form */
.contact-form {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 40px;
  margin-top: 40px;
}
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.form-group { margin-bottom: 20px; }
.form-group label { display: block; font-size: 0.85rem; font-weight: 600; color: var(--text-secondary); margin-bottom: 8px; font-family: var(--font-display); letter-spacing: 0.5px; }
.form-group input,
.form-group textarea,
.form-group select {
  width: 100%;
  background: rgba(255,255,255,0.04);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 12px 16px;
  color: var(--text-primary);
  font-family: var(--font-body);
  font-size: 0.95rem;
  transition: var(--transition);
  outline: none;
}
.form-group input:focus,
.form-group textarea:focus {
  border-color: var(--primary);
  background: rgba(0,212,255,0.04);
  box-shadow: 0 0 0 3px rgba(0,212,255,0.1);
}
.form-group textarea { resize: vertical; min-height: 140px; }
.btn-submit {
  background: linear-gradient(135deg, var(--primary), var(--primary-dark));
  color: var(--bg-dark);
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 0.95rem;
  letter-spacing: 1px;
  padding: 14px 40px;
  border: none;
  border-radius: 50px;
  cursor: pointer;
  transition: var(--transition);
}
.btn-submit:hover { transform: translateY(-2px); box-shadow: 0 0 30px rgba(0,212,255,0.4); }

/* =========================================
   ANIMATIONS
========================================= */
@keyframes fadeSlideDown {
  from { opacity: 0; transform: translateY(-20px); }
  to { opacity: 1; transform: translateY(0); }
}
@keyframes fadeSlideUp {
  from { opacity: 0; transform: translateY(20px); }
  to { opacity: 1; transform: translateY(0); }
}
.fade-in { opacity: 0; transform: translateY(30px); transition: opacity 0.6s ease, transform 0.6s ease; }
.fade-in.visible { opacity: 1; transform: translateY(0); }

/* Network activity animation */
@keyframes dataFlow {
  0% { transform: translateX(-100%); opacity: 0; }
  50% { opacity: 1; }
  100% { transform: translateX(100%); opacity: 0; }
}
.data-flow-bar {
  position: absolute;
  height: 2px;
  width: 100%;
  background: linear-gradient(90deg, transparent, var(--primary), transparent);
  animation: dataFlow 2s ease-in-out infinite;
  bottom: 0; left: 0;
}

/* =========================================
   RESPONSIVE
========================================= */
@media (max-width: 1024px) {
  .footer-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 768px) {
  #site-nav { display: none; position: fixed; top: 70px; left: 0; right: 0; background: rgba(5,10,20,0.97); border-bottom: 1px solid var(--border); padding: 20px; }
  #site-nav.open { display: block; }
  #site-nav ul { flex-direction: column; gap: 4px; }
  #site-nav ul a { display: block; padding: 12px 16px; }
  .menu-toggle { display: flex; align-items: center; }
  .live-stats { grid-template-columns: repeat(3, 1fr); gap: 10px; }
  .results-grid { grid-template-columns: 1fr 1fr; }
  .form-row { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 32px; }
  .footer-brand { grid-column: 1 / -1; }
  .footer-bottom { flex-direction: column; text-align: center; }
  .ad-zone-sidebar { width: 100%; max-width: 100%; height: 100px; }
  .steps-wrapper::before { display: none; }
}
@media (max-width: 480px) {
  .results-grid { grid-template-columns: 1fr 1fr; gap: 12px; }
  .result-number { font-size: 1.6rem; }
  .live-stats { gap: 8px; }
  .stat-value { font-size: 1.1rem; }
  .footer-grid { grid-template-columns: 1fr; }
}

/* =========================================
   UTILITY CLASSES
========================================= */
.container { max-width: var(--max-width); margin: 0 auto; padding: 0 24px; }
.text-center { text-align: center; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0,0,0,0); border: 0; }
.highlight { color: var(--primary); }
.mt-4 { margin-top: 1rem; }
.mb-4 { margin-bottom: 1rem; }
