:root {
  --primary-color: #8400D8;
  --secondary-color: #7c3aed;
  --gradient: linear-gradient(135deg, var(--primary-color), var(--secondary-color), var(--primary-color));
  --gradient-purple: linear-gradient(135deg, #a855f7, #7c3aed);
  --background-color: #0a0a1a;
  --stroke-controls: rgba(255, 255, 255, 0.05);
  --t-bright: #fff;
  --t-medium: #999;
  --t-opp-bright: #333;
  --t-opp-medium: #666;
  --white: #ffffff;
  --gray-light: #cccccc;
  --purple-primary: #a855f7;

  --font-size: 16px;
  --foreground: #ffffff;
  --font-weight-medium: 500;
  --font-weight-normal: 400;

  --text-base: 1rem;
  --text-sm: 0.875rem;
  --text-lg: 1.125rem;
  --text-xl: 1.25rem;
  --text-2xl: 1.5rem;
  --text-3xl: 1.875rem;
  --text-4xl: 2.25rem;
  --text-5xl: 3rem;
  --text-6xl: 3.75rem;
  --text-7xl: 4.5rem;
  --text-8xl: 6rem;
  --text-9xl: 8rem;

  /* Spacing variables for consistency */
  --spacing-xs: 0.5rem;
  --spacing-sm: 1rem;
  --spacing-md: 1.5rem;
  --spacing-lg: 2rem;
  --spacing-xl: 3rem;
  --spacing-2xl: 4rem;

  /* Container max-widths */
  --container-sm: 640px;
  --container-md: 768px;
  --container-lg: 1024px;
  --container-xl: 1280px;
  --container-2xl: 1536px;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  font-size: var(--font-size);
  scroll-behavior: smooth;
}

body {
  cursor: block;
  background: black;
  /* background-color: linear-gradient(135deg, #000000, #1a0033, #000000); */
  color: var(--foreground);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "Roboto", "Helvetica", "Arial", sans-serif;
  line-height: 1.5;
  min-height: 100vh;
  margin: 0;
  padding: 0;
  overflow-x: hidden;
  position: relative;
}



/* ===========================
   HERO SECTION
=========================== */

.bm-hero-section {
  position: relative;
  min-height: 97vh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  text-align: center;
  padding: var(--spacing-lg);
  width: 100%;
  overflow: hidden;
  z-index: 1;
}

/* .hero-section {
  position: relative;
  width: 100%;
  overflow: hidden;
} */

.bg-video {
  position: absolute;
  top: 50%;
  left: 50%;
  min-width: 100%;
  min-height: 100%;
  width: auto;
  height: auto;
  z-index: -1;
  transform: translate(-50%, -50%);
  object-fit: cover; /* ensures video covers background */
}


/* Background */
.spline-bg {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 0;
  pointer-events: none;
}

.spline-bg iframe {
  width: 100%;
  height: 100%;
  border: none;
}

/* Hero content */
.bm-hero-title,
.bm-hero-subtitle,
.bm-app-store-buttons {
  position: relative;
  z-index: 2;
  color: #fff;
}

.bm-hero-title {
  font-size: clamp(var(--text-4xl), 8vw, var(--text-9xl));
  font-weight: 700;
  padding-bottom: var(--spacing-sm);
  margin-bottom: var(--spacing-lg);
  background: linear-gradient(135deg, var(--primary-color), var(--secondary-color), #d399ff);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  letter-spacing: -0.02em;
  line-height: 1.1;
  opacity: 0;
  transform: translateY(100px);
  animation: bm-slideUpFadeIn 1.2s ease-out 0.8s forwards;
  word-break: break-word;
  hyphens: auto;
}

.bm-hero-subtitle {
  font-size: clamp(var(--text-base), 2.5vw, var(--text-xl));
  color: #ffffff;
  font-weight: var(--font-weight-normal);
  max-width: min(600px, 90vw);
  opacity: 0;
  margin-bottom: var(--spacing-xl);
  transform: translateY(50px);
  animation: bm-slideUpFadeIn 1s ease-out 1.5s forwards;
  line-height: 1.6;
}

/* Store buttons */
.bm-app-store-buttons {
  display: flex;
  gap: var(--spacing-md);
  opacity: 0;
  transform: translateY(30px);
  animation: bm-slideUpFadeIn 1s ease-out 2s forwards;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
  width: 100%;
  max-width: 500px;
}

.bm-app-store-btn {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.75rem var(--spacing-md);
  background: rgba(26, 0, 51, 0.6);
  border: 1px solid rgba(168, 85, 247, 0.3);
  border-radius: 12px;
  text-decoration: none;
  color: #ffffff;
  transition: all 0.3s ease;
  backdrop-filter: blur(10px);
  flex: 1;
  min-width: 180px;
  max-width: 220px;
  justify-content: center;
}

.bm-app-store-btn:hover {
  background: rgba(168, 85, 247, 0.2);
  transform: translateY(-3px);
  box-shadow: 0 10px 25px rgba(168, 85, 247, 0.3);
}

.bm-app-store-icon {
  width: 32px;
  height: 32px;
  background-size: cover;
  border-radius: 6px;
  flex-shrink: 0;
}

.bm-apple-icon,
.bm-google-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-weight: bold;
  border-radius: 6px;
}

.bm-apple-icon {
  font-size: 24px;
}

.bm-google-icon {
  font-size: 20px;
}

.bm-app-store-text {
  display: flex;
  flex-direction: column;
  text-align: left;
  flex: 1;
}

.bm-app-store-text .bm-small {
  font-size: 0.75rem;
  color: #999;
  line-height: 1.2;
}

.bm-app-store-text .bm-large {
  font-size: 1rem;
  font-weight: 500;
  line-height: 1.3;
}

/* ===========================
   PARTICLES & ANIMATIONS
=========================== */

/* Crackers */
.bm-crackers {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 1000;
  overflow: hidden;
}

.bm-cracker {
  position: absolute;
  border-radius: 50%;
  animation: bm-realisticCrackerFall linear infinite;
}

/* Animated background particles */
.bg-particles {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 0;
  overflow: hidden;
}

.particle {
  position: absolute;
  width: 3px;
  height: 3px;
  background: radial-gradient(circle at 30% 30%, rgba(255, 255, 255, 0.98), rgba(168, 85, 247, 0.95));
  border-radius: 50%;
  box-shadow: 0 0 8px rgba(168, 85, 247, 0.25), 0 0 20px rgba(120, 50, 200, 0.06);
  animation: float 18s infinite linear;
  will-change: transform, opacity;
  opacity: 0.9;
  mix-blend-mode: screen;
}

/* Icons */
.bm-icon {
  width: 24px;
  height: 24px;
  stroke: currentColor;
  fill: none;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

/* ===========================
   ANIMATIONS
=========================== */

@keyframes bm-fadeInDown {
  0% {
    opacity: 0;
    transform: translateY(-30px);
  }
  100% {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes bm-slideUpFadeIn {
  0% {
    opacity: 0;
    transform: translateY(100px);
  }
  100% {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes bm-slideUpFadeInScale {
  0% {
    opacity: 0;
    transform: translateY(30px) scale(0.9);
  }
  100% {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

@keyframes bm-fadeInScale {
  0% {
    opacity: 0;
    transform: scale(0.8);
  }
  100% {
    opacity: 1;
    transform: scale(1);
  }
}

@keyframes bm-realisticCrackerFall {
  0% {
    transform: translateY(-100vh) rotate(0deg) scale(0.8);
    opacity: 0;
  }
  5% {
    opacity: 1;
  }
  100% {
    transform: translateY(120vh) rotate(360deg) scale(0.6);
    opacity: 0;
  }
}

@keyframes float {
  0% {
    transform: translateY(110vh) translateX(0) scale(0.8);
    opacity: 0;
  }
  8% {
    opacity: 1;
  }
  50% {
    opacity: 0.9;
  }
  92% {
    opacity: 0.7;
  }
  100% {
    transform: translateY(-10vh) translateX(60px) scale(1.1);
    opacity: 0;
  }
}

/* ===========================
   MEDIA QUERIES
=========================== */

/* Large Screens */
@media (min-width: 1536px) {
  .bm-hero-section {
    padding: var(--spacing-2xl);
  }
}

@media (min-width: 1280px) and (max-width: 1535px) {
  .nav-menu {
    gap: var(--spacing-xl);
  }
}

@media (min-width: 1200px) and (max-width: 1279px) {
  .navbar {
    padding: 1rem 2rem;
  }
  
  .nav-menu {
    gap: var(--spacing-lg);
  }
  
  .download-btn {
    padding: 0.6rem var(--spacing-md);
    font-size: var(--text-sm);
  }
}

@media (min-width: 1100px) and (max-width: 1199px) {
  .nav-menu {
    gap: 2rem;
  }
  
  .navbar {
    padding: 1rem 2rem;
  }
}

@media (min-width: 950px) and (max-width: 1099px) {
  .nav-menu {
    gap: 2rem;
  }
  
  .navbar {
    padding: 1rem 2rem;
  }
}

/* Tablet Screens */
@media (min-width: 768px) and (max-width: 949px) {
  .nav-menu {
    display: none;    
  }
  
  .mobile-toggle {
    display: flex;
    margin-left: auto;
  }
  
  .navbar {
    padding: 1rem 2rem;
  }
  .download-btn1{
    display: none;
  }
  
  .bm-hero-section {
    padding: var(--spacing-lg) var(--spacing-md);
    min-height: 80vh;
  }
  
  .bm-app-store-buttons {
    gap: var(--spacing-sm);
    max-width: 400px;
  }
  
  .bm-app-store-btn {
    min-width: 160px;
    max-width: 180px;
    padding: 0.6rem var(--spacing-sm);
  }
}

/* Mobile Screens */
@media (max-width: 767px) {
  .nav-menu {
    display: none;
  }
  
  .mobile-toggle {
    display: flex;
    margin-left: auto;
  }
  

  .download-btn1{
    display: none;
  }
  
  .bm-hero-section {
    padding: var(--spacing-md) var(--spacing-sm);
    min-height: 140vh;
  }
  
  .bm-hero-subtitle {
    margin-bottom: var(--spacing-lg);
    line-height: 1.5;
  }
  
  .bm-app-store-buttons {
    flex-direction: column;
    gap: var(--spacing-sm);
    width: 100%;
    max-width: 280px;
  }
  
  .bm-app-store-btn {
    width: 100%;
    min-width: auto;
    max-width: none;
    padding: 0.75rem var(--spacing-sm);
    justify-content: center;
  }
}

/* Small Mobile Screens */
@media (max-width: 480px) {
  .download-btn1{
    display: none;
  }
  .logo-text {
    font-size: 28px;
  }
  
  .logo-b {
    font-size: 36px;
  }
  
  .navbar {
    margin-top: 1px;
    width: 100%;
    margin-left: 0;
  }
  
  .bm-hero-section {
    padding: var(--spacing-sm) var(--spacing-xs);
    min-height: 90vh;
  }
  
  .bm-app-store-buttons {
    max-width: 240px;
  }
  
  .bm-app-store-btn {
    padding: 0.6rem var(--spacing-xs);
    gap: var(--spacing-xs);
  }
  
  .bm-app-store-icon {
    width: 28px;
    height: 28px;
  }
  
  .bm-app-store-text .bm-large {
    font-size: var(--text-sm);
  }
  
  .bm-app-store-text .bm-small {
    font-size: 0.7rem;
  }
}

/* Very Small Mobile Screens */
@media (max-width: 320px) {
  .navbar {
    margin-top: 2px;
    width: 100%;
  }
  .logo-text {
    font-size: 24px;
  }
  
  .logo-b {
    font-size: 30px;
  }
  
  .bm-hero-section {
    padding: var(--spacing-xs);
    min-height: 60vh;
  }
  
  .bm-hero-subtitle {
    font-size: 0.8rem;
  }
  
  .bm-app-store-buttons {
    max-width: 200px;
  }
  
  .bm-app-store-btn {
    padding: 0.5rem 0.25rem;
  }
  
  .bm-app-store-text .bm-large {
    font-size: 0.8rem;
  }
  
  .bm-app-store-text .bm-small {
    font-size: 0.65rem;
  }
}

/* Landscape orientation adjustments for mobile */
@media (max-height: 500px) and (orientation: landscape) {
  .bm-hero-section {
    min-height: 90vh;
    padding: var(--spacing-sm);
  }
  
  .bm-hero-title {
    margin-bottom: var(--spacing-sm);
  }
  
  .bm-hero-subtitle {
    margin-bottom: var(--spacing-md);
  }
  
  .bm-app-store-buttons {
    flex-direction: row;
    gap: var(--spacing-xs);
  }
}

/* High DPI displays */
@media (-webkit-min-device-pixel-ratio: 2), (min-resolution: 192dpi) {
  .particle {
    width: 2px;
    height: 2px;
  }
}

/* Reduced motion preferences */
@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
  
  .particle {
    animation: none;
    opacity: 0.3;
  }
  
  .bm-cracker {
    animation: none;
  }
}





