/**
 * BINEYTI Landing Page Styles
 * Colors based on src/Theme/Variables.js
 */

/* ========================================
   CSS Variables (from Theme/Variables.js)
   ======================================== */
:root {
  /* Primary Colors */
  --primary: #100A07;
  --secondary: #CE1D21;
  --thirty: #c21531;

  /* Saumon Colors */
  --saumon: #D07878;
  --saumon-1: #EDCBCA;
  --saumon-light: #F5E1E0;

  /* Background & Surface */
  --background: #FAF7F5;
  --surface: #FFFFFF;
  --card: #FFFFFF;

  /* Text Colors */
  --text: #212529;
  --text-secondary: #6B6B6B;
  --text-light: #9CA3AF;
  --text-inverse: #FFFFFF;

  /* Border & Dividers */
  --border: #E5E7EB;
  --border-line: rgba(107, 107, 107, 0.15);
  --divider: #F3F4F6;

  /* Input */
  --input-background: #F9FAFB;
  --input-border: #E5E7EB;
  --input-focus: #CE1D21;

  /* Status Colors */
  --success: #10B981;
  --success-light: #D1FAE5;
  --error: #EF4444;
  --error-light: #FEE2E2;
  --warning: #F59E0B;
  --warning-light: #FEF3C7;
  --info: #3B82F6;
  --info-light: #DBEAFE;

  /* Special */
  --yellow: #feb800;
  --overlay: rgba(0, 0, 0, 0.5);
  --overlay-light: rgba(0, 0, 0, 0.3);

  /* Gradients */
  --gradient-primary: linear-gradient(135deg, #100A07 0%, #CE1D21 100%);
  --gradient-secondary: linear-gradient(135deg, #CE1D21 0%, #c21531 100%);
  --gradient-saumon: linear-gradient(135deg, #EDCBCA 0%, #D07878 100%);
}

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

html {
  scroll-behavior: smooth;
}

body {
  font-family: 'Montserrat', -apple-system, BlinkMacSystemFont, sans-serif;
  background: var(--background);
  color: var(--text);
  line-height: 1.6;
  overflow-x: hidden;
}

/* ========================================
   Navigation
   ======================================== */
.navbar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  padding: 1rem 2rem;
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(10px);
  box-shadow: 0 2px 20px rgba(0, 0, 0, 0.1);
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.logo {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-weight: 700;
  font-size: 1.5rem;
  color: var(--primary);
  text-decoration: none;
}

.logo-icon {
  width: 40px;
  height: 40px;
  background: var(--gradient-primary);
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-weight: 800;
}

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

.nav-links a {
  text-decoration: none;
  color: var(--text);
  font-weight: 500;
  transition: color 0.3s;
}

.nav-links a:hover {
  color: var(--secondary);
}

.nav-cta {
  background: var(--gradient-secondary);
  color: var(--text-inverse) !important;
  padding: 0.75rem 1.5rem;
  border-radius: 50px;
}

/* Mobile Menu Button */
.menu-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
  padding: 5px;
}

.menu-toggle span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--primary);
  transition: all 0.3s;
}

/* ========================================
   Hero Section
   ======================================== */
.hero {
  min-height: 100vh;
  display: flex;
  align-items: center;
  padding: 120px 2rem 4rem;
  background: linear-gradient(180deg, var(--background) 0%, var(--saumon-light) 100%);
  position: relative;
  overflow: hidden;
}

.hero::before {
  content: '';
  position: absolute;
  top: -50%;
  right: -20%;
  width: 80%;
  height: 150%;
  background: var(--gradient-secondary);
  opacity: 0.05;
  border-radius: 50%;
  transform: rotate(-15deg);
}

.hero-container {
  max-width: 1200px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: center;
}

.hero-content {
  z-index: 1;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: var(--saumon-light);
  color: var(--secondary);
  padding: 0.5rem 1rem;
  border-radius: 50px;
  font-size: 0.875rem;
  font-weight: 500;
  margin-bottom: 1.5rem;
}

.hero-badge .icon {
  width: 16px;
  height: 16px;
}

.hero h1 {
  font-size: 3.5rem;
  font-weight: 800;
  line-height: 1.2;
  margin-bottom: 1.5rem;
  background: var(--gradient-primary);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.hero p {
  font-size: 1.25rem;
  color: var(--text-secondary);
  margin-bottom: 2rem;
  max-width: 500px;
}

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

/* ========================================
   Buttons
   ======================================== */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 1rem 2rem;
  border-radius: 50px;
  font-weight: 600;
  text-decoration: none;
  transition: all 0.3s;
  font-size: 1rem;
  border: none;
  cursor: pointer;
}

.btn-primary {
  background: var(--gradient-secondary);
  color: var(--text-inverse);
  box-shadow: 0 10px 30px rgba(206, 29, 33, 0.3);
}

.btn-primary:hover {
  transform: translateY(-3px);
  box-shadow: 0 15px 40px rgba(206, 29, 33, 0.4);
}

.btn-secondary {
  background: var(--surface);
  color: var(--text);
  border: 2px solid var(--border);
}

.btn-secondary:hover {
  border-color: var(--secondary);
  color: var(--secondary);
}

.btn .icon {
  width: 20px;
  height: 20px;
}

/* ========================================
   Hero Image
   ======================================== */
.hero-image {
  position: relative;
  z-index: 1;
}

.phone-mockup {
  max-width: 100%;
  height: auto;
  filter: drop-shadow(0 30px 60px rgba(0, 0, 0, 0.2));
  animation: float 6s ease-in-out infinite;
}

@keyframes float {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-20px); }
}

/* ========================================
   Stats
   ======================================== */
.stats {
  display: flex;
  gap: 3rem;
  margin-top: 3rem;
  padding-top: 2rem;
  border-top: 1px solid var(--border-line);
}

.stat {
  text-align: left;
}

.stat-number {
  font-size: 2rem;
  font-weight: 700;
  color: var(--secondary);
}

.stat-label {
  font-size: 0.875rem;
  color: var(--text-secondary);
}

/* ========================================
   Features Section
   ======================================== */
.features {
  padding: 6rem 2rem;
  background: var(--surface);
}

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

.section-header h2 {
  font-size: 2.5rem;
  font-weight: 700;
  margin-bottom: 1rem;
  color: var(--primary);
}

.section-header p {
  color: var(--text-secondary);
  font-size: 1.125rem;
}

.features-grid {
  max-width: 1200px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 2rem;
}

.feature-card {
  background: var(--background);
  padding: 2rem;
  border-radius: 20px;
  transition: all 0.3s;
}

.feature-card:hover {
  transform: translateY(-10px);
  box-shadow: 0 20px 40px rgba(206, 29, 33, 0.1);
}

.feature-icon {
  width: 60px;
  height: 60px;
  background: var(--gradient-secondary);
  border-radius: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1.5rem;
}

.feature-icon .icon {
  width: 28px;
  height: 28px;
  color: var(--text-inverse);
}

.feature-card h3 {
  font-size: 1.25rem;
  font-weight: 600;
  margin-bottom: 0.75rem;
  color: var(--primary);
}

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

/* ========================================
   How it Works Section
   ======================================== */
.how-it-works {
  padding: 6rem 2rem;
  background: linear-gradient(180deg, var(--saumon-light) 0%, var(--background) 100%);
}

.steps {
  max-width: 1000px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 3rem;
}

.step {
  display: flex;
  align-items: center;
  gap: 3rem;
}

.step:nth-child(even) {
  flex-direction: row-reverse;
}

.step-number {
  width: 80px;
  height: 80px;
  background: var(--gradient-secondary);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2rem;
  font-weight: 700;
  color: var(--text-inverse);
  flex-shrink: 0;
}

.step-content h3 {
  font-size: 1.5rem;
  font-weight: 600;
  margin-bottom: 0.5rem;
  color: var(--primary);
}

.step-content p {
  color: var(--text-secondary);
}

/* ========================================
   Download Section
   ======================================== */
.download {
  padding: 6rem 2rem;
  background: var(--gradient-primary);
  color: var(--text-inverse);
  text-align: center;
}

.download h2 {
  font-size: 2.5rem;
  font-weight: 700;
  margin-bottom: 1rem;
}

.download p {
  font-size: 1.125rem;
  opacity: 0.9;
  margin-bottom: 2rem;
  max-width: 500px;
  margin-left: auto;
  margin-right: auto;
}

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

.store-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
  background: var(--surface);
  color: var(--text);
  padding: 0.875rem 1.5rem;
  border-radius: 12px;
  text-decoration: none;
  transition: all 0.3s;
}

.store-btn:hover {
  transform: scale(1.05);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
}

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

.store-info {
  text-align: left;
}

.store-info small {
  font-size: 0.7rem;
  opacity: 0.7;
}

.store-info div {
  font-weight: 600;
  font-size: 1rem;
}

/* ========================================
   Footer
   ======================================== */
footer {
  padding: 4rem 2rem 2rem;
  background: var(--primary);
  color: var(--text-inverse);
}

.footer-content {
  max-width: 1200px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 3rem;
}

.footer-brand .logo {
  color: var(--text-inverse);
}

.footer-brand p {
  opacity: 0.7;
  margin-top: 1rem;
  font-size: 0.9rem;
}

.footer-links h4 {
  font-size: 1rem;
  margin-bottom: 1rem;
}

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

.footer-links a {
  color: rgba(255, 255, 255, 0.7);
  text-decoration: none;
  font-size: 0.9rem;
  display: block;
  padding: 0.25rem 0;
  transition: color 0.3s;
}

.footer-links a:hover {
  color: var(--text-inverse);
}

.footer-bottom {
  max-width: 1200px;
  margin: 3rem auto 0;
  padding-top: 2rem;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.875rem;
  opacity: 0.7;
}

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

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

.social-links a:hover {
  background: var(--secondary);
  transform: translateY(-3px);
}

.social-links .icon {
  width: 20px;
  height: 20px;
}

/* ========================================
   Deep Link Redirect Modal
   ======================================== */
.redirect-modal {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: var(--overlay);
  z-index: 2000;
  align-items: center;
  justify-content: center;
  padding: 2rem;
}

.redirect-modal.active {
  display: flex;
}

.redirect-content {
  background: var(--surface);
  padding: 3rem;
  border-radius: 24px;
  text-align: center;
  max-width: 400px;
  animation: slideUp 0.3s ease;
}

@keyframes slideUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.redirect-content .modal-icon {
  width: 60px;
  height: 60px;
  background: var(--gradient-secondary);
  border-radius: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 1.5rem;
}

.redirect-content .modal-icon .icon {
  width: 28px;
  height: 28px;
  color: var(--text-inverse);
}

.redirect-content h3 {
  font-size: 1.5rem;
  margin-bottom: 1rem;
  color: var(--primary);
}

.redirect-content p {
  color: var(--text-secondary);
  margin-bottom: 2rem;
}

.redirect-buttons {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.redirect-buttons .btn {
  width: 100%;
  justify-content: center;
}

.btn-text {
  background: none;
  border: none;
  color: var(--text-secondary);
  cursor: pointer;
  padding: 0.5rem;
  font-family: inherit;
  font-size: 0.9rem;
}

.btn-text:hover {
  color: var(--text);
}

/* ========================================
   Loading State
   ======================================== */
.loading {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 100vh;
  background: var(--background);
}

.spinner {
  width: 50px;
  height: 50px;
  border: 4px solid var(--saumon-light);
  border-top-color: var(--secondary);
  border-radius: 50%;
  animation: spin 1s linear infinite;
}

@keyframes spin {
  to { transform: rotate(360deg); }
}

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

  .hero-content {
    order: 1;
  }

  .hero-image {
    order: 0;
    max-width: 300px;
    margin: 0 auto;
  }

  .hero h1 {
    font-size: 2.5rem;
  }

  .hero p {
    margin: 0 auto 2rem;
  }

  .hero-buttons {
    justify-content: center;
  }

  .stats {
    justify-content: center;
  }

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

@media (max-width: 768px) {
  .navbar {
    padding: 1rem;
  }

  .nav-links {
    display: none;
  }

  .menu-toggle {
    display: flex;
  }

  .hero {
    padding: 100px 1rem 3rem;
  }

  .hero h1 {
    font-size: 2rem;
  }

  .stats {
    flex-direction: column;
    gap: 1.5rem;
    align-items: center;
  }

  .step {
    flex-direction: column !important;
    text-align: center;
  }

  .footer-content {
    grid-template-columns: 1fr;
    text-align: center;
  }

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

  .section-header h2 {
    font-size: 2rem;
  }
}

/* ========================================
   Animation Classes
   ======================================== */
.fade-in {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

.fade-in.visible {
  opacity: 1;
  transform: translateY(0);
}
