/* Velocity Internet — Light theme, red accents | #BuiltForSpeed */
:root {
  --bg: #ffffff;
  --bg-alt: #fafafa;
  --fg: #1a1417;
  --muted: #6b6166;
  --primary: #ff0000;
  --primary-2: #d40000;
  --primary-glow: rgba(255, 0, 0, 0.18);
  --border: #ececec;
  --card: #ffffff;
  --shadow-sm: 0 4px 18px -8px rgba(0, 0, 0, 0.12);
  --shadow-md: 0 14px 44px -16px rgba(0, 0, 0, 0.18);
  --shadow-glow: 0 22px 60px -22px rgba(255, 0, 0, 0.45);
  --radius: 1rem;
  --gradient-brand: linear-gradient(135deg, #ff0000 0%, #c81a1a 100%);
  --gradient-hero:
    radial-gradient(at 15% 0%, rgba(255, 0, 0, 0.10) 0, transparent 55%),
    radial-gradient(at 88% 12%, rgba(255, 80, 80, 0.10) 0, transparent 55%),
    linear-gradient(180deg, #ffffff, #f8f8f9);
  --gradient-text: linear-gradient(120deg, #ff0000, #a30000);
}
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  background: var(--bg);
  color: var(--fg);
  font-family: "Hind Siliguri", "Plus Jakarta Sans", system-ui, -apple-system, sans-serif;
  font-size: 16px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-decoration: none; }
button { font: inherit; cursor: pointer; background: none; border: none; color: inherit; }

h1, h2, h3, h4 { font-family: "Sora", "Hind Siliguri", system-ui, sans-serif; letter-spacing: -0.02em; line-height: 1.2; }
body[data-lang="bn"] h1, body[data-lang="bn"] h2, body[data-lang="bn"] h3, body[data-lang="bn"] h4 {
  font-family: "Hind Siliguri", "Sora", sans-serif; letter-spacing: 0;
}
.text-gradient {
  background-image: var(--gradient-text);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0,0,0,0); }
.muted { color: var(--muted); }
.small { font-size: 0.8rem; }
.center { text-align: center; }

.container { max-width: 1200px; margin: 0 auto; padding: 0 1rem; }
@media (min-width: 768px) { .container { padding: 0 2rem; } }

/* Header */
header.glass {
  position: sticky; top: 0; z-index: 50;
  background: rgba(255, 255, 255, 0.85);
  backdrop-filter: saturate(180%) blur(14px);
  -webkit-backdrop-filter: saturate(180%) blur(14px);
  border-bottom: 1px solid var(--border);
}
.header-inner { display: flex; align-items: center; justify-content: space-between; gap: 1rem; height: 64px; }
.brand img { height: 32px; width: auto; object-fit: contain; }
.nav-desktop { display: none; gap: 0.25rem; }
@media (min-width: 768px) { .nav-desktop { display: flex; } }
.nav-link { padding: 0.5rem 1rem; border-radius: 9999px; font-size: 0.875rem; font-weight: 500; color: var(--muted); transition: all 0.25s; }
.nav-link:hover { color: var(--fg); background: var(--bg-alt); }
.nav-link.active { color: var(--fg); background: var(--bg-alt); }
.header-actions { display: flex; align-items: center; gap: 0.5rem; }
.btn-lang { display: inline-flex; align-items: center; gap: 0.35rem; padding: 0.4rem 0.75rem; font-size: 0.75rem; font-weight: 600; border: 1px solid var(--border); border-radius: 9999px; background: var(--card); transition: all 0.25s; }
.btn-lang:hover { border-color: var(--primary); color: var(--primary); }
.btn-fb { display: none; align-items: center; gap: 0.5rem; padding: 0 1rem; height: 36px; background: #1877F2; color: #fff; border-radius: 9999px; font-size: 0.875rem; font-weight: 600; transition: all 0.25s; }
@media (min-width: 640px) { .btn-fb { display: inline-flex; } }
.btn-fb:hover { box-shadow: var(--shadow-md); }
.btn-menu { display: inline-flex; padding: 0.4rem 0.6rem; font-size: 1.2rem; }
@media (min-width: 768px) { .btn-menu { display: none; } }
.nav-mobile[hidden] { display: none !important; }
.nav-mobile { display: flex; flex-direction: column; gap: 0.25rem; padding-bottom: 1rem; }
.nav-mobile a { padding: 0.5rem 0.75rem; border-radius: 0.5rem; font-size: 0.875rem; font-weight: 500; }
.nav-mobile a:hover { background: var(--bg-alt); }

/* Hero */
.hero { position: relative; overflow: hidden; background-image: var(--gradient-hero); }
.grid-overlay {
  position: absolute; inset: 0; pointer-events: none;
  background-image:
    linear-gradient(rgba(255, 0, 0, 0.06) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 0, 0, 0.06) 1px, transparent 1px);
  background-size: 48px 48px;
  -webkit-mask-image: radial-gradient(ellipse at top, black 50%, transparent 80%);
  mask-image: radial-gradient(ellipse at top, black 50%, transparent 80%);
}
.hero-inner { position: relative; padding: 4rem 1rem 5rem; display: grid; gap: 3rem; align-items: center; }
@media (min-width: 1024px) { .hero-inner { grid-template-columns: 1fr 1fr; padding: 6rem 2rem 7rem; } }
.badge { display: inline-flex; align-items: center; gap: 0.5rem; padding: 0.3rem 0.75rem; border: 1px solid var(--border); background: var(--card); border-radius: 9999px; font-size: 0.75rem; font-weight: 500; box-shadow: var(--shadow-sm); }
.badge svg { color: var(--primary); }
.hero-title { margin-top: 1.25rem; font-size: clamp(2.25rem, 5vw, 3.75rem); font-weight: 800; line-height: 1.1; }
.hero-sub { margin-top: 1.25rem; max-width: 36rem; font-size: 1.1rem; color: var(--muted); }
.cta-row { margin-top: 2rem; display: flex; flex-wrap: wrap; gap: 0.75rem; }
.btn { display: inline-flex; align-items: center; gap: 0.5rem; height: 48px; padding: 0 1.5rem; border-radius: 9999px; font-size: 0.875rem; font-weight: 600; transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1); }
.btn-primary { background-image: var(--gradient-brand); color: #fff; box-shadow: var(--shadow-glow); }
.btn-primary:hover { transform: scale(1.02); }
.btn-outline { background: var(--card); color: var(--fg); border: 1px solid var(--border); box-shadow: var(--shadow-sm); }
.btn-outline:hover { border-color: var(--primary); color: var(--primary); }
.btn-light { background: var(--card); color: var(--fg); box-shadow: var(--shadow-md); }
.btn-light:hover { transform: scale(1.02); }
.btn-light svg { color: var(--primary); }
.btn-whatsapp { background: #25D366; color: #fff; }
.btn-whatsapp:hover { transform: scale(1.02); box-shadow: var(--shadow-md); }
.btn.small { height: 36px; padding: 0 1.2rem; font-size: 0.8rem; }
.pulse { animation: pulse-glow 2.4s ease-in-out infinite; }
@keyframes pulse-glow { 0%, 100% { box-shadow: 0 0 0 0 rgba(255, 0, 0, 0.45); } 50% { box-shadow: 0 0 0 18px rgba(255, 0, 0, 0); } }

.stat-row { margin-top: 2.5rem; display: flex; flex-wrap: wrap; gap: 0.75rem 2rem; font-size: 0.875rem; color: var(--muted); }
.stat-row span { display: inline-flex; align-items: center; gap: 0.5rem; }
.dot { display: inline-block; width: 8px; height: 8px; border-radius: 50%; }

.hero-visual { display: flex; justify-content: center; }
@media (min-width: 1024px) { .hero-visual { justify-content: flex-end; } }
/* .phone-frame {
  position: relative; width: 100%; max-width: 300px;
  border: 8px solid #1a1417; background: #1a1417; border-radius: 2.5rem; padding: 4px;
  box-shadow: var(--shadow-md);
}
.phone-frame img { border-radius: 2rem; }
.phone-frame.sm { max-width: 220px; flex-shrink: 0; border-width: 6px; border-radius: 2rem; }
.phone-frame.sm img { border-radius: 1.6rem; } */
.phone-frame {
  position: relative;
  width: 100%;
  max-width: 280px;
  scroll-snap-align: center;

  /* consistent phone ratio */
  aspect-ratio: 9 / 19.5;

  border: 8px solid #1a1417;
  background: #1a1417;
  border-radius: 2.2rem;
  padding: 4px;

  box-shadow: var(--shadow-md);
  overflow: hidden;          /* critical */
}

/* smaller cards */
.phone-frame.sm {
  max-width: 220px;
  border-width: 6px;
  border-radius: 1.8rem;
}
.phone-frame img {
  width: 100%;
  height: 100%;
  object-fit: cover;     /* fill nicely */
  border-radius: inherit;
  display: block;
}
/* .float { animation: float-slow 6s ease-in-out infinite; }
@keyframes float-slow { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-14px); } } */

/* Base (Mobile-first) */
.float {
  animation: float-slow 2.5s ease-in-out infinite;
  transition: transform 0.4s ease-in-out; /* JS animation smooth করার জন্য */
  will-change: transform;
}

/* Mobile animation */
@keyframes float-slow {
  0%, 60%, 100% { transform: translateY(0); }
  30% { transform: translateY(-6px); }
}

/* Desktop override */
@media (min-width: 992px) {
  .float {
    animation: none !important;  /* CSS animation বন্ধ */
  }
}

/* Sections */
.section { padding: 5rem 0 6rem; }
.section-alt { background: var(--bg-alt); }
.section-head { max-width: 36rem; margin: 0 auto 3.5rem; text-align: center; }
.section-head h2 { font-size: clamp(1.75rem, 4vw, 2.5rem); font-weight: 700; }
.section-head p { margin-top: 0.75rem; color: var(--muted); }

.grid { display: grid; gap: 1.5rem; }
.grid-3 { grid-template-columns: 1fr; }
.grid-4 { grid-template-columns: 1fr; }
.grid-2 { grid-template-columns: 1fr; }
@media (min-width: 640px) { .grid-3 { grid-template-columns: repeat(2, 1fr); } .grid-4 { grid-template-columns: repeat(2, 1fr); } .grid-2 { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1024px) { .grid-3 { grid-template-columns: repeat(3, 1fr); } .grid-4 { grid-template-columns: repeat(4, 1fr); } }

.card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.5rem;
  box-shadow: var(--shadow-sm);
  transition: all 0.35s cubic-bezier(0.4, 0, 0.2, 1);
}
.hover-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); border-color: var(--primary); }
.grid .card:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); }
.card h3 { margin-top: 1rem; font-size: 1.05rem; font-weight: 600; }
.card p { margin-top: 0.5rem; font-size: 0.875rem; color: var(--muted); }
.card-icon {
  display: inline-flex; align-items: center; justify-content: center;
  width: 44px; height: 44px; border-radius: 12px;
  background-image: var(--gradient-brand); color: #fff;
  box-shadow: var(--shadow-glow); font-size: 1.2rem;
}
.material-symbols-outlined {
  font-size: 28px;
}
.ring-icon {
  display: inline-flex; align-items: center; justify-content: center;
  width: 48px; height: 48px; border-radius: 16px;
  background: var(--bg-alt); color: var(--primary); font-size: 1.4rem;
}
.contact-icon {
  display: inline-flex; align-items: center; justify-content: center;
  width: 44px; height: 44px; border-radius: 12px;
  background-image: var(--gradient-brand); color: #fff;
  box-shadow: var(--shadow-glow); font-size: 1.2rem;
}
.contact-icon-lite {
  display: inline-flex; align-items: center; justify-content: center;
  width: 44px; height: 44px; border-radius: 12px;
  background: var(--bg-alt); color: var(--primary); font-size: 1.2rem;
}
.contacts .card h3 { font-size: 0.75rem; font-weight: 600; text-transform: uppercase; letter-spacing: 0.05em; color: var(--muted); }
.contacts .card p { font-size: 1rem; color: var(--fg); font-weight: 500; }

/* Screenshots scroll */
/* .screens-scroll {
  display: flex; gap: 1.25rem; overflow-x: auto; padding: 0 1rem 1.5rem; margin: 0 -1rem;
  scroll-snap-type: x mandatory;
  scrollbar-width: thin;
}
.screens-scroll .phone-frame { scroll-snap-align: start; }
.screens-scroll .phone-frame:hover { transform: scale(1.02); } */
.hint { text-align: center; font-size: 0.75rem; color: var(--muted); margin-top: 0.25rem; }

.screens-scroll {
  display: flex;
  gap: 1.25rem;
  overflow-x: auto;
  padding-bottom: 1rem;
  scroll-snap-type: x mandatory;
  scroll-behavior: smooth;
  position: relative;
}

.screens-scroll::-webkit-scrollbar {
  display: none;
}

/* base */
.phone-frame.sm {
  flex: 0 0 auto;
  scroll-snap-align: center;

  transform: scale(0.85);
  opacity: 0.6;
  transition: all 0.35s ease;
}

/* active */
.phone-frame.sm.active {
  transform: scale(1);
  opacity: 1;
}
.phone-frame.sm:hover {
  transform: scale(0.95);
  opacity: 0.9;
}
.screens-scroll::before,
.screens-scroll::after {
  content: "";
  position: absolute;
  top: 0;
  width: 60px;
  height: 100%;
  pointer-events: none;
  z-index: 2;
}

.screens-scroll::before {
  left: 0;
  background: linear-gradient(to right, #fafafa, transparent);
}

.screens-scroll::after {
  right: 0;
  background: linear-gradient(to left, #fafafa, transparent);
}

/* CTA block */
.cta-block {
  position: relative; overflow: hidden;
  border-radius: 1.5rem;
  background-image: var(--gradient-brand);
  color: #fff;
  padding: 4rem 1.5rem;
  text-align: center;
  box-shadow: var(--shadow-glow);
}
.cta-block::before, .cta-block::after {
  content: ""; position: absolute; width: 256px; height: 256px; border-radius: 50%;
  background: rgba(255, 255, 255, 0.1); filter: blur(48px);
}
.cta-block::before { top: -80px; left: -80px; }
.cta-block::after { bottom: -80px; right: -80px; }
.cta-block h2 { position: relative; font-size: clamp(1.75rem, 4vw, 2.25rem); font-weight: 700; }
.cta-block p { position: relative; max-width: 32rem; margin: 0.75rem auto 0; opacity: 0.9; }
.speed-line {
  position: absolute; left: 0; right: 0; top: 0; height: 1px; overflow: hidden;
}
.speed-line::after {
  content: ""; display: block; height: 100%; width: 33%;
  background: rgba(255, 255, 255, 0.6);
  animation: speed-line 2.8s linear infinite;
}
@keyframes speed-line { 0% { transform: translateX(-100%); opacity: 0; } 50% { opacity: 1; } 100% { transform: translateX(300%); opacity: 0; } }

.play-stats {
  position: relative; max-width: 36rem; margin: 2.5rem auto 0;
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 0.75rem;
}
.play-stats > div {
  background: rgba(255, 255, 255, 0.1); border: 1px solid rgba(255, 255, 255, 0.25);
  border-radius: 1rem; padding: 0.75rem; backdrop-filter: blur(8px);
}
.ps-icon { font-size: 1rem; opacity: 0.9; }
.ps-val { margin-top: 0.25rem; font-weight: 700; font-size: 1rem; }
.ps-lbl { font-size: 0.7rem; opacity: 0.8; }

/* Footer */
footer { border-top: 1px solid var(--border); background: var(--bg-alt); margin-top: 5rem; }
.footer-grid { padding: 3.5rem 1rem; display: grid; gap: 2.5rem; grid-template-columns: 1fr; }
@media (min-width: 768px) { .footer-grid { grid-template-columns: 2fr 1fr 1fr; } }
.footer-brand p { margin-top: 1rem; max-width: 24rem; }
.footer-brand p.small { margin-top: 0.5rem; }
.socials { margin-top: 1.25rem; display: flex; gap: 0.75rem; }
.socials a {
  display: grid; place-items: center; width: 36px; height: 36px;
  border: 1px solid var(--border); background: var(--card); border-radius: 50%;
  font-weight: 700; font-family: serif;
  transition: all 0.25s;
}
.socials a:hover { border-color: var(--primary); color: var(--primary); }
footer h4 { font-size: 0.875rem; font-weight: 600; }
footer ul { list-style: none; margin-top: 0.75rem; display: flex; flex-direction: column; gap: 0.5rem; font-size: 0.875rem; color: var(--muted); }
footer ul a:hover, footer ul .link:hover { color: var(--fg); }
.link { background: none; border: none; padding: 0; color: inherit; text-align: left; cursor: pointer; font: inherit; }
.copy { padding: 1.5rem 1rem; text-align: center; font-size: 0.75rem; color: var(--muted); border-top: 1px solid var(--border); }
.brand-tag { color: var(--primary); font-weight: 600; margin-left: 0.4rem; }

/* WhatsApp FAB */
.whatsapp-float {
  position: fixed;
  bottom: 1.25rem;
  right: 1.25rem;

  display: flex;
  align-items: center;
  justify-content: center;

  width: 56px;
  height: 56px;
  border-radius: 50%;

  background: #25D366;
  color: #fff;

  box-shadow: 0 0 0 0 rgba(37, 211, 102, 0.45);

  animation: pulse-whatsapp 2.4s ease-in-out infinite;

  padding: 0;
  overflow: visible;
}

.fab-icon {
  width: 22px;
  height: 22px;
  transform: scale(1);
  display: block;
}

@keyframes pulse-whatsapp {
  0%, 100% {
    box-shadow: 0 0 0 0 rgba(37, 211, 102, 0.45);
  }
  50% {
    box-shadow: 0 0 0 14px rgba(37, 211, 102, 0);
  }
}
.fab-dot {
  position: absolute; top: -4px; right: -4px;
  display: grid; place-items: center;
  width: 16px; height: 16px; border-radius: 50%;
  background: var(--primary); color: #fff; font-size: 0.625rem; font-weight: 700;
}

/* Modal */
.modal[hidden] {
  display: none !important;
}
.modal {
  position: fixed; inset: 0; z-index: 100;
  display: flex; align-items: center; justify-content: center;
  padding: 1rem;
}
.modal-overlay {
  position: absolute; inset: 0;
  background: rgba(0, 0, 0, 0.4);
  backdrop-filter: blur(4px);
  animation: fade-in 0.25s;
}
.modal-card {
  position: relative; z-index: 1;
  display: flex; flex-direction: column;
  width: 100%; max-width: 720px; max-height: 90vh;
  background: var(--card); border: 1px solid var(--border);
  border-radius: 1.5rem; box-shadow: var(--shadow-md);
  overflow: hidden;
  animation: fade-up 0.3s;
}
.modal-head { display: flex; align-items: center; justify-content: space-between; padding: 1rem 1.5rem; border-bottom: 1px solid var(--border); }
.modal-head h2 { font-size: 1.25rem; font-weight: 700; }
.modal-close {
  display: grid; place-items: center; width: 36px; height: 36px; border-radius: 50%;
  color: var(--muted); transition: all 0.25s;
}
.modal-close:hover { background: var(--bg-alt); color: var(--fg); }
.modal-body { overflow-y: auto; padding: 1.5rem; font-size: 0.875rem; line-height: 1.7; }
.modal-body h3 { font-size: 1.05rem; font-weight: 700; margin-bottom: 0.75rem; }
.modal-body h4 { font-size: 0.9rem; font-weight: 600; margin-top: 1rem; margin-bottom: 0.4rem; }
.modal-body p { margin-bottom: 0.75rem; }
.modal-body ul, .modal-body ol { padding-left: 1.25rem; margin-bottom: 0.75rem; }
.modal-body li { margin-bottom: 0.5rem; }
.modal-foot { display: flex; align-items: center; justify-content: space-between; gap: 0.75rem; padding: 0.85rem 1.5rem; border-top: 1px solid var(--border); background: var(--bg-alt); }
.link-primary { color: var(--primary); font-weight: 600; font-size: 0.875rem; }
.link-primary:hover { text-decoration: underline; }

@keyframes fade-in { from { opacity: 0; } to { opacity: 1; } }
.fade-up { animation: fade-up 0.7s cubic-bezier(0.4, 0, 0.2, 1) both; }
.fade-up.delay { animation-delay: 0.12s; }
@keyframes fade-up { from { opacity: 0; transform: translateY(20px); } to { opacity: 1; transform: translateY(0); } }

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

/* ============ Video Showcase ============ */
.video-wrap {
  position: relative;
  margin-top: 2.5rem;
  border-radius: 1.5rem;
  overflow: hidden;
  border: 1px solid var(--border, #eee);
  background: #111;
  box-shadow: 0 20px 50px -20px rgba(255,0,0,0.25);
  aspect-ratio: 16 / 9;
}
.video-player {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
  background: #111;
}
.video-play {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  height: 100%;
  border: 0;
  background: rgba(0,0,0,0.35);
  cursor: pointer;
  transition: background .25s ease;
}
.video-play:hover { background: rgba(0,0,0,0.45); }
.video-play::before {
  content: "";
  position: absolute;
  width: 92px; height: 92px;
  border-radius: 999px;
  background: linear-gradient(135deg, #ff1a1a, #b30000);
  box-shadow: 0 10px 30px -8px rgba(255,0,0,0.55);
  transition: transform .25s ease;
}
.video-play:hover::before { transform: scale(1.08); }
.video-play svg {
  position: relative;
  color: #fff;
  z-index: 1;
  transform: translateX(2px);
}
.video-play.is-hidden { display: none; }
