/* Klaybyte School — landing page (plain CSS, no build) */
:root {
  /* colour system */
  --navy-950: #070d24;
  --navy-900: #0b1437;
  --navy-800: #13204f;
  --navy-700: #1c2d69;
  --blue: #2563eb;
  --blue-600: #1d4ed8;
  --blue-400: #60a5fa;
  --indigo: #4f46e5;
  --violet: #7c3aed;
  --green: #10b981;
  --green-600: #059669;
  --sky-50: #f0f6ff;
  --blue-50: #eef4ff;
  --blue-100: #dbe7ff;
  --ink: #0b1437;
  --text: #33405c;
  --muted: #5b6785;
  --line: #e3e8f2;
  --bg: #ffffff;
  --bg-alt: #f6f8fd;

  --grad: linear-gradient(120deg, var(--blue) 0%, var(--indigo) 55%, var(--violet) 100%);
  --grad-accent: linear-gradient(120deg, var(--blue) 0%, var(--indigo) 50%, var(--green) 100%);

  --radius-lg: 24px;
  --radius: 18px;
  --radius-sm: 12px;
  --shadow-sm: 0 1px 2px rgba(11, 20, 55, .06), 0 2px 6px rgba(11, 20, 55, .04);
  --shadow: 0 1px 2px rgba(11, 20, 55, .05), 0 6px 16px rgba(11, 20, 55, .06), 0 18px 40px -12px rgba(11, 20, 55, .10);
  --shadow-lg: 0 2px 4px rgba(11, 20, 55, .06), 0 20px 40px -8px rgba(11, 20, 55, .18), 0 48px 90px -24px rgba(37, 56, 140, .35);
  --shadow-glow: 0 10px 30px -6px rgba(79, 70, 229, .45);

  --font: "Hind Siliguri", "Noto Sans Bengali", "Kalpurush", system-ui, -apple-system, "Segoe UI", sans-serif;
  --font-display: "Anek Bangla", "Hind Siliguri", "Noto Sans Bengali", system-ui, sans-serif;
  --header-h: 74px;
  --ease: cubic-bezier(.2, .8, .2, 1);
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 84px; -webkit-text-size-adjust: 100%; }
body {
  margin: 0; font-family: var(--font); font-size: clamp(16px, .95rem + .15vw, 17.5px); line-height: 1.75;
  color: var(--text); background: var(--bg); overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}
img, video { max-width: 100%; height: auto; display: block; }
a { color: var(--blue-600); }
h1, h2, h3 { font-family: var(--font-display); color: var(--ink); line-height: 1.25; margin: 0 0 .5em; font-weight: 700; letter-spacing: -.005em; }
h1 { font-size: clamp(2.2rem, 1.3rem + 3.2vw, 3.9rem); line-height: 1.15; font-weight: 800; }
h2 { font-size: clamp(1.8rem, 1.2rem + 2.4vw, 3rem); line-height: 1.2; }
h3 { font-size: 1.2rem; font-weight: 600; }
p { margin: 0 0 1em; }
ul { margin: 0; padding: 0; list-style: none; }
:focus-visible { outline: 3px solid #f59e0b; outline-offset: 3px; border-radius: 6px; }

.container { width: 100%; max-width: 1240px; margin: 0 auto; padding: 0 16px; position: relative; }
@media (min-width: 768px) { .container { padding: 0 28px; } }
.narrow { max-width: 900px; }
.center { text-align: center; }

.skip-link { position: absolute; left: 8px; top: -60px; background: var(--blue); color: #fff; padding: 8px 14px; border-radius: 8px; z-index: 300; }
.skip-link:focus { top: 8px; }

.grad {
  background: var(--grad); -webkit-background-clip: text; background-clip: text;
  color: transparent; -webkit-text-fill-color: transparent;
}
.grad-light { background-image: linear-gradient(120deg, #93c5fd, #a5b4fc 50%, #6ee7b7); }

/* ---------- Buttons ---------- */
.btn {
  position: relative; overflow: hidden; isolation: isolate;
  display: inline-flex; align-items: center; justify-content: center; gap: .55em;
  min-height: 46px; padding: .55em 1.35em; border-radius: 999px; border: 1px solid transparent;
  font: inherit; font-weight: 600; text-decoration: none; cursor: pointer; white-space: nowrap;
  transition: transform .25s var(--ease), box-shadow .25s var(--ease), background-color .2s, border-color .2s, color .2s;
}
.btn svg { transition: transform .25s var(--ease); }
.btn:hover svg { transform: translateX(3px); }
.btn::after { /* shine */
  content: ""; position: absolute; inset: 0; z-index: -1; pointer-events: none;
  background: linear-gradient(105deg, transparent 30%, rgba(255, 255, 255, .45) 48%, transparent 66%);
  transform: translateX(-120%);
}
.btn:hover::after { transform: translateX(120%); transition: transform .8s var(--ease); }
.btn-primary { color: #fff; background: var(--grad); background-size: 140% 100%; box-shadow: var(--shadow-glow); }
.btn-primary:hover { transform: translateY(-2px); box-shadow: 0 16px 34px -8px rgba(79, 70, 229, .55); }
.btn-ghost { background: rgba(255, 255, 255, .75); color: var(--ink); border-color: var(--line); box-shadow: var(--shadow-sm); backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px); }
.btn-ghost:hover { transform: translateY(-2px); border-color: #c7d4f5; box-shadow: var(--shadow); }
.btn-ghost:hover svg { transform: none; }
.btn-sm { min-height: 44px; padding: .3em 1.15em; font-size: .95rem; }
.btn-lg { min-height: 54px; padding: .6em 1.7em; font-size: 1.05rem; }
.btn-block { width: 100%; }
.btn-block + .btn-block { margin-top: 10px; }
.play-dot { width: 28px; height: 28px; border-radius: 50%; display: grid; place-items: center; background: var(--grad); color: #fff; margin-left: -.4em; }
.play-dot svg { margin-left: 2px; }

.eyebrow, .badge {
  display: inline-flex; align-items: center; gap: .55em; font-weight: 600; font-size: .9rem; color: var(--blue-600);
  background: var(--blue-50); border: 1px solid var(--blue-100); padding: .2em .95em; border-radius: 999px; margin-bottom: 1em;
}
.eyebrow-light { color: #c7d7fe; background: rgba(255, 255, 255, .08); border-color: rgba(255, 255, 255, .14); }
.badge { background: rgba(255, 255, 255, .7); border-color: rgba(37, 99, 235, .18); box-shadow: var(--shadow-sm); backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px); }
.pulse { position: relative; width: 8px; height: 8px; border-radius: 50%; background: var(--green); flex: none; }
.pulse::after { content: ""; position: absolute; inset: -4px; border-radius: 50%; border: 2px solid var(--green); opacity: 0; animation: ping 2s var(--ease) infinite; }
@keyframes ping { 0% { transform: scale(.4); opacity: .9; } 100% { transform: scale(1.6); opacity: 0; } }

/* ---------- Header ---------- */
.site-header {
  position: fixed; top: 0; left: 0; right: 0; z-index: 100;
  background: rgba(255, 255, 255, .55); border-bottom: 1px solid transparent;
  backdrop-filter: saturate(170%) blur(14px); -webkit-backdrop-filter: saturate(170%) blur(14px);
  transition: background-color .3s, border-color .3s, box-shadow .3s;
}
.site-header.scrolled { background: rgba(255, 255, 255, .82); border-color: rgba(227, 232, 242, .9); box-shadow: 0 8px 30px -12px rgba(11, 20, 55, .15); }
.header-inner { display: flex; align-items: center; justify-content: space-between; height: var(--header-h); gap: 16px; transition: height .3s var(--ease); }
.scrolled .header-inner { height: 62px; }
.scroll-progress { position: absolute; left: 0; right: 0; bottom: -1px; height: 3px; pointer-events: none; }
.scroll-progress span { display: block; height: 100%; background: var(--grad-accent); transform-origin: 0 50%; transform: scaleX(0); }
.brand { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; color: var(--ink); font-family: var(--font-display); font-size: 1.3rem; font-weight: 600; min-height: 44px; }
.brand-logo { width: 36px; height: 42px; flex: none; filter: drop-shadow(0 4px 10px rgba(20, 31, 107, .25)); }
.brand-text { display: flex; flex-direction: column; line-height: 1.15; }
.brand-name { font-weight: 800; font-size: 1.15rem; letter-spacing: -.01em; }
.brand-sub { font-family: var(--font); font-size: .72rem; font-weight: 500; color: var(--muted, #64748b); }
.site-nav { display: flex; align-items: center; gap: 18px; }
.site-nav ul { display: flex; gap: 2px; }
.site-nav ul a { position: relative; display: inline-flex; align-items: center; min-height: 44px; padding: 0 14px; color: var(--ink); text-decoration: none; font-weight: 500; border-radius: 999px; transition: color .2s, background-color .2s; }
.site-nav ul a:hover { color: var(--blue-600); background: var(--blue-50); }
.site-nav ul a.active { color: var(--blue-600); }
.site-nav ul a::after { content: ""; position: absolute; left: 50%; bottom: 6px; width: 18px; height: 3px; margin-left: -9px; border-radius: 3px; background: var(--grad-accent); transform: scaleX(0); transition: transform .3s var(--ease); }
.site-nav ul a.active::after { transform: scaleX(1); }
.nav-toggle { display: none; width: 46px; height: 46px; border: 1px solid var(--line); background: rgba(255, 255, 255, .8); border-radius: 14px; cursor: pointer; padding: 0; flex-direction: column; align-items: center; justify-content: center; gap: 5px; }
.nav-toggle span { width: 20px; height: 2px; background: var(--ink); border-radius: 2px; transition: transform .3s var(--ease), opacity .2s; }
.nav-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.nav-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }
/* Language switcher (landing/partials/lang-switch): right of the menu on desktop, beside the menu button on mobile */
.header-inner > .site-nav { margin-left: auto; }
.school-lang { order: 3; }
@media (min-width: 961px) and (max-width: 1140px) { .site-nav { gap: 12px; } .site-nav ul a { padding: 0 9px; } }

@media (max-width: 960px) {
  .nav-toggle { display: inline-flex; }
  .nav-toggle { order: 4; }
  .school-lang { margin-left: auto; }
  .site-nav {
    position: absolute; top: calc(100% + 8px); left: 12px; right: 12px; flex-direction: column; align-items: stretch; gap: 10px;
    padding: 12px; border-radius: var(--radius); background: rgba(255, 255, 255, .96); border: 1px solid var(--line);
    box-shadow: var(--shadow-lg); backdrop-filter: blur(16px); -webkit-backdrop-filter: blur(16px);
    opacity: 0; visibility: hidden; transform: translateY(-14px) scale(.98); transform-origin: top center;
    transition: opacity .3s var(--ease), transform .35s var(--ease), visibility 0s .35s;
  }
  .site-nav.open { opacity: 1; visibility: visible; transform: none; transition: opacity .3s var(--ease), transform .35s var(--ease), visibility 0s; }
  .site-nav ul { flex-direction: column; }
  .site-nav ul a { width: 100%; border-radius: 12px; min-height: 48px; }
  .site-nav ul a::after { left: 0; bottom: 50%; margin: 0 0 -9px; width: 3px; height: 18px; transform: scaleY(0); }
  .site-nav ul a.active { background: var(--blue-50); }
  .site-nav ul a.active::after { transform: scaleY(1); }
  .site-nav li { opacity: 0; transform: translateY(-6px); transition: opacity .3s, transform .3s var(--ease); }
  .site-nav.open li { opacity: 1; transform: none; }
  .site-nav.open li:nth-child(2) { transition-delay: .03s; } .site-nav.open li:nth-child(3) { transition-delay: .06s; }
  .site-nav.open li:nth-child(4) { transition-delay: .09s; } .site-nav.open li:nth-child(5) { transition-delay: .12s; }
  .site-nav.open li:nth-child(6) { transition-delay: .15s; }
  /* without JS the menu can't open: hide the toggle, keep the CTA */
  html:not(.js) .nav-toggle { display: none; }
  html:not(.js) .site-nav { position: static; opacity: 1; visibility: visible; transform: none; padding: 0; background: none; border: 0; box-shadow: none; }
  html:not(.js) .site-nav ul { display: none; }
}

/* ---------- Hero ---------- */
.hero {
  position: relative; overflow: hidden; isolation: isolate;
  padding: calc(var(--header-h) + 44px) 0 80px;
  background: linear-gradient(180deg, #f5f8ff 0%, #ffffff 100%);
}
@media (min-width: 1024px) { .hero { padding: calc(var(--header-h) + 72px) 0 120px; } }
.aurora { position: absolute; inset: 0; z-index: -2; overflow: hidden; pointer-events: none; }
.aurora i { position: absolute; border-radius: 50%; filter: blur(70px); opacity: .55; will-change: transform; }
.aurora .b1 { width: 46vw; height: 46vw; max-width: 640px; max-height: 640px; top: -18%; right: -8%; background: #93b4ff; animation: drift1 18s ease-in-out infinite alternate; }
.aurora .b2 { width: 36vw; height: 36vw; max-width: 520px; max-height: 520px; top: 30%; right: 22%; background: #c4b5fd; animation: drift2 22s ease-in-out infinite alternate; }
.aurora .b3 { width: 30vw; height: 30vw; max-width: 420px; max-height: 420px; bottom: -14%; left: -6%; background: #a7f3d0; opacity: .5; animation: drift3 20s ease-in-out infinite alternate; }
.aurora .b4 { width: 26vw; height: 26vw; max-width: 380px; max-height: 380px; top: -10%; left: 18%; background: #bfdbfe; animation: drift2 26s ease-in-out infinite alternate-reverse; }
@media (max-width: 767px) { .aurora i { filter: blur(50px); } .aurora .b1 { width: 90vw; height: 90vw; } .aurora .b2 { width: 70vw; height: 70vw; top: 50%; } .aurora .b3 { width: 70vw; height: 70vw; } }
@keyframes drift1 { to { transform: translate3d(-12%, 14%, 0) scale(1.15); } }
@keyframes drift2 { to { transform: translate3d(14%, -10%, 0) scale(.9); } }
@keyframes drift3 { to { transform: translate3d(18%, -12%, 0) scale(1.2); } }
.hero-grid-bg {
  position: absolute; inset: 0; z-index: -1; pointer-events: none;
  background-image: radial-gradient(rgba(37, 56, 140, .16) 1px, transparent 1.2px);
  background-size: 22px 22px;
  -webkit-mask-image: radial-gradient(ellipse 70% 60% at 50% 35%, #000 20%, transparent 75%);
  mask-image: radial-gradient(ellipse 70% 60% at 50% 35%, #000 20%, transparent 75%);
}
.hero-grid { display: grid; gap: 56px; align-items: center; }
@media (min-width: 1024px) { .hero-grid { grid-template-columns: 1fr 1fr; gap: 56px; } }
.hero-title { margin-bottom: .45em; }
.hero-title .w { display: inline-block; }
.hl .w { background: var(--grad-accent); -webkit-background-clip: text; background-clip: text; color: transparent; -webkit-text-fill-color: transparent; padding-bottom: .08em; }
.hl { white-space: nowrap; }
.lead { font-size: clamp(1.05rem, 1rem + .35vw, 1.22rem); color: var(--text); max-width: 34em; }
.hero-ctas { display: flex; flex-wrap: wrap; gap: 12px; margin: 30px 0 28px; }
.hero-points { display: grid; gap: 6px; }
.hero-points li, .checks li { display: flex; gap: 10px; align-items: flex-start; }
.hero-points svg { flex: none; color: var(--green-600); margin-top: .35em; }
.checks li { margin-bottom: .7em; }
.check-ic { flex: none; width: 26px; height: 26px; margin-top: .05em; border-radius: 50%; display: grid; place-items: center; color: #fff; background: linear-gradient(135deg, var(--green), var(--green-600)); box-shadow: 0 4px 10px -2px rgba(16, 185, 129, .45); }

/* visual */
.hero-visual { position: relative; padding: 4% 12% 10% 0; perspective: 1400px; --mx: 0; --my: 0; }
.tilt {
  position: relative; transform-style: preserve-3d;
  transform: rotateY(calc(-7deg + var(--mx) * 6deg)) rotateX(calc(4deg - var(--my) * 5deg));
  transition: transform .5s var(--ease);
}
@media (max-width: 1023px) { .tilt { transform: none; } }
.tilt::before { /* glow under the frame */
  content: ""; position: absolute; inset: 8% 6% -6%; z-index: -1; border-radius: 30px;
  background: var(--grad-accent); filter: blur(46px); opacity: .35;
}
.browser { margin: 0; background: #fff; border-radius: 16px; overflow: hidden; box-shadow: var(--shadow-lg); border: 1px solid rgba(255, 255, 255, .8); outline: 1px solid rgba(11, 20, 55, .06); }
.browser-bar { display: flex; align-items: center; gap: 6px; height: 34px; padding: 0 12px; background: linear-gradient(#f7f9fd, #eef2f8); border-bottom: 1px solid var(--line); }
.browser-bar i { width: 10px; height: 10px; border-radius: 50%; background: #f87171; flex: none; }
.browser-bar i:nth-child(2) { background: #fbbf24; }
.browser-bar i:nth-child(3) { background: #34d399; }
.browser-bar span { margin-left: 10px; flex: 1; min-width: 0; max-width: 320px; font-size: .75rem; color: var(--muted); background: #fff; border-radius: 999px; padding: 0 12px; line-height: 20px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }

.depth { position: absolute; transform: translate3d(calc(var(--mx) * var(--z) * 1px), calc(var(--my) * var(--z) * 1px), 0); transition: transform .5s var(--ease); }
.phone { margin: 0; position: relative; background: linear-gradient(145deg, #1e2a4a, #0b1220); border-radius: 30px; padding: 8px; box-shadow: var(--shadow-lg), inset 0 0 0 1px rgba(255, 255, 255, .08); }
.phone img { border-radius: 23px; aspect-ratio: 780 / 1688; object-fit: cover; object-position: top; width: 100%; }
.phone figcaption { position: absolute; left: 50%; bottom: -40px; transform: translateX(-50%); white-space: nowrap; font-weight: 600; color: var(--ink); font-size: .95rem; }
.phone-pos { right: 0; bottom: 0; width: 26%; }
.phone-hero { border-radius: 24px; padding: 6px; }
.phone-hero img { border-radius: 18px; }

.chip-pos { z-index: 3; }
.chip {
  display: flex; align-items: center; gap: 10px; padding: 8px 14px 8px 8px; border-radius: 16px;
  background: rgba(255, 255, 255, .82); border: 1px solid rgba(255, 255, 255, .9);
  box-shadow: 0 12px 30px -8px rgba(11, 20, 55, .25), 0 2px 6px rgba(11, 20, 55, .06);
  backdrop-filter: blur(12px) saturate(160%); -webkit-backdrop-filter: blur(12px) saturate(160%);
  white-space: nowrap; line-height: 1.25;
}
.chip b { display: block; font-size: .88rem; color: var(--ink); font-weight: 600; }
.chip small { display: block; font-size: .72rem; color: var(--muted); }
.chip-ic { width: 36px; height: 36px; border-radius: 11px; display: grid; place-items: center; color: #fff; font-weight: 700; font-size: 1.1rem; flex: none; }
.ic-green { background: linear-gradient(135deg, #34d399, #059669); }
.ic-blue { background: linear-gradient(135deg, #60a5fa, #2563eb); }
.ic-violet { background: linear-gradient(135deg, #a78bfa, #6d28d9); }
.c1 { top: -2%; left: -5%; }
.c2 { top: 46%; left: -5%; }
.c3 { bottom: 2%; left: 30%; }
@media (max-width: 1023px) { .c1 { left: 2%; top: -4%; } .c2 { left: 0; top: 46%; } .c3 { left: 20%; bottom: 0; } }
@media (max-width: 599px) {
  .chip { padding: 5px 10px 5px 5px; gap: 7px; border-radius: 12px; }
  .chip-ic { width: 28px; height: 28px; border-radius: 9px; font-size: .95rem; }
  .chip-ic svg { width: 15px; height: 15px; }
  .chip b { font-size: .76rem; } .chip small { display: none; }
  .c2 { display: none; }
  .c1 { top: -9%; left: 0; } .c3 { left: 4%; bottom: -1%; }
}

/* ---------- Stats + marquee (dark band) ---------- */
.stats { position: relative; overflow: hidden; isolation: isolate; background: var(--navy-900); color: #b9c4dd; padding: 48px 0 0; }
.stats::before { content: ""; position: absolute; inset: 0; z-index: -1; background-image: linear-gradient(rgba(255, 255, 255, .045) 1px, transparent 1px), linear-gradient(90deg, rgba(255, 255, 255, .045) 1px, transparent 1px); background-size: 44px 44px; -webkit-mask-image: linear-gradient(180deg, #000, transparent 90%); mask-image: linear-gradient(180deg, #000, transparent 90%); }
.stats-glow { position: absolute; z-index: -1; width: 60%; height: 140%; left: 20%; top: -70%; background: radial-gradient(closest-side, rgba(79, 70, 229, .45), transparent); filter: blur(20px); pointer-events: none; }
.stats-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 14px; }
.stat {
  display: flex; flex-direction: column; text-align: center; padding: 18px 12px; border-radius: var(--radius);
  background: rgba(255, 255, 255, .04); border: 1px solid rgba(255, 255, 255, .08);
}
.stat strong { font-family: var(--font-display); color: #fff; font-size: clamp(1.3rem, 1rem + 1.2vw, 1.9rem); line-height: 1.3; font-weight: 700; }
.stat strong [data-count] { background: linear-gradient(120deg, #93c5fd, #a5b4fc 55%, #6ee7b7); -webkit-background-clip: text; background-clip: text; color: transparent; -webkit-text-fill-color: transparent; font-variant-numeric: tabular-nums; }
.stat > span { font-size: .92rem; }
.stat:last-child { grid-column: 1 / -1; }
@media (min-width: 768px) { .stats-grid { grid-template-columns: repeat(3, 1fr); gap: 16px; } .stat:last-child { grid-column: span 2; } }
@media (min-width: 1100px) { .stats-grid { grid-template-columns: repeat(5, 1fr); } .stat:last-child { grid-column: auto; } }

.marquee {
  display: flex; overflow: hidden; margin-top: 40px; padding: 18px 0; border-top: 1px solid rgba(255, 255, 255, .08);
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 10%, #000 90%, transparent);
  mask-image: linear-gradient(90deg, transparent, #000 10%, #000 90%, transparent);
}
.marquee-track { display: flex; flex: none; gap: 12px; padding-right: 12px; animation: marquee 48s linear infinite; }
.marquee:hover .marquee-track { animation-play-state: paused; }
.marquee-track li { flex: none; display: inline-flex; align-items: center; gap: 10px; padding: 6px 16px; border-radius: 999px; color: #dbe4ff; font-weight: 500; font-size: .95rem; background: rgba(255, 255, 255, .06); border: 1px solid rgba(255, 255, 255, .1); white-space: nowrap; }
.marquee-track li::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: linear-gradient(135deg, var(--blue-400), var(--green)); }
@keyframes marquee { to { transform: translateX(-100%); } }

/* ---------- Sections ---------- */
.section { position: relative; padding: clamp(72px, 6vw + 40px, 128px) 0; }
.section-alt { background: var(--bg-alt); overflow: hidden; }
.section-alt::before { content: ""; position: absolute; inset: 0; pointer-events: none; background-image: radial-gradient(rgba(37, 56, 140, .10) 1px, transparent 1.2px); background-size: 24px 24px; -webkit-mask-image: linear-gradient(180deg, #000, transparent 45%); mask-image: linear-gradient(180deg, #000, transparent 45%); }
.section-head { text-align: center; max-width: 760px; margin: 0 auto clamp(36px, 4vw, 56px); }
.section-head p:last-child { color: var(--muted); font-size: 1.08rem; }

/* ---------- Features ---------- */
.feature-grid { display: grid; gap: 20px; grid-template-columns: 1fr; }
@media (min-width: 640px) { .feature-grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1024px) { .feature-grid { grid-template-columns: repeat(3, 1fr); gap: 22px; } }
@media (min-width: 1280px) { .feature-grid { grid-template-columns: repeat(4, 1fr); } }
.feature {
  --x: 50%; --y: 0%;
  position: relative; isolation: isolate; background: #fff; border: 1px solid var(--line); border-radius: var(--radius-lg); padding: 26px 24px;
  box-shadow: var(--shadow-sm); transition: transform .35s var(--ease), box-shadow .35s var(--ease), border-color .35s;
}
.feature::before { /* gradient border glow */
  content: ""; position: absolute; inset: -1px; border-radius: inherit; padding: 1.5px; pointer-events: none;
  background: var(--grad-accent);
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0); -webkit-mask-composite: xor;
  mask: linear-gradient(#000 0 0) content-box exclude, linear-gradient(#000 0 0);
  opacity: 0; transition: opacity .35s;
}
.feature::after { /* spotlight */
  content: ""; position: absolute; inset: 0; z-index: -1; border-radius: inherit; pointer-events: none;
  background: radial-gradient(320px circle at var(--x) var(--y), rgba(99, 102, 241, .09), transparent 60%);
  opacity: 0; transition: opacity .35s;
}
.feature:hover { transform: translateY(-6px); box-shadow: var(--shadow-lg); border-color: transparent; }
.feature:hover::before, .feature:hover::after { opacity: 1; }
.feature h3 { font-size: 1.18rem; }
.f-icon { width: 52px; height: 52px; display: grid; place-items: center; border-radius: 16px; color: #fff; margin-bottom: 16px; background: var(--grad); box-shadow: 0 10px 22px -8px rgba(79, 70, 229, .6); transition: transform .4s var(--ease); }
.feature:nth-child(3n+2) .f-icon { background: linear-gradient(135deg, #0ea5e9, #2563eb); box-shadow: 0 10px 22px -8px rgba(37, 99, 235, .6); }
.feature:nth-child(3n) .f-icon { background: linear-gradient(135deg, #34d399, #059669); box-shadow: 0 10px 22px -8px rgba(5, 150, 105, .55); }
.feature:hover .f-icon { transform: translateY(-2px) rotate(-6deg) scale(1.06); }
.f-icon svg { width: 26px; height: 26px; }
.feature ul li { position: relative; padding-left: 20px; font-size: .95rem; margin-bottom: .4em; line-height: 1.6; }
.feature ul li::before { content: ""; position: absolute; left: 2px; top: .62em; width: 7px; height: 7px; border-radius: 50%; background: var(--grad-accent); }

/* ---------- Screenshot tabs ---------- */
.tabs {
  display: flex; gap: 6px; overflow-x: auto; padding: 6px; margin: 0 auto 32px; width: max-content; max-width: 100%;
  background: rgba(255, 255, 255, .8); border: 1px solid var(--line); border-radius: 999px; box-shadow: var(--shadow-sm);
  scrollbar-width: none; -webkit-overflow-scrolling: touch;
}
.tabs::-webkit-scrollbar { display: none; }
.tabs [role="tab"] { flex: none; min-height: 44px; padding: 0 18px; border-radius: 999px; border: 0; background: transparent; color: var(--text); font: inherit; font-weight: 600; cursor: pointer; white-space: nowrap; transition: background-color .25s, color .25s, box-shadow .25s; }
.tabs [role="tab"]:hover { color: var(--blue-600); background: var(--blue-50); }
.tabs [role="tab"][aria-selected="true"] { background: var(--grad); color: #fff; box-shadow: var(--shadow-glow); }
.tab-panel { position: relative; }
.tab-panel + .tab-panel { margin-top: 48px; } /* no-JS: panels stack */
.js .tab-panel + .tab-panel { margin-top: 0; }
.tab-panel:focus-visible { outline-offset: 8px; }

.shot-grid { display: grid; gap: 22px; grid-template-columns: 1fr; }
@media (min-width: 768px) { .shot-grid { grid-template-columns: 1fr 1fr; } .shot-main { grid-column: 1 / -1; } }
@media (min-width: 1100px) {
  .shot-grid { grid-template-columns: 2fr 1fr; grid-template-rows: auto auto; }
  .shot-main { grid-column: 1; grid-row: 1 / span 2; }
  .shot-grid-2 { grid-template-columns: 1fr 1fr; }
  .shot-grid .shot-phone { justify-self: center; }
}
.shot { margin: 0; }
.shot-btn {
  position: relative; display: block; width: 100%; padding: 0; border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden;
  background: #fff; cursor: zoom-in; box-shadow: var(--shadow); transition: transform .35s var(--ease), box-shadow .35s var(--ease);
}
.shot-btn img { width: 100%; transition: transform .6s var(--ease); }
.shot-btn:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); }
.shot-btn:hover img { transform: scale(1.03); }
.shot-phone .shot-btn { max-width: 210px; margin: 0 auto; border-radius: 26px; border: 7px solid #111a30; }
.shot-phone .shot-btn img { aspect-ratio: 780 / 1100; object-fit: cover; object-position: top; }
.zoom { position: absolute; right: 12px; bottom: 12px; width: 42px; height: 42px; display: grid; place-items: center; border-radius: 50%; background: rgba(11, 20, 55, .78); color: #fff; opacity: 0; transform: scale(.7); transition: opacity .25s, transform .3s var(--ease); backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px); }
.shot-btn:hover .zoom, .shot-btn:focus-visible .zoom { opacity: 1; transform: none; }
@media (hover: none) { .zoom { opacity: .92; transform: none; } }
.shot figcaption { margin-top: 12px; font-size: .95rem; color: var(--muted); text-align: center; }

/* ---------- Screenshot slider (built by main.js from each .shot-grid) ---------- */
.slider { position: relative; }
.slider-viewport { overflow: hidden; padding: 10px 0 6px; touch-action: pan-y; }
.slider .slider-track { display: flex; gap: 0; transition: transform .7s var(--ease); will-change: transform; }
.slider .shot { flex: 0 0 100%; min-width: 0; padding: 0 clamp(4px, 2vw, 64px); }
.slider .shot-btn:hover { transform: translateY(-3px); }
.slider .shot figcaption { font-size: 1.02rem; color: var(--ink); font-weight: 500; }
.slider-btn {
  position: absolute; top: calc(50% - 40px); z-index: 2; width: 52px; height: 52px; display: grid; place-items: center;
  border: 1px solid rgba(255, 255, 255, .6); border-radius: 50%; color: var(--ink); cursor: pointer;
  background: rgba(255, 255, 255, .82); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px);
  box-shadow: var(--shadow); transition: transform .3s var(--ease), background .3s, color .3s;
}
.slider-btn:hover { background: var(--grad); color: #fff; transform: scale(1.08); }
.slider-btn:focus-visible { outline: 3px solid var(--brand, #2563eb); outline-offset: 3px; }
.slider-prev { left: 0; }
.slider-next { right: 0; }
.slider-foot { display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 10px; margin-top: 18px; }
.slider-dot { width: 12px; height: 12px; padding: 0; border: 0; border-radius: 999px; background: #cbd5e1; cursor: pointer; transition: width .35s var(--ease), background .35s; }
.slider-dot[aria-current="true"] { width: 34px; background: var(--grad); }
.slider-dot:focus-visible { outline: 3px solid var(--brand, #2563eb); outline-offset: 3px; }
.slider-count { margin-left: 6px; font-size: .9rem; color: var(--muted); font-variant-numeric: tabular-nums; }
@media (max-width: 767.98px) {
  .slider-btn { width: 40px; height: 40px; top: calc(50% - 34px); }
  .slider .shot { padding: 0 2px; }
}
.no-motion .slider .slider-track { transition: none; }

/* ---------- Mobile ---------- */
.section-mobile { overflow: hidden; }
.section-mobile::before { content: ""; position: absolute; width: 640px; height: 640px; right: -160px; top: 50%; margin-top: -320px; border-radius: 50%; background: radial-gradient(closest-side, rgba(99, 102, 241, .16), transparent); pointer-events: none; }
.mobile-grid { display: grid; gap: 56px; align-items: center; }
@media (min-width: 1024px) { .mobile-grid { grid-template-columns: 5fr 7fr; } }
.mobile-copy > p { font-size: 1.05rem; }
.phones { display: grid; grid-template-columns: repeat(3, 1fr); gap: clamp(10px, 3vw, 30px); padding: 24px 0 48px; max-width: 660px; margin: 0 auto; width: 100%; }
.phones .phone { border-radius: clamp(16px, 4vw, 32px); padding: clamp(4px, 1vw, 8px); }
.phones .phone img { border-radius: clamp(12px, 3vw, 25px); }
.phones .phone figcaption { font-size: clamp(.8rem, 2.6vw, .95rem); }
.phone-up { margin-top: -28px; margin-bottom: 28px; }

/* ---------- Dark sections (video / CTA) ---------- */
.section-dark, .section-cta { overflow: hidden; isolation: isolate; color: #b9c4dd; }
.section-dark { background: radial-gradient(900px 480px at 50% 0%, rgba(79, 70, 229, .35), transparent 70%), var(--navy-900); }
.section-dark h2, .section-cta h2 { color: #fff; }
.muted-light { color: #b9c4dd; font-size: 1.08rem; }
.dark-blobs i { position: absolute; z-index: -1; border-radius: 50%; filter: blur(80px); opacity: .45; pointer-events: none; }
.dark-blobs i:first-child { width: 420px; height: 420px; left: -140px; bottom: -160px; background: #2563eb; animation: drift3 24s ease-in-out infinite alternate; }
.dark-blobs i:last-child { width: 360px; height: 360px; right: -120px; top: -120px; background: #10b981; opacity: .25; animation: drift1 20s ease-in-out infinite alternate; }
.section-dark::before, .section-cta::before { content: ""; position: absolute; inset: 0; z-index: -1; pointer-events: none; background-image: radial-gradient(rgba(255, 255, 255, .09) 1px, transparent 1.2px); background-size: 26px 26px; -webkit-mask-image: radial-gradient(ellipse at center, #000 10%, transparent 70%); mask-image: radial-gradient(ellipse at center, #000 10%, transparent 70%); }
.video-frame {
  position: relative; margin-top: 36px; padding: 8px; border-radius: calc(var(--radius-lg) + 4px);
  background: linear-gradient(135deg, rgba(96, 165, 250, .5), rgba(255, 255, 255, .08) 40%, rgba(16, 185, 129, .45));
  box-shadow: 0 40px 100px -20px rgba(0, 0, 0, .6), 0 0 80px -20px rgba(79, 70, 229, .6);
}
.video-box { position: relative; aspect-ratio: 16 / 9; border-radius: var(--radius-lg); overflow: hidden; background: #000; }
.video-cover {
  position: absolute; inset: 0; z-index: 1; display: grid; place-items: center;
  border-radius: var(--radius-lg); overflow: hidden; cursor: pointer; background: #000; color: #fff; text-decoration: none;
  transition: opacity .45s var(--ease), visibility .45s;
}
.video-cover img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: transform .8s var(--ease), filter .5s var(--ease); }
.video-cover::after { content: ""; position: absolute; inset: 0; background: radial-gradient(circle at center, rgba(11, 20, 55, .15), rgba(11, 20, 55, .55) 75%), linear-gradient(to top, rgba(7, 13, 36, .85), transparent 45%); }
.video-cover:hover img, .video-cover:focus-visible img { transform: scale(1.04); filter: saturate(1.1); }
.video-cover:focus-visible { outline: 3px solid var(--blue-400); outline-offset: 3px; }
.video-play {
  position: relative; z-index: 1; width: clamp(64px, 11vw, 96px); aspect-ratio: 1; border-radius: 50%;
  display: grid; place-items: center; background: var(--grad); box-shadow: var(--shadow-glow), 0 0 0 8px rgba(255, 255, 255, .14);
  transition: transform .35s var(--ease), box-shadow .35s var(--ease);
  animation: playBeat 2.4s var(--ease) infinite;
}
.video-play svg { width: 42%; height: 42%; margin-left: 6%; filter: drop-shadow(0 2px 4px rgba(0, 0, 0, .25)); }
.video-play-ring { position: absolute; inset: 0; border-radius: 50%; border: 2px solid rgba(255, 255, 255, .7); animation: playRing 2.4s ease-out infinite; pointer-events: none; }
.video-play-ring + .video-play-ring { animation-delay: 1.2s; }
.video-cover:hover .video-play, .video-cover:focus-visible .video-play { transform: scale(1.1); box-shadow: 0 14px 40px -6px rgba(79, 70, 229, .7), 0 0 0 12px rgba(255, 255, 255, .18); }
.video-meta {
  position: absolute; z-index: 1; left: clamp(14px, 3vw, 28px); right: clamp(14px, 3vw, 28px); bottom: clamp(12px, 2.6vw, 24px);
  display: flex; align-items: center; justify-content: space-between; gap: 12px; text-align: left;
}
.video-meta-title { font-family: var(--font-display); font-weight: 600; font-size: clamp(.95rem, 2.4vw, 1.2rem); text-shadow: 0 2px 8px rgba(0, 0, 0, .4); }
.video-meta-time { flex: none; padding: 2px 10px; border-radius: 999px; font-size: .85rem; font-weight: 600; background: rgba(255, 255, 255, .16); border: 1px solid rgba(255, 255, 255, .25); -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px); }
@keyframes playRing { 0% { transform: scale(1); opacity: .8; } 100% { transform: scale(1.9); opacity: 0; } }
@keyframes playBeat { 0%, 100% { scale: 1; } 12% { scale: 1.06; } 24% { scale: 1; } }
@media (max-width: 480px) { .video-meta-title { display: none; } .video-meta { justify-content: flex-end; } }

/* ---------- Payment & security ---------- */
.split { display: grid; gap: 24px; }
@media (min-width: 900px) { .split { grid-template-columns: 1fr 1fr; } }
.card { position: relative; background: #fff; border: 1px solid var(--line); border-radius: var(--radius-lg); padding: clamp(24px, 3vw, 36px); box-shadow: var(--shadow); transition: transform .35s var(--ease), box-shadow .35s var(--ease); }
.card:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); }
.card h3 { font-size: 1.4rem; }
.card-pay { background: linear-gradient(170deg, #eef4ff, #fff 50%); }
.pay-badges { display: flex; flex-wrap: wrap; gap: 10px; margin: 6px 0 22px; }
.pay { display: inline-flex; align-items: center; min-height: 42px; padding: 0 18px; border-radius: 12px; font-weight: 700; color: #fff; letter-spacing: .01em; box-shadow: 0 8px 18px -8px rgba(0, 0, 0, .45); transition: transform .3s var(--ease); }
.pay:hover { transform: translateY(-2px) rotate(-2deg); }
.pay-bkash { background: linear-gradient(135deg, #e2136e, #b50e57); }
.pay-nagad { background: linear-gradient(135deg, #ec1c24, #c2141b); }
.pay-ssl { background: linear-gradient(135deg, #1e3a8a, #172554); }
.sec-list li { display: flex; gap: 14px; align-items: flex-start; padding: 12px; margin: 0 -12px 2px; border-radius: 14px; transition: background-color .25s; }
.sec-list li:hover { background: var(--bg-alt); }
.sec-list li > span:last-child { display: flex; flex-direction: column; }
.sec-ic { flex: none; width: 42px; height: 42px; border-radius: 13px; display: grid; place-items: center; color: var(--blue-600); background: var(--blue-50); border: 1px solid var(--blue-100); }
.sec-list strong { color: var(--ink); }
.sec-list li > span:last-child > span { font-size: .95rem; color: var(--muted); }

/* ---------- FAQ ---------- */
.faq-item { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); margin-bottom: 12px; box-shadow: var(--shadow-sm); transition: border-color .3s, box-shadow .3s; }
.faq-item.open { border-color: #c7d4f5; box-shadow: var(--shadow); }
.faq-item h3 { margin: 0; font-family: var(--font); font-size: 1.06rem; }
.faq-item button { width: 100%; min-height: 60px; display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 14px 20px 14px 22px; background: none; border: 0; font: inherit; font-weight: 600; color: var(--ink); text-align: left; cursor: pointer; border-radius: var(--radius); }
.faq-ic { flex: none; width: 34px; height: 34px; border-radius: 50%; display: grid; place-items: center; color: var(--blue-600); background: var(--blue-50); transition: transform .35s var(--ease), background-color .3s, color .3s; }
.faq-item button[aria-expanded="true"] .faq-ic { transform: rotate(135deg); background: var(--grad); color: #fff; }
.faq-a > div { padding: 0 22px 8px; }
.js .faq-a { display: grid; grid-template-rows: 0fr; visibility: hidden; transition: grid-template-rows .4s var(--ease), visibility 0s .4s; }
.js .faq-a > div { overflow: hidden; min-height: 0; padding-bottom: 0; opacity: 0; transition: opacity .3s; }
.js .faq-item.open .faq-a { grid-template-rows: 1fr; visibility: visible; transition: grid-template-rows .4s var(--ease), visibility 0s; }
.js .faq-item.open .faq-a > div { opacity: 1; transition: opacity .4s .1s; }
.faq-a p { margin: 0; padding-bottom: 14px; color: var(--text); }

/* ---------- Contact ---------- */
.section-cta { background: radial-gradient(800px 500px at 0% 0%, rgba(37, 99, 235, .45), transparent 65%), radial-gradient(700px 500px at 100% 100%, rgba(124, 58, 237, .35), transparent 65%), var(--navy-950); color: #c8d3ec; }
.contact-grid { display: grid; gap: 44px; align-items: start; }
@media (min-width: 960px) { .contact-grid { grid-template-columns: 1fr 1fr; gap: 64px; align-items: center; } }
.contact-copy > p { font-size: 1.08rem; }
.contact-list { display: grid; gap: 10px; margin-top: 28px; }
.contact-list li { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 12px; padding: 10px 16px; border-radius: 16px; background: rgba(255, 255, 255, .06); border: 1px solid rgba(255, 255, 255, .1); }
.contact-list span { min-width: 56px; font-weight: 600; color: #fff; }
.contact-list a { color: #fff; display: inline-flex; align-items: center; min-height: 40px; font-weight: 500; }
.contact-list small { color: #9db8f5; }
.form-success { margin-top: 16px; padding: 14px 16px; border-radius: 14px; background: #ecfdf5; color: #065f46; border: 1px solid #a7f3d0; animation: popIn .45s var(--ease) both; }
@keyframes popIn { from { opacity: 0; transform: translateY(8px) scale(.98); } }

/* ---------- Footer ---------- */
.site-footer { background: var(--navy-950); color: #94a3c4; padding: 56px 0 28px; border-top: 1px solid rgba(255, 255, 255, .06); }
.footer-grid { display: grid; gap: 24px; }
@media (min-width: 768px) { .footer-grid { grid-template-columns: 1fr auto; align-items: center; } }
.brand-light { color: #fff; }
.brand-light .brand-sub { color: rgba(255, 255, 255, .7); }
.footer-links { display: flex; flex-wrap: wrap; gap: 4px 8px; }
.footer-links a { color: #cbd5e1; text-decoration: none; display: inline-flex; align-items: center; min-height: 44px; padding: 0 10px; border-radius: 999px; transition: color .2s, background-color .2s; }
.footer-links a:hover { color: #fff; background: rgba(255, 255, 255, .06); }
.footer-bottom { border-top: 1px solid rgba(255, 255, 255, .08); margin-top: 28px; padding-top: 22px; font-size: .9rem; }
.footer-bottom p { margin: 0; }

/* ---------- Back to top ---------- */
.to-top {
  position: fixed; right: 18px; bottom: 18px; z-index: 90; width: 50px; height: 50px; border-radius: 50%;
  display: grid; place-items: center; color: #fff; background: var(--grad); box-shadow: var(--shadow-glow);
  opacity: 0; visibility: hidden; transform: translateY(16px) scale(.9);
  transition: opacity .3s, transform .35s var(--ease), visibility 0s .35s;
}
/* ---------- WhatsApp / Messenger chat buttons ---------- */
.chat-fabs { position: fixed; right: 18px; bottom: 82px; z-index: 91; display: flex; flex-direction: column; gap: 12px; }
.chat-fab {
  position: relative; width: 54px; height: 54px; border-radius: 50%; display: grid; place-items: center; color: #fff;
  box-shadow: 0 12px 28px -8px rgba(11, 20, 55, .45); transition: transform .3s var(--ease), box-shadow .3s var(--ease);
}
.chat-fab:hover, .chat-fab:focus-visible { transform: translateY(-3px) scale(1.06); box-shadow: 0 16px 34px -8px rgba(11, 20, 55, .55); }
.chat-fab:focus-visible { outline: 3px solid #fff; outline-offset: 3px; }
.chat-fab-wa { background: #25d366; }
.chat-fab-ms { background: linear-gradient(135deg, #0099ff, #a033ff 70%, #ff5280); }
.chat-fab-wa::after { /* soft pulse so the main contact button gets noticed */
  content: ""; position: absolute; inset: 0; border-radius: 50%; background: #25d366; z-index: -1; animation: chat-pulse 2.4s ease-out infinite;
}
@keyframes chat-pulse { 0% { transform: scale(1); opacity: .55; } 80%, 100% { transform: scale(1.7); opacity: 0; } }
.chat-tip {
  position: absolute; right: calc(100% + 12px); top: 50%; transform: translate(6px, -50%); white-space: nowrap;
  background: #0b1437; color: #fff; font-size: .85rem; font-weight: 500; padding: 6px 12px; border-radius: 10px;
  opacity: 0; pointer-events: none; transition: opacity .2s, transform .25s var(--ease); box-shadow: var(--shadow);
}
.chat-fab:hover .chat-tip, .chat-fab:focus-visible .chat-tip { opacity: 1; transform: translate(0, -50%); }
@media (hover: none) { .chat-tip { display: none; } }
@media (max-width: 575.98px) { .chat-fabs { right: 14px; bottom: 76px; gap: 10px; } .chat-fab { width: 50px; height: 50px; } }
.no-motion .chat-fab-wa::after { animation: none; display: none; }
@media (prefers-reduced-motion: reduce) { .chat-fab-wa::after { animation: none; display: none; } }
.chat-cta { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 18px; }
.chat-btn {
  display: inline-flex; align-items: center; gap: 10px; min-height: 48px; padding: 0 20px; border-radius: 999px; color: #fff;
  font-weight: 600; text-decoration: none; transition: transform .25s var(--ease), filter .25s;
}
.chat-btn:hover { transform: translateY(-2px); filter: brightness(1.06); }
.chat-btn-wa { background: #25d366; }
.chat-btn-ms { background: linear-gradient(135deg, #0099ff, #a033ff 70%, #ff5280); }
.to-top.show { opacity: 1; visibility: visible; transform: none; transition: opacity .3s, transform .35s var(--ease), visibility 0s; }
.to-top:hover { transform: translateY(-3px); }
html:not(.js) .to-top { display: none; }

/* ---------- Lightbox ---------- */
.lightbox {
  position: fixed; inset: 0; z-index: 200; display: flex; align-items: center; justify-content: center; padding: 64px 12px;
  background: rgba(5, 10, 30, .9); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px);
  opacity: 0; transition: opacity .3s;
}
.lightbox[hidden] { display: none; }
.lightbox.is-open { opacity: 1; }
.lb-figure { margin: 0; max-width: min(1400px, 100%); max-height: 100%; display: flex; flex-direction: column; align-items: center; transform: scale(.88) translateY(14px); opacity: 0; transition: transform .45s var(--ease), opacity .35s; }
.lightbox.is-open .lb-figure { transform: none; opacity: 1; }
.lb-figure img { max-width: 100%; max-height: calc(100vh - 170px); width: auto; border-radius: 14px; box-shadow: 0 30px 80px rgba(0, 0, 0, .55); background: #fff; transition: opacity .25s, transform .3s var(--ease); }
.lb-figure img.swap { opacity: 0; transform: scale(.97); }
.lb-figure figcaption { color: #e2e8f0; margin-top: 14px; text-align: center; max-width: 60em; }
.lb-btn { position: absolute; width: 50px; height: 50px; border-radius: 50%; border: 1px solid rgba(255, 255, 255, .18); background: rgba(255, 255, 255, .1); color: #fff; font-size: 2rem; line-height: 1; cursor: pointer; display: grid; place-items: center; transition: background-color .2s, transform .25s var(--ease); }
.lb-btn:hover { background: rgba(255, 255, 255, .24); }
.lb-close { top: 12px; right: 12px; }
.lb-close:hover { transform: rotate(90deg); }
.lb-prev { left: 12px; top: 50%; margin-top: -25px; }
.lb-next { right: 12px; top: 50%; margin-top: -25px; }
@media (max-width: 640px) { .lb-prev, .lb-next { top: auto; bottom: 12px; margin-top: 0; } }
body.lb-open { overflow: hidden; }

/* Video popup: reuses .lightbox backdrop and .lb-close; 16:9 player that fits the viewport */
.vm-player {
  position: relative; width: min(1100px, 100%, calc((100vh - 140px) * 16 / 9)); aspect-ratio: 16 / 9;
  border-radius: 14px; overflow: hidden; background: #000; box-shadow: 0 30px 80px rgba(0, 0, 0, .55), 0 0 80px -20px rgba(79, 70, 229, .6);
  transform: scale(.88) translateY(14px); opacity: 0; transition: transform .45s var(--ease), opacity .35s;
}
.video-modal.is-open .vm-player { transform: none; opacity: 1; }
.vm-player iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }

/* =========================================================
   Motion — only when JS is running and motion is allowed
   ========================================================= */
.js:not(.no-motion) [data-reveal] {
  opacity: 0; transform: translateY(28px);
  transition: opacity .8s var(--ease), transform .9s var(--ease);
  transition-delay: calc(var(--d, 0) * 90ms);
}
.js:not(.no-motion) [data-reveal="left"] { transform: translateX(-36px); }
.js:not(.no-motion) [data-reveal="right"] { transform: translateX(36px); }
.js:not(.no-motion) [data-reveal="zoom"] { transform: scale(.92) translateY(20px); }
.js:not(.no-motion) [data-reveal].in { opacity: 1; transform: none; }
/* after reveal, let hover transforms respond instantly */
.js:not(.no-motion) .feature[data-reveal].in, .js:not(.no-motion) .card[data-reveal].in { transition: opacity .8s var(--ease), transform .35s var(--ease), box-shadow .35s var(--ease), border-color .35s; transition-delay: 0s; }

/* hero entrance */
.js:not(.no-motion) .hero-in { animation: fadeUp .9s var(--ease) both; animation-delay: calc(var(--d) * 110ms + 100ms); }
.js:not(.no-motion) .hero-title .w { animation: wordIn .9s var(--ease) both; animation-delay: calc(var(--d) * 120ms + 100ms); }
.js:not(.no-motion) .tilt { animation: frameIn 1.2s var(--ease) .35s both; }
.js:not(.no-motion) .browser { animation: floatY 7s ease-in-out 1.6s infinite; }
.js:not(.no-motion) .phone-hero { animation: phoneIn 1.1s var(--ease) .9s both, floatY 6s ease-in-out 2s infinite; }
.js:not(.no-motion) .chip { animation: chipIn .7s var(--ease) both, bob 5s ease-in-out infinite; }
.js:not(.no-motion) .c1 .chip { animation-delay: 1.2s, 1.9s; }
.js:not(.no-motion) .c2 .chip { animation-delay: 1.45s, 2.6s; animation-duration: .7s, 6s; }
.js:not(.no-motion) .c3 .chip { animation-delay: 1.7s, 2.2s; animation-duration: .7s, 5.5s; }
.js:not(.no-motion) .phones .phone { animation: floatY 6s ease-in-out infinite; }
.js:not(.no-motion) .phones .phone:nth-child(2) { animation-delay: -2s; }
.js:not(.no-motion) .phones .phone:nth-child(3) { animation-delay: -4s; }
.js:not(.no-motion) .tab-panel.enter .shot { animation: shotIn .6s var(--ease) both; animation-delay: calc(var(--d, 0) * 80ms); }

@keyframes fadeUp { from { opacity: 0; transform: translateY(22px); } }
@keyframes wordIn { from { opacity: 0; transform: translateY(.55em) rotate(2deg); } }
@keyframes frameIn { from { opacity: 0; scale: .9; translate: 0 40px; } }
@keyframes phoneIn { from { opacity: 0; scale: .85; translate: 30px 60px; } }
@keyframes chipIn { from { opacity: 0; scale: .6; } }
/* individual transform properties so floats compose with entrance/parallax */
@keyframes floatY { 0%, 100% { translate: 0 0; } 50% { translate: 0 -12px; } }
@keyframes bob { 0%, 100% { translate: 0 0; } 50% { translate: 0 -9px; } }
@keyframes shotIn { from { opacity: 0; transform: translateY(18px) scale(.98); } }

/* Reduced motion / static: everything visible, nothing moves */
.no-motion *, .no-motion *::before, .no-motion *::after { animation: none !important; }
.no-motion .marquee { -webkit-mask-image: none; mask-image: none; }
.no-motion .marquee-track { flex-wrap: wrap; justify-content: center; flex: 1; padding: 0 16px; }
.no-motion .marquee-track[aria-hidden="true"] { display: none; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition-duration: .01ms !important; transition-delay: 0s !important; animation: none !important; }
  [data-reveal] { opacity: 1 !important; transform: none !important; }
  .tilt, .depth { transform: none !important; }
  .marquee { -webkit-mask-image: none; mask-image: none; }
  .marquee-track { flex-wrap: wrap; justify-content: center; flex: 1; padding: 0 16px; }
  .marquee-track[aria-hidden="true"] { display: none; }
}

/* ---------- Replacements for former inline styles (Blade page uses classes only) ---------- */
.svg-sprite { position: absolute; }
.d-0 { --d: 0; } .d-1 { --d: 1; } .d-2 { --d: 2; } .d-3 { --d: 3; } .d-4 { --d: 4; }
.d-5 { --d: 5; } .d-6 { --d: 6; } .d-7 { --d: 7; } .d-8 { --d: 8; }
.z-22 { --z: 22; } .z-28 { --z: 28; } .z-40 { --z: 40; } .z-n30 { --z: -30; }

/* Demo request card (replaces the old form): its button opens the site's demo form. */
.demo-card { position: relative; background: rgba(255, 255, 255, .97); color: var(--text); border-radius: var(--radius-lg); padding: 28px 24px; box-shadow: 0 40px 90px -24px rgba(0, 0, 0, .55); border: 1px solid rgba(255, 255, 255, .6); }
@media (min-width: 768px) { .demo-card { padding: 40px 36px; } }
.demo-card h3 { font-size: clamp(1.35rem, 1.2rem + .6vw, 1.7rem); margin-bottom: .4em; }
.demo-card > p { margin: 0 0 20px; }
.demo-card .checks { margin: 0 0 26px; padding: 0; list-style: none; color: var(--ink); font-weight: 500; }
.demo-card-icon { display: grid; place-items: center; width: 52px; height: 52px; margin-bottom: 18px; border-radius: 16px; color: #fff; background: linear-gradient(135deg, var(--blue), #7c3aed); box-shadow: 0 12px 24px -10px rgba(37, 99, 235, .6); }
.demo-card-note { margin: 14px 0 0; text-align: center; font-size: .88rem; color: var(--muted); }
