/* Xcelo AI CSS Design System */

:root {
  --bg-color: #060913;
  --panel-bg: rgba(13, 20, 38, 0.65);
  --panel-border: rgba(255, 255, 255, 0.08);
  --primary-glow: rgba(30, 91, 250, 0.35);
  --secondary-glow: rgba(250, 50, 50, 0.35);
  
  --text-main: #f3f4f6;
  --text-muted: #9ca3af;
  
  --neon-cyan: #39f3ff;
  --neon-blue: #1e5bfa;
  --neon-red: #fa3232;
  --neon-orange: #ffb424;
  --play-green: #01875f;
  --play-green-hover: #00704e;
  
  --font-heading: 'Outfit', 'Plus Jakarta Sans', sans-serif;
  --font-body: 'Plus Jakarta Sans', system-ui, sans-serif;
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

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

/* Background Gradients */
.gradient-bg {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  z-index: -10;
  overflow: hidden;
}

.gradient-sphere {
  position: absolute;
  border-radius: 50%;
  filter: blur(140px);
  opacity: 0.45;
}

.sphere-1 {
  width: 50vw;
  height: 50vw;
  top: -10vw;
  left: -10vw;
  background: radial-gradient(circle, var(--neon-blue) 0%, transparent 70%);
}

.sphere-2 {
  width: 45vw;
  height: 45vw;
  bottom: -10vw;
  right: -10vw;
  background: radial-gradient(circle, var(--neon-red) 0%, transparent 70%);
}

.sphere-3 {
  width: 35vw;
  height: 35vw;
  top: 30vh;
  left: 35vw;
  background: radial-gradient(circle, var(--neon-cyan) 0%, transparent 70%);
  opacity: 0.25;
}

/* Navbar */
.navbar {
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--panel-border);
  padding: 1.2rem 2rem;
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(6, 9, 19, 0.65);
}

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

.brand {
  display: flex;
  align-items: center;
  gap: 0.8rem;
}

.nav-logo {
  width: 42px;
  height: 42px;
  filter: drop-shadow(0 0 10px rgba(57, 243, 255, 0.4));
  animation: logo-spin 15s linear infinite;
}

@keyframes logo-spin {
  0% { transform: rotate(0deg); }
  100% { transform: rotate(360deg); }
}

.brand-text {
  font-family: var(--font-heading);
  font-size: 1.6rem;
  font-weight: 800;
  letter-spacing: -0.5px;
}

.accent-text {
  background: linear-gradient(135deg, var(--neon-cyan), var(--neon-blue));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.nav-badge {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--panel-border);
  padding: 0.4rem 1rem;
  border-radius: 50px;
  font-size: 0.85rem;
  font-weight: 600;
}

.badge-dot {
  width: 8px;
  height: 8px;
  background-color: #10b981;
  border-radius: 50%;
  box-shadow: 0 0 8px #10b981;
  animation: pulse 1.5s infinite alternate;
}

@keyframes pulse {
  0% { opacity: 0.4; }
  100% { opacity: 1; }
}

/* Main layouts */
.main-content {
  max-width: 1200px;
  margin: 0 auto;
  padding: 3rem 1.5rem;
}

/* Hero Section */
.hero-section {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: center;
  margin-bottom: 5rem;
}

@media (max-width: 968px) {
  .hero-section {
    grid-template-columns: 1fr;
    gap: 3rem;
    text-align: center;
  }
  
  .hero-trust {
    justify-content: center;
  }
}

.hero-tag {
  background: linear-gradient(135deg, rgba(30, 91, 250, 0.15), rgba(57, 243, 255, 0.15));
  border: 1px solid rgba(57, 243, 255, 0.3);
  color: var(--neon-cyan);
  padding: 0.5rem 1.2rem;
  border-radius: 50px;
  font-size: 0.9rem;
  font-weight: 700;
  display: inline-block;
  margin-bottom: 1.5rem;
  letter-spacing: 0.5px;
  box-shadow: 0 4px 15px rgba(57, 243, 255, 0.1);
}

.hero-title {
  font-family: var(--font-heading);
  font-size: 3.5rem;
  font-weight: 800;
  line-height: 1.15;
  margin-bottom: 1.5rem;
  letter-spacing: -1px;
}

@media (max-width: 640px) {
  .hero-title {
    font-size: 2.5rem;
  }
}

.text-gradient {
  background: linear-gradient(135deg, var(--neon-cyan), var(--neon-blue) 40%, var(--neon-red));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  filter: drop-shadow(0 2px 10px rgba(30, 91, 250, 0.2));
}

.hero-subtitle {
  color: var(--text-muted);
  font-size: 1.2rem;
  margin-bottom: 2rem;
  font-weight: 400;
}

.hero-trust {
  display: flex;
  gap: 1.5rem;
  flex-wrap: wrap;
}

.trust-item {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--text-main);
  background: rgba(255, 255, 255, 0.03);
  padding: 0.5rem 1rem;
  border-radius: 8px;
  border: 1px solid rgba(255, 255, 255, 0.05);
}

.check-icon {
  color: var(--neon-cyan);
  font-weight: 800;
}

/* Play Store Premium Card */
.play-store-card-container {
  display: flex;
  justify-content: center;
  align-items: center;
}

.play-store-card {
  width: 100%;
  max-width: 440px;
  background: rgba(18, 25, 47, 0.65);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 28px;
  padding: 2.2rem;
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.4), 
              0 0 40px rgba(30, 91, 250, 0.15);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  transition: transform 0.4s ease, box-shadow 0.4s ease;
  position: relative;
  overflow: hidden;
}

.play-store-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 4px;
  background: linear-gradient(90deg, var(--neon-blue), var(--neon-cyan), var(--neon-orange), var(--neon-red));
}

.play-store-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 25px 50px rgba(0, 0, 0, 0.5), 
              0 0 50px rgba(30, 91, 250, 0.3);
}

.card-header {
  display: flex;
  gap: 1.5rem;
  margin-bottom: 2rem;
}

.app-icon-wrapper {
  background-color: #0b0f19;
  border: 2px solid rgba(255, 255, 255, 0.06);
  border-radius: 22px;
  padding: 10px;
  display: flex;
  justify-content: center;
  align-items: center;
  box-shadow: inset 0 0 20px rgba(0, 0, 0, 0.6), 
              0 8px 16px rgba(0, 0, 0, 0.3);
}

.app-icon {
  width: 76px;
  height: 76px;
  border-radius: 12px;
}

.app-details {
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.app-name {
  font-family: var(--font-heading);
  font-size: 1.8rem;
  font-weight: 800;
  color: #ffffff;
  margin-bottom: 0.2rem;
}

.app-developer {
  color: var(--neon-cyan);
  font-size: 0.95rem;
  font-weight: 600;
  margin-bottom: 0.5rem;
}

.app-badges {
  display: flex;
  gap: 0.5rem;
  flex-wrap: wrap;
}

.badge-play, .badge-verified {
  font-size: 0.75rem;
  font-weight: 700;
  padding: 0.25rem 0.6rem;
  border-radius: 4px;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.04);
  color: var(--text-muted);
}

.badge-verified {
  color: var(--neon-orange);
  background: rgba(255, 180, 36, 0.08);
  border-color: rgba(255, 180, 36, 0.2);
}

.app-stats {
  display: flex;
  justify-content: space-around;
  align-items: center;
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid rgba(255, 255, 255, 0.04);
  border-radius: 16px;
  padding: 1rem 0.5rem;
  margin-bottom: 2rem;
}

.stat-box {
  text-align: center;
  flex: 1;
}

.stat-value {
  font-family: var(--font-heading);
  font-size: 1.25rem;
  font-weight: 800;
  color: #ffffff;
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 0.2rem;
}

.stat-value .star {
  color: var(--neon-orange);
  font-size: 1rem;
}

.stat-label {
  font-size: 0.75rem;
  color: var(--text-muted);
  font-weight: 500;
  margin-top: 0.2rem;
}

.stat-divider {
  width: 1px;
  height: 30px;
  background: rgba(255, 255, 255, 0.08);
}

.action-buttons-wrapper {
  margin-bottom: 1.5rem;
}

/* Button design */
.btn {
  display: inline-flex;
  justify-content: center;
  align-items: center;
  width: 100%;
  padding: 1.1rem 2rem;
  font-size: 1.1rem;
  font-weight: 700;
  border-radius: 14px;
  cursor: pointer;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  text-decoration: none;
  font-family: var(--font-heading);
}

.btn-install {
  background-color: var(--play-green);
  color: #ffffff;
  border: none;
  box-shadow: 0 8px 24px rgba(1, 135, 95, 0.35);
}

.btn-install:hover {
  background-color: var(--play-green-hover);
  transform: translateY(-2px);
  box-shadow: 0 12px 30px rgba(1, 135, 95, 0.5);
}

.alert-info-box {
  background: rgba(57, 243, 255, 0.05);
  border: 1px solid rgba(57, 243, 255, 0.15);
  border-radius: 12px;
  padding: 0.8rem 1.2rem;
  font-size: 0.9rem;
  text-align: center;
  color: #ffffff;
}

/* Push Notification Incentive Section */
.notification-incentive-section {
  margin-bottom: 5rem;
}

.incentive-card {
  background: linear-gradient(135deg, rgba(30, 91, 250, 0.08), rgba(250, 50, 50, 0.08));
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: 24px;
  padding: 2rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 2rem;
  box-shadow: 0 15px 30px rgba(0, 0, 0, 0.25);
}

@media (max-width: 768px) {
  .incentive-card {
    flex-direction: column;
    text-align: center;
    gap: 1.5rem;
  }
}

.incentive-content {
  display: flex;
  align-items: center;
  gap: 1.5rem;
  flex: 1;
}

@media (max-width: 640px) {
  .incentive-content {
    flex-direction: column;
  }
}

.bell-glow-icon {
  background: linear-gradient(135deg, var(--neon-red), var(--neon-orange));
  color: #ffffff;
  padding: 1rem;
  border-radius: 20px;
  box-shadow: 0 0 25px rgba(250, 50, 50, 0.4);
  animation: wobble 2.5s ease infinite;
}

@keyframes wobble {
  0%, 100% { transform: rotate(0deg); }
  15% { transform: rotate(-15deg) scale(1.05); }
  30% { transform: rotate(12deg) scale(1.05); }
  45% { transform: rotate(-10deg) scale(1.05); }
  60% { transform: rotate(8deg) scale(1.05); }
  75% { transform: rotate(-4deg); }
}

.incentive-text h3 {
  font-family: var(--font-heading);
  font-size: 1.35rem;
  font-weight: 700;
  margin-bottom: 0.4rem;
  color: #ffffff;
}

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

.btn-notify {
  background: linear-gradient(135deg, var(--neon-blue), var(--neon-cyan));
  color: #ffffff;
  border: none;
  box-shadow: 0 8px 24px rgba(30, 91, 250, 0.35);
  flex-shrink: 0;
  width: auto;
  min-width: 250px;
  padding: 1.1rem 2.2rem;
}

.btn-notify:hover {
  transform: translateY(-2px);
  box-shadow: 0 12px 30px rgba(57, 243, 255, 0.5);
  filter: brightness(1.1);
}

/* Rewards Section */
.rewards-section {
  margin-bottom: 6rem;
}

.section-header {
  text-align: center;
  margin-bottom: 3.5rem;
}

.section-tag {
  color: var(--neon-orange);
  font-weight: 800;
  font-size: 0.85rem;
  letter-spacing: 2px;
  display: inline-block;
  margin-bottom: 0.8rem;
}

.section-title {
  font-family: var(--font-heading);
  font-size: 2.8rem;
  font-weight: 800;
  margin-bottom: 1rem;
}

.section-desc {
  color: var(--text-muted);
  max-width: 600px;
  margin: 0 auto;
  font-size: 1.1rem;
}

.rewards-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 2rem;
}

.reward-card {
  background: rgba(18, 25, 47, 0.45);
  border: 1px solid var(--panel-border);
  border-radius: 24px;
  padding: 2.5rem 2rem;
  text-align: center;
  position: relative;
  overflow: hidden;
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
}

.reward-card:hover {
  transform: translateY(-8px);
  border-color: rgba(255, 255, 255, 0.15);
  box-shadow: 0 20px 45px rgba(0, 0, 0, 0.35);
}

.card-glow {
  position: absolute;
  top: -50px;
  left: 50%;
  transform: translateX(-50%);
  width: 120px;
  height: 120px;
  border-radius: 50%;
  filter: blur(45px);
  opacity: 0.25;
  z-index: -1;
  transition: opacity 0.4s ease;
}

.reward-card:hover .card-glow {
  opacity: 0.45;
}

.red-glow { background-color: var(--neon-red); }
.blue-glow { background-color: var(--neon-blue); }
.orange-glow { background-color: var(--neon-orange); }
.green-glow { background-color: #10b981; }

.reward-icon-box {
  font-size: 3.2rem;
  margin-bottom: 1.5rem;
  filter: drop-shadow(0 8px 12px rgba(0, 0, 0, 0.3));
  transition: transform 0.4s ease;
}

.reward-card:hover .reward-icon-box {
  transform: scale(1.1) rotate(5deg);
}

.reward-name {
  font-family: var(--font-heading);
  font-size: 1.35rem;
  font-weight: 700;
  margin-bottom: 0.8rem;
  color: #ffffff;
}

.reward-details {
  color: var(--text-muted);
  font-size: 0.9rem;
  margin-bottom: 1.5rem;
}

.reward-pts {
  display: inline-block;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.08);
  color: var(--neon-cyan);
  padding: 0.4rem 1.2rem;
  border-radius: 50px;
  font-weight: 700;
  font-size: 0.85rem;
}

.highlight-card {
  border-color: rgba(30, 91, 250, 0.25);
  box-shadow: 0 10px 30px rgba(30, 91, 250, 0.1);
}

/* How It Works Section */
.how-it-works {
  margin-bottom: 4rem;
}

.steps-container {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 2rem;
  margin-top: 3.5rem;
}

.step-card {
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid rgba(255, 255, 255, 0.04);
  border-radius: 20px;
  padding: 2rem 1.5rem;
  position: relative;
  transition: background 0.3s ease;
}

.step-card:hover {
  background: rgba(255, 255, 255, 0.04);
}

.step-number {
  position: absolute;
  top: -20px;
  left: 20px;
  width: 44px;
  height: 44px;
  border-radius: 12px;
  background: linear-gradient(135deg, var(--neon-blue), var(--neon-cyan));
  color: #ffffff;
  display: flex;
  justify-content: center;
  align-items: center;
  font-family: var(--font-heading);
  font-size: 1.3rem;
  font-weight: 800;
  box-shadow: 0 5px 15px rgba(30, 91, 250, 0.3);
}

.step-card h4 {
  font-family: var(--font-heading);
  font-size: 1.15rem;
  font-weight: 700;
  margin-top: 0.8rem;
  margin-bottom: 0.6rem;
  color: #ffffff;
}

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

/* Footer */
.footer {
  border-top: 1px solid var(--panel-border);
  background: rgba(6, 9, 19, 0.9);
  padding: 3rem 1.5rem 2rem 1.5rem;
  margin-top: 6rem;
  backdrop-filter: blur(10px);
}

.footer-container {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 1.5rem;
}

.footer-brand {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  font-family: var(--font-heading);
  font-size: 1.4rem;
  font-weight: 700;
}

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

.copyright {
  color: var(--text-muted);
  font-size: 0.85rem;
  max-width: 600px;
}

.footer-links {
  display: flex;
  gap: 2rem;
  flex-wrap: wrap;
}

.footer-links a {
  color: var(--text-muted);
  text-decoration: none;
  font-size: 0.85rem;
  font-weight: 600;
  transition: color 0.2s ease;
}

.footer-links a:hover {
  color: var(--neon-cyan);
}

/* Guide Overlay to instruct user to click Allow on top-left */
.permission-guide-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background-color: rgba(3, 5, 12, 0.7);
  backdrop-filter: blur(4px);
  z-index: 1500;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  padding: 2rem;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.4s ease;
}

.permission-guide-overlay.active {
  opacity: 1;
  pointer-events: auto;
}

.guide-arrow-desktop {
  font-size: 5rem;
  color: var(--neon-cyan);
  margin-left: 10%;
  animation: bounce-down 1.2s infinite alternate;
  filter: drop-shadow(0 0 15px var(--neon-cyan));
}

.guide-card-desktop {
  background: rgba(18, 25, 47, 0.95);
  border: 2px solid var(--neon-cyan);
  border-radius: 20px;
  padding: 1.8rem;
  max-width: 380px;
  margin-left: 5%;
  margin-top: 1rem;
  box-shadow: 0 20px 45px rgba(0, 0, 0, 0.5), 0 0 30px rgba(57, 243, 255, 0.2);
}

.guide-card-desktop h3 {
  font-family: var(--font-heading);
  font-size: 1.3rem;
  font-weight: 800;
  color: #ffffff;
  margin-bottom: 0.5rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.guide-card-desktop p {
  font-size: 0.95rem;
  color: var(--text-muted);
  line-height: 1.5;
}

@keyframes bounce-down {
  0% { transform: translateY(0); }
  100% { transform: translateY(-15px); }
}

/* Responsive guide overlay for mobile */
@media (max-width: 768px) {
  .permission-guide-overlay {
    align-items: center;
    justify-content: center;
    padding: 1.5rem;
  }
  .guide-arrow-desktop {
    margin-left: 0;
    font-size: 4rem;
    order: -1;
    transform: rotate(180deg);
  }
  .guide-card-desktop {
    margin-left: 0;
    margin-top: 1.5rem;
    text-align: center;
  }
}

/* Toast System */
.toast {
  position: fixed;
  bottom: 2rem;
  right: 2rem;
  background: rgba(18, 25, 47, 0.95);
  border: 1px solid var(--neon-cyan);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.4), 
              0 0 20px rgba(57, 243, 255, 0.2);
  padding: 1rem 1.5rem;
  border-radius: 16px;
  display: flex;
  align-items: center;
  gap: 0.8rem;
  transform: translateY(150px);
  transition: transform 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
  z-index: 2000;
  backdrop-filter: blur(12px);
}

.toast.show {
  transform: translateY(0);
}

.toast-icon {
  font-size: 1.4rem;
}

.toast-message {
  font-size: 0.9rem;
  font-weight: 700;
  color: #ffffff;
}
