@import url('https://fonts.googleapis.com/css2?family=Hind+Siliguri:wght@500;600;700&family=Plus+Jakarta+Sans:wght@500;600;700;800&family=Outfit:wght@500;600;700;800;900&display=swap');

/* -------------------------------------------------------------
   Kalpurush Bengali Font (Local Host for Absolute Stability & Zero Number Breaks)
   ------------------------------------------------------------- */
@font-face {
  font-family: 'Kalpurush';
  font-display: swap;
  font-style: normal;
  font-weight: 400;
  src: url('../fonts/Kalpurush.woff2') format('woff2'),
       url('../fonts/Kalpurush.ttf') format('truetype');
}

@font-face {
  font-family: 'Kalpurush';
  font-display: swap;
  font-style: normal;
  font-weight: 700;
  src: url('../fonts/Kalpurush.woff2') format('woff2'),
       url('../fonts/Kalpurush.ttf') format('truetype');
}

:root {
  --bg-dark: #05080C;
  --bg-card: #0A0F17;
  --bg-card-hover: #0E1622;
  --neon-green: #00E676;
  --neon-cyan: #00D2FF;
  --neon-gold: #FFB703;
  --neon-purple: #8B5CF6;
  --neon-rose: #F43F5E;
  --telegram-blue: #229ED9;
  --text-main: #F8FAFC;
  --text-muted: #94A3B8;
  --border-subtle: rgba(255, 255, 255, 0.08);
  --border-glow-green: rgba(0, 230, 118, 0.3);
}

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

html {
  scroll-behavior: smooth;
}

/* -------------------------------------------------------------
   Typography Rule:
   1. Body, Paragraphs, Lists & Normal Text -> Kalpurush (Zero Ligature/Number Breaks)
   2. Highlights, Headings & Badges -> Hind Siliguri (Modern, Bold, Punchy)
   3. Protected Numerals -> Tabular, Non-breaking Font Stack
   ------------------------------------------------------------- */
body {
  font-family: 'Kalpurush', 'Plus Jakarta Sans', sans-serif;
  background-color: var(--bg-dark);
  color: var(--text-main);
  overflow-x: hidden;
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
  font-feature-settings: "liga" 1, "calt" 1;
}

/* Headings and High-impact text use Hind Siliguri for modern punch */
h1, h2, h3, h4, h5, h6,
.hero-fluid-title,
.font-highlight,
.font-hind,
.badge-highlight {
  font-family: 'Hind Siliguri', 'Outfit', sans-serif;
  letter-spacing: -0.01em;
}

/* Paragraphs, descriptions, lists, FAQs and normal text use Kalpurush (never breaks ligatures or numbers) */
p, span.body-text, li, .font-kalpurush {
  font-family: 'Kalpurush', sans-serif;
}

/* Bengali & English Numeral Protection (কখনোই সংখ্যা বা যুক্তাক্ষর ভাঙবে না) */
.num-safe,
.font-mono,
.font-outfit,
[data-num] {
  font-variant-numeric: tabular-nums lining-nums;
  -webkit-font-feature-settings: "tnum" 1, "liga" 1;
  font-feature-settings: "tnum" 1, "liga" 1;
}

/* Background Depth & Micro-Pattern */
.bg-mesh-dark {
  background-color: #05080C;
  background-image: 
    radial-gradient(ellipse at 50% 0%, rgba(0, 230, 118, 0.09) 0%, transparent 60%),
    radial-gradient(ellipse at 80% 50%, rgba(0, 210, 255, 0.05) 0%, transparent 50%),
    radial-gradient(ellipse at 20% 90%, rgba(139, 92, 246, 0.05) 0%, transparent 50%);
}

.section-glass-bg {
  background: linear-gradient(180deg, rgba(10, 15, 23, 0.6) 0%, rgba(5, 8, 12, 0.95) 100%);
  border-top: 1px solid rgba(255, 255, 255, 0.06);
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

/* Typography Fluidity (Strict 2-Line Hero on Mobile & Desktop) */
.hero-fluid-title {
  font-size: clamp(1.32rem, 5.2vw, 3.6rem);
  line-height: 1.25;
  letter-spacing: -0.015em;
  text-wrap: balance;
}

.hero-fluid-sub {
  font-size: clamp(0.95rem, 2.2vw, 1.15rem);
  line-height: 1.65;
}

/* Sticky Navbar */
.nav-blur {
  background: rgba(5, 8, 12, 0.92);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
  border-bottom: 1px solid rgba(255, 255, 255, 0.07);
}

/* Gradients */
.gradient-text {
  background: linear-gradient(135deg, #00E676 0%, #00D2FF 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.gradient-text-alt {
  background: linear-gradient(135deg, #F8FAFC 30%, #94A3B8 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

/* Feature Pill Chips */
.feature-pill-chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 14px;
  border-radius: 9999px;
  background: rgba(15, 23, 34, 0.9);
  border: 1px solid rgba(255, 255, 255, 0.1);
  font-size: 0.82rem;
  font-weight: 600;
  color: #E2E8F0;
  transition: all 0.25s ease;
  backdrop-filter: blur(8px);
}

.feature-pill-chip:hover {
  border-color: rgba(0, 230, 118, 0.5);
  background: rgba(0, 230, 118, 0.12);
  color: #00E676;
  transform: translateY(-2px);
}

/* Smart CTA Download Button (Vibrant & Alive Pill) */
.btn-hero-download {
  background: linear-gradient(135deg, #00E676 0%, #00DF89 50%, #00D2FF 100%);
  color: #05080C;
  font-weight: 800;
  box-shadow: 0 4px 20px -2px rgba(0, 230, 118, 0.4), 0 0 14px rgba(0, 210, 255, 0.25);
  transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
  position: relative;
  overflow: hidden;
  cursor: pointer;
}

/* Dynamic Light Gleam (জীবন্ত আলোর ছটা) */
.btn-hero-download::before {
  content: '';
  position: absolute;
  top: -50%;
  left: -60%;
  width: 45%;
  height: 200%;
  background: linear-gradient(
    60deg,
    rgba(255, 255, 255, 0) 0%,
    rgba(255, 255, 255, 0.4) 50%,
    rgba(255, 255, 255, 0) 100%
  );
  transform: rotate(25deg);
  animation: shimmerGleam 3.5s infinite ease-in-out;
  pointer-events: none;
}

@keyframes shimmerGleam {
  0%, 25% {
    left: -70%;
  }
  65%, 100% {
    left: 150%;
  }
}

.btn-hero-download:hover {
  transform: translateY(-2px) scale(1.02);
  box-shadow: 0 10px 30px -2px rgba(0, 230, 118, 0.65), 0 0 25px rgba(0, 210, 255, 0.4);
}

.btn-hero-download:active {
  transform: translateY(1px) scale(0.98);
}

/* Subtle living bounce on download icon */
@keyframes downloadSoftBounce {
  0%, 100% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(2.5px);
  }
}

.download-bounce-icon {
  animation: downloadSoftBounce 2s infinite ease-in-out;
}

@keyframes heroPulse {
  0%, 100% {
    box-shadow: 0 4px 18px -2px rgba(0, 230, 118, 0.35), 0 0 10px rgba(0, 210, 255, 0.15);
  }
  50% {
    box-shadow: 0 8px 25px -2px rgba(0, 230, 118, 0.55), 0 0 18px rgba(0, 210, 255, 0.25);
  }
}

.hero-pulse {
  animation: heroPulse 3.5s infinite ease-in-out;
}

/* Floating Mockup Animation */
@keyframes floatPhone {
  0%, 100% {
    transform: translateY(0px);
  }
  50% {
    transform: translateY(-8px);
  }
}

.floating-phone {
  animation: floatPhone 4.5s infinite ease-in-out;
}

/* Clean Android Device Frame */
.phone-mockup-frame {
  position: relative;
  width: 100%;
  max-width: 290px;
  border-radius: 38px;
  padding: 8px;
  background: linear-gradient(145deg, #1e293b, #070b10);
  box-shadow: 0 25px 65px -15px rgba(0, 0, 0, 0.95),
              0 0 40px rgba(0, 230, 118, 0.2),
              inset 0 0 2px rgba(255, 255, 255, 0.2);
  border: 2px solid #283548;
  margin: 0 auto;
}

.phone-screen {
  position: relative;
  border-radius: 30px;
  overflow: hidden;
  background: #000;
  box-shadow: inset 0 0 8px rgba(0, 0, 0, 0.7);
}

.phone-screen img {
  width: 100%;
  height: auto;
  display: block;
}

/* High-End Bento Cards with Rich Depth */
.bento-card-pro {
  position: relative;
  background: linear-gradient(145deg, rgba(14, 21, 31, 0.7) 0%, rgba(9, 14, 21, 0.95) 100%);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 24px;
  overflow: hidden;
  transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
  box-shadow: 0 10px 30px -10px rgba(0, 0, 0, 0.5);
}

.bento-card-pro:hover {
  transform: translateY(-4px);
  border-color: rgba(0, 230, 118, 0.35);
  box-shadow: 0 20px 45px -10px rgba(0, 230, 118, 0.12),
              0 0 20px rgba(0, 210, 255, 0.06);
}

/* Animated Soundwave Visualizer Bars */
.sound-bars {
  display: flex;
  align-items: center;
  gap: 3px;
  height: 20px;
}

.sound-bar {
  width: 3px;
  background: #00E676;
  border-radius: 99px;
  animation: barBounce 1.2s infinite ease-in-out;
}

.sound-bar:nth-child(1) { height: 6px; animation-delay: 0.1s; }
.sound-bar:nth-child(2) { height: 16px; animation-delay: 0.3s; }
.sound-bar:nth-child(3) { height: 10px; animation-delay: 0.2s; }
.sound-bar:nth-child(4) { height: 18px; animation-delay: 0.4s; }
.sound-bar:nth-child(5) { height: 8px; animation-delay: 0.15s; }

@keyframes barBounce {
  0%, 100% { transform: scaleY(0.4); }
  50% { transform: scaleY(1); }
}

/* Live Pomodoro Dial */
.pomodoro-ring {
  position: relative;
  width: 90px;
  height: 90px;
}

.pomodoro-circle-svg {
  transform: rotate(-90deg);
}

/* Floating Telegram Floating Action Button */
.floating-telegram-btn {
  position: fixed;
  bottom: 24px;
  left: 20px;
  z-index: 90;
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 16px 10px 12px;
  border-radius: 9999px;
  background: linear-gradient(135deg, #0088cc 0%, #229ED9 100%);
  color: #FFFFFF;
  box-shadow: 0 8px 25px -4px rgba(34, 158, 217, 0.55), 0 0 20px rgba(34, 158, 217, 0.3);
  border: 1.5px solid rgba(255, 255, 255, 0.25);
  transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
  text-decoration: none;
}

.floating-telegram-btn:hover {
  transform: translateY(-3px) scale(1.03);
  box-shadow: 0 12px 35px -2px rgba(34, 158, 217, 0.75), 0 0 30px rgba(34, 158, 217, 0.5);
}

@keyframes telegramPulse {
  0%, 100% {
    box-shadow: 0 8px 25px -4px rgba(34, 158, 217, 0.45);
  }
  50% {
    box-shadow: 0 12px 35px -2px rgba(34, 158, 217, 0.8), 0 0 25px rgba(34, 158, 217, 0.4);
  }
}

.telegram-pulse {
  animation: telegramPulse 3s infinite ease-in-out;
}

/* Video Frame */
.video-frame-container {
  position: relative;
  width: 100%;
  max-width: 820px;
  margin: 0 auto;
  border-radius: 24px;
  overflow: hidden;
  border: 1.5px solid rgba(0, 230, 118, 0.25);
  background: #090E15;
  box-shadow: 0 25px 60px -15px rgba(0, 0, 0, 0.9), 0 0 40px rgba(0, 230, 118, 0.15);
}

.video-frame-container .aspect-video {
  aspect-ratio: 16 / 9;
}

/* Modal Backdrop */
.modal-backdrop {
  background: rgba(3, 5, 8, 0.88);
  backdrop-filter: blur(14px);
}

/* Mobile Adjustments */
@media (max-width: 480px) {
  .floating-telegram-btn {
    bottom: 18px;
    left: 14px;
    padding: 8px 12px;
  }
  .floating-telegram-btn span.telegram-label-text {
    display: none;
  }
  .phone-mockup-frame {
    max-width: 250px;
  }
}
/* ============================================================
   Official Floating Community Social Dock (Telegram, YouTube, Facebook)
   ============================================================ */
.floating-social-dock {
  position: fixed;
  bottom: 22px;
  right: 22px;
  z-index: 95;
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 5px 6px;
  border-radius: 9999px;
  background: rgba(10, 15, 23, 0.92);
  border: 1.5px solid rgba(255, 255, 255, 0.12);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
  box-shadow: 0 10px 35px -5px rgba(0, 0, 0, 0.8),
              0 0 25px rgba(0, 230, 118, 0.15);
  transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.floating-social-dock:hover {
  border-color: rgba(0, 230, 118, 0.4);
  box-shadow: 0 14px 45px -5px rgba(0, 0, 0, 0.9),
              0 0 35px rgba(0, 230, 118, 0.25);
}

.social-dock-btn {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 4px 10px 4px 4px;
  border-radius: 9999px;
  text-decoration: none;
  transition: all 0.25s ease;
  background: rgba(255, 255, 255, 0.04);
}

.social-dock-btn:hover {
  transform: translateY(-2px);
}

.social-dock-icon {
  position: relative;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  transition: all 0.25s ease;
}

/* Telegram Button */
.social-dock-btn.tg-btn:hover {
  background: rgba(42, 171, 238, 0.18);
}
.tg-btn .social-dock-icon {
  background: linear-gradient(135deg, #2AABEE 0%, #229ED9 100%);
  box-shadow: 0 3px 12px rgba(34, 158, 217, 0.4);
}

/* YouTube Button */
.social-dock-btn.yt-btn:hover {
  background: rgba(255, 0, 0, 0.18);
}
.yt-btn .social-dock-icon {
  background: linear-gradient(135deg, #FF0000 0%, #CC0000 100%);
  box-shadow: 0 3px 12px rgba(255, 0, 0, 0.4);
}

/* Facebook Button */
.social-dock-btn.fb-btn:hover {
  background: rgba(24, 119, 242, 0.18);
}
.fb-btn .social-dock-icon {
  background: linear-gradient(135deg, #1877F2 0%, #0D65D9 100%);
  box-shadow: 0 3px 12px rgba(24, 119, 242, 0.4);
}

.social-dock-label {
  font-family: 'Outfit', sans-serif;
  font-size: 11px;
  font-weight: 700;
  color: #FFFFFF;
  letter-spacing: 0.02em;
}

.dock-live-dot {
  position: absolute;
  top: 1px;
  right: 1px;
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: #00E676;
  border: 1.5px solid #0A0F17;
  animation: liveDotPulse 2s infinite ease-in-out;
}

@keyframes liveDotPulse {
  0%, 100% { transform: scale(1); opacity: 1; }
  50% { transform: scale(1.25); opacity: 0.85; }
}

@media (max-width: 640px) {
  .floating-social-dock {
    bottom: 16px;
    right: 14px;
    gap: 4px;
    padding: 4px;
  }
  .social-dock-btn {
    padding: 0;
    background: transparent !important;
  }
  .social-dock-label {
    display: none !important;
  }
  .social-dock-icon {
    width: 38px;
    height: 38px;
  }
}

/* ============================================================
   MOBILE-ONLY BORDERLESS & SEAMLESS DESIGN (@media max-width: 767px)
   Removes repetitive bulky shapes and box-in-box cages on mobile,
   while preserving Desktop 100% rich, interactive, and intact.
   ============================================================ */
@media (max-width: 767px) {
  /* 1. Transform bulky rectangular bento cards into clean, borderless blocks */
  .bento-card-pro {
    background: transparent !important;
    border: none !important;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08) !important;
    border-radius: 0 !important;
    box-shadow: none !important;
    padding-left: 4px !important;
    padding-right: 4px !important;
    padding-top: 20px !important;
    padding-bottom: 24px !important;
  }

  .bento-card-pro:last-child {
    border-bottom: none !important;
  }

  /* 2. Flatten inner nested boxes (eliminating boxes inside boxes) */
  .bento-card-pro div[class*="bg-[#070B10]"],
  .bento-card-pro div[class*="bg-slate-900"] {
    background: rgba(255, 255, 255, 0.03) !important;
    border: 1px solid rgba(255, 255, 255, 0.06) !important;
    border-radius: 16px !important;
    box-shadow: none !important;
  }

  /* 3. Section spacing optimization for mobile */
  section {
    padding-top: 3rem !important;
    padding-bottom: 3rem !important;
  }

  /* 4. Interactive focal points remain crisp */
  #btn-panic-trigger {
    border-radius: 9999px !important;
  }
}
