/* Demo System — Shared Styles */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700;800&display=swap');

:root {
  --bg: #0b0d14;
  --surface: #13151f;
  --surface2: #1a1d2a;
  --border: rgba(255,255,255,.09);
  --text: #f0f2f8;
  --muted: #8b93aa;
  --faint: rgba(255,255,255,.25);
  --p1: #7c5cff;
  --p2: #3a8dff;
  --green: #22c55e;
  --amber: #f59e0b;
  --red: #ef4444;
  --radius: 16px;
  --shadow: 0 20px 60px rgba(0,0,0,.5);
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: 'Inter', system-ui, sans-serif;
  background: var(--bg);
  color: var(--text);
  font-size: 15px;
  line-height: 1.6;
  overflow-x: hidden;
}
a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }

/* TOPBAR */
.demo-topbar {
  position: sticky; top: 0; z-index: 100;
  background: rgba(11,13,20,.85);
  border-bottom: 1px solid var(--border);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  padding: 0 40px;
  height: 60px;
  display: flex; align-items: center; justify-content: space-between; gap: 20px;
}
.demo-topbar-brand {
  display: flex; align-items: center; gap: 10px;
  font-weight: 800; font-size: 1rem; color: var(--text);
}
.demo-topbar-dot {
  width: 10px; height: 10px; border-radius: 50%;
  animation: pulse 2s infinite;
}
.demo-topbar-tagline {
  font-size: .75rem; color: var(--muted); font-weight: 500;
  letter-spacing: .5px;
}
.demo-topbar-cta {
  display: inline-flex; align-items: center; gap: 8px;
  background: linear-gradient(135deg, var(--p1), var(--p2));
  color: #fff; font-size: .8rem; font-weight: 700;
  padding: 9px 20px; border-radius: 99px;
  transition: filter .2s, transform .2s;
  white-space: nowrap;
}
.demo-topbar-cta:hover { filter: brightness(1.1); transform: translateY(-1px); }
@keyframes pulse { 0%,100%{opacity:1;transform:scale(1)} 50%{opacity:.5;transform:scale(1.3)} }

/* CONTAINER */
.container { max-width: 1160px; margin: 0 auto; padding: 0 40px; }

/* HERO */
.hub-hero {
  padding: 72px 0 56px;
  background:
    radial-gradient(ellipse 80% 60% at 20% -10%, rgba(124,92,255,.20), transparent 60%),
    radial-gradient(ellipse 60% 50% at 90% 80%, rgba(58,141,255,.12), transparent 60%),
    var(--bg);
  border-bottom: 1px solid var(--border);
}
.hub-hero-label {
  display: inline-flex; align-items: center; gap: 8px;
  font-size: .72rem; font-weight: 700; letter-spacing: 2px; text-transform: uppercase;
  color: var(--p1); background: rgba(124,92,255,.1); border: 1px solid rgba(124,92,255,.25);
  border-radius: 99px; padding: 6px 14px; margin-bottom: 18px;
}
.hub-hero h1 {
  font-size: clamp(2rem, 4vw, 3.2rem);
  font-weight: 800; line-height: 1.15; letter-spacing: -.5px;
  margin-bottom: 14px;
}
.hub-hero p { font-size: 1rem; color: var(--muted); max-width: 560px; line-height: 1.75; }
.hub-hero-meta {
  display: flex; gap: 24px; margin-top: 28px; flex-wrap: wrap;
}
.hub-meta-item {
  display: flex; align-items: center; gap: 8px;
  font-size: .82rem; color: var(--muted); font-weight: 500;
}
.hub-meta-item::before { content: '✓'; color: var(--green); font-weight: 800; }

/* SECTION */
.hub-section { padding: 56px 0; }
.hub-section-label {
  font-size: .72rem; font-weight: 700; letter-spacing: 2px; text-transform: uppercase;
  color: var(--muted); margin-bottom: 28px;
  display: flex; align-items: center; gap: 10px;
}
.hub-section-label::after { content: ''; flex: 1; height: 1px; background: var(--border); max-width: 200px; }

/* TEMPLATE GRID */
.template-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
}
.template-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  transition: transform .25s, border-color .25s, box-shadow .25s;
  display: flex; flex-direction: column;
}
.template-card:hover {
  transform: translateY(-4px);
  border-color: rgba(124,92,255,.35);
  box-shadow: 0 16px 50px rgba(124,92,255,.1);
}
.template-preview {
  height: 200px;
  display: flex; align-items: center; justify-content: center;
  font-size: 5rem;
  position: relative; overflow: hidden;
  border-bottom: 1px solid var(--border);
}
.template-preview .overlay-label {
  position: absolute; top: 12px; left: 12px;
  font-size: .65rem; font-weight: 700; letter-spacing: 1.5px; text-transform: uppercase;
  background: rgba(0,0,0,.6); backdrop-filter: blur(8px);
  border: 1px solid rgba(255,255,255,.12); border-radius: 6px;
  padding: 4px 10px; color: rgba(255,255,255,.7);
}
.template-body { padding: 20px; flex: 1; display: flex; flex-direction: column; gap: 8px; }
.template-tag {
  display: inline-block; font-size: .68rem; font-weight: 700; letter-spacing: 1px;
  text-transform: uppercase; padding: 4px 10px; border-radius: 99px;
  background: rgba(124,92,255,.12); border: 1px solid rgba(124,92,255,.22); color: var(--p1);
  width: fit-content;
}
.template-name {
  font-size: 1rem; font-weight: 800; color: var(--text);
}
.template-desc {
  font-size: .82rem; color: var(--muted); line-height: 1.65; flex: 1;
}
.template-actions {
  display: flex; gap: 8px; margin-top: 8px;
}
.btn-preview {
  background: linear-gradient(135deg, var(--p1), var(--p2));
  color: #fff; font-size: .78rem; font-weight: 700;
  padding: 9px 18px; border-radius: 99px; border: none;
  cursor: pointer; transition: filter .2s, transform .2s;
  text-decoration: none; display: inline-flex; align-items: center; gap: 6px;
}
.btn-preview:hover { filter: brightness(1.1); transform: translateY(-1px); }
.btn-contact {
  background: rgba(255,255,255,.06);
  border: 1px solid var(--border);
  color: var(--muted); font-size: .78rem; font-weight: 600;
  padding: 9px 16px; border-radius: 99px;
  cursor: pointer; transition: all .2s;
  text-decoration: none; display: inline-flex; align-items: center; gap: 6px;
}
.btn-contact:hover { background: rgba(255,255,255,.10); color: var(--text); }

/* FEATURES BAR */
.features-bar {
  background: var(--surface);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  padding: 32px 0;
}
.features-bar-grid {
  display: grid; grid-template-columns: repeat(4,1fr); gap: 0;
}
.fb-item {
  display: flex; gap: 12px; align-items: center;
  padding: 0 28px; border-right: 1px solid var(--border);
}
.fb-item:last-child { border-right: none; }
.fb-icon { font-size: 1.5rem; flex-shrink: 0; }
.fb-title { font-size: .88rem; font-weight: 700; color: var(--text); margin-bottom: 2px; }
.fb-text { font-size: .75rem; color: var(--muted); line-height: 1.5; }

/* CTA FOOTER */
.hub-cta {
  background:
    radial-gradient(ellipse 70% 60% at 50% 50%, rgba(124,92,255,.12), transparent 65%),
    var(--surface);
  border-top: 1px solid var(--border);
  padding: 72px 40px;
  text-align: center;
}
.hub-cta h2 { font-size: clamp(1.8rem,3.5vw,2.8rem); font-weight: 800; margin-bottom: 12px; }
.hub-cta p { color: var(--muted); font-size: .95rem; margin-bottom: 32px; max-width: 480px; margin-left: auto; margin-right: auto; }
.hub-cta-btns { display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; }
.btn-cta-primary {
  background: linear-gradient(135deg, var(--p1), var(--p2));
  color: #fff; font-size: .88rem; font-weight: 700;
  padding: 13px 28px; border-radius: 99px;
  transition: filter .2s, transform .2s;
}
.btn-cta-primary:hover { filter: brightness(1.1); transform: translateY(-2px); }
.btn-wa {
  background: #25d366; color: #fff; font-size: .88rem; font-weight: 700;
  padding: 13px 24px; border-radius: 99px;
  display: inline-flex; align-items: center; gap: 8px;
  transition: background .2s, transform .2s;
}
.btn-wa:hover { background: #1db954; transform: translateY(-2px); }

/* FOOTER */
.hub-footer {
  background: var(--bg);
  border-top: 1px solid var(--border);
  padding: 22px 40px;
  display: flex; align-items: center; justify-content: space-between;
  flex-wrap: wrap; gap: 12px;
}
.hub-footer-copy { font-size: .75rem; color: var(--faint); }
.hub-footer-links { display: flex; gap: 20px; }
.hub-footer-links a { font-size: .75rem; color: var(--muted); transition: color .2s; }
.hub-footer-links a:hover { color: var(--p1); }

/* PREVIEW MODAL */
.preview-modal {
  position: fixed; inset: 0; z-index: 999;
  display: none; align-items: center; justify-content: center;
}
.preview-modal.open { display: flex; }
.preview-backdrop {
  position: absolute; inset: 0;
  background: rgba(0,0,0,.7);
  backdrop-filter: blur(4px);
  cursor: pointer;
}
.preview-panel {
  position: relative; z-index: 1;
  width: 92%; max-width: 1100px; height: 88vh;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
  display: flex; flex-direction: column;
}
.preview-bar {
  display: flex; align-items: center; gap: 10px;
  padding: 12px 16px;
  background: var(--surface2);
  border-bottom: 1px solid var(--border);
  flex-shrink: 0;
}
.pbar-dots { display: flex; gap: 6px; }
.pbar-dot { width: 10px; height: 10px; border-radius: 50%; }
.pbar-dot.r { background: #ff5f57; }
.pbar-dot.y { background: #ffbd2e; }
.pbar-dot.g { background: #28c840; }
.pbar-url {
  flex: 1; background: rgba(255,255,255,.06); border: 1px solid var(--border);
  border-radius: 8px; padding: 6px 14px; font-size: .78rem; color: var(--muted);
}
.pbar-close {
  background: rgba(255,255,255,.06); border: 1px solid var(--border);
  color: var(--text); border-radius: 8px; padding: 6px 14px;
  cursor: pointer; font-size: .8rem; font-weight: 600;
  display: flex; align-items: center; gap: 6px; transition: background .2s;
}
.pbar-close:hover { background: rgba(255,77,77,.15); color: #f87171; }
.preview-frame { flex: 1; border: none; width: 100%; background: #fff; }

/* RESPONSIVE */
@media (max-width: 900px) {
  .template-grid { grid-template-columns: 1fr 1fr; }
  .features-bar-grid { grid-template-columns: 1fr 1fr; }
  .fb-item { padding: 14px 20px; border-right: none; border-bottom: 1px solid var(--border); }
  .demo-topbar { padding: 0 20px; }
  .container { padding: 0 20px; }
}
@media (max-width: 600px) {
  .template-grid { grid-template-columns: 1fr; }
  .features-bar-grid { grid-template-columns: 1fr; }
  .hub-hero { padding: 48px 0 36px; }
}
