/* ================================================
   CrDev Website – style.css
   Design System: Dark, Electric Blue, Premium
   ================================================ */

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

:root {
  /* Colors */
  --blue-primary: #1a6ef7;
  --blue-light: #3b8bff;
  --blue-glow: #1a6ef740;
  --cyan: #00c6ff;
  --bg-base: #060d1f;
  --bg-card: #0d1830;
  --bg-card-hover: #111f3e;
  --bg-glass: rgba(13, 24, 48, 0.7);
  --border: rgba(26, 110, 247, 0.18);
  --border-hover: rgba(26, 110, 247, 0.45);
  --text-primary: #f0f4ff;
  --text-secondary: #8ba3cc;
  --text-muted: #4a6090;

  /* Gradients */
  --gradient-blue: linear-gradient(135deg, #1a6ef7 0%, #00c6ff 100%);
  --gradient-dark: linear-gradient(135deg, #060d1f 0%, #0d1830 100%);
  --gradient-glow: radial-gradient(ellipse 80% 50% at 50% 0%, rgba(26, 110, 247, 0.15), transparent);

  /* Typography */
  --font-main: 'Inter', system-ui, -apple-system, sans-serif;
  --font-display: 'Space Grotesk', 'Inter', sans-serif;

  /* Spacing */
  --radius-sm: 8px;
  --radius-md: 14px;
  --radius-lg: 20px;
  --radius-xl: 28px;

  /* Transitions */
  --transition: 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  --transition-bounce: 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
}

html {
  scroll-behavior: smooth;
  font-size: 16px;
}

body {
  font-family: var(--font-main);
  background-color: var(--bg-base);
  color: var(--text-primary);
  line-height: 1.6;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

::selection {
  background: var(--blue-primary);
  color: white;
}

a {
  text-decoration: none;
  color: inherit;
}

img { display: block; max-width: 100%; }

.container {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
}

/* ---------- SCROLLBAR ---------- */
::-webkit-scrollbar { width: 6px; }
::-webkit-scrollbar-track { background: var(--bg-base); }
::-webkit-scrollbar-thumb { background: var(--blue-primary); border-radius: 3px; }

/* ---------- NAVBAR ---------- */
.navbar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  padding: 16px 0;
  transition: background var(--transition), padding var(--transition), box-shadow var(--transition);
}

.navbar.scrolled {
  background: rgba(6, 13, 31, 0.92);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  padding: 10px 0;
  box-shadow: 0 1px 0 rgba(26, 110, 247, 0.15), 0 8px 32px rgba(0,0,0,0.4);
}

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

.nav-logo { display: flex; align-items: center; flex-shrink: 0; }

.logo-svg {
  height: 36px;
  width: auto;
  transition: opacity var(--transition);
}
.logo-svg:hover { opacity: 0.9; }

.nav-links {
  display: flex;
  align-items: center;
  gap: 8px;
  list-style: none;
}

.nav-link {
  padding: 8px 14px;
  border-radius: var(--radius-sm);
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--text-secondary);
  transition: color var(--transition), background var(--transition);
}

.nav-link:hover {
  color: var(--text-primary);
  background: rgba(26, 110, 247, 0.1);
}

.nav-cta {
  display: flex;
  align-items: center;
  gap: 7px;
  padding: 9px 18px;
  background: var(--gradient-blue);
  color: white;
  font-weight: 600;
  font-size: 0.875rem;
  border-radius: var(--radius-sm);
  transition: opacity var(--transition), transform var(--transition), box-shadow var(--transition);
  box-shadow: 0 4px 16px rgba(26, 110, 247, 0.35);
}

.nav-cta:hover {
  opacity: 0.92;
  transform: translateY(-1px);
  box-shadow: 0 6px 24px rgba(26, 110, 247, 0.5);
}

.hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 6px;
  border-radius: var(--radius-sm);
}
.hamburger span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--text-primary);
  border-radius: 2px;
  transition: transform var(--transition), opacity var(--transition);
}
.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); }

/* ---------- HERO ---------- */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  padding: 100px 24px 0;
}

.hero-bg {
  position: absolute;
  inset: 0;
  z-index: 0;
  background: radial-gradient(ellipse 70% 60% at 50% 0%, rgba(26, 110, 247, 0.12), transparent 70%),
              radial-gradient(ellipse 50% 40% at 80% 70%, rgba(0, 198, 255, 0.06), transparent 60%);
}

#particle-canvas {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}

.hero-orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(80px);
  animation: orbFloat 8s ease-in-out infinite;
  pointer-events: none;
}
.hero-orb-1 {
  width: 500px; height: 500px;
  top: -150px; left: -100px;
  background: radial-gradient(circle, rgba(26, 110, 247, 0.18), transparent 70%);
  animation-delay: 0s;
}
.hero-orb-2 {
  width: 400px; height: 400px;
  top: 20%; right: -80px;
  background: radial-gradient(circle, rgba(0, 198, 255, 0.12), transparent 70%);
  animation-delay: -3s;
}
.hero-orb-3 {
  width: 300px; height: 300px;
  bottom: 10%; left: 20%;
  background: radial-gradient(circle, rgba(26, 110, 247, 0.08), transparent 70%);
  animation-delay: -5s;
}

@keyframes orbFloat {
  0%, 100% { transform: translate(0, 0); }
  33% { transform: translate(30px, -20px); }
  66% { transform: translate(-20px, 15px); }
}

.hero-content {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 0;
  max-width: 800px;
  width: 100%;
}

/* Hero Logo Mark */
.hero-logo-wrap {
  position: relative;
  width: 130px;
  height: 130px;
  margin-bottom: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
  animation: heroLogoIn 0.8s var(--transition-bounce) both;
}

@keyframes heroLogoIn {
  from { opacity: 0; transform: scale(0.6) rotate(-10deg); }
  to { opacity: 1; transform: scale(1) rotate(0deg); }
}

.hero-logo-ring {
  position: absolute;
  inset: -8px;
  border-radius: 50%;
  border: 1.5px solid rgba(26, 110, 247, 0.3);
  animation: ringPulse 3s ease-in-out infinite;
}

@keyframes ringPulse {
  0%, 100% { transform: scale(1); opacity: 0.4; }
  50% { transform: scale(1.08); opacity: 0.9; }
}

.hero-logo-icon {
  width: 100px;
  height: 100px;
  background: linear-gradient(145deg, #0d1830, #111f3e);
  border-radius: 28px;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 1.5px solid var(--border);
  box-shadow: 0 0 40px rgba(26, 110, 247, 0.3), 0 20px 60px rgba(0, 0, 0, 0.5);
  padding: 14px;
  animation: iconGlow 4s ease-in-out infinite;
}

@keyframes iconGlow {
  0%, 100% { box-shadow: 0 0 30px rgba(26, 110, 247, 0.3), 0 20px 60px rgba(0,0,0,0.5); }
  50% { box-shadow: 0 0 60px rgba(26, 110, 247, 0.5), 0 20px 60px rgba(0,0,0,0.5); }
}

/* Hero Text */
.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 14px 6px 10px;
  background: rgba(26, 110, 247, 0.12);
  border: 1px solid rgba(26, 110, 247, 0.25);
  border-radius: 100px;
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--blue-light);
  margin-bottom: 24px;
  animation: fadeInDown 0.6s 0.2s both;
}

.badge-dot {
  width: 6px; height: 6px;
  border-radius: 50%;
  background: var(--blue-light);
  box-shadow: 0 0 8px var(--blue-light);
  animation: dotPulse 2s ease-in-out infinite;
}

@keyframes dotPulse {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.6; transform: scale(0.8); }
}

.hero-title {
  font-family: var(--font-display);
  font-size: clamp(5rem, 14vw, 10rem);
  font-weight: 900;
  line-height: 0.9;
  letter-spacing: -0.04em;
  margin-bottom: 20px;
  animation: fadeInDown 0.6s 0.3s both;
}

.hero-title-cr {
  background: var(--gradient-blue);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.hero-title-dev {
  color: var(--text-primary);
}

.hero-tagline {
  display: flex;
  gap: 8px;
  justify-content: center;
  flex-wrap: wrap;
  font-size: clamp(1.1rem, 2.5vw, 1.5rem);
  font-weight: 700;
  font-family: var(--font-display);
  margin-bottom: 20px;
  animation: fadeInDown 0.6s 0.4s both;
}

.tag-word {
  color: var(--text-secondary);
  position: relative;
}
.tag-word:last-child { color: var(--blue-light); }

.hero-description {
  font-size: 1.05rem;
  color: var(--text-secondary);
  max-width: 560px;
  line-height: 1.7;
  margin-bottom: 36px;
  animation: fadeInDown 0.6s 0.5s both;
}

.hero-actions {
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
  justify-content: center;
  animation: fadeInDown 0.6s 0.6s both;
}

/* Hero Stats */
.hero-stats {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0;
  margin-top: 64px;
  background: var(--bg-glass);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 24px 40px;
  width: 100%;
  max-width: 700px;
  animation: fadeInUp 0.6s 0.8s both;
}

.stat-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  flex: 1;
  gap: 4px;
}

.stat-number {
  font-family: var(--font-display);
  font-size: 2rem;
  font-weight: 800;
  background: var(--gradient-blue);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  line-height: 1;
}

.stat-label {
  font-size: 0.78rem;
  color: var(--text-muted);
  font-weight: 500;
  text-align: center;
}

.stat-divider {
  width: 1px;
  height: 36px;
  background: var(--border);
  margin: 0 24px;
}

/* Scroll indicator */
.scroll-indicator {
  position: absolute;
  bottom: 32px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  border: 1.5px solid var(--border);
  animation: scrollBounce 2s ease-in-out infinite, fadeInDown 0.6s 1s both;
}

.scroll-arrow {
  display: block;
  width: 10px;
  height: 10px;
  border-right: 2px solid var(--blue-light);
  border-bottom: 2px solid var(--blue-light);
  transform: rotate(45deg) translateX(-2px) translateY(-2px);
}

@keyframes scrollBounce {
  0%, 100% { transform: translateX(-50%) translateY(0); opacity: 0.7; }
  50% { transform: translateX(-50%) translateY(6px); opacity: 1; }
}

/* ---------- BUTTONS ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 13px 26px;
  border-radius: var(--radius-md);
  font-weight: 700;
  font-size: 0.95rem;
  transition: all var(--transition);
  cursor: pointer;
  border: none;
  font-family: var(--font-main);
}

.btn-primary {
  background: var(--gradient-blue);
  color: white;
  box-shadow: 0 6px 24px rgba(26, 110, 247, 0.4);
}
.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 32px rgba(26, 110, 247, 0.6);
}
.btn-primary:active { transform: translateY(0); }

.btn-secondary {
  background: rgba(26, 110, 247, 0.1);
  color: var(--blue-light);
  border: 1.5px solid rgba(26, 110, 247, 0.25);
}
.btn-secondary:hover {
  background: rgba(26, 110, 247, 0.18);
  border-color: rgba(26, 110, 247, 0.5);
  transform: translateY(-2px);
}

.btn-outline {
  background: transparent;
  color: var(--text-primary);
  border: 1.5px solid var(--border-hover);
  font-size: 1rem;
}
.btn-outline:hover {
  background: rgba(26, 110, 247, 0.08);
  border-color: var(--blue-primary);
  color: var(--blue-light);
  transform: translateY(-2px);
}

.btn-cta {
  background: white;
  color: var(--bg-base);
  font-size: 1.05rem;
  padding: 15px 30px;
  box-shadow: 0 8px 32px rgba(255,255,255, 0.15);
}
.btn-cta:hover {
  background: var(--text-primary);
  transform: translateY(-2px) scale(1.02);
  box-shadow: 0 12px 40px rgba(255,255,255, 0.25);
}

/* ---------- SECTION HEADERS ---------- */
.section-eyebrow {
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--blue-light);
  margin-bottom: 10px;
}

.section-title {
  font-family: var(--font-display);
  font-size: clamp(2rem, 5vw, 3rem);
  font-weight: 800;
  color: var(--text-primary);
  line-height: 1.15;
  margin-bottom: 14px;
}

.section-desc {
  font-size: 1.05rem;
  color: var(--text-secondary);
  max-width: 500px;
  line-height: 1.6;
}

.section-header {
  text-align: center;
  margin-bottom: 48px;
}
.section-header .section-desc { margin: 0 auto; }

/* ---------- CATEGORIES / FILTER ---------- */
.categories-section {
  padding: 80px 0 0;
}

.filter-bar {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  justify-content: center;
  margin-top: 32px;
}

.filter-btn {
  padding: 9px 20px;
  border-radius: 100px;
  border: 1.5px solid var(--border);
  background: transparent;
  color: var(--text-secondary);
  font-size: 0.875rem;
  font-weight: 600;
  cursor: pointer;
  transition: all var(--transition);
  font-family: var(--font-main);
}

.filter-btn:hover {
  border-color: var(--blue-primary);
  color: var(--blue-light);
  background: rgba(26, 110, 247, 0.08);
}

.filter-btn.active {
  background: var(--gradient-blue);
  border-color: transparent;
  color: white;
  box-shadow: 0 4px 16px rgba(26, 110, 247, 0.35);
}

/* ---------- APPS GRID ---------- */
.apps-section {
  padding: 40px 0 80px;
}

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

/* App Card */
.app-card {
  border-radius: var(--radius-lg);
  background: var(--bg-card);
  border: 1px solid var(--border);
  transition: all var(--transition);
  overflow: hidden;
}

.app-card:hover {
  border-color: var(--border-hover);
  background: var(--bg-card-hover);
  transform: translateY(-4px);
  box-shadow: 0 20px 60px rgba(0,0,0,0.4), 0 0 0 1px rgba(26,110,247,0.2);
}

.app-card.hidden {
  display: none;
}

.app-card-inner {
  padding: 22px;
  display: flex;
  flex-direction: column;
  height: 100%;
  gap: 16px;
}

.app-icon-wrap {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
}

.app-icon {
  width: 64px;
  height: 64px;
  border-radius: 18px;
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 14px;
  box-shadow: 0 8px 24px rgba(0,0,0,0.3);
  transition: transform var(--transition-bounce);
}

.app-card:hover .app-icon {
  transform: scale(1.08) rotate(-3deg);
}

.app-icon-gradient {
  background: linear-gradient(135deg, var(--g1), var(--g2));
}

.app-icon svg { width: 100%; height: 100%; }

.app-badge {
  padding: 4px 10px;
  border-radius: 100px;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.05em;
}
.app-badge.personalization { background: rgba(168, 85, 247, 0.15); color: #a855f7; border: 1px solid rgba(168,85,247,0.25); }
.app-badge.utility { background: rgba(16, 185, 129, 0.15); color: #10b981; border: 1px solid rgba(16,185,129,0.25); }
.app-badge.fun { background: rgba(239, 68, 68, 0.15); color: #f87171; border: 1px solid rgba(239,68,68,0.25); }
.app-badge.tools { background: rgba(26, 110, 247, 0.15); color: var(--blue-light); border: 1px solid rgba(26,110,247,0.25); }

.app-info { flex: 1; }

.app-name {
  font-family: var(--font-display);
  font-size: 1rem;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 8px;
  line-height: 1.3;
}

.app-desc {
  font-size: 0.875rem;
  color: var(--text-secondary);
  line-height: 1.6;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.app-meta {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-top: 12px;
}

.app-rating {
  display: flex;
  align-items: center;
  gap: 4px;
  font-size: 0.82rem;
  font-weight: 600;
  color: #f5c518;
}

.app-installs {
  font-size: 0.8rem;
  color: var(--text-muted);
  background: rgba(255,255,255,0.04);
  padding: 2px 8px;
  border-radius: 100px;
}

.app-play-btn {
  display: flex;
  align-items: center;
  gap: 7px;
  padding: 10px 16px;
  background: rgba(26, 110, 247, 0.1);
  border: 1.5px solid rgba(26, 110, 247, 0.2);
  border-radius: var(--radius-sm);
  color: var(--blue-light);
  font-size: 0.85rem;
  font-weight: 600;
  transition: all var(--transition);
  align-self: flex-start;
}

.app-play-btn:hover {
  background: var(--gradient-blue);
  border-color: transparent;
  color: white;
  transform: translateY(-1px);
  box-shadow: 0 6px 20px rgba(26, 110, 247, 0.4);
}

.view-all-wrap {
  display: flex;
  justify-content: center;
  margin-top: 48px;
}

/* ---------- ABOUT SECTION ---------- */
.about-section {
  padding: 100px 0;
  background: linear-gradient(180deg, transparent, rgba(13, 24, 48, 0.5) 50%, transparent);
  position: relative;
  overflow: hidden;
}

.about-section::before {
  content: '';
  position: absolute;
  top: 0; left: 50%;
  transform: translateX(-50%);
  width: 100%;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--border-hover), transparent);
}

.about-grid {
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  gap: 80px;
  align-items: center;
}

/* About Visual */
.about-visual {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 400px;
}

.about-logo-wrap {
  position: relative;
  width: 200px;
  height: 200px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.about-logo-ring {
  position: absolute;
  border-radius: 50%;
  border: 1px solid rgba(26, 110, 247, 0.2);
  animation: ringRotate 12s linear infinite;
}
.about-ring-1 { inset: -20px; animation-duration: 12s; }
.about-ring-2 { inset: -40px; animation-duration: 18s; animation-direction: reverse; }
.about-ring-3 { inset: -60px; animation-duration: 24s; border-style: dashed; }

@keyframes ringRotate {
  from { transform: rotate(0deg); }
  to { transform: rotate(360deg); }
}

.about-logo-center {
  width: 160px;
  height: 160px;
  background: linear-gradient(145deg, #0d1830, #111f3e);
  border-radius: 36px;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 1.5px solid var(--border);
  box-shadow: 0 0 60px rgba(26, 110, 247, 0.2), 0 40px 80px rgba(0,0,0,0.5);
  padding: 20px;
}
.about-logo-center svg { width: 100%; height: 100%; }

.tech-tag {
  position: absolute;
  padding: 8px 14px;
  background: var(--bg-glass);
  backdrop-filter: blur(12px);
  border: 1px solid var(--border);
  border-radius: 100px;
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--blue-light);
  white-space: nowrap;
  animation: tagFloat 4s ease-in-out infinite;
}

.tech-tag-1 { top: 20px; left: -20px; animation-delay: 0s; }
.tech-tag-2 { top: 30px; right: -10px; animation-delay: -1.5s; }
.tech-tag-3 { bottom: 40px; left: -10px; animation-delay: -2.5s; }
.tech-tag-4 { bottom: 50px; right: -20px; animation-delay: -3.5s; }

@keyframes tagFloat {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-8px); }
}

/* About Content */
.about-text {
  color: var(--text-secondary);
  font-size: 1.02rem;
  line-height: 1.75;
  margin-bottom: 16px;
}

.about-pillars {
  display: flex;
  flex-direction: column;
  gap: 20px;
  margin-top: 32px;
}

.pillar {
  display: flex;
  align-items: flex-start;
  gap: 16px;
  padding: 18px 20px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  transition: all var(--transition);
}

.pillar:hover {
  border-color: var(--border-hover);
  background: var(--bg-card-hover);
  transform: translateX(4px);
}

.pillar-icon {
  font-size: 1.5rem;
  flex-shrink: 0;
  width: 44px;
  height: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(26, 110, 247, 0.1);
  border-radius: var(--radius-sm);
}

.pillar strong {
  display: block;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 4px;
}

.pillar p {
  font-size: 0.875rem;
  color: var(--text-muted);
  line-height: 1.5;
}

/* ---------- CTA BANNER ---------- */
.cta-banner {
  position: relative;
  overflow: hidden;
  padding: 80px 0;
  background: linear-gradient(135deg, #0d1f4a 0%, #071535 50%, #0d1f4a 100%);
  border-top: 1px solid rgba(26, 110, 247, 0.2);
  border-bottom: 1px solid rgba(26, 110, 247, 0.2);
}

.cta-bg-orb {
  position: absolute;
  width: 500px; height: 300px;
  top: 50%; left: 50%;
  transform: translate(-50%, -50%);
  background: radial-gradient(ellipse, rgba(26, 110, 247, 0.25), transparent 70%);
  filter: blur(40px);
  pointer-events: none;
}

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

.cta-title {
  font-family: var(--font-display);
  font-size: clamp(1.6rem, 3vw, 2.4rem);
  font-weight: 800;
  color: var(--text-primary);
  margin-bottom: 8px;
}

.cta-desc {
  font-size: 1.05rem;
  color: var(--text-secondary);
}

/* ---------- CONTACT ---------- */
.contact-section {
  padding: 100px 0;
}

.contact-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 20px;
  max-width: 860px;
  margin: 0 auto;
}

.contact-card {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 24px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  transition: all var(--transition);
  cursor: pointer;
}

.contact-card:hover {
  border-color: var(--border-hover);
  background: var(--bg-card-hover);
  transform: translateY(-4px);
  box-shadow: 0 12px 40px rgba(0,0,0,0.3);
}

.contact-icon {
  width: 52px;
  height: 52px;
  border-radius: var(--radius-md);
  background: rgba(26, 110, 247, 0.12);
  border: 1px solid rgba(26, 110, 247, 0.2);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--blue-light);
  flex-shrink: 0;
  transition: all var(--transition);
}

.contact-card:hover .contact-icon {
  background: var(--gradient-blue);
  border-color: transparent;
  color: white;
  box-shadow: 0 6px 20px rgba(26, 110, 247, 0.4);
}

.contact-card strong {
  display: block;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 3px;
  font-size: 0.95rem;
}

.contact-card span {
  font-size: 0.85rem;
  color: var(--text-muted);
}

/* ---------- FOOTER ---------- */
.footer {
  padding: 64px 0 32px;
  border-top: 1px solid var(--border);
  background: linear-gradient(180deg, transparent, rgba(6, 13, 31, 0.8));
}

.footer-top {
  display: grid;
  grid-template-columns: 1.8fr 1fr 1fr;
  gap: 48px;
  padding-bottom: 48px;
  border-bottom: 1px solid var(--border);
  margin-bottom: 32px;
}

.footer-logo-svg { height: 32px; width: auto; margin-bottom: 12px; }

.footer-tagline {
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--blue-light);
  margin-bottom: 8px;
}

.footer-copy {
  font-size: 0.82rem;
  color: var(--text-muted);
  line-height: 1.5;
}

.footer-links-col h4 {
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--text-muted);
  margin-bottom: 16px;
}

.footer-links-col ul {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.footer-links-col a {
  font-size: 0.9rem;
  color: var(--text-secondary);
  transition: color var(--transition);
}
.footer-links-col a:hover { color: var(--blue-light); }

.footer-bottom {
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 8px;
}

.footer-bottom p {
  font-size: 0.82rem;
  color: var(--text-muted);
}

.footer-bottom a {
  color: var(--blue-light);
}
.footer-bottom a:hover { text-decoration: underline; }

/* ---------- ANIMATIONS ---------- */
@keyframes fadeInDown {
  from { opacity: 0; transform: translateY(-20px); }
  to { opacity: 1; transform: translateY(0); }
}

@keyframes fadeInUp {
  from { opacity: 0; transform: translateY(30px); }
  to { opacity: 1; transform: translateY(0); }
}

.reveal {
  opacity: 0;
  transform: translateY(40px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}

.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

/* ---------- RESPONSIVE ---------- */
@media (max-width: 1024px) {
  .about-grid { grid-template-columns: 1fr; }
  .about-visual { min-height: 280px; margin-bottom: 20px; }
  .footer-top { grid-template-columns: 1fr 1fr; }
  .footer-brand { grid-column: 1 / -1; }
}

@media (max-width: 768px) {
  .hamburger { display: flex; }

  .nav-links {
    position: fixed;
    top: 0; right: 0;
    width: 280px; height: 100vh;
    background: rgba(6, 13, 31, 0.97);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    flex-direction: column;
    align-items: flex-start;
    justify-content: center;
    gap: 4px;
    padding: 40px 24px;
    transform: translateX(100%);
    transition: transform var(--transition);
    z-index: 999;
    border-left: 1px solid var(--border);
  }

  .nav-links.open { transform: translateX(0); }

  .nav-link { padding: 12px 16px; font-size: 1rem; width: 100%; }

  .nav-cta { margin-top: 16px; width: 100%; justify-content: center; }

  .hero { padding: 90px 16px 0; }

  .hero-stats {
    flex-wrap: wrap;
    gap: 20px;
    padding: 20px 16px;
  }

  .stat-divider { display: none; }

  .stat-item { flex: 0 0 calc(50% - 10px); }

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

  .cta-inner { flex-direction: column; text-align: center; }

  .footer-top { grid-template-columns: 1fr; gap: 32px; }

  .footer-bottom { flex-direction: column; text-align: center; }

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

  .about-visual { display: none; }
}

@media (max-width: 480px) {
  .hero-title { font-size: 4.5rem; }
  .hero-actions { flex-direction: column; }
  .btn { width: 100%; justify-content: center; }
  .filter-bar { gap: 8px; }
  .filter-btn { padding: 7px 14px; font-size: 0.82rem; }
}

/* =====================================================
   DARK / LIGHT MODE TOGGLE
   ===================================================== */
.theme-toggle {
  display: flex; align-items: center; justify-content: center;
  width: 38px; height: 38px; border-radius: 10px;
  background: rgba(255,255,255,0.06); border: 1px solid var(--border);
  color: var(--text-secondary); cursor: pointer;
  transition: all 0.25s ease; flex-shrink: 0;
}
.theme-toggle:hover { background: rgba(26,110,247,0.12); border-color: var(--blue-primary); color: var(--text-primary); }
.theme-toggle .icon-sun { display: none; }
.theme-toggle .icon-moon { display: block; }
[data-theme="light"] .theme-toggle .icon-sun { display: block; }
[data-theme="light"] .theme-toggle .icon-moon { display: none; }

/* Light mode custom properties */
[data-theme="light"] {
  --bg-base: #eef2ff;
  --bg-card: #ffffff;
  --bg-card-hover: #f5f8ff;
  --bg-glass: rgba(255,255,255,0.85);
  --border: rgba(26,110,247,0.15);
  --border-hover: rgba(26,110,247,0.4);
  --text-primary: #0d1830;
  --text-secondary: #334e7a;
  --text-muted: #7a90b8;
}
[data-theme="light"] body { background: #eef2ff; }
[data-theme="light"] .navbar { background: rgba(238,242,255,0.92); border-bottom-color: rgba(26,110,247,0.12); }
[data-theme="light"] .navbar.scrolled { background: rgba(238,242,255,0.98); }
[data-theme="light"] .hero { background: linear-gradient(180deg, #dce8ff 0%, #eef2ff 100%); }
[data-theme="light"] .hero-orb-1 { background: radial-gradient(circle, rgba(26,110,247,0.25), transparent 70%); }
[data-theme="light"] .hero-orb-2 { background: radial-gradient(circle, rgba(0,198,255,0.2), transparent 70%); }
[data-theme="light"] .hero-title-dev { color: #0d1830; }
[data-theme="light"] .hero-description { color: #334e7a; }
[data-theme="light"] .app-card { background: #ffffff; }
[data-theme="light"] .app-card:hover { box-shadow: 0 20px 50px rgba(26,110,247,0.15); }
[data-theme="light"] .categories-section { background: #f0f4ff; }
[data-theme="light"] .filter-btn { background: #ffffff; color: #334e7a; border-color: rgba(26,110,247,0.2); }
[data-theme="light"] .filter-btn.active { background: var(--blue-primary); color: white; }
[data-theme="light"] .about-section { background: #eef2ff; }
[data-theme="light"] .about-pill { background: rgba(26,110,247,0.1); color: #1a6ef7; }
[data-theme="light"] .about-feature { background: #ffffff; border-color: rgba(26,110,247,0.15); }
[data-theme="light"] .contact-card { background: #ffffff; }
[data-theme="light"] .footer { background: #0d1830; }
[data-theme="light"] .stat-label { color: #334e7a; }
[data-theme="light"] .nav-link { color: #334e7a; }
[data-theme="light"] .nav-link:hover { color: var(--blue-primary); }
[data-theme="light"] .section-desc { color: #334e7a; }
[data-theme="light"] .app-desc { color: #334e7a; }
[data-theme="light"] .app-installs { color: #7a90b8; }

/* Smooth theme transition */
body, .navbar, .app-card, .categories-section, .about-section, .hero {
  transition: background-color 0.35s ease, border-color 0.35s ease, color 0.2s ease;
}

/* =====================================================
   GDPR COOKIE BANNER
   ===================================================== */
.cookie-banner {
  position: fixed; bottom: 0; left: 0; right: 0; z-index: 9999;
  background: rgba(6,13,31,0.97);
  backdrop-filter: blur(24px); -webkit-backdrop-filter: blur(24px);
  border-top: 1px solid rgba(26,110,247,0.25);
  transform: translateY(110%);
  transition: transform 0.45s cubic-bezier(0.34,1.26,0.64,1);
  box-shadow: 0 -10px 40px rgba(0,0,0,0.4);
}
.cookie-banner.visible { transform: translateY(0); }
[data-theme="light"] .cookie-banner { background: rgba(13,24,48,0.97); }
.cookie-content {
  max-width: 1100px; margin: 0 auto;
  padding: 18px 28px; display: flex;
  align-items: center; gap: 20px; flex-wrap: wrap;
}
.cookie-emoji { font-size: 1.8rem; flex-shrink: 0; }
.cookie-text { flex: 1; min-width: 240px; }
.cookie-text strong { display: block; color: #f0f4ff; font-size: 0.95rem; margin-bottom: 4px; }
.cookie-text p { color: #8ba3cc; font-size: 0.85rem; margin: 0; line-height: 1.5; }
.cookie-actions { display: flex; gap: 10px; flex-shrink: 0; }
.cookie-btn-decline {
  padding: 9px 20px; border-radius: 10px; font-size: 0.875rem; font-weight: 600;
  background: transparent; color: #8ba3cc; border: 1px solid rgba(255,255,255,0.1);
  cursor: pointer; transition: all 0.2s ease;
}
.cookie-btn-decline:hover { color: #f0f4ff; border-color: rgba(255,255,255,0.25); }
.cookie-btn-accept {
  padding: 9px 24px; border-radius: 10px; font-size: 0.875rem; font-weight: 700;
  background: linear-gradient(135deg, #1a6ef7, #00c6ff); color: white; border: none;
  cursor: pointer; transition: all 0.25s ease; box-shadow: 0 4px 16px rgba(26,110,247,0.35);
}
.cookie-btn-accept:hover { transform: translateY(-2px); box-shadow: 0 8px 24px rgba(26,110,247,0.5); }
@media (max-width: 600px) {
  .cookie-content { padding: 16px; gap: 14px; }
  .cookie-actions { width: 100%; }
  .cookie-btn-decline, .cookie-btn-accept { flex: 1; text-align: center; }
}
