/* ============ RESET & TOKENS ============ */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}
:root {
  --primary: #0066ff;
  --success: #10b981;
  --warning: #f59e0b;
  --danger: #ef4444;
  --dark-bg: #0f172a;
  --dark: #0f172a;
  --dark-secondary: #1e293b;
  --text-primary: #ffffff;
  --text-secondary: #cbd5e1;
  --border: #334155;
  --accent: #6366f1;
}
body {
  font-family:
    -apple-system, BlinkMacSystemFont, "Segoe UI", "Helvetica Neue", sans-serif;
  font-size: 16px;
  line-height: 1.6;
  color: var(--text-primary);
  background: var(--dark-bg);
  overflow-x: hidden;
}
html {
  scroll-behavior: smooth;
}
h1 {
  font-size: 3.5rem;
  font-weight: 800;
  line-height: 1.1;
  letter-spacing: -0.02em;
  margin-bottom: 1rem;
}
h2 {
  font-size: 2.25rem;
  font-weight: 700;
  margin-bottom: 1.5rem;
}
h3 {
  font-size: 1.125rem;
  font-weight: 700;
}
a {
  color: var(--primary);
  text-decoration: none;
}
a:hover {
  text-decoration: underline;
}
.container {
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 2rem;
}
.subtitle {
  font-size: 1.125rem;
  color: var(--text-secondary);
  line-height: 1.7;
}
.btn {
  padding: 0.75rem 1.5rem;
  font-size: 1rem;
  border-radius: 0.5rem;
  border: none;
  cursor: pointer;
  font-weight: 600;
  transition: all 0.3s ease;
  display: inline-block;
  text-align: center;
  text-decoration: none;
}
.btn-primary {
  background: var(--primary);
  color: white;
}
.btn-primary:hover {
  background: #0052cc;
  transform: translateY(-2px);
  box-shadow: 0 10px 25px rgba(0, 102, 255, 0.3);
}
.btn-secondary {
  background: transparent;
  color: var(--primary);
  border: 2px solid var(--primary);
}
.btn-secondary:hover {
  background: rgba(0, 102, 255, 0.1);
}
:focus-visible {
  outline: 3px solid var(--primary);
  outline-offset: 2px;
}

/* ============ ICONS ============ */
.icon {
  width: 1rem;
  height: 1rem;
  flex-shrink: 0;
  vertical-align: middle;
}
.icon-free {
  color: var(--success);
}
.icon-discount {
  color: var(--warning);
}
.icon-credits {
  color: #a78bfa;
}
.card-logo .icon {
  width: 1.25rem;
  height: 1.25rem;
}
.filter-btn .icon {
  margin-right: 0.35rem;
}
.benefit-badge .icon {
  margin-right: 0.25rem;
}

/* ============ HERO ============ */
.hero {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: center;
  padding: 6rem 2rem;
  position: relative;
  overflow: hidden;
  max-width: 1280px;
  margin: 0 auto;
}
.hero::before {
  content: "";
  position: absolute;
  top: -50%;
  right: -20%;
  width: 600px;
  height: 600px;
  background: radial-gradient(circle, var(--primary), var(--accent));
  border-radius: 50%;
  opacity: 0.08;
  animation: float 8s ease-in-out infinite;
  z-index: 0;
}
.hero-content {
  z-index: 2;
  position: relative;
}
.hero-logo-link {
  display: inline-block;
  text-decoration: none;
  margin-bottom: 1rem;
  transition: transform 0.3s ease, filter 0.3s ease;
}
.hero-logo-link:hover {
  transform: scale(1.05);
}
.hero-logo-link:focus-visible {
  outline: 3px solid var(--primary);
  outline-offset: 4px;
  border-radius: 0.5rem;
}
.hero-logo {
  margin-bottom: 1rem;
  filter: drop-shadow(0 4px 12px rgba(0, 102, 255, 0.3));
}
.hero-stats {
  display: flex;
  gap: 3rem;
  margin: 2.5rem 0;
}
.stat {
  display: flex;
  flex-direction: column;
}
.stat-number {
  font-size: 2.5rem;
  font-weight: 800;
  color: var(--primary);
}
.stat-label {
  font-size: 0.875rem;
  color: var(--text-secondary);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}
.hero-actions {
  display: flex;
  gap: 1rem;
  margin-top: 2rem;
  flex-wrap: wrap;
}
@keyframes float {
  0%,
  100% {
    transform: translateY(0px);
  }
  50% {
    transform: translateY(-20px);
  }
}

/* ============ FILTERS ============ */
.filters-section {
  background: var(--dark-secondary);
  padding: 1.5rem;
  border-radius: 1rem;
  margin-bottom: 2rem;
  border: 1px solid var(--border);
}
.filters-container {
  max-width: 1280px;
  margin: 0 auto;
}
.search-bar {
  position: relative;
  margin-bottom: 1.5rem;
}
.clear-search {
  position: absolute;
  right: 0.75rem;
  top: 50%;
  transform: translateY(-50%);
  background: var(--dark-secondary);
  border: 1px solid var(--border);
  border-radius: 50%;
  width: 24px;
  height: 24px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1rem;
  line-height: 1;
  color: var(--text-secondary);
  cursor: pointer;
  padding: 0;
  transition: all 0.2s;
}
.clear-search:hover {
  background: var(--primary);
  color: white;
  border-color: var(--primary);
}
.search-input {
  width: 100%;
  padding: 0.75rem 2.5rem 0.75rem 2.5rem;
  border: 2px solid var(--border);
  border-radius: 0.5rem;
  background: var(--dark-bg);
  color: var(--text-primary);
  font-size: 1rem;
  transition: border-color 0.3s;
}
.search-input:focus {
  outline: none;
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(0, 102, 255, 0.1);
}
.search-icon {
  position: absolute;
  left: 0.75rem;
  top: 50%;
  transform: translateY(-50%);
  width: 18px;
  height: 18px;
  color: var(--text-secondary);
  pointer-events: none;
}
.filter-group {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-bottom: 1rem;
}
.filter-btn {
  padding: 0.5rem 1rem;
  background: var(--dark-bg);
  color: var(--text-secondary);
  border: 1px solid var(--border);
  border-radius: 2rem;
  cursor: pointer;
  font-size: 0.875rem;
  font-weight: 500;
  transition: all 0.3s;
}
.filter-btn:hover,
.filter-btn.active {
  background: var(--primary);
  color: white;
  border-color: var(--primary);
}
.results-info {
  font-size: 0.875rem;
  color: var(--text-secondary);
  margin-top: 1rem;
}
.btn-favorites {
  float: right;
  padding: 0.6rem 1.2rem;
  background: linear-gradient(135deg, var(--primary), var(--accent));
  color: white;
  border: none;
  border-radius: 0.5rem;
  cursor: pointer;
  font-weight: 600;
}

/* ============ BENEFITS GRID ============ */
.benefits-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
  gap: 2rem;
  margin-bottom: 4rem;
}
.benefit-card {
  background: var(--dark-secondary);
  border: 1px solid var(--border);
  border-radius: 0.75rem;
  padding: 1.5rem;
  transition: all 0.3s;
  display: flex;
  flex-direction: column;
  height: 100%;
}
.benefit-card:hover {
  border-color: var(--primary);
  box-shadow: 0 8px 24px rgba(0, 102, 255, 0.15);
  transform: translateY(-4px);
}
.card-header {
  display: flex;
  align-items: flex-start;
  gap: 1rem;
  margin-bottom: 1rem;
  position: relative;
}
.card-logo {
  width: 48px;
  height: 48px;
  background: var(--dark-bg);
  border-radius: 0.5rem;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  font-size: 1.5rem;
}
.card-title-group {
  flex: 1;
}
.card-title {
  font-size: 1.125rem;
  font-weight: 700;
  margin: 0 0 0.25rem 0;
}
.benefit-badge {
  display: inline-block;
  padding: 0.25rem 0.75rem;
  border-radius: 2rem;
  font-size: 0.75rem;
  font-weight: 600;
}
.benefit-badge.free {
  background: rgba(16, 185, 129, 0.15);
  color: #10b981;
}
.benefit-badge.discount {
  background: rgba(245, 158, 11, 0.15);
  color: #f59e0b;
}
.benefit-badge.credits {
  background: rgba(139, 92, 246, 0.15);
  color: #a78bfa;
}
.btn-favorite {
  background: none;
  border: none;
  font-size: 1.5rem;
  cursor: pointer;
  color: var(--text-secondary);
  padding: 0;
  transition: all 0.3s;
  display: flex;
  align-items: center;
  justify-content: center;
}
.btn-favorite .icon {
  width: 1.25rem;
  height: 1.25rem;
}
.btn-favorites .icon {
  margin-right: 0.35rem;
}
.btn-favorite:hover,
.btn-favorite.active {
  color: #fbbf24;
  transform: scale(1.2);
}
.card-description {
  color: var(--text-secondary);
  margin: 0 0 1.5rem 0;
  line-height: 1.6;
}
.card-details {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
  padding: 1rem;
  background: var(--dark-bg);
  border-radius: 0.5rem;
  margin-bottom: 1.5rem;
  font-size: 0.875rem;
}
.detail-item {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
}
.detail-label {
  color: var(--text-secondary);
  font-weight: 500;
}
.detail-value {
  color: var(--text-primary);
  font-weight: 600;
}
.status-badge {
  display: inline-block;
  padding: 0.25rem 0.5rem;
  border-radius: 0.25rem;
  font-size: 0.75rem;
  font-weight: 600;
}
.status-badge.active {
  background: rgba(16, 185, 129, 0.2);
  color: #10b981;
}
.status-badge.expiring {
  background: rgba(245, 158, 11, 0.2);
  color: #f59e0b;
}
.card-steps {
  background: var(--dark-bg);
  padding: 1rem;
  border-radius: 0.5rem;
  margin-bottom: 1.5rem;
  font-size: 0.875rem;
}
.card-steps h4 {
  margin: 0 0 0.75rem 0;
  font-size: 0.9rem;
}
.card-steps ol {
  margin: 0;
  padding-left: 1.25rem;
}
.card-steps li {
  margin-bottom: 0.5rem;
  color: var(--text-secondary);
}
.card-steps a {
  color: var(--primary);
  text-decoration: none;
  font-weight: 500;
}
.card-steps a:hover {
  text-decoration: underline;
}
.card-footer {
  display: flex;
  gap: 0.75rem;
  margin-top: auto;
}
.card-footer .btn {
  flex: 1;
  padding: 0.65rem 1rem;
  font-size: 0.9rem;
}

/* ============ HOW IT WORKS ============ */
.how-it-works {
  max-width: 1280px;
  margin: 6rem auto;
  padding: 0 2rem;
}
.steps-timeline {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 2rem;
  margin-top: 3rem;
}
.timeline-step {
  background: var(--dark-secondary);
  padding: 2rem;
  border-radius: 0.75rem;
  border: 1px solid var(--border);
  position: relative;
}
.step-number {
  position: absolute;
  top: -12px;
  left: 2rem;
  width: 40px;
  height: 40px;
  background: var(--primary);
  color: white;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 800;
  font-size: 1.25rem;
}
.timeline-step h3 {
  margin-top: 1.5rem;
  margin-bottom: 0.75rem;
}
.timeline-step p {
  color: var(--text-secondary);
  margin-bottom: 1rem;
}

/* ============ FAQ ============ */
.faq-section {
  max-width: 1280px;
  margin: 4rem auto;
  padding: 0 2rem;
}
.faq-list {
  margin-top: 2rem;
  border-radius: 0.75rem;
  overflow: hidden;
}
.faq-item {
  border-bottom: 1px solid var(--border);
}
.faq-item:last-child {
  border-bottom: none;
}
.faq-question {
  width: 100%;
  background: var(--dark-secondary);
  border: none;
  padding: 1.5rem;
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-weight: 600;
  color: var(--text-primary);
  transition: all 0.3s;
  font-size: 1rem;
}
.faq-question:hover {
  background: rgba(0, 102, 255, 0.1);
}
.faq-question svg {
  color: var(--text-secondary);
  transition: transform 0.3s;
  flex-shrink: 0;
}
.faq-question.open svg {
  transform: rotate(180deg);
}
.faq-answer {
  display: none;
  background: var(--dark-bg);
  padding: 1.5rem;
  color: var(--text-secondary);
  line-height: 1.7;
}
.faq-answer.open {
  display: block;
}

/* ============ FOOTER ============ */
footer {
  background: var(--dark-secondary);
  border-top: 1px solid var(--border);
  padding: 3rem 2rem;
  margin-top: 6rem;
}
.footer-container {
  max-width: 1280px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 2rem;
}
.footer-section h4 {
  margin-bottom: 1rem;
}
.footer-section a {
  display: block;
  color: var(--text-secondary);
  margin-bottom: 0.5rem;
  transition: color 0.3s;
}
.footer-section a:hover {
  color: var(--primary);
}
.footer-credits {
  grid-column: 1/-1;
  text-align: center;
  border-top: 1px solid var(--border);
  padding-top: 2rem;
  color: var(--text-secondary);
  margin-top: 1rem;
}

/* ============ RESPONSIVE ============ */
@media (max-width: 768px) {
  .hero {
    grid-template-columns: 1fr;
    padding: 3rem 1.5rem;
  }
  h1 {
    font-size: 2rem;
  }
  .hero-stats {
    flex-direction: row;
    gap: 1.5rem;
    justify-content: space-between;
  }
  .filters-section {
    position: static;
    padding: 1rem;
  }
  .filter-btn {
    padding: 0.4rem 0.8rem;
    font-size: 0.8rem;
  }
  .btn-favorites {
    float: none;
    width: 100%;
    margin-top: 1rem;
  }
  .benefits-grid {
    grid-template-columns: 1fr;
  }
  .card-details {
    grid-template-columns: 1fr;
  }
  .footer-container {
    grid-template-columns: 1fr;
  }
}
@media (max-width: 480px) {
  .hero-stats {
    flex-direction: column;
    gap: 1rem;
  }
  .card-footer {
    flex-direction: column;
  }
}
