:root {
  --primary: #4f46e5;
  --primary-deep: #3730a3;
  --teal: #0d9488;
  --amber: #f59e0b;
  --rose: #e11d48;
  --ink: #1e1b4b;
  --ink-soft: #52525b;
  --bg: #fdfbf7;
  --tint-blue: #eef2ff;
  --tint-teal: #ecfdf5;
  --tint-amber: #fffbeb;
  --tint-rose: #fff1f2;
  --card: #ffffff;
  --border: #e7e5f0;
  --radius: 16px;
  --max: 1080px;
  --shadow: 0 4px 18px rgba(79, 70, 229, .08);
  --shadow-lg: 0 16px 40px rgba(30, 27, 75, .14);
}

* { margin: 0; padding: 0; box-sizing: border-box; }

body {
  font-family: "Segoe UI", "Helvetica Neue", Arial, sans-serif;
  color: var(--ink);
  background: var(--bg);
  line-height: 1.7;
}

a { color: var(--primary); text-decoration: none; }
a:hover { text-decoration: underline; }

.container { max-width: var(--max); margin: 0 auto; padding: 0 20px; }

/* ---------- Header ---------- */
header.site-header {
  background: rgba(255, 255, 255, .92);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--border);
  position: sticky;
  top: 0;
  z-index: 50;
}
.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 66px;
}
.logo {
  font-weight: 800;
  font-size: 21px;
  background: linear-gradient(100deg, var(--primary), var(--teal));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  display: flex;
  align-items: center;
  gap: 8px;
}
.logo::before {
  content: "◆";
  font-size: 14px;
}
nav.main-nav { display: flex; gap: 20px; flex-wrap: wrap; }
nav.main-nav a {
  color: var(--ink-soft);
  font-weight: 600;
  font-size: 14.5px;
  padding: 6px 12px;
  border-radius: 8px;
  transition: all .2s;
}
nav.main-nav a:hover { color: var(--primary); background: var(--tint-blue); text-decoration: none; }
nav.main-nav a.active {
  color: #fff;
  background: linear-gradient(100deg, var(--primary), var(--teal));
}

@media (max-width: 900px) {
  .header-inner {
    height: auto;
    flex-direction: column;
    align-items: flex-start;
    gap: 2px;
    padding-top: 10px;
    padding-bottom: 8px;
  }
  nav.main-nav {
    width: 100%;
    flex-wrap: nowrap;
    gap: 2px;
    overflow-x: auto;
    scrollbar-width: none;
    -webkit-overflow-scrolling: touch;
    -webkit-mask-image: linear-gradient(to right, #000 0, #000 calc(100% - 26px), transparent 100%);
    mask-image: linear-gradient(to right, #000 0, #000 calc(100% - 26px), transparent 100%);
  }
  nav.main-nav::-webkit-scrollbar { display: none; }
  nav.main-nav a {
    white-space: nowrap;
    font-size: 14px;
    padding: 6px 10px;
  }
}

/* ---------- Hero ---------- */
.hero {
  background:
    radial-gradient(ellipse at 15% 20%, rgba(79,70,229,.10), transparent 45%),
    radial-gradient(ellipse at 85% 80%, rgba(13,148,136,.12), transparent 45%),
    linear-gradient(135deg, #eef2ff 0%, #fdfbf7 45%, #ecfdf5 100%);
  padding: 56px 0;
  overflow: hidden;
  position: relative;
}
.hero::before, .hero::after {
  content: "";
  position: absolute;
  border-radius: 50%;
  z-index: 0;
}
.hero::before { width: 180px; height: 180px; background: rgba(245,158,11,.14); top: -60px; right: 12%; }
.hero::after { width: 120px; height: 120px; background: rgba(79,70,229,.10); bottom: -40px; left: 6%; }
.hero-inner {
  display: grid;
  grid-template-columns: 1.05fr .95fr;
  gap: 40px;
  align-items: center;
  position: relative;
  z-index: 1;
}
.hero .eyebrow {
  display: inline-block;
  background: linear-gradient(100deg, var(--primary), var(--teal));
  color: #fff;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 1px;
  padding: 6px 16px;
  border-radius: 999px;
  margin-bottom: 18px;
}
.hero h1 {
  font-size: 42px;
  line-height: 1.15;
  margin-bottom: 16px;
}
.hero h1 .grad {
  background: linear-gradient(100deg, var(--primary) 20%, var(--teal) 70%, var(--amber) 110%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.hero p.sub { font-size: 17.5px; color: var(--ink-soft); margin-bottom: 28px; max-width: 560px; }
.hero-img {
  border-radius: 24px;
  box-shadow: var(--shadow-lg);
  transform: rotate(1.5deg);
  border: 6px solid #fff;
  width: 100%;
  height: auto;
  max-width: 100%;
  display: block;
}
@media (max-width: 860px) {
  .hero-inner { grid-template-columns: 1fr; }
  .hero h1 { font-size: 32px; }
  .hero-img { transform: none; }
}

.btn {
  display: inline-block;
  background: linear-gradient(100deg, var(--primary), #6366f1);
  color: #fff;
  padding: 13px 30px;
  border-radius: 999px;
  font-weight: 700;
  font-size: 16px;
  box-shadow: 0 8px 20px rgba(79,70,229,.28);
  transition: transform .15s, box-shadow .15s;
}
.btn:hover { transform: translateY(-2px); box-shadow: 0 12px 26px rgba(79,70,229,.35); text-decoration: none; }
.btn.secondary {
  background: #fff;
  color: var(--primary);
  border: 2px solid var(--primary);
  box-shadow: none;
}
.btn.secondary:hover { background: var(--tint-blue); }

/* ---------- Sections ---------- */
section.block { padding: 60px 0; }
section.tinted-blue { background: var(--tint-blue); }
section.tinted-teal { background: var(--tint-teal); }
section.tinted-amber { background: var(--tint-amber); }
.section-title { font-size: 30px; margin-bottom: 8px; }
.section-title .accent { color: var(--teal); }
.section-sub { color: var(--ink-soft); margin-bottom: 36px; max-width: 680px; }

/* ---------- Cards ---------- */
.grid { display: grid; gap: 24px; }
.grid.cols-3 { grid-template-columns: repeat(3, 1fr); }
.grid.cols-2 { grid-template-columns: repeat(2, 1fr); }
@media (max-width: 900px) { .grid.cols-3 { grid-template-columns: 1fr 1fr; } }
@media (max-width: 640px) { .grid.cols-3, .grid.cols-2 { grid-template-columns: 1fr; } }

.card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 26px;
  box-shadow: var(--shadow);
  transition: transform .2s, box-shadow .2s;
  position: relative;
  overflow: hidden;
}
.card:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); }
.card::before {
  content: "";
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 4px;
  background: linear-gradient(90deg, var(--primary), var(--teal), var(--amber));
}
.card h3 { margin-bottom: 10px; font-size: 19px; }
.card p { color: var(--ink-soft); font-size: 15px; margin-bottom: 8px; }
.card a { font-weight: 700; }
.icon-chip {
  width: 52px; height: 52px;
  border-radius: 14px;
  display: flex; align-items: center; justify-content: center;
  font-size: 26px;
  margin-bottom: 14px;
  color: #fff;
  box-shadow: 0 6px 14px rgba(30,27,75,.18);
}
.chip-indigo { background: linear-gradient(135deg, #6366f1, #4338ca); }
.chip-teal { background: linear-gradient(135deg, #14b8a6, #0f766e); }
.chip-amber { background: linear-gradient(135deg, #fbbf24, #d97706); }
.chip-rose { background: linear-gradient(135deg, #fb7185, #be123c); }
.chip-violet { background: linear-gradient(135deg, #a78bfa, #7c3aed); }
.chip-sky { background: linear-gradient(135deg, #38bdf8, #0369a1); }

/* ---------- Template previews ---------- */
.template-card { padding: 0; }
.template-preview {
  height: 210px;
  padding: 18px 22px;
  font-size: 10px;
  overflow: hidden;
  position: relative;
}
.tp-classic { background: linear-gradient(160deg, #ffffff, #f5f3ff); }
.tp-classic .tp-name { font-size: 16px; font-weight: 800; letter-spacing: 2px; text-transform: uppercase; color: #312e81; }
.tp-classic .tp-line { height: 7px; background: #ddd6fe; margin: 6px 0; border-radius: 3px; }
.tp-classic .tp-line.short { width: 55%; }
.tp-classic .tp-heading { font-size: 9px; font-weight: 800; color: #6366f1; margin-top: 10px; letter-spacing: 1px; }

.tp-modern { background: linear-gradient(160deg, #ffffff, #f0fdfa); display: flex; padding: 0; }
.tp-modern .tp-side { width: 34%; background: linear-gradient(180deg, #0f766e, #134e4a); padding: 12px; }
.tp-modern .tp-side .tp-line { background: rgba(255,255,255,.35); }
.tp-modern .tp-main { flex: 1; padding: 12px; }
.tp-modern .tp-name { color: #134e4a; font-weight: 800; font-size: 14px; }
.tp-modern .tp-line { height: 7px; background: #ccfbf1; margin: 6px 0; border-radius: 3px; }

.tp-minimal { background: linear-gradient(160deg, #fffbeb, #fef3c7); padding-top: 26px; }
.tp-minimal .tp-name { font-size: 17px; font-weight: 300; letter-spacing: 5px; color: #78350f; text-align: center; }
.tp-minimal .tp-rule { border-top: 1px solid #d97706; margin: 8px 40px 12px; }
.tp-minimal .tp-line { height: 6px; background: #fde68a; margin: 6px 8px; border-radius: 3px; }
.tp-minimal .tp-line.short { width: 45%; margin-left: 40px; }

.tp-bold { background: linear-gradient(160deg, #ffffff, #fff1f2); padding-top: 26px; }
.tp-bold .tp-name { font-size: 20px; font-weight: 900; color: #be123c; }
.tp-bold .tp-role { font-size: 10px; color: #9f1239; opacity: .7; margin-bottom: 8px; }
.tp-bold .tp-line { height: 7px; background: #fecdd3; margin: 6px 0; border-radius: 3px; }
.tp-bold .tp-bar { height: 9px; background: linear-gradient(90deg, #fb7185, #be123c); width: 34%; margin: 8px 0; border-radius: 2px; }

.tp-exec { background: linear-gradient(160deg, #ffffff, #eff6ff); padding-top: 26px; }
.tp-exec .tp-header { display: flex; justify-content: space-between; align-items: center; }
.tp-exec .tp-name { font-size: 15px; font-weight: 800; color: #1d4ed8; }
.tp-exec .tp-contact { font-size: 8px; color: #64748b; text-align: right; }
.tp-exec .tp-line { height: 7px; background: #bfdbfe; margin: 7px 0; border-radius: 3px; }
.tp-exec .tp-heading { font-size: 9px; font-weight: 800; color: #1d4ed8; margin-top: 10px; border-bottom: 2px solid #1d4ed8; padding-bottom: 2px; }

.template-meta { padding: 20px 24px 24px; background: #fff; }
.template-meta h3 { margin-bottom: 6px; }
.template-meta p { margin-bottom: 14px; }
.tag {
  display: inline-block;
  font-size: 12px;
  font-weight: 700;
  padding: 3px 12px;
  border-radius: 999px;
  margin-right: 6px;
}
.tag-blue { background: var(--tint-blue); color: var(--primary); }
.tag-teal { background: var(--tint-teal); color: var(--teal); }
.tag-amber { background: var(--tint-amber); color: #b45309; }
.tag-rose { background: var(--tint-rose); color: var(--rose); }

/* ---------- Steps ---------- */
.step-list { counter-reset: step; list-style: none; }
.step-list li {
  counter-increment: step;
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 22px 24px 22px 70px;
  margin-bottom: 16px;
  position: relative;
  box-shadow: var(--shadow);
}
.step-list li::before {
  content: counter(step);
  position: absolute;
  left: 18px;
  top: 22px;
  width: 36px;
  height: 36px;
  background: linear-gradient(135deg, var(--primary), var(--teal));
  color: #fff;
  font-weight: 800;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 6px 14px rgba(79,70,229,.3);
}
.step-list h3 { font-size: 17px; margin-bottom: 6px; }
.step-list p { color: var(--ink-soft); font-size: 15px; }

/* ---------- FAQ ---------- */
details.faq {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 18px 22px;
  margin-bottom: 12px;
  box-shadow: var(--shadow);
}
details.faq summary { font-weight: 700; cursor: pointer; color: var(--primary-deep); }
details.faq[open] summary { color: var(--teal); }
details.faq p { margin-top: 10px; color: var(--ink-soft); font-size: 15px; }

/* ---------- Prose ---------- */
article.prose { max-width: 760px; margin: 0 auto; }
article.prose h2 {
  font-size: 26px;
  margin: 36px 0 12px;
  padding-left: 14px;
  border-left: 4px solid var(--amber);
}
article.prose h3 { font-size: 20px; margin: 28px 0 10px; }
article.prose p, article.prose li { color: #44403c; font-size: 16px; }
article.prose ul, article.prose ol { padding-left: 24px; margin: 12px 0; }
article.prose ul li, article.prose ol li { margin-bottom: 8px; }
article.prose ul li::marker { color: var(--teal); }
article.prose ol li::marker { color: var(--primary); font-weight: 700; }
.callout {
  border-radius: 12px;
  padding: 16px 20px;
  margin: 20px 0;
  font-size: 15px;
}
.callout.blue { background: var(--tint-blue); border-left: 4px solid var(--primary); }
.callout.teal { background: var(--tint-teal); border-left: 4px solid var(--teal); }
.callout.amber { background: var(--tint-amber); border-left: 4px solid var(--amber); }
.code-sample {
  background: linear-gradient(160deg, #faf5ff, #fdf2f8);
  border: 1px solid #e9d5ff;
  border-radius: 12px;
  padding: 20px 24px;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 14.5px;
  white-space: pre-wrap;
  margin: 16px 0;
  line-height: 1.6;
  box-shadow: var(--shadow);
}

/* ---------- Feature split (image + text) ---------- */
.feature-split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
  align-items: center;
  padding: 24px 0;
}
.feature-split.reverse { direction: rtl; }
.feature-split.reverse > * { direction: ltr; }
.feature-split img {
  width: 100%;
  height: auto;
  border-radius: 20px;
  box-shadow: var(--shadow-lg);
  border: 5px solid #fff;
}
.feature-split h2 { font-size: 26px; margin-bottom: 12px; }
.feature-split p { color: var(--ink-soft); margin-bottom: 14px; }
@media (max-width: 760px) { .feature-split { grid-template-columns: 1fr; } }

/* ---------- CTA band ---------- */
.cta-band {
  background: linear-gradient(115deg, #4338ca 0%, #6366f1 40%, #0d9488 100%);
  border-radius: 24px;
  color: #fff;
  padding: 44px 48px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  flex-wrap: wrap;
  box-shadow: var(--shadow-lg);
  position: relative;
  overflow: hidden;
}
.cta-band::after {
  content: "";
  position: absolute;
  width: 220px; height: 220px;
  border-radius: 50%;
  background: rgba(255,255,255,.10);
  top: -90px; right: -60px;
}
.cta-band h2 { font-size: 26px; margin-bottom: 6px; }
.cta-band p { opacity: .9; }
.cta-band .btn {
  background: #fff;
  color: var(--primary-deep);
  box-shadow: 0 8px 20px rgba(0,0,0,.18);
}

/* ---------- Ad bands ---------- */
.ad-band {
  padding: 16px 0;
  background: var(--tint-blue);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}
.ad-band.dark {
  background: linear-gradient(120deg, #1e1b4b 0%, #312e81 55%, #134e4a 100%);
  border: 0;
  padding: 24px 0;
}
.ad-band .ad-inner {
  max-width: 970px;
  margin: 0 auto;
  padding: 0 8px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
}
.ad-band .ad-label {
  font-size: 10.5px;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: #7c3aed;
  opacity: .75;
}
.ad-band.dark .ad-label { color: #a5b4fc; opacity: .9; }
.ad-unit {
  width: 100%;
  display: flex;
  justify-content: center;
  overflow: hidden;
}

/* ---------- Footer ---------- */
footer.site-footer {
  background: linear-gradient(120deg, #1e1b4b 0%, #312e81 55%, #134e4a 100%);
  color: #c7d2fe;
  padding: 44px 0;
  margin-top: 48px;
  font-size: 14px;
}
.footer-inner { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 20px; }
footer .logo { background: none; -webkit-background-clip: initial; background-clip: initial; color: #fff; font-size: 20px; }
footer .logo::before { content: "◆"; color: #fbbf24; }
.footer-inner a { color: #fbcfe8; }
.footer-inner a:hover { color: #fff; }
.footer-links { display: flex; gap: 16px; flex-wrap: wrap; }
footer .footer-bottom {
  margin-top: 24px;
  padding-top: 20px;
  border-top: 1px solid rgba(255,255,255,.15);
  color: #a5b4fc;
}

/* ---------- Page head ---------- */
.page-head {
  background:
    radial-gradient(ellipse at 80% 20%, rgba(245,158,11,.14), transparent 50%),
    linear-gradient(135deg, #eef2ff 0%, #fdfbf7 50%, #ecfdf5 100%);
  padding: 48px 0;
  text-align: center;
  position: relative;
  overflow: hidden;
}
.page-head h1 { font-size: 34px; margin-bottom: 8px; }
.breadcrumb {
  font-size: 13.5px;
  color: var(--ink-soft);
  margin-bottom: 14px;
}
.breadcrumb a { color: var(--ink-soft); }
.breadcrumb a:hover { color: var(--primary); text-decoration: none; }
.breadcrumb span { padding: 0 7px; opacity: .55; }
.page-head h1 .grad {
  background: linear-gradient(100deg, var(--primary), var(--teal));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.page-head p { color: var(--ink-soft); max-width: 640px; margin: 0 auto; }
.page-head-img {
  width: 100%;
  height: auto;
  max-width: 760px;
  display: block;
  margin: 28px auto 0;
  border-radius: 20px;
  box-shadow: var(--shadow-lg);
  border: 5px solid #fff;
}
