:root {
  --bg-color: #141313;
  --card-bg: #201F1F;
  --card-border: #333333;
  --card-hover-border: #06B6D4;
  --text-primary: #FFFFFF;
  --text-secondary: #A0A0A0;
  --text-muted: #71717A;
  --accent-cyan: #06B6D4;
  --accent-amber: #F59E0B;
  --accent-purple: #8B5CF6;
  --accent-gradient: linear-gradient(135deg, #06B6D4 0%, #3B82F6 50%, #F59E0B 100%);
  --font-sans: 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  --font-display: 'Space Grotesk', var(--font-sans);
  --max-width: 1100px;
}

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

html, body {
  width: 100%;
  max-width: 100%;
  overflow-x: hidden !important;
}

html {
  scroll-behavior: smooth;
}

body {
  background-color: var(--bg-color);
  color: var(--text-primary);
  font-family: var(--font-sans);
  min-height: 100vh;
  position: relative;
  line-height: 1.5;
}

/* Ambient Background Glows */
.glow-blob {
  position: absolute;
  width: 600px;
  height: 600px;
  border-radius: 50%;
  background: var(--accent-gradient);
  filter: blur(140px);
  opacity: 0.08;
  z-index: 0;
  pointer-events: none;
}

.glow-blob-1 {
  top: -100px;
  left: -100px;
}

.glow-blob-2 {
  top: 50%;
  right: -200px;
}

.glow-blob-3 {
  bottom: -100px;
  left: -200px;
}

/* Navigation Header */
header.nav-header {
  width: 100%;
  border-bottom: 1px solid var(--card-border);
  background: rgba(9, 9, 11, 0.8);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  position: sticky;
  top: 0;
  z-index: 100;
}

.nav-container {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 16px 24px;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.nav-logo-link {
  display: flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
  color: var(--text-primary);
}

.nav-logo {
  width: 36px;
  height: 36px;
  border-radius: 8px;
}

.nav-title {
  font-family: var(--font-display);
  font-size: 1.35rem;
  font-weight: 700;
  letter-spacing: -0.02em;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 24px;
}

.menu-toggle {
  display: none;
  background: none;
  border: none;
  color: var(--text-primary);
  cursor: pointer;
  padding: 8px;
  border-radius: 8px;
  transition: background 0.2s ease;
}

.menu-toggle:hover {
  background: rgba(255, 255, 255, 0.1);
}

.nav-links a {
  color: var(--text-secondary);
  text-decoration: none;
  font-size: 0.95rem;
  font-weight: 500;
  transition: color 0.2s ease;
}

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

.nav-links a.nav-btn,
.nav-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: var(--accent-cyan);
  color: #000000 !important;
  padding: 8px 18px;
  border-radius: 20px;
  font-weight: 700;
  font-size: 0.85rem;
  border: none;
  text-decoration: none;
  box-shadow: 0 4px 15px rgba(6, 182, 212, 0.35);
  transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease, color 0.2s ease;
}

.nav-links a.nav-btn:hover,
.nav-btn:hover {
  transform: translateY(-1px);
  background: #22d3ee;
  color: #000000 !important;
  box-shadow: 0 6px 20px rgba(6, 182, 212, 0.55);
}

.nav-links a.nav-support-btn,
.nav-support-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: rgba(245, 158, 11, 0.12);
  border: 1px solid rgba(245, 158, 11, 0.35);
  color: #fbbf24 !important;
  padding: 7px 14px;
  border-radius: 20px;
  font-weight: 600;
  font-size: 0.85rem;
  text-decoration: none;
  transition: all 0.2s ease;
}

.nav-links a.nav-support-btn:hover,
.nav-support-btn:hover {
  background: rgba(245, 158, 11, 0.25);
  border-color: #f59e0b;
  color: #ffffff !important;
  transform: translateY(-1px);
  box-shadow: 0 4px 15px rgba(245, 158, 11, 0.25);
}

/* Container */
.section-container {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 80px 24px;
  position: relative;
  z-index: 2;
}

/* Centered Hero Section */
.hero-section {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  padding-top: 80px;
  padding-bottom: 20px;
  max-width: 800px;
}

.gradient {
  background: var(--accent-gradient);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.hero-title {
  font-family: var(--font-display);
  font-size: 4.6rem;
  font-weight: 800;
  line-height: 1.1;
  letter-spacing: -0.03em;
  margin-bottom: 24px;
}

.hero-subtitle {
  font-size: 1.25rem;
  color: var(--text-secondary);
  margin-bottom: 32px;
  line-height: 1.6;
  max-width: 680px;
}

/* Store Badges Row */
.store-badges {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 16px;
}

.store-badge {
  display: inline-block;
  transition: all 0.2s ease;
  height: 40px;
  text-decoration: none;
}

.store-badge:hover {
  transform: translateY(-2px);
  filter: brightness(1.25);
}

.store-badge img {
  height: 100%;
  width: auto;
  display: block;
}

/* Features Grid (4 Cards) */
.features-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
  margin-top: 40px;
}

.feature-card {
  background: var(--card-bg);
  border: 2px solid var(--card-border);
  border-radius: 16px;
  padding: 24px;
  text-align: center;
  transition: all 0.25s ease;
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}

.feature-card:hover {
  border-color: var(--card-hover-border);
  transform: translateY(-4px);
  box-shadow: 0 10px 25px rgba(6, 182, 212, 0.2);
}

.feature-icon-wrapper {
  width: 44px;
  height: 44px;
  border-radius: 12px;
  background: rgba(6, 182, 212, 0.1);
  border: 1px solid rgba(6, 182, 212, 0.25);
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 20px auto;
  color: #67e8f9;
  transition: all 0.25s ease;
}

.feature-card:hover .feature-icon-wrapper {
  background: rgba(6, 182, 212, 0.2);
  border-color: rgba(6, 182, 212, 0.5);
  color: #ffffff;
  transform: scale(1.05);
  box-shadow: 0 0 15px rgba(6, 182, 212, 0.3);
}

.feature-title {
  font-family: var(--font-display);
  font-size: 1.15rem;
  font-weight: 600;
  margin-bottom: 8px;
}

.feature-desc {
  font-size: 0.85rem;
  color: var(--text-secondary);
  line-height: 1.4;
}

/* Alternating Detail Sections */
.detail-section {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 80px;
  align-items: center;
  margin-bottom: 120px;
}

.detail-section.reverse {
  direction: rtl;
}

.detail-section.reverse .detail-content {
  direction: ltr;
  text-align: left;
}

.detail-content {
  text-align: left;
}

.detail-tag {
  display: inline-block;
  padding: 4px 12px;
  background: rgba(6, 182, 212, 0.12);
  border: 1px solid rgba(6, 182, 212, 0.3);
  border-radius: 20px;
  color: #67e8f9;
  font-size: 0.8rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: 16px;
}

.hero-section .detail-tag {
  text-transform: none;
  font-size: 0.85rem;
  letter-spacing: 0.01em;
  font-weight: 500;
}

.detail-title {
  font-family: var(--font-display);
  font-size: 2.25rem;
  font-weight: 700;
  margin-bottom: 16px;
  line-height: 1.25;
}

.detail-desc {
  color: var(--text-secondary);
  font-size: 1.05rem;
  line-height: 1.6;
  margin-bottom: 24px;
}

.detail-bullets {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.detail-bullets li {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  color: var(--text-primary);
  font-size: 0.95rem;
}

.detail-bullets li::before {
  content: '✓';
  color: #10b981;
  font-weight: bold;
}

/* Phone Mockup Frame */
.phone-frame {
  width: 100%;
  max-width: 270px;
  aspect-ratio: 9 / 19.5;
  background: #000;
  border: 11px solid #18181b;
  border-radius: 40px;
  box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.7), 0 0 20px rgba(6, 182, 212, 0.1);
  overflow: hidden;
  position: relative;
  transition: transform 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.1), box-shadow 0.3s ease;
  margin: 0 auto;
}

.phone-frame:hover {
  transform: translateY(-10px) scale(1.02);
  box-shadow: 0 30px 60px -10px rgba(0, 0, 0, 0.85), 0 0 30px rgba(6, 182, 212, 0.25);
}

.phone-frame::after {
  content: '';
  position: absolute;
  top: 6px;
  left: 50%;
  transform: translateX(-50%);
  width: 65px;
  height: 14px;
  background: #000;
  border-radius: 8px;
  z-index: 10;
}

.phone-frame img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

/* Brands Section */
.brands-section {
  text-align: center;
}

.brands-title {
  font-family: var(--font-display);
  font-size: 2rem;
  font-weight: 700;
  margin-bottom: 12px;
}

.brands-subtitle {
  color: var(--text-secondary);
  margin-bottom: 40px;
}

.brand-chips-grid {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 12px;
  max-width: 800px;
  margin: 0 auto;
}

.brand-chip {
  background: var(--card-bg);
  border: 1px solid var(--card-border);
  border-radius: 12px;
  padding: 8px 18px;
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--text-primary);
  transition: all 0.2s ease;
}

.brand-chip:hover {
  background: rgba(255, 255, 255, 0.06);
  border-color: rgba(255, 255, 255, 0.2);
  transform: translateY(-1px);
}

/* CTA Section */
.cta-section {
  text-align: center;
  position: relative;
}

.cta-card {
  background: linear-gradient(135deg, rgba(6, 182, 212, 0.12) 0%, rgba(59, 130, 246, 0.12) 100%);
  border: 1px solid rgba(6, 182, 212, 0.3);
  border-radius: 32px;
  padding: 60px 40px;
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  max-width: 800px;
  margin: 0 auto;
  box-shadow: 0 20px 50px rgba(6, 182, 212, 0.1);
}

.cta-title {
  font-family: var(--font-display);
  font-size: 2.5rem;
  font-weight: 700;
  margin-bottom: 16px;
}

.cta-subtitle {
  color: var(--text-secondary);
  font-size: 1.1rem;
  margin-bottom: 32px;
  max-width: 500px;
  margin-left: auto;
  margin-right: auto;
  line-height: 1.5;
}

.cta-card .store-badges {
  justify-content: center;
}

/* Footer styles */
footer {
  width: 100%;
  border-top: 1px solid var(--card-border);
  padding: 40px 24px;
  font-size: 0.85rem;
  color: var(--text-muted);
  background: rgba(9, 9, 11, 0.5);
  text-align: center;
}

.footer-container {
  max-width: var(--max-width);
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

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

.footer-links a {
  color: var(--text-secondary);
  text-decoration: none;
  transition: color 0.2s ease;
}

.footer-links a:hover {
  color: var(--accent-cyan);
  text-decoration: underline;
}

.support-footer-box {
  max-width: var(--max-width);
  margin: 0 auto 32px auto;
  padding: 24px 32px;
  background: #201F1F;
  border: 2px solid #333333;
  border-radius: 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  text-align: left;
}

.support-text {
  color: var(--text-secondary);
  font-size: 0.95rem;
  line-height: 1.5;
}

.support-text strong {
  color: var(--text-primary);
}

.bmac-button {
  display: inline-block;
  transition: transform 0.2s ease;
  flex-shrink: 0;
}

.bmac-button:hover {
  transform: scale(1.05);
}

/* Responsive Grid Adjustments */
@media (max-width: 900px) {
  .hero-title {
    font-size: 2.8rem;
  }

  .features-grid {
    grid-template-columns: 1fr 1fr;
  }

  .footer-container {
    flex-direction: column;
    gap: 16px;
  }
  .support-footer-box {
    flex-direction: column;
    text-align: center;
  }
}

@media (max-width: 768px) {
  .section-container {
    padding: 40px 20px !important;
  }

  .hero-section {
    padding-top: 80px !important;
  }

  .hero-section .detail-tag {
    font-size: 0.78rem !important;
    padding: 4px 14px !important;
    margin-bottom: 20px !important;
    max-width: 95% !important;
    white-space: nowrap !important;
    overflow: hidden !important;
    text-overflow: ellipsis !important;
  }

  .detail-section,
  .detail-section.reverse {
    display: flex !important;
    flex-direction: column !important;
    gap: 24px !important;
    margin-bottom: 40px !important;
    text-align: center !important;
    direction: ltr !important;
  }

  .detail-content {
    order: 1 !important;
    text-align: center !important;
  }

  .phone-frame {
    order: 2 !important;
  }

  .detail-bullets {
    align-items: center !important;
  }

  .nav-container {
    position: relative;
  }

  .menu-toggle {
    display: block;
  }

  .nav-links {
    display: none;
    position: absolute;
    top: calc(100% + 12px);
    left: 0;
    right: 0;
    background: #141313;
    border: 1px solid #333333;
    border-radius: 16px;
    padding: 20px;
    flex-direction: column;
    align-items: stretch;
    gap: 16px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.9);
    z-index: 100;
  }

  .nav-links.active {
    display: flex;
  }

  .nav-links a {
    padding: 8px 0;
    font-size: 1.05rem;
    text-align: center;
  }

  .nav-links a.nav-btn,
  .nav-links a.nav-support-btn {
    justify-content: center;
    padding: 12px 20px;
    width: 100%;
    box-sizing: border-box;
  }
}

@media (max-width: 480px) {
  .hero-title {
    font-size: 2.2rem;
  }

  .features-grid {
    grid-template-columns: 1fr;
  }

  .cta-title {
    font-size: 1.8rem;
  }
}
