:root {
  --bg: #0c0d12;
  --bg-2: #12141b;
  --panel: #161922;
  --panel-2: #1d2130;
  --border: #272c3a;
  --text: #eceef4;
  --muted: #8b93a7;
  --accent: #6c5ce7;
  --accent-2: #00cec9;
  --radius: 12px;
}
* { box-sizing: border-box; margin: 0; padding: 0; }
html, body { height: 100%; }
body { font-family: "Helvetica Neue", Arial, sans-serif; background: var(--bg); color: var(--text); -webkit-font-smoothing: antialiased; }
a { color: inherit; text-decoration: none; }

/* ---------- Nav ---------- */
.nav {
  display: flex; align-items: center; justify-content: space-between;
  padding: 16px 32px; border-bottom: 1px solid var(--border);
  position: sticky; top: 0; background: rgba(12,13,18,.82); backdrop-filter: blur(12px); z-index: 50;
}
.nav .brand { display: flex; align-items: center; gap: 10px; font-weight: 800; font-size: 18px; letter-spacing: -.02em; }
.nav .brand .logo {
  width: 28px; height: 28px; border-radius: 8px;
  background: linear-gradient(135deg, var(--accent), var(--accent-2));
  display: grid; place-items: center; color: #fff; font-size: 16px;
}
.nav .links { display: flex; gap: 28px; align-items: center; }
.nav .links a { color: var(--muted); font-size: 14px; font-weight: 500; transition: color .15s; }
.nav .links a:hover, .nav .links a.active { color: var(--text); }

.btn {
  display: inline-flex; align-items: center; gap: 8px;
  border: 1px solid var(--border); background: var(--panel-2); color: var(--text);
  padding: 10px 18px; border-radius: 10px; cursor: pointer; font-size: 14px; font-weight: 600;
  transition: all .15s; font-family: inherit;
}
.btn:hover { border-color: var(--accent); }
.btn.primary { background: linear-gradient(135deg, var(--accent), #8b7bff); border-color: transparent; color: #fff; }
.btn.primary:hover { filter: brightness(1.08); transform: translateY(-1px); }
.btn.ghost { background: transparent; }
.btn.lg { padding: 14px 26px; font-size: 16px; }

/* ---------- Landing ---------- */
.hero { text-align: center; padding: 90px 24px 60px; max-width: 900px; margin: 0 auto; }
.hero .badge {
  display: inline-block; padding: 6px 14px; border-radius: 999px; font-size: 13px;
  background: rgba(108,92,231,.15); color: #b9acff; border: 1px solid rgba(108,92,231,.3); margin-bottom: 24px;
}
.hero h1 { font-size: 60px; line-height: 1.05; letter-spacing: -.03em; font-weight: 800; margin-bottom: 22px; }
.hero h1 .grad { background: linear-gradient(135deg, var(--accent), var(--accent-2)); -webkit-background-clip: text; background-clip: text; color: transparent; }
.hero p { font-size: 20px; color: var(--muted); max-width: 620px; margin: 0 auto 34px; line-height: 1.5; }
.hero .cta { display: flex; gap: 14px; justify-content: center; }

.hero-preview { max-width: 1080px; margin: 50px auto 0; padding: 0 24px; }
.hero-preview img, .hero-preview canvas { width: 100%; border-radius: 18px; border: 1px solid var(--border); box-shadow: 0 30px 80px rgba(0,0,0,.55); }

.section { max-width: 1100px; margin: 0 auto; padding: 80px 24px; }
.section h2 { font-size: 38px; text-align: center; letter-spacing: -.02em; margin-bottom: 14px; }
.section .sub { text-align: center; color: var(--muted); font-size: 17px; margin-bottom: 50px; }

.features { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.feature {
  background: var(--panel); border: 1px solid var(--border); border-radius: var(--radius); padding: 28px;
  transition: transform .15s, border-color .15s;
}
.feature:hover { transform: translateY(-3px); border-color: var(--accent); }
.feature .ico { font-size: 28px; margin-bottom: 14px; }
.feature h3 { font-size: 18px; margin-bottom: 8px; }
.feature p { color: var(--muted); font-size: 14px; line-height: 1.55; }

.cta-band { text-align: center; background: linear-gradient(135deg, rgba(108,92,231,.12), rgba(0,206,201,.10)); border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); padding: 70px 24px; }
.cta-band h2 { font-size: 34px; margin-bottom: 14px; }
.cta-band p { color: var(--muted); margin-bottom: 26px; }

.footer { text-align: center; padding: 40px 24px; color: var(--muted); font-size: 13px; }
.footer .disc { max-width: 640px; margin: 14px auto 0; font-size: 12px; opacity: .7; line-height: 1.5; }

/* ---------- Templates gallery ---------- */
.gallery { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.tpl-card { background: var(--panel); border: 1px solid var(--border); border-radius: var(--radius); overflow: hidden; cursor: pointer; transition: transform .15s, border-color .15s; }
.tpl-card:hover { transform: translateY(-4px); border-color: var(--accent); }
.tpl-card .thumb { width: 100%; height: auto; background: #000; display: block; }
.tpl-card .meta { padding: 14px 16px; display: flex; align-items: center; justify-content: space-between; }
.tpl-card .meta .name { font-weight: 600; font-size: 15px; }
.tpl-card .meta .use { font-size: 13px; color: var(--accent); }

@media (max-width: 860px) {
  .features, .gallery { grid-template-columns: 1fr; }
  .hero h1 { font-size: 40px; }
  .nav .links { display: none; }
}
