/* ─── TOKENS ─────────────────────────────────────────────── */
:root {
  --bg: #0d0f14;
  --surface: #141823;
  --surface-soft: #1b2030;
  --text: #f4f8fa;
  --muted: #b9c1d1;
  --primary: #ec2028;
  --primary-glow: rgba(236,32,40,.55);
  --accent: #e49d12;
  --accent-glow: rgba(228,157,18,.45);
  --line: #2a3144;
  --success: #2fd27a;
  --radius: 18px;
  --ease: cubic-bezier(.22,.68,0,1.2);
}

/* ─── RESET ──────────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; font-size: 16px; }
body {
  font-family: "Manrope", "Segoe UI", sans-serif;
  color: var(--text);
  background: var(--bg);
  min-height: 100vh;
  overflow-x: hidden;
}

/* ─── ANIMATED MESH BACKGROUND ──────────────────────────── */
body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -2;
  background:
    radial-gradient(ellipse 80% 60% at 15% 20%, rgba(236,32,40,.22), transparent),
    radial-gradient(ellipse 60% 50% at 80% 0%,  rgba(228,157,18,.15), transparent),
    radial-gradient(ellipse 50% 70% at 90% 90%, rgba(236,32,40,.08), transparent),
    var(--bg);
}
/* SVG dot-grid overlay */
body::after {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -1;
  background-image: radial-gradient(circle, rgba(255,255,255,.055) 1px, transparent 1px);
  background-size: 32px 32px;
  pointer-events: none;
}

/* ─── TYPOGRAPHY ─────────────────────────────────────────── */
h1, h2, h3, h4 { line-height: 1.12; letter-spacing: -.02em; }

/* Gradient heading text */
.gradient-text {
  background: linear-gradient(100deg, #fff 30%, var(--primary) 70%, var(--accent) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

/* ─── LAYOUT ─────────────────────────────────────────────── */
.container { width: min(1150px, 92%); margin: 0 auto; }
section { padding: 80px 0; }

/* ─── GLASS CARD ─────────────────────────────────────────── */
.glass {
  position: relative;
  background: linear-gradient(145deg, rgba(255,255,255,.065), rgba(255,255,255,.018));
  border: 1px solid rgba(255,255,255,.1);
  backdrop-filter: blur(14px);
  border-radius: var(--radius);
  overflow: hidden;
  transition: border-color .3s, transform .3s var(--ease), box-shadow .3s;
}
.glass::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(255,255,255,.06) 0%, transparent 60%);
  pointer-events: none;
}
/* Shine sweep on hover */
.glass::after {
  content: "";
  position: absolute;
  top: -50%; left: -75%;
  width: 50%; height: 200%;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,.08), transparent);
  transform: skewX(-20deg);
  transition: left .55s ease;
  pointer-events: none;
}
.glass:hover::after { left: 130%; }
.glass:hover {
  border-color: rgba(236,32,40,.35);
  box-shadow: 0 8px 40px rgba(236,32,40,.12), 0 2px 12px rgba(0,0,0,.3);
  transform: translateY(-3px);
}

/* ─── TOPNAV ─────────────────────────────────────────────── */
.topnav {
  position: sticky;
  top: 0;
  z-index: 99;
  background: rgba(9,11,16,.86);
  border-bottom: 1px solid rgba(255,255,255,.08);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
}
.topnav .container { display: flex; justify-content: space-between; align-items: center; padding: 10px 0; gap: 20px; }
.logo {
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  flex-shrink: 0;
}
.logo img {
  display: block;
  height: 42px;
  width: auto;
}
.navlinks { display: flex; gap: 30px; flex-wrap: nowrap; align-items: center; }
.navlinks a {
  color: rgba(255,255,255,.86);
  text-decoration: none;
  font-size: 1.04rem;
  font-weight: 700;
  position: relative;
  padding-bottom: 0;
  letter-spacing: .01em;
  transition: color .2s;
}
.navlinks a::after {
  content: "";
  position: absolute;
  bottom: -10px; left: 0;
  width: 0; height: 2px;
  background: linear-gradient(90deg, #ec2028, #ff5b61);
  border-radius: 2px;
  transition: width .3s var(--ease);
}
.navlinks a:hover { color: var(--text); }
.navlinks a:hover::after { width: 100%; }
/* Active nav link */
.navlinks a.nav-active { color: var(--text); }
.navlinks a.nav-active::after { width: 100%; }

/* ─── HAMBURGER MENU ─────────────────────────────────────── */
.nav-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 6px;
  z-index: 110;
}
.nav-toggle span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--text);
  border-radius: 2px;
  transition: transform .3s var(--ease), opacity .2s, width .3s;
  transform-origin: center;
}
.nav-toggle.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle.open span:nth-child(2) { opacity: 0; width: 0; }
.nav-toggle.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

@media (max-width: 820px) {
  .nav-toggle { display: flex; }
  .logo img { height: 36px; }
  .navlinks {
    position: fixed;
    top: 0; right: -100%;
    width: min(320px, 80vw);
    height: 100vh;
    background: rgba(13,15,20,.97);
    backdrop-filter: blur(20px);
    border-left: 1px solid var(--line);
    flex-direction: column;
    align-items: flex-start;
    gap: 0;
    padding: 80px 28px 40px;
    z-index: 100;
    transition: right .35s var(--ease);
    flex-wrap: nowrap;
  }
  .navlinks.nav-open { right: 0; }
  .navlinks a {
    font-size: 1.1rem;
    padding: 14px 0;
    border-bottom: 1px solid rgba(255,255,255,.06);
    width: 100%;
  }
  .navlinks a::after { bottom: 0; }
  /* Overlay behind nav — must be below .topnav (z-index 99) so it doesn't block nav links */
  .nav-overlay {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,.6);
    z-index: 98;
  }
  .nav-overlay.active { display: block; }
}

/* ─── BUTTONS ────────────────────────────────────────────── */
.btn {
  position: relative;
  border: 0;
  border-radius: 999px;
  padding: 13px 26px;
  font-weight: 700;
  font-size: .95rem;
  cursor: pointer;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  overflow: hidden;
  transition: transform .25s var(--ease), filter .2s, box-shadow .3s;
}
.btn::after {
  content: "";
  position: absolute;
  inset: 0;
  background: rgba(255,255,255,.15);
  opacity: 0;
  border-radius: inherit;
  transition: opacity .2s;
}
.btn:hover::after { opacity: 1; }
.btn-primary {
  background: linear-gradient(110deg, var(--primary) 0%, #ff4c52 60%, #ff2e35 100%);
  color: #fff;
  box-shadow: 0 4px 24px rgba(236,32,40,.45), 0 1px 4px rgba(0,0,0,.3);
}
.btn-primary:hover {
  transform: translateY(-2px) scale(1.03);
  box-shadow: 0 8px 36px rgba(236,32,40,.6), 0 2px 8px rgba(0,0,0,.4);
}
.btn-secondary {
  background: linear-gradient(110deg, var(--accent) 0%, #f4b636 100%);
  color: #1a1a1a;
  box-shadow: 0 4px 24px rgba(228,157,18,.38);
}
.btn-secondary:hover {
  transform: translateY(-2px) scale(1.03);
  box-shadow: 0 8px 36px rgba(228,157,18,.55);
}
/* Pulse ring on primary CTA */
.btn-primary::before {
  content: "";
  position: absolute;
  inset: -4px;
  border-radius: inherit;
  border: 2px solid rgba(236,32,40,.4);
  animation: pulse-ring 2.2s ease-out infinite;
  pointer-events: none;
}
@keyframes pulse-ring {
  0%   { transform: scale(.95); opacity: .7; }
  70%  { transform: scale(1.1);  opacity: 0; }
  100% { transform: scale(1.1);  opacity: 0; }
}

/* ─── HERO ───────────────────────────────────────────────── */
.hero {
  padding: 100px 0 90px;
  position: relative;
}
#hero-canvas {
  position: absolute;
  inset: 0;
  width: 100%; height: 100%;
  pointer-events: none;
  opacity: .55;
}
.hero-blob {
  position: absolute;
  width: 460px; height: 460px;
  border-radius: 50%;
  filter: blur(60px);
  background: radial-gradient(circle, rgba(236,32,40,.55), transparent 65%);
  top: -140px; right: -100px;
  pointer-events: none;
  animation: float 8s ease-in-out infinite;
}
.hero-blob-2 {
  position: absolute;
  width: 280px; height: 280px;
  border-radius: 50%;
  filter: blur(50px);
  background: radial-gradient(circle, rgba(228,157,18,.35), transparent 65%);
  bottom: -60px; left: 10%;
  pointer-events: none;
  animation: float 10s ease-in-out infinite reverse;
}
@keyframes float {
  0%,100% { transform: translate(0,0); }
  50%      { transform: translate(-22px, 18px); }
}
.hero-grid { display: grid; grid-template-columns: 1.2fr 1fr; gap: 32px; align-items: center; position: relative; z-index: 1; }
.hero h1 {
  font-size: clamp(2rem, 3.8vw, 3.4rem);
  line-height: 1.1;
  margin-bottom: 22px;
}
.hero p { color: var(--muted); font-size: 1.12rem; line-height: 1.7; margin-bottom: 36px; }
.cta-row { display: flex; gap: 14px; flex-wrap: wrap; }
.stat-card { padding: 32px; }
.stat-grid { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 14px; }
.stat {
  padding: 20px;
  background: rgba(255,255,255,.03);
  border-radius: 12px;
  border: 1px solid rgba(255,255,255,.07);
  transition: background .3s, border-color .3s;
}
.stat:hover {
  background: rgba(255,255,255,.06);
  border-color: rgba(236,32,40,.3);
}
.stat strong {
  font-size: 1.7rem;
  margin-bottom: 4px;
  display: block;
  background: linear-gradient(90deg, #fff, var(--accent));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

/* ─── SECTION TITLES ─────────────────────────────────────── */
.section-title {
  font-size: 2rem;
  margin-bottom: 32px;
  position: relative;
  display: inline-block;
}
.section-title::after {
  content: "";
  position: absolute;
  left: 0; bottom: -10px;
  width: 44px; height: 3px;
  background: linear-gradient(90deg, var(--primary), var(--accent));
  border-radius: 2px;
}
.section-lead { color: var(--muted); max-width: 720px; margin: 28px 0 40px; line-height: 1.78; font-size: 1.06rem; }

/* ─── TRUST BAR ──────────────────────────────────────────── */
.trustbar { display: grid; grid-template-columns: repeat(4,minmax(0,1fr)); gap: 16px; }
.trust-item {
  text-align: center;
  padding: 24px 18px;
  font-weight: 700;
  letter-spacing: .03em;
  transition: background .3s, transform .3s var(--ease);
}
.trust-item:hover { transform: translateY(-4px); }

/* ─── CLIENT LOGOS STRIP ─────────────────────────────────── */
.client-logos {
  display: flex;
  gap: 12px;
  overflow-x: clip;
  overflow-y: visible;
  padding: 4px 0;
  position: relative;
  isolation: isolate;
}
.client-logos-track {
  display: flex;
  gap: 12px;
  min-width: max-content;
  animation: client-logos-scroll 28s linear infinite;
  position: relative;
}
.client-logos:hover .client-logos-track {
  animation-play-state: paused;
}
@keyframes client-logos-scroll {
  from { transform: translateX(0); }
  to { transform: translateX(calc(-100% - 12px)); }
}
.client-logo-item {
  text-decoration: none;
  color: inherit;
  min-height: 84px;
  min-width: clamp(140px, 15vw, 190px);
  position: relative;
  border-radius: 12px;
  border: 1px solid rgba(255,255,255,.06);
  background: linear-gradient(180deg, rgba(255,255,255,.01), rgba(255,255,255,.015));
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 8px;
  transition: transform .28s var(--ease), border-color .28s var(--ease), background .28s var(--ease);
}
.client-logo-text {
  font-size: clamp(.84rem, 1.3vw, 1.1rem);
  font-weight: 800;
  letter-spacing: .03em;
  color: rgba(245,247,250,.42);
  filter: grayscale(1);
  transition: color .28s var(--ease), filter .28s var(--ease), transform .28s var(--ease);
  text-align: center;
}
.client-logo-badge {
  opacity: 0;
  transform: translateY(5px);
  border-radius: 999px;
  border: 1px solid rgba(236,32,40,.26);
  background: rgba(236,32,40,.08);
  color: rgba(255,175,179,.95);
  font-size: .7rem;
  font-weight: 700;
  letter-spacing: .04em;
  padding: 3px 9px;
  transition: opacity .24s var(--ease), transform .24s var(--ease), background .24s var(--ease);
}
.client-logo-item:hover,
.client-logo-item:focus-visible {
  transform: translateY(-2px);
  border-color: rgba(255,255,255,.16);
  background: linear-gradient(180deg, rgba(255,255,255,.045), rgba(255,255,255,.015));
  z-index: 20;
}
.client-logo-item:hover .client-logo-text,
.client-logo-item:focus-visible .client-logo-text {
  color: rgba(245,247,250,.88);
  filter: grayscale(0);
  transform: translateY(-1px);
}
.client-logo-item:hover .client-logo-badge,
.client-logo-item:focus-visible .client-logo-badge {
  opacity: 1;
  transform: translateY(0);
}
.client-logo-popup {
  position: absolute;
  left: 50%;
  bottom: calc(100% + 12px);
  width: min(290px, 78vw);
  padding: 16px 16px 14px;
  border-radius: 14px;
  border: 1px solid rgba(255,255,255,.12);
  background: #050608;
  box-shadow: 0 20px 45px rgba(0,0,0,.5);
  transform: translate(-50%, 8px);
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: opacity .24s var(--ease), transform .24s var(--ease);
  z-index: 30;
}
.client-logo-popup::after {
  content: "";
  position: absolute;
  left: 50%;
  bottom: -7px;
  width: 14px;
  height: 14px;
  background: #050608;
  border-right: 1px solid rgba(255,255,255,.12);
  border-bottom: 1px solid rgba(255,255,255,.12);
  transform: translateX(-50%) rotate(45deg);
}
.client-logo-popup p {
  margin: 0 0 10px;
  color: #d7dde7;
  line-height: 1.55;
  font-size: .88rem;
}
.client-logo-popup strong {
  display: block;
  color: #f2f6fa;
  font-size: .84rem;
  margin-bottom: 8px;
}
.client-logo-popup span {
  color: #ff7c3a;
  font-size: .82rem;
  font-weight: 700;
}
.client-logo-item:hover .client-logo-popup,
.client-logo-item:focus-visible .client-logo-popup,
.client-logo-item:focus-within .client-logo-popup {
  opacity: 1;
  visibility: visible;
  transform: translate(-50%, 0);
}

@media (prefers-reduced-motion: reduce) {
  .client-logos-track {
    animation: none;
  }
}

/* ─── SERVICE SYSTEM ─────────────────────────────────────── */
.service-system { display: grid; grid-template-columns: repeat(4,minmax(0,1fr)); gap: 18px; }
.card { padding: 28px; }
.card h3 { margin-bottom: 12px; font-size: 1.08rem; }
.card p { color: var(--muted); line-height: 1.72; margin-top: 0; }

/* ─── PREVIEW GRID ───────────────────────────────────────── */
.preview-grid, .case-grid, .process-grid, .why-grid,
.testimonial-grid, .blog-grid, .service-pages-grid { display: grid; gap: 20px; }
.preview-grid, .service-pages-grid { grid-template-columns: repeat(2,minmax(0,1fr)); }
.case-grid, .testimonial-grid, .blog-grid { grid-template-columns: repeat(3,minmax(0,1fr)); }
.why-grid { grid-template-columns: repeat(3,minmax(0,1fr)); }
.preview-grid a, .service-pages-grid a {
  color: var(--text);
  text-decoration: none;
  display: block;
}
.preview-grid a:visited, .service-pages-grid a:visited { color: var(--text); }

/* ─── PROCESS ────────────────────────────────────────────── */
.process-grid {
  grid-template-columns: repeat(5,minmax(0,1fr));
  position: relative;
}
.process-grid::before {
  display: none;
}
@keyframes line-glow {
  from { opacity: .5; }
  to   { opacity: 1; filter: drop-shadow(0 0 6px rgba(236,32,40,.7)); }
}
.process-step {
  text-align: center;
  padding: 28px 12px 24px;
  position: relative;
  z-index: 1;
}
.process-step strong { display: block; margin-top: 10px; font-size: 1rem; }
.process-step p { color: var(--muted); font-size: .85rem; margin-top: 8px; line-height: 1.6; }
.process-step span {
  width: 44px; height: 44px;
  display: inline-grid; place-items: center;
  border-radius: 999px;
  background: rgba(236,32,40,.18);
  border: 1px solid rgba(236,32,40,.5);
  margin-bottom: 12px;
  font-weight: 800;
  font-size: .9rem;
  color: var(--primary);
  box-shadow: 0 0 18px rgba(236,32,40,.25);
  transition: background .3s, box-shadow .3s, transform .3s var(--ease);
}
.process-step:hover span {
  background: rgba(236,32,40,.38);
  box-shadow: 0 0 28px rgba(236,32,40,.5);
  transform: scale(1.15);
}

/* ─── CASE CARDS ─────────────────────────────────────────── */
.case-card ul { margin: 16px 0 0; padding-left: 20px; color: var(--muted); line-height: 2; }
.case-card ul li { margin-bottom: 4px; }
.case-card h3 {
  background: linear-gradient(90deg, var(--text), var(--accent));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

/* ─── TESTIMONIALS ───────────────────────────────────────── */
blockquote { font-style: italic; color: var(--muted); line-height: 1.78; font-size: 1.02rem; }
blockquote::before { content: '"'; font-size: 3rem; line-height: .5; color: var(--primary); display: block; margin-bottom: 14px; font-style: normal; }

/* ─── CTA BANNER ─────────────────────────────────────────── */
.cta-banner {
  text-align: center;
  padding: 72px 48px;
  background: linear-gradient(135deg, rgba(236,32,40,.15), rgba(228,157,18,.08), rgba(236,32,40,.05));
  border: 1px solid rgba(236,32,40,.25);
  position: relative;
  overflow: hidden;
}
.cta-banner::before {
  content: "";
  position: absolute;
  width: 500px; height: 500px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(236,32,40,.2), transparent 65%);
  top: -200px; right: -100px;
  pointer-events: none;
  animation: float 9s ease-in-out infinite;
}
.cta-banner h2 { font-size: clamp(1.5rem, 2.8vw, 2.3rem); margin-bottom: 16px; }
.cta-banner p  { color: var(--muted); margin-bottom: 36px; font-size: 1.08rem; line-height: 1.7; }

/* ─── FOOTER ─────────────────────────────────────────────── */
.footer {
  margin-top: 60px;
  border-top: 1px solid var(--line);
  padding: 64px 0 0;
  color: var(--muted);
  line-height: 1.75;
}
.footer-grid { display: grid; grid-template-columns: 1.5fr 1fr 1fr; gap: 40px; padding-bottom: 48px; }
.footer h3, .footer h4 { color: var(--text); margin-bottom: 18px; font-size: 1rem; letter-spacing: .02em; }
.footer p { margin-bottom: 6px; }
.footer a { color: var(--muted); text-decoration: none; transition: color .2s; display: inline-block; margin-bottom: 8px; }
.footer a:hover { color: var(--text); }
/* Override footer a for social icons */
.footer .social-icon,
.social-icon {
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  margin-bottom: 0 !important;
  color: inherit !important;
}

/* Social icons strip */
.footer-bottom {
  border-top: 1px solid var(--line);
  padding: 22px 0 36px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 14px;
}
.footer-copy { font-size: .82rem; }
.social-icons { display: flex; gap: 12px; align-items: center; }
.social-icon {
  width: 44px; height: 44px;
  border-radius: 50%;
  background: rgba(255,255,255,.1);
  border: 1px solid rgba(255,255,255,.2);
  display: flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
  transition: background .25s, border-color .25s, transform .3s var(--ease), box-shadow .3s;
  flex-shrink: 0;
  overflow: hidden;
  line-height: 0;
}
.social-icon svg { width: 20px; height: 20px; fill: #c8d0e0; transition: fill .25s; display: block; flex-shrink: 0; }
.social-icon:hover { transform: translateY(-4px); }
.social-icon.fb  { background: rgba(24,119,242,.15); border-color: rgba(24,119,242,.3); }
.social-icon.fb svg { fill: #5a9ff5; }
.social-icon.fb:hover  { background: rgba(24,119,242,.3); border-color: rgba(24,119,242,.65); box-shadow: 0 6px 24px rgba(24,119,242,.4); }
.social-icon.fb:hover svg { fill: #1877f2; }
.social-icon.ig  { background: rgba(225,48,108,.15); border-color: rgba(225,48,108,.3); }
.social-icon.ig svg { fill: #e8667f; }
.social-icon.ig:hover  { background: rgba(225,48,108,.3); border-color: rgba(225,48,108,.65); box-shadow: 0 6px 24px rgba(225,48,108,.4); }
.social-icon.ig:hover svg { fill: #e1306c; }
.social-icon.li  { background: rgba(0,119,181,.15); border-color: rgba(0,119,181,.3); }
.social-icon.li svg { fill: #5aadd6; }
.social-icon.li:hover  { background: rgba(0,119,181,.3); border-color: rgba(0,119,181,.65); box-shadow: 0 6px 24px rgba(0,119,181,.4); }
.social-icon.li:hover svg { fill: #0077b5; }
.social-icon.yt  { background: rgba(255,0,0,.15); border-color: rgba(255,0,0,.3); }
.social-icon.yt svg { fill: #ff6666; }
.social-icon.yt:hover  { background: rgba(255,0,0,.3); border-color: rgba(255,0,0,.65); box-shadow: 0 6px 24px rgba(255,0,0,.4); }
.social-icon.yt:hover svg { fill: #ff0000; }

/* ─── SOCIAL FEED SECTION ────────────────────────────────── */
.social-feed-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
  align-items: start;
}
.yt-feed { display: grid; gap: 14px; }
.yt-video-card {
  display: flex; gap: 14px; align-items: flex-start;
  padding: 14px; text-decoration: none; color: var(--text);
  border-radius: 14px;
  transition: background .2s;
}
.yt-video-card:hover { background: rgba(255,255,255,.04); }
.yt-thumb {
  width: 120px; height: 68px; object-fit: cover;
  border-radius: 8px; flex-shrink: 0;
  background: rgba(255,255,255,.06);
}
.yt-thumb-placeholder {
  width: 120px; height: 68px; border-radius: 8px; flex-shrink: 0;
  background: linear-gradient(135deg, rgba(255,0,0,.15), rgba(13,15,20,.8));
  display: grid; place-items: center; font-size: 1.4rem;
}
.yt-info h4 { font-size: .9rem; margin-bottom: 4px; line-height: 1.4; }
.yt-info p  { font-size: .78rem; color: var(--muted); }
.yt-loading { color: var(--muted); font-size: .9rem; padding: 20px; text-align: center; }
.fb-widget-wrap iframe { border-radius: var(--radius) !important; width: 100% !important; }
.ig-cta-card { text-align: center; padding: 36px 24px; }
.ig-cta-card svg { width: 48px; height: 48px; margin: 0 auto 16px; display: block; }
@media (max-width: 860px) { .social-feed-grid { grid-template-columns: 1fr; } }

/* ─── SCROLL REVEAL ──────────────────────────────────────── */
.reveal { opacity: 0; transform: translateY(22px); transition: .65s var(--ease); }
.reveal.from-left  { transform: translateX(-28px); }
.reveal.from-right { transform: translateX(28px); }
.reveal.visible    { opacity: 1; transform: translate(0,0); }

/* Stagger children inside a visible reveal */
.reveal.visible .glass:nth-child(1) { transition-delay: 0s; }
.reveal.visible .glass:nth-child(2) { transition-delay: .07s; }
.reveal.visible .glass:nth-child(3) { transition-delay: .14s; }
.reveal.visible .glass:nth-child(4) { transition-delay: .21s; }
.reveal.visible .glass:nth-child(5) { transition-delay: .28s; }

/* ─── GLOW BADGE ─────────────────────────────────────────── */
.badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: rgba(236,32,40,.14);
  border: 1px solid rgba(236,32,40,.35);
  border-radius: 999px;
  padding: 5px 14px;
  font-size: .78rem;
  font-weight: 700;
  letter-spacing: .06em;
  text-transform: uppercase;
  color: #ff6b6f;
  margin-bottom: 18px;
}
.badge::before {
  content: "";
  width: 7px; height: 7px;
  border-radius: 50%;
  background: var(--primary);
  box-shadow: 0 0 8px var(--primary-glow);
  animation: blink 1.6s ease-in-out infinite;
}
/* Google Ads page: full-width hero image background */
.hero-google-ads {
  padding: 0;
  overflow: hidden;
  min-height: clamp(360px, 50vw, 560px);
  display: flex;
  align-items: center;
}
.hero-google-ads::before {
  content: "";
  position: absolute;
  inset: 0;
  /* Two-layer background removes visible edge line from contain image. */
  background-image: url("google-partner-badge.png"), url("google-partner-badge.png");
  background-position: right center, center;
  background-size: contain, cover;
  background-repeat: no-repeat, no-repeat;
  opacity: 1;
  z-index: 0;
  pointer-events: none;
}
.hero-google-ads::after {
  content: none;
}
.hero-google-ads + .google-ads-intro {
  margin-top: 0;
  padding-top: 56px;
}
.google-ads-intro {
  padding-top: 56px;
}
.google-ads-intro .section-title {
  margin-top: 0;
}
.hero-google-ads > * {
  position: relative;
  z-index: 1;
}
.hero-google-ads .hero-blob {
  display: block;
  width: 520px;
  height: 520px;
  top: auto;
  bottom: -140px;
  left: 14%;
  right: auto;
  filter: blur(64px);
  opacity: .5;
  background: radial-gradient(circle, rgba(236,32,40,.55), transparent 68%);
  animation: float 9s ease-in-out infinite;
  z-index: 1;
}
.hero-google-ads .hero-blob-2 {
  display: none;
}
.hero-google-content {
  position: absolute;
  top: calc(50% + 22px);
  transform: translateY(-50%);
  width: min(560px, calc(100% - 32px));
  left: max(16px, calc((100% - 1150px) / 2));
  right: auto;
  margin: 0;
}
.hero-google-title {
  margin: 0 0 10px;
  font-size: clamp(2rem, 5vw, 4rem);
  line-height: 1.03;
  font-weight: 800;
  font-family: "Fira Sans", "Manrope", "Segoe UI", sans-serif;
  color: #f8fafc;
  letter-spacing: -.02em;
}
.hero-google-title span {
  display: block;
  color: #ec2028;
}
.hero-google-subtitle {
  margin: 0 0 16px;
  font-size: clamp(1.2rem, 2.2vw, 2rem);
  line-height: 1.25;
  color: #f4f8fa;
  font-weight: 700;
}
.hero-google-copy {
  max-width: 520px;
  margin: 0 0 26px;
  color: rgba(232,236,245,.92);
  font-size: clamp(.98rem, 1.3vw, 1.1rem);
  line-height: 1.55;
}
.hero-google-cta-row {
  gap: 12px;
}
.hero-google-btn-primary,
.hero-google-btn-secondary {
  border-radius: 8px;
  padding: 12px 26px;
  font-size: .95rem;
  font-weight: 700;
  min-width: 170px;
}
.hero-google-btn-primary {
  background: #ec2028;
  color: #fff;
  box-shadow: 0 8px 24px rgba(236,32,40,.36);
}
.hero-google-btn-secondary {
  background: transparent;
  color: #fff;
  border: 2px solid rgba(236,32,40,.85);
  box-shadow: none;
}
.hero-google-btn-primary::before,
.hero-google-btn-secondary::before,
.hero-google-btn-primary::after,
.hero-google-btn-secondary::after {
  display: none;
}
.hero-google-btn-primary:hover,
.hero-google-btn-secondary:hover {
  transform: translateY(-1px);
}
@keyframes blink {
  0%,100% { opacity: 1; } 50% { opacity: .3; }
}

/* ─── CURSOR SPOTLIGHT ───────────────────────────────────── */
#cursor-spotlight {
  position: fixed;
  pointer-events: none;
  width: 380px; height: 380px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(236,32,40,.07), transparent 70%);
  transform: translate(-50%, -50%);
  z-index: 0;
  transition: opacity .3s;
}

/* ─── NOISE TEXTURE OVERLAY ──────────────────────────────── */
#noise-overlay {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 9999;
  opacity: .028;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='300' height='300'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='300' height='300' filter='url(%23n)' opacity='1'/%3E%3C/svg%3E");
}

/* ─── COUNTER NUMBER ─────────────────────────────────────── */
.count-num { font-variant-numeric: tabular-nums; }

/* ─── FOOTER LINKS — NO BR ───────────────────────────────── */
.footer-links { display: flex; flex-direction: column; gap: 2px; }

/* ─── TESTIMONIAL AVATARS ────────────────────────────────── */
.testimonial-grid blockquote { position: relative; }
.t-footer { display: flex; align-items: center; gap: 12px; margin-top: 18px; }
.t-avatar {
  width: 40px; height: 40px; border-radius: 50%; flex-shrink: 0;
  display: grid; place-items: center;
  font-weight: 800; font-size: .95rem; font-style: normal;
  border: 1px solid rgba(255,255,255,.15);
}
.t-footer cite { font-style: normal; font-size: .85rem; color: var(--muted); }
.t-footer cite strong { display: block; color: var(--text); font-size: .9rem; }

/* ─── SCROLL TO TOP ──────────────────────────────────────── */
#scroll-top {
  position: fixed;
  bottom: 90px; right: 22px;
  width: 44px; height: 44px;
  border-radius: 50%;
  background: rgba(236,32,40,.18);
  border: 1px solid rgba(236,32,40,.4);
  color: var(--text);
  font-size: 1.2rem;
  display: grid; place-items: center;
  cursor: pointer;
  opacity: 0; pointer-events: none;
  transform: translateY(10px);
  transition: opacity .3s, transform .3s, background .2s;
  z-index: 88;
  backdrop-filter: blur(8px);
}
#scroll-top.visible { opacity: 1; pointer-events: auto; transform: translateY(0); }
#scroll-top:hover { background: rgba(236,32,40,.38); }

/* ─── MOBILE STICKY CTA ──────────────────────────────────── */
#sticky-cta {
  display: none;
  position: fixed;
  bottom: 0; left: 0; right: 0;
  z-index: 87;
  padding: 12px 16px;
  background: rgba(13,15,20,.92);
  border-top: 1px solid var(--line);
  backdrop-filter: blur(14px);
  text-align: center;
  transform: translateY(100%);
  transition: transform .4s var(--ease);
}
#sticky-cta.visible { transform: translateY(0); }
#sticky-cta .btn { width: 100%; max-width: 400px; font-size: .95rem; padding: 13px 20px; }

/* ─── PROCESS MOBILE TIMELINE ────────────────────────────── */
@media (max-width: 640px) {
  .process-grid {
    grid-template-columns: 1fr !important;
    padding-left: 0;
    border-left: 0;
    gap: 14px;
  }
  .process-grid::before { display: none; }
  .process-step {
    text-align: left;
    padding: 18px 18px 16px;
    position: relative;
    border-radius: 14px;
  }
  .process-step::before { display: none; }
  .process-step span {
    display: inline-grid;
    width: 30px;
    height: 30px;
    margin-bottom: 10px;
    font-size: .8rem;
  }
  .process-step strong { margin-top: 0; }
  .process-step p { margin-top: 6px; }
}

/* ─── BACK TO BLOG ───────────────────────────────────────── */
.back-link {
  display: inline-flex; align-items: center; gap: 6px;
  color: var(--muted); text-decoration: none; font-size: .9rem;
  margin-bottom: 24px; transition: color .2s;
}
.back-link:hover { color: var(--text); }

/* ─── RELATED POSTS ──────────────────────────────────────── */
.related-grid { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: 16px; }
.related-card { text-decoration: none; color: var(--text); display: block; }
.related-card:visited { color: var(--text); }
@media (max-width: 640px) { .related-grid { grid-template-columns: 1fr; } }

/* ─── 404 PAGE ───────────────────────────────────────────── */
.page-404 { text-align: center; padding: 100px 20px; }
.page-404 .big-num {
  font-size: clamp(5rem, 15vw, 10rem);
  font-weight: 800;
  background: linear-gradient(90deg, var(--primary), var(--accent));
  -webkit-background-clip: text; -webkit-text-fill-color: transparent; background-clip: text;
  line-height: 1; margin-bottom: 16px;
}

/* ─── RESPONSIVE ─────────────────────────────────────────── */
@media (max-width: 820px) {
  #sticky-cta { display: block; }
}
@media (max-width: 960px) {
  .hero-grid,
  .service-system,
  .case-grid,
  .process-grid,
  .why-grid,
  .testimonial-grid,
  .blog-grid,
  .trustbar,
  .preview-grid,
  .service-pages-grid,
  .footer-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 640px) {
  .topnav .container {
    width: 100%;
    padding-top: 10px;
    padding-bottom: 10px;
    padding-left: 16px;
    padding-right: 16px;
  }
  .logo img { height: 32px; }
  .container {
    width: 100%;
    padding-left: 16px;
    padding-right: 16px;
  }
  .hero-grid,
  .service-system,
  .case-grid,
  .process-grid,
  .why-grid,
  .testimonial-grid,
  .blog-grid,
  .trustbar,
  .preview-grid,
  .service-pages-grid,
  .footer-grid { grid-template-columns: 1fr; }
  .hero {
    padding-top: 48px;
    padding-bottom: 56px;
  }
  .hero h1 {
    font-size: clamp(1.9rem, 8.4vw, 2.6rem);
    line-height: 1.12;
    margin-bottom: 16px;
  }
  .hero p {
    font-size: 1.02rem;
    line-height: 1.58;
    margin-bottom: 24px;
  }
  .client-logos {
    overflow-x: auto;
    overflow-y: visible;
  }
  .client-logos-track {
    animation: none;
  }
  .client-logo-item {
    min-width: 152px;
    min-height: 78px;
  }
  .hero-google-ads {
    min-height: 420px;
  }
  .hero-google-ads::before {
    background-size: contain, cover;
    background-position: center top, center;
  }
  .hero-google-content {
    position: relative;
    top: auto;
    transform: none;
    width: calc(100% - 32px);
    max-width: 100%;
    padding-top: 0;
    left: auto;
    margin-left: 16px;
    margin-right: 16px;
  }
  .hero-google-ads + .google-ads-intro {
    margin-top: 0;
    padding-top: 36px;
  }
  .hero-google-subtitle {
    margin-bottom: 12px;
  }
  .hero-google-copy {
    margin-bottom: 20px;
  }
  .hero-google-btn-primary,
  .hero-google-btn-secondary {
    min-width: 150px;
    padding: 11px 18px;
    font-size: .9rem;
  }
  .stat-card {
    padding: 22px;
  }
  .process-grid::before { display: none; }
}
