:root {
  --bg: #000000;
  --bg-gradient: radial-gradient(circle at 50% 0%, rgba(38, 166, 254, 0.1) 0%, #000000 75%);
  --card: #080c14;
  --card-highlight: #0d1424;
  --border: #162033;
  --border-accent: rgba(38, 166, 254, 0.45);
  --accent: #26a6fe;
  --accent-glow: #0593fc;
  --accent-gold: #ffd15b;
  --text: #f1f5f9;
  --text-heading: #ffffff;
  --muted: #94a3b8;
  --header-bg: rgba(0, 0, 0, 0.92);
  --font: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  --shadow-card: 0 8px 24px -4px rgba(0, 0, 0, 0.7);
  --shadow-accent: 0 0 20px rgba(38, 166, 254, 0.28);
  --shadow-card-hover: 0 10px 24px -4px rgba(0, 0, 0, 0.6), 0 0 18px rgba(255, 255, 255, 0.06);
  --shadow-card-gold-hover: 0 12px 28px -4px rgba(0, 0, 0, 0.55), 0 0 22px rgba(255, 255, 255, 0.09);
  --shadow-card-rated-hover: 0 14px 30px -4px rgba(0, 0, 0, 0.6), 0 0 26px rgba(255, 255, 255, 0.12);
}

:root[data-theme="light"] {
  --bg: #f8fafc;
  --bg-gradient: radial-gradient(circle at 50% 0%, rgba(2, 132, 199, 0.07) 0%, #f8fafc 70%);
  --card: #ffffff;
  --card-highlight: #f0f7ff;
  --border: #e2e8f0;
  --border-accent: rgba(2, 132, 199, 0.45);
  --accent: #0284c7;
  --accent-glow: #0369a1;
  --accent-gold: #d97706;
  --text: #1e293b;
  --text-heading: #0f172a;
  --muted: #64748b;
  --header-bg: rgba(248, 250, 252, 0.94);
  --shadow-card: 0 6px 16px -3px rgba(0, 0, 0, 0.06);
  --shadow-accent: 0 0 16px rgba(2, 132, 199, 0.18);
  --shadow-card-hover: 0 10px 24px -4px rgba(15, 23, 42, 0.14), 0 0 14px rgba(2, 132, 199, 0.1);
  --shadow-card-gold-hover: 0 12px 28px -4px rgba(15, 23, 42, 0.16), 0 0 16px rgba(2, 132, 199, 0.12);
  --shadow-card-rated-hover: 0 14px 30px -4px rgba(15, 23, 42, 0.18), 0 0 18px rgba(2, 132, 199, 0.14);
}

* { box-sizing: border-box; margin: 0; padding: 0; }

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

body {
  background: var(--bg);
  background-image: var(--bg-gradient);
  color: var(--text);
  font-family: var(--font);
  line-height: 1.6;
  transition: background-color 0.3s ease, color 0.3s ease;
  min-height: 100vh;
  padding-bottom: 1.5rem;
}

/* STICKY HEADER WITH CENTERED LINE & BLUR EFFECT */
.site-header {
  position: sticky;
  top: 0;
  z-index: 1000;
  background: var(--header-bg);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  padding: 0.65rem 1.15rem 0;
  transition: background 0.25s ease, box-shadow 0.25s ease;
  will-change: transform;
}

.site-header.is-scrolled {
  background: rgba(0, 0, 0, 0.9);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  box-shadow: 0 4px 20px -2px rgba(38, 166, 254, 0.2), 0 10px 25px -4px rgba(0, 0, 0, 0.7);
}

:root[data-theme="light"] .site-header.is-scrolled {
  background: rgba(248, 250, 252, 0.92);
  box-shadow: 0 4px 18px -2px rgba(2, 132, 199, 0.18), 0 8px 20px -4px rgba(0, 0, 0, 0.08);
}

/* Subtle gradient blur edge below header when scrolled */
.site-header::after {
  content: "";
  position: absolute;
  bottom: -16px;
  left: 0;
  width: 100%;
  height: 16px;
  background: linear-gradient(180deg, rgba(0, 0, 0, 0.35) 0%, transparent 100%);
  pointer-events: none;
  opacity: 0;
  transition: opacity 0.25s ease;
}
.site-header.is-scrolled::after {
  opacity: 1;
}
:root[data-theme="light"] .site-header::after {
  background: linear-gradient(180deg, rgba(248, 250, 252, 0.5) 0%, transparent 100%);
}

/* SCREEN BOTTOM BLUR FADE (SYMMETRICAL TO HEADER BLUR AT TOP) */
.screen-blur-bottom {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  width: 100%;
  height: 28px;
  pointer-events: none;
  z-index: 900;
  background: var(--header-bg);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  -webkit-mask-image: linear-gradient(to top, #000 55%, transparent 100%);
  mask-image: linear-gradient(to top, #000 55%, transparent 100%);
}

.header-inner {
  max-width: 780px;
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-bottom: 0.65rem;
  border-bottom: 1px solid var(--border);
  transition: border-color 0.25s ease;
}

.site-header.is-scrolled .header-inner {
  border-bottom-color: rgba(38, 166, 254, 0.4);
}
:root[data-theme="light"] .site-header.is-scrolled .header-inner {
  border-bottom-color: rgba(2, 132, 199, 0.35);
}

.logo {
  font-weight: 800;
  font-size: 1.05rem;
  color: var(--text-heading);
  text-decoration: none;
  letter-spacing: -0.02em;
  display: flex;
  align-items: center;
  gap: 6px;
}
.logo span {
  color: var(--accent);
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 8px;
}

.btn-theme-icon {
  background: transparent;
  border: 1px solid var(--border);
  color: var(--text-heading);
  width: 32px;
  height: 32px;
  border-radius: 99px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  font-size: 0.95rem;
  transition: transform 0.2s ease, border-color 0.2s ease, background 0.2s ease;
  padding: 0;
  line-height: 1;
}
.btn-theme-icon:hover {
  transform: scale(1.08);
  border-color: var(--accent);
  background: var(--card-highlight);
}

.btn-header {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  background: linear-gradient(135deg, var(--accent) 0%, var(--accent-glow) 100%);
  color: #ffffff;
  font-weight: 700;
  font-size: 0.84rem;
  padding: 0.38rem 0.95rem;
  border-radius: 99px;
  text-decoration: none;
  box-shadow: 0 2px 10px rgba(38, 166, 254, 0.3);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
  border: none;
}
.btn-header:hover {
  transform: translateY(-1px);
  box-shadow: 0 4px 16px rgba(38, 166, 254, 0.45);
}

/* PAGE CONTAINER */
.container {
  max-width: 780px;
  margin: 0 auto;
  padding: 1.65rem 1.15rem 0;
}

/* HERO */
@keyframes aiShimmer {
  0% { background-position: 0% 50%; }
  50% { background-position: 100% 50%; }
  100% { background-position: 0% 50%; }
}

h1 {
  font-size: clamp(1.75rem, 4.2vw, 2.35rem);
  font-weight: 900;
  line-height: 1.22;
  margin-bottom: 0.65rem;
  letter-spacing: -0.02em;
  color: var(--text-heading);
}
h1 span {
  background: linear-gradient(90deg, #26a6fe 0%, #60a5fa 25%, #ffd15b 50%, #38bdf8 75%, #26a6fe 100%);
  background-size: 250% auto;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  animation: aiShimmer 6s ease-in-out 3;
  animation-fill-mode: forwards;
  display: inline-block;
  filter: drop-shadow(0 0 20px rgba(38, 166, 254, 0.35));
}

p.lead {
  font-size: 1.02rem;
  color: var(--muted);
  margin-bottom: 1.45rem;
  line-height: 1.55;
}

/* CARD TEXT CLASSES (replaces inline styles) */
.card-text {
  margin-bottom: 0.75rem;
  color: var(--text);
}

.card-text-muted {
  margin-bottom: 0.75rem;
  color: var(--muted);
}

/* STYLISH CARDS WITH HOVER ANIMATIONS */
.card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 1.35rem 1.55rem;
  margin-bottom: 1.1rem;
  box-shadow: var(--shadow-card);
  transition: border-color 0.25s ease, transform 0.25s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.25s ease;
}
.card:hover {
  border-color: var(--border-accent);
  transform: translateY(-3px);
  box-shadow: var(--shadow-card-hover);
}

.card-gold {
  border-color: var(--border-accent);
  background: var(--card-highlight);
  position: relative;
  overflow: hidden;
}
.card-gold::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 3.5px;
  height: 100%;
  background: linear-gradient(180deg, var(--accent) 0%, var(--accent-glow) 100%);
}
.card-gold:hover {
  border-color: rgba(38, 166, 254, 0.65);
  box-shadow: var(--shadow-card-gold-hover);
}

/* RATED #1 DISTINCT HIGHLIGHT CARD */
.card-rated {
  border-color: rgba(38, 166, 254, 0.6);
  background: linear-gradient(145deg, #09101f 0%, #0d172e 60%, rgba(38, 166, 254, 0.1) 100%);
  position: relative;
  overflow: hidden;
  box-shadow: 0 0 24px rgba(38, 166, 254, 0.18), var(--shadow-card);
}
.card-rated::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 4px;
  height: 100%;
  background: linear-gradient(180deg, #38bdf8 0%, #26a6fe 50%, #ffd15b 100%);
}
.card-rated:hover {
  border-color: #38bdf8;
  box-shadow: var(--shadow-card-rated-hover);
}

:root[data-theme="light"] .card-rated {
  border-color: rgba(2, 132, 199, 0.55);
  background: linear-gradient(145deg, #f0f8ff 0%, #e0f2fe 70%, #eff6ff 100%);
  box-shadow: 0 0 16px rgba(2, 132, 199, 0.12), var(--shadow-card);
}
:root[data-theme="light"] .card-rated::before {
  background: linear-gradient(180deg, #0284c7 0%, #0369a1 100%);
}

h2 {
  font-size: 1.2rem;
  font-weight: 800;
  margin-bottom: 0.65rem;
  color: var(--text-heading);
  letter-spacing: -0.015em;
  display: flex;
  align-items: center;
  gap: 7px;
}

h3 {
  font-size: 0.98rem;
  font-weight: 700;
  color: var(--accent);
  margin: 0.8rem 0 0.4rem;
}

/* STYLISH LISTS */
ul {
  list-style: none;
  padding-left: 0;
}

li {
  position: relative;
  padding-left: 1.35rem;
  margin-bottom: 0.5rem;
  font-size: 0.94rem;
  color: var(--muted);
  line-height: 1.55;
  transition: transform 0.2s ease, color 0.2s ease;
}
li:last-child {
  margin-bottom: 0;
}
li:hover {
  transform: translateX(4px);
  color: var(--text);
}

li::before {
  content: "✦";
  position: absolute;
  left: 0;
  top: 0;
  color: var(--accent);
  font-size: 0.8rem;
  transition: transform 0.2s ease, color 0.2s ease;
  display: inline-block;
}
li:hover::before {
  color: var(--accent);
  transform: scale(1.25);
}

li strong {
  color: var(--text-heading);
  font-weight: 600;
}

li code {
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
  background: rgba(38, 166, 254, 0.12);
  color: var(--accent);
  padding: 1px 5px;
  border-radius: 4px;
  font-size: 0.9em;
}

/* AUDIT / PAGESPEED BUTTON (FOOTER) */
.btn-check-seo {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  background: linear-gradient(135deg, var(--accent) 0%, var(--accent-glow) 100%);
  color: #ffffff;
  font-weight: 700;
  font-size: 0.82rem;
  padding: 0.38rem 0.95rem;
  border-radius: 99px;
  text-decoration: none;
  box-shadow: 0 2px 10px rgba(38, 166, 254, 0.3);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
  border: none;
  cursor: pointer;
}
.btn-check-seo:hover {
  transform: translateY(-1px);
  box-shadow: 0 4px 16px rgba(38, 166, 254, 0.45);
  text-decoration: none;
}

:root[data-theme="light"] .btn-header,
:root[data-theme="light"] .btn-check-seo {
  color: #ffffff;
}

/* FOOTER WITH CENTERED SEPARATOR & SUBTLE BLUE BLUR ACCENT */
footer {
  margin-top: 2.25rem;
  padding-top: 1.25rem;
  padding-bottom: 1.25rem;
  border-top: 1px solid var(--border);
  font-size: 0.86rem;
  color: var(--muted);
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.65rem;
  position: relative;
  transition: border-color 0.25s ease;
}

footer::before {
  content: "";
  position: absolute;
  top: -1px;
  left: 0;
  width: 100%;
  height: 1px;
  background: linear-gradient(90deg, transparent 0%, rgba(38, 166, 254, 0.4) 50%, transparent 100%);
  pointer-events: none;
}

@media (prefers-reduced-motion: reduce) {
  h1 span { animation: none; }
  .card, li, .btn-header, .btn-check-seo { transition: none; transform: none !important; }
}

@media (max-width: 600px) {
  html { font-size: 14.5px; }
  .card { padding: 1.15rem 1.25rem; }
  .site-header { padding: 0.6rem 0.9rem 0; }
}

@media (max-width: 360px) {
  html { font-size: 13.8px; }
  .header-actions { gap: 4px; }
  .btn-header { font-size: 0.78rem; padding: 0.32rem 0.7rem; }
}
