/* ============================================
   cormelo labs — shared demo wrapper
   Header (back link + badge) + footer CTA
   ============================================ */

:root {
  --c-violet: #8b5cf6;
  --c-blue: #3b82f6;
  --c-orange: #fb923c;
  --c-yellow: #fbbf24;
  --c-dark: #0a0e1f;
  --c-text: #0f172a;
  --c-muted: #64748b;
  --c-border: #e2e8f0;
  --c-bg-soft: #f7f7fb;
  --gradient-cormelo: linear-gradient(135deg, #8b5cf6 0%, #3b82f6 100%);
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  line-height: 1.55;
}
img, svg { display: block; max-width: 100%; }
button { font-family: inherit; cursor: pointer; border: none; background: none; }
a { color: inherit; text-decoration: none; }
input, textarea, select { font-family: inherit; font-size: inherit; }

/* Demo nav bar (sticky at top, sits ABOVE the mocked site) */
.demo-nav {
  position: sticky;
  top: 0;
  z-index: 100;
  background: var(--c-dark);
  color: white;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  font-family: 'Inter', sans-serif;
}
.demo-nav-inner {
  max-width: 1280px;
  margin: 0 auto;
  padding: 0.7rem 1.25rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
}
.demo-back {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.85rem;
  font-weight: 500;
  color: rgba(255, 255, 255, 0.75);
  transition: color 200ms ease;
}
.demo-back:hover { color: white; }
.demo-back svg { width: 16px; height: 16px; flex-shrink: 0; }
.demo-back .brand-mark {
  width: 22px;
  height: 22px;
  margin-right: 0.1rem;
}

.demo-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  padding: 0.3rem 0.75rem;
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--c-yellow);
  background: rgba(251, 146, 60, 0.12);
  border: 1px solid rgba(251, 146, 60, 0.3);
  border-radius: 999px;
}
.demo-badge .dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--c-orange);
  box-shadow: 0 0 6px var(--c-orange);
  animation: demo-pulse 2s ease-in-out infinite;
}
@keyframes demo-pulse {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.5; }
}

.demo-cta-link {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.5rem 1rem;
  font-size: 0.85rem;
  font-weight: 600;
  color: white;
  background: var(--gradient-cormelo);
  border-radius: 999px;
  box-shadow: 0 4px 12px rgba(139, 92, 246, 0.35);
  transition: transform 200ms ease, box-shadow 200ms ease;
}
.demo-cta-link:hover {
  transform: translateY(-1px);
  box-shadow: 0 6px 16px rgba(139, 92, 246, 0.5);
}

/* Footer CTA banner */
.demo-cta-footer {
  background: linear-gradient(135deg, #1a1f3a 0%, #0a0e1f 60%, #2a1530 100%);
  color: white;
  padding: 4rem 1.25rem;
  text-align: center;
  position: relative;
  overflow: hidden;
}
.demo-cta-footer::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 20% 30%, rgba(139, 92, 246, 0.35), transparent 50%),
    radial-gradient(circle at 80% 70%, rgba(251, 146, 60, 0.3), transparent 55%);
  pointer-events: none;
}
.demo-cta-footer-inner {
  position: relative;
  z-index: 1;
  max-width: 700px;
  margin: 0 auto;
}
.demo-cta-footer .eyebrow {
  display: inline-block;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--c-yellow);
  margin-bottom: 1rem;
  padding: 0.3rem 0.85rem;
  border: 1px solid rgba(251, 146, 60, 0.3);
  border-radius: 999px;
  background: rgba(251, 146, 60, 0.08);
}
.demo-cta-footer h2 {
  font-size: clamp(1.6rem, 3.5vw, 2.25rem);
  font-weight: 800;
  letter-spacing: -0.02em;
  margin-bottom: 1rem;
  line-height: 1.15;
}
.demo-cta-footer p {
  color: rgba(255, 255, 255, 0.75);
  font-size: 1.0625rem;
  margin-bottom: 2rem;
}
.demo-cta-footer-buttons {
  display: flex;
  gap: 0.75rem;
  justify-content: center;
  flex-wrap: wrap;
}
.demo-cta-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.85rem 1.5rem;
  font-size: 0.9375rem;
  font-weight: 600;
  border-radius: 999px;
  transition: transform 200ms ease, box-shadow 200ms ease;
}
.demo-cta-btn.primary {
  background: linear-gradient(135deg, #fb923c 0%, #fbbf24 100%);
  color: white;
  box-shadow: 0 4px 16px rgba(251, 146, 60, 0.4);
}
.demo-cta-btn.primary:hover { transform: translateY(-2px); box-shadow: 0 8px 24px rgba(251, 146, 60, 0.55); }
.demo-cta-btn.ghost {
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.18);
  color: white;
}
.demo-cta-btn.ghost:hover { background: rgba(255, 255, 255, 0.14); }

/* Common modal/toast */
.demo-toast {
  position: fixed;
  bottom: 2rem;
  right: 2rem;
  background: #0f172a;
  color: white;
  padding: 1rem 1.25rem;
  border-radius: 12px;
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.3);
  display: flex;
  align-items: center;
  gap: 0.75rem;
  z-index: 200;
  font-size: 0.9rem;
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 250ms ease, transform 250ms ease;
  pointer-events: none;
  max-width: 380px;
}
.demo-toast.show { opacity: 1; transform: translateY(0); pointer-events: auto; }
.demo-toast .toast-icon {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: rgba(16, 185, 129, 0.2);
  color: #34d399;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

@media (max-width: 600px) {
  .demo-nav-inner { padding: 0.6rem 1rem; gap: 0.5rem; }
  .demo-back { font-size: 0.8rem; }
  .demo-back .text-extra { display: none; }
  .demo-cta-link { padding: 0.4rem 0.85rem; font-size: 0.8rem; }
  .demo-cta-footer { padding: 3rem 1.25rem; }
  .demo-toast { left: 1rem; right: 1rem; bottom: 1rem; max-width: none; }
}
