/* === RESET & BASE === */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --bg: #080b14;
  --bg-card: #0f1524;
  --bg-card2: #131929;
  --border: rgba(255,255,255,0.07);
  --border-hover: rgba(255,255,255,0.15);
  --text: #f0f4ff;
  --text-muted: #8a9bb5;
  --text-faint: #4a5568;
  --purple: #a78bfa;
  --blue: #38bdf8;
  --pink: #f472b6;
  --green: #34d399;
  --orange: #fb923c;
  --grad: linear-gradient(135deg, #a78bfa, #38bdf8);
  --grad-alt: linear-gradient(135deg, #f472b6, #fb923c);
  --radius: 16px;
  --radius-sm: 10px;
  --radius-pill: 999px;
  --font-display: 'Syne', sans-serif;
  --font-body: 'DM Sans', sans-serif;
  --nav-h: 70px;
  --transition: 0.25s cubic-bezier(0.4, 0, 0.2, 1);
}

html { scroll-behavior: smooth; }

body {
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.7;
  overflow-x: hidden;
}

/* SCROLLBAR */
::-webkit-scrollbar { width: 6px; }
::-webkit-scrollbar-track { background: var(--bg); }
::-webkit-scrollbar-thumb { background: #2a3450; border-radius: 3px; }

/* === NAV === */
.nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  height: var(--nav-h);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid transparent;
  transition: border-color 0.3s, background 0.3s;
}
.nav.scrolled {
  background: rgba(8,11,20,0.85);
  border-color: var(--border);
}
.nav-inner {
  max-width: 1200px;
  margin: 0 auto;
  height: 100%;
  padding: 0 24px;
  display: flex;
  align-items: center;
  gap: 32px;
}
.logo {
  display: flex;
  align-items: center;
  gap: 12px; /* Space between icon and text */
  text-decoration: none;
  color: var(--text);
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 18px;
}

.logo-img {
  width: 32px;  /* Adjust size as needed */
  height: 32px;
  object-fit: contain;
  display: block;
}

.logo-icon { display: flex; align-items: center; }
.nav-links {
  list-style: none;
  display: flex;
  gap: 4px;
  margin-left: auto;
}
.nav-links a {
  display: block;
  padding: 8px 14px;
  color: var(--text-muted);
  text-decoration: none;
  font-size: 14px;
  border-radius: var(--radius-sm);
  transition: color var(--transition), background var(--transition);
}
.nav-links a:hover {
  color: var(--text);
  background: rgba(255,255,255,0.05);
}
.btn-nav {
  padding: 9px 20px;
  background: var(--grad);
  color: white;
  border-radius: var(--radius-pill);
  text-decoration: none;
  font-size: 14px;
  font-weight: 500;
  white-space: nowrap;
  transition: opacity var(--transition), transform var(--transition);
  flex-shrink: 0;
}
.btn-nav:hover { opacity: 0.85; transform: translateY(-1px); }
.hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
  background: none;
  border: none;
  padding: 6px;
  margin-left: auto;
}
.hamburger span {
  display: block;
  width: 22px;
  height: 2px;
  background: var(--text);
  border-radius: 2px;
  transition: transform 0.3s, opacity 0.3s;
}
.hamburger.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.hamburger.open span:nth-child(2) { opacity: 0; }
.hamburger.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }
.mobile-menu {
  display: none;
  flex-direction: column;
  gap: 4px;
  padding: 12px 24px 16px;
  background: rgba(8,11,20,0.97);
  border-bottom: 1px solid var(--border);
}
.mobile-menu a {
  color: var(--text-muted);
  text-decoration: none;
  padding: 10px 12px;
  border-radius: var(--radius-sm);
  font-size: 15px;
  transition: color 0.2s, background 0.2s;
}
.mobile-menu a:hover { color: var(--text); background: rgba(255,255,255,0.05); }
.mobile-menu .btn-nav {
  margin-top: 6px;
  text-align: center;
  display: block;
}
.mobile-menu.open { display: flex; }

/* === BUTTONS === */
.btn-primary {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 14px 28px;
  background: var(--grad);
  color: white;
  text-decoration: none;
  border-radius: var(--radius-pill);
  font-size: 15px;
  font-weight: 500;
  transition: opacity var(--transition), transform var(--transition), box-shadow var(--transition);
  box-shadow: 0 8px 32px rgba(167,139,250,0.3);
  cursor: pointer;
  border: none;
}
.btn-primary:hover {
  opacity: 0.9;
  transform: translateY(-2px);
  box-shadow: 0 12px 40px rgba(167,139,250,0.4);
}
.btn-primary.btn-large {
  padding: 16px 36px;
  font-size: 16px;
}
.btn-ghost {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 14px 24px;
  background: transparent;
  color: var(--text-muted);
  text-decoration: none;
  border-radius: var(--radius-pill);
  font-size: 15px;
  border: 1px solid var(--border);
  transition: color var(--transition), border-color var(--transition), background var(--transition);
}
.btn-ghost:hover {
  color: var(--text);
  border-color: var(--border-hover);
  background: rgba(255,255,255,0.04);
}

/* === GRADIENT TEXT === */
.gradient-text {
  background: var(--grad);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

/* === SECTION LABEL === */
.section-label {
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--purple);
  margin-bottom: 12px;
}
.section-title {
  font-family: var(--font-display);
  font-size: clamp(32px, 4vw, 52px);
  font-weight: 700;
  line-height: 1.15;
  color: var(--text);
  margin-bottom: 48px;
}

/* === CONTAINER === */
.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
}

/* === HERO (VIDEO BACKGROUND UPDATE) === */
.hero {
  position: relative;
  min-height: 100vh;
  padding-top: 80px;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

.hero-video-container {
  position: absolute;
  top: 0; left: 0;
  width: 100%; height: 100%;
  z-index: -2;
}

.bg-video {a
  width: 100%;
  height: 100%;
  object-fit: cover; /* Prevents video distortion */
  display: block;
}

.video-overlay {
  position: absolute;
  top: 0; 
  left: 0;
  width: 100%; 
  height: 100%;
  /* 0.9 represents 90% opacity of the black background */
  background: rgba(8, 11, 20, 1.0); 
  z-index: -1;
}

.hero-content {
  position: relative;
  z-index: 1;
  max-width: 850px;
  text-align: center;
  margin: 0 auto;
}

.badge-pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 16px;
  background: rgba(167,139,250,0.1);
  border: 1px solid rgba(167,139,250,0.25);
  border-radius: var(--radius-pill);
  font-size: 13px;
  color: var(--purple);
  margin-bottom: 24px;
}

.pulse-dot {
  width: 7px; height: 7px;
  background: var(--green);
  border-radius: 50%;
  box-shadow: 0 0 0 2px rgba(52,211,153,0.3);
  animation: pulse 2s ease-in-out infinite;
}
@keyframes pulse { 0%,100%{box-shadow:0 0 0 2px rgba(52,211,153,0.3)} 50%{box-shadow:0 0 0 6px rgba(52,211,153,0)} }

.hero-title {
  font-family: var(--font-display);
  font-size: clamp(30px, 5vw, 55px);
  font-weight: 800;
  line-height: 1.05;
  color: var(--text);
  margin-bottom: 24px;
}
.hero-sub {
  font-size: 18px;
  color: var(--text-muted);
  line-height: 1.75;
  max-width: 600px;
  margin: 0 auto 36px auto;
}
.hero-cta {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 16px;
  flex-wrap: wrap;
  margin-bottom: 48px;
}
.hero-stats {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 24px;
}
.stat { text-align: center; }
.stat-num {
  display: block;
  font-family: var(--font-display);
  font-size: 28px;
  font-weight: 700;
  background: var(--grad);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}
.stat-label {
  display: block;
  font-size: 12px;
  color: var(--text-faint);
  letter-spacing: 0.05em;
}
.stat-divider {
  width: 1px;
  height: 36px;
  background: var(--border);
}

/* === ABOUT === */
.about-section {
  padding: 120px 0;
  position: relative;
}
.about-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: start;
}
.about-text p {
  color: var(--text-muted);
  margin-bottom: 20px;
  font-size: 15px;
  line-height: 1.8;
}
.about-cards {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}
.mini-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 16px;
  display: flex;
  gap: 12px;
  align-items: flex-start;
  transition: border-color var(--transition), transform var(--transition);
}
.mini-card:hover {
  border-color: var(--border-hover);
  transform: translateY(-2px);
}
.mini-card-icon {
  width: 36px; height: 36px;
  border-radius: 10px;
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0;
}
.mini-card-text strong {
  display: block;
  font-size: 13px;
  font-weight: 600;
  color: var(--text);
  margin-bottom: 3px;
  line-height: 1.3;
}
.mini-card-text span {
  font-size: 12px;
  color: var(--text-muted);
  line-height: 1.4;
}

/* === FEATURES === */
.features-section {
  padding: 120px 0;
  background: linear-gradient(180deg, transparent 0%, rgba(15,21,36,0.6) 50%, transparent 100%);
}
.features-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}
.feature-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 28px;
  transition: border-color var(--transition), transform var(--transition), box-shadow var(--transition);
  position: relative;
  overflow: hidden;
}
.feature-card::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 1px;
  background: var(--grad);
  opacity: 0;
  transition: opacity var(--transition);
}
.feature-card:hover {
  border-color: rgba(167,139,250,0.2);
  transform: translateY(-4px);
  box-shadow: 0 20px 40px rgba(0,0,0,0.3);
}
.feature-card:hover::before { opacity: 1; }
.feature-card-large { grid-column: span 2; }
.feature-icon-big {
  margin-bottom: 16px;
}
.feature-card h3 {
  font-family: var(--font-display);
  font-size: 20px;
  font-weight: 600;
  color: var(--text);
  margin-bottom: 10px;
}
.feature-card p {
  font-size: 14px;
  color: var(--text-muted);
  line-height: 1.7;
  margin-bottom: 16px;
}
.feature-tag {
  display: inline-block;
  padding: 4px 12px;
  background: rgba(167,139,250,0.1);
  border: 1px solid rgba(167,139,250,0.2);
  border-radius: var(--radius-pill);
  font-size: 11px;
  color: var(--purple);
  font-weight: 600;
  letter-spacing: 0.05em;
}

/* === TUTORIALS === */
.tutorials-section { padding: 120px 0; }
.accordion { display: flex; flex-direction: column; gap: 10px; }
.acc-item {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  transition: border-color var(--transition);
}
.acc-item.open { border-color: rgba(167,139,250,0.25); }
.acc-header {
  width: 100%;
  background: none;
  border: none;
  padding: 20px 24px;
  display: flex;
  align-items: center;
  gap: 12px;
  cursor: pointer;
  color: var(--text);
  font-size: 16px;
  font-weight: 500;
  font-family: var(--font-body);
  text-align: left;
}
.acc-icon {
  color: var(--purple);
  display: flex;
  align-items: center;
}
.acc-arrow {
  margin-left: auto;
  color: var(--text-faint);
  transition: transform 0.3s;
  flex-shrink: 0;
}
.acc-item.open .acc-arrow { transform: rotate(180deg); }
.acc-body {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.4s cubic-bezier(0.4, 0, 0.2, 1), padding 0.3s;
}
.acc-body.open {
  max-height: 600px;
  padding-bottom: 8px;
}
.acc-body ul {
  list-style: none;
  padding: 8px 24px 20px 54px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.acc-body li {
  font-size: 14px;
  color: var(--text-muted);
  line-height: 1.7;
  padding-left: 14px;
  position: relative;
}
.acc-body li::before {
  content: '–';
  position: absolute;
  left: 0;
  color: var(--purple);
}
.acc-body strong { color: var(--text); font-weight: 500; }

/* === CTA === */
.cta-section {
  padding: 120px 0;
  position: relative;
  overflow: hidden;
  text-align: center;
}
.cta-inner h2 {
  font-family: var(--font-display);
  font-size: clamp(32px, 5vw, 56px);
  font-weight: 700;
  line-height: 1.15;
  color: var(--text);
  margin-bottom: 16px;
}
.cta-inner p {
  font-size: 17px;
  color: var(--text-muted);
  margin-bottom: 36px;
}

/* === FOOTER === */
.footer {
  padding: 32px 0;
  border-top: 1px solid var(--border);
}
.footer-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 16px;
}
.footer-brand .logo { margin-bottom: 6px; font-size: 16px; }
.footer-brand p { font-size: 12px; color: var(--text-faint); }
.footer-links {
  display: flex;
  gap: 4px;
  flex-wrap: wrap;
}
.footer-links a {
  padding: 6px 12px;
  color: var(--text-muted);
  text-decoration: none;
  font-size: 13px;
  border-radius: 6px;
  transition: color 0.2s, background 0.2s;
}
.footer-links a:hover {
  color: var(--text);
  background: rgba(255,255,255,0.05);
}

/* === RESPONSIVE === */
@media (max-width: 1024px) {
  .hero-content { max-width: 100%; padding: 80px 24px 40px; }
  .about-grid { grid-template-columns: 1fr; gap: 40px; }
  .features-grid { grid-template-columns: 1fr 1fr; }
  .feature-card-large { grid-column: span 2; }
}

@media (max-width: 768px) {
  .nav-links, .btn-nav { display: none; }
  .hamburger { display: flex; }
  .features-grid { grid-template-columns: 1fr; }
  .feature-card-large { grid-column: span 1; }
  .about-cards { grid-template-columns: 1fr; }
  .hero-stats { gap: 16px; }
  .stat-num { font-size: 22px; }
  .footer-inner { flex-direction: column; align-items: flex-start; }
}

@media (max-width: 480px) {
  .hero-cta { flex-direction: column; align-items: stretch; }
  .btn-primary, .btn-ghost { width: 100%; justify-content: center; }
}

/* === HERO LAYOUT === */
.hero {
  position: relative;
  min-height: 100vh;
  padding-top: 80px;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

.hero-container {
  max-width: 1200px;
  width: 100%;
  margin: 0 auto;
  padding: 0 24px;
  display: flex; /* Forces Side-by-Side */
  flex-direction: row; /* Ensure it is a row */
  align-items: center;
  justify-content: space-between;
  gap: 40px;
}

/* Content Column */
.hero-content {
  flex: 1; /* Takes up 50% */
  text-align: left;
}

/* Video Column */
.hero-visual {
  flex: 1; /* Takes up 50% */
  display: flex;
  justify-content: flex-end;
}

.video-wrap {
  width: 100%;
  max-width: 520px;
  position: relative;
}

.video-frame {
  width: 100%;
  background: #000;
  border-radius: 24px;
  overflow: hidden;
  border: 1.5px solid rgba(255,255,255,0.1);
  box-shadow: 0 40px 80px rgba(0,0,0,0.5);
}

.video-frame video {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* Background & Pulse Effects */
.hero-bg { position: absolute; inset: 0; z-index: -1; }
.orb { position: absolute; border-radius: 50%; filter: blur(80px); opacity: 0.2; }
.orb1 { width: 400px; height: 400px; background: #7c3aed; top: -100px; left: -100px; }
.grid-overlay {
  position: absolute; inset: 0;
  background-image: linear-gradient(rgba(255,255,255,0.03) 1px, transparent 1px), 
                    linear-gradient(90deg, rgba(255,255,255,0.03) 1px, transparent 1px);
  background-size: 50px 50px;
}

/* === RESPONSIVE FIX === */
@media (max-width: 991px) {
  .hero-container {
    flex-direction: column; /* Only stacks on tablets/phones */
    text-align: center;
    gap: 50px;
  }
  
  .hero-content {
    text-align: center;
  }
  
  .hero-sub {
    margin-left: auto;
    margin-right: auto;
  }
  
  .hero-cta {
    justify-content: center;
  }
  
  .hero-visual {
    justify-content: center;
  }
}

@media (max-width: 480px) {
  .hero-title { font-size: 36px; }
  .btn-primary, .btn-ghost { width: 100%; text-align: center; }
}

/* === DOWNLOAD SECTION === */
.download-section {
  padding: 100px 0;
  text-align: center;
  background: radial-gradient(circle at top, rgba(167, 139, 250, 0.05) 0%, transparent 70%);
}

.download-content {
  max-width: 800px;
  margin: 0 auto;
}

.download-sub {
  color: var(--text-muted);
  font-size: 18px;
  margin-bottom: 48px;
}

.download-grid {
  display: flex;
  justify-content: center;
  gap: 20px;
  flex-wrap: wrap;
}

/* Store Cards */
.store-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  padding: 16px 28px;
  border-radius: 16px;
  display: flex;
  align-items: center;
  gap: 16px;
  text-decoration: none;
  color: white;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  min-width: 220px;
}

.store-card:hover {
  background: #161c2d;
  border-color: var(--purple);
  transform: translateY(-5px);
  box-shadow: 0 15px 30px rgba(0, 0, 0, 0.4);
}

.store-icon {
  color: white;
  display: flex;
  align-items: center;
  justify-content: center;
}

.store-text {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  line-height: 1.2;
}

.store-text span {
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--text-muted);
}

.store-text strong {
  font-size: 20px;
  font-family: var(--font-display);
}

/* Mobile Responsive */
@media (max-width: 480px) {
  .store-card {
    width: 100%;
    justify-content: center;
  }
}

/* === FOOTER ENHANCEMENTS === */
.footer {
  padding: 48px 0;
  border-top: 1px solid var(--border);
  background: var(--bg);
}

.footer-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 32px;
}

.footer-brand .logo {
  margin-bottom: 8px;
}

.footer-brand p {
  font-size: 13px;
  color: var(--text-faint);
}

.footer-links {
  display: flex;
  gap: 24px;
}

.footer-links a {
  color: var(--text-muted);
  text-decoration: none;
  font-size: 14px;
  transition: color var(--transition);
}

.footer-links a:hover {
  color: var(--text);
}

/* Social Icons */
.footer-social {
  display: flex;
  gap: 16px;
}

.social-icon {
  color: var(--text-muted);
  transition: color var(--transition), transform var(--transition);
  display: flex;
  align-items: center;
  justify-content: center;
}

.social-icon:hover {
  color: var(--purple);
  transform: translateY(-3px);
}

/* Mobile Responsive */
@media (max-width: 768px) {
  .footer-inner {
    flex-direction: column;
    text-align: center;
  }
  .footer-links {
    flex-direction: column;
    gap: 12px;
  }
  .footer-social {
    justify-content: center;
  }
}


/* === PREVIEW CARDS === */
.preview-section {
  padding: 100px 0;
  background: linear-gradient(180deg, transparent, rgba(167, 139, 250, 0.02) 100%);
}

.preview-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 24px;
}

.preview-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 20px;
  overflow: hidden;
  transition: all 0.3s ease;
  display: flex;
  flex-direction: column;
}

.preview-card:hover {
  transform: translateY(-8px);
  border-color: rgba(167, 139, 250, 0.3);
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.4);
}

.preview-img-wrap {
  width: 100%;
  aspect-ratio: 16/9;
  overflow: hidden;
  background: #000;
}

.preview-img-wrap img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}

.preview-card:hover .preview-img-wrap img {
  transform: scale(1.08);
}

.preview-info {
  padding: 20px;
}

.preview-info h3 {
  font-family: var(--font-display);
  font-size: 18px;
  color: var(--text);
  margin-bottom: 8px;
}

.preview-info p {
  font-size: 14px;
  color: var(--text-muted);
  line-height: 1.5;
}

/* Responsive Tweaks */
@media (max-width: 768px) {
  .preview-grid {
    grid-template-columns: 1fr; /* Single column on mobile */
  }
}

/* === ENHANCED DARK HERO BACKGROUND === */
/* === SOLID DARK HERO BACKGROUND === */
.hero-image-bg {
  position: absolute;
  inset: 0;
  z-index: -2;
  overflow: hidden;
  /* Control how much of the original image bleeds through overall */
  opacity: 1.0; 
} 

.hero-image-bg img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: blur(1px); /* Blur helps keep the text as the focal point */
  transform: scale(1.0);
}

.hero-image-overlay {
  position: absolute;
  inset: 0;
  /* Solid Deep Black Overlay */
  /* 0.85 = 85% black, 15% image visibility */
  background-color: rgba(0, 0, 0, 0.75); 
  
  /* Optional: keeps the very edges slightly darker to frame the content */
  box-shadow: inset 0 0 150px rgba(0, 0, 0, 1.0);
}

/* Ensure the hero container stays on top and centered */
.hero-container {
  position: relative;
  z-index: 2;
  /* ... your existing side-by-side flex properties ... */
}
