@import url('https://fonts.googleapis.com/css2?family=Syne:wght@400;500;600;700;800&family=DM+Sans:ital,opsz,wght@0,9..40,300;0,9..40,400;0,9..40,500;1,9..40,300&display=swap');

:root {
  --accent: #5b4cf6;
  --accent-dim: rgba(91,76,246,0.15);
  --accent-glow: rgba(91,76,246,0.35);
  --bg: #0a0a0f;
  --bg2: #111118;
  --bg3: #18181f;
  --bg4: #1e1e28;
  --border: rgba(255,255,255,0.07);
  --border-hover: rgba(255,255,255,0.14);
  --text: #f0eff8;
  --text2: #9998b0;
  --text3: #5c5b72;
  --radius: 12px;
  --radius-sm: 8px;
  --font-head: 'Syne', sans-serif;
  --font-body: 'DM Sans', sans-serif;
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }

body {
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-body);
  font-size: 15px;
  line-height: 1.6;
  overflow-x: hidden;
}

body::before {
  content: '';
  position: fixed; inset: 0;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='1'/%3E%3C/svg%3E");
  opacity: 0.03;
  pointer-events: none;
  z-index: 0;
}

/* ── NAV ── */
nav {
  position: sticky; top: 0; z-index: 100;
  padding: 0 2rem;
  height: 64px;
  display: flex; align-items: center; justify-content: space-between;
  background: rgba(10,10,15,0.88);
  backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--border);
}
.nav-logo {
  font-family: var(--font-head);
  font-size: 22px; font-weight: 800;
  letter-spacing: -0.5px;
  color: var(--text);
  text-decoration: none;
  display: flex; align-items: center; gap: 6px;
}
.nav-logo span { color: var(--accent); }
.nav-links { display: flex; align-items: center; gap: 6px; }
.nav-link {
  font-size: 13px; font-weight: 500;
  color: var(--text2);
  padding: 6px 14px;
  border-radius: var(--radius-sm);
  text-decoration: none;
  transition: all 0.2s;
  font-family: var(--font-body);
}
.nav-link:hover, .nav-link.active { color: var(--text); background: var(--bg3); }
.nav-cta {
  background: var(--accent); color: #fff;
  padding: 8px 18px; border-radius: var(--radius-sm);
  font-size: 13px; font-weight: 500;
  text-decoration: none; font-family: var(--font-body);
  transition: all 0.2s;
}
.nav-cta:hover { background: #6e61f7; transform: translateY(-1px); }

/* ── BUTTONS ── */
.btn-primary {
  background: var(--accent); color: #fff;
  padding: 14px 32px; border-radius: var(--radius);
  font-size: 15px; font-weight: 500;
  cursor: pointer; border: none;
  font-family: var(--font-body);
  transition: all 0.25s;
  display: inline-flex; align-items: center; gap: 8px;
  text-decoration: none;
}
.btn-primary:hover { background: #6e61f7; transform: translateY(-2px); box-shadow: 0 12px 40px rgba(91,76,246,0.4); }
.btn-ghost {
  background: transparent; color: var(--text2);
  padding: 14px 32px; border-radius: var(--radius);
  font-size: 15px; font-weight: 400;
  cursor: pointer; border: 1px solid var(--border);
  font-family: var(--font-body);
  transition: all 0.25s;
  text-decoration: none; display: inline-flex; align-items: center;
}
.btn-ghost:hover { color: var(--text); border-color: var(--border-hover); background: var(--bg3); }

/* ── SECTION ── */
.section { padding: 96px 2rem; max-width: 1100px; margin: 0 auto; position: relative; z-index: 1; }
.section-label { font-size: 11px; font-weight: 600; letter-spacing: 3px; color: var(--accent); margin-bottom: 12px; text-transform: uppercase; }
.section-title { font-family: var(--font-head); font-size: clamp(32px,4vw,52px); font-weight: 700; letter-spacing: -1.5px; line-height: 1.05; margin-bottom: 16px; }
.section-sub { color: var(--text2); font-size: 16px; max-width: 480px; font-weight: 300; margin-bottom: 56px; }

/* ── PRODUCT CARDS ── */
.product-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px,1fr)); gap: 20px; }
.product-card {
  background: var(--bg2); border: 1px solid var(--border);
  border-radius: 16px; overflow: hidden;
  cursor: pointer; transition: all 0.3s;
  text-decoration: none; color: inherit; display: block;
}
.product-card:hover { border-color: var(--border-hover); transform: translateY(-4px); box-shadow: 0 20px 60px rgba(0,0,0,0.5); }
.product-thumb { width: 100%; aspect-ratio: 4/3; overflow: hidden; }
.product-thumb-inner {
  width: 100%; height: 100%;
  display: flex; align-items: center; justify-content: center;
  font-family: var(--font-head); font-size: 52px; font-weight: 800;
  letter-spacing: -2px; transition: transform 0.4s;
}
.product-card:hover .product-thumb-inner { transform: scale(1.06); }
.thumb-fonts { background: linear-gradient(135deg,#13101f,#1e1540); color: #5b4cf6; }
.thumb-mockup { background: linear-gradient(135deg,#0f1a13,#152214); color: #22c55e; }
.thumb-ui { background: linear-gradient(135deg,#1a100f,#221415); color: #f43f5e; }
.thumb-icon { background: linear-gradient(135deg,#0f151a,#142030); color: #38bdf8; }
.thumb-illus { background: linear-gradient(135deg,#1a150f,#22190a); color: #f59e0b; }
.thumb-tex { background: linear-gradient(135deg,#150f1a,#1e1222); color: #d946ef; }
.product-badge {
  position: absolute; top: 12px; left: 12px;
  padding: 4px 10px; border-radius: 6px;
  font-size: 10px; font-weight: 600; letter-spacing: 0.5px; text-transform: uppercase;
}
.badge-free { background: rgba(34,197,94,0.2); color: #4ade80; border: 1px solid rgba(34,197,94,0.3); }
.badge-new { background: rgba(91,76,246,0.2); color: #a89ff7; border: 1px solid rgba(91,76,246,0.3); }
.badge-hot { background: rgba(244,63,94,0.2); color: #fb7185; border: 1px solid rgba(244,63,94,0.3); }
.product-info { padding: 18px 20px 20px; }
.product-name { font-family: var(--font-head); font-size: 16px; font-weight: 600; margin-bottom: 4px; letter-spacing: -0.3px; }
.product-meta { font-size: 12px; color: var(--text3); margin-bottom: 16px; }
.product-footer { display: flex; align-items: center; justify-content: space-between; }
.product-price { font-family: var(--font-head); font-size: 20px; font-weight: 700; }
.product-price.free { color: #4ade80; }
.buy-btn {
  background: var(--bg4); color: var(--text2);
  border: 1px solid var(--border);
  padding: 8px 18px; border-radius: var(--radius-sm);
  font-size: 13px; font-weight: 500;
  cursor: pointer; font-family: var(--font-body);
  transition: all 0.2s;
}
.product-card:hover .buy-btn { background: var(--accent); color: #fff; border-color: var(--accent); }

/* ── MARQUEE ── */
.marquee-wrap { border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); padding: 16px 0; overflow: hidden; background: var(--bg2); position: relative; z-index: 1; }
.marquee-track { display: flex; gap: 48px; animation: scroll 22s linear infinite; width: max-content; }
.marquee-item { font-family: var(--font-head); font-size: 13px; font-weight: 600; letter-spacing: 2px; color: var(--text3); white-space: nowrap; display: flex; align-items: center; gap: 48px; }
.marquee-dot { color: var(--accent); font-size: 18px; }
@keyframes scroll { 0% { transform: translateX(0); } 100% { transform: translateX(-50%); } }

/* ── CATEGORY PILLS ── */
.cat-pills { display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 40px; }
.cat-pill {
  padding: 8px 20px; border-radius: 100px;
  font-size: 13px; font-weight: 500;
  cursor: pointer; border: 1px solid var(--border);
  color: var(--text2); background: transparent;
  font-family: var(--font-body); transition: all 0.2s;
  text-decoration: none;
}
.cat-pill:hover, .cat-pill.active { background: var(--accent-dim); border-color: var(--accent-glow); color: #a89ff7; }

/* ── FOOTER ── */
footer { border-top: 1px solid var(--border); padding: 64px 2rem 40px; max-width: 1100px; margin: 0 auto; position: relative; z-index: 1; }
.footer-grid { display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: 48px; margin-bottom: 48px; }
.footer-logo { font-family: var(--font-head); font-size: 22px; font-weight: 800; letter-spacing: -0.5px; margin-bottom: 12px; }
.footer-logo span { color: var(--accent); }
.footer-desc { font-size: 14px; color: var(--text3); line-height: 1.6; max-width: 260px; font-weight: 300; }
.footer-col h5 { font-size: 12px; font-weight: 600; letter-spacing: 1.5px; color: var(--text3); text-transform: uppercase; margin-bottom: 20px; }
.footer-links { list-style: none; display: flex; flex-direction: column; gap: 10px; }
.footer-links li { font-size: 14px; color: var(--text2); cursor: pointer; transition: color 0.2s; }
.footer-links li:hover, .footer-links a { color: var(--text); text-decoration: none; }
.footer-links a { color: var(--text2); }
.footer-links a:hover { color: var(--text); }
.footer-bottom { display: flex; align-items: center; justify-content: space-between; padding-top: 32px; border-top: 1px solid var(--border); font-size: 13px; color: var(--text3); flex-wrap: wrap; gap: 16px; }
.footer-payments { display: flex; gap: 8px; flex-wrap: wrap; }
.pay-chip { background: var(--bg2); border: 1px solid var(--border); border-radius: 6px; padding: 4px 10px; font-size: 11px; font-weight: 600; color: var(--text3); }

/* ── FORM ── */
.form-group { margin-bottom: 20px; }
.form-label { display: block; font-size: 12px; font-weight: 500; color: var(--text2); margin-bottom: 8px; letter-spacing: 0.3px; }
.form-input {
  width: 100%; background: var(--bg3); border: 1px solid var(--border);
  border-radius: var(--radius-sm); padding: 12px 16px;
  font-size: 14px; color: var(--text); font-family: var(--font-body);
  transition: border-color 0.2s; outline: none;
}
.form-input:focus { border-color: var(--accent); }
.form-input::placeholder { color: var(--text3); }

/* ── TOAST ── */
.toast {
  position: fixed; bottom: 32px; right: 32px;
  background: var(--bg3); border: 1px solid var(--border);
  border-radius: var(--radius); padding: 14px 20px;
  font-size: 14px; color: var(--text); z-index: 9999;
  transform: translateY(100px); opacity: 0;
  transition: all 0.3s;
  display: flex; align-items: center; gap: 10px;
}
.toast.show { transform: translateY(0); opacity: 1; }
.toast-dot { width: 8px; height: 8px; border-radius: 50%; background: #4ade80; flex-shrink: 0; }

/* ── STATUS PILLS ── */
.status-pill { padding: 3px 10px; border-radius: 100px; font-size: 11px; font-weight: 600; }
.status-live { background: rgba(34,197,94,0.15); color: #4ade80; }
.status-draft { background: rgba(156,163,175,0.1); color: #9ca3af; }

/* ── RESPONSIVE ── */
@media (max-width: 768px) {
  .nav-links { display: none; }
  nav { padding: 0 1rem; }
  .section { padding: 64px 1rem; }
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 32px; }
}
@media (max-width: 480px) {
  .footer-grid { grid-template-columns: 1fr; }
}
