/* ==========================================================================
   ABIFAR - Landing Page Stylesheet
   Aplikasi Belajar Ibadah Bersama Farhaan (MPI Rukun Haji)
   ========================================================================== */

/* --- Custom Variables & Design Tokens --- */
:root {
  --primary: #0284c7;
  --primary-light: #38bdf8;
  --primary-dark: #0369a1;
  --primary-rgb: 2, 132, 199;

  --accent-gold: #f59e0b;
  --accent-gold-light: #fde047;
  --accent-gold-dark: #b45309;
  --gold-glow: rgba(245, 158, 11, 0.4);

  --accent-green: #10b981;
  --accent-green-light: #34d399;
  --accent-green-dark: #047857;

  --accent-purple: #8b5cf6;
  --accent-purple-light: #a78bfa;

  --bg-main: #f0f7ff;
  --bg-card: #ffffff;
  --bg-dark: #071329;
  --bg-dark-card: #0e1e3e;

  --text-main: #0f172a;
  --text-muted: #64748b;
  --text-light: #f8fafc;

  --border-light: rgba(2, 132, 199, 0.12);
  --border-glass: rgba(255, 255, 255, 0.6);

  --shadow-sm: 0 4px 6px -1px rgba(0, 0, 0, 0.05), 0 2px 4px -2px rgba(0, 0, 0, 0.05);
  --shadow-md: 0 10px 25px -5px rgba(2, 132, 199, 0.12), 0 8px 10px -6px rgba(2, 132, 199, 0.08);
  --shadow-lg: 0 20px 40px -15px rgba(2, 132, 199, 0.22);
  --shadow-glow: 0 0 30px rgba(56, 189, 248, 0.35);
  --shadow-gold: 0 10px 25px rgba(245, 158, 11, 0.3);

  --radius-sm: 10px;
  --radius-md: 16px;
  --radius-lg: 24px;
  --radius-xl: 32px;
  --radius-full: 9999px;

  --transition-fast: 0.2s ease;
  --transition-smooth: 0.35s cubic-bezier(0.16, 1, 0.3, 1);
  --transition-bounce: 0.5s cubic-bezier(0.34, 1.56, 0.64, 1);
}

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

html {
  scroll-behavior: smooth;
  font-family: 'Plus Jakarta Sans', system-ui, -apple-system, sans-serif;
  color: var(--text-main);
  background-color: var(--bg-main);
  overflow-x: hidden;
}

body {
  line-height: 1.6;
  position: relative;
  overflow-x: hidden;
  background: radial-gradient(circle at 10% 20%, #e0f2fe 0%, #f0f7ff 50%, #e6f4fe 100%);
}

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

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

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

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

/* --- Typography Utilities --- */
.font-display {
  font-family: 'Fredoka', 'Plus Jakarta Sans', sans-serif;
  letter-spacing: 0.02em;
}

.gradient-text {
  background: linear-gradient(135deg, #0284c7 0%, #0369a1 50%, #0c4a6e 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.gold-gradient-text {
  background: linear-gradient(135deg, #f59e0b 0%, #d97706 70%, #92400e 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

/* --- Section Headers --- */
.section-header {
  text-align: center;
  max-width: 720px;
  margin: 0 auto 56px;
}

.section-tag {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 18px;
  border-radius: var(--radius-full);
  background: rgba(2, 132, 199, 0.1);
  color: var(--primary);
  font-weight: 700;
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-bottom: 16px;
  border: 1px solid rgba(2, 132, 199, 0.2);
}

.section-tag.gold {
  background: rgba(245, 158, 11, 0.12);
  color: #b45309;
  border-color: rgba(245, 158, 11, 0.3);
}

.section-title {
  font-size: clamp(2rem, 3.5vw, 2.75rem);
  font-weight: 800;
  line-height: 1.25;
  margin-bottom: 16px;
  color: #0c4a6e;
}

.section-desc {
  font-size: 1.08rem;
  color: var(--text-muted);
  line-height: 1.7;
}

/* ==========================================================================
   Navigation Bar
   ========================================================================== */
.navbar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  height: 84px;
  z-index: 1000;
  transition: all var(--transition-smooth);
}

.navbar.scrolled {
  background: rgba(255, 255, 255, 0.9);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
  box-shadow: 0 4px 20px -2px rgba(2, 132, 199, 0.12);
  height: 74px;
}

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

.nav-brand {
  display: flex;
  align-items: center;
  gap: 12px;
}

.brand-icon {
  width: 46px;
  height: 46px;
  border-radius: 12px;
  box-shadow: 0 4px 12px rgba(2, 132, 199, 0.25);
  transition: transform var(--transition-fast);
}

.nav-brand:hover .brand-icon {
  transform: rotate(-5deg) scale(1.05);
}

.brand-info {
  display: flex;
  flex-direction: column;
}

.brand-name {
  font-size: 1.35rem;
  font-weight: 800;
  letter-spacing: 0.04em;
  color: #0369a1;
  display: flex;
  align-items: center;
  gap: 6px;
}

.brand-version {
  font-size: 0.68rem;
  background: linear-gradient(135deg, var(--accent-gold), #ea580c);
  color: #fff;
  padding: 1px 7px;
  border-radius: var(--radius-full);
  font-weight: 700;
}

.brand-sub {
  font-size: 0.72rem;
  color: var(--text-muted);
  font-weight: 600;
}

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

.nav-link {
  font-size: 0.94rem;
  font-weight: 600;
  color: #334155;
  transition: color var(--transition-fast);
  position: relative;
  padding: 6px 0;
}

.nav-link::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 50%;
  width: 0;
  height: 3px;
  border-radius: 2px;
  background: linear-gradient(90deg, var(--primary), var(--accent-gold));
  transition: all var(--transition-fast);
  transform: translateX(-50%);
}

.nav-link:hover {
  color: var(--primary);
}

.nav-link:hover::after {
  width: 100%;
}

.nav-actions {
  display: flex;
  align-items: center;
  gap: 14px;
}

/* Audio Ambient Toggle Button */
.btn-audio-toggle {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  padding: 8px 14px;
  border-radius: var(--radius-full);
  background: #ffffff;
  border: 1px solid rgba(2, 132, 199, 0.2);
  color: #0369a1;
  font-size: 0.82rem;
  font-weight: 700;
  box-shadow: var(--shadow-sm);
  transition: all var(--transition-fast);
}

.btn-audio-toggle:hover {
  background: #e0f2fe;
  transform: translateY(-2px);
  box-shadow: 0 4px 10px rgba(2, 132, 199, 0.15);
}

.btn-audio-toggle.active {
  background: linear-gradient(135deg, #10b981, #059669);
  color: #ffffff;
  border-color: #059669;
}

.nav-btn-download {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 22px;
  border-radius: var(--radius-full);
  background: linear-gradient(135deg, #0284c7 0%, #0369a1 100%);
  color: #ffffff;
  font-weight: 700;
  font-size: 0.92rem;
  box-shadow: 0 6px 18px rgba(2, 132, 199, 0.35);
  transition: all var(--transition-smooth);
}

.nav-btn-download:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 24px rgba(2, 132, 199, 0.45);
  background: linear-gradient(135deg, #0369a1 0%, #0284c7 100%);
}

.mobile-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 40px;
  height: 40px;
  border-radius: 8px;
  background: #ffffff;
  border: 1px solid rgba(2, 132, 199, 0.2);
  padding: 8px;
}

.mobile-toggle span {
  display: block;
  height: 2.5px;
  background-color: #0369a1;
  border-radius: 2px;
  transition: all var(--transition-fast);
}

/* ==========================================================================
   Hero Section
   ========================================================================== */
.hero-section {
  position: relative;
  padding: 160px 0 90px;
  overflow: hidden;
}

/* Hero Background Elements */
.hero-bg-blobs {
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: 0;
  overflow: hidden;
}

.hero-blob {
  position: absolute;
  border-radius: 50%;
  filter: blur(80px);
  opacity: 0.45;
}

.hero-blob-1 {
  top: -10%;
  left: 20%;
  width: 500px;
  height: 500px;
  background: radial-gradient(circle, #38bdf8 0%, rgba(56, 189, 248, 0) 70%);
}

.hero-blob-2 {
  top: 30%;
  right: -5%;
  width: 450px;
  height: 450px;
  background: radial-gradient(circle, #fbbf24 0%, rgba(251, 191, 36, 0) 70%);
  opacity: 0.25;
}

.hero-blob-3 {
  bottom: 0;
  left: -5%;
  width: 400px;
  height: 400px;
  background: radial-gradient(circle, #34d399 0%, rgba(52, 211, 153, 0) 70%);
  opacity: 0.25;
}

/* Floating Stars & Lanterns in Hero */
.floating-elements {
  position: absolute;
  inset: 0;
  pointer-events: none;
}

.floating-star {
  position: absolute;
  color: var(--accent-gold);
  filter: drop-shadow(0 0 8px rgba(245, 158, 11, 0.6));
  animation: floatStar 4s ease-in-out infinite alternate;
}

.star-1 { top: 120px; left: 8%; font-size: 24px; animation-delay: 0s; }
.star-2 { top: 220px; right: 12%; font-size: 32px; animation-delay: 1.5s; }
.star-3 { top: 380px; left: 4%; font-size: 20px; animation-delay: 0.8s; }
.star-4 { top: 480px; right: 6%; font-size: 26px; animation-delay: 2.2s; }

@keyframes floatStar {
  0% { transform: translateY(0) scale(1) rotate(0deg); opacity: 0.7; }
  100% { transform: translateY(-16px) scale(1.15) rotate(15deg); opacity: 1; }
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  align-items: center;
  gap: 48px;
  position: relative;
  z-index: 1;
}

/* Hero Content */
.hero-content {
  display: flex;
  flex-direction: column;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 8px 20px;
  background: rgba(255, 255, 255, 0.9);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(2, 132, 199, 0.25);
  border-radius: var(--radius-full);
  box-shadow: 0 4px 15px rgba(2, 132, 199, 0.08);
  font-size: 0.88rem;
  font-weight: 700;
  color: #0369a1;
  width: fit-content;
  margin-bottom: 24px;
}

.hero-badge .sparkle {
  color: var(--accent-gold);
  font-size: 1.1rem;
}

.hero-title {
  font-size: clamp(2.4rem, 4.2vw, 3.5rem);
  font-weight: 800;
  line-height: 1.18;
  color: #082f49;
  margin-bottom: 20px;
}

.hero-title .highlight {
  position: relative;
  display: inline-block;
  background: linear-gradient(135deg, #0284c7 0%, #0369a1 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.hero-desc {
  font-size: 1.12rem;
  color: #334155;
  line-height: 1.75;
  margin-bottom: 34px;
  max-width: 580px;
}

.hero-cta-group {
  display: flex;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
  margin-bottom: 36px;
}

/* Primary 3D Download Button */
.btn-primary-3d {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 14px;
  padding: 16px 36px;
  border-radius: var(--radius-full);
  background: linear-gradient(180deg, #10b981 0%, #059669 50%, #047857 100%);
  color: #ffffff;
  font-size: 1.1rem;
  font-weight: 800;
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.25);
  box-shadow: 0 8px 0 #065f46, 0 16px 25px rgba(16, 185, 129, 0.4);
  transition: all var(--transition-fast);
  cursor: pointer;
}

.btn-primary-3d:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 0 #065f46, 0 20px 30px rgba(16, 185, 129, 0.5);
  background: linear-gradient(180deg, #34d399 0%, #10b981 50%, #059669 100%);
}

.btn-primary-3d:active {
  transform: translateY(6px);
  box-shadow: 0 2px 0 #065f46, 0 6px 12px rgba(16, 185, 129, 0.3);
}

.btn-primary-3d .btn-badge-size {
  background: rgba(0, 0, 0, 0.2);
  padding: 3px 10px;
  border-radius: var(--radius-full);
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.02em;
}

.btn-secondary-outline {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 15px 28px;
  border-radius: var(--radius-full);
  background: rgba(255, 255, 255, 0.9);
  color: #0369a1;
  font-size: 1rem;
  font-weight: 700;
  border: 2px solid rgba(2, 132, 199, 0.35);
  box-shadow: 0 4px 15px rgba(2, 132, 199, 0.08);
  transition: all var(--transition-fast);
}

.btn-secondary-outline:hover {
  background: #e0f2fe;
  border-color: var(--primary);
  transform: translateY(-2px);
  box-shadow: 0 8px 20px rgba(2, 132, 199, 0.16);
}

/* Hero Pill Specs */
.hero-specs-list {
  display: flex;
  align-items: center;
  gap: 20px;
  flex-wrap: wrap;
  padding-top: 10px;
  border-top: 1px dashed rgba(2, 132, 199, 0.2);
}

.hero-spec-item {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.88rem;
  font-weight: 600;
  color: #475569;
}

.hero-spec-item .icon {
  font-size: 1.1rem;
}

/* Hero Visual Showcase */
.hero-visual-wrapper {
  position: relative;
  display: flex;
  justify-content: center;
  align-items: center;
}

.hero-device-mockup {
  position: relative;
  width: 100%;
  max-width: 480px;
  perspective: 1000px;
}

.device-frame {
  position: relative;
  background: #0f172a;
  border-radius: 36px;
  padding: 12px;
  box-shadow: 0 25px 60px -15px rgba(2, 132, 199, 0.35), 0 0 0 1px rgba(255, 255, 255, 0.1);
  transform-style: preserve-3d;
  transition: transform var(--transition-smooth);
}

.device-frame:hover {
  transform: translateY(-6px) rotateY(-4deg) rotateX(4deg);
}

.device-screen {
  border-radius: 26px;
  overflow: hidden;
  position: relative;
  box-shadow: inset 0 0 20px rgba(0, 0, 0, 0.3);
}

.device-screen img {
  width: 100%;
  display: block;
}

/* Floating Farhaan Avatar Badge */
.floating-farhaan-badge {
  position: absolute;
  top: -24px;
  left: -24px;
  display: flex;
  align-items: center;
  gap: 12px;
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(12px);
  padding: 10px 18px 10px 10px;
  border-radius: var(--radius-full);
  box-shadow: 0 15px 35px -5px rgba(0, 0, 0, 0.15), 0 0 0 2px #fde047;
  z-index: 5;
  animation: floatSoft 5s ease-in-out infinite alternate;
}

@keyframes floatSoft {
  0% { transform: translateY(0px) rotate(-1deg); }
  100% { transform: translateY(-12px) rotate(2deg); }
}

.farhaan-badge-avatar {
  width: 52px;
  height: 52px;
  border-radius: 50%;
  border: 3px solid #fbbf24;
  object-fit: cover;
}

.farhaan-badge-text {
  display: flex;
  flex-direction: column;
}

.farhaan-badge-title {
  font-size: 0.92rem;
  font-weight: 800;
  color: #0369a1;
}

.farhaan-badge-sub {
  font-size: 0.74rem;
  color: var(--text-muted);
  font-weight: 600;
}

/* Floating AR Indicator Badge */
.floating-ar-badge {
  position: absolute;
  bottom: 20px;
  right: -20px;
  background: linear-gradient(135deg, #0284c7, #06b6d4);
  color: #ffffff;
  padding: 12px 20px;
  border-radius: 20px;
  display: flex;
  align-items: center;
  gap: 12px;
  box-shadow: 0 15px 30px rgba(2, 132, 199, 0.35);
  z-index: 5;
  animation: floatSoft 4.5s ease-in-out 1s infinite alternate-reverse;
}

.ar-badge-icon {
  font-size: 1.6rem;
  background: rgba(255, 255, 255, 0.2);
  width: 42px;
  height: 42px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.ar-badge-info h4 {
  font-size: 0.95rem;
  font-weight: 800;
  margin: 0;
}

.ar-badge-info p {
  font-size: 0.75rem;
  opacity: 0.9;
  margin: 0;
}

/* ==========================================================================
   Highlight Bar / Stats Section
   ========================================================================== */
.stats-section {
  position: relative;
  z-index: 2;
  margin-top: -30px;
  margin-bottom: 70px;
}

.stats-card {
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(20px);
  border-radius: var(--radius-xl);
  padding: 32px 40px;
  box-shadow: var(--shadow-lg);
  border: 1px solid rgba(255, 255, 255, 0.8);
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 28px;
}

.stat-item {
  display: flex;
  align-items: center;
  gap: 16px;
  position: relative;
}

.stat-item:not(:last-child)::after {
  content: '';
  position: absolute;
  right: -14px;
  top: 15%;
  height: 70%;
  width: 1px;
  background: rgba(2, 132, 199, 0.15);
}

.stat-icon-wrap {
  width: 58px;
  height: 58px;
  border-radius: 18px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.7rem;
  flex-shrink: 0;
  transition: transform var(--transition-fast);
}

.stat-item:hover .stat-icon-wrap {
  transform: scale(1.1) rotate(5deg);
}

.stat-icon-blue { background: #e0f2fe; color: #0284c7; }
.stat-icon-gold { background: #fef3c7; color: #d97706; }
.stat-icon-green { background: #d1fae5; color: #059669; }
.stat-icon-purple { background: #ede9fe; color: #7c3aed; }

.stat-details h3 {
  font-size: 1.6rem;
  font-weight: 800;
  color: #0c4a6e;
  line-height: 1.1;
  margin-bottom: 4px;
}

.stat-details p {
  font-size: 0.86rem;
  color: var(--text-muted);
  font-weight: 600;
  line-height: 1.3;
}

/* ==========================================================================
   Features Section (Fitur Unggulan)
   ========================================================================== */
.features-section {
  padding: 60px 0 100px;
  position: relative;
}

.features-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 28px;
}

.feature-card {
  background: #ffffff;
  border-radius: var(--radius-lg);
  padding: 24px;
  border: 1px solid rgba(2, 132, 199, 0.1);
  box-shadow: var(--shadow-sm);
  transition: all var(--transition-smooth);
  display: flex;
  flex-direction: column;
  position: relative;
  overflow: hidden;
}

.feature-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 5px;
  background: linear-gradient(90deg, var(--primary), var(--accent-gold));
  opacity: 0;
  transition: opacity var(--transition-fast);
}

.feature-card:hover {
  transform: translateY(-8px);
  box-shadow: var(--shadow-lg);
  border-color: rgba(2, 132, 199, 0.25);
}

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

.feature-card-media {
  width: 100%;
  height: 220px;
  border-radius: var(--radius-md);
  overflow: hidden;
  margin-bottom: 20px;
  background: #f8fafc;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 8px;
  position: relative;
}

.feature-card-media img {
  max-height: 100%;
  object-fit: contain;
  transition: transform var(--transition-smooth);
}

.feature-card:hover .feature-card-media img {
  transform: scale(1.05);
}

.feature-card-header {
  margin-bottom: 12px;
}

.feature-card-badge {
  display: inline-block;
  padding: 3px 10px;
  border-radius: var(--radius-full);
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  margin-bottom: 8px;
}

.badge-purple { background: #ede9fe; color: #6d28d9; }
.badge-green { background: #dcfce7; color: #15803d; }
.badge-cyan { background: #cffafe; color: #0e7490; }
.badge-orange { background: #ffedd5; color: #c2410c; }
.badge-teal { background: #ccfbf1; color: #0f766e; }

.feature-card-title {
  font-size: 1.3rem;
  font-weight: 800;
  color: #0f172a;
}

.feature-card-desc {
  font-size: 0.94rem;
  color: #475569;
  line-height: 1.6;
  margin-bottom: 18px;
  flex-grow: 1;
}

.feature-card-points {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 8px;
  border-top: 1px solid #f1f5f9;
  padding-top: 14px;
}

.feature-card-point {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  font-size: 0.85rem;
  color: #334155;
  font-weight: 600;
}

.feature-card-point svg {
  color: var(--accent-green);
  flex-shrink: 0;
  margin-top: 2px;
}

/* ==========================================================================
   Screenshots Gallery Section
   ========================================================================== */
.gallery-section {
  padding: 80px 0;
}

.gallery-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 32px;
}

.gallery-item {
  position: relative;
  border-radius: var(--radius-lg);
  overflow: hidden;
  background: #0f172a;
  box-shadow: var(--shadow-lg);
  border: 3px solid #ffffff;
  cursor: pointer;
  transition: all var(--transition-smooth);
}

.gallery-item:hover {
  transform: translateY(-6px);
  box-shadow: 0 25px 45px -10px rgba(2, 132, 199, 0.3);
  border-color: var(--primary-light);
}

.gallery-item img {
  width: 100%;
  display: block;
  transition: transform var(--transition-smooth);
}

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

.gallery-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(0deg, rgba(7, 19, 41, 0.85) 0%, rgba(7, 19, 41, 0) 60%);
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 24px;
  color: #ffffff;
}

.gallery-overlay h4 {
  font-size: 1.25rem;
  font-weight: 800;
  margin-bottom: 4px;
}

.gallery-overlay p {
  font-size: 0.88rem;
  color: #cbd5e1;
}

.gallery-zoom-badge {
  position: absolute;
  top: 16px;
  right: 16px;
  background: rgba(0, 0, 0, 0.5);
  backdrop-filter: blur(8px);
  width: 40px;
  height: 40px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #ffffff;
}

/* ==========================================================================
   Installation Guide Section
   ========================================================================== */
.install-section {
  padding: 80px 0;
  background: #ffffff;
  border-radius: 40px;
  box-shadow: var(--shadow-sm);
  margin: 40px 0;
}

.install-timeline {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
  margin-bottom: 48px;
  position: relative;
}

.install-timeline::before {
  content: '';
  position: absolute;
  top: 36px;
  left: 10%;
  right: 10%;
  height: 3px;
  background: linear-gradient(90deg, var(--primary), var(--accent-green));
  z-index: 0;
  opacity: 0.35;
}

.install-card {
  position: relative;
  z-index: 1;
  background: var(--bg-main);
  border-radius: var(--radius-lg);
  padding: 32px 20px 24px;
  text-align: center;
  border: 1px solid rgba(2, 132, 199, 0.15);
  transition: all var(--transition-smooth);
}

.install-card:hover {
  transform: translateY(-6px);
  background: #ffffff;
  border-color: var(--primary);
  box-shadow: var(--shadow-md);
}

.install-icon-wrap {
  width: 68px;
  height: 68px;
  border-radius: 50%;
  background: #ffffff;
  border: 4px solid var(--primary-light);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.6rem;
  margin: -50px auto 20px;
  box-shadow: 0 8px 18px rgba(2, 132, 199, 0.2);
  color: var(--primary);
}

.install-card:nth-child(1) .install-icon-wrap { border-color: #38bdf8; color: #0284c7; }
.install-card:nth-child(2) .install-icon-wrap { border-color: #fbbf24; color: #d97706; }
.install-card:nth-child(3) .install-icon-wrap { border-color: #a78bfa; color: #7c3aed; }
.install-card:nth-child(4) .install-icon-wrap { border-color: #34d399; color: #059669; }

.install-step-num {
  font-size: 0.78rem;
  font-weight: 800;
  text-transform: uppercase;
  color: var(--primary);
  letter-spacing: 0.06em;
  margin-bottom: 6px;
}

.install-card h4 {
  font-size: 1.15rem;
  font-weight: 800;
  color: #0f172a;
  margin-bottom: 10px;
}

.install-card p {
  font-size: 0.88rem;
  color: #475569;
  line-height: 1.6;
}

/* Play Protect Security Callout */
.security-callout {
  background: #f0fdf4;
  border: 1px solid #86efac;
  border-radius: var(--radius-md);
  padding: 24px;
  display: flex;
  align-items: flex-start;
  gap: 18px;
}

.security-icon {
  width: 48px;
  height: 48px;
  border-radius: 12px;
  background: #10b981;
  color: #ffffff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  flex-shrink: 0;
}

.security-content h5 {
  font-size: 1.05rem;
  font-weight: 800;
  color: #14532d;
  margin-bottom: 4px;
}

.security-content p {
  font-size: 0.9rem;
  color: #166534;
  line-height: 1.55;
}

/* ==========================================================================
   Technical Specifications Table
   ========================================================================== */
.specs-section {
  padding: 60px 0 100px;
}

.specs-table-wrapper {
  background: #ffffff;
  border-radius: var(--radius-xl);
  overflow: hidden;
  box-shadow: var(--shadow-md);
  border: 1px solid rgba(2, 132, 199, 0.12);
}

.specs-table {
  width: 100%;
  border-collapse: collapse;
  text-align: left;
}

.specs-table th, .specs-table td {
  padding: 18px 28px;
  font-size: 0.95rem;
}

.specs-table tr:not(:last-child) {
  border-bottom: 1px solid #f1f5f9;
}

.specs-table tr:hover {
  background: #f8fafc;
}

.specs-table td.spec-name {
  width: 32%;
  font-weight: 700;
  color: #0c4a6e;
  display: flex;
  align-items: center;
  gap: 10px;
}

.specs-table td.spec-val {
  color: #334155;
  font-weight: 600;
}

.hash-code-block {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  background: #f1f5f9;
  padding: 6px 14px;
  border-radius: 8px;
  font-family: monospace;
  font-size: 0.85rem;
  color: #0f172a;
  word-break: break-all;
}

.btn-copy-hash {
  padding: 4px 10px;
  background: #0284c7;
  color: #ffffff;
  border-radius: 6px;
  font-size: 0.75rem;
  font-weight: 700;
  white-space: nowrap;
}

.btn-copy-hash:hover {
  background: #0369a1;
}

/* ==========================================================================
   FAQ Section
   ========================================================================== */
.faq-section {
  padding: 60px 0 100px;
}

.faq-list {
  max-width: 840px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.faq-item {
  background: #ffffff;
  border-radius: var(--radius-md);
  border: 1px solid rgba(2, 132, 199, 0.12);
  box-shadow: var(--shadow-sm);
  overflow: hidden;
  transition: all var(--transition-fast);
}

.faq-item.active {
  border-color: var(--primary);
  box-shadow: var(--shadow-md);
}

.faq-question {
  width: 100%;
  padding: 22px 28px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  text-align: left;
  font-size: 1.05rem;
  font-weight: 800;
  color: #0f172a;
}

.faq-icon-arrow {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: #f1f5f9;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  transition: transform var(--transition-fast);
  color: var(--primary);
}

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

.faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.35s ease;
}

.faq-answer-inner {
  padding: 0 28px 24px;
  font-size: 0.95rem;
  color: #475569;
  line-height: 1.7;
}

/* ==========================================================================
   Final CTA Banner
   ========================================================================== */
.final-cta-section {
  padding: 60px 0 100px;
}

.cta-banner {
  background: linear-gradient(135deg, #0284c7 0%, #0369a1 60%, #0c4a6e 100%);
  border-radius: var(--radius-xl);
  padding: 64px 48px;
  text-align: center;
  color: #ffffff;
  position: relative;
  overflow: hidden;
  box-shadow: var(--shadow-lg);
}

.cta-banner-content {
  position: relative;
  z-index: 1;
  max-width: 680px;
  margin: 0 auto;
}

.cta-banner h2 {
  font-size: clamp(2rem, 3.5vw, 2.8rem);
  font-weight: 800;
  margin-bottom: 16px;
}

.cta-banner p {
  font-size: 1.1rem;
  color: #e0f2fe;
  line-height: 1.7;
  margin-bottom: 36px;
}

/* ==========================================================================
   Footer
   ========================================================================== */
.footer {
  background: #071329;
  color: #94a3b8;
  padding: 64px 0 32px;
  position: relative;
}

.footer-top {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr;
  gap: 48px;
  margin-bottom: 48px;
}

.footer-brand {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 16px;
}

.footer-brand img {
  width: 44px;
  height: 44px;
  border-radius: 12px;
}

.footer-brand h4 {
  font-size: 1.4rem;
  font-weight: 800;
  color: #f8fafc;
}

.footer-about p {
  font-size: 0.92rem;
  line-height: 1.65;
  color: #94a3b8;
  max-width: 380px;
}

.footer-col h5 {
  font-size: 1rem;
  font-weight: 700;
  color: #ffffff;
  margin-bottom: 20px;
}

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

.footer-links a {
  font-size: 0.9rem;
  color: #94a3b8;
  transition: color var(--transition-fast);
}

.footer-links a:hover {
  color: #38bdf8;
}

.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  padding-top: 28px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 0.85rem;
  flex-wrap: wrap;
  gap: 16px;
}

.btn-back-top {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: #38bdf8;
  font-weight: 700;
  font-size: 0.85rem;
}

.btn-back-top:hover {
  text-decoration: underline;
}

/* ==========================================================================
   Modals & Popups
   ========================================================================== */
.modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(11, 19, 43, 0.75);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  z-index: 2000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  opacity: 0;
  visibility: hidden;
  transition: all var(--transition-smooth);
}

.modal-overlay.open {
  opacity: 1;
  visibility: visible;
}

.modal-card {
  background: #ffffff;
  border-radius: var(--radius-xl);
  max-width: 580px;
  width: 100%;
  padding: 30px;
  box-shadow: 0 25px 60px rgba(0, 0, 0, 0.35);
  position: relative;
  transform: translateY(20px) scale(0.95);
  transition: all var(--transition-bounce);
  max-height: 85vh;
  overflow-y: auto;
  scrollbar-width: thin;
  scrollbar-color: #cbd5e1 transparent;
}

.modal-card::-webkit-scrollbar {
  width: 6px;
}

.modal-card::-webkit-scrollbar-track {
  background: transparent;
}

.modal-card::-webkit-scrollbar-thumb {
  background: #cbd5e1;
  border-radius: 4px;
}

.modal-overlay.open .modal-card {
  transform: translateY(0) scale(1);
}

.modal-close-btn {
  position: absolute;
  top: 18px;
  right: 18px;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: #f1f5f9;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #64748b;
  font-size: 1.2rem;
  transition: all var(--transition-fast);
  z-index: 10;
}

.modal-close-btn:hover {
  background: #e2e8f0;
  color: #0f172a;
}

/* Download Modal Content */
.dl-modal-header {
  text-align: center;
  margin-bottom: 24px;
}

.dl-modal-icon {
  width: 72px;
  height: 72px;
  border-radius: 20px;
  background: linear-gradient(135deg, #10b981, #059669);
  color: #ffffff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2rem;
  margin: 0 auto 16px;
  box-shadow: 0 10px 25px rgba(16, 185, 129, 0.3);
}

.dl-modal-header h3 {
  font-size: 1.5rem;
  font-weight: 800;
  color: #0c4a6e;
  margin-bottom: 6px;
}

.dl-modal-header p {
  font-size: 0.92rem;
  color: var(--text-muted);
}

/* Download Progress Bar */
.dl-progress-box {
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  border-radius: var(--radius-md);
  padding: 18px;
  margin-bottom: 24px;
}

.dl-progress-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 0.85rem;
  font-weight: 700;
  color: #334155;
  margin-bottom: 10px;
}

.progress-track {
  width: 100%;
  height: 10px;
  background: #e2e8f0;
  border-radius: var(--radius-full);
  overflow: hidden;
  position: relative;
}

.progress-bar-fill {
  height: 100%;
  width: 0%;
  background: linear-gradient(90deg, #10b981, #38bdf8);
  border-radius: var(--radius-full);
  transition: width 2s ease-out;
}

.dl-file-details {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: 10px;
  font-size: 0.78rem;
  color: var(--text-muted);
}

.dl-action-links {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-bottom: 24px;
}

.btn-dl-direct {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 14px;
  border-radius: var(--radius-md);
  background: linear-gradient(135deg, #10b981, #059669);
  color: #ffffff;
  font-weight: 800;
  font-size: 1rem;
  box-shadow: 0 6px 18px rgba(16, 185, 129, 0.35);
  transition: all var(--transition-fast);
}

.btn-dl-direct:hover {
  background: linear-gradient(135deg, #059669, #047857);
}

.dl-tips-box {
  background: #eff6ff;
  border-radius: var(--radius-md);
  padding: 16px;
  font-size: 0.84rem;
  color: #1e40af;
  line-height: 1.5;
}

/* Toast Notifications */
.toast-msg {
  position: fixed;
  bottom: 28px;
  right: 28px;
  background: #0f172a;
  color: #ffffff;
  padding: 12px 24px;
  border-radius: var(--radius-full);
  font-size: 0.9rem;
  font-weight: 700;
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.3);
  display: flex;
  align-items: center;
  gap: 10px;
  z-index: 3000;
  transform: translateY(100px);
  opacity: 0;
  transition: all 0.35s cubic-bezier(0.16, 1, 0.3, 1);
}

.toast-msg.show {
  transform: translateY(0);
  opacity: 1;
}

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

  .hero-content {
    align-items: center;
  }

  .hero-desc {
    margin-left: auto;
    margin-right: auto;
  }

  .hero-cta-group {
    justify-content: center;
  }

  .hero-specs-list {
    justify-content: center;
  }

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

  .stat-item:nth-child(2)::after {
    display: none;
  }

  .install-timeline {
    grid-template-columns: repeat(2, 1fr);
    gap: 36px 20px;
  }

  .install-timeline::before {
    display: none;
  }

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

@media (max-width: 768px) {
  .nav-menu {
    position: fixed;
    top: 74px;
    left: 0;
    right: 0;
    background: #ffffff;
    padding: 24px;
    flex-direction: column;
    gap: 16px;
    box-shadow: 0 20px 30px rgba(0, 0, 0, 0.1);
    transform: translateY(-150%);
    transition: transform var(--transition-smooth);
    border-bottom: 2px solid #e0f2fe;
  }

  .nav-menu.open {
    transform: translateY(0);
  }

  .mobile-toggle {
    display: flex;
  }

  .nav-btn-download {
    display: none;
  }

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

  .stat-item::after {
    display: none !important;
  }

  .install-timeline {
    grid-template-columns: 1fr;
  }

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

  .specs-table th, .specs-table td {
    padding: 14px 16px;
    font-size: 0.88rem;
  }

  .floating-farhaan-badge {
    left: 0;
    top: -15px;
  }

  .floating-ar-badge {
    right: 0;
    bottom: -15px;
  }
}
