/* ==========================================
   DistroKid 50% Off Landing Page Design System
   ========================================== */

:root {
  /* Color Palette */
  --bg-primary: #070913;
  --bg-secondary: #0d1127;
  --bg-card: rgba(18, 24, 52, 0.65);
  --bg-card-hover: rgba(28, 38, 80, 0.75);
  
  --color-text-main: #F1F5F9;
  --color-text-muted: #94A3B8;
  --color-text-dim: #64748B;
  
  /* Brand Gradients & Accents */
  --accent-cyan: #00F2FE;
  --accent-blue: #4FACFE;
  --accent-purple: #8B5CF6;
  --accent-green: #10B981;
  --accent-gold: #F59E0B;
  
  --gradient-primary: linear-gradient(135deg, #00F2FE 0%, #4FACFE 50%, #8B5CF6 100%);
  --gradient-glow: linear-gradient(135deg, rgba(0, 242, 254, 0.3) 0%, rgba(139, 92, 246, 0.3) 100%);
  --gradient-green: linear-gradient(135deg, #10B981 0%, #059669 100%);

  /* Border & Glass */
  --border-glass: rgba(255, 255, 255, 0.08);
  --border-glow: rgba(0, 242, 254, 0.3);
  --shadow-glass: 0 20px 40px rgba(0, 0, 0, 0.4);
  --shadow-glow: 0 0 30px rgba(0, 242, 254, 0.25);
  
  /* Typography */
  --font-heading: 'Outfit', -apple-system, BlinkMacSystemFont, sans-serif;
  --font-body: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, sans-serif;
  
  /* Transitions & Radii */
  --radius-sm: 8px;
  --radius-md: 16px;
  --radius-lg: 24px;
  --radius-full: 9999px;
  --transition-fast: 0.2s cubic-bezier(0.4, 0, 0.2, 1);
  --transition-normal: 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Reset & Global */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  font-size: 16px;
  background-color: var(--bg-primary);
  color: var(--color-text-main);
  font-family: var(--font-body);
  overflow-x: hidden;
}

body {
  line-height: 1.6;
  min-height: 100vh;
}

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

ul {
  list-style: none;
}

/* Container */
.container {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
}

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

.gradient-text {
  background: var(--gradient-primary);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

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

/* Glassmorphism Panel */
.glass-panel {
  background: var(--bg-card);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid var(--border-glass);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-glass);
  transition: all var(--transition-normal);
}

.glass-panel:hover {
  border-color: rgba(0, 242, 254, 0.2);
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.6), 0 0 25px rgba(0, 242, 254, 0.15);
}

/* Announcement Bar */
.announcement-bar {
  background: linear-gradient(90deg, #0f172a 0%, #1e1b4b 50%, #0f172a 100%);
  border-bottom: 1px solid rgba(139, 92, 246, 0.3);
  padding: 10px 0;
  text-align: center;
  font-size: 0.9rem;
}

.announcement-content {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  flex-wrap: wrap;
}

.badge-pulse {
  background: rgba(16, 185, 129, 0.15);
  color: var(--accent-green);
  border: 1px solid rgba(16, 185, 129, 0.4);
  padding: 2px 10px;
  border-radius: var(--radius-full);
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.announcement-link {
  color: var(--accent-cyan);
  font-weight: 700;
  transition: color var(--transition-fast);
}

.announcement-link:hover {
  color: #ffffff;
  text-decoration: underline;
}

/* Navbar */
.navbar {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(7, 9, 19, 0.85);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border-glass);
  padding: 16px 0;
}

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

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

.logo-icon {
  width: 28px;
  height: 28px;
  color: var(--accent-cyan);
}

.logo-text .highlight {
  color: var(--accent-cyan);
  background: var(--gradient-primary);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  margin-left: 2px;
}

.nav-menu {
  display: flex;
  align-items: center;
  gap: 32px;
}

.nav-menu a {
  font-size: 0.95rem;
  color: var(--color-text-muted);
  font-weight: 500;
  transition: color var(--transition-fast);
}

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

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

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 10px 20px;
  font-family: var(--font-heading);
  font-weight: 600;
  font-size: 0.95rem;
  border-radius: var(--radius-md);
  border: none;
  cursor: pointer;
  transition: all var(--transition-normal);
  white-space: nowrap;
}

.btn-primary {
  background: var(--gradient-primary);
  color: #070913;
  font-weight: 700;
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 25px rgba(0, 242, 254, 0.4);
}

.btn-secondary {
  background: rgba(255, 255, 255, 0.08);
  color: var(--color-text-main);
  border: 1px solid var(--border-glass);
}

.btn-secondary:hover {
  background: rgba(255, 255, 255, 0.15);
  border-color: rgba(255, 255, 255, 0.2);
}

.btn-outline {
  background: transparent;
  color: var(--color-text-muted);
  border: 1px solid var(--border-glass);
}

.btn-outline:hover {
  color: var(--color-text-main);
  border-color: var(--accent-cyan);
}

.btn-hero {
  background: var(--gradient-primary);
  color: #070913;
  padding: 16px 32px;
  font-size: 1.1rem;
  font-weight: 800;
  border-radius: var(--radius-md);
  box-shadow: 0 10px 30px rgba(0, 242, 254, 0.35);
}

.btn-hero:hover {
  transform: translateY(-3px) scale(1.02);
  box-shadow: 0 15px 40px rgba(0, 242, 254, 0.5);
}

.glow-btn {
  box-shadow: 0 0 20px rgba(0, 242, 254, 0.3);
}

/* Hero Section */
.hero-section {
  position: relative;
  padding: 80px 0 100px;
  overflow: hidden;
}

.hero-bg-glow {
  position: absolute;
  top: -100px;
  right: -100px;
  width: 600px;
  height: 600px;
  background: radial-gradient(circle, rgba(0, 242, 254, 0.15) 0%, rgba(139, 92, 246, 0.1) 40%, rgba(0,0,0,0) 70%);
  pointer-events: none;
  z-index: 0;
}

.hero-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
  align-items: center;
  position: relative;
  z-index: 1;
}

.hero-pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 16px;
  background: rgba(0, 242, 254, 0.08);
  border: 1px solid rgba(0, 242, 254, 0.25);
  border-radius: var(--radius-full);
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--accent-cyan);
  margin-bottom: 24px;
}

.pill-dot {
  width: 8px;
  height: 8px;
  background-color: var(--accent-green);
  border-radius: 50%;
  box-shadow: 0 0 10px var(--accent-green);
  animation: pulse 2s infinite;
}

@keyframes pulse {
  0% { transform: scale(0.95); box-shadow: 0 0 0 0 rgba(16, 185, 129, 0.7); }
  70% { transform: scale(1); box-shadow: 0 0 0 10px rgba(16, 185, 129, 0); }
  100% { transform: scale(0.95); box-shadow: 0 0 0 0 rgba(16, 185, 129, 0); }
}

.hero-title {
  font-size: 3.5rem;
  letter-spacing: -1px;
  margin-bottom: 20px;
}

.hero-subtitle {
  font-size: 1.2rem;
  color: var(--color-text-muted);
  margin-bottom: 36px;
  max-width: 540px;
}

.hero-subtitle strong {
  color: var(--color-text-main);
}

.hero-cta-group {
  display: flex;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
  margin-bottom: 40px;
}

.hero-trust {
  display: flex;
  align-items: center;
  gap: 24px;
  flex-wrap: wrap;
  border-top: 1px solid var(--border-glass);
  padding-top: 24px;
}

.trust-item {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.88rem;
  color: var(--color-text-muted);
}

/* 3D Canvas Box */
.hero-3d-wrapper {
  position: relative;
  width: 100%;
  height: 480px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.canvas-box {
  width: 100%;
  height: 100%;
  border-radius: var(--radius-lg);
  overflow: hidden;
  background: radial-gradient(circle, rgba(28, 38, 80, 0.4) 0%, rgba(7, 9, 19, 0.8) 100%);
  border: 1px solid var(--border-glass);
  box-shadow: 0 30px 60px rgba(0, 0, 0, 0.5), inset 0 0 30px rgba(0, 242, 254, 0.1);
}

.three-controls-overlay {
  position: absolute;
  bottom: 20px;
  left: 50%;
  transform: translateX(-50%);
  pointer-events: none;
}

.control-tag {
  background: rgba(7, 9, 19, 0.75);
  border: 1px solid var(--border-glass);
  padding: 6px 14px;
  border-radius: var(--radius-full);
  font-size: 0.8rem;
  color: var(--color-text-muted);
  backdrop-filter: blur(8px);
}

/* Platforms Ticker Bar */
.platforms-bar {
  padding: 40px 0;
  border-top: 1px solid var(--border-glass);
  border-bottom: 1px solid var(--border-glass);
  background: rgba(13, 17, 39, 0.4);
}

.platforms-title {
  text-align: center;
  font-size: 0.9rem;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: var(--color-text-dim);
  margin-bottom: 24px;
  font-weight: 600;
}

.platforms-grid {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 16px;
  flex-wrap: wrap;
}

.platform-chip {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 10px 20px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--border-glass);
  border-radius: var(--radius-full);
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--color-text-main);
  transition: all var(--transition-fast);
}

.platform-chip:hover {
  background: rgba(0, 242, 254, 0.1);
  border-color: rgba(0, 242, 254, 0.3);
  transform: translateY(-2px);
}

.platform-icon {
  font-size: 1.1rem;
}

/* Section Header */
.section {
  padding: 100px 0;
}

.section-header {
  margin-bottom: 60px;
  max-width: 700px;
}

.section-header.center {
  margin-left: auto;
  margin-right: auto;
  text-align: center;
}

.section-badge {
  display: inline-block;
  font-size: 0.85rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1.5px;
  color: var(--accent-cyan);
  margin-bottom: 12px;
}

.section-title {
  font-size: 2.8rem;
  margin-bottom: 16px;
}

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

/* Calculator Section */
.calculator-card {
  padding: 48px;
  max-width: 860px;
  margin: 0 auto;
}

.calculator-controls {
  text-align: center;
  margin-bottom: 40px;
}

.calc-label {
  display: block;
  font-size: 1.05rem;
  font-weight: 600;
  margin-bottom: 20px;
  color: var(--color-text-muted);
}

.plan-toggle-group {
  display: inline-flex;
  background: rgba(7, 9, 19, 0.8);
  padding: 6px;
  border-radius: var(--radius-md);
  border: 1px solid var(--border-glass);
  gap: 6px;
  flex-wrap: wrap;
}

.plan-btn {
  padding: 12px 24px;
  background: transparent;
  border: none;
  color: var(--color-text-muted);
  font-family: var(--font-heading);
  font-weight: 600;
  font-size: 0.95rem;
  border-radius: var(--radius-sm);
  cursor: pointer;
  transition: all var(--transition-fast);
}

.plan-btn.active {
  background: var(--gradient-primary);
  color: #070913;
  font-weight: 800;
  box-shadow: 0 4px 15px rgba(0, 242, 254, 0.3);
}

.calculator-result-grid {
  display: grid;
  grid-template-columns: 1fr auto 1.2fr;
  gap: 24px;
  align-items: center;
  margin-bottom: 36px;
}

.calc-box {
  background: rgba(7, 9, 19, 0.6);
  border: 1px solid var(--border-glass);
  border-radius: var(--radius-md);
  padding: 28px 24px;
  text-align: center;
  position: relative;
}

.calc-box.highlighted {
  border-color: var(--accent-cyan);
  background: linear-gradient(180deg, rgba(0, 242, 254, 0.08) 0%, rgba(13, 17, 39, 0.8) 100%);
  box-shadow: 0 0 30px rgba(0, 242, 254, 0.15);
}

.discount-pill {
  position: absolute;
  top: -12px;
  left: 50%;
  transform: translateX(-50%);
  background: var(--accent-green);
  color: #070913;
  font-size: 0.75rem;
  font-weight: 800;
  padding: 3px 12px;
  border-radius: var(--radius-full);
  letter-spacing: 0.5px;
}

.calc-box-title {
  display: block;
  font-size: 0.9rem;
  color: var(--color-text-muted);
  margin-bottom: 12px;
  font-weight: 600;
}

.price-val {
  font-family: var(--font-heading);
  font-size: 3rem;
  font-weight: 800;
  line-height: 1;
  margin-bottom: 8px;
}

.price-period {
  font-size: 0.85rem;
  color: var(--color-text-dim);
}

.vs-divider {
  background: transparent;
  border: none;
  font-family: var(--font-heading);
  font-weight: 800;
  color: var(--color-text-dim);
  font-size: 1.2rem;
}

.calculator-footer {
  text-align: center;
  border-top: 1px solid var(--border-glass);
  padding-top: 32px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 20px;
}

.savings-summary {
  font-size: 1.15rem;
  color: var(--color-text-main);
}

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

.feature-card {
  padding: 36px;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.feature-icon {
  font-size: 2.5rem;
  line-height: 1;
}

.feature-card h3 {
  font-size: 1.35rem;
}

.feature-card p {
  color: var(--color-text-muted);
  font-size: 0.98rem;
  line-height: 1.6;
}

/* Comparison Table Section */
.table-wrapper {
  overflow-x: auto;
  border-radius: var(--radius-lg);
}

.comparison-table {
  width: 100%;
  border-collapse: collapse;
  text-align: left;
  min-width: 700px;
}

.comparison-table th, 
.comparison-table td {
  padding: 20px 24px;
  border-bottom: 1px solid var(--border-glass);
}

.comparison-table th {
  font-family: var(--font-heading);
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--color-text-muted);
  background: rgba(7, 9, 19, 0.4);
}

.comparison-table th.highlight-col {
  background: rgba(0, 242, 254, 0.12);
  color: var(--accent-cyan);
  font-size: 1.15rem;
  border-top: 2px solid var(--accent-cyan);
}

.comparison-table td.highlight-col {
  background: rgba(0, 242, 254, 0.04);
}

.feature-name {
  font-weight: 600;
  color: var(--color-text-main);
}

.price-highlight {
  font-family: var(--font-heading);
  font-size: 1.25rem;
  font-weight: 800;
  color: var(--accent-cyan);
}

.check {
  color: var(--accent-green);
  font-weight: 700;
}

.cross {
  color: #EF4444;
  font-weight: 500;
}

.comparison-cta {
  text-align: center;
  margin-top: 40px;
}

/* How It Works Steps */
.steps-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 28px;
}

.step-card {
  padding: 40px 32px;
  position: relative;
}

.step-number {
  font-family: var(--font-heading);
  font-size: 3.5rem;
  font-weight: 900;
  background: var(--gradient-primary);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  opacity: 0.4;
  line-height: 1;
  margin-bottom: 16px;
}

.step-card h3 {
  font-size: 1.3rem;
  margin-bottom: 12px;
}

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

.link-code {
  background: rgba(0, 242, 254, 0.1);
  color: var(--accent-cyan);
  padding: 2px 6px;
  border-radius: 4px;
  font-family: monospace;
}

/* FAQ Accordion */
.faq-list {
  max-width: 800px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.faq-item {
  padding: 20px 28px;
  cursor: pointer;
}

.faq-question {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-family: var(--font-heading);
  font-size: 1.15rem;
  font-weight: 600;
  user-select: none;
}

.faq-question::-webkit-details-marker {
  display: none;
}

.faq-icon {
  font-size: 1.4rem;
  color: var(--accent-cyan);
  transition: transform var(--transition-normal);
}

details[open] .faq-icon {
  transform: rotate(45deg);
}

.faq-answer {
  padding-top: 16px;
  color: var(--color-text-muted);
  font-size: 0.98rem;
  line-height: 1.6;
  border-top: 1px solid rgba(255, 255, 255, 0.05);
  margin-top: 16px;
}

.faq-answer a {
  color: var(--accent-cyan);
  text-decoration: underline;
}

/* CTA Banner Section */
.cta-banner-section {
  padding: 60px 0 100px;
}

.cta-banner-card {
  padding: 60px;
  text-align: center;
  background: linear-gradient(135deg, rgba(0, 242, 254, 0.12) 0%, rgba(139, 92, 246, 0.15) 100%);
  border-color: rgba(0, 242, 254, 0.3);
}

.cta-banner-content h2 {
  font-size: 2.5rem;
  margin-bottom: 16px;
}

.cta-banner-content p {
  font-size: 1.15rem;
  color: var(--color-text-muted);
  margin-bottom: 32px;
}

.cta-actions {
  display: flex;
  justify-content: center;
}

/* Footer */
.footer {
  background: rgba(7, 9, 19, 0.95);
  border-top: 1px solid var(--border-glass);
  padding: 60px 0 30px;
  font-size: 0.9rem;
  color: var(--color-text-dim);
}

.footer-content {
  display: flex;
  flex-direction: column;
  gap: 36px;
}

.footer-brand {
  display: flex;
  flex-direction: column;
  gap: 12px;
  max-width: 400px;
}

.footer-desc {
  color: var(--color-text-muted);
}

.footer-links {
  display: flex;
  gap: 24px;
  flex-wrap: wrap;
}

.footer-links a {
  color: var(--color-text-muted);
  transition: color var(--transition-fast);
}

.footer-links a:hover {
  color: var(--accent-cyan);
}

.footer-bottom {
  border-top: 1px solid var(--border-glass);
  padding-top: 24px;
  font-size: 0.82rem;
  color: var(--color-text-dim);
}

.footer-link {
  color: var(--accent-cyan);
}

/* Toast Notification */
.toast {
  position: fixed;
  bottom: 30px;
  right: 30px;
  z-index: 1000;
  display: flex;
  align-items: center;
  gap: 12px;
  background: #0d1127;
  border: 1px solid var(--accent-green);
  color: var(--color-text-main);
  padding: 14px 24px;
  border-radius: var(--radius-md);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.6), 0 0 20px rgba(16, 185, 129, 0.25);
  font-weight: 600;
  font-size: 0.95rem;
  opacity: 0;
  transform: translateY(20px);
  pointer-events: none;
  transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.toast.show {
  opacity: 1;
  transform: translateY(0);
  pointer-events: auto;
}

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

  .hero-subtitle {
    margin-left: auto;
    margin-right: auto;
  }

  .hero-cta-group, .hero-trust {
    justify-content: center;
  }

  .hero-title {
    font-size: 2.8rem;
  }

  .nav-menu {
    display: none; /* Can add mobile drawer if needed */
  }

  .calculator-result-grid {
    grid-template-columns: 1fr;
  }

  .vs-divider {
    display: none;
  }
}

@media (max-width: 600px) {
  .hero-title {
    font-size: 2.2rem;
  }

  .section-title {
    font-size: 2rem;
  }

  .calculator-card {
    padding: 24px;
  }

  .plan-toggle-group {
    width: 100%;
  }

  .plan-btn {
    width: 100%;
  }

  .cta-banner-card {
    padding: 32px 20px;
  }

  .hero-3d-wrapper {
    height: 360px;
  }
}
