:root {
  --bg-color: #0b0f19;
  --panel-bg: rgba(255, 255, 255, 0.03);
  --panel-border: rgba(255, 255, 255, 0.08);
  --text-primary: #f8fafc;
  --text-muted: #94a3b8;
  --accent: #10b981;
  --accent-hover: #059669;
  --primary: #3b82f6;
  --primary-hover: #2563eb;
  --font-main: 'Inter', sans-serif;
  --font-heading: 'Space Grotesk', sans-serif;
  --transition: all 0.3s ease;
}

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

body {
  font-family: var(--font-main);
  background-color: var(--bg-color);
  color: var(--text-primary);
  line-height: 1.6;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  overflow-x: hidden;
  /* subtle gradient background */
  background-image: radial-gradient(circle at top right, rgba(16, 185, 129, 0.1), transparent 40%),
                    radial-gradient(circle at bottom left, rgba(59, 130, 246, 0.1), transparent 40%);
  background-attachment: fixed;
}

.container {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 1.5rem;
}

.accent {
  color: var(--accent);
}

/* Typography */
h1, h2, h3 {
  font-family: var(--font-heading);
  font-weight: 700;
  line-height: 1.2;
}

/* Header */
.glass-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(11, 15, 25, 0.7);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--panel-border);
  padding: 1rem 0;
}

.header-flex {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.logo {
  font-family: var(--font-heading);
  font-size: 1.5rem;
  font-weight: 800;
  letter-spacing: -0.5px;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.logo-icon {
  height: 32px;
  width: 32px;
  object-fit: contain;
}

.main-nav {
  display: flex;
  gap: 1.5rem;
}

.nav-btn {
  background: none;
  border: none;
  color: var(--text-muted);
  font-family: var(--font-main);
  font-size: 1rem;
  font-weight: 600;
  cursor: pointer;
  transition: var(--transition);
  position: relative;
  padding: 0.5rem 0;
}

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

.nav-btn.active {
  color: var(--accent);
}

.nav-btn.active::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 2px;
  background-color: var(--accent);
  border-radius: 2px;
}

.lang-switcher {
  display: flex;
  gap: 0.5rem;
  background: var(--panel-bg);
  padding: 0.25rem;
  border-radius: 20px;
  border: 1px solid var(--panel-border);
}

.lang-btn {
  background: transparent;
  border: none;
  color: var(--text-muted);
  font-weight: 600;
  font-size: 0.85rem;
  padding: 0.4rem 0.8rem;
  border-radius: 16px;
  cursor: pointer;
  transition: var(--transition);
}

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

.lang-btn.active {
  background: var(--accent);
  color: #fff;
}

/* Buttons */
.btn {
  display: inline-block;
  padding: 0.8rem 1.5rem;
  border-radius: 8px;
  font-family: var(--font-main);
  font-weight: 600;
  font-size: 1rem;
  text-align: center;
  cursor: pointer;
  border: none;
  transition: var(--transition);
}

.btn-primary {
  background: var(--primary);
  color: #fff;
}

.btn-primary:hover {
  background: var(--primary-hover);
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(59, 130, 246, 0.4);
}

.btn-secondary {
  background: var(--panel-bg);
  color: var(--text-primary);
  border: 1px solid var(--panel-border);
}

.btn-secondary:hover {
  background: rgba(255, 255, 255, 0.1);
  transform: translateY(-2px);
}

.btn-accent {
  background: var(--accent);
  color: #fff;
}

.btn-accent:hover {
  background: var(--accent-hover);
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(16, 185, 129, 0.4);
}

.btn-block {
  width: 100%;
  display: block;
}

/* Hero Section */
.hero {
  padding: 4rem 0 6rem;
}

.hero-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: center;
}

.hero-text h1 {
  font-size: 3.5rem;
  margin-bottom: 1.5rem;
}

.hero-text p {
  font-size: 1.2rem;
  color: var(--text-muted);
  margin-bottom: 2rem;
  max-width: 90%;
}

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

.glass-panel {
  background: var(--panel-bg);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid var(--panel-border);
  border-radius: 16px;
  padding: 1rem;
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.4);
}

.video-panel {
  padding: 0.5rem;
  overflow: hidden;
  position: relative;
}

.video-panel video {
  width: 100%;
  border-radius: 12px;
  display: block;
  outline: none;
}

.music-credit {
  text-align: right;
  font-size: 0.8rem;
  color: var(--text-muted);
  margin-top: 0.5rem;
  padding-right: 0.5rem;
}

/* Main Content */
main {
  flex: 1;
  padding-bottom: 6rem;
}

.tab-content {
  display: none;
  animation: fadeIn 0.4s ease forwards;
}

.tab-content.active {
  display: block;
}

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

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

.section-header h2 {
  font-size: 2.5rem;
  margin-bottom: 1rem;
}

.section-header p {
  color: var(--text-muted);
  font-size: 1.1rem;
  max-width: 600px;
  margin: 0 auto;
}

/* Packs Grid */
.packs-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 2rem;
}

.glass-card {
  background: var(--panel-bg);
  border: 1px solid var(--panel-border);
  border-radius: 16px;
  padding: 2.5rem 2rem;
  display: flex;
  flex-direction: column;
  transition: var(--transition);
  position: relative;
  backdrop-filter: blur(8px);
}

.glass-card:hover {
  transform: translateY(-10px);
  border-color: rgba(255, 255, 255, 0.2);
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.5);
}

.glass-card.recommended {
  border-color: var(--primary);
  background: linear-gradient(to bottom, rgba(59, 130, 246, 0.05), rgba(255, 255, 255, 0.02));
}

.badge {
  position: absolute;
  top: -12px;
  left: 50%;
  transform: translateX(-50%);
  background: var(--primary);
  color: #fff;
  padding: 4px 12px;
  border-radius: 20px;
  font-size: 0.8rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1px;
}

.pack-card h3 {
  font-size: 1.5rem;
  margin-bottom: 1rem;
  text-align: center;
}

.pack-card .price {
  font-family: var(--font-heading);
  font-size: 3rem;
  font-weight: 800;
  text-align: center;
  color: var(--accent);
  margin-bottom: 2rem;
}

.features {
  list-style: none;
  flex: 1;
  margin-bottom: 2rem;
}

.features li {
  margin-bottom: 1rem;
  color: var(--text-muted);
  position: relative;
  padding-left: 1.5rem;
}

.features li::before {
  content: '✓';
  position: absolute;
  left: 0;
  color: var(--accent);
  font-weight: bold;
}

/* Accordion */
.accordion {
  max-width: 800px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.accordion-item {
  background: var(--panel-bg);
  border: 1px solid var(--panel-border);
  border-radius: 12px;
  overflow: hidden;
  transition: var(--transition);
}

.accordion-item:hover {
  border-color: rgba(255, 255, 255, 0.15);
}

.accordion-header {
  width: 100%;
  display: flex;
  align-items: center;
  padding: 1.5rem;
  background: transparent;
  border: none;
  color: var(--text-primary);
  font-family: var(--font-heading);
  font-size: 1.2rem;
  font-weight: 600;
  cursor: pointer;
  text-align: left;
}

.step-num {
  background: rgba(16, 185, 129, 0.2);
  color: var(--accent);
  width: 32px;
  height: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  font-size: 0.9rem;
  margin-right: 1rem;
  flex-shrink: 0;
}

.accordion-header .icon {
  margin-left: auto;
  font-size: 1.5rem;
  font-weight: 300;
  transition: transform 0.3s ease;
  color: var(--text-muted);
}

.accordion-item.open .accordion-header .icon {
  transform: rotate(45deg);
  color: var(--accent);
}

.accordion-body {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.4s cubic-bezier(0, 1, 0, 1);
}

.accordion-item.open .accordion-body {
  max-height: 1000px;
  transition: max-height 0.4s ease-in-out;
}

.accordion-content {
  padding: 0 1.5rem 1.5rem 4.5rem;
  color: var(--text-muted);
}

.accordion-content p {
  margin-bottom: 1rem;
}

.accordion-content ul {
  padding-left: 1.5rem;
  margin-bottom: 1rem;
}

.accordion-content li {
  margin-bottom: 0.5rem;
}

.accordion-content pre {
  background: rgba(0,0,0,0.3);
  padding: 1rem;
  border-radius: 8px;
  overflow-x: auto;
  font-family: monospace;
  color: #a78bfa;
  border: 1px solid var(--panel-border);
}

/* Footer */
footer {
  border-top: 1px solid var(--panel-border);
  padding: 2rem 0;
  margin-top: auto;
}

.footer-content {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.footer-content p {
  color: var(--text-muted);
  font-size: 0.9rem;
}

/* Modal */
.modal {
  display: none;
  position: fixed;
  inset: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.85);
  backdrop-filter: blur(5px);
  -webkit-backdrop-filter: blur(5px);
  z-index: 9999;
  justify-content: center;
  align-items: flex-start;
  padding: 2rem 1rem;
  overflow-y: auto;
}

.modal.active {
  display: flex;
  animation: fadeIn 0.3s ease forwards;
}

.modal-content {
  background: var(--bg-color);
  width: 90%;
  max-width: 600px;
  max-height: 90vh;
  overflow-y: auto;
  position: relative;
  border-radius: 16px;
  padding: 2rem;
  border: 1px solid var(--panel-border);
  box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.5);
}

.close-modal {
  position: absolute;
  top: 1rem; right: 1.5rem;
  font-size: 2rem;
  background: none; border: none;
  color: var(--text-muted);
  cursor: pointer;
  transition: var(--transition);
}

.close-modal:hover { color: var(--text-primary); }

.modal-section { margin-top: 2rem; }
.modal-section h3 { font-size: 1.2rem; margin-bottom: 1rem; border-bottom: 1px solid var(--panel-border); padding-bottom: 0.5rem; }

.options-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1rem;
}

.option-card {
  display: block;
  cursor: pointer;
}

.option-card input[type="radio"] { display: none; }

.option-content {
  background: var(--panel-bg);
  border: 1px solid var(--panel-border);
  border-radius: 12px;
  padding: 1rem;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  transition: var(--transition);
}

.opt-name { font-weight: 600; flex: 1; }
.opt-price { color: var(--accent); font-weight: 700; font-family: var(--font-heading); font-size: 1.1rem; }
.opt-desc { width: 100%; font-size: 0.85rem; color: var(--text-muted); margin-top: 0.5rem; }

.option-card input[type="radio"]:checked + .option-content {
  border-color: var(--accent);
  background: rgba(16, 185, 129, 0.1);
  box-shadow: 0 0 15px rgba(16, 185, 129, 0.2);
}

.modal-footer {
  margin-top: 2rem;
  padding-top: 1.5rem;
  border-top: 1px solid var(--panel-border);
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.total-price { font-size: 1.5rem; font-family: var(--font-heading); font-weight: 800; }
.total-price span:last-child { color: var(--accent); }

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

  .hero-text h1 {
    font-size: 3rem;
  }

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

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

  .packs-grid {
    grid-template-columns: 1fr 1fr;
    max-width: 800px;
    margin: 0 auto;
  }
}

@media (max-width: 600px) {
  .packs-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 600px) {
  .header-flex {
    flex-direction: column;
    gap: 1rem;
  }

  .hero-actions {
    flex-direction: column;
  }
  
  .accordion-content {
    padding-left: 1.5rem;
  }

  .footer-content {
    flex-direction: column;
    gap: 1rem;
    text-align: center;
  }
}

/* Cookie Banner styling */
.cookie-banner {
  position: fixed;
  bottom: 20px;
  left: 50%;
  transform: translateX(-50%);
  width: 90%;
  max-width: 600px;
  background: rgba(15, 23, 42, 0.9);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 12px;
  padding: 1rem 1.5rem;
  z-index: 2000;
  box-shadow: 0 10px 25px -5px rgba(0, 0, 0, 0.5);
  transition: opacity 0.3s ease, transform 0.3s ease;
}

.cookie-banner.hidden {
  opacity: 0;
  transform: translate(-50%, 20px);
  pointer-events: none;
}

.cookie-content {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
}

@media (max-width: 600px) {
  .cookie-content {
    flex-direction: column;
    text-align: center;
    gap: 1rem;
  }
}

.cookie-content p {
  font-size: 0.85rem;
  color: var(--text-muted);
  line-height: 1.5;
}

.cookie-content p a {
  color: var(--accent);
  text-decoration: underline;
}

.cookie-actions button {
  white-space: nowrap;
}

.btn-sm {
  padding: 0.5rem 1rem;
  font-size: 0.85rem;
}
