/* ==========================================================================
   AvanzoPay - Modern Fintech Landing Page Stylesheet
   Brand Colors: Deep Plum (#3E1849) & Vibrant Gold (#F5A623)
   ========================================================================== */

:root {
  /* Brand Palette */
  --primary: #3E1849;
  --primary-dark: #260C2E;
  --primary-light: #5B256B;
  --primary-rgb: 62, 24, 73;
  
  --accent: #F5A623;
  --accent-light: #FFBF43;
  --accent-dark: #D98200;
  --accent-rgb: 245, 166, 35;

  --secondary: #632076;
  --secondary-glow: rgba(99, 32, 118, 0.4);

  --success: #10B981;
  --success-light: #D1FAE5;
  --info: #3B82F6;
  --warning: #F59E0B;

  /* Neutral Dark Theme */
  --bg-dark: #0D0814;
  --bg-surface: #171022;
  --bg-surface-2: #211730;
  --bg-surface-3: #2B1E3E;
  --bg-glass: rgba(33, 23, 48, 0.7);
  --bg-glass-light: rgba(255, 255, 255, 0.05);

  /* Light Accent / Contrast */
  --text-white: #FFFFFF;
  --text-primary: #F8F9FA;
  --text-muted: #A39DB2;
  --text-dim: #736B84;
  --border-glass: rgba(245, 166, 35, 0.18);
  --border-subtle: rgba(255, 255, 255, 0.08);

  /* Shadows & Glows */
  --shadow-sm: 0 4px 12px rgba(0, 0, 0, 0.25);
  --shadow-md: 0 10px 30px rgba(0, 0, 0, 0.4);
  --shadow-lg: 0 20px 50px rgba(0, 0, 0, 0.55);
  --glow-primary: 0 0 40px rgba(99, 32, 118, 0.35);
  --glow-accent: 0 0 35px rgba(245, 166, 35, 0.35);
  --glow-gold: 0 8px 30px rgba(245, 166, 35, 0.28);

  /* Typography & Layout */
  --font-main: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  --font-heading: 'Outfit', 'Plus Jakarta Sans', sans-serif;
  --max-width: 1240px;
  --radius-sm: 10px;
  --radius-md: 16px;
  --radius-lg: 24px;
  --radius-xl: 32px;
  --radius-pill: 9999px;
  
  --transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
  --transition-bounce: all 0.45s cubic-bezier(0.34, 1.56, 0.64, 1);
}

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

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

body {
  font-family: var(--font-main);
  background-color: var(--bg-dark);
  color: var(--text-primary);
  line-height: 1.6;
  overflow-x: hidden;
  position: relative;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/* Background Ambient Lights */
.ambient-glow-1 {
  position: fixed;
  top: -15%;
  left: 20%;
  width: 650px;
  height: 650px;
  background: radial-gradient(circle, rgba(99, 32, 118, 0.35) 0%, rgba(62, 24, 73, 0) 70%);
  filter: blur(80px);
  pointer-events: none;
  z-index: 0;
}

.ambient-glow-2 {
  position: fixed;
  top: 40%;
  right: -10%;
  width: 550px;
  height: 550px;
  background: radial-gradient(circle, rgba(245, 166, 35, 0.18) 0%, rgba(245, 166, 35, 0) 70%);
  filter: blur(90px);
  pointer-events: none;
  z-index: 0;
}

.ambient-glow-3 {
  position: fixed;
  bottom: 5%;
  left: -5%;
  width: 500px;
  height: 500px;
  background: radial-gradient(circle, rgba(99, 32, 118, 0.25) 0%, rgba(13, 8, 20, 0) 70%);
  filter: blur(80px);
  pointer-events: none;
  z-index: 0;
}

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

/* Typography Helpers */
h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-heading);
  font-weight: 700;
  line-height: 1.2;
  color: var(--text-white);
  letter-spacing: -0.02em;
}

.gradient-text {
  background: linear-gradient(135deg, #FFFFFF 20%, #F5A623 75%, #FFBF43 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  display: inline-block;
}

.gradient-purple-text {
  background: linear-gradient(135deg, #FFBF43 0%, #F5A623 50%, #FFFFFF 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  display: inline-block;
}

p {
  color: var(--text-muted);
  font-size: 1.05rem;
}

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

/* Glass Card Component */
.glass-card {
  background: var(--bg-glass);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid var(--border-glass);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-md);
  transition: var(--transition);
}

.glass-card:hover {
  border-color: rgba(245, 166, 35, 0.4);
  box-shadow: var(--shadow-lg), 0 0 25px rgba(245, 166, 35, 0.15);
}

/* Badges */
.badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.4rem 0.9rem;
  border-radius: var(--radius-pill);
  font-size: 0.825rem;
  font-weight: 600;
  letter-spacing: 0.02em;
  text-transform: uppercase;
}

.badge-gold {
  background: rgba(245, 166, 35, 0.12);
  color: var(--accent-light);
  border: 1px solid rgba(245, 166, 35, 0.35);
}

.badge-purple {
  background: rgba(99, 32, 118, 0.25);
  color: #E6B5FF;
  border: 1px solid rgba(179, 102, 237, 0.3);
}

.badge-success {
  background: rgba(16, 185, 129, 0.12);
  color: var(--success);
  border: 1px solid rgba(16, 185, 129, 0.3);
}

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

.btn-primary {
  background: linear-gradient(135deg, #F5A623 0%, #E08700 100%);
  color: #1A0A20;
  font-weight: 700;
  box-shadow: var(--glow-gold);
}

.btn-primary:hover {
  transform: translateY(-2px) scale(1.02);
  box-shadow: 0 12px 35px rgba(245, 166, 35, 0.45);
  background: linear-gradient(135deg, #FFBF43 0%, #F5A623 100%);
  color: #0E0312;
}

.btn-secondary {
  background: rgba(255, 255, 255, 0.07);
  color: var(--text-white);
  border: 1px solid var(--border-subtle);
  backdrop-filter: blur(12px);
}

.btn-secondary:hover {
  background: rgba(255, 255, 255, 0.12);
  border-color: rgba(245, 166, 35, 0.35);
  color: var(--accent-light);
  transform: translateY(-2px);
}

.btn-outline-gold {
  background: transparent;
  color: var(--accent-light);
  border: 1px solid var(--accent);
}

.btn-outline-gold:hover {
  background: rgba(245, 166, 35, 0.15);
  transform: translateY(-2px);
}

.btn-sm {
  padding: 0.6rem 1.25rem;
  font-size: 0.875rem;
}

.btn-lg {
  padding: 1.1rem 2.2rem;
  font-size: 1.125rem;
}

.btn svg {
  flex-shrink: 0;
  transition: transform 0.25s ease;
}

.btn:hover svg {
  transform: translateX(3px);
}

/* ==========================================================================
   Header & Navbar
   ========================================================================== */
.header {
  position: sticky;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 100;
  padding: 1rem 0;
  transition: var(--transition);
  background: rgba(13, 8, 20, 0.65);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.header.scrolled {
  padding: 0.75rem 0;
  background: rgba(13, 8, 20, 0.88);
  border-bottom-color: rgba(245, 166, 35, 0.2);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
}

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

.brand-logo {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  text-decoration: none;
}

.brand-logo img {
  height: 44px;
  width: auto;
  object-fit: contain;
  filter: drop-shadow(0 2px 8px rgba(245, 166, 35, 0.3));
}

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

.nav-links a {
  font-size: 0.95rem;
  font-weight: 500;
  color: var(--text-muted);
  position: relative;
  padding: 0.25rem 0;
}

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

.nav-links a::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0%;
  height: 2px;
  background: var(--accent);
  transition: width 0.3s ease;
  border-radius: 2px;
}

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

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

.mobile-menu-btn {
  display: none;
  background: transparent;
  border: 1px solid var(--border-subtle);
  color: var(--text-white);
  padding: 0.6rem;
  border-radius: var(--radius-sm);
  cursor: pointer;
}

/* ==========================================================================
   Hero Section
   ========================================================================== */
.hero-section {
  padding: 4.5rem 0 5rem;
  position: relative;
  overflow: hidden;
}

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

.hero-content {
  position: relative;
  z-index: 2;
}

.hero-pill-badge {
  margin-bottom: 1.5rem;
}

.hero-title {
  font-size: clamp(2.4rem, 4.5vw, 3.8rem);
  font-weight: 800;
  line-height: 1.12;
  margin-bottom: 1.5rem;
}

.hero-subtitle {
  font-size: clamp(1.05rem, 1.8vw, 1.25rem);
  color: var(--text-muted);
  margin-bottom: 2.25rem;
  max-width: 560px;
}

.hero-cta-group {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 1.25rem;
  margin-bottom: 2.5rem;
}

.play-store-btn {
  background: #000000;
  border: 1px solid rgba(255, 255, 255, 0.2);
  color: #FFFFFF;
  padding: 0.75rem 1.6rem;
  border-radius: var(--radius-md);
  display: inline-flex;
  align-items: center;
  gap: 0.9rem;
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.4);
  transition: var(--transition);
}

.play-store-btn:hover {
  border-color: var(--accent);
  background: #110B17;
  transform: translateY(-2px);
  box-shadow: 0 15px 35px rgba(245, 166, 35, 0.25);
}

.play-store-btn .play-icon {
  width: 28px;
  height: 28px;
}

.play-store-btn .btn-text-wrap {
  text-align: left;
  line-height: 1.2;
}

.play-store-btn .btn-sub {
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--text-muted);
}

.play-store-btn .btn-main {
  font-size: 1.1rem;
  font-weight: 700;
  color: #FFFFFF;
}

.qr-trigger-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  background: rgba(255, 255, 255, 0.05);
  border: 1px dashed rgba(245, 166, 35, 0.4);
  padding: 0.85rem 1.4rem;
  border-radius: var(--radius-md);
  color: var(--text-primary);
  font-size: 0.95rem;
  font-weight: 600;
  cursor: pointer;
  transition: var(--transition);
}

.qr-trigger-btn:hover {
  background: rgba(245, 166, 35, 0.1);
  border-color: var(--accent);
  color: var(--accent-light);
}

/* Trust Stats Micro Strip */
.hero-trust-strip {
  display: flex;
  align-items: center;
  gap: 2rem;
  padding-top: 1.75rem;
  border-top: 1px solid var(--border-subtle);
}

.trust-item {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.trust-icon-box {
  width: 42px;
  height: 42px;
  border-radius: 50%;
  background: rgba(245, 166, 35, 0.12);
  border: 1px solid rgba(245, 166, 35, 0.25);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--accent);
}

.trust-text-box strong {
  display: block;
  font-size: 1.05rem;
  color: var(--text-white);
  font-family: var(--font-heading);
}

.trust-text-box span {
  font-size: 0.8rem;
  color: var(--text-muted);
}

/* Hero Visual & 3D Phone Mockup */
.hero-visual {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
}

.phone-mockup-wrapper {
  position: relative;
  z-index: 2;
  perspective: 1000px;
}

.phone-mockup-img {
  width: 100%;
  max-width: 360px;
  height: auto;
  display: block;
  filter: drop-shadow(0 25px 50px rgba(0, 0, 0, 0.75)) drop-shadow(0 0 45px rgba(99, 32, 118, 0.35));
  animation: floatPhone 6s ease-in-out infinite;
}

/* Floating Interactive Badges (Positioned outside phone UI) */
.floating-badges-container {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
}

.floating-badge {
  position: absolute;
  z-index: 3;
  padding: 0.75rem 1.05rem;
  border-radius: var(--radius-md);
  background: rgba(23, 16, 34, 0.92);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid rgba(245, 166, 35, 0.35);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.55);
  display: flex;
  align-items: center;
  gap: 0.75rem;
  animation: floatBadge 5s ease-in-out infinite;
  pointer-events: auto;
  white-space: nowrap;
}

.floating-badge.badge-top-left {
  top: 8%;
  right: calc(100% - 10px);
  left: auto;
  animation-delay: 0s;
}

.floating-badge.badge-mid-right {
  top: 36%;
  left: calc(100% - 15px);
  right: auto;
  animation-delay: 2.2s;
  border-color: rgba(16, 185, 129, 0.45);
}

.floating-badge.badge-bottom-right {
  bottom: 8%;
  left: calc(100% - 25px);
  right: auto;
  animation-delay: 1.2s;
  border-color: rgba(245, 166, 35, 0.35);
}

.badge-icon-circle {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.1rem;
}

.badge-icon-circle.gold {
  background: rgba(245, 166, 35, 0.18);
  color: var(--accent);
}

.badge-icon-circle.green {
  background: rgba(16, 185, 129, 0.18);
  color: var(--success);
}

.badge-content h5 {
  font-size: 0.9rem;
  margin-bottom: 0.15rem;
}

.badge-content p {
  font-size: 0.75rem;
  color: var(--text-muted);
}

/* ==========================================================================
   Partners & BBPS Trust Strip
   ========================================================================== */
.bbps-strip {
  padding: 2.25rem 0;
  background: linear-gradient(180deg, rgba(33, 23, 48, 0.4) 0%, rgba(13, 8, 20, 0.8) 100%);
  border-top: 1px solid var(--border-subtle);
  border-bottom: 1px solid var(--border-subtle);
}

.bbps-strip-inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 2rem;
}

.bbps-label {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.bbps-icon-tag {
  background: #E85D04;
  color: #FFFFFF;
  font-weight: 800;
  font-size: 0.75rem;
  padding: 0.35rem 0.65rem;
  border-radius: 4px;
  letter-spacing: 0.05em;
}

.bbps-partners-list {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 2.5rem;
}

.partner-tag {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--text-muted);
  opacity: 0.85;
}

.partner-tag svg {
  color: var(--accent);
}

/* ==========================================================================
   Section Headers
   ========================================================================== */
.section {
  padding: 6rem 0;
  position: relative;
}

.section-header {
  text-align: center;
  max-width: 680px;
  margin: 0 auto 3.5rem;
}

.section-header .badge {
  margin-bottom: 1rem;
}

.section-title {
  font-size: clamp(2rem, 3.2vw, 2.75rem);
  font-weight: 800;
  margin-bottom: 1rem;
}

.section-desc {
  font-size: 1.1rem;
  color: var(--text-muted);
}

/* ==========================================================================
   BBPS Services Grid Section
   ========================================================================== */
.services-tabs-nav {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-bottom: 2.5rem;
}

.tab-pill {
  padding: 0.65rem 1.4rem;
  border-radius: var(--radius-pill);
  background: var(--bg-surface-2);
  border: 1px solid var(--border-subtle);
  color: var(--text-muted);
  font-size: 0.95rem;
  font-weight: 600;
  cursor: pointer;
  transition: var(--transition);
}

.tab-pill:hover {
  color: var(--text-white);
  border-color: rgba(245, 166, 35, 0.3);
}

.tab-pill.active {
  background: linear-gradient(135deg, rgba(245, 166, 35, 0.2) 0%, rgba(99, 32, 118, 0.3) 100%);
  color: var(--accent-light);
  border-color: var(--accent);
  box-shadow: 0 4px 20px rgba(245, 166, 35, 0.2);
}

.services-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 1.5rem;
}

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

.service-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 3px;
  background: linear-gradient(90deg, transparent, var(--accent), transparent);
  opacity: 0;
  transition: opacity 0.3s ease;
}

.service-card:hover {
  transform: translateY(-6px);
  border-color: rgba(245, 166, 35, 0.35);
  background: var(--bg-surface-2);
  box-shadow: 0 15px 35px rgba(0, 0, 0, 0.4), 0 0 25px rgba(99, 32, 118, 0.25);
}

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

.service-icon-wrap {
  width: 58px;
  height: 58px;
  border-radius: var(--radius-md);
  background: linear-gradient(135deg, rgba(245, 166, 35, 0.15) 0%, rgba(99, 32, 118, 0.2) 100%);
  border: 1px solid rgba(245, 166, 35, 0.25);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--accent-light);
  margin-bottom: 1.25rem;
  transition: var(--transition);
}

.service-card:hover .service-icon-wrap {
  background: linear-gradient(135deg, var(--accent) 0%, #D98200 100%);
  color: #1A0A20;
  transform: scale(1.08) rotate(3deg);
  box-shadow: 0 8px 20px rgba(245, 166, 35, 0.35);
}

.service-card h3 {
  font-size: 1.2rem;
  margin-bottom: 0.5rem;
}

.service-card p {
  font-size: 0.9rem;
  color: var(--text-muted);
  margin-bottom: 1rem;
}

.service-tag {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  font-size: 0.775rem;
  font-weight: 600;
  color: var(--accent);
}

/* ==========================================================================
   Savings & Rewards Calculator Section
   ========================================================================== */
.calc-section {
  background: linear-gradient(180deg, var(--bg-dark) 0%, var(--bg-surface) 50%, var(--bg-dark) 100%);
  position: relative;
}

.calc-box {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: 2.5rem;
  padding: 3rem;
  border-radius: var(--radius-xl);
  background: var(--bg-surface-2);
  border: 1px solid var(--border-glass);
  box-shadow: var(--shadow-lg), 0 0 40px rgba(99, 32, 118, 0.2);
}

.calc-sliders {
  display: flex;
  flex-direction: column;
  gap: 1.75rem;
}

.slider-group {
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
}

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

.slider-label {
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--text-white);
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.slider-val {
  font-family: var(--font-heading);
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--accent);
}

.custom-range {
  -webkit-appearance: none;
  width: 100%;
  height: 8px;
  border-radius: 4px;
  background: rgba(255, 255, 255, 0.1);
  outline: none;
  transition: background 0.2s;
}

.custom-range::-webkit-slider-thumb {
  -webkit-appearance: none;
  appearance: none;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: var(--accent);
  cursor: pointer;
  box-shadow: 0 0 12px rgba(245, 166, 35, 0.6);
  border: 2px solid #FFFFFF;
  transition: transform 0.15s ease;
}

.custom-range::-webkit-slider-thumb:hover {
  transform: scale(1.2);
}

/* Calculator Result Card */
.calc-result-card {
  background: linear-gradient(145deg, rgba(62, 24, 73, 0.7) 0%, rgba(23, 16, 34, 0.9) 100%);
  border: 1px solid rgba(245, 166, 35, 0.3);
  border-radius: var(--radius-lg);
  padding: 2.25rem;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  text-align: center;
  position: relative;
  overflow: hidden;
}

.calc-result-card::before {
  content: '';
  position: absolute;
  top: -50%;
  left: -50%;
  width: 200%;
  height: 200%;
  background: radial-gradient(circle, rgba(245, 166, 35, 0.1) 0%, transparent 60%);
  pointer-events: none;
}

.calc-result-heading {
  font-size: 0.95rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--text-muted);
  margin-bottom: 0.5rem;
}

.calc-total-amount {
  font-size: 3rem;
  font-weight: 800;
  color: var(--accent-light);
  font-family: var(--font-heading);
  line-height: 1;
  margin-bottom: 0.5rem;
}

.calc-subtitle {
  font-size: 0.85rem;
  color: var(--text-muted);
  margin-bottom: 1.75rem;
}

.calc-breakdown {
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
  text-align: left;
  margin-bottom: 2rem;
  padding: 1rem;
  background: rgba(0, 0, 0, 0.25);
  border-radius: var(--radius-md);
  border: 1px solid var(--border-subtle);
}

.breakdown-row {
  display: flex;
  justify-content: space-between;
  font-size: 0.9rem;
}

.breakdown-row span:last-child {
  font-weight: 600;
  color: var(--text-white);
}

/* ==========================================================================
   Rewards & Local Offers Feature Spotlight
   ========================================================================== */
.rewards-spotlight-grid {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: 3.5rem;
  align-items: center;
}

.rewards-visual-col {
  position: relative;
  display: flex;
  justify-content: center;
}

.rewards-phone-img {
  width: 100%;
  max-width: 340px;
  height: auto;
  filter: drop-shadow(0 20px 40px rgba(0, 0, 0, 0.65)) drop-shadow(0 0 35px rgba(245, 166, 35, 0.2));
  animation: floatPhone 7s ease-in-out infinite reverse;
}

.merchant-categories-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.25rem;
  margin-top: 2rem;
}

.merchant-cat-card {
  padding: 1.25rem;
  background: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  transition: var(--transition);
}

.merchant-cat-card:hover {
  border-color: var(--accent);
  background: var(--bg-surface-2);
  transform: translateY(-3px);
}

.merchant-cat-header {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin-bottom: 0.5rem;
}

.merchant-cat-icon {
  width: 36px;
  height: 36px;
  border-radius: 8px;
  background: rgba(245, 166, 35, 0.15);
  color: var(--accent);
  display: flex;
  align-items: center;
  justify-content: center;
}

.merchant-cat-card h4 {
  font-size: 1.05rem;
}

.merchant-cat-card p {
  font-size: 0.825rem;
  color: var(--text-muted);
}

/* ==========================================================================
   How It Works (3 Steps)
   ========================================================================== */
.steps-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
  position: relative;
}

.step-card {
  background: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  padding: 2.5rem 1.75rem;
  position: relative;
  transition: var(--transition);
}

.step-card:hover {
  transform: translateY(-8px);
  border-color: rgba(245, 166, 35, 0.4);
  box-shadow: 0 15px 35px rgba(0, 0, 0, 0.4), 0 0 30px rgba(99, 32, 118, 0.25);
}

.step-number {
  position: absolute;
  top: 1.5rem;
  right: 1.5rem;
  font-family: var(--font-heading);
  font-size: 2.8rem;
  font-weight: 900;
  color: rgba(255, 255, 255, 0.04);
  line-height: 1;
}

.step-icon-wrap {
  width: 64px;
  height: 64px;
  border-radius: var(--radius-md);
  background: linear-gradient(135deg, rgba(99, 32, 118, 0.3) 0%, rgba(245, 166, 35, 0.2) 100%);
  border: 1px solid rgba(245, 166, 35, 0.3);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--accent-light);
  margin-bottom: 1.5rem;
}

.step-card h3 {
  font-size: 1.3rem;
  margin-bottom: 0.75rem;
}

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

/* ==========================================================================
   AvanzoPay for Business Section
   ========================================================================== */
.business-banner {
  background: linear-gradient(135deg, rgba(62, 24, 73, 0.8) 0%, rgba(23, 16, 34, 0.95) 100%);
  border: 1px solid rgba(245, 166, 35, 0.3);
  border-radius: var(--radius-xl);
  padding: 3.5rem;
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: 3rem;
  align-items: center;
  position: relative;
  overflow: hidden;
}

.business-features-list {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  margin: 1.75rem 0 2.25rem;
}

.biz-feature-item {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  font-size: 1rem;
  color: var(--text-primary);
}

.biz-feature-item svg {
  color: var(--accent);
  flex-shrink: 0;
}

.biz-card-preview {
  background: rgba(13, 8, 20, 0.7);
  border: 1px solid var(--border-glass);
  border-radius: var(--radius-lg);
  padding: 2rem;
  text-align: center;
}

/* ==========================================================================
   Testimonials & Social Proof
   ========================================================================== */
.testimonials-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 2rem;
}

.testimonial-card {
  background: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  padding: 2rem;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  transition: var(--transition);
}

.testimonial-card:hover {
  border-color: rgba(245, 166, 35, 0.35);
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
}

.rating-stars {
  display: flex;
  gap: 0.25rem;
  color: var(--accent);
  margin-bottom: 1rem;
}

.testimonial-quote {
  font-size: 1rem;
  color: var(--text-primary);
  font-style: italic;
  margin-bottom: 1.5rem;
  line-height: 1.5;
}

.user-profile {
  display: flex;
  align-items: center;
  gap: 0.85rem;
}

.user-avatar {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--accent) 0%, var(--primary) 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  color: #FFFFFF;
}

.user-info h5 {
  font-size: 0.95rem;
  margin-bottom: 0.1rem;
}

.user-info span {
  font-size: 0.8rem;
  color: var(--text-muted);
}

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

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

.faq-item:hover {
  border-color: rgba(245, 166, 35, 0.3);
}

.faq-header {
  padding: 1.35rem 1.5rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  cursor: pointer;
  user-select: none;
}

.faq-header h4 {
  font-size: 1.05rem;
  font-weight: 600;
  color: var(--text-white);
}

.faq-icon {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.05);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--accent);
  transition: transform 0.3s ease;
}

.faq-item.active .faq-icon {
  transform: rotate(180deg);
  background: var(--accent);
  color: #1A0A20;
}

.faq-content {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.35s ease, padding 0.35s ease;
  padding: 0 1.5rem;
}

.faq-item.active .faq-content {
  max-height: 250px;
  padding: 0 1.5rem 1.35rem;
}

.faq-content p {
  font-size: 0.95rem;
  line-height: 1.6;
  color: var(--text-muted);
}

/* ==========================================================================
   Bottom CTA Banner
   ========================================================================== */
.cta-banner-section {
  padding: 6rem 0 3rem;
}

.cta-banner-box {
  background: linear-gradient(135deg, rgba(62, 24, 73, 0.9) 0%, rgba(23, 16, 34, 0.95) 50%, rgba(13, 8, 20, 0.95) 100%);
  border: 1px solid rgba(245, 166, 35, 0.4);
  border-radius: var(--radius-xl);
  padding: 4rem 3rem;
  text-align: center;
  position: relative;
  overflow: hidden;
  box-shadow: var(--shadow-lg), 0 0 60px rgba(99, 32, 118, 0.35);
}

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

.cta-banner-title {
  font-size: clamp(2.2rem, 3.8vw, 3.2rem);
  margin-bottom: 1.25rem;
}

.cta-banner-desc {
  font-size: 1.15rem;
  margin-bottom: 2.5rem;
}

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

/* ==========================================================================
   Footer
   ========================================================================== */
.footer {
  background: #08040C;
  border-top: 1px solid rgba(255, 255, 255, 0.07);
  padding: 4.5rem 0 2rem;
  position: relative;
  z-index: 2;
}

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

.footer-brand p {
  font-size: 0.9rem;
  margin: 1rem 0 1.5rem;
  max-width: 320px;
}

.footer-col h5 {
  font-size: 1.05rem;
  margin-bottom: 1.25rem;
  color: var(--text-white);
}

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

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

.footer-links a:hover {
  color: var(--accent-light);
  padding-left: 4px;
}

.social-links {
  display: flex;
  gap: 0.75rem;
  margin-top: 1.25rem;
}

.social-btn {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-muted);
  transition: var(--transition);
}

.social-btn:hover {
  background: var(--accent);
  color: #1A0A20;
  border-color: var(--accent);
  transform: translateY(-2px);
}

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

.footer-bottom-links {
  display: flex;
  gap: 1.5rem;
}

/* ==========================================================================
   QR Code Modal
   ========================================================================== */
.modal-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background: rgba(10, 5, 18, 0.85);
  backdrop-filter: blur(12px);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 1000;
  opacity: 0;
  visibility: hidden;
  transition: var(--transition);
}

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

.modal-box {
  background: var(--bg-surface);
  border: 1px solid var(--border-glass);
  border-radius: var(--radius-xl);
  padding: 2.5rem;
  max-width: 440px;
  width: 90%;
  text-align: center;
  position: relative;
  box-shadow: var(--shadow-lg), 0 0 50px rgba(245, 166, 35, 0.2);
  transform: scale(0.9);
  transition: var(--transition-bounce);
}

.modal-overlay.active .modal-box {
  transform: scale(1);
}

.modal-close-btn {
  position: absolute;
  top: 1.25rem;
  right: 1.25rem;
  background: rgba(255, 255, 255, 0.05);
  border: none;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  color: var(--text-muted);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
}

.modal-close-btn:hover {
  color: #FFFFFF;
  background: rgba(255, 255, 255, 0.15);
}

.qr-code-img-wrap {
  background: #FFFFFF;
  padding: 1.25rem;
  border-radius: var(--radius-md);
  display: inline-block;
  margin: 1.5rem 0;
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.3);
}

.qr-code-img-wrap img,
.qr-code-img-wrap canvas {
  width: 180px;
  height: 180px;
  display: block;
}

/* ==========================================================================
   Analytics / Tracking Inspector Drawer & Modal
   ========================================================================== */
.tracking-badge-btn {
  position: fixed;
  bottom: 1.5rem;
  right: 1.5rem;
  z-index: 99;
  background: rgba(23, 16, 34, 0.9);
  border: 1px solid rgba(245, 166, 35, 0.5);
  backdrop-filter: blur(12px);
  color: var(--accent-light);
  padding: 0.6rem 1.1rem;
  border-radius: var(--radius-pill);
  font-size: 0.8rem;
  font-weight: 600;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  cursor: pointer;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.4);
  transition: var(--transition);
}

.tracking-badge-btn:hover {
  background: var(--accent);
  color: #1A0A20;
  transform: translateY(-2px);
  box-shadow: var(--glow-gold);
}

.tracking-drawer {
  position: fixed;
  top: 0;
  right: -420px;
  width: 400px;
  height: 100vh;
  background: #140E20;
  border-left: 1px solid rgba(245, 166, 35, 0.25);
  box-shadow: -10px 0 35px rgba(0, 0, 0, 0.6);
  z-index: 1001;
  transition: right 0.35s cubic-bezier(0.16, 1, 0.3, 1);
  display: flex;
  flex-direction: column;
}

.tracking-drawer.open {
  right: 0;
}

.drawer-header {
  padding: 1.25rem 1.5rem;
  border-bottom: 1px solid var(--border-subtle);
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.drawer-header h4 {
  font-size: 1.1rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.drawer-body {
  padding: 1.5rem;
  overflow-y: auto;
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.tracking-config-group {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.tracking-input {
  background: rgba(0, 0, 0, 0.35);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-sm);
  padding: 0.65rem 0.9rem;
  color: var(--text-white);
  font-family: monospace;
  font-size: 0.85rem;
  width: 100%;
}

.tracking-input:focus {
  outline: none;
  border-color: var(--accent);
}

.event-logs-list {
  background: rgba(0, 0, 0, 0.4);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-sm);
  padding: 0.85rem;
  font-family: monospace;
  font-size: 0.775rem;
  max-height: 260px;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.event-log-item {
  padding: 0.4rem 0.6rem;
  border-radius: 4px;
  background: rgba(255, 255, 255, 0.04);
  border-left: 3px solid var(--accent);
}

.event-log-item.pixel {
  border-left-color: #1877F2;
}

.event-log-item.gtm {
  border-left-color: #34A853;
}

.log-time {
  color: var(--text-dim);
  font-size: 0.7rem;
}

.log-name {
  color: #FFFFFF;
  font-weight: 600;
}

/* ==========================================================================
   Responsive Breakpoints
   ========================================================================== */
@media (max-width: 1024px) {
  .hero-grid,
  .rewards-spotlight-grid,
  .calc-box,
  .business-banner {
    grid-template-columns: 1fr;
    gap: 2.5rem;
  }

  .hero-visual {
    order: -1;
  }

  .phone-mockup-wrapper {
    display: flex;
    flex-direction: column;
    align-items: center;
  }

  .floating-badges-container {
    position: static;
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 0.75rem;
    margin-top: 1.25rem;
    width: 100%;
    z-index: 3;
    pointer-events: auto;
  }

  .floating-badge {
    position: static !important;
    transform: none !important;
    animation: none !important;
    margin: 0;
    width: auto;
    max-width: 100%;
  }

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

@media (max-width: 768px) {
  .nav-links {
    display: none;
  }

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

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

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

  .calc-box {
    padding: 1.75rem;
  }

  .business-banner {
    padding: 2rem;
  }

  .hero-trust-strip {
    flex-direction: column;
    align-items: flex-start;
    gap: 1rem;
  }

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

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

  .tracking-drawer {
    width: 100vw;
    right: -100vw;
  }
}
