/* ============================================
   RedBlack Crew - Design System
   ============================================ */

@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700;800;900&family=Outfit:wght@400;500;600;700;800&display=swap');

/* --- CSS Custom Properties --- */
:root {
  /* Colors */
  --primary-red: #E41E31;
  --primary-red-dark: #C41828;
  --primary-red-light: #FF3347;
  --primary-black: #1A1A1A;
  --dark-900: #0D0D0D;
  --dark-800: #1A1A1A;
  --dark-700: #2D2D2D;
  --dark-600: #404040;
  --gray-100: #F7F7F8;
  --gray-200: #EFEFEF;
  --gray-300: #E0E0E0;
  --gray-400: #BDBDBD;
  --gray-500: #9E9E9E;
  --gray-600: #757575;
  --white: #FFFFFF;
  --bg-light: #FAFAFA;
  --bg-hero: #FFF5F5;
  --shadow-sm: 0 2px 8px rgba(0,0,0,0.06);
  --shadow-md: 0 4px 16px rgba(0,0,0,0.08);
  --shadow-lg: 0 8px 32px rgba(0,0,0,0.12);
  --shadow-xl: 0 16px 48px rgba(0,0,0,0.16);
  --shadow-red: 0 4px 20px rgba(228, 30, 49, 0.25);

  /* Typography */
  --font-primary: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  --font-heading: 'Outfit', 'Inter', sans-serif;

  /* Spacing */
  --container-max: 1240px;
  --section-padding: 80px 0;
  --nav-height: 72px;

  /* Transitions */
  --transition-fast: 0.2s cubic-bezier(0.4, 0, 0.2, 1);
  --transition-base: 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  --transition-slow: 0.5s cubic-bezier(0.4, 0, 0.2, 1);

  /* Border Radius */
  --radius-sm: 8px;
  --radius-md: 12px;
  --radius-lg: 16px;
  --radius-xl: 24px;
  --radius-full: 9999px;
}

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

html {
  scroll-behavior: smooth;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body {
  font-family: var(--font-primary);
  color: var(--dark-800);
  background: var(--white);
  line-height: 1.6;
  overflow-x: hidden;
}

a {
  text-decoration: none;
  color: inherit;
  transition: color var(--transition-fast);
}

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

ul, ol {
  list-style: none;
}

button {
  cursor: pointer;
  border: none;
  outline: none;
  font-family: inherit;
  background: transparent;
}

.container {
  max-width: var(--container-max);
  margin: 0 auto;
  padding: 0 24px;
}

/* --- Navigation --- */
.navbar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  height: var(--nav-height);
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid rgba(0, 0, 0, 0.06);
  z-index: 1000;
  transition: all var(--transition-base);
}

.navbar.scrolled {
  box-shadow: var(--shadow-md);
}

.navbar .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 100%;
}

.nav-logo {
  display: flex;
  align-items: center;
  gap: 10px;
}

.nav-logo img {
  height: 38px;
  width: auto;
}

.nav-logo-text {
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 1.1rem;
  color: var(--dark-800);
}

.nav-logo-text span {
  color: var(--primary-red);
}

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

.nav-links a {
  font-weight: 500;
  font-size: 0.95rem;
  color: var(--dark-600);
  position: relative;
  padding: 4px 0;
}

.nav-links a::after {
  content: '';
  position: absolute;
  bottom: -2px;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--primary-red);
  border-radius: 1px;
  transition: width var(--transition-base);
}

.nav-links a:hover,
.nav-links a.active {
  color: var(--primary-red);
}

.nav-links a:hover::after,
.nav-links a.active::after {
  width: 100%;
}

.nav-cta {
  background: var(--primary-red) !important;
  color: var(--white) !important;
  padding: 10px 24px !important;
  border-radius: var(--radius-full) !important;
  font-weight: 600 !important;
  font-size: 0.9rem !important;
  transition: all var(--transition-base) !important;
  box-shadow: var(--shadow-red);
}

.nav-cta::after {
  display: none !important;
}

.nav-cta:hover {
  background: var(--primary-red-dark) !important;
  transform: translateY(-1px);
  box-shadow: 0 6px 24px rgba(228, 30, 49, 0.35) !important;
}

.nav-search {
  width: 36px;
  height: 36px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  transition: background var(--transition-fast);
}

.nav-search:hover {
  background: var(--gray-100);
}

.nav-search svg {
  width: 20px;
  height: 20px;
  color: var(--dark-600);
}

/* Mobile Nav */
.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  width: 28px;
  cursor: pointer;
  z-index: 1001;
}

.nav-toggle span {
  width: 100%;
  height: 2.5px;
  background: var(--dark-800);
  border-radius: 2px;
  transition: all var(--transition-base);
}

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

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

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

/* --- Buttons --- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 14px 28px;
  border-radius: var(--radius-full);
  font-weight: 600;
  font-size: 0.95rem;
  transition: all var(--transition-base);
  cursor: pointer;
  border: none;
  outline: none;
}

.btn-primary {
  background: var(--primary-red);
  color: var(--white);
  box-shadow: var(--shadow-red);
}

.btn-primary:hover {
  background: var(--primary-red-dark);
  transform: translateY(-2px);
  box-shadow: 0 8px 28px rgba(228, 30, 49, 0.35);
}

.btn-outline {
  background: transparent;
  color: var(--primary-red);
  border: 2px solid var(--primary-red);
}

.btn-outline:hover {
  background: var(--primary-red);
  color: var(--white);
  transform: translateY(-2px);
}

.btn-dark {
  background: var(--dark-800);
  color: var(--white);
}

.btn-dark:hover {
  background: var(--dark-900);
  transform: translateY(-2px);
}

.btn-white {
  background: var(--white);
  color: var(--primary-red);
  box-shadow: var(--shadow-md);
}

.btn-white:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-lg);
}

.btn svg,
.btn i {
  width: 18px;
  height: 18px;
}

/* --- Hero Section --- */
.hero {
  padding-top: calc(var(--nav-height) + 40px);
  padding-bottom: 60px;
  background: linear-gradient(135deg, var(--bg-hero) 0%, #FFF 50%, #FFF5F5 100%);
  position: relative;
  overflow: hidden;
  min-height: 90vh;
  display: flex;
  align-items: center;
}

.hero::before {
  content: '';
  position: absolute;
  top: -50%;
  right: -20%;
  width: 600px;
  height: 600px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(228, 30, 49, 0.06) 0%, transparent 70%);
  pointer-events: none;
}

.hero .container {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: center;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 7px 18px;
  background: rgba(228, 30, 49, 0.08);
  border: 1px solid rgba(228, 30, 49, 0.2);
  border-radius: var(--radius-full);
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--primary-red);
  margin-bottom: 20px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  box-shadow: 0 2px 10px rgba(228, 30, 49, 0.1);
}

.pulse-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--primary-red);
  display: inline-block;
  box-shadow: 0 0 0 0 rgba(228, 30, 49, 0.7);
  animation: pulseDot 2s infinite;
}

@keyframes pulseDot {
  0% { transform: scale(0.95); box-shadow: 0 0 0 0 rgba(228, 30, 49, 0.7); }
  70% { transform: scale(1); box-shadow: 0 0 0 8px rgba(228, 30, 49, 0); }
  100% { transform: scale(0.95); box-shadow: 0 0 0 0 rgba(228, 30, 49, 0); }
}

.hero h1 {
  font-family: var(--font-heading);
  font-size: 3.5rem;
  font-weight: 800;
  line-height: 1.1;
  color: var(--dark-900);
  margin-bottom: 20px;
}

.hero h1 .highlight {
  color: var(--primary-red);
  position: relative;
}

.hero h1 .highlight::after {
  content: '';
  position: absolute;
  bottom: 2px;
  left: 0;
  right: 0;
  height: 4px;
  background: rgba(228, 30, 49, 0.2);
  border-radius: 2px;
}

.hero-subtitle {
  font-size: 1.1rem;
  color: var(--gray-600);
  line-height: 1.7;
  margin-bottom: 32px;
  max-width: 500px;
}

.hero-buttons {
  display: flex;
  gap: 16px;
  margin-bottom: 48px;
  flex-wrap: wrap;
}

.hero-stats {
  display: flex;
  gap: 40px;
}

.hero-stat {
  display: flex;
  align-items: center;
  gap: 10px;
}

.hero-stat-icon {
  width: 40px;
  height: 40px;
  border-radius: 10px;
  background: rgba(228, 30, 49, 0.08);
  display: flex;
  align-items: center;
  justify-content: center;
}

.hero-stat-icon svg {
  width: 20px;
  height: 20px;
  color: var(--primary-red);
}

.hero-stat-text h4 {
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--dark-800);
}

.hero-stat-text p {
  font-size: 0.75rem;
  color: var(--gray-500);
}

.hero-visual {
  position: relative;
  display: flex;
  justify-content: center;
  align-items: center;
}

.hero-phone-frame {
  width: 290px;
  height: 590px;
  background: #18181B;
  border-radius: 44px;
  padding: 12px;
  box-shadow: 0 28px 70px rgba(0, 0, 0, 0.25), 0 0 0 2px rgba(255, 255, 255, 0.12), inset 0 0 0 1px #333;
  position: relative;
  animation: floatPhone 6s ease-in-out infinite;
  margin: 0 auto;
  z-index: 2;
  transition: transform 0.4s ease, box-shadow 0.4s ease;
}

.hero-phone-frame:hover {
  transform: translateY(-8px) scale(1.02);
  box-shadow: 0 36px 90px rgba(228, 30, 49, 0.25), 0 0 0 2px rgba(228, 30, 49, 0.4);
}

.phone-island {
  position: absolute;
  top: 20px;
  left: 50%;
  transform: translateX(-50%);
  width: 90px;
  height: 22px;
  background: #000;
  border-radius: 12px;
  z-index: 10;
  display: flex;
  align-items: center;
  justify-content: flex-end;
  padding: 0 8px;
}

.phone-camera {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #1e1e38;
  border: 1px solid #444;
}

.phone-screen {
  width: 100%;
  height: 100%;
  border-radius: 34px;
  overflow: hidden;
  position: relative;
  background: #09090b;
}

.phone-slide {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0;
  transform: scale(1.04);
  transition: opacity 0.7s cubic-bezier(0.4, 0, 0.2, 1), transform 0.7s cubic-bezier(0.4, 0, 0.2, 1);
  pointer-events: none;
  display: block;
}

.phone-slide.active {
  opacity: 1;
  transform: scale(1);
  pointer-events: auto;
}

.phone-slide-dots {
  position: absolute;
  bottom: 16px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 6px;
  z-index: 12;
  background: rgba(0, 0, 0, 0.65);
  padding: 5px 10px;
  border-radius: 20px;
  backdrop-filter: blur(8px);
  border: 1px solid rgba(255, 255, 255, 0.15);
}

.slide-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.45);
  cursor: pointer;
  transition: all 0.3s ease;
}

.slide-dot.active {
  width: 18px;
  border-radius: 4px;
  background: var(--primary-red);
  box-shadow: 0 0 8px rgba(228, 30, 49, 0.8);
}

.phone-app-pill {
  position: absolute;
  top: 50px;
  left: 50%;
  transform: translateX(-50%);
  background: rgba(0, 0, 0, 0.7);
  color: #fff;
  font-size: 0.75rem;
  font-weight: 700;
  padding: 5px 14px;
  border-radius: 20px;
  z-index: 11;
  backdrop-filter: blur(8px);
  border: 1px solid rgba(255, 255, 255, 0.2);
  pointer-events: none;
  letter-spacing: 0.3px;
  transition: opacity 0.3s;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
  white-space: nowrap;
}

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

.hero-logo-float {
  position: absolute;
  right: 6%;
  top: 10%;
  width: 110px;
  height: 110px;
  animation: floatLogo 7s ease-in-out infinite;
  z-index: 3;
}

.hero-logo-float img {
  width: 100%;
  filter: drop-shadow(0 12px 32px rgba(228, 30, 49, 0.3));
}

@keyframes floatLogo {
  0%, 100% { transform: translateY(0) rotate(0deg); }
  25% { transform: translateY(-10px) rotate(4deg); }
  75% { transform: translateY(6px) rotate(-3deg); }
}

.hero-download-count {
  position: absolute;
  bottom: 12%;
  right: 2%;
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(10px);
  padding: 12px 20px;
  border-radius: var(--radius-md);
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.12);
  border: 1px solid rgba(228, 30, 49, 0.15);
  display: flex;
  align-items: center;
  gap: 12px;
  z-index: 4;
  animation: fadeSlideUp 0.8s ease 0.4s both, floatBadge 5s ease-in-out 1.2s infinite;
}

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

.hero-download-count .count-icon {
  width: 38px;
  height: 38px;
  background: rgba(228, 30, 49, 0.1);
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.hero-download-count .count-text strong {
  display: block;
  font-size: 1.1rem;
  color: var(--dark-800);
  font-weight: 700;
}

.hero-download-count .count-text span {
  font-size: 0.75rem;
  color: var(--gray-500);
}

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

/* --- Section Styles --- */
.section {
  padding: var(--section-padding);
}

.section-light {
  background: var(--bg-light);
}

.section-header {
  margin-bottom: 48px;
}

.section-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 5px 14px;
  background: rgba(228, 30, 49, 0.08);
  border-radius: var(--radius-full);
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--primary-red);
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin-bottom: 12px;
}

.section-title {
  font-family: var(--font-heading);
  font-size: 2.2rem;
  font-weight: 800;
  color: var(--dark-900);
  margin-bottom: 8px;
}

.section-subtitle {
  font-size: 1rem;
  color: var(--gray-500);
  max-width: 560px;
}

.section-header-row {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
}

.view-all-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: var(--primary-red);
  font-weight: 600;
  font-size: 0.95rem;
  transition: gap var(--transition-base);
}

.view-all-link:hover {
  gap: 10px;
}

.view-all-link svg {
  width: 18px;
  height: 18px;
  transition: transform var(--transition-base);
}

.view-all-link:hover svg {
  transform: translateX(3px);
}

/* --- App Cards --- */
.apps-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 20px;
}

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

.app-card {
  background: var(--white);
  border-radius: 20px;
  padding: 20px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  border: 1.5px solid rgba(0,0,0,0.06);
  box-shadow: 0 2px 12px rgba(0,0,0,0.04);
  transition: transform 0.24s cubic-bezier(.4,0,.2,1), box-shadow 0.24s ease, border-color 0.24s ease;
  position: relative;
  overflow: hidden;
}

.app-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 16px 40px rgba(0,0,0,0.1);
  border-color: rgba(228, 30, 49, 0.2);
}

.app-card-main {
  display: flex;
  gap: 14px;
  align-items: flex-start;
  margin-bottom: 14px;
}

.app-card-icon-link {
  flex-shrink: 0;
  display: block;
}

.app-card-icon {
  width: 80px;
  height: 80px;
  border-radius: 18px;
  overflow: hidden;
  box-shadow: 0 4px 16px rgba(0,0,0,0.12);
  background: #f0f0f0;
  border: 1px solid rgba(0,0,0,0.06);
  transition: transform 0.24s ease, box-shadow 0.24s ease;
  flex-shrink: 0;
}

.app-card:hover .app-card-icon {
  transform: scale(1.07) rotate(-1deg);
  box-shadow: 0 8px 24px rgba(0,0,0,0.16);
}

.app-card-icon img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.app-card-body {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.app-card-badge {
  display: inline-block;
  font-size: 0.68rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  color: var(--primary-red);
  background: rgba(228, 30, 49, 0.08);
  padding: 2px 7px;
  border-radius: 5px;
  width: fit-content;
}

.app-card-name {
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 0.98rem;
  line-height: 1.3;
  color: var(--dark-900);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  margin: 0;
}

.app-card-name a {
  color: inherit;
  text-decoration: none;
  transition: color 0.18s;
}

.app-card-name a:hover {
  color: var(--primary-red);
}

.app-card-desc {
  font-size: 0.78rem;
  color: var(--gray-500);
  line-height: 1.45;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  margin: 0;
}

.app-card-meta {
  display: flex;
  align-items: center;
  gap: 6px;
  flex-wrap: wrap;
  margin-top: 2px;
}

.app-meta-pill {
  display: inline-flex;
  align-items: center;
  gap: 3px;
  font-size: 0.72rem;
  font-weight: 600;
  padding: 3px 7px;
  border-radius: 6px;
  background: #F4F5F7;
  color: #4A5568;
}

.app-meta-pill.rating {
  color: #92620A;
  background: #FEF9C3;
}

.app-card-footer {
  display: flex;
  gap: 8px;
  padding-top: 14px;
  border-top: 1px solid rgba(0,0,0,0.06);
  margin-top: auto;
}

.app-card-btn {
  flex: 1;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 5px;
  padding: 9px 10px;
  border-radius: 11px;
  font-size: 0.8rem;
  font-weight: 600;
  text-align: center;
  text-decoration: none;
  transition: all 0.2s ease;
  min-height: 38px;
  cursor: pointer;
  border: none;
  white-space: nowrap;
}

.app-card-btn.btn-details {
  background: #F4F4F6;
  color: var(--dark-800);
  border: 1.5px solid rgba(0,0,0,0.07);
  flex: 0.9;
}

.app-card-btn.btn-details:hover {
  background: #EBEBEF;
  color: var(--primary-red);
  border-color: rgba(228,30,49,0.2);
}

.app-card-btn.btn-gplay {
  background: #111;
  color: #fff;
  border: 1.5px solid #111;
  flex: 1.1;
}

.app-card-btn.btn-gplay:hover {
  background: #E41E31;
  border-color: #E41E31;
  box-shadow: 0 4px 14px rgba(228,30,49,0.35);
}

.gplay-mini-svg {
  flex-shrink: 0;
}

/* --- App Categories --- */
.categories-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}

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

.category-card:hover {
  border-color: var(--primary-red);
  box-shadow: var(--shadow-md);
  transform: translateY(-2px);
}

.category-icon {
  width: 52px;
  height: 52px;
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.4rem;
  flex-shrink: 0;
}

.category-icon.recipe { background: rgba(228, 30, 49, 0.08); }
.category-icon.lifestyle { background: rgba(46, 125, 50, 0.08); }
.category-icon.productivity { background: rgba(33, 150, 243, 0.08); }

.category-info h4 {
  font-weight: 600;
  font-size: 0.95rem;
  color: var(--dark-800);
  margin-bottom: 2px;
}

.category-info p {
  font-size: 0.8rem;
  color: var(--gray-500);
}

.category-arrow {
  margin-left: auto;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: var(--gray-100);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all var(--transition-base);
  flex-shrink: 0;
}

.category-card:hover .category-arrow {
  background: var(--primary-red);
  color: var(--white);
}

.category-arrow svg {
  width: 16px;
  height: 16px;
}

/* --- Stats Bar --- */
.stats-bar {
  background: var(--white);
  border-top: 1px solid var(--gray-200);
  border-bottom: 1px solid var(--gray-200);
  padding: 32px 0;
}

.stats-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
}

.stat-item {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 0 20px;
  border-right: 1px solid var(--gray-200);
}

.stat-item:last-child {
  border-right: none;
}

.stat-icon {
  width: 44px;
  height: 44px;
  border-radius: var(--radius-md);
  background: rgba(228, 30, 49, 0.08);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.stat-icon svg {
  width: 22px;
  height: 22px;
  color: var(--primary-red);
}

.stat-text h3 {
  font-family: var(--font-heading);
  font-size: 1.3rem;
  font-weight: 800;
  color: var(--dark-900);
}

.stat-text p {
  font-size: 0.78rem;
  color: var(--gray-500);
}

/* --- Footer --- */
.footer {
  background: var(--dark-900);
  color: var(--white);
  padding: 48px 0 24px;
}

.footer-content {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-bottom: 24px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  margin-bottom: 24px;
}

.footer-logo {
  display: flex;
  align-items: center;
  gap: 10px;
}

.footer-logo img {
  height: 32px;
}

.footer-logo-text {
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 1rem;
}

.footer-logo-text span {
  color: var(--primary-red);
}

.footer-tagline {
  font-size: 0.8rem;
  color: var(--gray-500);
  margin-top: 2px;
}

.footer-nav {
  display: flex;
  gap: 32px;
}

.footer-nav a {
  font-size: 0.9rem;
  color: var(--gray-400);
  transition: color var(--transition-fast);
}

.footer-nav a:hover {
  color: var(--white);
}

.footer-social {
  display: flex;
  gap: 12px;
}

.footer-social a {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.08);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all var(--transition-base);
}

.footer-social a:hover {
  background: var(--primary-red);
  transform: translateY(-2px);
}

.footer-social svg {
  width: 18px;
  height: 18px;
  color: var(--gray-400);
}

.footer-social a:hover svg {
  color: var(--white);
}

.footer-bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.footer-copyright {
  font-size: 0.8rem;
  color: var(--gray-600);
}

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

.footer-legal a {
  font-size: 0.8rem;
  color: var(--gray-600);
}

.footer-legal a:hover {
  color: var(--gray-400);
}

/* --- Streamlined Hub Hero --- */
.hub-hero {
  padding-top: calc(var(--nav-height) + 40px);
  padding-bottom: 36px;
  background: linear-gradient(180deg, #FFF5F5 0%, #FAFAFA 100%);
  border-bottom: 1px solid var(--gray-200);
}

.hub-hero-inner {
  max-width: 900px;
  margin: 0 auto;
  text-align: center;
}

.hub-hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 16px;
  background: rgba(228, 30, 49, 0.08);
  border: 1px solid rgba(228, 30, 49, 0.2);
  border-radius: var(--radius-full);
  font-size: 0.82rem;
  font-weight: 700;
  color: var(--primary-red);
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin-bottom: 16px;
}

.hub-hero h1 {
  font-family: var(--font-heading);
  font-size: 2.8rem;
  font-weight: 800;
  color: var(--dark-900);
  line-height: 1.15;
  margin-bottom: 14px;
}

.hub-hero h1 .highlight {
  color: var(--primary-red);
}

.hub-hero-subtitle {
  font-size: 1.05rem;
  color: var(--gray-600);
  line-height: 1.6;
  max-width: 680px;
  margin: 0 auto 24px;
}

.hub-hero-actions {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 14px;
  margin-bottom: 28px;
  flex-wrap: wrap;
}

.hub-stats-row {
  display: flex;
  justify-content: center;
  gap: 40px;
  flex-wrap: wrap;
  padding-top: 24px;
  border-top: 1px solid rgba(0, 0, 0, 0.06);
}

.hub-stat-item {
  display: flex;
  flex-direction: column;
  align-items: center;
}

.hub-stat-item strong {
  font-size: 1.45rem;
  font-weight: 800;
  color: var(--dark-900);
  line-height: 1.2;
}

.hub-stat-item span {
  font-size: 0.8rem;
  color: var(--gray-500);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin-top: 3px;
}

@media (max-width: 768px) {
  .hub-hero h1 {
    font-size: 2.1rem;
  }
  .hub-stats-row {
    gap: 20px;
  }
  .hub-stat-item strong {
    font-size: 1.2rem;
  }
}

/* --- All Apps Page --- */
.page-header {
  padding-top: calc(var(--nav-height) + 48px);
  padding-bottom: 32px;
  background: var(--bg-light);
}

.page-title {
  font-family: var(--font-heading);
  font-size: 2.4rem;
  font-weight: 800;
  color: var(--dark-900);
  margin-bottom: 8px;
}

.page-subtitle {
  font-size: 1rem;
  color: var(--gray-500);
}

.filter-bar {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 36px;
  flex-wrap: wrap;
}

.filter-btn {
  padding: 8px 20px;
  border-radius: var(--radius-full);
  font-weight: 500;
  font-size: 0.88rem;
  color: var(--gray-600);
  background: var(--white);
  border: 1px solid var(--gray-300);
  cursor: pointer;
  transition: all var(--transition-fast);
}

.filter-btn:hover {
  border-color: var(--primary-red);
  color: var(--primary-red);
}

.filter-btn.active {
  background: var(--primary-red);
  color: var(--white);
  border-color: var(--primary-red);
}

.search-input-wrap {
  position: relative;
  margin-left: auto;
}

.search-input-wrap input {
  padding: 10px 16px 10px 40px;
  border-radius: var(--radius-full);
  border: 1px solid var(--gray-300);
  font-size: 0.9rem;
  font-family: var(--font-primary);
  width: 240px;
  transition: all var(--transition-fast);
  outline: none;
}

.search-input-wrap input:focus {
  border-color: var(--primary-red);
  box-shadow: 0 0 0 3px rgba(228, 30, 49, 0.1);
}

.search-input-wrap svg {
  position: absolute;
  left: 14px;
  top: 50%;
  transform: translateY(-50%);
  width: 18px;
  height: 18px;
  color: var(--gray-400);
}

/* --- App Detail Page --- */
.app-detail-header {
  padding-top: calc(var(--nav-height) + 32px);
  padding-bottom: 48px;
  background: var(--bg-light);
}

.breadcrumb {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.85rem;
  color: var(--gray-500);
  margin-bottom: 24px;
}

.breadcrumb a {
  color: var(--gray-500);
  transition: color var(--transition-fast);
}

.breadcrumb a:hover {
  color: var(--primary-red);
}

.breadcrumb svg {
  width: 14px;
  height: 14px;
}

.app-detail-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
  align-items: start;
}

.app-detail-info h1 {
  font-family: var(--font-heading);
  font-size: 2.5rem;
  font-weight: 800;
  color: var(--dark-900);
  margin-bottom: 16px;
}

.app-detail-desc {
  font-size: 1.05rem;
  color: var(--gray-600);
  line-height: 1.7;
  margin-bottom: 24px;
}

.google-play-badge {
  transition: transform var(--transition-base);
  display: inline-block;
}

.google-play-badge:hover {
  transform: scale(1.03);
}

.google-play-badge img {
  height: 56px;
}

.app-detail-banner {
  border-radius: var(--radius-xl);
  overflow: hidden;
  box-shadow: var(--shadow-xl);
}

.app-detail-banner img {
  width: 100%;
  height: 300px;
  object-fit: cover;
}

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

.feature-card {
  background: var(--white);
  border-radius: var(--radius-lg);
  padding: 24px;
  text-align: center;
  border: 1px solid var(--gray-200);
  transition: all var(--transition-base);
}

.feature-card:hover {
  border-color: var(--primary-red);
  transform: translateY(-3px);
  box-shadow: var(--shadow-md);
}

.feature-icon {
  width: 48px;
  height: 48px;
  border-radius: var(--radius-md);
  background: rgba(228, 30, 49, 0.08);
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 12px;
}

.feature-icon svg {
  width: 24px;
  height: 24px;
  color: var(--primary-red);
}

.feature-card h4 {
  font-weight: 600;
  font-size: 0.9rem;
  color: var(--dark-800);
  margin-bottom: 4px;
}

.feature-card p {
  font-size: 0.78rem;
  color: var(--gray-500);
}

/* Screenshots Section */
.screenshots-scroll {
  display: flex;
  gap: 16px;
  overflow-x: auto;
  padding: 10px 0 20px;
  scroll-snap-type: x mandatory;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: thin;
  scrollbar-color: var(--gray-300) transparent;
}

.screenshots-scroll::-webkit-scrollbar {
  height: 6px;
}

.screenshots-scroll::-webkit-scrollbar-track {
  background: transparent;
}

.screenshots-scroll::-webkit-scrollbar-thumb {
  background: var(--gray-300);
  border-radius: 3px;
}

.screenshot-item {
  flex-shrink: 0;
  width: 200px;
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-md);
  scroll-snap-align: start;
  transition: transform var(--transition-base);
}

.screenshot-item:hover {
  transform: scale(1.03);
}

.screenshot-item img {
  width: 100%;
  height: auto;
  display: block;
}

/* App Info Sidebar */
.app-info-sidebar {
  background: var(--white);
  border-radius: var(--radius-lg);
  padding: 24px;
  border: 1px solid var(--gray-200);
}

.app-info-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 12px 0;
  border-bottom: 1px solid var(--gray-100);
}

.app-info-row:last-child {
  border-bottom: none;
}

.app-info-row .label {
  font-size: 0.85rem;
  color: var(--gray-500);
}

.app-info-row .value {
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--dark-800);
}

/* Key Features List */
.key-features-list {
  margin-top: 20px;
}

.key-features-list li {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  padding: 8px 0;
  font-size: 0.9rem;
  color: var(--gray-600);
}

.key-features-list li svg {
  width: 18px;
  height: 18px;
  color: var(--primary-red);
  flex-shrink: 0;
  margin-top: 2px;
}

/* Download CTA Section */
.download-cta {
  background: linear-gradient(135deg, var(--dark-900) 0%, var(--dark-700) 100%);
  border-radius: var(--radius-xl);
  padding: 40px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  color: var(--white);
  margin-top: 48px;
}

.download-cta h3 {
  font-family: var(--font-heading);
  font-size: 1.5rem;
  font-weight: 700;
  margin-bottom: 4px;
}

.download-cta p {
  font-size: 0.9rem;
  color: var(--gray-400);
}

/* --- Privacy Policy --- */
.privacy-content {
  padding-top: calc(var(--nav-height) + 48px);
  padding-bottom: 80px;
}

.privacy-content h1 {
  font-family: var(--font-heading);
  font-size: 2.2rem;
  font-weight: 800;
  color: var(--dark-900);
  margin-bottom: 8px;
}

.privacy-content .last-updated {
  font-size: 0.9rem;
  color: var(--gray-500);
  margin-bottom: 32px;
}

.privacy-content h2 {
  font-family: var(--font-heading);
  font-size: 1.4rem;
  font-weight: 700;
  color: var(--dark-800);
  margin: 32px 0 12px;
}

.privacy-content h3 {
  font-size: 1.1rem;
  font-weight: 600;
  color: var(--dark-800);
  margin: 20px 0 8px;
}

.privacy-content p {
  font-size: 0.95rem;
  color: var(--gray-600);
  line-height: 1.8;
  margin-bottom: 12px;
}

.privacy-content ul {
  padding-left: 24px;
  margin-bottom: 16px;
}

.privacy-content ul li {
  font-size: 0.95rem;
  color: var(--gray-600);
  line-height: 1.8;
  list-style-type: disc;
  padding: 2px 0;
}

.privacy-content a {
  color: var(--primary-red);
  font-weight: 500;
}

.privacy-content a:hover {
  text-decoration: underline;
}

.legal-card {
  background: #ffffff;
  border: 1px solid var(--gray-200);
  border-radius: 16px;
  padding: 22px 26px;
  margin: 20px 0;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.03);
}

.legal-card.highlight {
  border-left: 4px solid var(--primary-red);
  background: #fffafa;
}

.legal-card h4 {
  font-family: var(--font-heading);
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--dark-900);
  margin-bottom: 8px;
}

.legal-badge-pill {
  display: inline-block;
  background: rgba(228, 30, 49, 0.08);
  color: var(--primary-red);
  font-weight: 600;
  font-size: 0.8rem;
  padding: 4px 12px;
  border-radius: 20px;
  margin-bottom: 12px;
}

/* --- About Page --- */
.about-hero {
  padding-top: calc(var(--nav-height) + 60px);
  padding-bottom: 60px;
  background: linear-gradient(135deg, var(--bg-hero) 0%, #FFF 100%);
  text-align: center;
}

.about-hero h1 {
  font-family: var(--font-heading);
  font-size: 2.8rem;
  font-weight: 800;
  color: var(--dark-900);
  margin-bottom: 16px;
}

.about-hero p {
  font-size: 1.1rem;
  color: var(--gray-600);
  max-width: 640px;
  margin: 0 auto;
  line-height: 1.7;
}

.about-logo-large {
  width: 120px;
  margin: 0 auto 24px;
}

.about-values {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  margin-top: 48px;
}

.value-card {
  background: var(--white);
  padding: 32px;
  border-radius: var(--radius-lg);
  text-align: center;
  border: 1px solid var(--gray-200);
  transition: all var(--transition-base);
}

.value-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
  border-color: rgba(228, 30, 49, 0.15);
}

.value-card .value-icon {
  width: 56px;
  height: 56px;
  border-radius: var(--radius-md);
  background: rgba(228, 30, 49, 0.08);
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 16px;
  font-size: 1.6rem;
}

.value-card h3 {
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 1.1rem;
  margin-bottom: 8px;
  color: var(--dark-800);
}

.value-card p {
  font-size: 0.9rem;
  color: var(--gray-500);
  line-height: 1.6;
}

/* --- Contact Section --- */
.contact-section {
  padding-top: calc(var(--nav-height) + 48px);
  padding-bottom: 80px;
}

/* New card row layout */
.contact-cards-row {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  margin-top: 40px;
  align-items: stretch;
}

.contact-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 10px;
  padding: 32px 24px;
  background: #fff;
  border-radius: 20px;
  border: 1px solid var(--gray-200);
  box-shadow: 0 4px 24px rgba(0,0,0,0.05);
  transition: transform 0.22s ease, box-shadow 0.22s ease;
}

.contact-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 36px rgba(228,30,49,0.1);
  border-color: rgba(228,30,49,0.18);
}

.contact-card-icon {
  width: 60px;
  height: 60px;
  border-radius: 16px;
  background: rgba(228, 30, 49, 0.07);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 4px;
  flex-shrink: 0;
}

.contact-card-title {
  font-size: 1rem;
  font-weight: 700;
  color: var(--dark-800);
  margin: 0;
}

.contact-card-sub {
  font-size: 0.82rem;
  color: var(--gray-500);
  margin: 0;
  line-height: 1.4;
}

.contact-card-link {
  font-size: 0.88rem;
  color: var(--primary-red);
  font-weight: 700;
  text-decoration: none;
  word-break: break-all;
  transition: opacity 0.15s;
}

.contact-card-link:hover {
  opacity: 0.8;
}

.contact-card-btn {
  margin-top: auto;
  padding: 8px 18px;
  background: rgba(228, 30, 49, 0.07);
  color: var(--primary-red);
  border-radius: 10px;
  font-size: 0.8rem;
  font-weight: 600;
  cursor: pointer;
  border: 1px solid rgba(228, 30, 49, 0.2);
  transition: all 0.2s ease;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  white-space: nowrap;
}

.contact-card-btn:hover {
  background: var(--primary-red);
  color: #fff;
  border-color: var(--primary-red);
}

.contact-card-guarantee {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  margin-top: auto;
  padding: 8px 14px;
  background: rgba(228, 30, 49, 0.05);
  border: 1px solid rgba(228, 30, 49, 0.15);
  border-radius: 10px;
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--dark-800);
  width: 100%;
}

/* Legacy: keep btn-copy-email working standalone */
.btn-copy-email {
  padding: 6px 12px;
  background: rgba(228, 30, 49, 0.08);
  color: var(--primary-red);
  border-radius: 8px;
  font-size: 0.75rem;
  font-weight: 600;
  cursor: pointer;
  border: 1px solid rgba(228, 30, 49, 0.2);
  transition: all 0.2s ease;
  white-space: nowrap;
}

.btn-copy-email:hover {
  background: var(--primary-red);
  color: #fff;
}

/* Old contact-grid (kept for contact.html) */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
  margin-top: 32px;
}

.contact-info-card {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 20px;
  border-radius: var(--radius-lg);
  background: var(--gray-100);
  margin-bottom: 16px;
}

.contact-info-card .icon {
  width: 44px;
  height: 44px;
  border-radius: var(--radius-md);
  background: rgba(228, 30, 49, 0.08);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

/* --- Animations --- */

/* Base: fade up */
.fade-in {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 0.65s cubic-bezier(0.22, 1, 0.36, 1),
              transform 0.65s cubic-bezier(0.22, 1, 0.36, 1);
  transition-delay: var(--anim-delay, 0ms);
}

/* Slide from left */
.fade-in-left {
  opacity: 0;
  transform: translateX(-36px);
  transition: opacity 0.65s cubic-bezier(0.22, 1, 0.36, 1),
              transform 0.65s cubic-bezier(0.22, 1, 0.36, 1);
  transition-delay: var(--anim-delay, 0ms);
}

/* Slide from right */
.fade-in-right {
  opacity: 0;
  transform: translateX(36px);
  transition: opacity 0.65s cubic-bezier(0.22, 1, 0.36, 1),
              transform 0.65s cubic-bezier(0.22, 1, 0.36, 1);
  transition-delay: var(--anim-delay, 0ms);
}

/* Scale up */
.fade-in-scale {
  opacity: 0;
  transform: scale(0.92);
  transition: opacity 0.6s cubic-bezier(0.22, 1, 0.36, 1),
              transform 0.6s cubic-bezier(0.22, 1, 0.36, 1);
  transition-delay: var(--anim-delay, 0ms);
}

/* Visible state — all variants */
.fade-in.visible,
.fade-in-left.visible,
.fade-in-right.visible,
.fade-in-scale.visible {
  opacity: 1;
  transform: none;
}

/* Page-load hero entrance */
@keyframes heroEntrance {
  from { opacity: 0; transform: translateY(32px); }
  to   { opacity: 1; transform: translateY(0); }
}

.hub-hero-inner {
  animation: heroEntrance 0.9s cubic-bezier(0.22, 1, 0.36, 1) both;
}

/* Stagger helpers */
.stagger-1 { --anim-delay: 60ms; }
.stagger-2 { --anim-delay: 130ms; }
.stagger-3 { --anim-delay: 200ms; }
.stagger-4 { --anim-delay: 270ms; }
.stagger-5 { --anim-delay: 340ms; }

/* Smooth navbar scroll indicator */
@keyframes navSlideDown {
  from { transform: translateY(-100%); opacity: 0; }
  to   { transform: translateY(0);     opacity: 1; }
}

.navbar {
  animation: navSlideDown 0.55s cubic-bezier(0.22, 1, 0.36, 1) both;
}

/* Contact card entrance */
.contact-card {
  transition: transform 0.22s ease, box-shadow 0.22s ease, border-color 0.22s ease,
              opacity 0.55s cubic-bezier(0.22, 1, 0.36, 1),
              translate 0.55s cubic-bezier(0.22, 1, 0.36, 1);
}



/* --- Responsive --- */
@media (max-width: 1024px) {
  .hero .container {
    grid-template-columns: 1fr;
    text-align: center;
  }

  .hero-subtitle {
    margin: 0 auto 32px;
  }

  .hero-buttons {
    justify-content: center;
  }

  .hero-stats {
    justify-content: center;
  }

  .hero-visual {
    display: none;
  }

  .hero h1 {
    font-size: 2.8rem;
  }

  .featured-apps-grid {
    grid-template-columns: repeat(3, 1fr);
  }

  .categories-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .features-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .app-detail-grid {
    grid-template-columns: 1fr;
  }

  .stats-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 24px;
  }

  .stat-item {
    border-right: none;
  }
}

@media (max-width: 768px) {
  :root {
    --section-padding: 48px 0;
    --nav-height: 64px;
  }

  .nav-links {
    position: fixed;
    top: 0;
    right: -100%;
    width: 280px;
    height: 100vh;
    background: var(--white);
    flex-direction: column;
    padding: 100px 32px 32px;
    gap: 24px;
    box-shadow: var(--shadow-xl);
    transition: right var(--transition-base);
    z-index: 999;
  }

  .nav-links.open {
    right: 0;
  }

  .nav-toggle {
    display: flex;
  }

  .hero h1 {
    font-size: 2.2rem;
  }

  .featured-apps-grid {
    grid-template-columns: repeat(2, 1fr);
  }

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

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

  .section-header-row {
    flex-direction: column;
    align-items: flex-start;
    gap: 12px;
  }

  .footer-content {
    flex-direction: column;
    text-align: center;
    gap: 24px;
  }

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

  .footer-nav {
    flex-wrap: wrap;
    justify-content: center;
  }

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

  .app-detail-info h1 {
    font-size: 1.8rem;
  }

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

  .download-cta {
    flex-direction: column;
    text-align: center;
    gap: 20px;
  }

  .about-hero h1 {
    font-size: 2rem;
  }

  .about-values {
    grid-template-columns: 1fr;
  }

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

  .contact-cards-row {
    grid-template-columns: repeat(2, 1fr);
  }

  .filter-bar {
    flex-wrap: nowrap;
    overflow-x: auto;
    padding-bottom: 10px;
  }

  .filter-btn {
    flex-shrink: 0;
  }

  .search-input-wrap {
    width: 100%;
    margin-left: 0;
    margin-top: 8px;
  }

  .search-input-wrap input {
    width: 100%;
  }

  .apps-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 480px) {
  .container {
    padding: 0 16px;
  }

  .hero {
    min-height: auto;
    padding-top: calc(var(--nav-height) + 24px);
    padding-bottom: 40px;
  }

  .hero h1 {
    font-size: 1.8rem;
  }

  .hero-badge {
    font-size: 0.75rem;
    padding: 5px 12px;
  }

  .hero-subtitle {
    font-size: 0.95rem;
  }

  .hero-stats {
    flex-direction: column;
    gap: 16px;
    align-items: center;
  }

  .hero-buttons .btn {
    width: 100%;
    justify-content: center;
  }

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

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

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

  .app-card {
    padding: 14px;
  }

  .app-card-icon {
    width: 56px;
    height: 56px;
  }

  .app-card-name {
    font-size: 0.82rem;
  }

  .app-card-desc {
    font-size: 0.72rem;
  }

  .privacy-content h1 {
    font-size: 1.6rem;
  }

  .privacy-content {
    padding-top: calc(var(--nav-height) + 32px);
    padding-bottom: 48px;
  }

  .about-hero {
    padding-top: calc(var(--nav-height) + 40px);
    padding-bottom: 40px;
  }

  .about-hero h1 {
    font-size: 1.6rem;
  }

  .about-hero p {
    font-size: 0.95rem;
  }

  .about-logo-large {
    width: 80px;
  }

  .section-title {
    font-size: 1.6rem;
  }

  .section-badge {
    font-size: 0.72rem;
  }

  .page-title {
    font-size: 1.5rem;
  }

  .page-subtitle {
    font-size: 0.88rem;
  }

  .app-detail-info h1 {
    font-size: 1.5rem;
  }

  .app-detail-desc {
    font-size: 0.92rem;
  }

  .app-detail-banner div {
    height: 220px !important;
    padding: 24px !important;
  }

  .app-detail-banner div img {
    width: 80px !important;
    height: 80px !important;
  }

  .app-detail-banner div h2 {
    font-size: 1.3rem !important;
  }

  .download-cta {
    padding: 24px !important;
    margin-top: 32px;
  }

  .download-cta h3 {
    font-size: 1.1rem;
  }

  .gplay-badge {
    padding: 8px 20px;
  }

  .gplay-badge .gplay-text span {
    font-size: 0.95rem;
  }

  .screenshot-item {
    width: 160px;
  }

  .screenshot-item div {
    width: 160px !important;
    height: 284px !important;
  }

  .key-features-list li {
    font-size: 0.85rem;
  }

  .stat-item {
    padding: 0;
  }

  .stat-text h3 {
    font-size: 1.1rem;
  }

  .contact-section {
    padding-top: calc(var(--nav-height) + 32px);
    padding-bottom: 48px;
  }

  .contact-section .section-title {
    font-size: 1.8rem;
  }

  .contact-cards-row {
    grid-template-columns: 1fr;
    gap: 16px;
    margin-top: 28px;
  }

  .contact-card {
    padding: 24px 20px;
  }

  .value-card {
    padding: 24px;
  }

  .footer {
    padding: 36px 0 20px;
  }

  .footer-social a {
    width: 40px;
    height: 40px;
  }

  /* Better touch targets */
  .nav-toggle {
    padding: 8px;
  }

  .filter-btn {
    padding: 8px 16px;
    font-size: 0.82rem;
  }
}

/* Overlay for mobile */
.nav-overlay {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.4);
  z-index: 998;
}

/* ============================================
   Phone Mockup Component
   ============================================ */
.hero-phone-frame {
  width: 280px;
  height: 560px;
  background: #18181B;
  border-radius: 40px;
  padding: 10px;
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.22), 0 0 0 2px rgba(255, 255, 255, 0.12), inset 0 0 0 1px #333;
  position: relative;
  animation: floatPhone 6s ease-in-out infinite;
  margin: 0 auto;
}

.phone-island {
  position: absolute;
  top: 18px;
  left: 50%;
  transform: translateX(-50%);
  width: 86px;
  height: 20px;
  background: #000;
  border-radius: 12px;
  z-index: 10;
  display: flex;
  align-items: center;
  justify-content: flex-end;
  padding: 0 8px;
}

.phone-camera {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #1e1e38;
  border: 1px solid #444;
}

.phone-screen {
  width: 100%;
  height: 100%;
  border-radius: 32px;
  overflow: hidden;
  position: relative;
  background: #09090b;
}

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

/* ============================================
   Google Play Badge Button
   ============================================ */
.gplay-badge {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  background: #000;
  color: #fff;
  padding: 10px 22px;
  border-radius: 12px;
  transition: all var(--transition-base);
  box-shadow: 0 4px 14px rgba(0,0,0,0.15);
  text-decoration: none;
  border: 1px solid rgba(255,255,255,0.15);
}

.gplay-badge:hover {
  transform: translateY(-2px);
  background: #111;
  box-shadow: 0 8px 24px rgba(228, 30, 49, 0.3);
  border-color: rgba(228, 30, 49, 0.5);
  color: #fff;
}

.gplay-badge .gplay-icon {
  width: 26px;
  height: 26px;
  flex-shrink: 0;
}

.gplay-badge .gplay-text {
  display: flex;
  flex-direction: column;
  line-height: 1.1;
  text-align: left;
}

.gplay-badge .gplay-text small {
  font-size: 0.65rem;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  opacity: 0.85;
}

.gplay-badge .gplay-text span {
  font-size: 1.05rem;
  font-weight: 700;
  margin-top: 1px;
}

/* Secondary Button on Header */
.btn-share {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 11px 20px;
  border-radius: 12px;
  background: #fff;
  color: var(--dark-800);
  border: 1px solid var(--gray-300);
  font-weight: 600;
  font-size: 0.9rem;
  transition: all 0.2s;
}

.btn-share:hover {
  border-color: var(--primary-red);
  color: var(--primary-red);
  background: #FFF5F5;
}

/* ============================================
   App Detail Page Styles
   ============================================ */
.app-detail-header {
  padding-top: calc(var(--nav-height) + 28px);
  padding-bottom: 48px;
  background: linear-gradient(160deg, #fff8f8 0%, #fff4f4 40%, #ffffff 100%);
  border-bottom: 1px solid rgba(228,30,49,0.08);
  position: relative;
  overflow: hidden;
}

.app-detail-header::before {
  content: '';
  position: absolute;
  top: -60px; right: -60px;
  width: 320px; height: 320px;
  background: radial-gradient(circle, rgba(228,30,49,0.06) 0%, transparent 70%);
  pointer-events: none;
}

.breadcrumb {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.85rem;
  color: var(--gray-500);
  margin-bottom: 24px;
  flex-wrap: wrap;
}

.breadcrumb a {
  color: var(--gray-600);
  transition: color 0.2s;
}

.breadcrumb a:hover {
  color: var(--primary-red);
}

.breadcrumb-current {
  color: var(--dark-900);
  font-weight: 600;
}

.app-detail-hero-grid {
  display: grid;
  grid-template-columns: 1fr 340px;
  gap: 40px;
  align-items: center;
}

.app-header-main {
  display: flex;
  gap: 24px;
  align-items: flex-start;
}

.app-header-icon {
  width: 112px;
  height: 112px;
  border-radius: 26px;
  overflow: hidden;
  box-shadow: 0 0 0 4px rgba(228,30,49,0.1), 0 14px 36px rgba(0,0,0,0.14);
  flex-shrink: 0;
  border: 2px solid rgba(255,255,255,0.9);
  background: #fff;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.app-header-icon:hover {
  transform: scale(1.04);
  box-shadow: 0 0 0 5px rgba(228,30,49,0.18), 0 18px 44px rgba(0,0,0,0.18);
}

.app-header-icon img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.app-header-text {
  flex: 1;
  min-width: 0;
}

.app-header-text h1 {
  font-family: var(--font-heading);
  font-size: clamp(1.7rem, 3.5vw, 2.4rem);
  font-weight: 800;
  color: var(--dark-900);
  line-height: 1.15;
  margin-bottom: 8px;
  word-break: break-word;
  letter-spacing: -0.02em;
}

.app-header-subtitle {
  font-size: 1rem;
  color: var(--gray-600);
  margin-bottom: 14px;
  line-height: 1.4;
}

.app-header-badges {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
  margin-bottom: 20px;
}

.detail-badge {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 5px 11px;
  border-radius: 20px;
  font-size: 0.76rem;
  font-weight: 700;
  background: #F4F5F7;
  color: #444;
  letter-spacing: 0.01em;
}

.detail-badge.rating {
  background: #FEF9C3;
  color: #92620A;
}

.detail-badge.category {
  background: rgba(228, 30, 49, 0.09);
  color: var(--primary-red);
}

.detail-badge.downloads {
  background: #EFF6FF;
  color: #1D4ED8;
}

.detail-badge.verified {
  background: #F0FDF4;
  color: #166534;
}

.app-header-actions {
  display: flex;
  align-items: center;
  gap: 14px;
  flex-wrap: wrap;
}

/* Banner Card in Header */
.app-banner-card {
  background: linear-gradient(135deg, #1a1a1a 0%, #2d2d2d 100%);
  border-radius: 22px;
  padding: 26px;
  color: #fff;
  box-shadow: 0 16px 48px rgba(0,0,0,0.2);
  border: 1px solid rgba(255,255,255,0.07);
  position: relative;
  overflow: hidden;
}

.app-banner-card::after {
  content: '';
  position: absolute;
  bottom: -24px; right: -24px;
  width: 100px; height: 100px;
  background: radial-gradient(circle, rgba(228,30,49,0.25) 0%, transparent 70%);
  pointer-events: none;
}

.app-banner-card-inner {
  display: flex;
  align-items: center;
  gap: 16px;
  position: relative;
  z-index: 1;
}

.app-banner-card-icon {
  width: 72px;
  height: 72px;
  border-radius: 18px;
  overflow: hidden;
  box-shadow: 0 6px 20px rgba(0,0,0,0.35);
  flex-shrink: 0;
  border: 2px solid rgba(255,255,255,0.15);
}

.app-banner-card-icon img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.app-banner-card-info h3 {
  font-family: var(--font-heading);
  font-size: 1.15rem;
  font-weight: 700;
  color: #fff;
  margin-bottom: 3px;
}

.app-banner-card-info p {
  font-size: 0.8rem;
  color: #A1A1AA;
  margin-bottom: 10px;
}

.app-banner-dev-badge {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-size: 0.72rem;
  font-weight: 700;
  color: #4ADE80;
  background: rgba(74, 222, 128, 0.14);
  padding: 4px 10px;
  border-radius: 20px;
}

/* ============================================
   Screenshots Carousel
   ============================================ */
.screenshots-header-row {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 16px;
}

.carousel-nav-controls {
  display: flex;
  gap: 8px;
  margin-bottom: 16px;
}

.carousel-arrow-btn {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  border: 1.5px solid rgba(0, 0, 0, 0.08);
  background: #ffffff;
  color: var(--dark-800);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
  transition: all 0.22s cubic-bezier(0.2, 0.8, 0.2, 1);
}

.carousel-arrow-btn:hover {
  background: var(--primary-red);
  color: #ffffff;
  border-color: var(--primary-red);
  transform: translateY(-2px);
  box-shadow: 0 6px 16px rgba(228, 30, 49, 0.25);
}

.carousel-arrow-btn:active {
  transform: translateY(0);
}

.screenshots-wrapper {
  position: relative;
}

.screenshots-carousel {
  display: flex;
  gap: 16px;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  padding: 12px 4px 20px;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: thin;
  scrollbar-color: rgba(228, 30, 49, 0.3) transparent;
}

.screenshots-carousel::-webkit-scrollbar {
  height: 6px;
}

.screenshots-carousel::-webkit-scrollbar-track {
  background: var(--gray-100);
  border-radius: 4px;
}

.screenshots-carousel::-webkit-scrollbar-thumb {
  background: var(--gray-300);
  border-radius: 4px;
}

.screenshots-carousel::-webkit-scrollbar-thumb:hover {
  background: var(--primary-red);
}

.screenshot-card {
  flex: 0 0 190px;
  scroll-snap-align: start;
  border-radius: 18px;
  overflow: hidden;
  box-shadow: 0 6px 22px rgba(0,0,0,0.1);
  border: 1.5px solid rgba(0,0,0,0.07);
  cursor: pointer;
  position: relative;
  transition: transform 0.24s cubic-bezier(0.22,1,0.36,1), box-shadow 0.24s ease;
  background: #f0f0f0;
}

.screenshot-card:hover {
  transform: translateY(-6px) scale(1.02);
  box-shadow: 0 18px 40px rgba(0,0,0,0.18);
}

.screenshot-card img {
  width: 100%;
  height: auto;
  display: block;
}

.screenshot-zoom-hint {
  position: absolute;
  bottom: 8px;
  right: 8px;
  background: rgba(0,0,0,0.65);
  color: #fff;
  border-radius: 50%;
  width: 28px;
  height: 28px;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transition: opacity 0.2s;
}

.screenshot-card:hover .screenshot-zoom-hint {
  opacity: 1;
}

/* ============================================
   App Detail 2-Column Layout
   ============================================ */
.app-detail-layout {
  display: grid;
  grid-template-columns: 1fr 340px;
  gap: 48px;
  align-items: start;
  margin-top: 20px;
}

.detail-main-col {
  min-width: 0;
}

.detail-sidebar-col {
  position: sticky;
  top: calc(var(--nav-height) + 20px);
}

.content-block {
  margin-bottom: 36px;
}

.content-block h2 {
  font-family: var(--font-heading);
  font-size: 1.4rem;
  font-weight: 700;
  color: var(--dark-900);
  margin-bottom: 14px;
}

.app-description-text {
  font-size: 0.95rem;
  color: #4A5568;
  line-height: 1.7;
  white-space: pre-line;
}

/* Feature Cards Grid */
.feature-cards-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 16px;
  margin-top: 16px;
}

.feature-item-card {
  background: #fff;
  border: 1.5px solid rgba(0,0,0,0.07);
  border-radius: 16px;
  padding: 18px;
  display: flex;
  align-items: flex-start;
  gap: 14px;
  transition: border-color 0.22s, transform 0.22s, box-shadow 0.22s;
  box-shadow: 0 2px 8px rgba(0,0,0,0.04);
}

.feature-item-card:hover {
  border-color: rgba(228, 30, 49, 0.25);
  transform: translateY(-3px);
  box-shadow: 0 8px 24px rgba(228,30,49,0.08);
}

.feature-item-icon {
  width: 40px;
  height: 40px;
  border-radius: 12px;
  background: linear-gradient(135deg, rgba(228,30,49,0.1) 0%, rgba(228,30,49,0.05) 100%);
  color: var(--primary-red);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.feature-item-content h4 {
  font-size: 0.88rem;
  font-weight: 700;
  color: var(--dark-900);
  margin-bottom: 3px;
}

.feature-item-content p {
  font-size: 0.77rem;
  color: var(--gray-500);
  line-height: 1.4;
}

/* Specifications Table Card */
.specs-table-card {
  background: #fff;
  border-radius: 20px;
  padding: 24px;
  border: 1.5px solid rgba(0,0,0,0.07);
  margin-bottom: 20px;
  box-shadow: 0 2px 12px rgba(0,0,0,0.04);
}

.specs-table-card h3 {
  font-family: var(--font-heading);
  font-size: 1rem;
  font-weight: 700;
  color: var(--dark-900);
  margin-bottom: 16px;
  padding-bottom: 12px;
  border-bottom: 1.5px solid rgba(0,0,0,0.06);
  display: flex;
  align-items: center;
  gap: 8px;
}

.specs-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 10px 0;
  border-bottom: 1px solid rgba(0,0,0,0.04);
  font-size: 0.84rem;
  gap: 8px;
}

.specs-row:last-child {
  border-bottom: none;
  padding-bottom: 0;
}

.specs-label {
  color: var(--gray-500);
  font-weight: 500;
  flex-shrink: 0;
}

.specs-value {
  font-weight: 600;
  color: var(--dark-900);
  text-align: right;
  max-width: 60%;
  word-break: break-word;
  font-size: 0.84rem;
}

.specs-value a {
  color: var(--primary-red);
}

.specs-value a:hover {
  text-decoration: underline;
}

/* Download CTA Card in Sidebar */
.download-banner-cta {
  background: linear-gradient(135deg, #E41E31 0%, #c0152a 100%);
  border-radius: 20px;
  padding: 26px 24px;
  text-align: center;
  color: #fff;
  box-shadow: 0 12px 36px rgba(228,30,49,0.35);
  border: 1px solid rgba(255,255,255,0.12);
  position: relative;
  overflow: hidden;
}

.download-banner-cta::before {
  content: '';
  position: absolute;
  top: -30px; right: -30px;
  width: 120px; height: 120px;
  background: radial-gradient(circle, rgba(255,255,255,0.12) 0%, transparent 70%);
  pointer-events: none;
}

.download-banner-cta h3 {
  font-family: var(--font-heading);
  font-size: 1.15rem;
  font-weight: 800;
  margin-bottom: 6px;
  position: relative;
}

.download-banner-cta p {
  font-size: 0.82rem;
  color: rgba(255,255,255,0.75);
  margin-bottom: 18px;
  position: relative;
}

.download-banner-cta .gplay-badge {
  width: 100%;
  justify-content: center;
  position: relative;
  background: rgba(255,255,255,0.15);
  border: 1.5px solid rgba(255,255,255,0.3);
  color: #fff;
  backdrop-filter: blur(4px);
}

.download-banner-cta .gplay-badge:hover {
  background: rgba(255,255,255,0.25);
}

/* ============================================
   Lightbox Modal for Full-Res Screenshots
   ============================================ */
.lightbox-modal {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.92);
  z-index: 99999;
  align-items: center;
  justify-content: center;
  padding: 20px;
  backdrop-filter: blur(8px);
}

.lightbox-modal.active {
  display: flex;
}

.lightbox-content {
  max-width: 90vw;
  max-height: 90vh;
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
}

.lightbox-content img {
  max-width: 100%;
  max-height: 85vh;
  border-radius: 16px;
  box-shadow: 0 20px 60px rgba(0,0,0,0.6);
  object-fit: contain;
}

.lightbox-close {
  position: absolute;
  top: 20px;
  right: 20px;
  background: rgba(255,255,255,0.2);
  color: #fff;
  border-radius: 50%;
  width: 44px;
  height: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  cursor: pointer;
  transition: background 0.2s;
  z-index: 100;
}

.lightbox-close:hover {
  background: var(--primary-red);
}

.lightbox-nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: rgba(255,255,255,0.2);
  color: #fff;
  border-radius: 50%;
  width: 44px;
  height: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: background 0.2s;
  z-index: 100;
}

.lightbox-nav:hover {
  background: var(--primary-red);
}

.lightbox-prev { left: 20px; }
.lightbox-next { right: 20px; }

.lightbox-counter {
  position: absolute;
  bottom: 24px;
  left: 50%;
  transform: translateX(-50%);
  background: rgba(0, 0, 0, 0.65);
  border: 1px solid rgba(255, 255, 255, 0.2);
  color: #ffffff;
  font-size: 0.82rem;
  font-weight: 600;
  padding: 6px 16px;
  border-radius: 20px;
  letter-spacing: 0.04em;
  backdrop-filter: blur(8px);
  z-index: 100;
}

/* ============================================
   RESPONSIVE DESIGN BREAKPOINTS
   ============================================ */

/* TABLET (max-width: 1024px) */
@media (max-width: 1024px) {
  .app-detail-hero-grid {
    grid-template-columns: 1fr;
    gap: 28px;
  }

  .app-detail-layout {
    grid-template-columns: 1fr;
    gap: 36px;
  }

  .detail-sidebar-col {
    position: static;
  }

  .featured-apps-grid,
  .apps-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

/* MOBILE (max-width: 768px) */
@media (max-width: 768px) {
  .app-header-main {
    flex-direction: row;
    gap: 16px;
  }

  .app-header-icon {
    width: 80px;
    height: 80px;
    border-radius: 20px;
  }

  .app-header-text h1 {
    font-size: 1.5rem;
  }

  .app-header-subtitle {
    font-size: 0.9rem;
  }

  .feature-cards-grid {
    grid-template-columns: 1fr;
    gap: 12px;
  }

  .carousel-nav-controls {
    display: none;
  }

  .screenshot-card {
    flex: 0 0 160px;
  }

  .hero-buttons {
    flex-direction: column;
    width: 100%;
  }

  .hero-buttons .btn {
    width: 100%;
    justify-content: center;
  }
}

/* SMALL MOBILE (max-width: 540px) */
@media (max-width: 540px) {
  .app-header-main {
    flex-direction: column;
    align-items: center;
    text-align: center;
  }

  .app-header-icon {
    width: 76px;
    height: 76px;
  }

  .app-header-badges {
    justify-content: center;
  }

  .app-header-actions {
    justify-content: center;
    width: 100%;
  }

  .app-header-actions .gplay-badge,
  .app-header-actions .btn-share {
    width: 100%;
    justify-content: center;
  }

  .featured-apps-grid,
  .apps-grid {
    grid-template-columns: 1fr;
    gap: 16px;
  }

  .app-card-main {
    gap: 14px;
  }

  .app-card-icon {
    width: 60px;
    height: 60px;
    border-radius: 14px;
  }

  .screenshot-card {
    flex: 0 0 145px;
    border-radius: 12px;
  }

  .specs-table-card {
    padding: 16px;
  }

  .specs-row {
    flex-direction: column;
    align-items: flex-start;
    gap: 4px;
  }

  .specs-value {
    max-width: 100%;
    text-align: left;
  }
}

