/* =========================
   OSSI — Premium Redesign
   ========================= */

:root {
  /* Brand Colors */
  --brand-orange: #FF6A00;
  --brand-pink: #E43A8B;
  --brand-purple: #6D3DF5;
  
  /* Semantic Colors */
  --primary: var(--brand-orange);
  --primary-alt: var(--brand-pink);
  --accent: var(--brand-purple);

  /* Text Colors */
  --text-primary: #0F172A;
  --text-secondary: #475569;
  --text-muted: #94A3B8;
  
  /* Surface Colors */
  --surface: #FFFFFF;
  --surface-muted: #F8FAFC;
  --background-light: #F5F7FB;
  --background-dark: #0A0E16;
  
  /* Effects */
  --gradient-full: linear-gradient(135deg, var(--brand-purple), var(--brand-pink) 55%, var(--brand-orange));
  --gradient-horizontal: linear-gradient(90deg, var(--brand-purple), var(--brand-pink), var(--brand-orange));
  --shadow-soft: 0 4px 24px rgba(0, 0, 0, 0.08);
  --shadow-medium: 0 8px 40px rgba(0, 0, 0, 0.12);
  --shadow-large: 0 20px 60px rgba(0, 0, 0, 0.15);
}

/* Base Styles */
* { box-sizing: border-box }
html { scroll-behavior: smooth }
body {
  margin: 0;
  font-family: 'Inter', system-ui, -apple-system, sans-serif;
  color: var(--text-primary);
  background: var(--surface);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

/* Language Switcher */
.language-switcher {
  margin-right: 1rem;
}

.language-switcher .form-select {
  border: 1px solid var(--brand-purple);
  border-radius: 8px;
  font-size: 0.875rem;
  padding: 0.375rem 2rem 0.375rem 0.75rem;
}

/* Navbar */
.navbar-glass {
  backdrop-filter: blur(20px);
  background: rgba(255, 255, 255, 0.95) !important;
  border-bottom: 1px solid rgba(255, 255, 255, 0.2);
  padding: 1rem 0;
  transition: all 0.3s ease;
}

.logo-wrapper {
  width: 45px;
  height: 60px;
  border-radius: 12px;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
}

.brand-logo {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

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

/* Hero Section */
.hero-section {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  overflow: hidden;
}

.hero-background {
  position: absolute;
  inset: 0;
  z-index: 1;
}

.hero-gradient-1,
.hero-gradient-2,
.hero-gradient-3 {
  position: absolute;
  border-radius: 50%;
  filter: blur(80px);
  opacity: 0.15;
}

.hero-gradient-1 {
  width: 600px;
  height: 600px;
  background: var(--brand-purple);
  top: -300px;
  right: -200px;
}

.hero-gradient-2 {
  width: 500px;
  height: 500px;
  background: var(--brand-pink);
  bottom: -250px;
  left: -150px;
}

.hero-gradient-3 {
  width: 400px;
  height: 400px;
  background: var(--brand-orange);
  top: 50%;
  left: 60%;
}

.hero-badge {
  display: inline-block;
  background: rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(20px);
  border: 1px solid rgba(255, 255, 255, 0.2);
  padding: 0.5rem 1rem;
  border-radius: 50px;
  font-size: 0.875rem;
  font-weight: 500;
  margin-bottom: 2rem;
}

.hero-title {
  font-size: clamp(2.5rem, 5vw, 4rem);
  font-weight: 800;
  line-height: 1.1;
  margin-bottom: 1.5rem;
}

.hero-subtitle {
  font-size: 1.25rem;
  color: var(--text-secondary);
  line-height: 1.6;
  margin-bottom: 3rem;
  max-width: 500px;
}

.hero-stats {
  display: flex;
  gap: 2rem;
  margin-bottom: 3rem;
}

.stat-item {
  text-align: center;
}

.stat-number {
  font-size: 2rem;
  font-weight: 700;
  background: var(--gradient-horizontal);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  line-height: 1;
}

.stat-label {
  font-size: 0.875rem;
  color: var(--text-muted);
  margin-top: 0.5rem;
}

.hero-actions {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
}

/* Hero Showcase */
.hero-showcase {
  position: relative;
  height: 500px;
}

.showcase-card {
  position: absolute;
  border-radius: 24px;
  overflow: hidden;
  box-shadow: var(--shadow-large);
  background: var(--surface);
}

.showcase-main {
  width: 300px;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  z-index: 2;
}

.showcase-image {
  width: 100%;
  height: 200px;
  object-fit: cover;
}

.showcase-badge {
  position: absolute;
  top: 1rem;
  left: 1rem;
  background: var(--gradient-full);
  color: white;
  padding: 0.5rem 1rem;
  border-radius: 50px;
  font-size: 0.875rem;
  font-weight: 600;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.showcase-content {
  padding: 1.5rem;
}

.showcase-content h4 {
  margin-bottom: 1rem;
  font-weight: 600;
}

.price-tag {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.old-price {
  text-decoration: line-through;
  color: var(--text-muted);
  font-size: 0.875rem;
}

.new-price {
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--brand-orange);
}

.showcase-floating {
  position: absolute;
  z-index: 3;
}

.showcase-1 {
  top: 0;
  right: 0;
}

.showcase-2 {
  bottom: 0;
  left: 0;
}

.floating-card {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(20px);
  padding: 1rem;
  border-radius: 16px;
  box-shadow: var(--shadow-soft);
  border: 1px solid rgba(255, 255, 255, 0.2);
}

.floating-card i {
  font-size: 1.5rem;
  background: var(--gradient-full);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.floating-title {
  font-weight: 600;
  font-size: 0.875rem;
}

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

/* Sections */
.section-padding {
  padding: 6rem 0;
}

.section-header {
  margin-bottom: 4rem;
}

.section-title {
  font-size: clamp(2rem, 4vw, 3rem);
  font-weight: 700;
  margin-bottom: 1rem;
}

.section-subtitle {
  font-size: 1.25rem;
  color: var(--text-secondary);
  max-width: 500px;
  margin: 0 auto;
}

/* Feature Highlights */
.feature-highlight {
  text-align: center;
  padding: 2rem 1rem;
}

.feature-icon {
  width: 80px;
  height: 80px;
  margin: 0 auto 1.5rem;
  background: var(--gradient-full);
  border-radius: 20px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2rem;
  color: white;
}

.feature-highlight h4 {
  font-weight: 600;
  margin-bottom: 1rem;
}

.feature-highlight p {
  color: var(--text-secondary);
  line-height: 1.6;
}

/* Feature Cards */
.feature-card {
  background: var(--surface);
  border-radius: 24px;
  padding: 2rem;
  box-shadow: var(--shadow-soft);
  border: 1px solid rgba(255, 255, 255, 0.1);
  transition: all 0.3s ease;
  height: 100%;
}

.feature-card:hover {
  transform: translateY(-8px);
  box-shadow: var(--shadow-large);
}

.feature-card-premium {
  background: var(--gradient-full);
  color: white;
}

.feature-card-premium * {
  color: white !important;
}

.feature-icon-wrapper {
  width: 60px;
  height: 60px;
  background: rgba(109, 61, 245, 0.1);
  border-radius: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  margin-bottom: 1.5rem;
  color: var(--brand-purple);
}

.feature-card-premium .feature-icon-wrapper {
  background: rgba(255, 255, 255, 0.2);
  color: white !important;
}

.feature-card h4 {
  font-weight: 600;
  margin-bottom: 1rem;
}

.feature-list {
  list-style: none;
  padding: 0;
  margin-top: 1.5rem;
}

.feature-list li {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin-bottom: 0.5rem;
  color: var(--text-secondary);
}

.feature-list i {
  color: var(--success);
}

/* Live Indicator */
.live-indicator {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: rgba(239, 68, 68, 0.1);
  color: var(--danger);
  padding: 0.5rem 1rem;
  border-radius: 50px;
  font-weight: 500;
  margin-bottom: 2rem;
}

.live-dot {
  width: 8px;
  height: 8px;
  background: var(--danger);
  border-radius: 50%;
  animation: pulse 2s infinite;
}

@keyframes pulse {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.5; }
}

/* PRODUCT GRID - FIXED SPACING */
.products-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
  width: 100%;
}

.product-card {
  border: 1px solid #E6EAF5;
  background: var(--surface);
  border-radius: 16px;
  overflow: hidden;
  transition: transform 0.3s ease, box-shadow 0.3s ease, border-color 0.3s ease;
  will-change: transform;
  height: 100%;
  display: flex;
  flex-direction: column;
  position: relative;
  min-height: 380px;
}

.product-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-medium);
  border-color: rgba(109, 61, 245, 0.35);
}

.product-card .card-img-top {
  width: 100%;
  height: 220px;
  object-fit: cover;
  object-position: center;
  display: block;
  transition: transform 0.35s ease;
}

.product-card:hover .card-img-top {
  transform: scale(1.03);
}

.product-card .card-body {
  padding: 1.25rem;
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.product-meta {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 0.5rem;
  margin-bottom: 0;
  padding-bottom: 0.75rem;
  color: var(--text-muted);
  font-size: 0.875rem;
  border-bottom: 1px dashed #E6EAF5;
}

.meta-pill {
  padding: 0.25rem 0.75rem;
  border-radius: 999px;
  background: #fff;
  border: 1px solid #E6EAF5;
  font-weight: 600;
  letter-spacing: 0.2px;
  font-size: 0.75rem;
}

.meta-badge {
  background: #fff;
  border: 1px solid #E6EAF5;
  color: var(--text-primary);
  border-radius: 10px;
  padding: 0.25rem 0.5rem;
  font-weight: 600;
  font-size: 0.75rem;
}

.product-title {
  font-weight: 600;
  margin: 0;
  line-height: 1.4;
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
  overflow: hidden;
  min-height: 2.8em;
  flex: 1;
}

.price-row {
  display: flex;
  align-items: baseline;
  gap: 0.5rem;
  margin-top: auto;
}

.price-old {
  color: var(--text-muted);
  text-decoration: line-through;
  font-size: 0.875rem;
}

.price-now {
  color: var(--brand-orange) !important;
  font-weight: 700;
  font-size: 1.125rem;
}

.availability {
  font-size: 0.875rem;
  color: var(--text-muted);
  margin-top: 0.5rem;
}

.discount-ribbon {
  position: absolute;
  top: 12px;
  left: 12px;
  background: var(--gradient-full);
  color: #fff;
  font-weight: 700;
  font-size: 0.8rem;
  padding: 0.375rem 0.75rem;
  border-radius: 10px;
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.12);
  z-index: 2;
}

.countdown-badge {
  position: absolute;
  top: 12px;
  right: 12px;
  padding: 0.5rem 0.75rem;
  border-radius: 8px;
  font-weight: 600;
  font-size: 0.8rem;
  z-index: 2;
  background: #3B82F6;
  color: white;
}

.countdown-badge.live {
  background: #EF4444;
}

/* Download Section */
.bg-dark {
  background: var(--background-dark) !important;
}

.download-badges {
  display: flex;
  gap: 2rem;
  margin-bottom: 2rem;
}

.badge-item {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-weight: 500;
}

.download-buttons {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
}

.btn-download {
  display: flex;
  align-items: center;
  gap: 1rem;
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.2);
  padding: 1rem 1.5rem;
  border-radius: 16px;
  color: white;
  text-decoration: none;
  transition: all 0.3s ease;
}

.btn-download:hover {
  background: rgba(255, 255, 255, 0.2);
  transform: translateY(-2px);
  color: white;
}

.btn-download i {
  font-size: 2rem;
}

.phone-mockup {
  position: relative;
}

.mockup-image {
  width: 100%;
  max-width: 300px;
  border-radius: 24px;
  box-shadow: var(--shadow-large);
}

/* Footer */
.footer {
  background: var(--background-dark);
  color: white;
  padding: 4rem 0 2rem;
}

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

.footer-links li {
  margin-bottom: 0.5rem;
}

.footer-links a {
  color: rgba(255, 255, 255, 0.7);
  text-decoration: none;
  transition: color 0.3s ease;
}

.footer-links a:hover {
  color: white;
}

.social-links {
  display: flex;
  gap: 1rem;
}

.social-links a {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  background: rgba(255, 255, 255, 0.1);
  border-radius: 10px;
  color: white;
  text-decoration: none;
  transition: all 0.3s ease;
}

.social-links a:hover {
  background: var(--gradient-full);
  transform: translateY(-2px);
}

.footer-bottom {
  margin-top: 4rem;
  padding-top: 2rem;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  text-align: center;
  color: rgba(255, 255, 255, 0.5);
}

/* Buttons */
.btn {
  border-radius: 12px;
  font-weight: 600;
  padding: 0.75rem 1.5rem;
  transition: all 0.3s ease;
  border: none;
}

.btn-primary {
  background: var(--gradient-full);
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 25px rgba(109, 61, 245, 0.3);
}

.btn-outline-primary {
  border: 2px solid var(--brand-purple);
  color: var(--brand-purple);
  background: transparent;
}

.btn-outline-primary:hover {
  background: var(--gradient-full);
  border-color: transparent;
  color: white;
  transform: translateY(-2px);
}

/* Contact Section */
.hover-rise {
  transition: transform 0.2s ease, color 0.2s ease;
}

.hover-rise:hover {
  transform: translateY(-2px);
  color: var(--brand-purple) !important;
}

/* Reveal Animations */
[data-reveal] {
  opacity: 0;
  transform: translateY(30px);
  transition: all 0.8s ease;
}

.reveal-show {
  opacity: 1 !important;
  transform: none !important;
}

/* Fix white space between products */
#live-products .container {
  max-width: 1200px;
  margin: 0 auto;
}

/* Responsive grid improvements */
@media (max-width: 768px) {
  .hero-stats {
    justify-content: center;
  }
  
  .hero-actions {
    justify-content: center;
  }
  
  .showcase-main {
    width: 250px;
  }
  
  .download-badges {
    justify-content: center;
  }
  
  .download-buttons {
    justify-content: center;
  }
  
  .section-padding {
    padding: 4rem 0;
  }
  
  .products-grid {
    grid-template-columns: 1fr;
    gap: 1rem;
  }
  
  .product-card {
    min-height: 350px;
  }
  
  .language-switcher {
    margin-right: 0.5rem;
  }
}

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

@media (min-width: 1024px) {
  .products-grid {
    grid-template-columns: repeat(3, 1fr);
    gap: 1.5rem;
  }
}