@import url('https://fonts.googleapis.com/css2?family=Outfit:wght@300;400;500;600;700&display=swap');

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

:root {
  --primary: #1a1a2e;
  --secondary: #16213e;
  --accent: #e94560;
  --success: #00d9a5;
  --text-primary: #ffffff;
  --text-secondary: #a0a0b0;
  --border: #2d2d44;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: 'Outfit', sans-serif;
  background-color: var(--primary);
  color: var(--text-primary);
  line-height: 1.6;
}

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

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

.animate-in {
  animation: fadeInUp 0.6s ease forwards;
}

header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  background: rgba(26, 26, 46, 0.95);
  backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--border);
  padding: 16px 0;
}

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

.logo {
  font-size: 28px;
  font-weight: 700;
  color: var(--text-primary);
  display: flex;
  align-items: center;
  gap: 8px;
}

.logo-icon {
  width: 40px;
  height: 40px;
  background: linear-gradient(135deg, var(--accent), #ff6b6b);
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 20px;
}

.nav-menu {
  display: flex;
  gap: 40px;
  list-style: none;
}

.nav-menu a {
  font-weight: 500;
  font-size: 16px;
  color: var(--text-secondary);
  transition: all 0.3s ease;
  position: relative;
}

.nav-menu a:hover,
.nav-menu a.active {
  color: var(--text-primary);
}

.nav-menu a.active::after {
  content: '';
  position: absolute;
  bottom: -8px;
  left: 0;
  right: 0;
  height: 3px;
  background: var(--accent);
  border-radius: 2px;
}

.nav-actions {
  display: flex;
  align-items: center;
  gap: 20px;
}

.search-btn {
  background: none;
  border: none;
  color: var(--text-secondary);
  font-size: 20px;
  cursor: pointer;
  transition: color 0.3s;
}

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

.sign-in-btn {
  background: var(--accent);
  color: white;
  padding: 10px 24px;
  border-radius: 8px;
  font-weight: 600;
  font-size: 14px;
  transition: all 0.3s ease;
}

.sign-in-btn:hover {
  transform: scale(1.02);
  box-shadow: 0 4px 20px rgba(233, 69, 96, 0.4);
}

.mobile-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
  padding: 10px;
}

.mobile-toggle span {
  width: 25px;
  height: 2px;
  background: var(--text-primary);
  transition: all 0.3s;
}

.hero {
  padding: 160px 24px 80px;
  background: linear-gradient(180deg, var(--secondary) 0%, var(--primary) 100%);
  position: relative;
  overflow: hidden;
}

.hero::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23e94560' fill-opacity='0.05'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
  opacity: 0.5;
}

.hero-content {
  max-width: 1400px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: center;
  position: relative;
  z-index: 1;
}

.hero-text h1 {
  font-size: 56px;
  font-weight: 700;
  line-height: 1.1;
  margin-bottom: 24px;
}

.hero-text h1 span {
  color: var(--accent);
}

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

.hero-buttons {
  display: flex;
  gap: 16px;
}

.btn-primary {
  background: var(--accent);
  color: white;
  padding: 16px 32px;
  border-radius: 10px;
  font-weight: 600;
  font-size: 16px;
  transition: all 0.3s ease;
  display: inline-block;
}

.btn-primary:hover {
  transform: translateY(-3px);
  box-shadow: 0 10px 30px rgba(233, 69, 96, 0.4);
}

.btn-secondary {
  background: transparent;
  border: 2px solid var(--border);
  color: var(--text-primary);
  padding: 16px 32px;
  border-radius: 10px;
  font-weight: 600;
  font-size: 16px;
  transition: all 0.3s ease;
  display: inline-block;
}

.btn-secondary:hover {
  border-color: var(--text-secondary);
  background: rgba(255, 255, 255, 0.05);
}

.hero-card {
  background: var(--secondary);
  border-radius: 20px;
  padding: 32px;
  border: 1px solid var(--border);
  position: relative;
  overflow: hidden;
}

.hero-card-badge {
  position: absolute;
  top: 20px;
  right: 20px;
  background: var(--success);
  color: var(--primary);
  padding: 8px 16px;
  border-radius: 20px;
  font-weight: 700;
  font-size: 14px;
}

.hero-card-image {
  height: 200px;
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  border-radius: 12px;
  margin-bottom: 20px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 60px;
}

.hero-card h3 {
  font-size: 24px;
  margin-bottom: 12px;
}

.hero-card-price {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 16px;
}

.original-price {
  font-size: 18px;
  color: var(--text-secondary);
  text-decoration: line-through;
}

.deal-price {
  font-size: 32px;
  font-weight: 700;
  color: var(--success);
}

.hero-card-features {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 20px;
}

.feature-tag {
  background: rgba(0, 217, 165, 0.1);
  color: var(--success);
  padding: 6px 12px;
  border-radius: 6px;
  font-size: 13px;
  font-weight: 500;
}

section {
  padding: 80px 24px;
  max-width: 1400px;
  margin: 0 auto;
}

.section-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 48px;
}

.section-header h2 {
  font-size: 36px;
  font-weight: 700;
}

.view-all {
  color: var(--accent);
  font-weight: 600;
  display: flex;
  align-items: center;
  gap: 8px;
  transition: gap 0.3s;
}

.view-all:hover {
  gap: 12px;
}

.deals-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: 24px;
}

.deal-card {
  background: var(--secondary);
  border-radius: 16px;
  padding: 24px;
  border: 1px solid var(--border);
  transition: all 0.3s ease;
  animation: fadeInUp 0.6s ease forwards;
  opacity: 0;
}

.deal-card:nth-child(1) { animation-delay: 0.1s; }
.deal-card:nth-child(2) { animation-delay: 0.15s; }
.deal-card:nth-child(3) { animation-delay: 0.2s; }
.deal-card:nth-child(4) { animation-delay: 0.25s; }
.deal-card:nth-child(5) { animation-delay: 0.3s; }
.deal-card:nth-child(6) { animation-delay: 0.35s; }
.deal-card:nth-child(7) { animation-delay: 0.4s; }
.deal-card:nth-child(8) { animation-delay: 0.45s; }
.deal-card:nth-child(9) { animation-delay: 0.5s; }

.deal-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3);
  border-color: var(--accent);
}

.deal-image {
  height: 160px;
  border-radius: 12px;
  margin-bottom: 20px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 40px;
  position: relative;
  overflow: hidden;
}

.deal-badge {
  position: absolute;
  top: 12px;
  left: 12px;
  background: var(--accent);
  color: white;
  padding: 6px 12px;
  border-radius: 6px;
  font-size: 13px;
  font-weight: 700;
}

.deal-badge.new {
  background: var(--success);
}

.deal-badge.ending {
  background: #ff6b35;
}

.deal-card h3 {
  font-size: 18px;
  font-weight: 600;
  margin-bottom: 8px;
}

.deal-card .category {
  color: var(--text-secondary);
  font-size: 14px;
  margin-bottom: 16px;
}

.deal-pricing {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 16px;
}

.deal-pricing .original {
  font-size: 16px;
  color: var(--text-secondary);
  text-decoration: line-through;
}

.deal-pricing .price {
  font-size: 28px;
  font-weight: 700;
  color: var(--text-primary);
}

.deal-rating {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 20px;
}

.stars {
  color: #ffc107;
  font-size: 14px;
}

.rating-count {
  color: var(--text-secondary);
  font-size: 14px;
}

.get-deal-btn {
  width: 100%;
  background: var(--accent);
  color: white;
  border: none;
  padding: 14px;
  border-radius: 10px;
  font-weight: 600;
  font-size: 15px;
  cursor: pointer;
  transition: all 0.3s ease;
}

.get-deal-btn:hover {
  background: #ff5a75;
  transform: scale(1.02);
}

.countdown-section {
  background: var(--secondary);
  margin-top: 80px;
  border-radius: 20px;
  padding: 60px;
  border: 1px solid var(--border);
}

.countdown-header {
  text-align: center;
  margin-bottom: 40px;
}

.countdown-header h2 {
  font-size: 36px;
  margin-bottom: 12px;
}

.countdown-header p {
  color: var(--text-secondary);
  font-size: 18px;
}

.countdown-timer {
  display: flex;
  justify-content: center;
  gap: 24px;
  margin-bottom: 48px;
}

.time-unit {
  text-align: center;
  background: var(--primary);
  padding: 24px;
  border-radius: 12px;
  min-width: 100px;
  border: 1px solid var(--border);
}

.time-unit .number {
  font-size: 48px;
  font-weight: 700;
  color: var(--accent);
  display: block;
}

.time-unit .label {
  color: var(--text-secondary);
  font-size: 14px;
  text-transform: uppercase;
  letter-spacing: 1px;
}

footer {
  background: var(--secondary);
  border-top: 1px solid var(--border);
  padding: 80px 24px 40px;
  margin-top: 80px;
}

.footer-content {
  max-width: 1400px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 40px;
}

.footer-brand p {
  color: var(--text-secondary);
  margin-top: 16px;
  max-width: 280px;
}

.footer-links h4 {
  font-size: 18px;
  margin-bottom: 20px;
}

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

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

.footer-links a {
  color: var(--text-secondary);
  transition: color 0.3s;
}

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

.footer-newsletter h4 {
  font-size: 18px;
  margin-bottom: 20px;
}

.footer-newsletter p {
  color: var(--text-secondary);
  margin-bottom: 16px;
}

.newsletter-form {
  display: flex;
  gap: 12px;
}

.newsletter-form input {
  flex: 1;
  padding: 14px 16px;
  border-radius: 8px;
  border: 1px solid var(--border);
  background: var(--primary);
  color: var(--text-primary);
  font-size: 14px;
}

.newsletter-form input::placeholder {
  color: var(--text-secondary);
}

.newsletter-form button {
  background: var(--accent);
  border: none;
  color: white;
  padding: 14px 24px;
  border-radius: 8px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s;
}

.newsletter-form button:hover {
  background: #ff5a75;
}

.footer-bottom {
  max-width: 1400px;
  margin: 40px auto 0;
  padding-top: 24px;
  border-top: 1px solid var(--border);
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.footer-bottom p {
  color: var(--text-secondary);
  font-size: 14px;
}

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

.social-links a {
  width: 40px;
  height: 40px;
  border-radius: 8px;
  background: var(--primary);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-secondary);
  font-size: 18px;
  transition: all 0.3s;
}

.social-links a:hover {
  background: var(--accent);
  color: white;
}

.page-header {
  padding: 160px 24px 80px;
  background: var(--secondary);
  text-align: center;
  position: relative;
}

.page-header::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: url("data:image/svg+xml,%3Csvg width='40' height='40' viewBox='0 0 40 40' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M20 20.5V18H0v-2h20v-2H0v-2h20v-2H0V8h20V6H0V4h20V2H0V0h22v20h2V0h2v20h2V0h2v20h2V0h2v20h2V0h2v20h2v2h-2v20h2v2h-2v20h2v2H0v-2h20v2H0v2h20v2H0v2h20v2H0v2h20v2H0v2h20v2H0v-2z' fill='%23e94560' fill-opacity='0.03' fill-rule='evenodd'/%3E%3C/svg%3E");
}

.page-header h1 {
  font-size: 48px;
  margin-bottom: 16px;
  position: relative;
}

.page-header p {
  font-size: 20px;
  color: var(--text-secondary);
  position: relative;
}

.filter-tabs {
  display: flex;
  gap: 12px;
  margin-bottom: 40px;
  flex-wrap: wrap;
}

.filter-tab {
  padding: 12px 24px;
  border-radius: 8px;
  background: var(--secondary);
  border: 1px solid var(--border);
  color: var(--text-secondary);
  font-weight: 500;
  cursor: pointer;
  transition: all 0.3s;
}

.filter-tab:hover,
.filter-tab.active {
  background: var(--accent);
  border-color: var(--accent);
  color: white;
}

.card-countdown {
  display: flex;
  gap: 8px;
  margin-bottom: 16px;
}

.card-countdown .time {
  background: var(--primary);
  padding: 8px 12px;
  border-radius: 6px;
  font-size: 13px;
  font-weight: 600;
  color: var(--text-secondary);
}

.card-countdown .time span {
  color: var(--accent);
}

@media (max-width: 1024px) {
  .hero-content {
    grid-template-columns: 1fr;
    text-align: center;
  }

  .hero-text p {
    margin: 0 auto 32px;
  }

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

  .footer-content {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 768px) {
  .nav-menu {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: var(--secondary);
    flex-direction: column;
    padding: 24px;
    gap: 20px;
    border-top: 1px solid var(--border);
  }

  .nav-menu.active {
    display: flex;
  }

  .mobile-toggle {
    display: flex;
  }

  .hero-text h1 {
    font-size: 36px;
  }

  .countdown-timer {
    gap: 12px;
  }

  .time-unit {
    min-width: 70px;
    padding: 16px;
  }

  .time-unit .number {
    font-size: 32px;
  }

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

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

  .footer-bottom {
    flex-direction: column;
    gap: 20px;
    text-align: center;
  }

  .page-header h1 {
    font-size: 32px;
  }

  .countdown-section {
    padding: 40px 20px;
  }
}