/* MOBILE-FIRST STYLESHEET */

:root {
  --bg-dark: #02111b;
  --text-main: #ffffff;
  --text-muted: #b0bec5;
  --primary: #00e5ff;
  --secondary: #00ff88;
  --accent: #ff0080;
  --success: #4ecdc4;
  --error: #ff6b6b;
  --warning: #ff9800;
  --glass-bg: #1a1f2e;
  --glass-border: #2d3748;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  -webkit-tap-highlight-color: transparent;
}

html {
  font-size: 14px;
  overflow-x: hidden;
  width: 100%;
}

body {
  font-family: "Poppins", sans-serif;
  background-color: var(--bg-dark);
  color: var(--text-main);
  line-height: 1.6;
  overflow-x: hidden;
  width: 100%;
  position: relative;
  scroll-behavior: smooth;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/* Mobile-First Typography */
h1 {
  font-size: clamp(2rem, 8vw, 5rem);
  line-height: 1.1;
  font-weight: 800;
  margin-bottom: 1rem;
}

h2 {
  font-size: clamp(1.5rem, 6vw, 3rem);
  font-weight: 800;
  margin-bottom: 1rem;
}

h3 {
  font-size: 1.25rem;
  font-weight: 600;
  margin-bottom: 0.75rem;
}

p {
  color: var(--text-muted);
  font-size: 1rem;
  margin-bottom: 1.5rem;
  line-height: 1.7;
}

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

/* Background Blobs - hidden on mobile for performance */
.blob {
  position: absolute;
  filter: blur(60px);
  border-radius: 50%;
  z-index: -1;
  opacity: 0.12;
  animation: float 12s infinite ease-in-out alternate;
  pointer-events: none;
}

.blob-1 {
  top: -50px;
  left: -50px;
  width: 200px;
  height: 200px;
  background-color: var(--primary);
}

.blob-2 {
  top: 30%;
  right: -80px;
  width: 250px;
  height: 250px;
  background-color: var(--accent);
  animation-delay: -6s;
}

@keyframes float {
  0% { transform: translate(0, 0) scale(1); }
  100% { transform: translate(30px, 30px) scale(1.05); }
}

/* Mobile-First Layout */
.section {
  padding: 4rem 1.25rem;
  max-width: 1200px;
  margin: 0 auto;
}

/* Navbar - Mobile First */
.navbar {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  padding: 1rem 1.25rem;
  z-index: 100;
  transition: all 0.3s ease;
  background: transparent;
}

.navbar.scrolled {
  background-color: rgba(2, 17, 27, 0.95);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--glass-border);
  padding: 0.75rem 1.25rem;
}

.nav-container {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.logo {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  text-decoration: none;
  color: var(--text-main);
  font-weight: 800;
  font-size: 1.25rem;
}

.logo img {
  height: 32px;
  border-radius: 6px;
  object-fit: contain;
}

/* Mobile Menu Toggle */
.mobile-menu-toggle {
  display: flex;
  flex-direction: column;
  gap: 5px;
  padding: 8px;
  background: none;
  border: none;
  cursor: pointer;
  z-index: 101;
}

.mobile-menu-toggle span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--text-main);
  border-radius: 2px;
  transition: all 0.3s ease;
}

.mobile-menu-toggle.active span:nth-child(1) {
  transform: rotate(45deg) translate(5px, 5px);
}

.mobile-menu-toggle.active span:nth-child(2) {
  opacity: 0;
}

.mobile-menu-toggle.active span:nth-child(3) {
  transform: rotate(-45deg) translate(5px, -5px);
}

/* Nav Links - Hidden by default on mobile */
.nav-links {
  position: fixed;
  top: 0;
  right: -100%;
  width: 80%;
  max-width: 300px;
  height: 100vh;
  background: var(--glass-bg);
  border-left: 1px solid var(--glass-border);
  display: none;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 2rem;
  padding: 2rem;
  transition: right 0.3s ease;
  z-index: 100;
}

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

.nav-links a {
  color: var(--text-main);
  text-decoration: none;
  font-weight: 600;
  font-size: 1.125rem;
  transition: color 0.3s ease;
}

.nav-links a:not(.btn) {
  padding: 0.5rem;
}

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

/* Overlay for mobile menu */
.nav-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.5);
  opacity: 0;
  visibility: hidden;
  transition: all 0.3s ease;
  z-index: 99;
}

.nav-overlay.active {
  opacity: 1;
  visibility: visible;
}

/* Buttons - Mobile optimized touch targets */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.875rem 1.5rem;
  border-radius: 12px;
  font-weight: 600;
  font-size: 0.9375rem;
  text-decoration: none;
  transition: all 0.3s ease;
  cursor: pointer;
  white-space: nowrap;
  border: none;
  min-height: 44px;
  min-width: 44px;
}

.btn-primary {
  background-color: var(--primary);
  color: var(--bg-dark);
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 5px 15px rgba(0, 229, 255, 0.3);
}

.btn-secondary {
  background-color: var(--glass-bg);
  color: var(--text-main);
  border: 1px solid var(--primary);
}

.btn-secondary:hover {
  background-color: var(--primary);
  color: var(--bg-dark);
  transform: translateY(-2px);
}

.btn-large {
  padding: 1rem 2rem;
  font-size: 1rem;
  width: 100%;
}

.glowing-btn {
  animation: glow 2s infinite alternate;
}

@keyframes glow {
  0% { box-shadow: 0 0 10px rgba(0, 229, 255, 0.2); }
  100% { box-shadow: 0 0 25px rgba(0, 255, 136, 0.6); }
}

/* Hero Section - Mobile First */
.hero {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 6rem 1.25rem 3rem;
  text-align: center;
  gap: 2rem;
}

.hero-content {
  width: 100%;
  order: 1;
}

.badge {
  display: inline-block;
  padding: 0.5rem 1rem;
  background-color: var(--glass-bg);
  color: var(--secondary);
  border-radius: 50px;
  font-weight: 600;
  font-size: 0.8rem;
  margin-bottom: 1rem;
  border: 1px solid var(--glass-border);
}

.hero-buttons {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  width: 100%;
  max-width: 300px;
  margin: 0 auto;
}

.hero-visual {
  width: 100%;
  display: flex;
  justify-content: center;
  order: 2;
  perspective: 1000px;
}

.hero-screenshot {
  width: 100%;
  max-width: 280px;
  max-height: 500px;
  border-radius: 20px;
  margin: 0 auto;
  box-shadow: 0 15px 30px rgba(0, 0, 0, 0.5);
  border: 4px solid var(--glass-bg);
  object-fit: cover;
  transform: none;
}

/* Feature Showcase - Mobile First */
.feature-showcase {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2rem;
  text-align: center;
}

.showcase-content {
  width: 100%;
  order: 1;
}

.showcase-images {
  width: 100%;
  display: flex;
  justify-content: center;
  gap: 1rem;
  order: 2;
  perspective: 1000px;
}

.screenshot {
  width: 100%;
  max-width: 260px;
  border-radius: 20px;
  box-shadow: 0 15px 30px rgba(0, 0, 0, 0.5);
  border: 4px solid var(--glass-bg);
  object-fit: cover;
}

.dual-images {
  flex-direction: column;
  gap: 1rem;
  align-items: center;
}

.dual-images .screenshot {
  max-width: 280px;
  transform: none;
}

.dual-images .screenshot:nth-child(1),
.dual-images .screenshot:nth-child(2) {
  transform: none;
}

/* Features Grid - Mobile First */
.section-header {
  text-align: center;
  max-width: 600px;
  margin: 0 auto 2.5rem;
}

.features-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.25rem;
}

.glass {
  background-color: var(--glass-bg);
  border: 1px solid var(--glass-border);
  border-radius: 16px;
  padding: 1.5rem;
  transition: transform 0.3s ease, border-color 0.3s ease;
}

.glass:hover {
  transform: translateY(-3px);
  border-color: var(--primary);
}

.feature-icon {
  width: 48px;
  height: 48px;
  background-color: var(--bg-dark);
  border: 1px solid var(--glass-border);
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.25rem;
  color: var(--primary);
  margin-bottom: 1rem;
}

/* Referral CTA */
.referral-cta .cta-card {
  text-align: center;
  padding: 2.5rem 1.5rem;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.referral-cta .cta-card .feature-icon {
  margin: 0 auto 1rem;
  color: var(--secondary);
  background-color: var(--bg-dark);
  border-color: var(--secondary);
}

.referral-cta .cta-card strong {
  color: var(--secondary);
}

/* How It Works - Mobile First */
.steps-container {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.5rem;
  max-width: 1000px;
  margin: 0 auto;
}

.step {
  text-align: center;
  position: relative;
  padding: 1.5rem;
  background-color: var(--glass-bg);
  border: 1px solid var(--glass-border);
  border-radius: 16px;
  transition: transform 0.3s ease, border-color 0.3s ease;
}

.step:hover {
  transform: translateY(-3px);
  border-color: var(--primary);
}

.step-number {
  font-size: 3rem;
  font-weight: 800;
  color: rgba(255, 255, 255, 0.05);
  position: absolute;
  top: -10px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 0;
}

.step h3, .step p {
  position: relative;
  z-index: 1;
}

.step p {
  margin-bottom: 0;
  font-size: 0.9rem;
}

/* Download CTA - Mobile First */
.download-cta {
  padding-bottom: 4rem;
}

.cta-card {
  text-align: center;
  padding: 2.5rem 1.25rem;
  position: relative;
  overflow: hidden;
}

.cta-card::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 4px;
  background: linear-gradient(90deg, var(--primary), var(--secondary));
}

/* APK Download Cards - Mobile First */
.recommended-banner {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  background: rgba(0, 229, 255, 0.1);
  border: 1px solid rgba(0, 229, 255, 0.35);
  border-radius: 12px;
  padding: 10px 14px;
  margin: 12px 0 20px;
  color: var(--primary);
  font-size: 0.8rem;
  font-weight: 600;
  flex-wrap: wrap;
}

.recommended-banner i { font-size: 1rem; }

.apk-options {
  display: grid;
  grid-template-columns: 1fr;
  gap: 12px;
  margin: 8px 0 20px;
}

.apk-card {
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding: 16px;
  border-radius: 14px;
  border: 1px solid var(--glass-border);
  transition: transform 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease;
}

.apk-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 24px rgba(0,0,0,0.4);
}

.apk-card.recommended {
  border-color: var(--primary);
  box-shadow: 0 0 16px rgba(0, 229, 255, 0.15);
}

.apk-card-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.apk-icon {
  width: 40px;
  height: 40px;
  border-radius: 10px;
  background: rgba(0, 229, 255, 0.1);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.1rem;
  color: var(--primary);
}

.apk-badge {
  background: var(--primary);
  color: #000;
  font-size: 0.6rem;
  font-weight: 800;
  padding: 3px 8px;
  border-radius: 20px;
  text-transform: uppercase;
  letter-spacing: 0.03em;
}

.apk-info h4 {
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--text-main);
  margin-bottom: 3px;
}

.apk-info p {
  font-size: 0.75rem;
  color: var(--text-muted);
  margin-bottom: 6px;
}

.apk-size {
  font-size: 0.72rem;
  color: var(--text-muted);
}

.apk-download-btn {
  width: 100%;
  text-align: center;
  padding: 10px 14px;
  font-size: 0.85rem;
  border-radius: 10px;
  min-height: 44px;
}

.github-releases-link {
  color: var(--primary);
  text-decoration: none;
  font-size: 0.8rem;
  transition: opacity 0.2s;
}

.github-releases-link:hover { opacity: 0.75; }

.version-info {
  font-size: 0.8rem;
  margin-top: 1rem;
  margin-bottom: 0;
  color: var(--text-muted);
}

/* Footer - Mobile First */
.footer {
  border-top: 1px solid var(--glass-border);
  padding: 3rem 1.25rem 1.5rem;
  background-color: var(--bg-dark);
}

.footer-content {
  max-width: 1200px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr;
  gap: 2rem;
  margin-bottom: 2rem;
  text-align: center;
}

.footer-brand p {
  margin: 0.75rem auto 0;
  max-width: 280px;
  font-size: 0.9rem;
}

.footer-links h4 {
  margin-bottom: 1rem;
  color: var(--text-main);
  font-size: 1rem;
}

.footer-links a {
  display: block;
  color: var(--text-muted);
  text-decoration: none;
  margin-bottom: 0.5rem;
  font-size: 0.9rem;
  transition: color 0.3s ease;
  padding: 0.25rem;
}

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

.footer-bottom {
  text-align: center;
  padding-top: 1.5rem;
  border-top: 1px solid var(--glass-border);
  color: var(--text-muted);
  font-size: 0.8rem;
}

/* Scroll Animations */
.fade-in-up {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

.fade-in-up.visible {
  opacity: 1;
  transform: translateY(0);
}

/* ===== Changelog Section ===== */
.changelog-list {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
  max-width: 800px;
  margin: 0 auto;
}

.changelog-loading {
  text-align: center;
  color: var(--text-muted);
  padding: 2rem 0;
}

.changelog-card {
  position: relative;
  overflow: hidden;
}

.changelog-card::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 3px;
  background: linear-gradient(90deg, var(--primary), var(--secondary));
}

.changelog-card-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-bottom: 1rem;
  padding-top: 0.5rem;
}

.changelog-tag {
  color: var(--primary);
  font-weight: 700;
  font-size: 1rem;
  display: flex;
  align-items: center;
  gap: 0.4rem;
}

.changelog-tag i {
  font-size: 0.85rem;
}

.changelog-date {
  color: var(--text-muted);
  font-size: 0.8rem;
}

.changelog-section-header {
  color: var(--secondary) !important;
  font-size: 0.8rem !important;
  font-weight: 700 !important;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-top: 0.75rem !important;
  margin-bottom: 0.25rem !important;
}

.changelog-body p {
  color: var(--text-muted);
  font-size: 0.9rem;
  line-height: 1.7;
  margin-bottom: 0.5rem;
}

.changelog-body ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

.changelog-body li {
  color: var(--text-muted);
  font-size: 0.9rem;
  line-height: 1.7;
  padding-left: 1.2rem;
  position: relative;
  margin-bottom: 0.35rem;
}

.changelog-body li::before {
  content: "•";
  color: var(--primary);
  position: absolute;
  left: 0;
  font-weight: bold;
}

@media (min-width: 768px) {
  .changelog-list {
    gap: 1.5rem;
  }
}

.delay-1 { transition-delay: 0.1s; }
.delay-2 { transition-delay: 0.2s; }

/* TABLET & DESKTOP BREAKPOINTS */

/* Tablet (768px+) */
@media (min-width: 768px) {
  html { font-size: 15px; }
  
  .section {
    padding: 5rem 2rem;
  }
  
  .hero {
    padding: 7rem 2rem 4rem;
  }
  
  .hero-buttons {
    flex-direction: row;
    max-width: none;
    gap: 1rem;
  }
  
  .btn-large {
    width: auto;
  }
  
  .features-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 1.5rem;
  }
  
  .steps-container {
    grid-template-columns: repeat(2, 1fr);
    gap: 1.5rem;
  }
  
  .apk-options {
    grid-template-columns: repeat(2, 1fr);
    gap: 14px;
  }
  
  .footer-content {
    grid-template-columns: 2fr 1fr 1fr;
    gap: 3rem;
    text-align: left;
  }
  
  .logo {
    justify-content: flex-start;
  }
  
  /* Show blobs on larger screens */
  .blob-1 {
    width: 300px;
    height: 300px;
    top: -80px;
    left: -80px;
  }
  
  .blob-2 {
    width: 400px;
    height: 400px;
  }
}

/* Desktop (992px+) */
@media (min-width: 992px) {
  html { font-size: 16px; }
  
  .mobile-menu-toggle {
    display: none;
  }
  
  .nav-links {
    position: static;
    width: auto;
    max-width: none;
    height: auto;
    background: transparent;
    border: none;
    display: flex;
    flex-direction: row;
    padding: 0;
    gap: 2rem;
    align-items: center;
  }
  
  .nav-overlay {
    display: none;
  }
  
  .hero {
    flex-direction: row;
    text-align: left;
    padding: 8rem 2rem 4rem;
    gap: 4rem;
  }
  
  .hero-content {
    flex: 1;
    order: 0;
  }
  
  .hero-visual {
    flex: 1;
    order: 0;
  }
  
  .hero-screenshot {
    max-width: 320px;
    max-height: 600px;
    border-width: 6px;
    transform: rotateY(-10deg) rotateX(2deg);
  }
  
  .feature-showcase {
    flex-direction: row;
    text-align: left;
    gap: 4rem;
  }
  
  .feature-showcase.reverse {
    flex-direction: row-reverse;
  }
  
  .showcase-content {
    flex: 1;
    order: 0;
  }
  
  .showcase-images {
    flex: 1;
    order: 0;
  }
  
  .dual-images {
    flex-direction: row;
  }
  
  .dual-images .screenshot {
    max-width: 220px;
  }
  
  .dual-images .screenshot:nth-child(1) {
    transform: rotateY(-10deg) rotateX(2deg) translateY(20px);
  }
  
  .dual-images .screenshot:nth-child(2) {
    transform: rotateY(10deg) rotateX(2deg) translateY(-20px);
  }
  
  .features-grid {
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
  }
  
  .glass {
    padding: 2.5rem;
  }
  
  .feature-icon {
    width: 60px;
    height: 60px;
    font-size: 1.5rem;
    border-radius: 16px;
    margin-bottom: 1.5rem;
  }
  
  .steps-container {
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
  }
  
  .step {
    padding: 2rem;
  }
  
  .step-number {
    font-size: 4rem;
    top: -15px;
  }
  
  .cta-card {
    padding: 5rem 2rem;
  }
  
  .apk-options {
    grid-template-columns: repeat(3, 1fr);
    gap: 16px;
  }
  
  .apk-card {
    padding: 20px;
  }
  
  /* Larger blobs for desktop */
  .blob-1 {
    width: 400px;
    height: 400px;
    top: -100px;
    left: -100px;
  }
  
  .blob-2 {
    width: 500px;
    height: 500px;
    top: 40%;
    right: -150px;
  }
}

/* Large Desktop (1200px+) */
@media (min-width: 1200px) {
  .hero-screenshot {
    max-width: 380px;
    max-height: 700px;
  }
  
  .dual-images .screenshot {
    max-width: 250px;
  }
}

