/* ============================================================
   APACHIY – Complete Stylesheet
   Apachiy Ltd – dark theme
   ============================================================ */

:root {
  --bg: #0a0a0a;
  --bg2: #111;
  --bg3: #1a1a1a;
  --card: #161616;
  --card-hover: #1e1e1e;
  --white: #ffffff;
  --text: #ffffff;
  --text2: #a1a1aa;
  --text3: #71717a;
  --text4: #52525b;
  --accent: #ee8a2e;
  --accent2: #ef3b2c;
  --purple: #7c5cfc;
  --blue: #3b82f6;
  --cyan: #06b6d4;
  --green: #22c55e;
  --yellow: #eab308;
  --border: #222;
  --border2: #333;
  --radius: 16px;
  --radius-lg: 24px;
  --radius-xl: 32px;
  --radius-full: 9999px;
  --font: 'Poppins', -apple-system, BlinkMacSystemFont, sans-serif;
  --ease: cubic-bezier(0.4, 0, 0.2, 1);
  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
  --container: 1280px;
}

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

html {
  font-size: 16px;
  scroll-behavior: smooth;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body {
  font-family: var(--font);
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
  overflow-x: hidden;
}
body.no-scroll { overflow: hidden; }

a { text-decoration: none; color: inherit; }
button { border: none; background: none; cursor: pointer; font-family: inherit; color: inherit; }
img { max-width: 100%; display: block; }
ul, ol { list-style: none; }
::selection { background: var(--accent); color: white; }

.container {
  width: 100%;
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 24px;
}

/* ====== PRELOADER ====== */
.preloader {
  position: fixed; inset: 0;
  background: var(--bg);
  display: flex; align-items: center; justify-content: center;
  z-index: 10000;
  transition: opacity .7s cubic-bezier(.4,0,.2,1) .1s, visibility 0s linear .8s;
}
.preloader.hidden { opacity: 0; visibility: hidden; pointer-events: none; }
.preloader-inner {
  display: flex; flex-direction: column; align-items: center; text-align: center;
  transition: transform .7s cubic-bezier(.4,0,.2,1), opacity .45s ease;
}
.preloader.hidden .preloader-inner { transform: scale(1.12); opacity: 0; }
.preloader-mark { position: relative; width: 108px; height: 108px; display: grid; place-items: center; margin-bottom: 30px; }
.preloader-mark::before {
  content: ''; position: absolute; inset: -22px; border-radius: 50%;
  background: radial-gradient(circle, rgba(238,138,46,.18), transparent 68%);
  animation: preloaderGlow 2.4s ease-in-out infinite;
}
.preloader-ring {
  position: absolute; inset: 0; border-radius: 50%;
  border: 2px solid rgba(238,138,46,.16); border-top-color: var(--accent);
  animation: preloaderSpin 1.1s linear infinite;
}
.preloader-logo {
  position: relative; z-index: 1;
  animation: preloaderIn .7s cubic-bezier(.2,.8,.2,1) both, preloaderFloat 2.4s ease-in-out .7s infinite;
}
.preloader-bar { width: 200px; height: 3px; background: var(--bg3); border-radius: 10px; overflow: hidden; }
.preloader-bar-fill {
  height: 100%; width: 100%; background: linear-gradient(90deg, var(--accent), var(--accent2));
  border-radius: 10px; transform: scaleX(0); transform-origin: left center; will-change: transform;
}
.preloader-pct { margin-top: 14px; font-size: 12px; font-weight: 500; letter-spacing: .16em; color: var(--text3); font-variant-numeric: tabular-nums; }
@keyframes preloaderSpin { to { transform: rotate(360deg); } }
@keyframes preloaderIn { from { opacity: 0; transform: scale(.7); } to { opacity: 1; transform: scale(1); } }
@keyframes preloaderFloat { 0%,100% { transform: translateY(0); } 50% { transform: translateY(-5px); } }
@keyframes preloaderGlow { 0%,100% { opacity: .55; transform: scale(.94); } 50% { opacity: 1; transform: scale(1.06); } }
@media (prefers-reduced-motion: reduce) {
  .preloader-ring, .preloader-logo, .preloader-mark::before { animation: none; }
  .preloader, .preloader-inner { transition-duration: .01s; transition-delay: 0s; }
}

/* ====== NAVBAR ====== */
.navbar {
  position: fixed;
  top: 20px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 1000;
  width: auto;
  transition: all .4s var(--ease);
}
.navbar.scrolled {
  top: 12px;
}

.nav-pill {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 10px 12px 10px 20px;
  background: rgba(30, 30, 30, 0.85);
  backdrop-filter: blur(20px) saturate(180%);
  -webkit-backdrop-filter: blur(20px) saturate(180%);
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: var(--radius-full);
  transition: all .4s var(--ease);
}

.nav-logo {
  display: flex;
  align-items: center;
  flex-shrink: 0;
  margin-right: 12px;
  transition: transform .3s var(--ease);
}
.nav-logo:hover { transform: scale(1.05); }
.nav-logo svg { display: block; }

.nav-links {
  display: flex;
  align-items: center;
  gap: 28px;
  transition: all .4s var(--ease);
}
.nav-link {
  font-size: 14px;
  font-weight: 500;
  color: var(--text2);
  white-space: nowrap;
  transition: color .2s;
  position: relative;
}
.nav-link::after {
  content: '';
  position: absolute;
  bottom: -4px; left: 0;
  width: 0; height: 1.5px;
  background: var(--accent);
  transition: width .3s var(--ease);
}
.nav-link:hover { color: var(--white); }
.nav-link:hover::after { width: 100%; }
.nav-link.active { color: var(--white); }

.nav-right {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-left: 12px;
}

.nav-cta-outline {
  padding: 8px 20px;
  font-size: 13px;
  font-weight: 600;
  color: var(--white);
  border: 1px solid rgba(255,255,255,0.2);
  border-radius: var(--radius-full);
  white-space: nowrap;
  transition: all .3s var(--ease);
  opacity: 0;
  max-width: 0;
  padding-left: 0;
  padding-right: 0;
  overflow: hidden;
  border-color: transparent;
}
.navbar.scrolled .nav-cta-outline {
  opacity: 1;
  max-width: 140px;
  padding: 8px 20px;
  border-color: rgba(255,255,255,0.2);
}
.nav-cta-outline:hover { border-color: var(--white); }

.nav-cta-fill {
  padding: 8px 20px;
  font-size: 13px;
  font-weight: 600;
  color: var(--white);
  background: var(--accent);
  border-radius: var(--radius-full);
  white-space: nowrap;
  transition: all .3s var(--ease);
}
.nav-cta-fill:hover { background: var(--accent2); transform: translateY(-1px); }

/* Scrolled state: hide nav links, show Book a call */
.navbar.scrolled .nav-links {
  max-width: 0;
  opacity: 0;
  overflow: hidden;
  gap: 0;
  margin: 0;
  pointer-events: none;
}

/* Hamburger */
.nav-hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  width: 24px;
  padding: 4px 0;
  z-index: 1001;
}
.nav-hamburger span {
  display: block; height: 2px;
  background: var(--white); border-radius: 2px;
  transition: all .3s var(--ease);
  transform-origin: center;
}
.nav-hamburger span:nth-child(1) { width: 100%; }
.nav-hamburger span:nth-child(2) { width: 70%; }
.nav-hamburger span:nth-child(3) { width: 100%; }
.nav-hamburger.active span:nth-child(1) { transform: rotate(45deg) translate(5px, 5px); }
.nav-hamburger.active span:nth-child(2) { opacity: 0; }
.nav-hamburger.active span:nth-child(3) { transform: rotate(-45deg) translate(5px, -5px); }

/* Mobile Menu */
.mobile-menu {
  position: fixed; inset: 0;
  background: rgba(10,10,10,.98);
  backdrop-filter: blur(20px);
  z-index: 999;
  display: flex; align-items: center; justify-content: center;
  opacity: 0; visibility: hidden;
  transition: all .5s var(--ease);
}
.mobile-menu.active { opacity: 1; visibility: visible; }
.mobile-menu-content { text-align: center; display: flex; flex-direction: column; gap: 28px; }
.mobile-link {
  font-size: 32px; font-weight: 700; color: var(--text2);
  transition: all .3s; transform: translateY(20px); opacity: 0;
}
.mobile-menu.active .mobile-link { transform: translateY(0); opacity: 1; }
.mobile-menu.active .mobile-link:nth-child(1) { transition-delay: .1s; }
.mobile-menu.active .mobile-link:nth-child(2) { transition-delay: .15s; }
.mobile-menu.active .mobile-link:nth-child(3) { transition-delay: .2s; }
.mobile-menu.active .mobile-link:nth-child(4) { transition-delay: .25s; }
.mobile-link:hover { color: var(--white); }
.mobile-link-btn {
  display: inline-block; padding: 14px 40px;
  background: var(--accent); color: white; font-size: 16px; font-weight: 600;
  border-radius: var(--radius-full);
  transform: translateY(20px); opacity: 0; transition: all .3s;
}
.mobile-menu.active .mobile-link-btn { transform: translateY(0); opacity: 1; transition-delay: .3s; }

/* ====== HERO ====== */
.hero {
  position: relative;
  padding-top: 140px;
  padding-bottom: 0;
  overflow: visible;
  display: flex;
  flex-direction: column;
  align-items: center;
  min-height: 100vh;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  padding: 10px 28px;
  background: rgba(255,255,255,0.06);
  border: 1px solid rgba(255,255,255,0.1);
  border-radius: var(--radius-full);
  font-size: 14px;
  font-weight: 500;
  color: var(--text2);
  margin-bottom: 32px;
  opacity: 0;
  transform: translateY(20px);
  z-index: 6;
  position: relative;
}

.hero-title {
  text-align: center;
  font-size: clamp(44px, 7vw, 88px);
  font-weight: 800;
  line-height: 1.05;
  letter-spacing: -3px;
  margin-bottom: 28px;
  opacity: 0;
  z-index: 6;
  position: relative;
}

.hero-line {
  display: block;
}



/* ====== FLOATING CARDS ====== */
.float-card {
  position: absolute;
  z-index: 5;
  will-change: transform, opacity;
}

/* White circle with icon (top left) */
.float-circle-white {
  left: 6%;
  top: 160px;
  width: 130px;
  height: 130px;
  background: #fff;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 20px 60px rgba(0,0,0,0.3);
}
.circle-inner {
  display: flex;
  align-items: center;
  justify-content: center;
}

/* Analytics card (left) */
.float-analytics {
  left: 2%;
  top: 310px;
  width: 155px;
  padding: 14px;
  background: rgba(20,20,20,0.95);
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: var(--radius);
  backdrop-filter: blur(10px);
}
.analytics-top {
  display: flex;
  align-items: center;
  margin-bottom: 6px;
}
.analytics-num {
  font-size: 13px;
  font-weight: 700;
  padding: 3px 10px;
  background: var(--blue);
  border-radius: 6px;
  color: white;
  animation: badgePulse 2s ease-in-out infinite;
}
@keyframes badgePulse {
  0%, 100% { box-shadow: 0 0 0 rgba(59,130,246,0); }
  50%      { box-shadow: 0 0 12px rgba(59,130,246,0.5); }
}
.analytics-icon-row {
  margin-bottom: 8px;
}
.analytics-emoji {
  width: 28px;
  height: 28px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 16px;
}
.analytics-bars {
  display: flex;
  align-items: flex-end;
  gap: 5px;
  height: 50px;
}
.a-bar {
  flex: 1;
  background: var(--accent);
  border-radius: 3px 3px 0 0;
  min-width: 14px;
  transform-origin: bottom;
}
.a-bar.orange { background: var(--accent); }
.a-bar.dark { background: #444; }

/* ====== CONTINUOUS ANIMATIONS (inner elements only — GSAP handles card transforms) ====== */

/* Bar grow animation — continuous loop (analytics card) */
.float-analytics .a-bar {
  animation: barGrowLoop 2.5s ease-in-out infinite;
}
.float-analytics .a-bar:nth-child(1) { animation-delay: 0s; }
.float-analytics .a-bar:nth-child(2) { animation-delay: 0.15s; }
.float-analytics .a-bar:nth-child(3) { animation-delay: 0.3s; }
.float-analytics .a-bar:nth-child(4) { animation-delay: 0.45s; }
.float-analytics .a-bar:nth-child(5) { animation-delay: 0.6s; }

@keyframes barGrowLoop {
  0%   { transform: scaleY(0.15); }
  50%  { transform: scaleY(1); }
  100% { transform: scaleY(0.15); }
}

/* Arrow */
.float-arrow {
  position: absolute;
  left: 12%;
  top: 490px;
  z-index: 4;
  opacity: 0.6;
}

/* Widget control card */
.float-widget {
  left: 3%;
  top: 540px;
  width: 230px;
  padding: 16px;
  background: rgba(20,20,20,0.95);
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: var(--radius);
  backdrop-filter: blur(10px);
}
.widget-label {
  font-size: 12px;
  color: var(--text3);
  display: block;
  margin-bottom: 10px;
}
.widget-chart {
  width: 100%;
  height: auto;
  display: block;
  margin-bottom: 6px;
}
/* Chart line draw animation — continuous loop */
.widget-chart polyline {
  stroke-dasharray: 400;
  stroke-dashoffset: 400;
  animation: drawLineLoop 4s ease-in-out infinite;
}
@keyframes drawLineLoop {
  0%   { stroke-dashoffset: 400; }
  40%  { stroke-dashoffset: 0; }
  60%  { stroke-dashoffset: 0; }
  100% { stroke-dashoffset: 400; }
}
.widget-chart circle {
  animation: dotPulse 4s ease-in-out infinite;
}
.widget-chart circle:nth-of-type(1) { animation-delay: 0.3s; }
.widget-chart circle:nth-of-type(2) { animation-delay: 0.5s; }
.widget-chart circle:nth-of-type(3) { animation-delay: 0.7s; }
.widget-chart circle:nth-of-type(4) { animation-delay: 0.9s; }
.widget-chart circle:nth-of-type(5) { animation-delay: 1.1s; }
.widget-chart circle:nth-of-type(6) { animation-delay: 1.3s; }
.widget-chart circle:nth-of-type(7) { animation-delay: 1.5s; }
@keyframes dotPulse {
  0%   { opacity: 0; r: 1; }
  30%  { opacity: 1; r: 2.5; }
  60%  { opacity: 1; r: 3.5; }
  80%  { opacity: 0.5; r: 2; }
  100% { opacity: 0; r: 1; }
}

.widget-months {
  display: flex;
  justify-content: space-between;
  font-size: 9px;
  color: var(--text4);
  margin-bottom: 12px;
}
.widget-result {
  display: flex;
  align-items: center;
  gap: 8px;
}
.result-tag {
  display: flex;
  align-items: center;
  gap: 4px;
  background: var(--blue);
  padding: 4px 10px;
  border-radius: 8px;
  font-size: 11px;
  font-weight: 600;
}
.result-label { color: rgba(255,255,255,0.8); }
.result-clock { font-size: 12px; }
.result-val {
  font-size: 18px;
  font-weight: 800;
  color: var(--white);
  animation: resultPulse 2.5s ease-in-out infinite;
}
@keyframes resultPulse {
  0%, 100% { opacity: 0.8; }
  50%      { opacity: 1; }
}

/* Installs card (right) */
.float-installs {
  right: 2%;
  top: 140px;
  width: 230px;
  padding: 16px;
  background: rgba(20,20,20,0.95);
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: var(--radius);
  backdrop-filter: blur(10px);
}
.installs-label {
  font-size: 12px;
  color: var(--text3);
  display: block;
  margin-bottom: 10px;
}
.installs-bars {
  display: flex;
  align-items: flex-end;
  gap: 6px;
  height: 100px;
  margin-bottom: 8px;
}
.i-bar {
  flex: 1;
  height: 100%;
  display: flex;
  align-items: flex-end;
}
.i-fill {
  width: 100%;
  background: #333;
  border-radius: 6px 6px 3px 3px;
  position: relative;
  background-image: repeating-linear-gradient(
    45deg, transparent, transparent 3px, rgba(255,255,255,0.03) 3px, rgba(255,255,255,0.03) 6px
  );
  transform-origin: bottom;
}
.i-fill.green { background-color: var(--green); background-image: none; }
.i-fill.yellow { background-color: var(--yellow); background-image: none; }

/* Installs bar grow animation — continuous loop */
.float-installs .i-fill {
  animation: installBarLoop 3s ease-in-out infinite;
}
.float-installs .i-bar:nth-child(1) .i-fill { animation-delay: 0s; }
.float-installs .i-bar:nth-child(2) .i-fill { animation-delay: 0.12s; }
.float-installs .i-bar:nth-child(3) .i-fill { animation-delay: 0.24s; }
.float-installs .i-bar:nth-child(4) .i-fill { animation-delay: 0.36s; }
.float-installs .i-bar:nth-child(5) .i-fill { animation-delay: 0.48s; }
.float-installs .i-bar:nth-child(6) .i-fill { animation-delay: 0.6s; }
.float-installs .i-bar:nth-child(7) .i-fill { animation-delay: 0.72s; }

@keyframes installBarLoop {
  0%   { transform: scaleY(0.15); }
  50%  { transform: scaleY(1); }
  100% { transform: scaleY(0.15); }
}

.float-installs .bar-tip {
  animation: tipPulse 3s ease-in-out infinite;
  opacity: 1;
}
@keyframes tipPulse {
  0%, 100% { opacity: 0.4; transform: translateX(-50%) translateY(3px); }
  50%      { opacity: 1; transform: translateX(-50%) translateY(0); }
}

.bar-tip {
  position: absolute;
  top: -22px;
  left: 50%;
  transform: translateX(-50%);
  font-size: 9px;
  font-weight: 700;
  padding: 2px 6px;
  border-radius: 4px;
  white-space: nowrap;
  background: var(--green);
  color: #000;
}
.bar-tip.yellow-tip { background: var(--yellow); }
.installs-days {
  display: flex;
  justify-content: space-between;
  font-size: 9px;
  color: var(--text4);
}

/* +30% circle */
.float-percent {
  right: 2%;
  top: 400px;
  width: 160px;
  height: 160px;
  background: var(--blue);
  border-radius: 50%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  box-shadow: 0 20px 60px rgba(59,130,246,0.3);
}
.pct-val {
  font-size: 36px;
  font-weight: 800;
  color: white;
  line-height: 1;
  animation: counterPulse 2s ease-in-out infinite;
}
@keyframes counterPulse {
  0%, 100% { transform: scale(1); }
  50%      { transform: scale(1.08); }
}
.pct-sub {
  font-size: 11px;
  color: rgba(255,255,255,0.7);
  margin-top: 4px;
  line-height: 1.3;
}

/* Key features pill */
.float-features {
  right: 4%;
  top: 600px;
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 10px 20px;
  background: rgba(20,20,20,0.95);
  border: 1px solid rgba(255,255,255,0.1);
  border-radius: var(--radius-full);
  font-size: 13px;
  font-weight: 500;
  color: var(--white);
  backdrop-filter: blur(10px);
}
.feat-icon {
  font-size: 16px;
  width: 28px;
  height: 28px;
  background: var(--accent);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  animation: iconGlow 2s ease-in-out infinite;
}
@keyframes iconGlow {
  0%, 100% { box-shadow: 0 0 0 rgba(238,138,46,0); }
  50%      { box-shadow: 0 0 14px rgba(238,138,46,0.6); }
}

/* Book a call floating */
.float-book-call {
  position: absolute;
  right: 3%;
  top: 680px;
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 14px 28px;
  background: var(--purple);
  border-radius: var(--radius-full);
  font-size: 14px;
  font-weight: 600;
  color: white;
  z-index: 5;
  transition: all .3s var(--ease);
  box-shadow: 0 10px 40px rgba(124,92,252,0.3);
}
.float-book-call:hover { transform: translateY(-2px); box-shadow: 0 16px 50px rgba(124,92,252,0.4); }

/* ====== HERO VIDEO PLAYER ====== */
.hero-video-wrap {
  position: relative;
  width: 62%;
  max-width: 880px;
  margin: 40px auto 0;
  z-index: 10;
  transform-origin: center center;
  will-change: transform;
}

.hero-video-inner {
  perspective: 1200px;
  transform-origin: center bottom;
}

.hero-video-inner > .video-bezel {
  transform: rotateX(8deg);
  transform-origin: center bottom;
  will-change: transform;
}

/* Ensure GSAP pin-spacer allows video to expand visually but not break layout */
.pin-spacer {
  z-index: 10 !important;
  overflow: visible !important;
}

.video-bezel {
  background: #1c1c1e;
  border-radius: 16px;
  overflow: hidden;
  border: 1px solid rgba(255,255,255,0.06);
  box-shadow: 0 40px 100px rgba(0,0,0,0.6), 0 0 0 1px rgba(255,255,255,0.05);
  will-change: border-radius, border-width;
}

.video-chrome {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 16px;
  background: #2a2a2e;
  border-bottom: 1px solid rgba(255,255,255,0.06);
  overflow: hidden;
  will-change: opacity, height;
}
.video-dots { display: flex; gap: 5px; }
.video-dots span {
  width: 8px; height: 8px; border-radius: 50%;
  background: #444;
}
.video-dots span:nth-child(1) { background: #ff5f56; }
.video-dots span:nth-child(2) { background: #ffbd2e; }
.video-dots span:nth-child(3) { background: #27c93f; }
.video-url-bar {
  flex: 1;
  height: 22px;
  background: rgba(255,255,255,0.06);
  border-radius: 6px;
  max-width: 280px;
  margin: 0 auto;
}

.video-screen {
  position: relative;
  background: #000;
  aspect-ratio: 16 / 9;
  overflow: hidden;
}
.video-screen video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.video-play-btn {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  z-index: 5;
  cursor: pointer;
  background: none;
  border: none;
  padding: 0;
  transition: all .3s var(--ease);
  opacity: 1;
}
.video-play-btn:hover { transform: translate(-50%, -50%) scale(1.1); }
.video-play-btn.hidden {
  opacity: 0;
  pointer-events: none;
  transform: translate(-50%, -50%) scale(0.8);
}

/* Fullscreen video state is handled by JS inline styles */

/* ====== STATS ====== */
.stats-section { padding: 120px 0; position: relative; z-index: 11; background: var(--bg); }
.stats-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
}
.stat-card {
  background: linear-gradient(145deg, #1a1a1a, #141414);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 36px 28px;
  position: relative;
  overflow: hidden;
  transition: all .3s var(--ease);
}
.stat-card:hover { border-color: rgba(238,138,46,0.3); transform: translateY(-4px); }
.stat-number {
  font-size: clamp(36px, 4vw, 52px);
  font-weight: 800;
  letter-spacing: -2px;
  color: var(--white);
  margin-bottom: 12px;
}
.stat-label { font-size: 13px; color: var(--text2); line-height: 1.6; }
.stat-featured {
  background: var(--accent);
  border-color: transparent;
}
.stat-featured .stat-number { color: white; }
.stat-featured .stat-label { color: rgba(255,255,255,0.8); }
.stat-badge {
  position: absolute; top: 16px; right: 16px;
  width: 40px; height: 40px;
  background: rgba(255,255,255,0.2);
  border-radius: 10px;
  display: flex; align-items: center; justify-content: center;
}
.stat-badge svg { width: 20px; height: 20px; color: white; }

/* ====== STAGES ====== */
.stages-section { padding: 120px 0; background: var(--bg2); position: relative; z-index: 11; }
.section-header { margin-bottom: 56px; }
.section-tag {
  display: inline-block; font-size: 12px; font-weight: 600;
  text-transform: uppercase; letter-spacing: 3px;
  color: var(--accent); margin-bottom: 16px;
}
.section-title {
  font-size: clamp(32px, 5vw, 56px);
  font-weight: 800; line-height: 1.1; letter-spacing: -2px;
}
.section-title.large {
  font-size: clamp(20px, 2.5vw, 32px);
  font-weight: 600; line-height: 1.5; letter-spacing: -0.5px;
  max-width: 700px; color: var(--text2);
}
.section-subtitle {
  font-size: 16px; color: var(--text2); max-width: 520px;
  margin-top: 16px; line-height: 1.7;
}

.stages-tab-nav {
  display: flex;
  border-bottom: 1px solid var(--border);
}
.stage-tab {
  flex: 1;
  display: flex; align-items: center; gap: 12px;
  padding: 20px 24px;
  font-size: 15px; font-weight: 600; color: var(--text4);
  border-bottom: 2px solid transparent;
  transition: all .3s; text-align: left;
}
.stage-tab-num { font-size: 12px; font-weight: 700; color: var(--text4); }
.stage-tab:hover { color: var(--text2); }
.stage-tab.active { color: var(--white); border-bottom-color: var(--accent); }
.stage-tab.active .stage-tab-num { color: var(--accent); }

.stages-content { position: relative; min-height: 350px; }
.stage-panel {
  position: absolute; top: 0; left: 0; width: 100%;
  opacity: 0; visibility: hidden; transform: translateY(16px);
  transition: all .5s var(--ease);
}
.stage-panel.active {
  position: relative; opacity: 1; visibility: visible; transform: translateY(0);
}
.stage-panel-inner {
  display: grid; grid-template-columns: 1fr 1fr;
  gap: 48px; padding: 48px 0; align-items: center;
}
.stage-info h3 { font-size: 28px; font-weight: 800; letter-spacing: -1px; margin-bottom: 16px; }
.stage-info p { font-size: 15px; color: var(--text2); line-height: 1.7; margin-bottom: 20px; }
.stage-highlight {
  display: flex; align-items: flex-start; gap: 14px;
  padding: 16px 20px;
  background: rgba(238,138,46,0.08);
  border: 1px solid rgba(238,138,46,0.2);
  border-radius: 12px; margin-bottom: 24px;
}
.hl-pct { font-size: 22px; font-weight: 800; color: var(--accent); white-space: nowrap; }
.stage-highlight span:last-child { font-size: 13px; color: var(--text2); line-height: 1.5; }

/* Stage mockups */
.stage-mockup {
  background: var(--bg3);
  border: 1px solid var(--border);
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 20px 60px rgba(0,0,0,0.3);
}
.mock-bar {
  height: 32px;
  background: var(--card);
  border-bottom: 1px solid var(--border);
  position: relative;
  display: flex; align-items: center; padding: 0 12px;
}
.mock-bar::before {
  content: '';
  width: 8px; height: 8px; border-radius: 50%;
  background: #ff5f56;
  box-shadow: 14px 0 0 #ffbd2e, 28px 0 0 #27c93f;
}
.mock-body { padding: 20px; min-height: 200px; }
.mock-block { height: 16px; background: var(--border2); border-radius: 4px; margin-bottom: 10px; }
.mock-block.sm { height: 10px; opacity: 0.5; }
.mock-circles { display: flex; gap: 10px; margin-top: 20px; }
.mock-circles span { width: 36px; height: 36px; background: var(--border2); border-radius: 50%; }
.mock-chart-bars { display: flex; align-items: flex-end; gap: 10px; height: 160px; }
.mcb { flex: 1; background: linear-gradient(to top, var(--accent), var(--purple)); border-radius: 4px 4px 0 0; }
.mock-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.mg-card { background: var(--border2); border-radius: 8px; min-height: 70px; }
.mg-card.wide { grid-column: span 2; }

/* ====== SERVICES ====== */
.services-section { padding: 120px 0; position: relative; z-index: 11; background: var(--bg); }
.svc-highlight {
  display: flex; gap: 28px;
  padding: 32px; background: linear-gradient(145deg, #1a1a1a, #141414);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  margin-bottom: 40px; align-items: flex-start;
}
.svc-hl-icon {
  width: 48px; height: 48px;
  background: rgba(238,138,46,0.1);
  border: 1px solid rgba(238,138,46,0.2);
  border-radius: 12px;
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0;
}
.svc-hl-icon svg { width: 22px; height: 22px; color: var(--accent); }
.svc-highlight h3 { font-size: 18px; font-weight: 700; margin-bottom: 8px; }
.svc-highlight p { font-size: 14px; color: var(--text2); line-height: 1.7; }

.services-grid {
  display: grid; grid-template-columns: repeat(3, 1fr);
  gap: 20px; margin-bottom: 64px;
}
.service-card {
  background: linear-gradient(145deg, #1a1a1a, #141414);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 32px 24px;
  transition: all .3s var(--ease);
  position: relative; overflow: hidden; cursor: pointer;
}
.service-card::before {
  content: ''; position: absolute; top: 0; left: 0;
  width: 100%; height: 3px;
  background: var(--accent);
  transform: scaleX(0); transform-origin: left;
  transition: transform .3s var(--ease);
}
.service-card:hover { border-color: rgba(238,138,46,0.3); transform: translateY(-4px); }
.service-card:hover::before { transform: scaleX(1); }
.svc-icon {
  width: 44px; height: 44px;
  background: rgba(238,138,46,0.1);
  border: 1px solid rgba(238,138,46,0.2);
  border-radius: 10px;
  display: flex; align-items: center; justify-content: center;
  margin-bottom: 20px; transition: all .3s;
}
.svc-icon svg { width: 20px; height: 20px; color: var(--accent); }
.service-card:hover .svc-icon { background: var(--accent); border-color: var(--accent); }
.service-card:hover .svc-icon svg { color: white; }
.service-card h4 { font-size: 18px; font-weight: 700; margin-bottom: 10px; }
.service-card p { font-size: 13px; color: var(--text2); line-height: 1.7; }
.svc-arrow {
  position: absolute; top: 24px; right: 24px;
  width: 32px; height: 32px;
  background: var(--bg3); border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  opacity: 0; transform: translate(-8px, 8px);
  transition: all .3s var(--ease);
}
.svc-arrow svg { width: 16px; height: 16px; }
.service-card:hover .svc-arrow { opacity: 1; transform: translate(0,0); }

/* Logos */
.logos-section { padding-top: 32px; border-top: 1px solid var(--border); }
.logos-label { font-size: 13px; color: var(--text4); text-align: center; margin-bottom: 32px; }
.logos-marquee {
  overflow: hidden;
  mask-image: linear-gradient(90deg, transparent 0%, black 15%, black 85%, transparent 100%);
  -webkit-mask-image: linear-gradient(90deg, transparent 0%, black 15%, black 85%, transparent 100%);
}
.logos-track {
  display: flex; gap: 60px;
  animation: marquee 20s linear infinite;
  width: max-content;
}
.logo-item {
  font-size: 20px; font-weight: 700; color: var(--text4);
  white-space: nowrap; letter-spacing: 1px; opacity: 0.4;
  transition: opacity .3s;
}
.logo-item:hover { opacity: 1; }
@keyframes marquee {
  0% { transform: translateX(0); }
  100% { transform: translateX(-50%); }
}

/* ====== CASES ====== */
.cases-section { padding: 120px 0; background: var(--bg2); position: relative; z-index: 11; }
.cases-grid {
  display: grid; grid-template-columns: repeat(2, 1fr); gap: 24px;
}
.case-card {
  border-radius: var(--radius-lg); overflow: hidden;
  background: var(--card); border: 1px solid var(--border);
  transition: all .3s var(--ease);
}
.case-card:hover { border-color: rgba(238,138,46,0.3); transform: translateY(-4px); }
.case-img {
  height: 260px; position: relative; overflow: hidden;
  display: flex; align-items: center; justify-content: center;
}
.case-img-inner {
  position: absolute; inset: 0;
  display: flex; align-items: center; justify-content: center;
  transition: transform .5s var(--ease);
}
.case-card:hover .case-img-inner { transform: scale(1.05); }
.case-browser {
  width: 75%; max-width: 280px;
  background: rgba(0,0,0,0.3);
  border-radius: 10px; overflow: hidden;
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255,255,255,0.1);
}
.cb-dots { display: flex; gap: 5px; padding: 8px 12px; border-bottom: 1px solid rgba(255,255,255,0.1); }
.cb-dots span { width: 6px; height: 6px; border-radius: 50%; background: rgba(255,255,255,0.3); }
.cb-body { padding: 20px; min-height: 100px; display: flex; align-items: center; justify-content: center; }
.cb-body svg { width: 40px; height: 40px; color: rgba(255,255,255,0.5); }
.case-phone {
  width: 140px;
  background: rgba(0,0,0,0.3);
  border-radius: 20px; overflow: hidden;
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255,255,255,0.1);
}
.cp-notch { width: 55%; height: 16px; background: rgba(0,0,0,0.5); margin: 6px auto 0; border-radius: 0 0 10px 10px; }
.cp-body { padding: 20px; min-height: 160px; display: flex; align-items: center; justify-content: center; }
.cp-body svg { width: 40px; height: 40px; color: rgba(255,255,255,0.5); }
.case-info { padding: 24px 28px; }
.case-info h3 { font-size: 20px; font-weight: 700; margin-bottom: 8px; }
.case-info p { font-size: 13px; color: var(--text2); line-height: 1.6; margin-bottom: 12px; }

/* ====== TESTIMONIALS ====== */
.testimonials-section { padding: 120px 0; overflow: hidden; position: relative; z-index: 11; background: var(--bg); }
.test-header {
  display: flex; align-items: flex-end; justify-content: space-between;
  flex-wrap: wrap; gap: 20px;
}
.t-line { display: block; }
.t-outline { -webkit-text-stroke: 1.5px var(--white); -webkit-text-fill-color: transparent; }
.test-platform {
  display: flex; align-items: center; gap: 10px;
  font-size: 15px; color: var(--text2); margin-bottom: 10px;
}
.clutch-badge {
  display: flex; align-items: center; gap: 6px;
  padding: 6px 14px; background: var(--bg3);
  border: 1px solid var(--border); border-radius: var(--radius-full);
  font-weight: 600; font-size: 13px;
}
.clutch-score { color: var(--green); font-weight: 700; }
.review-ct { font-size: 12px; color: var(--text4); }

.test-marquee {
  overflow: hidden; padding: 36px 0;
  mask-image: linear-gradient(90deg, transparent 0%, black 10%, black 90%, transparent 100%);
  -webkit-mask-image: linear-gradient(90deg, transparent 0%, black 10%, black 90%, transparent 100%);
}
.test-track {
  display: flex; gap: 20px;
  animation: testScroll 30s linear infinite;
  width: max-content;
}
.test-track:hover { animation-play-state: paused; }
@keyframes testScroll {
  0% { transform: translateX(0); }
  100% { transform: translateX(-50%); }
}
.test-card {
  flex-shrink: 0; width: 350px; padding: 28px;
  background: linear-gradient(145deg, #1a1a1a, #141414);
  border: 1px solid var(--border); border-radius: var(--radius-lg);
  transition: border-color .3s;
}
.test-card:hover { border-color: rgba(238,138,46,0.3); }
.tc-stars { font-size: 14px; color: #f59e0b; margin-bottom: 12px; letter-spacing: 2px; }
.test-card p { font-size: 16px; font-weight: 600; line-height: 1.5; margin-bottom: 20px; min-height: 48px; }
.tc-author { display: flex; align-items: center; gap: 12px; }
.tc-avatar {
  width: 40px; height: 40px;
  background: rgba(238,138,46,0.1); border: 1px solid rgba(238,138,46,0.2);
  border-radius: 50%; display: flex; align-items: center; justify-content: center;
  font-size: 12px; font-weight: 700; color: var(--accent);
}
.tc-name { font-size: 13px; font-weight: 600; display: block; }
.tc-role { font-size: 12px; color: var(--text4); }
.test-cta { margin-top: 28px; text-align: center; }

/* ====== AWARDS ====== */
.awards-section { padding: 120px 0; background: var(--bg2); position: relative; z-index: 11; }
.awards-list { display: flex; flex-direction: column; }
.award-row {
  display: grid; grid-template-columns: 180px 1fr 1fr auto;
  align-items: center; gap: 20px;
  padding: 24px 0; border-bottom: 1px solid var(--border);
  transition: all .3s; cursor: pointer;
}
.award-row:first-child { border-top: 1px solid var(--border); }
.award-row:hover { padding-left: 12px; }
.aw-platform { display: flex; align-items: center; gap: 8px; font-size: 13px; font-weight: 600; color: var(--text2); }
.aw-platform svg { width: 16px; height: 16px; color: var(--accent); }
.aw-project { font-size: 16px; font-weight: 700; }
.aw-type { font-size: 13px; color: var(--text2); }
.aw-date { font-size: 12px; color: var(--text4); }

/* ====== BLOG ====== */
.blog-section { padding: 120px 0; position: relative; z-index: 11; background: var(--bg); }
.blog-grid {
  display: grid; grid-template-columns: 1fr 1fr; gap: 24px;
}
.blog-card {
  background: var(--card); border: 1px solid var(--border);
  border-radius: var(--radius-lg); overflow: hidden;
  transition: all .3s var(--ease); cursor: pointer;
}
.blog-card:hover { border-color: rgba(238,138,46,0.3); transform: translateY(-4px); }
.blog-featured {
  grid-column: span 2;
  display: grid; grid-template-columns: 1fr 1fr;
}
.blog-img {
  height: 200px; display: flex; align-items: center; justify-content: center;
  color: white;
}
.blog-featured .blog-img { height: 100%; min-height: 280px; }
.blog-body { padding: 24px 28px; }
.blog-tag {
  display: inline-block; padding: 3px 12px;
  background: rgba(238,138,46,0.1); border: 1px solid rgba(238,138,46,0.2);
  border-radius: var(--radius-full);
  font-size: 11px; font-weight: 600; color: var(--accent);
  margin-bottom: 14px;
}
.blog-body h3 { font-size: 18px; font-weight: 700; line-height: 1.4; margin-bottom: 10px; }
.blog-body p { font-size: 13px; color: var(--text2); line-height: 1.6; margin-bottom: 14px; }
.blog-cta { margin-top: 40px; text-align: center; }

/* ====== FAQ ====== */
.faq-section { padding: 120px 0; background: var(--bg2); position: relative; z-index: 11; }
.faq-list { max-width: 760px; margin: 0 auto; }
.faq-item { border-bottom: 1px solid var(--border); }
.faq-item:first-child { border-top: 1px solid var(--border); }
.faq-q {
  width: 100%; display: flex; align-items: center; justify-content: space-between;
  padding: 20px 0; font-size: 15px; font-weight: 600; text-align: left;
  transition: color .2s;
}
.faq-q svg { width: 18px; height: 18px; color: var(--text4); transition: all .3s; flex-shrink: 0; }
.faq-q:hover { color: var(--accent); }
.faq-item.active .faq-q svg { transform: rotate(45deg); color: var(--accent); }
.faq-a { max-height: 0; overflow: hidden; transition: max-height .5s var(--ease), padding .5s; }
.faq-item.active .faq-a { max-height: 200px; padding-bottom: 20px; }
.faq-a p { font-size: 14px; color: var(--text2); line-height: 1.7; padding-right: 36px; }

/* ====== CTA ====== */
.cta-section {
  padding: 140px 0; text-align: center;
  position: relative; overflow: hidden; z-index: 11; background: var(--bg);
}
.cta-section::before {
  content: ''; position: absolute; top: 50%; left: 50%;
  transform: translate(-50%, -50%);
  width: 800px; height: 800px;
  background: radial-gradient(circle, rgba(238,138,46,0.08) 0%, transparent 70%);
  border-radius: 50%; pointer-events: none;
}
.cta-inner { position: relative; z-index: 2; }
.cta-title {
  font-size: clamp(44px, 8vw, 92px);
  font-weight: 800; letter-spacing: -3px; line-height: 1.05;
  margin-bottom: 20px;
}
.cta-title span { display: block; }
.cta-stroke { -webkit-text-stroke: 2px var(--white); -webkit-text-fill-color: transparent; }
.cta-desc { font-size: 17px; color: var(--text2); max-width: 460px; margin: 0 auto 36px; line-height: 1.7; }
.cta-btns { display: flex; align-items: center; justify-content: center; gap: 14px; flex-wrap: wrap; }

/* ====== BUTTONS ====== */
.btn-primary {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 14px 28px; background: var(--accent); color: white;
  font-size: 14px; font-weight: 600; border-radius: var(--radius-full);
  transition: all .3s var(--ease);
}
.btn-primary:hover { background: var(--accent2); transform: translateY(-2px); box-shadow: 0 10px 30px rgba(238,138,46,0.25); }
.btn-primary svg { width: 16px; height: 16px; }
.btn-primary.lg { padding: 18px 36px; font-size: 16px; }

.btn-outline {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 14px 28px; background: transparent; color: var(--white);
  font-size: 14px; font-weight: 600;
  border: 1px solid var(--border2); border-radius: var(--radius-full);
  transition: all .3s var(--ease);
}
.btn-outline:hover { border-color: var(--accent); color: var(--accent); transform: translateY(-2px); }
.btn-outline svg { width: 16px; height: 16px; }
.btn-outline.lg { padding: 18px 36px; font-size: 16px; }

.btn-link {
  display: inline-flex; align-items: center; gap: 6px;
  font-size: 13px; font-weight: 600; color: var(--accent);
  transition: all .3s;
}
.btn-link svg { width: 14px; height: 14px; transition: transform .3s; }
.btn-link:hover { gap: 10px; }
.btn-link:hover svg { transform: translateX(4px); }

/* ====== FOOTER ====== */
.footer { padding: 72px 0 36px; border-top: 1px solid var(--border); position: relative; z-index: 11; background: var(--bg); }
.footer-top {
  display: grid; grid-template-columns: 260px 1fr;
  gap: 64px; margin-bottom: 48px;
}
.footer-logo {
  display: flex; align-items: center; gap: 10px;
  font-weight: 700; font-size: 18px; margin-bottom: 12px;
}
.footer-logo svg { display: block; }
.footer-tagline { font-size: 13px; color: var(--text4); }
.footer-grid {
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 32px;
}
.footer-col h4 { font-size: 13px; font-weight: 700; margin-bottom: 16px; }
.footer-col a { display: block; font-size: 13px; color: var(--text4); margin-bottom: 10px; transition: color .2s; }
.footer-col a:hover { color: var(--white); }
.footer-socials { display: flex; gap: 10px; margin-top: 8px; }
.footer-socials a {
  width: 36px; height: 36px;
  background: var(--bg3); border: 1px solid var(--border);
  border-radius: 50%; display: flex; align-items: center; justify-content: center;
  transition: all .3s;
}
.footer-socials a svg { width: 16px; height: 16px; }
.footer-socials a:hover { border-color: var(--accent); background: rgba(238,138,46,0.1); color: var(--accent); }
.footer-bottom {
  display: flex; align-items: center; justify-content: space-between;
  padding-top: 24px; border-top: 1px solid var(--border);
  font-size: 12px; color: var(--text4);
}
.fb-links { display: flex; gap: 20px; }
.fb-links a { font-size: 12px; color: var(--text4); transition: color .2s; }
.fb-links a:hover { color: var(--white); }

/* ====== ANIMATIONS ====== */
.animate-in {
  opacity: 0; transform: translateY(36px);
  transition: opacity .8s var(--ease-out), transform .8s var(--ease-out);
}
.animate-in.visible { opacity: 1; transform: translateY(0); }

/* ====== RESPONSIVE ====== */

/* --- Tablet landscape --- */
@media (max-width: 1200px) {
  /* Scale down float cards slightly */
  .float-circle-white { width: 110px; height: 110px; left: 3%; top: 140px; }
  .float-analytics { left: 0%; top: 270px; width: 140px; padding: 10px; }
  .float-arrow { left: 8%; top: 420px; }
  .float-widget { left: 1%; top: 470px; width: 200px; padding: 12px; }
  .float-installs { right: 0%; top: 120px; width: 200px; padding: 12px; }
  .float-percent { right: 1%; top: 350px; width: 140px; height: 140px; }
  .pct-val { font-size: 28px; }
  .pct-sub { font-size: 10px; }
  .float-features { right: 2%; top: 530px; padding: 8px 14px; font-size: 12px; }
  .float-book-call { right: 2%; top: 600px; padding: 12px 22px; font-size: 13px; }
  .hero-video-wrap { width: 58%; }
  .stats-grid { grid-template-columns: repeat(2, 1fr); }
  .services-grid { grid-template-columns: repeat(2, 1fr); }
  .award-row { grid-template-columns: 150px 1fr auto; }
  .aw-type { display: none; }
}

/* --- Tablet portrait --- */
@media (max-width: 1024px) {
  .nav-links { display: none; }
  .nav-hamburger { display: flex; }
  .nav-cta-outline { display: none; }
  .nav-cta-fill { display: none; }
  
  .nav-pill { padding: 10px 16px; justify-content: space-between; }
  .nav-logo { margin-right: 0; }
  .hero { padding-top: 130px; }
  .hero-video-wrap { width: 65%; }
  
  /* Rescale float cards for tablet */
  .float-circle-white { width: 90px; height: 90px; left: 2%; top: 120px; }
  .float-analytics { left: 0%; top: 230px; width: 120px; padding: 8px; }
  .analytics-num { font-size: 11px; padding: 2px 7px; }
  .analytics-bars { height: 36px; }
  .float-arrow { display: none; }
  .float-widget { left: 0%; top: 400px; width: 170px; padding: 10px; }
  .float-installs { right: 0%; top: 110px; width: 160px; padding: 10px; }
  .installs-bars { height: 70px; }
  .float-percent { right: 0%; top: 310px; width: 110px; height: 110px; }
  .pct-val { font-size: 22px; }
  .pct-sub { font-size: 9px; }
  .float-features { right: 0%; top: 460px; padding: 7px 12px; font-size: 11px; }
  .feat-icon { width: 22px; height: 22px; font-size: 12px; }
  .float-book-call { right: 1%; top: 520px; padding: 10px 18px; font-size: 12px; }
  
  .stage-panel-inner { grid-template-columns: 1fr; gap: 32px; }
  .footer-top { grid-template-columns: 1fr; gap: 40px; }
}

/* --- Mobile --- */
@media (max-width: 768px) {
  /* Hide nav buttons on mobile — only logo + hamburger */
  .nav-right { display: none; }
  /* On scroll, show Contact button again */
  .navbar.scrolled .nav-right { display: flex; }
  .navbar.scrolled .nav-cta-fill { display: inline-flex; }
  .navbar.scrolled .nav-cta-outline { display: none; max-width: 0; }

  .navbar {
    width: calc(100% - 32px);
    max-width: 420px;
    top: 16px;
  }
  .nav-pill {
    width: 100%;
    justify-content: space-between;
    padding: 12px 16px;
  }
  .nav-logo { margin-right: 0; }

  .hero {
    padding-top: 100px;
    padding-bottom: 30px;
    overflow: visible;
    min-height: auto;
  }
  
  .hero-badge {
    padding: 8px 22px;
    font-size: 12px;
    margin-bottom: 24px;
  }
  
  .hero-title {
    font-size: clamp(36px, 10vw, 48px);
    letter-spacing: -2px;
    margin-bottom: 0;
    padding: 0 16px;
    line-height: 1.1;
  }

  /* ===== MOBILE FLOAT CARDS — positioned around title/video area ===== */
  .float-card { position: absolute; }
  .float-arrow { display: none; }
  
  /* White circle — top left, sits beside/above title */
  .float-circle-white {
    width: 90px;
    height: 90px;
    left: 4%;
    top: 130px;
    z-index: 4;
  }
  .float-circle-white .circle-inner svg { width: 24px; height: 24px; }

  /* Analytics card — below circle, left side */
  .float-analytics {
    left: 2%;
    top: 240px;
    width: 120px;
    padding: 10px;
    z-index: 4;
  }
  .analytics-num { font-size: 11px; padding: 2px 7px; }
  .analytics-emoji { width: 22px; height: 22px; font-size: 14px; }
  .analytics-bars { height: 35px; gap: 3px; }
  .a-bar { min-width: 12px; }

  /* Installs card — top right, beside title */
  .float-installs {
    right: 2%;
    top: 140px;
    width: 150px;
    padding: 10px;
    z-index: 4;
  }
  .installs-label { font-size: 10px; margin-bottom: 6px; }
  .installs-bars { height: 60px; gap: 3px; margin-bottom: 4px; }
  .installs-days { font-size: 7px; }
  .bar-tip { font-size: 7px; padding: 1px 4px; top: -16px; }

  /* +30% circle — right side, below installs near video */
  .float-percent {
    right: 4%;
    top: 500px;
    width: 100px;
    height: 100px;
    z-index: 12;
  }
  .pct-val { font-size: 22px; }
  .pct-sub { font-size: 8px; }

  /* Widget card — left side, overlapping video edge */
  .float-widget {
    left: 1%;
    top: 560px;
    width: 160px;
    padding: 10px;
    z-index: 12;
  }
  .widget-label { font-size: 10px; margin-bottom: 6px; }
  .widget-chart { margin-bottom: 3px; }
  .widget-months { font-size: 7px; margin-bottom: 8px; }
  .result-tag { padding: 3px 7px; font-size: 9px; gap: 3px; }
  .result-val { font-size: 14px; }
  .result-clock { font-size: 10px; }

  /* Key features pill — bottom right, near video bottom */
  .float-features {
    right: 3%;
    top: 710px;
    bottom: auto;
    padding: 7px 14px;
    font-size: 11px;
    gap: 6px;
    z-index: 12;
  }
  .feat-icon { width: 22px; height: 22px; font-size: 11px; }

  /* Book a call — full-width centered button below everything */
  .float-book-call {
    position: relative;
    right: auto;
    top: auto;
    display: flex;
    width: 80%;
    max-width: 340px;
    margin: 30px auto 0;
    justify-content: center;
    padding: 18px 36px;
    font-size: 17px;
    font-weight: 700;
    z-index: 10;
  }

  /* Video wrap — static, no scroll-to-fullscreen on mobile */
  .hero-video-wrap {
    width: 88%;
    max-width: 88%;
    margin: 30px auto 0;
    z-index: 5;
  }

  .hero-video-inner {
    perspective: 800px;
  }

  .hero-video-inner > .video-bezel {
    transform: rotateX(4deg);
  }

  .video-bezel {
    border-radius: 10px;
  }

  .video-chrome {
    padding: 6px 10px;
    gap: 6px;
  }
  .video-dots span { width: 6px; height: 6px; }
  .video-url-bar { height: 16px; max-width: 120px; }

  /* Stats and other sections */
  .stats-section { padding: 80px 0; }
  .stats-grid { grid-template-columns: 1fr; gap: 14px; }
  .stages-section { padding: 80px 0; }
  .stages-tab-nav { flex-direction: column; border-bottom: none; }
  .stage-tab { border-bottom: 1px solid var(--border); border-left: 2px solid transparent; }
  .stage-tab.active { border-bottom-color: var(--border); border-left-color: var(--accent); }
  .services-section { padding: 80px 0; }
  .services-grid { grid-template-columns: 1fr; }
  .svc-highlight { flex-direction: column; gap: 16px; padding: 24px; }
  .cases-section { padding: 80px 0; }
  .cases-grid { grid-template-columns: 1fr; }
  .blog-section { padding: 80px 0; }
  .blog-grid { grid-template-columns: 1fr; }
  .blog-featured { grid-column: span 1; grid-template-columns: 1fr; }
  .blog-featured .blog-img { min-height: 200px; }
  .faq-section { padding: 80px 0; }
  .awards-section { padding: 80px 0; }
  .award-row { grid-template-columns: 1fr 1fr; gap: 10px; }
  .aw-platform { grid-column: span 2; }
  .test-header { flex-direction: column; align-items: flex-start; }
  .footer-grid { grid-template-columns: repeat(2, 1fr); gap: 28px; }
  .footer-bottom { flex-direction: column; gap: 12px; text-align: center; }
  .cta-section { padding: 80px 0; }
  .cta-btns { flex-direction: column; }
  .cta-btns a { width: 100%; justify-content: center; }
}

/* --- Small mobile (iPhone 12 Pro = 390px) --- */
@media (max-width: 480px) {
  .hero { padding-top: 90px; }
  .hero-title { font-size: clamp(32px, 9.5vw, 42px); letter-spacing: -1.5px; padding: 0 12px; }
  .hero-badge { font-size: 11px; padding: 7px 18px; margin-bottom: 18px; }

  /* Float cards scaled for ~390px viewport */
  .float-circle-white { width: 75px; height: 75px; left: 3%; top: 110px; }
  .float-circle-white .circle-inner svg { width: 20px; height: 20px; }

  .float-analytics { left: 0%; top: 200px; width: 105px; padding: 7px; }
  .analytics-num { font-size: 10px; padding: 2px 6px; }
  .analytics-emoji { width: 18px; height: 18px; font-size: 11px; }
  .analytics-bars { height: 28px; gap: 2px; }
  .a-bar { min-width: 9px; }

  .float-installs { right: 0%; top: 110px; width: 130px; padding: 7px; }
  .installs-label { font-size: 9px; margin-bottom: 4px; }
  .installs-bars { height: 48px; gap: 2px; margin-bottom: 3px; }
  .installs-days { font-size: 6px; }
  .bar-tip { font-size: 6px; padding: 1px 3px; top: -14px; }

  .float-percent { right: 3%; top: 440px; width: 85px; height: 85px; }
  .pct-val { font-size: 19px; }
  .pct-sub { font-size: 7px; }

  .float-widget { left: 0%; top: 490px; width: 145px; padding: 7px 8px; }
  .widget-label { font-size: 9px; margin-bottom: 4px; }
  .widget-months { font-size: 6px; margin-bottom: 6px; }
  .result-tag { padding: 2px 6px; font-size: 8px; }
  .result-val { font-size: 13px; }

  .float-features { top: 630px; right: 1%; padding: 5px 10px; font-size: 10px; }
  .feat-icon { width: 18px; height: 18px; font-size: 9px; }

  .float-book-call { width: 85%; padding: 15px 28px; font-size: 16px; margin-top: 20px; }

  .hero-video-wrap { width: 90%; max-width: 90%; margin: 24px auto 0; }

  .section-title { font-size: 28px; letter-spacing: -1px; }
  .stat-card { padding: 24px 20px; }
  .test-card { width: 280px; padding: 20px; }
  .test-card p { font-size: 14px; }
  .footer-grid { grid-template-columns: 1fr; }
}

/* Focus styles */
*:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }

/* Reduced motion */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
}
