/* Design System & Tokens */
:root {
  --bg-primary: #07090e;
  --text-primary: #f8fafc;
  --text-secondary: #94a3b8;
  --accent-purple: #0ea5e9; /* Light Tech Blue */
  --accent-blue: #0b57d0;   /* Chrome Blue */
  --accent-indigo: #2563eb; /* Steel Blue */
  --glow-purple: rgba(14, 165, 233, 0.12);
  --glow-blue: rgba(11, 87, 208, 0.12);
  --glass-bg: rgba(255, 255, 255, 0.02);
  --glass-border: rgba(255, 255, 255, 0.06);
  --glass-border-hover: rgba(255, 255, 255, 0.12);
}

/* Base Styles & Typography */
* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
  scroll-behavior: smooth;
}

body {
  font-family: 'Plus Jakarta Sans', -apple-system, sans-serif;
  background-color: var(--bg-primary);
  color: var(--text-primary);
  overflow-x: hidden;
  position: relative;
  line-height: 1.6;
}

h1, h2, h3, h4 {
  font-family: 'Outfit', -apple-system, sans-serif;
  font-weight: 700;
  letter-spacing: -0.02em;
}

/* Ambient Background Lights */
.ambient-glow {
  position: absolute;
  width: 600px;
  height: 600px;
  border-radius: 50%;
  filter: blur(160px);
  z-index: -1;
  pointer-events: none;
  opacity: 0.6;
}

.bg-glow-1 {
  background: radial-gradient(circle, var(--glow-purple) 0%, transparent 70%);
  top: -100px;
  left: -100px;
}

.bg-glow-2 {
  background: radial-gradient(circle, var(--glow-blue) 0%, transparent 70%);
  top: 600px;
  right: -100px;
}

/* Navbar */
.navbar {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 1000;
  backdrop-filter: blur(12px);
  background: rgba(3, 0, 20, 0.7);
  border-bottom: 1px solid var(--glass-border);
}

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

.nav-logo {
  display: flex;
  align-items: center;
  gap: 8px;
}

.logo-svg {
  width: 22px;
  height: 22px;
  color: var(--accent-purple);
}

.logo-text {
  font-size: 1.1rem;
  font-weight: 800;
  background: linear-gradient(135deg, #ffffff 40%, var(--accent-indigo) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

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

.nav-menu a {
  color: var(--text-secondary);
  text-decoration: none;
  font-size: 0.9rem;
  font-weight: 600;
  transition: color 0.2s ease;
}

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

.lang-selector-btn {
  background: var(--glass-bg);
  border: 1px solid var(--glass-border);
  color: var(--text-primary);
  font-size: 0.8rem;
  font-weight: 700;
  padding: 6px 12px;
  border-radius: 8px;
  cursor: pointer;
  transition: all 0.2s ease;
}

.lang-selector-btn:hover {
  border-color: var(--glass-border-hover);
  background: rgba(255, 255, 255, 0.05);
}

/* Hero Section */
.hero-section {
  padding: 160px 24px 80px 24px;
  text-align: center;
  position: relative;
}

.hero-container {
  max-width: 800px;
  margin: 0 auto;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  background: rgba(99, 102, 241, 0.08);
  border: 1px solid rgba(99, 102, 241, 0.2);
  color: var(--accent-indigo);
  font-size: 0.8rem;
  font-weight: 700;
  padding: 6px 16px;
  border-radius: 20px;
  margin-bottom: 24px;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.hero-title {
  font-size: 3.2rem;
  line-height: 1.15;
  margin-bottom: 20px;
  background: linear-gradient(135deg, #ffffff 50%, #93c5fd 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.hero-subtitle {
  font-size: 1.1rem;
  color: var(--text-secondary);
  margin-bottom: 36px;
  line-height: 1.6;
}

.btn-primary {
  display: inline-block;
  background: linear-gradient(135deg, var(--accent-indigo) 0%, var(--accent-blue) 100%);
  color: #ffffff;
  text-decoration: none;
  font-weight: 700;
  font-size: 0.95rem;
  padding: 14px 28px;
  border-radius: 12px;
  box-shadow: 0 4px 20px rgba(99, 102, 241, 0.35);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 24px rgba(99, 102, 241, 0.5);
}

/* Sections Global */
.section-container {
  max-width: 1100px;
  margin: 0 auto;
  padding: 80px 24px;
}

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

.section-title {
  font-size: 2rem;
  margin-bottom: 12px;
  background: linear-gradient(135deg, #ffffff 80%, #cbd5e1 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.section-subtitle {
  font-size: 0.95rem;
  color: var(--text-secondary);
}

/* Extensions Grid */
.extensions-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 28px;
}

.ext-card {
  background: var(--glass-bg);
  border: 1px solid var(--glass-border);
  border-radius: 16px;
  display: flex;
  flex-direction: column;
  position: relative;
  transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
  overflow: hidden;
}

.ext-card::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0; height: 3px;
  background: transparent;
  transition: background 0.3s ease;
  z-index: 10;
}

.ext-card:hover {
  transform: translateY(-5px);
  border-color: var(--glass-border-hover);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
}

.ext-card:hover::before {
  background: linear-gradient(90deg, var(--accent-purple), var(--accent-blue));
}

/* Image preview section styling */
.card-image-wrapper {
  width: 100%;
  height: 180px;
  overflow: hidden;
  border-bottom: 1px solid var(--glass-border);
  position: relative;
  background: #111520;
}

.card-preview-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

.ext-card:hover .card-preview-image {
  transform: scale(1.04);
}

.card-content-wrapper {
  padding: 24px;
  display: flex;
  flex-direction: column;
  flex-grow: 1;
}

.card-header-row {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 14px;
}

.card-icon-wrapper {
  width: 36px;
  height: 36px;
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.25rem;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--glass-border);
  flex-shrink: 0;
}

.purple-glow {
  box-shadow: 0 0 10px rgba(14, 165, 233, 0.25) inset;
}

.blue-glow {
  box-shadow: 0 0 10px rgba(11, 87, 208, 0.25) inset;
}

.red-glow {
  box-shadow: 0 0 10px rgba(239, 68, 68, 0.25) inset;
}

.orange-glow {
  box-shadow: 0 0 10px rgba(249, 115, 22, 0.25) inset;
}

.green-glow {
  box-shadow: 0 0 10px rgba(34, 197, 94, 0.25) inset;
}

.teal-glow {
  box-shadow: 0 0 10px rgba(20, 184, 166, 0.25) inset;
}

.cyan-glow {
  box-shadow: 0 0 10px rgba(6, 182, 212, 0.25) inset;
}

.magenta-glow {
  box-shadow: 0 0 10px rgba(236, 72, 153, 0.25) inset;
}

.card-title {
  font-size: 1.15rem;
  line-height: 1.2;
}

.card-desc {
  font-size: 0.88rem;
  color: var(--text-secondary);
  line-height: 1.5;
  margin-bottom: 20px;
  flex-grow: 1;
}

.card-badges {
  display: flex;
  gap: 8px;
  margin-bottom: 24px;
}

.badge {
  font-size: 0.7rem;
  font-weight: 700;
  padding: 4px 10px;
  border-radius: 6px;
  text-transform: uppercase;
}

.badge-success {
  background: rgba(16, 185, 129, 0.08);
  border: 1px solid rgba(16, 185, 129, 0.2);
  color: #10b981;
}

.badge-info {
  background: rgba(59, 130, 246, 0.08);
  border: 1px solid rgba(59, 130, 246, 0.2);
  color: var(--accent-blue);
}

.btn-card-download {
  display: block;
  width: 100%;
  text-align: center;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--glass-border);
  color: var(--text-primary);
  text-decoration: none;
  font-weight: 600;
  font-size: 0.85rem;
  padding: 10px 16px;
  border-radius: 10px;
  transition: all 0.2s ease;
}

.btn-card-download:hover {
  background: var(--text-primary);
  color: var(--bg-primary);
  border-color: var(--text-primary);
}

/* Curated recommendations list (SEO section) */
.recommendations-list {
  display: flex;
  flex-direction: column;
  gap: 20px;
  max-width: 800px;
  margin: 0 auto;
}

.rec-item {
  display: flex;
  gap: 24px;
  padding: 24px;
  background: var(--glass-bg);
  border: 1px solid var(--glass-border);
  border-radius: 14px;
  transition: border-color 0.2s ease;
}

.rec-item:hover {
  border-color: var(--glass-border-hover);
}

.rec-num {
  font-size: 1.8rem;
  font-family: 'Outfit', sans-serif;
  font-weight: 800;
  color: var(--accent-indigo);
  line-height: 1;
}

.rec-info {
  flex: 1;
}

.rec-title {
  font-size: 1.1rem;
  margin-bottom: 6px;
  display: flex;
  align-items: center;
  gap: 8px;
}

.rec-badge-highlight {
  font-size: 0.65rem;
  font-weight: 800;
  padding: 2px 8px;
  background: rgba(168, 85, 247, 0.1);
  border: 1px solid rgba(168, 85, 247, 0.2);
  color: var(--accent-purple);
  border-radius: 4px;
  text-transform: uppercase;
}

.rec-desc {
  font-size: 0.88rem;
  color: var(--text-secondary);
  line-height: 1.5;
}

/* Footer */
.main-footer {
  border-top: 1px solid var(--glass-border);
  background: rgba(3, 0, 20, 0.5);
  margin-top: 60px;
}

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

.footer-left {
  display: flex;
  align-items: center;
  gap: 8px;
}

.footer-text {
  font-size: 0.8rem;
  color: var(--text-secondary);
}

.footer-right a {
  font-size: 0.8rem;
  color: var(--text-secondary);
  text-decoration: none;
  transition: color 0.2s ease;
}

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

/* Responsive adjustments */
@media (max-width: 768px) {
  .hero-title {
    font-size: 2.2rem;
  }
  .nav-menu {
    display: none;
  }
  .footer-container {
    flex-direction: column;
    gap: 16px;
    text-align: center;
  }
}
