/* ==========================================================================
   CHALLENZO LANDING PAGE - MODERN DARK THEME DESIGN SYSTEM & STYLES
   ========================================================================== */

/* --- Custom Properties / CSS Variables --- */
:root {
  /* Theme Colors */
  --bg-dark: #0F0F12;
  --bg-card: #1B1B22;
  --bg-surface: #1F1F29;
  --bg-glass: rgba(27, 27, 34, 0.75);

  /* Brand & Accent Colors */
  --primary: #6366F1;
  /* Indigo */
  --primary-light: #8B5CF6;
  /* Violet */
  --secondary: #0EA5E9;
  /* Cyan / Electric Blue */
  --accent-pink: #EC4899;
  /* Energetic Pink */

  /* Status Colors */
  --success: #10B981;
  /* Emerald */
  --warning: #F59E0B;
  /* Amber */
  --error: #EF4444;
  /* Red */

  /* Text Colors */
  --text-main: #F3F4F6;
  --text-muted: #9CA3AF;
  --text-dark: #6B7280;

  /* Borders & Shadows */
  --border-color: rgba(255, 255, 255, 0.08);
  --border-highlight: rgba(99, 102, 241, 0.3);
  --glow-primary: 0 0 25px rgba(99, 102, 241, 0.35);
  --glow-secondary: 0 0 25px rgba(14, 165, 233, 0.35);
  --card-shadow: 0 10px 30px -10px rgba(0, 0, 0, 0.5);

  /* Gradients */
  --grad-primary: linear-gradient(135deg, #8B5CF6 0%, #6366F1 50%, #0EA5E9 100%);
  --grad-text: linear-gradient(135deg, #FFFFFF 0%, #D1D5DB 60%, #9CA3AF 100%);
  --grad-accent-text: linear-gradient(135deg, #A855F7 0%, #6366F1 50%, #38BDF8 100%);
  --grad-card: linear-gradient(180deg, #1B1B22 0%, #15151B 100%);

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

  /* Layout Constants */
  --container-width: 1200px;
  --header-height: 80px;
  --radius-sm: 8px;
  --radius-md: 16px;
  --radius-lg: 24px;
  --radius-full: 9999px;
  --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

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

html {
  scroll-behavior: smooth;
  font-size: 16px;
  background-color: var(--bg-dark);
  color: var(--text-main);
  font-family: var(--font-body);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}

body {
  min-height: 100vh;
  line-height: 1.6;
  background-color: var(--bg-dark);
  background-image:
    radial-gradient(circle at 15% 15%, rgba(99, 102, 241, 0.12) 0%, transparent 40%),
    radial-gradient(circle at 85% 65%, rgba(14, 165, 233, 0.12) 0%, transparent 40%),
    radial-gradient(circle at 50% 90%, rgba(139, 92, 246, 0.08) 0%, transparent 45%);
  background-attachment: fixed;
}

/* Typography Base */
h1,
h2,
h3,
h4,
h5,
h6 {
  font-family: var(--font-heading);
  font-weight: 700;
  line-height: 1.2;
  color: #FFFFFF;
}

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

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

/* Container */
.container {
  width: 100%;
  max-width: var(--container-width);
  margin: 0 auto;
  padding: 0 1.5rem;
}

/* Section Common Styling */
section {
  padding: 6rem 0;
  position: relative;
}

.section-tag {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.4rem 1rem;
  border-radius: var(--radius-full);
  background: rgba(99, 102, 241, 0.1);
  border: 1px solid rgba(99, 102, 241, 0.25);
  color: #A5B4FC;
  font-size: 0.875rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 1px;
  margin-bottom: 1rem;
}

.section-title {
  font-size: 2.5rem;
  margin-bottom: 1rem;
  text-align: center;
}

.section-subtitle {
  font-size: 1.125rem;
  color: var(--text-muted);
  text-align: center;
  max-width: 650px;
  margin: 0 auto 3.5rem auto;
}

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

/* --- Buttons --- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.75rem;
  padding: 0.9rem 1.8rem;
  border-radius: var(--radius-md);
  font-family: var(--font-heading);
  font-size: 1rem;
  font-weight: 600;
  cursor: pointer;
  border: none;
  transition: var(--transition);
  position: relative;
  overflow: hidden;
  z-index: 1;
}

.btn-primary {
  background: var(--grad-primary);
  color: #FFFFFF;
  box-shadow: var(--glow-primary);
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 0 35px rgba(99, 102, 241, 0.55);
}

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

.btn-secondary:hover {
  background: var(--bg-surface);
  border-color: var(--border-highlight);
  transform: translateY(-2px);
}

.btn-store {
  display: inline-flex;
  align-items: center;
  gap: 0.85rem;
  padding: 0.75rem 1.5rem;
  border-radius: var(--radius-md);
  background: #15151C;
  border: 1px solid rgba(255, 255, 255, 0.12);
  color: #FFFFFF;
  transition: var(--transition);
  text-align: left;
}

.btn-store:hover {
  background: #23232E;
  border-color: var(--primary);
  transform: translateY(-2px);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.4);
}

.btn-store svg {
  width: 28px;
  height: 28px;
  flex-shrink: 0;
}

.btn-store-text {
  display: flex;
  flex-direction: column;
}

.btn-store-text .subtext {
  font-size: 0.75rem;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.btn-store-text .maintext {
  font-size: 1.05rem;
  font-weight: 700;
  font-family: var(--font-heading);
  line-height: 1.1;
}

/* --- Header / Navigation --- */
.navbar {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: var(--header-height);
  z-index: 1000;
  transition: var(--transition);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  background: rgba(15, 15, 18, 0.7);
  border-bottom: 1px solid var(--border-color);
}

.navbar.scrolled {
  background: rgba(15, 15, 18, 0.95);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
}

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

.logo-brand {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  font-family: var(--font-heading);
  font-size: 1.5rem;
  font-weight: 800;
  color: #FFFFFF;
}

.logo-brand img {
  width: 40px;
  height: 40px;
  border-radius: 10px;
  object-fit: contain;
  background: #FFFFFF;
  padding: 2px;
  box-shadow: 0 0 18px rgba(14, 165, 233, 0.45);
}

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

.nav-link {
  font-weight: 500;
  font-size: 0.95rem;
  color: var(--text-muted);
}

.nav-link:hover {
  color: #FFFFFF;
}

.nav-actions {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.mobile-menu-btn {
  display: none;
  background: none;
  border: none;
  color: #FFFFFF;
  font-size: 1.5rem;
  cursor: pointer;
}

/* --- Mobile Navigation Drawer --- */
.mobile-drawer {
  position: fixed;
  top: var(--header-height);
  left: 0;
  width: 100%;
  background: rgba(15, 15, 18, 0.98);
  backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--border-color);
  padding: 1.5rem;
  transform: translateY(-120%);
  transition: transform 0.35s ease-in-out;
  z-index: 999;
}

.mobile-drawer.active {
  transform: translateY(0);
}

.mobile-drawer ul {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}

.mobile-drawer a {
  font-size: 1.15rem;
  font-weight: 600;
  display: block;
}

/* --- Hero Section --- */
.hero-section {
  padding-top: calc(var(--header-height) + 4rem);
  padding-bottom: 5rem;
  overflow: hidden;
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  align-items: center;
  gap: 3.5rem;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  padding: 0.5rem 1.25rem;
  border-radius: var(--radius-full);
  background: rgba(99, 102, 241, 0.12);
  border: 1px solid rgba(99, 102, 241, 0.3);
  color: #C7D2FE;
  font-size: 0.875rem;
  font-weight: 600;
  margin-bottom: 1.5rem;
}

.hero-title {
  font-size: 3.75rem;
  font-weight: 800;
  letter-spacing: -1px;
  line-height: 1.1;
  margin-bottom: 1.25rem;
}

.hero-description {
  font-size: 1.2rem;
  color: var(--text-muted);
  margin-bottom: 2rem;
  max-width: 540px;
}

.hero-buttons {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  margin-bottom: 2.5rem;
}

.hero-stats {
  display: flex;
  align-items: center;
  gap: 2.5rem;
  padding-top: 1.5rem;
  border-top: 1px solid var(--border-color);
}

.stat-item h4 {
  font-size: 1.75rem;
  color: #FFFFFF;
}

.stat-item p {
  font-size: 0.875rem;
  color: var(--text-muted);
}

/* Phone Mockup Frame */
.hero-mockup-wrapper {
  position: relative;
  display: flex;
  justify-content: center;
}

.mockup-glow {
  position: absolute;
  width: 320px;
  height: 320px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(99, 102, 241, 0.4) 0%, rgba(14, 165, 233, 0.2) 60%, transparent 80%);
  filter: blur(50px);
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  z-index: 0;
}

.phone-frame {
  position: relative;
  z-index: 1;
  width: 320px;
  height: 640px;
  background: #09090B;
  border: 10px solid #1E1E26;
  border-radius: 44px;
  box-shadow:
    0 25px 50px -12px rgba(0, 0, 0, 0.8),
    0 0 35px rgba(99, 102, 241, 0.3);
  overflow: hidden;
  display: flex;
  flex-direction: column;
}

/* Phone Screen Header */
.phone-notch {
  width: 120px;
  height: 20px;
  background: #1E1E26;
  margin: 0 auto;
  border-bottom-left-radius: 14px;
  border-bottom-right-radius: 14px;
  flex-shrink: 0;
}

.phone-screen {
  flex: 1;
  padding: 0.85rem 1rem;
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
  overflow-y: auto;
  background: #0D0E12;
  scrollbar-width: none;
  /* Firefox */
  -ms-overflow-style: none;
  /* IE and Edge */
}

.phone-screen::-webkit-scrollbar {
  display: none;
  /* Chrome, Safari, Opera */
}

/* Screenshot Accurate Header */
.phone-app-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-bottom: 0.25rem;
}

.phone-user-avatar {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  border: 2px solid #0EA5E9;
  background: #1E1E2A;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.85rem;
  overflow: hidden;
}

.phone-app-brand-title {
  font-family: var(--font-heading);
  font-weight: 800;
  font-size: 1.05rem;
  letter-spacing: 1.5px;
  color: #FFFFFF;
}

.phone-app-bell-icon {
  font-size: 1.1rem;
  color: #E5E7EB;
  cursor: pointer;
}

/* Screenshot Top Stats Row */
.phone-stats-card {
  background: #14151C;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 16px;
  padding: 0.75rem 0.5rem;
  display: flex;
  align-items: center;
  justify-content: space-around;
  text-align: center;
}

.phone-stat-box {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.15rem;
}

.phone-stat-val {
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 0.95rem;
  color: #FFFFFF;
  display: flex;
  align-items: center;
  gap: 0.25rem;
}

.phone-stat-label {
  font-size: 0.68rem;
  color: #9CA3AF;
  font-weight: 500;
}

.phone-stat-divider {
  width: 1px;
  height: 24px;
  background: rgba(255, 255, 255, 0.1);
}

/* Screenshot Personalized Path Card */
.phone-path-card {
  background: linear-gradient(145deg, #181926 0%, #12131D 100%);
  border: 1px solid rgba(99, 102, 241, 0.3);
  border-radius: 18px;
  padding: 1rem;
  text-align: left;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
}

.phone-path-header {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 0.9rem;
  color: #FFFFFF;
  margin-bottom: 0.4rem;
}

.phone-path-desc {
  font-size: 0.73rem;
  color: #9CA3AF;
  line-height: 1.35;
  margin-bottom: 0.85rem;
}

.phone-path-btn {
  width: 100%;
  padding: 0.65rem;
  border-radius: 12px;
  background: linear-gradient(90deg, #8B5CF6 0%, #0EA5E9 100%);
  color: #FFFFFF;
  border: none;
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 0.85rem;
  cursor: pointer;
  box-shadow: 0 4px 15px rgba(14, 165, 233, 0.3);
  transition: var(--transition);
}

.phone-path-btn:hover {
  transform: translateY(-1px);
  box-shadow: 0 6px 20px rgba(14, 165, 233, 0.45);
}

/* Screenshot Today Challenge Card */
.phone-today-card {
  background: linear-gradient(145deg, #181926 0%, #13141E 100%);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 20px;
  padding: 1.1rem 1rem;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.6rem;
}

.phone-category-chip {
  display: inline-block;
  padding: 0.25rem 0.85rem;
  border-radius: var(--radius-full);
  background: rgba(99, 102, 241, 0.15);
  border: 1px solid rgba(99, 102, 241, 0.4);
  color: #C7D2FE;
  font-size: 0.65rem;
  font-weight: 800;
  letter-spacing: 1px;
  text-transform: uppercase;
}

.phone-today-title {
  font-family: var(--font-heading);
  font-weight: 800;
  font-size: 1.15rem;
  color: #FFFFFF;
  margin-top: 0.1rem;
}

.phone-today-desc {
  font-size: 0.74rem;
  color: #9CA3AF;
  line-height: 1.4;
  max-width: 250px;
}

.phone-points-badge {
  display: inline-block;
  padding: 0.35rem 1rem;
  border-radius: 12px;
  background: rgba(14, 165, 233, 0.1);
  border: 1px solid rgba(14, 165, 233, 0.3);
  color: #38BDF8;
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 0.8rem;
  margin-top: 0.2rem;
}

/* Phone Nav Bar */
.phone-nav-bar {
  display: flex;
  justify-content: space-around;
  align-items: center;
  padding: 0.6rem 0.5rem;
  background: #0B0C10;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  flex-shrink: 0;
}

.phone-nav-item {
  color: #9CA3AF;
  font-size: 0.68rem;
  font-weight: 500;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.15rem;
  padding: 0.3rem 0.6rem;
  border-radius: 14px;
}

.phone-nav-item.active {
  color: #FFFFFF;
  background: rgba(99, 102, 241, 0.25);
  font-weight: 700;
}

/* --- Features Grid Section --- */
.features-section {
  background: rgba(15, 15, 18, 0.5);
}

.features-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.75rem;
}

.feature-card {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  padding: 2rem;
  transition: var(--transition);
  position: relative;
  overflow: hidden;
}

.feature-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 2px;
  background: var(--grad-primary);
  opacity: 0;
  transition: var(--transition);
}

.feature-card:hover {
  transform: translateY(-5px);
  border-color: var(--border-highlight);
  box-shadow: var(--card-shadow);
}

.feature-card:hover::before {
  opacity: 1;
}

.feature-icon {
  width: 54px;
  height: 54px;
  border-radius: var(--radius-md);
  background: rgba(99, 102, 241, 0.15);
  border: 1px solid rgba(99, 102, 241, 0.3);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #A5B4FC;
  font-size: 1.5rem;
  margin-bottom: 1.25rem;
}

.feature-card h3 {
  font-size: 1.35rem;
  margin-bottom: 0.75rem;
}

.feature-card p {
  color: var(--text-muted);
  font-size: 0.95rem;
}

/* --- Interactive Challenge Playground --- */
.interactive-section {
  background: radial-gradient(circle at 50% 50%, rgba(99, 102, 241, 0.08) 0%, transparent 70%);
}

.demo-card-container {
  max-width: 650px;
  margin: 0 auto;
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  padding: 2.5rem;
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.4);
  text-align: center;
  position: relative;
}

.demo-category-badge {
  display: inline-block;
  padding: 0.3rem 0.85rem;
  border-radius: var(--radius-full);
  background: rgba(14, 165, 233, 0.15);
  color: #38BDF8;
  font-size: 0.8rem;
  font-weight: 700;
  text-transform: uppercase;
  margin-bottom: 1rem;
}

.demo-challenge-title {
  font-size: 1.75rem;
  margin-bottom: 0.75rem;
}

.demo-challenge-desc {
  color: var(--text-muted);
  font-size: 1.05rem;
  margin-bottom: 2rem;
}

.demo-action-box {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1rem;
}

.complete-challenge-btn {
  padding: 1rem 2.5rem;
  border-radius: var(--radius-full);
  background: var(--grad-primary);
  color: #FFFFFF;
  font-size: 1.1rem;
  font-weight: 700;
  border: none;
  cursor: pointer;
  box-shadow: var(--glow-primary);
  transition: var(--transition);
}

.complete-challenge-btn:hover {
  transform: scale(1.05);
}

.demo-success-state {
  display: none;
  animation: fadeIn 0.4s ease-in-out forwards;
}

.demo-success-state.active {
  display: block;
}

.badge-reward {
  font-size: 3.5rem;
  margin-bottom: 0.5rem;
  animation: popIn 0.5s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

/* --- Social Proof & Leaderboard Section --- */
.social-proof-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
  align-items: center;
}

.leaderboard-preview-card {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  padding: 1.5rem;
  box-shadow: var(--card-shadow);
}

.leaderboard-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 1.25rem;
  padding-bottom: 0.75rem;
  border-bottom: 1px solid var(--border-color);
}

.leaderboard-list {
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
}

.leaderboard-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.75rem 1rem;
  border-radius: var(--radius-md);
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid rgba(255, 255, 255, 0.04);
}

.leaderboard-row.top-rank {
  background: rgba(99, 102, 241, 0.1);
  border-color: rgba(99, 102, 241, 0.25);
}

.rank-badge {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 0.85rem;
}

.rank-1 {
  background: #F59E0B;
  color: #000;
}

.rank-2 {
  background: #94A3B8;
  color: #000;
}

.rank-3 {
  background: #B45309;
  color: #FFF;
}

.user-info {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  flex: 1;
  margin-left: 0.75rem;
}

.user-name {
  font-weight: 600;
  font-size: 0.95rem;
}

.user-points {
  font-weight: 700;
  color: var(--secondary);
  font-size: 0.9rem;
}

/* --- FAQ Accordion --- */
.faq-grid {
  max-width: 800px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.faq-item {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  overflow: hidden;
  transition: var(--transition);
}

.faq-question {
  width: 100%;
  padding: 1.25rem 1.5rem;
  background: none;
  border: none;
  color: #FFFFFF;
  font-family: var(--font-heading);
  font-size: 1.1rem;
  font-weight: 600;
  text-align: left;
  display: flex;
  justify-content: space-between;
  align-items: center;
  cursor: pointer;
}

.faq-answer {
  padding: 0 1.5rem 1.25rem 1.5rem;
  color: var(--text-muted);
  font-size: 0.95rem;
  display: none;
  border-top: 1px solid rgba(255, 255, 255, 0.05);
  margin-top: 0.5rem;
  padding-top: 1rem;
}

.faq-item.active {
  border-color: var(--border-highlight);
}

.faq-item.active .faq-answer {
  display: block;
}

.faq-icon {
  transition: transform 0.3s ease;
}

.faq-item.active .faq-icon {
  transform: rotate(180deg);
}

/* --- Download CTA Section --- */
.cta-section {
  padding: 6rem 0;
}

.cta-box {
  background: linear-gradient(135deg, rgba(99, 102, 241, 0.2) 0%, rgba(14, 165, 233, 0.2) 100%), var(--bg-card);
  border: 1px solid rgba(99, 102, 241, 0.35);
  border-radius: var(--radius-lg);
  padding: 4rem 2rem;
  text-align: center;
  position: relative;
  overflow: hidden;
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.6);
}

.cta-box h2 {
  font-size: 2.75rem;
  margin-bottom: 1rem;
}

.cta-box p {
  font-size: 1.15rem;
  color: var(--text-muted);
  max-width: 550px;
  margin: 0 auto 2.5rem auto;
}

.cta-buttons {
  display: flex;
  justify-content: center;
  gap: 1.25rem;
  flex-wrap: wrap;
}

/* --- Footer --- */
footer {
  background: #0B0B0E;
  border-top: 1px solid var(--border-color);
  padding: 4rem 0 2rem 0;
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 3rem;
  margin-bottom: 3rem;
}

.footer-brand p {
  color: var(--text-muted);
  font-size: 0.9rem;
  margin-top: 1rem;
  max-width: 300px;
}

.footer-col h4 {
  font-size: 1rem;
  margin-bottom: 1.25rem;
  color: #FFFFFF;
}

.footer-col ul {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.footer-col a {
  color: var(--text-muted);
  font-size: 0.9rem;
}

.footer-col a:hover {
  color: var(--secondary);
}

.footer-bottom {
  border-top: 1px solid var(--border-color);
  padding-top: 2rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  color: var(--text-dark);
  font-size: 0.85rem;
}

/* --- Keyframe Animations --- */
@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(10px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes popIn {
  0% {
    transform: scale(0.5);
    opacity: 0;
  }

  70% {
    transform: scale(1.2);
  }

  100% {
    transform: scale(1);
    opacity: 1;
  }
}

/* ==========================================================================
   RESPONSIVE MEDIA QUERIES
   ========================================================================== */

/* ==========================================================================
   RESPONSIVE MEDIA QUERIES (ALL DEVICES & PAGES)
   ========================================================================== */

/* Blog List Grid Default */
.blog-list-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
}

/* Support Grid Default */
.support-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
  align-items: start;
}

/* Laptops & Tablets (Max Width: 1024px) */
@media (max-width: 1024px) {
  .hero-grid {
    grid-template-columns: 1fr;
    text-align: center;
    gap: 3rem;
  }

  .hero-description {
    margin: 0 auto 2rem auto;
  }

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

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

  .social-proof-grid {
    grid-template-columns: 1fr;
    gap: 2.5rem;
  }

  .footer-grid {
    grid-template-columns: 1fr 1fr;
    gap: 2.5rem;
  }

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

/* Medium Tablets & Mobile Landscape (Max Width: 900px) */
@media (max-width: 900px) {
  .support-grid {
    grid-template-columns: 1fr;
    gap: 2.5rem;
  }
}

/* Mobile Devices & Small Tablets (Max Width: 768px) */
@media (max-width: 768px) {

  .nav-links,
  .nav-actions .btn {
    display: none;
  }

  .mobile-menu-btn {
    display: block;
  }

  .hero-title {
    font-size: clamp(2.2rem, 7vw, 3rem);
  }

  .section-title {
    font-size: clamp(1.8rem, 6vw, 2.5rem);
  }

  .cta-box {
    padding: 2.5rem 1.25rem;
  }

  .cta-box h2 {
    font-size: clamp(1.75rem, 5vw, 2.25rem);
  }

  .footer-grid {
    grid-template-columns: 1fr;
    gap: 2rem;
  }

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

  .blog-list-grid {
    grid-template-columns: 1fr;
  }

  .article-hero h1 {
    font-size: clamp(1.8rem, 6vw, 2.4rem);
  }

  .article-content {
    padding: 1.75rem 1.25rem;
    font-size: 0.98rem;
  }
}

/* Small Mobile Devices (Max Width: 480px) */
@media (max-width: 480px) {
  .container {
    padding-left: 1.25rem;
    padding-right: 1.25rem;
  }

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

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

  .phone-frame {
    width: 290px;
    height: 570px;
  }

  .float-badge-1 {
    left: -10px;
    top: 15px;
    font-size: 0.72rem;
    padding: 0.4rem 0.8rem;
  }

  .float-badge-2 {
    right: -10px;
    top: 170px;
    font-size: 0.72rem;
    padding: 0.4rem 0.8rem;
  }

  .float-badge-3 {
    left: -10px;
    bottom: 40px;
    font-size: 0.72rem;
    padding: 0.4rem 0.8rem;
  }

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

/* ==========================================================================
   ARTICLE & BLOG DETAIL STYLES
   ========================================================================== */
.article-hero {
  padding-top: calc(var(--header-height) + 3.5rem);
  padding-bottom: 2rem;
  text-align: center;
  position: relative;
}

.article-hero h1 {
  font-size: 2.75rem;
  max-width: 850px;
  margin: 1.25rem auto;
  line-height: 1.25;
  color: #FFFFFF;
}

.post-tag {
  display: inline-block;
  padding: 0.35rem 1rem;
  border-radius: var(--radius-full);
  background: rgba(14, 165, 233, 0.15);
  border: 1px solid rgba(14, 165, 233, 0.4);
  color: #38BDF8;
  font-size: 0.8rem;
  font-weight: 700;
  text-transform: uppercase;
}

.post-meta {
  display: flex;
  justify-content: center;
  gap: 1.5rem;
  color: var(--text-muted);
  font-size: 0.9rem;
  flex-wrap: wrap;
}

.meta-item {
  display: flex;
  align-items: center;
  gap: 0.4rem;
}

.article-container {
  max-width: 800px;
  margin: 0 auto 5rem auto;
  padding: 0 1.5rem;
}

.article-featured-emoji {
  font-size: 4rem;
  text-align: center;
  margin-bottom: 2rem;
}

.article-content {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  padding: 3rem 2.5rem;
  color: var(--text-main);
  font-size: 1.05rem;
  line-height: 1.85;
  box-shadow: var(--card-shadow);
}

.article-content p {
  margin-bottom: 1.5rem;
  color: #D1D5DB;
}

.article-content strong {
  color: #FFFFFF;
}

.article-content h2 {
  font-size: 1.65rem;
  color: #FFFFFF;
  margin-top: 2.5rem;
  margin-bottom: 1rem;
}

.article-content h3 {
  font-size: 1.35rem;
  color: #FFFFFF;
  margin-top: 2rem;
  margin-bottom: 0.85rem;
}

.article-content ul, .article-content ol {
  margin-bottom: 1.5rem;
  padding-left: 1.5rem;
  color: #9CA3AF;
}

.article-content li {
  margin-bottom: 0.5rem;
}

.article-content blockquote {
  border-left: 4px solid var(--primary);
  background: rgba(99, 102, 241, 0.08);
  padding: 1.25rem 1.5rem;
  border-radius: var(--radius-sm);
  margin: 2rem 0;
  font-style: italic;
  color: #F3F4F6;
}

/* Article Share & CTA Cards */
.share-area, .share-section {
  margin-top: 3rem;
  padding-top: 1.5rem;
  border-top: 1px solid var(--border-color);
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 1rem;
}

.share-title {
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--text-muted);
}

.share-buttons {
  display: flex;
  gap: 0.75rem;
}

.share-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.55rem 1.15rem;
  border-radius: var(--radius-sm);
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--border-color);
  color: var(--text-main);
  font-size: 0.85rem;
  font-weight: 600;
  text-decoration: none;
  cursor: pointer;
  transition: var(--transition);
}

.share-btn:hover {
  background: rgba(99, 102, 241, 0.2);
  border-color: var(--primary);
  color: #FFFFFF;
  transform: translateY(-2px);
}

.hero-glow {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 500px;
  height: 300px;
  background: radial-gradient(circle, rgba(99, 102, 241, 0.18) 0%, rgba(14, 165, 233, 0.08) 50%, transparent 70%);
  filter: blur(60px);
  pointer-events: none;
  z-index: 0;
}

.article-cta {
  position: relative;
  overflow: hidden;
  margin-top: 3rem;
  background: linear-gradient(135deg, rgba(99, 102, 241, 0.15) 0%, rgba(14, 165, 233, 0.15) 100%), var(--bg-card);
  border: 1px solid rgba(99, 102, 241, 0.35);
  border-radius: var(--radius-lg);
  padding: 2.5rem 2rem;
  text-align: center;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.4);
}

.cta-glow {
  position: absolute;
  top: -50px;
  right: -50px;
  width: 200px;
  height: 200px;
  background: radial-gradient(circle, rgba(14, 165, 233, 0.25) 0%, transparent 70%);
  filter: blur(40px);
  pointer-events: none;
}

.article-cta h3 {
  font-size: 1.75rem;
  color: #FFFFFF;
  margin-bottom: 0.75rem;
}

.article-cta p {
  color: var(--text-muted);
  max-width: 550px;
  margin: 0 auto 1.5rem auto;
}

.article-cta .cta-btn {
  display: inline-block;
  padding: 0.85rem 2rem;
  border-radius: var(--radius-md);
  background: var(--grad-primary);
  color: #FFFFFF;
  font-weight: 700;
  font-family: var(--font-heading);
  text-decoration: none;
  box-shadow: var(--glow-primary);
  transition: var(--transition);
}

.article-cta .cta-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 0 35px rgba(99, 102, 241, 0.6);
}

.post-nav {
  margin-top: 3rem;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 1.25rem;
}

.post-nav-card {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  padding: 1.25rem 1.5rem;
  text-decoration: none;
  transition: var(--transition);
}

.post-nav-card:hover {
  border-color: var(--primary);
  background: rgba(99, 102, 241, 0.1);
  transform: translateY(-2px);
}

/* ==========================================================================
   AI CUSTOMIZED PATH SECTION
   ========================================================================== */
.ai-path-grid {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: 2.5rem;
  align-items: start;
}

@media (max-width: 992px) {
  .ai-path-grid {
    grid-template-columns: 1fr;
    gap: 2rem;
  }
}

.ai-path-card {
  background: var(--bg-card);
  border: 1px solid rgba(139, 92, 246, 0.35);
  border-radius: var(--radius-lg);
  padding: 2rem;
  box-shadow: 0 15px 35px rgba(0, 0, 0, 0.5), 0 0 25px rgba(139, 92, 246, 0.15);
}

.ai-chip {
  display: inline-block;
  font-size: 0.72rem;
  font-weight: 800;
  color: #C084FC;
  background: rgba(139, 92, 246, 0.15);
  border: 1px solid rgba(139, 92, 246, 0.4);
  padding: 0.3rem 0.75rem;
  border-radius: 20px;
  margin-bottom: 0.75rem;
  letter-spacing: 0.05em;
}

.ai-path-header h3 {
  font-size: 1.4rem;
  color: #FFFFFF;
}

.ai-input-group {
  display: flex;
  gap: 0.75rem;
  margin: 1.5rem 0;
  flex-wrap: wrap;
}

.ai-input-group input {
  flex: 1;
  min-width: 240px;
  background: rgba(15, 15, 18, 0.8);
  border: 1px solid rgba(139, 92, 246, 0.4);
  border-radius: var(--radius-md);
  padding: 0.85rem 1.15rem;
  color: #FFFFFF;
  font-family: var(--font-body);
  font-size: 0.92rem;
  outline: none;
  transition: var(--transition);
}

.ai-input-group input:focus {
  border-color: #A855F7;
  box-shadow: 0 0 15px rgba(168, 85, 247, 0.3);
}

.ai-timeline-preview {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.timeline-step {
  display: flex;
  gap: 1.2rem;
  align-items: center;
  background: rgba(255, 255, 255, 0.025);
  border: 1px solid var(--border-color);
  border-radius: 14px;
  padding: 1rem 1.25rem;
  transition: var(--transition);
}

.timeline-step:hover {
  background: rgba(139, 92, 246, 0.08);
  border-color: rgba(139, 92, 246, 0.3);
}

.highlight-step {
  background: rgba(245, 158, 11, 0.08);
  border-color: rgba(245, 158, 11, 0.4);
}

.step-badge {
  font-size: 0.72rem;
  font-weight: 800;
  color: #FFFFFF;
  background: var(--primary);
  padding: 0.4rem 0.75rem;
  border-radius: 8px;
  letter-spacing: 0.05em;
  white-space: nowrap;
}

.step-content {
  flex: 1;
}

.step-content h4 {
  font-size: 0.95rem;
  color: #FFFFFF;
  margin-bottom: 0.2rem;
}

.step-content p {
  font-size: 0.82rem;
  color: var(--text-muted);
  line-height: 1.4;
  margin: 0;
}

.step-pts {
  font-size: 0.78rem;
  font-weight: 700;
  color: #38BDF8;
  display: inline-block;
  margin-top: 0.3rem;
}

.ai-features-column {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}

.ai-feature-box {
  display: flex;
  gap: 1.25rem;
  align-items: start;
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  padding: 1.25rem 1.5rem;
  transition: var(--transition);
}

.ai-feature-box:hover {
  border-color: rgba(139, 92, 246, 0.4);
  transform: translateX(4px);
}

.ai-feat-icon {
  font-size: 1.75rem;
  width: 48px;
  height: 48px;
  border-radius: 14px;
  background: rgba(139, 92, 246, 0.15);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.ai-feature-box h4 {
  font-size: 1.05rem;
  color: #FFFFFF;
  margin-bottom: 0.25rem;
}

.ai-feature-box p {
  font-size: 0.88rem;
  color: var(--text-muted);
  line-height: 1.5;
  margin: 0;
}

.post-nav-dir {
  font-size: 0.78rem;
  font-weight: 700;
  color: #38BDF8;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.post-nav-title {
  font-size: 1.05rem;
  font-weight: 700;
  color: #FFFFFF;
}

.article-content em {
  font-style: italic;
  color: #38BDF8;
}

/* ==========================================================================
   RESPONSIVE CARD GRIDS (ALL SECTIONS)
   ========================================================================== */

/* Steps Grid (4 Columns -> 2 Columns -> 1 Column) */
.steps-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.75rem;
}

@media (max-width: 1024px) {
  .steps-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 640px) {
  .steps-grid {
    grid-template-columns: 1fr;
  }
}

/* Challenges Library Grid (4 Columns -> 2 Columns -> 1 Column) */
.challenges-library-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.25rem;
}

@media (max-width: 1024px) {
  .challenges-library-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 640px) {
  .challenges-library-grid {
    grid-template-columns: 1fr;
  }
}

/* Achievements Grid (3 Columns -> 2 Columns -> 1 Column) */
.achievements-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
}

@media (max-width: 1024px) {
  .achievements-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 640px) {
  .achievements-grid {
    grid-template-columns: 1fr;
  }
}

/* Retro Arcade Promo Grid (2 Columns -> 1 Column) */
.arcade-promo-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
  align-items: center;
}

@media (max-width: 900px) {
  .arcade-promo-grid {
    grid-template-columns: 1fr;
    gap: 2rem;
    text-align: center;
  }
  
  .arcade-promo-grid h2 {
    text-align: center !important;
  }
}

/* Blog Preview Grid (3 Columns -> 2 Columns -> 1 Column) */
.blog-preview-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.75rem;
}

@media (max-width: 1024px) {
  .blog-preview-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 640px) {
  .blog-preview-grid {
    grid-template-columns: 1fr;
  }
}

/* ==========================================================================
   FLOATING BADGE ANIMATIONS
   ========================================================================== */
.float-badge {
  position: absolute;
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  transition: transform 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275), box-shadow 0.3s ease;
}

.float-badge:hover {
  transform: scale(1.12) translateY(-4px) !important;
  z-index: 30 !important;
}

.float-badge-1 {
  top: 25px;
  left: -35px;
  background: rgba(27, 27, 34, 0.92);
  border: 1px solid rgba(245, 158, 11, 0.5);
  padding: 0.55rem 1.05rem;
  border-radius: 30px;
  font-size: 0.82rem;
  font-weight: 700;
  color: #FBBF24;
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.5), 0 0 18px rgba(245, 158, 11, 0.3);
  z-index: 10;
  animation: floatBounce1 4s ease-in-out infinite alternate;
}

.float-badge-2 {
  top: 180px;
  right: -30px;
  background: rgba(27, 27, 34, 0.92);
  border: 1px solid rgba(14, 165, 233, 0.5);
  padding: 0.55rem 1.05rem;
  border-radius: 30px;
  font-size: 0.82rem;
  font-weight: 700;
  color: #38BDF8;
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.5), 0 0 18px rgba(14, 165, 233, 0.3);
  z-index: 10;
  animation: floatBounce2 4.6s ease-in-out infinite alternate 0.6s;
}

.float-badge-3 {
  bottom: 80px;
  left: -30px;
  background: rgba(27, 27, 34, 0.92);
  border: 1px solid rgba(16, 185, 129, 0.5);
  padding: 0.55rem 1.05rem;
  border-radius: 30px;
  font-size: 0.82rem;
  font-weight: 700;
  color: #34D399;
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.5), 0 0 18px rgba(16, 185, 129, 0.3);
  z-index: 10;
  animation: floatBounce3 4.2s ease-in-out infinite alternate 1.2s;
}

@keyframes floatBounce1 {
  0% {
    transform: translateY(0px) rotate(-1.5deg);
  }

  50% {
    transform: translateY(-12px) rotate(1deg);
  }

  100% {
    transform: translateY(-4px) rotate(-2deg);
  }
}

@keyframes floatBounce2 {
  0% {
    transform: translateY(0px) rotate(1.5deg);
  }

  50% {
    transform: translateY(-14px) rotate(-1deg);
  }

  100% {
    transform: translateY(-6px) rotate(2deg);
  }
}

@keyframes floatBounce3 {
  0% {
    transform: translateY(0px) rotate(-2deg);
  }

  50% {
    transform: translateY(-10px) rotate(1.5deg);
  }

  100% {
    transform: translateY(-3px) rotate(-1deg);
  }
}