/* ==========================================================================
   DesiDeals Custom Premium Style System
   ========================================================================== */

@import url('https://fonts.googleapis.com/css2?family=Montserrat:wght@300;400;500;600;700;800;900&family=Playfair+Display:ital,wght@0,600;0,700;1,600&family=Outfit:wght@300;400;500;600;700;800&display=swap');

:root {
  /* HSL-tailored Premium Color Tokens */
  --bg-primary: #0b0605;
  --bg-secondary: #160e0c;
  --bg-card: rgba(28, 17, 14, 0.55);
  --bg-card-hover: rgba(45, 27, 23, 0.8);
  
  --gold-metallic: #d4af37;
  --gold-light: #f3e5ab;
  --gold-glow: rgba(212, 175, 55, 0.25);
  
  --accent-orange: #ff4500;
  --accent-orange-glow: rgba(255, 69, 0, 0.3);
  
  --text-primary: #ffffff;
  --text-muted: #a39692;
  --text-dark: #120907;

  --border-color: rgba(212, 175, 55, 0.12);
  --border-hover: rgba(212, 175, 55, 0.35);

  --font-main: 'Outfit', sans-serif;
  --font-accent: 'Montserrat', sans-serif;
  --font-serif: 'Playfair Display', serif;
}

/* Base Settings & Core Resets */
* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

html {
  scroll-behavior: smooth;
}

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

/* Custom Premium Scrollbar */
::-webkit-scrollbar {
  width: 8px;
}
::-webkit-scrollbar-track {
  background: var(--bg-primary);
}
::-webkit-scrollbar-thumb {
  background: var(--bg-secondary);
  border: 1px solid var(--border-color);
  border-radius: 4px;
}
::-webkit-scrollbar-thumb:hover {
  background: var(--gold-metallic);
}

/* Standard Typography System */
h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-accent);
  font-weight: 800;
  letter-spacing: -0.02em;
}

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

/* Utility layout components */
.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
  position: relative;
}

/* Background Gradients & Ambient Lighting Effects */
.glow-orb {
  position: absolute;
  width: 400px;
  height: 400px;
  border-radius: 50%;
  background: radial-gradient(circle, var(--gold-glow) 0%, rgba(11, 6, 5, 0) 70%);
  z-index: 1;
  pointer-events: none;
  filter: blur(40px);
}
.glow-orb-orange {
  position: absolute;
  width: 350px;
  height: 350px;
  border-radius: 50%;
  background: radial-gradient(circle, var(--accent-orange-glow) 0%, rgba(11, 6, 5, 0) 70%);
  z-index: 1;
  pointer-events: none;
  filter: blur(40px);
}

/* Header & Premium Navbar */
header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 100;
  background: rgba(11, 6, 5, 0.75);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border-color);
  transition: all 0.3s ease;
}

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

.logo {
  font-family: var(--font-accent);
  font-weight: 900;
  font-size: 1.5rem;
  letter-spacing: -0.04em;
  background: linear-gradient(135deg, var(--text-primary) 30%, var(--gold-metallic) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  display: flex;
  align-items: center;
  gap: 8px;
}

.logo-badge {
  font-size: 0.65rem;
  font-family: var(--font-accent);
  background: var(--gold-metallic);
  color: var(--text-dark);
  padding: 2px 6px;
  border-radius: 4px;
  font-weight: 800;
  text-transform: uppercase;
}

.nav-links {
  display: flex;
  gap: 32px;
  list-style: none;
}

.nav-link {
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--text-muted);
  transition: color 0.25s ease;
}

.nav-link:hover, .nav-link.active {
  color: var(--gold-metallic);
}

.nav-btn {
  background: linear-gradient(135deg, var(--gold-metallic) 0%, #b8860b 100%);
  color: var(--text-dark);
  font-family: var(--font-accent);
  font-weight: 700;
  font-size: 0.8rem;
  text-transform: uppercase;
  padding: 10px 22px;
  border-radius: 20px;
  box-shadow: 0 4px 15px var(--gold-glow);
  transition: all 0.3s ease;
}

.nav-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(212, 175, 55, 0.4);
}

/* Hero Section Style */
.hero {
  padding-top: 160px;
  padding-bottom: 80px;
  min-height: 90vh;
  display: flex;
  align-items: center;
  position: relative;
  overflow: hidden;
}

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

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

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(212, 175, 55, 0.08);
  border: 1px solid var(--border-color);
  padding: 6px 16px;
  border-radius: 30px;
  color: var(--gold-metallic);
  font-size: 0.8rem;
  font-weight: 700;
  margin-bottom: 24px;
  text-transform: uppercase;
}

.hero-badge i {
  color: var(--accent-orange);
}

.hero-title {
  font-size: 3.5rem;
  line-height: 1.1;
  margin-bottom: 20px;
}

.hero-title span {
  background: linear-gradient(135deg, var(--gold-metallic) 30%, var(--gold-light) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.hero-description {
  color: var(--text-muted);
  font-size: 1.1rem;
  margin-bottom: 36px;
  max-width: 520px;
}

/* Premium Download Buttons & Badges */
.download-buttons {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
}

.store-badge {
  background: #111;
  border: 1px solid var(--border-color);
  border-radius: 12px;
  padding: 8px 18px;
  display: flex;
  align-items: center;
  gap: 12px;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.4);
}

.store-badge i {
  font-size: 1.8rem;
  color: var(--text-primary);
  transition: color 0.3s ease;
}

.store-badge .btn-text {
  display: flex;
  flex-direction: column;
  line-height: 1.2;
}

.store-badge .btn-subtitle {
  font-size: 0.65rem;
  font-family: var(--font-accent);
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.store-badge .btn-title {
  font-size: 1rem;
  font-weight: 700;
  color: var(--text-primary);
}

.store-badge:hover {
  transform: translateY(-4px);
  border-color: var(--gold-metallic);
  background: #191412;
  box-shadow: 0 10px 24px rgba(212, 175, 55, 0.15);
}

.store-badge:hover i {
  color: var(--gold-metallic);
}

/* Hero Phone Mockup */
.hero-mockup {
  position: relative;
  display: flex;
  justify-content: center;
  align-items: center;
  z-index: 10;
}

.phone-wrapper {
  position: relative;
  width: 280px;
  height: 570px;
  background: #000;
  border-radius: 40px;
  padding: 10px;
  border: 4px solid #1c110e;
  box-shadow: 0 25px 60px rgba(0, 0, 0, 0.8), 0 0 40px var(--gold-glow);
  overflow: hidden;
}

.phone-screen {
  width: 100%;
  height: 100%;
  background: var(--bg-secondary);
  border-radius: 32px;
  overflow: hidden;
  position: relative;
}

.phone-camera {
  position: absolute;
  top: 12px;
  left: 50%;
  transform: translateX(-50%);
  width: 80px;
  height: 20px;
  background: #000;
  border-radius: 10px;
  z-index: 20;
}

.phone-screen-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.9;
  filter: contrast(1.05);
}

.floating-badge {
  position: absolute;
  background: rgba(28, 17, 14, 0.85);
  backdrop-filter: blur(12px);
  border: 1px solid var(--border-color);
  border-radius: 16px;
  padding: 12px 18px;
  box-shadow: 0 15px 30px rgba(0,0,0,0.5);
  z-index: 15;
  animation: float 4s ease-in-out infinite;
}

.floating-badge.badge-1 {
  bottom: 60px;
  left: -40px;
  animation-delay: 0.5s;
}

.floating-badge.badge-2 {
  top: 80px;
  right: -40px;
  animation-delay: 1.5s;
}

.floating-badge-content {
  display: flex;
  align-items: center;
  gap: 12px;
}

.floating-badge-icon {
  width: 36px;
  height: 36px;
  background: var(--gold-metallic);
  color: var(--text-dark);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.1rem;
}

.floating-badge-text p {
  font-size: 0.65rem;
  color: var(--text-muted);
  text-transform: uppercase;
}

.floating-badge-text h4 {
  font-size: 0.95rem;
  font-weight: 700;
}

/* Sections Structure */
section {
  padding: 100px 0;
  position: relative;
}

.section-header {
  text-align: center;
  max-width: 600px;
  margin: 0 auto 60px auto;
  position: relative;
  z-index: 10;
}

.section-subtitle {
  color: var(--gold-metallic);
  font-family: var(--font-accent);
  font-weight: 800;
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 0.15em;
  margin-bottom: 12px;
}

.section-title {
  font-size: 2.5rem;
  margin-bottom: 16px;
}

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

/* Live Deals Section */
.deals-filter {
  display: flex;
  justify-content: center;
  gap: 12px;
  margin-bottom: 40px;
  flex-wrap: wrap;
  position: relative;
  z-index: 10;
}

.filter-btn {
  background: rgba(28, 17, 14, 0.4);
  border: 1px solid var(--border-color);
  color: var(--text-muted);
  padding: 8px 20px;
  border-radius: 25px;
  font-family: var(--font-accent);
  font-weight: 600;
  font-size: 0.85rem;
  cursor: pointer;
  transition: all 0.3s ease;
}

.filter-btn.active, .filter-btn:hover {
  background: var(--gold-metallic);
  color: var(--text-dark);
  border-color: var(--gold-metallic);
  box-shadow: 0 4px 15px rgba(212, 175, 55, 0.3);
}

.deals-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 24px;
  position: relative;
  z-index: 10;
}

/* Premium Deal Card Design */
.deal-card {
  background: var(--bg-card);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid var(--border-color);
  border-radius: 20px;
  padding: 16px;
  transition: all 0.35s cubic-bezier(0.25, 0.8, 0.25, 1);
  display: flex;
  flex-direction: column;
  position: relative;
  overflow: hidden;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
}

.deal-card:hover {
  transform: translateY(-8px);
  border-color: var(--border-hover);
  background: var(--bg-card-hover);
  box-shadow: 0 15px 40px rgba(0, 0, 0, 0.5), 0 0 25px rgba(212, 175, 55, 0.08);
}

.deal-image-container {
  position: relative;
  width: 100%;
  height: 180px;
  border-radius: 14px;
  overflow: hidden;
  margin-bottom: 16px;
  background: #000;
}

.deal-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}

.deal-card:hover .deal-image {
  transform: scale(1.06);
}

.deal-discount-badge {
  position: absolute;
  top: 10px;
  left: 10px;
  background: var(--accent-orange);
  color: var(--text-primary);
  font-family: var(--font-accent);
  font-weight: 800;
  font-size: 0.75rem;
  padding: 4px 10px;
  border-radius: 6px;
  box-shadow: 0 4px 10px rgba(255, 69, 0, 0.3);
}

.deal-timer-badge {
  position: absolute;
  top: 10px;
  right: 10px;
  background: rgba(0, 0, 0, 0.8);
  border: 1px solid rgba(255, 69, 0, 0.3);
  color: var(--text-primary);
  font-family: var(--font-accent);
  font-weight: 700;
  font-size: 0.7rem;
  padding: 4px 8px;
  border-radius: 6px;
  display: flex;
  align-items: center;
  gap: 4px;
}

.deal-timer-badge i {
  color: var(--accent-orange);
}

.deal-meta {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.75rem;
  font-family: var(--font-accent);
  font-weight: 700;
  color: var(--gold-metallic);
  margin-bottom: 8px;
  text-transform: uppercase;
}

.deal-store {
  color: var(--text-muted);
}

.deal-title {
  font-size: 1.1rem;
  font-weight: 700;
  line-height: 1.3;
  margin-bottom: 12px;
  color: var(--text-primary);
  line-clamp: 2;
  -webkit-line-clamp: 2;
  display: -webkit-box;
  -webkit-box-orient: vertical;
  overflow: hidden;
  height: 2.8em;
}

.deal-pricing {
  display: flex;
  align-items: baseline;
  gap: 8px;
  margin-top: auto;
  margin-bottom: 16px;
}

.deal-price {
  font-size: 1.35rem;
  font-weight: 800;
  color: var(--text-primary);
  font-family: var(--font-accent);
}

.deal-original-price {
  font-size: 0.9rem;
  color: var(--text-muted);
  text-decoration: line-through;
}

.deal-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  width: 100%;
  padding: 10px 0;
  background: rgba(212, 175, 55, 0.08);
  border: 1px solid var(--border-color);
  color: var(--gold-metallic);
  font-family: var(--font-accent);
  font-weight: 700;
  font-size: 0.85rem;
  border-radius: 12px;
  transition: all 0.25s ease;
  cursor: pointer;
  text-transform: uppercase;
}

.deal-card:hover .deal-btn {
  background: var(--gold-metallic);
  color: var(--text-dark);
  border-color: var(--gold-metallic);
  box-shadow: 0 4px 15px rgba(212, 175, 55, 0.2);
}

/* Features Bento Grid Section */
.features-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  position: relative;
  z-index: 10;
}

.bento-card {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: 24px;
  padding: 32px;
  position: relative;
  overflow: hidden;
  transition: all 0.3s ease;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
}

.bento-card:hover {
  border-color: var(--border-hover);
  box-shadow: 0 15px 40px rgba(0, 0, 0, 0.4);
}

.bento-card.large {
  grid-column: span 2;
}

.feature-icon-wrapper {
  width: 52px;
  height: 52px;
  border-radius: 14px;
  background: rgba(212, 175, 55, 0.08);
  border: 1px solid var(--border-color);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  color: var(--gold-metallic);
  margin-bottom: 24px;
}

.feature-title {
  font-size: 1.4rem;
  margin-bottom: 12px;
}

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

/* Stats Section */
.stats {
  background: linear-gradient(180deg, var(--bg-primary) 0%, var(--bg-secondary) 100%);
  border-top: 1px solid var(--border-color);
  border-bottom: 1px solid var(--border-color);
  position: relative;
}

.stats-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 32px;
  text-align: center;
  position: relative;
  z-index: 10;
}

.stat-item h3 {
  font-size: 3rem;
  color: var(--gold-metallic);
  line-height: 1.1;
  margin-bottom: 8px;
  background: linear-gradient(135deg, var(--gold-metallic) 30%, var(--gold-light) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.stat-item p {
  color: var(--text-muted);
  font-family: var(--font-accent);
  font-weight: 700;
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
}

/* Footer Section */
footer {
  background: #050302;
  border-top: 1px solid var(--border-color);
  padding: 80px 0 40px 0;
  position: relative;
  overflow: hidden;
}

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

.footer-brand p {
  color: var(--text-muted);
  margin-top: 16px;
  margin-bottom: 24px;
  max-width: 320px;
}

.footer-title {
  font-size: 1rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--gold-metallic);
  margin-bottom: 20px;
}

.footer-links {
  list-style: none;
}

.footer-links li {
  margin-bottom: 12px;
}

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

.footer-links a:hover {
  color: var(--gold-metallic);
}

.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.05);
  padding-top: 30px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 20px;
}

.footer-copy {
  color: var(--text-muted);
  font-size: 0.85rem;
}

.social-links {
  display: flex;
  gap: 16px;
}

.social-link {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--border-color);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-muted);
  transition: all 0.25s ease;
}

.social-link:hover {
  background: var(--gold-metallic);
  color: var(--text-dark);
  border-color: var(--gold-metallic);
  transform: translateY(-2px);
}

/* Animations declarations */
@keyframes float {
  0% { transform: translateY(0px); }
  50% { transform: translateY(-12px); }
  100% { transform: translateY(0px); }
}

/* Responsive Breakpoints & Media queries */
@media (max-width: 1024px) {
  .hero-grid {
    grid-template-columns: 1fr;
    text-align: center;
    gap: 60px;
  }
  .hero-title {
    font-size: 2.8rem;
  }
  .hero-description {
    margin-left: auto;
    margin-right: auto;
  }
  .download-buttons {
    justify-content: center;
  }
  .hero-mockup {
    margin-top: 20px;
  }
  .features-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .bento-card.large {
    grid-column: span 2;
  }
  .stats-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 40px;
  }
}

@media (max-width: 768px) {
  section {
    padding: 60px 0;
  }
  .section-title {
    font-size: 2rem;
  }
  .nav-links {
    display: none;
  }
  .features-grid {
    grid-template-columns: 1fr;
  }
  .bento-card.large {
    grid-column: span 1;
  }
  .footer-top {
    grid-template-columns: 1fr;
    gap: 36px;
  }
}

@media (max-width: 480px) {
  .hero-title {
    font-size: 2.2rem;
  }
  .stats-grid {
    grid-template-columns: 1fr;
  }
}
