/* ============================================
   SAHIOYE.COM — Main Hub Stylesheet
   ============================================ */

/* === Google Fonts === */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700;800;900&family=Space+Grotesk:wght@400;500;600;700&display=swap');

/* === CSS Variables === */
:root {
  --primary: #6366f1;
  --primary-dark: #4f46e5;
  --primary-light: #818cf8;
  --accent: #06d6a0;
  --accent-dark: #05b588;
  --bg-dark: #0a0a1a;
  --bg-nav: var(--bg-nav);
  --bg-card: #12122a;
  --bg-card-hover: #1a1a3e;
  --bg-surface: #0f0f23;
  --text-primary: #f1f1f7;
  --text-secondary: #a0a0c0;
  --text-muted: #6b6b8d;
  --border: rgba(99, 102, 241, 0.15);
  --border-hover: rgba(99, 102, 241, 0.35);
  --gradient-primary: linear-gradient(135deg, #6366f1, #06d6a0);
  --gradient-hero: linear-gradient(135deg, #0a0a1a 0%, #12122a 50%, #0f0f23 100%);
  --gradient-card-pdf: linear-gradient(135deg, #ef4444, #f97316);
  --gradient-card-calc: linear-gradient(135deg, #6366f1, #8b5cf6);
  --gradient-card-text: linear-gradient(135deg, #06d6a0, #22d3ee);
  --gradient-card-img: linear-gradient(135deg, #ec4899, #f43f5e);
  --gradient-card-seo: linear-gradient(135deg, #f59e0b, #eab308);
  --gradient-card-blog: linear-gradient(135deg, #3b82f6, #6366f1);
  --shadow-sm: 0 2px 8px rgba(0,0,0,0.3);
  --shadow-md: 0 4px 20px rgba(0,0,0,0.4);
  --shadow-lg: 0 8px 40px rgba(0,0,0,0.5);
  --shadow-glow: 0 0 30px rgba(99, 102, 241, 0.15);
  --radius-sm: 8px;
  --radius-md: 12px;
  --radius-lg: 16px;
  --radius-xl: 24px;
  --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

/* === Light Theme === */
[data-theme="light"] {
  --primary: #6366f1;
  --primary-dark: #4f46e5;
  --primary-light: #818cf8;
  --accent: #06d6a0;
  --accent-dark: #05b588;
  --bg-dark: #f8fafc;
  --bg-card: #ffffff;
  --bg-card-hover: #f1f5f9;
  --bg-surface: #f1f5f9;
  --bg-nav: rgba(255,255,255,0.85);
  --text-primary: #0f172a;
  --text-secondary: #475569;
  --text-muted: #94a3b8;
  --border: rgba(99, 102, 241, 0.12);
  --border-hover: rgba(99, 102, 241, 0.3);
  --gradient-hero: linear-gradient(135deg, #f8fafc 0%, #eef2ff 50%, #f1f5f9 100%);
  --shadow-sm: 0 2px 8px rgba(0,0,0,0.06);
  --shadow-md: 0 4px 20px rgba(0,0,0,0.08);
  --shadow-lg: 0 8px 40px rgba(0,0,0,0.1);
  --shadow-glow: 0 0 30px rgba(99, 102, 241, 0.08);
}

/* Hide orbs in light mode */
[data-theme="light"] .bg-particles { opacity: 0.3; }
[data-theme="light"] .orb { opacity: 0.15; }
[data-theme="light"] .hero-visual__orb { opacity: 0.4; }

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

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

body {
  font-family: 'Inter', -apple-system, sans-serif;
  background: var(--bg-dark);
  color: var(--text-primary);
  line-height: 1.6;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

a {
  text-decoration: none;
  color: inherit;
}

ul { list-style: none; }

img { max-width: 100%; display: block; }

/* === Animated Background === */
.bg-particles {
  position: fixed;
  top: 0; left: 0;
  width: 100%; height: 100%;
  z-index: 0;
  pointer-events: none;
  overflow: hidden;
}

.bg-particles .orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(80px);
  opacity: 0.12;
  animation: floatOrb 20s ease-in-out infinite;
}

.bg-particles .orb:nth-child(1) {
  width: 500px; height: 500px;
  background: var(--primary);
  top: -10%; left: -5%;
  animation-delay: 0s;
}

.bg-particles .orb:nth-child(2) {
  width: 400px; height: 400px;
  background: var(--accent);
  top: 50%; right: -10%;
  animation-delay: -7s;
}

.bg-particles .orb:nth-child(3) {
  width: 350px; height: 350px;
  background: #ec4899;
  bottom: -5%; left: 30%;
  animation-delay: -14s;
}

@keyframes floatOrb {
  0%, 100% { transform: translate(0, 0) scale(1); }
  25% { transform: translate(50px, -30px) scale(1.1); }
  50% { transform: translate(-20px, 50px) scale(0.95); }
  75% { transform: translate(30px, 20px) scale(1.05); }
}

/* === Container === */
.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
  position: relative;
  z-index: 1;
}

/* === Header/Navbar === */
.navbar {
  position: fixed;
  top: 0; left: 0;
  width: 100%;
  z-index: 1000;
  padding: 16px 0;
  transition: var(--transition);
  backdrop-filter: blur(20px);
  background: var(--bg-nav);
  border-bottom: 1px solid transparent;
}

.navbar.scrolled {
  padding: 10px 0;
  border-bottom: 1px solid var(--border);
  background: var(--bg-nav);
}

.navbar .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.navbar__logo {
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: 'Space Grotesk', sans-serif;
  font-size: 1.6rem;
  font-weight: 700;
}

.navbar__logo-icon {
  width: 36px; height: 36px;
  background: var(--gradient-primary);
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.2rem;
}

.navbar__logo-text {
  background: var(--gradient-primary);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.navbar__links {
  display: flex;
  align-items: center;
  gap: 32px;
}

.navbar__link {
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--text-secondary);
  transition: var(--transition);
  position: relative;
}

.navbar__link:hover {
  color: var(--text-primary);
}

.navbar__link::after {
  content: '';
  position: absolute;
  bottom: -4px; left: 0;
  width: 0; height: 2px;
  background: var(--gradient-primary);
  transition: width 0.3s ease;
}

.navbar__link:hover::after {
  width: 100%;
}

.navbar__cta {
  padding: 8px 20px;
  background: var(--gradient-primary);
  border-radius: var(--radius-sm);
  font-weight: 600;
  font-size: 0.85rem;
  color: white;
  transition: var(--transition);
}

.navbar__cta:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 15px rgba(99, 102, 241, 0.4);
}

.navbar__hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
  padding: 5px;
}

.navbar__hamburger span {
  width: 24px; height: 2px;
  background: var(--text-primary);
  transition: var(--transition);
  border-radius: 2px;
}

/* === Hero Section === */
.hero {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 120px 20px 80px;
  position: relative;
}

.hero__content {
  max-width: 800px;
}

.hero__badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 16px;
  background: rgba(99, 102, 241, 0.1);
  border: 1px solid var(--border);
  border-radius: 50px;
  font-size: 0.8rem;
  font-weight: 500;
  color: var(--primary-light);
  margin-bottom: 24px;
  animation: fadeInUp 0.6s ease;
}

.hero__badge-dot {
  width: 6px; height: 6px;
  background: var(--accent);
  border-radius: 50%;
  animation: pulse 2s ease-in-out infinite;
}

@keyframes pulse {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.5; transform: scale(1.5); }
}

.hero__title {
  font-family: 'Space Grotesk', sans-serif;
  font-size: clamp(2.5rem, 6vw, 4.2rem);
  font-weight: 800;
  line-height: 1.15;
  margin-bottom: 20px;
  animation: fadeInUp 0.6s ease 0.1s both;
}

.hero__title-gradient {
  background: var(--gradient-primary);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.hero__subtitle {
  font-size: 1.15rem;
  color: var(--text-secondary);
  max-width: 600px;
  margin: 0 auto 36px;
  line-height: 1.7;
  animation: fadeInUp 0.6s ease 0.2s both;
}

.hero__search {
  max-width: 560px;
  margin: 0 auto 40px;
  position: relative;
  animation: fadeInUp 0.6s ease 0.3s both;
}

.hero__search-input {
  width: 100%;
  padding: 16px 56px 16px 20px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  font-size: 1rem;
  color: var(--text-primary);
  font-family: 'Inter', sans-serif;
  transition: var(--transition);
  outline: none;
}

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

.hero__search-input:focus {
  border-color: var(--primary);
  box-shadow: var(--shadow-glow);
}

.hero__search-btn {
  position: absolute;
  right: 6px; top: 50%;
  transform: translateY(-50%);
  width: 44px; height: 44px;
  border: none;
  background: var(--gradient-primary);
  border-radius: var(--radius-md);
  color: white;
  font-size: 1.1rem;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: var(--transition);
}

.hero__search-btn:hover {
  transform: translateY(-50%) scale(1.05);
}

.hero__stats {
  display: flex;
  justify-content: center;
  gap: 48px;
  animation: fadeInUp 0.6s ease 0.4s both;
}

.hero__stat {
  text-align: center;
}

.hero__stat-number {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 1.8rem;
  font-weight: 700;
  background: var(--gradient-primary);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.hero__stat-label {
  font-size: 0.8rem;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 1px;
  margin-top: 4px;
}

@keyframes fadeInUp {
  from { opacity: 0; transform: translateY(20px); }
  to   { opacity: 1; transform: translateY(0); }
}

/* === Section Titles === */
.section {
  padding: 100px 0;
}

.section__header {
  text-align: center;
  margin-bottom: 56px;
}

.section__label {
  display: inline-block;
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 2px;
  color: var(--accent);
  margin-bottom: 12px;
}

.section__title {
  font-family: 'Space Grotesk', sans-serif;
  font-size: clamp(1.8rem, 4vw, 2.5rem);
  font-weight: 700;
  margin-bottom: 12px;
}

.section__desc {
  font-size: 1rem;
  color: var(--text-secondary);
  max-width: 550px;
  margin: 0 auto;
}

/* === Platform Cards (Subdomains) === */
.platforms {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.platform-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-xl);
  padding: 32px 28px;
  transition: var(--transition);
  position: relative;
  overflow: hidden;
  cursor: pointer;
}

.platform-card::before {
  content: '';
  position: absolute;
  top: 0; left: 0;
  width: 100%; height: 4px;
  opacity: 0;
  transition: opacity 0.3s ease;
}

.platform-card:hover {
  transform: translateY(-6px);
  border-color: var(--border-hover);
  box-shadow: var(--shadow-lg);
}

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

.platform-card--pdf::before   { background: var(--gradient-card-pdf); }
.platform-card--calc::before  { background: var(--gradient-card-calc); }
.platform-card--text::before  { background: var(--gradient-card-text); }
.platform-card--img::before   { background: var(--gradient-card-img); }
.platform-card--seo::before   { background: var(--gradient-card-seo); }
.platform-card--blog::before  { background: var(--gradient-card-blog); }

.platform-card__icon {
  width: 56px; height: 56px;
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  margin-bottom: 20px;
  color: white;
}

.platform-card--pdf .platform-card__icon   { background: var(--gradient-card-pdf); }
.platform-card--calc .platform-card__icon  { background: var(--gradient-card-calc); }
.platform-card--text .platform-card__icon  { background: var(--gradient-card-text); }
.platform-card--img .platform-card__icon   { background: var(--gradient-card-img); }
.platform-card--seo .platform-card__icon   { background: var(--gradient-card-seo); }
.platform-card--blog .platform-card__icon  { background: var(--gradient-card-blog); }

.platform-card__domain {
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 1px;
  text-transform: uppercase;
  color: var(--text-muted);
  margin-bottom: 8px;
}

.platform-card__title {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 1.3rem;
  font-weight: 700;
  margin-bottom: 10px;
}

.platform-card__desc {
  font-size: 0.88rem;
  color: var(--text-secondary);
  line-height: 1.6;
  margin-bottom: 20px;
}

.platform-card__tools {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-bottom: 20px;
}

.platform-card__tag {
  padding: 4px 10px;
  background: rgba(99,102,241,0.06);
  border-radius: 50px;
  font-size: 0.72rem;
  color: var(--text-secondary);
  border: 1px solid var(--border);
}

.platform-card__link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--primary-light);
  transition: var(--transition);
}

.platform-card__link:hover {
  gap: 10px;
  color: var(--accent);
}

/* === Trending Tools === */
.trending-tools {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
}

.tool-chip {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 16px 18px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  transition: var(--transition);
  cursor: pointer;
}

.tool-chip:hover {
  border-color: var(--border-hover);
  transform: translateY(-3px);
  box-shadow: var(--shadow-md);
}

.tool-chip__icon {
  width: 40px; height: 40px;
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1rem;
  flex-shrink: 0;
  color: white;
}

.tool-chip__name {
  font-size: 0.82rem;
  font-weight: 600;
}

.tool-chip__sub {
  font-size: 0.7rem;
  color: var(--text-muted);
  margin-top: 2px;
}

/* === Latest Blog Section === */
.blog-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.blog-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  transition: var(--transition);
}

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

.blog-card__img {
  width: 100%;
  height: 180px;
  object-fit: cover;
  background: var(--bg-surface);
}

.blog-card__body {
  padding: 20px;
}

.blog-card__cat {
  display: inline-block;
  padding: 3px 10px;
  background: rgba(99, 102, 241, 0.1);
  color: var(--primary-light);
  font-size: 0.7rem;
  font-weight: 600;
  border-radius: 50px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin-bottom: 10px;
}

.blog-card__title {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 1.05rem;
  font-weight: 600;
  margin-bottom: 8px;
  line-height: 1.4;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.blog-card__meta {
  font-size: 0.75rem;
  color: var(--text-muted);
}

/* Skeleton Loading */
.skeleton-pulse {
  background: linear-gradient(90deg, var(--bg-card) 25%, var(--bg-card-hover) 50%, var(--bg-card) 75%);
  background-size: 200% 100%;
  animation: shimmer 1.5s infinite;
}

@keyframes shimmer {
  0% { background-position: 200% 0; }
  100% { background-position: -200% 0; }
}

.blog-card--skeleton .blog-card__img {
  background: var(--bg-card-hover);
}

/* === Features / Why Section === */
.features {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
}

.feature-card {
  text-align: center;
  padding: 32px 20px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  transition: var(--transition);
}

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

.feature-card__icon {
  font-size: 2rem;
  margin-bottom: 16px;
}

.feature-card__title {
  font-family: 'Space Grotesk', sans-serif;
  font-weight: 700;
  font-size: 1rem;
  margin-bottom: 8px;
}

.feature-card__desc {
  font-size: 0.82rem;
  color: var(--text-secondary);
  line-height: 1.6;
}

/* === Footer === */
.footer {
  padding: 60px 0 30px;
  border-top: 1px solid var(--border);
  background: var(--bg-surface);
}

.footer__grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 48px;
  margin-bottom: 48px;
}

.footer__brand-desc {
  font-size: 0.85rem;
  color: var(--text-secondary);
  line-height: 1.7;
  margin-top: 16px;
  max-width: 300px;
}

.footer__heading {
  font-family: 'Space Grotesk', sans-serif;
  font-weight: 700;
  font-size: 0.9rem;
  margin-bottom: 16px;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: var(--text-primary);
}

.footer__link {
  display: block;
  font-size: 0.85rem;
  color: var(--text-secondary);
  margin-bottom: 10px;
  transition: var(--transition);
}

.footer__link:hover {
  color: var(--primary-light);
  padding-left: 4px;
}

.footer__bottom {
  text-align: center;
  padding-top: 24px;
  border-top: 1px solid var(--border);
  font-size: 0.8rem;
  color: var(--text-muted);
}

/* === Scroll Animations === */
.reveal {
  opacity: 0;
  transform: translateY(30px);
  transition: all 0.7s cubic-bezier(0.4, 0, 0.2, 1);
}

.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

/* === Responsive === */
@media (max-width: 1024px) {
  .platforms { grid-template-columns: repeat(2, 1fr); }
  .trending-tools { grid-template-columns: repeat(3, 1fr); }
  .features { grid-template-columns: repeat(2, 1fr); }
  .footer__grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 768px) {
  .navbar__links { 
    display: none; 
    position: absolute;
    top: 100%; left: 0;
    width: 100%;
    flex-direction: column;
    background: var(--bg-nav);
    backdrop-filter: blur(20px);
    padding: 20px;
    gap: 16px;
    border-bottom: 1px solid var(--border);
  }
  .navbar__links.active { display: flex; }
  .navbar__hamburger { display: flex; }

  .hero { padding: 100px 20px 60px; }
  .hero__title { font-size: 2.2rem; }
  .hero__stats { gap: 24px; }
  .hero__stat-number { font-size: 1.4rem; }

  .platforms { grid-template-columns: 1fr; }
  .trending-tools { grid-template-columns: repeat(2, 1fr); }
  .blog-grid { grid-template-columns: 1fr; }
  .features { grid-template-columns: 1fr; }
  .footer__grid { grid-template-columns: 1fr; gap: 32px; }

  .section { padding: 60px 0; }
}

@media (max-width: 480px) {
  .trending-tools { grid-template-columns: 1fr; }
  .hero__stats { flex-direction: column; gap: 16px; }
}

/* Light Theme — element-specific overrides for hardcoded colors */
[data-theme="light"] .platform-card { box-shadow: var(--shadow-sm); }
[data-theme="light"] .platform-card:hover { box-shadow: var(--shadow-md); }
[data-theme="light"] .tool-chip { box-shadow: var(--shadow-sm); }
[data-theme="light"] .feature-card { box-shadow: var(--shadow-sm); }
[data-theme="light"] .feature-card:hover { box-shadow: var(--shadow-md); }
[data-theme="light"] .blog-card { box-shadow: var(--shadow-sm); }
[data-theme="light"] .blog-card:hover { box-shadow: var(--shadow-md); }
[data-theme="light"] .lr-pre-footer { background: linear-gradient(135deg, #eef2ff 0%, #e0e7ff 100%); }
[data-theme="light"] .hero-visual__card { background: var(--bg-card); box-shadow: var(--shadow-md); }
[data-theme="light"] .mega-footer { background: #0f172a; color: #f1f5f9; }
[data-theme="light"] .mega-footer a { color: #94a3b8; }
[data-theme="light"] .mega-footer a:hover { color: #6366f1; }
[data-theme="light"] .mega-footer .footer-col__title { color: #f1f5f9; }
[data-theme="light"] .mega-footer .footer-brand__desc { color: #94a3b8; }
[data-theme="light"] .mega-footer .footer-copyright { color: #64748b; }
[data-theme="light"] .text-gradient { background: linear-gradient(135deg, #4f46e5, #7c3aed); -webkit-background-clip: text; background-clip: text; }

/* === Theme Toggle UI === */
.theme-dropdown { position: relative; display: inline-block; margin-left: auto; }
.theme-menu {
  position: absolute; top: 100%; right: 0; margin-top: 8px;
  background: var(--bg-card); border: 1px solid var(--border);
  border-radius: var(--radius-md); padding: 8px; min-width: 130px;
  box-shadow: var(--shadow-md); display: none; z-index: 1000;
  flex-direction: column; gap: 4px;
}
.theme-menu.active { display: flex; }
.theme-option {
  background: transparent; border: none; color: var(--text-secondary);
  padding: 8px 12px; text-align: left; border-radius: 6px;
  cursor: pointer; font-size: 0.85rem; font-family: 'Inter', sans-serif;
  transition: var(--transition); display: flex; align-items: center; gap: 8px;
}
.theme-option:hover, .theme-option.active {
  background: rgba(128, 128, 128, 0.1); color: var(--text-primary);
}
.theme-btn {
  background: none; border: none; color: var(--text-secondary);
  font-family: inherit; font-size: 0.85rem; font-weight: 600;
  cursor: pointer; display: flex; align-items: center; gap: 6px;
  transition: var(--transition); padding: 4px 8px; border-radius: 6px;
}
.theme-btn:hover { color: var(--text-primary); background: rgba(128, 128, 128, 0.1); }

/* ============================================
   REDESIGNED: MDN 2-Tier Header
   ============================================ */
.site-header {
  position: fixed; top: 0; left: 0; width: 100%; z-index: 1000;
  transition: var(--transition);
}
.site-header.scrolled { box-shadow: 0 2px 20px rgba(0,0,0,0.15); }

.header-container { max-width: 1200px; margin: 0 auto; padding: 0 24px; display: flex; align-items: center; justify-content: space-between; }

/* Tier 1 */
.header-top {
  padding: 10px 0;
  background: var(--bg-nav, rgba(10,10,26,0.92));
  backdrop-filter: blur(20px); -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--border);
}
.header-logo { display: flex; align-items: center; gap: 8px; text-decoration: none; flex-shrink: 0; }
.header-logo__icon { width: 32px; height: 32px; background: var(--gradient-primary); border-radius: var(--radius-sm); display: flex; align-items: center; justify-content: center; font-size: 1rem; }
.header-logo__text { font-family: 'Space Grotesk', sans-serif; font-size: 1.3rem; font-weight: 700; background: var(--gradient-primary); -webkit-background-clip: text; -webkit-text-fill-color: transparent; background-clip: text; }

.header-nav { display: flex; align-items: center; gap: 6px; }
.header-nav__link { font-size: 0.82rem; font-weight: 500; color: var(--text-secondary); padding: 6px 10px; border-radius: 6px; text-decoration: none; transition: var(--transition); white-space: nowrap; }
.header-nav__link:hover { color: var(--text-primary); background: rgba(128,128,128,0.08); }
.header-nav__link--active { color: var(--text-primary); text-decoration: underline; text-underline-offset: 4px; }

.header-actions { display: flex; align-items: center; gap: 12px; }
.header-search {
  display: flex; align-items: center; background: var(--bg-card); border: 1px solid var(--border);
  border-radius: 20px; padding: 5px 12px; gap: 6px;
}
.header-search__input {
  border: none; background: transparent; outline: none; font-size: 0.82rem; width: 140px;
  color: var(--text-primary); font-family: 'Inter', sans-serif;
}
.header-search__input::placeholder { color: var(--text-muted); }
.header-search__icon { font-size: 0.85rem; cursor: pointer; }
.header-search__underscore { font-size: 0.9rem; color: var(--text-muted); font-family: monospace; }

/* MDN-style chevron */
.nav-chevron { font-size: 0.7rem; color: var(--text-muted); margin-left: 2px; transition: var(--transition); }

.header-hamburger { display: none; flex-direction: column; gap: 4px; cursor: pointer; padding: 5px; }
.header-hamburger span { width: 20px; height: 2px; background: var(--text-primary); border-radius: 2px; }

/* Tier 2 */
.header-bottom {
  padding: 6px 0;
  background: var(--bg-card);
  border-bottom: 1px solid var(--border);
}
.header-bottom .header-container { display: flex; justify-content: space-between; align-items: center; }
.header-context { font-size: 0.8rem; font-weight: 600; color: var(--text-primary); }
.header-utils { display: flex; align-items: center; gap: 16px; }
.header-util-link { font-size: 0.8rem; font-weight: 500; color: var(--text-secondary); text-decoration: none; transition: var(--transition); }
.header-util-link:hover { color: var(--text-primary); }

/* ============================================
   REDESIGNED: Split Hero Layout
   ============================================ */
.lr-container { max-width: 1200px; margin: 0 auto; padding: 0 24px; }

.lr-hero {
  padding: 120px 0 80px;
  background: var(--bg-dark);
  position: relative;
  overflow: hidden;
}
.lr-hero::before {
  content: ''; position: absolute; top: 10%; left: 30%; transform: translateX(-50%);
  width: 600px; height: 600px; background: radial-gradient(circle, rgba(99,102,241,0.08) 0%, transparent 70%);
  pointer-events: none;
}

.hero-split {
  display: grid; grid-template-columns: 1fr 1fr; gap: 60px; align-items: center;
}
.hero-left { text-align: left; }
.hero-left .eyebrow { margin-bottom: 28px; }
.hero-left .hero-subtitle { margin-left: 0; margin-right: 0; }
.hero-left .hero-ctas { justify-content: flex-start; }
.hero-left .hero-stats { justify-content: flex-start; gap: 40px; }

.hero-right { position: relative; display: flex; align-items: center; justify-content: center; min-height: 400px; }

.hero-visual { position: relative; width: 100%; height: 400px; }
.hero-visual__orb {
  position: absolute; top: 50%; left: 50%; transform: translate(-50%, -50%);
  width: 280px; height: 280px;
  background: radial-gradient(circle, rgba(99,102,241,0.2) 0%, rgba(192,132,252,0.1) 50%, transparent 70%);
  border-radius: 50%; filter: blur(40px); animation: orbPulse 4s ease-in-out infinite;
}
@keyframes orbPulse { 0%, 100% { transform: translate(-50%,-50%) scale(1); opacity: 0.6; } 50% { transform: translate(-50%,-50%) scale(1.15); opacity: 1; } }

.hero-visual__card {
  position: absolute; background: var(--bg-card); border: 1px solid var(--border);
  border-radius: 12px; padding: 14px 20px; font-size: 0.9rem; font-weight: 600;
  color: var(--text-primary); display: flex; align-items: center; gap: 10px;
  box-shadow: 0 8px 32px rgba(0,0,0,0.2); backdrop-filter: blur(10px);
  animation: cardFloat 6s ease-in-out infinite; white-space: nowrap;
}
.hero-visual__card span { font-weight: 500; }
.hero-visual__card--1 { top: 10%; left: 10%; animation-delay: 0s; }
.hero-visual__card--2 { top: 30%; right: 5%; animation-delay: 1s; }
.hero-visual__card--3 { top: 55%; left: 5%; animation-delay: 2s; }
.hero-visual__card--4 { top: 75%; right: 10%; animation-delay: 3s; }
.hero-visual__card--5 { top: 45%; left: 35%; animation-delay: 0.5s; }
@keyframes cardFloat {
  0%, 100% { transform: translateY(0px); }
  50% { transform: translateY(-12px); }
}

.hero-content { max-width: 800px; margin: 0 auto; position: relative; z-index: 1; }

.eyebrow {
  display: inline-block; font-size: 0.85rem; font-weight: 700; letter-spacing: 0.5px;
  color: var(--primary); background: rgba(99,102,241,0.1); padding: 8px 18px;
  border-radius: 20px; margin-bottom: 28px;
}
.hero-title {
  font-family: 'Space Grotesk', sans-serif; font-size: clamp(2.2rem, 4.5vw, 3.8rem);
  font-weight: 800; line-height: 1.1; letter-spacing: -1px; margin-bottom: 24px; color: var(--text-primary);
}
.text-gradient { background: linear-gradient(135deg, #6366f1, #c084fc); -webkit-background-clip: text; -webkit-text-fill-color: transparent; background-clip: text; }
.hero-subtitle { font-size: 1.1rem; color: var(--text-secondary); line-height: 1.7; margin-bottom: 36px; max-width: 520px; }

.hero-ctas { display: flex; gap: 16px; margin-bottom: 48px; flex-wrap: wrap; }
.btn { padding: 14px 28px; font-size: 1rem; font-weight: 600; border-radius: 8px; cursor: pointer; transition: var(--transition); text-decoration: none; display: inline-flex; align-items: center; gap: 6px; border: none; }
.btn-primary { background: var(--primary); color: #fff; box-shadow: 0 4px 14px rgba(99,102,241,0.35); }
.btn-primary:hover { background: var(--primary-dark); transform: translateY(-2px); }
.btn-secondary { background: transparent; color: var(--text-primary); border: 1px solid var(--border); }
.btn-secondary:hover { border-color: var(--border-hover); background: var(--bg-card); }

.hero-stats { display: flex; gap: 48px; }
.hero-stat { text-align: center; }
.hero-stat__number { font-family: 'Space Grotesk', sans-serif; font-size: 2.5rem; font-weight: 800; background: var(--gradient-primary); -webkit-background-clip: text; -webkit-text-fill-color: transparent; background-clip: text; }
.hero-stat__label { font-size: 0.8rem; color: var(--text-muted); text-transform: uppercase; letter-spacing: 1px; margin-top: 4px; }

/* Blog card styles */
.blog-card { text-decoration: none; color: inherit; display: flex; flex-direction: column; background: var(--bg-card); border: 1px solid var(--border); border-radius: var(--radius-md); overflow: hidden; transition: var(--transition); }
.blog-card:hover { transform: translateY(-4px); box-shadow: 0 8px 32px rgba(0,0,0,0.2); border-color: rgba(99,102,241,0.3); }
.blog-card__img { height: 180px; background-size: cover; background-position: center; background-color: var(--bg-surface); }
.blog-card__body { padding: 20px; flex: 1; display: flex; flex-direction: column; }
.blog-card__cat { font-size: 0.75rem; font-weight: 700; color: var(--primary); text-transform: uppercase; letter-spacing: 0.5px; margin-bottom: 8px; }
.blog-card__title { font-family: 'Space Grotesk', sans-serif; font-size: 1.1rem; font-weight: 700; color: var(--text-primary); margin-bottom: 8px; line-height: 1.35; }
.blog-card__excerpt { font-size: 0.85rem; color: var(--text-secondary); line-height: 1.6; flex: 1; margin-bottom: 12px; }
.blog-card__date { font-size: 0.75rem; color: var(--text-muted); }

/* Responsive hero split */
@media (max-width: 900px) {
  .hero-split { grid-template-columns: 1fr; gap: 40px; }
  .hero-left { text-align: center; }
  .hero-left .hero-ctas { justify-content: center; }
  .hero-left .hero-stats { justify-content: center; }
  .hero-left .hero-subtitle { margin-left: auto; margin-right: auto; }
  .hero-right { min-height: 280px; }
  .hero-visual { height: 280px; }
}
@media (max-width: 600px) {
  .hero-left .hero-stats { flex-direction: column; gap: 16px; }
  .hero-right { display: none; }
}

/* ============================================
   REDESIGNED: Pre-Footer CTA
   ============================================ */
.lr-pre-footer {
  padding: 80px 0; background: var(--bg-card); border-top: 1px solid var(--border);
}

/* ============================================
   REDESIGNED: Mega Footer
   ============================================ */
.mega-footer {
  background: var(--bg-dark); padding: 60px 0 32px; border-top: 1px solid var(--border);
}
.footer-grid {
  display: grid; grid-template-columns: 1.5fr 1fr 1fr 1fr; gap: 40px; margin-bottom: 48px;
}
.footer-brand { display: flex; align-items: center; gap: 8px; margin-bottom: 16px; }
.footer-brand__desc { font-size: 0.85rem; color: var(--text-secondary); line-height: 1.6; }

.footer-col__title { font-size: 0.85rem; font-weight: 700; color: var(--text-muted); text-transform: uppercase; letter-spacing: 1.5px; margin-bottom: 20px; }
.footer-col__links { list-style: none; padding: 0; margin: 0; display: flex; flex-direction: column; gap: 12px; }
.footer-col__links a { text-decoration: none; color: var(--text-secondary); font-size: 0.88rem; transition: var(--transition); }
.footer-col__links a:hover { color: var(--text-primary); }

.footer-legal {
  display: flex; justify-content: space-between; align-items: center;
  padding-top: 24px; border-top: 1px solid var(--border); font-size: 0.8rem; color: var(--text-muted);
}
.footer-copyright { color: var(--text-muted); }
.footer-legal__links { display: flex; gap: 24px; }
.footer-legal__links a { color: var(--text-muted); text-decoration: none; transition: var(--transition); }
.footer-legal__links a:hover { color: var(--text-secondary); }

/* ============================================
   Responsive Overrides for Redesign
   ============================================ */
@media (max-width: 900px) {
  .header-nav { display: none; position: fixed; top: 0; left: 0; width: 100%; height: 100vh; background: var(--bg-dark); flex-direction: column; align-items: center; justify-content: center; gap: 16px; z-index: 999; }
  .header-nav.active { display: flex; }
  .header-nav__link { font-size: 1.1rem; padding: 12px 20px; }
  .header-search { display: none; }
  .header-hamburger { display: flex; z-index: 1001; }
  .header-bottom { display: none; }
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 32px; }
  .hero-title { font-size: 2.5rem; }
  .hero-ctas { flex-direction: column; align-items: center; }
  .hero-stats { gap: 24px; }
}
@media (max-width: 600px) {
  .footer-grid { grid-template-columns: 1fr; }
  .footer-legal { flex-direction: column; align-items: flex-start; gap: 12px; }
  .hero-stats { flex-direction: column; gap: 16px; }
}

