/* ================================
   ESC Slide Template Shop
   Mobile-First Responsive CSS
================================ */

:root {
  --bg: #0a0a0f;
  --bg-elevated: #12121a;
  --bg-card: #1a1a24;
  --border: #2a2a3a;
  --text-primary: #f0f0f5;
  --text-secondary: #a0a0b0;
  --text-muted: #6b6b7b;
  --accent: #00e5ff;
  --accent-dim: rgba(0, 229, 255, 0.15);
  --accent-glow: rgba(0, 229, 255, 0.4);
  --success: #00e676;
  --warning: #ffca28;
  --danger: #ff5252;
  --font: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  --radius: 16px;
  --radius-sm: 10px;
  --transition: 0.25s ease;
}

* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  font-family: var(--font);
  background: var(--bg);
  color: var(--text-primary);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

.container {
  width: 100%;
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 20px;
}

.gradient-text {
  background: linear-gradient(135deg, var(--accent) 0%, #7c4dff 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

/* Desktop Banner */
.desktop-banner {
  background: linear-gradient(90deg, rgba(255,202,40,0.15) 0%, rgba(255,202,40,0.05) 100%);
  border-bottom: 1px solid rgba(255,202,40,0.2);
  color: var(--warning);
  padding: 12px 20px;
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 13px;
  position: relative;
  text-align: left;
  line-height: 1.5;
}
.desktop-banner i { font-size: 16px; flex-shrink: 0; }
.desktop-banner strong { color: #fff; }
.banner-close {
  background: none;
  border: none;
  color: var(--warning);
  cursor: pointer;
  padding: 4px;
  margin-left: auto;
  flex-shrink: 0;
}

/* Navbar */
.navbar {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(10,10,15,0.85);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--border);
}
.nav-inner {
  display: flex;
  align-items: center;
  justify-content: center;
  height: 60px;
  position: relative;
}
.logo {
  display: flex;
  align-items: center;
  gap: 8px;
  color: var(--text-primary);
  text-decoration: none;
  font-weight: 700;
  font-size: 18px;
}
.logo-center {
  justify-content: center;
}
.logo i {
  width: 32px; height: 32px;
  display: flex; align-items: center; justify-content: center;
  background: var(--accent-dim);
  color: var(--accent);
  border-radius: 8px;
  font-size: 14px;
}
/* nav-toggle removed */
.nav-links-inline {
  display: flex;
  align-items: center;
  gap: 12px;
}
.nav-links-inline a {
  color: var(--text-secondary);
  text-decoration: none;
  font-size: 14px;
  font-weight: 500;
}
@media (max-width: 767px) {
  .nav-links-inline {
    position: absolute;
    right: 20px;
  }
}
.nav-links.open { display: flex; }
.nav-links a {
  color: var(--text-secondary);
  text-decoration: none;
  padding: 12px 0;
  font-size: 15px;
  font-weight: 500;
  border-bottom: 1px solid var(--border);
}
.nav-links a:last-child { border-bottom: none; }
.nav-cta {
  background: var(--accent-dim);
  color: var(--accent) !important;
  border-radius: var(--radius-sm);
  padding: 10px 16px !important;
  text-align: center;
  margin-top: 4px;
}

/* Hero */
.hero {
  padding: 48px 0 56px;
  text-align: center;
  position: relative;
  overflow: hidden;
}
.hero::before {
  content: '';
  position: absolute;
  top: -100px; left: 50%;
  width: 600px; height: 600px;
  background: radial-gradient(circle, var(--accent-glow) 0%, transparent 70%);
  transform: translateX(-50%);
  opacity: 0.3;
  pointer-events: none;
}
.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--accent-dim);
  color: var(--accent);
  padding: 8px 16px;
  border-radius: 100px;
  font-size: 13px;
  font-weight: 600;
  margin-bottom: 24px;
  border: 1px solid rgba(0,229,255,0.2);
}
.hero-title {
  font-size: 32px;
  font-weight: 800;
  line-height: 1.15;
  letter-spacing: -0.02em;
  margin-bottom: 16px;
}
.hero-video {
  font-size: 1.35em;
  font-weight: 900;
  background: linear-gradient(90deg, #4285F4 0%, #EA4335 25%, #FBBC05 50%, #34A853 75%, #EA4335 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}
.hero-viral {
  font-weight: 900;
  color: #00e5ff;
  filter: drop-shadow(0 0 12px rgba(0,229,255,0.6)) drop-shadow(0 0 24px rgba(0,229,255,0.3));
  animation: viralGlow 2.5s ease-in-out infinite;
}
@keyframes viralGlow {
  0%, 100% { filter: drop-shadow(0 0 10px rgba(0,229,255,0.5)) drop-shadow(0 0 20px rgba(0,229,255,0.2)); }
  50% { filter: drop-shadow(0 0 18px rgba(0,229,255,0.8)) drop-shadow(0 0 36px rgba(0,229,255,0.4)); }
}
.hero-desc {
  color: var(--text-secondary);
  font-size: 16px;
  max-width: 520px;
  margin: 0 auto 28px;
  line-height: 1.7;
}
.hero-cta-group {
  display: flex;
  flex-direction: column;
  gap: 12px;
  align-items: center;
  margin-bottom: 28px;
}
.hero-trust {
  display: flex;
  flex-direction: column;
  gap: 8px;
  align-items: center;
  color: var(--text-muted);
  font-size: 13px;
}
.trust-item { display: flex; align-items: center; gap: 6px; }
.trust-item i { color: var(--success); font-size: 14px; }

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 14px 28px;
  border-radius: var(--radius-sm);
  font-size: 15px;
  font-weight: 600;
  text-decoration: none;
  border: none;
  cursor: pointer;
  transition: var(--transition);
  font-family: inherit;
  width: 100%;
  max-width: 320px;
}
.btn-primary {
  background: linear-gradient(135deg, var(--accent), #00b8d4);
  color: #000;
  box-shadow: 0 4px 20px var(--accent-glow);
}
.btn-primary:hover { transform: translateY(-2px); box-shadow: 0 8px 28px var(--accent-glow); }
.btn-ghost {
  background: transparent;
  color: var(--text-primary);
  border: 1.5px solid var(--border);
}
.btn-ghost:hover { background: var(--bg-card); border-color: var(--text-muted); }
.btn-large { padding: 16px 32px; font-size: 16px; }
.btn-glow { animation: glowPulse 3s ease-in-out infinite; }
@keyframes glowPulse {
  0%, 100% { box-shadow: 0 4px 20px var(--accent-glow); }
  50% { box-shadow: 0 4px 32px var(--accent-glow); }
}

/* Sections */
section { padding: 56px 0; }
.section-title {
  font-size: 26px;
  font-weight: 800;
  text-align: center;
  margin-bottom: 12px;
  letter-spacing: -0.02em;
}
.section-subtitle {
  color: var(--text-secondary);
  text-align: center;
  font-size: 15px;
  max-width: 480px;
  margin: 0 auto 40px;
}

/* Preview / Device */
.preview { background: var(--bg-elevated); }
.preview-device { max-width: 340px; margin: 0 auto; }
.video-wrapper {
  max-width: 420px;
  margin: 0 auto;
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: 0 20px 60px rgba(0,0,0,0.4);
  border: 1px solid var(--border);
}
.video-wrapper video {
  display: block;
  width: 100%;
  aspect-ratio: 9/16;
  object-fit: cover;
}
.device-frame {
  background: linear-gradient(180deg, #2a2a3a 0%, #1a1a24 100%);
  border-radius: 24px;
  padding: 10px;
  box-shadow: 0 20px 60px rgba(0,0,0,0.4), inset 0 1px 0 rgba(255,255,255,0.08);
}
.device-screen {
  background: var(--bg);
  border-radius: 18px;
  overflow: hidden;
  aspect-ratio: 9/16;
  position: relative;
}
.slide-demo { position: relative; width: 100%; height: 100%; }
.demo-slide {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  text-align: center;
  padding: 24px;
  opacity: 0;
  transform: translateY(12px);
  transition: all 0.5s ease;
  pointer-events: none;
}
.demo-slide.active { opacity: 1; transform: translateY(0); pointer-events: auto; }
.demo-tag {
  background: var(--accent-dim);
  color: var(--accent);
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  padding: 4px 10px;
  border-radius: 6px;
  margin-bottom: 16px;
}
.demo-slide h3 {
  font-size: 20px;
  font-weight: 800;
  line-height: 1.2;
  margin-bottom: 10px;
}
.demo-slide p {
  font-size: 13px;
  color: var(--text-secondary);
  line-height: 1.5;
}
.demo-progress {
  position: absolute;
  bottom: 0; left: 0; right: 0;
  height: 3px;
  background: rgba(255,255,255,0.06);
}
.demo-progress-fill {
  height: 100%;
  background: linear-gradient(90deg, var(--accent), #7c4dff);
  width: 0%;
  transition: width 0.3s ease;
}
.demo-controls {
  display: flex;
  justify-content: center;
  gap: 8px;
  margin-top: 20px;
}
.demo-dot {
  width: 8px; height: 8px;
  border-radius: 50%;
  background: var(--border);
  border: none;
  cursor: pointer;
  transition: var(--transition);
}
.demo-dot.active { background: var(--accent); box-shadow: 0 0 8px var(--accent-glow); width: 24px; border-radius: 4px; }

/* Features */
.feature-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 16px;
}
.feature-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 24px;
  transition: var(--transition);
}
.feature-card:hover { border-color: rgba(0,229,255,0.25); transform: translateY(-3px); }
.feature-icon {
  width: 44px; height: 44px;
  display: flex; align-items: center; justify-content: center;
  background: var(--accent-dim);
  color: var(--accent);
  border-radius: 12px;
  font-size: 18px;
  margin-bottom: 16px;
}
.icon-1 { background: linear-gradient(135deg, rgba(251,191,36,0.15), rgba(249,115,22,0.15)); color: #fbbf24; }
.icon-2 { background: linear-gradient(135deg, rgba(167,139,250,0.15), rgba(236,72,153,0.15)); color: #a78bfa; }
.icon-3 { background: linear-gradient(135deg, rgba(52,211,153,0.15), rgba(6,182,212,0.15)); color: #34d399; }
.icon-4 { background: linear-gradient(135deg, rgba(244,114,182,0.15), rgba(239,68,68,0.15)); color: #f472b6; }
.icon-5 { background: linear-gradient(135deg, rgba(96,165,250,0.15), rgba(139,92,246,0.15)); color: #60a5fa; }
.icon-6 { background: linear-gradient(135deg, rgba(34,211,238,0.15), rgba(59,130,246,0.15)); color: #22d3ee; }
.feature-card h3 { font-size: 17px; font-weight: 700; margin-bottom: 8px; }
.feature-card p { font-size: 14px; color: var(--text-secondary); line-height: 1.6; }

/* Workflow */
.workflow { background: var(--bg-elevated); }
.steps { display: flex; flex-direction: column; gap: 24px; }
.step {
  display: flex;
  gap: 16px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 24px;
}
.step-number {
  width: 40px; height: 40px;
  flex-shrink: 0;
  display: flex; align-items: center; justify-content: center;
  background: linear-gradient(135deg, var(--accent), #7c4dff);
  color: #000;
  font-weight: 800;
  font-size: 16px;
  border-radius: 12px;
}
.step-content h3 { font-size: 17px; font-weight: 700; margin-bottom: 6px; }
.step-content p { font-size: 14px; color: var(--text-secondary); line-height: 1.6; margin-bottom: 10px; }
.step-note {
  background: rgba(255,202,40,0.08);
  border: 1px solid rgba(255,202,40,0.15);
  color: var(--warning);
  padding: 10px 14px;
  border-radius: var(--radius-sm);
  font-size: 13px;
  line-height: 1.5;
}
.step-note code {
  background: rgba(255,255,255,0.08);
  padding: 2px 6px;
  border-radius: 4px;
  font-family: 'SF Mono', monospace;
  font-size: 12px;
}

/* Pricing */
.pricing { text-align: center; }
.pricing-card {
  max-width: 380px;
  margin: 0 auto;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 32px 24px;
  position: relative;
  box-shadow: 0 20px 60px rgba(0,0,0,0.3);
}
.pricing-badge {
  display: inline-block;
  background: var(--accent-dim);
  color: var(--accent);
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  padding: 6px 12px;
  border-radius: 6px;
  margin-bottom: 16px;
}
.pricing-name { font-size: 22px; font-weight: 800; margin-bottom: 12px; }
.pricing-price { margin-bottom: 24px; }
.price-old {
  font-size: 18px;
  color: var(--text-muted);
  text-decoration: line-through;
  margin-right: 10px;
}
.price-current {
  font-size: 36px;
  font-weight: 900;
  color: var(--accent);
  text-shadow: 0 0 20px var(--accent-glow);
}
.pricing-features {
  list-style: none;
  text-align: left;
  margin-bottom: 28px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.pricing-features li {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  font-size: 14px;
  color: var(--text-secondary);
}
.pricing-features li i {
  color: var(--success);
  font-size: 14px;
  margin-top: 3px;
  flex-shrink: 0;
}
.pricing-note {
  margin-top: 16px;
  font-size: 13px;
  color: var(--text-muted);
}
.pricing-note i { margin-right: 4px; }

/* FAQ */
.faq { background: var(--bg-elevated); }
.faq-list { max-width: 640px; margin: 0 auto; display: flex; flex-direction: column; gap: 10px; }
.faq-item {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  overflow: hidden;
}
.faq-item summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 18px 20px;
  font-size: 15px;
  font-weight: 600;
  cursor: pointer;
  list-style: none;
  color: var(--text-primary);
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary i { color: var(--text-muted); font-size: 13px; transition: var(--transition); }
.faq-item[open] summary i { transform: rotate(180deg); color: var(--accent); }
.faq-item p {
  padding: 0 20px 18px;
  font-size: 14px;
  color: var(--text-secondary);
  line-height: 1.7;
}

/* Footer */
.footer { padding: 40px 0 24px; border-top: 1px solid var(--border); }
.footer-inner {
  display: flex;
  flex-direction: column;
  gap: 24px;
  margin-bottom: 32px;
}
.footer-brand p { font-size: 14px; color: var(--text-muted); margin-top: 8px; }
.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
}
.footer-links a {
  color: var(--text-secondary);
  text-decoration: none;
  font-size: 14px;
  font-weight: 500;
}
.footer-links a:hover { color: var(--accent); }
.footer-bottom {
  text-align: center;
  padding-top: 20px;
  border-top: 1px solid var(--border);
  font-size: 13px;
  color: var(--text-muted);
}

/* Loading Overlay */
.loading-overlay {
  position: fixed;
  inset: 0;
  background: rgba(10,10,15,0.9);
  backdrop-filter: blur(8px);
  display: none;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 16px;
  z-index: 9999;
}
.loading-overlay.active { display: flex; }
.spinner {
  width: 40px; height: 40px;
  border: 3px solid var(--border);
  border-top-color: var(--accent);
  border-radius: 50%;
  animation: spin 0.8s linear infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }
.loading-overlay p { color: var(--text-secondary); font-size: 14px; }

/* ================================
   Responsive: Tablet & Desktop
================================ */
@media (min-width: 640px) {
  .hero-title { font-size: 44px; }
  .hero-cta-group { flex-direction: row; justify-content: center; }
  .btn { width: auto; }
  .hero-trust { flex-direction: row; justify-content: center; gap: 24px; }
  .feature-grid { grid-template-columns: repeat(2, 1fr); }
  .section-title { font-size: 32px; }
  .pricing-card { padding: 40px 32px; }
}

@media (min-width: 768px) {
  .nav-toggle { display: none; }
  .nav-links {
    display: flex !important;
    position: static;
    flex-direction: row;
    background: transparent;
    border: none;
    padding: 0;
    gap: 28px;
    align-items: center;
  }
  .nav-links a { border-bottom: none; padding: 0; font-size: 14px; }
  .nav-cta { margin-top: 0; padding: 8px 18px !important; }
  .hero { padding: 72px 0 88px; }
  .hero-title { font-size: 52px; }
  .hero-desc { font-size: 18px; }
  .feature-grid { grid-template-columns: repeat(3, 1fr); }
  .steps { flex-direction: row; }
  .step { flex-direction: column; text-align: center; flex: 1; align-items: center; }
  .footer-inner { flex-direction: row; justify-content: space-between; align-items: center; }
}

@media (min-width: 1024px) {
  .hero-title { font-size: 60px; }
  .preview-device { max-width: 300px; }
}
