@import url('https://fonts.googleapis.com/css2?family=Montserrat:wght@400;500;600;700;800&family=JetBrains+Mono:wght@400;600&display=swap');

:root {
  --bg: #0f002e;
  --card: #180044;
  --pink: #f53bc9;
  --violet: #5940ff;
  --text: #f5f3ff;
  --muted: #d8d0f0;
  --mint: #24e7be;
  --line: #27105c;
  --surface: #180044;
  --surface2: #22005c;
  --accent: #f53bc9;
  --accent2: #24e7be;
  --accent-soft: rgba(245, 59, 201, 0.16);
  --green-soft: rgba(36, 231, 190, 0.14);
  --violet-soft: rgba(89, 64, 255, 0.22);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
html, body { background: var(--bg); }
body {
  margin: 0;
  color: var(--text);
  font-family: 'Montserrat', Arial, sans-serif;
  font-size: 18px;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}
a { color: inherit; text-decoration: none; }
::selection {
  background: rgba(245, 59, 201, 0.35);
  color: #fff;
}

/* Scrollbars match the purple shell */
* {
  scrollbar-width: thin;
  scrollbar-color: #5940ff #180044;
}
*::-webkit-scrollbar { width: 12px; height: 12px; }
*::-webkit-scrollbar-track { background: #0f002e; }
*::-webkit-scrollbar-thumb {
  background: linear-gradient(180deg, #5940ff 0%, #7a63ff 100%);
  border: 3px solid #0f002e;
  border-radius: 999px;
}
*::-webkit-scrollbar-thumb:hover {
  background: linear-gradient(180deg, #f53bc9 0%, #5940ff 100%);
}
*::-webkit-scrollbar-corner { background: #0f002e; }

.navbar {
  height: 70px;
  background: var(--bg);
  border-bottom: 2px solid var(--line);
  position: sticky;
  top: 0;
  z-index: 40;
}
.nav-container {
  max-width: 1280px;
  height: 100%;
  margin: 0 auto;
  padding: 0 24px;
  display: flex;
  align-items: center;
  gap: 32px;
}
.logo {
  color: var(--pink);
  font-size: 22px;
  font-weight: 800;
  letter-spacing: -0.03em;
  white-space: nowrap;
}
.logo span { color: var(--mint); }
.nav-links, .nav-right { display: flex; align-items: center; gap: 28px; }
.nav-links { flex: 1; }
.nav-links a, .nav-right a { font-size: 16px; font-weight: 600; }
.nav-links a:hover, .nav-right a:hover, .nav-links a.active { color: var(--pink); }
.menu-button {
  display: none;
  background: transparent;
  color: var(--text);
  border: 0;
  font-size: 24px;
  cursor: pointer;
}

.menu-panel {
  display: none;
  position: fixed;
  inset: 70px 0 0 0;
  background: var(--bg);
  z-index: 35;
  overflow-y: auto;
  padding: 24px;
}
.menu-panel.open { display: block; }
.menu-search {
  width: 100%;
  max-width: 1000px;
  height: 56px;
  background: transparent;
  color: var(--text);
  border: 2px solid var(--violet);
  border-radius: 16px;
  padding: 0 18px;
  font: inherit;
  margin-bottom: 28px;
}
.menu-search::placeholder { color: #a69ac9; }
.menu-search:focus { outline: none; border-color: var(--pink); }
.menu-group { margin-bottom: 28px; }
.menu-group h3 {
  font-size: 12px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--mint);
  margin: 0 0 12px;
}
.menu-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 10px; }
.menu-grid a {
  border: 2px solid var(--violet);
  background: var(--card);
  border-radius: 14px;
  padding: 12px 14px;
  font-size: 15px;
  font-weight: 600;
}
.menu-grid a:hover, .menu-grid a.active { border-color: var(--pink); color: var(--pink); }
.menu-grid .slug { color: var(--mint); font-size: 12px; font-weight: 600; }

.hero { text-align: center; padding: 110px 24px 50px; max-width: 1000px; margin: 0 auto; }
.hero h1 { font-size: clamp(42px, 6vw, 72px); line-height: 1.1; margin: 0 0 20px; font-weight: 800; }
.hero p { color: var(--muted); font-size: 23px; margin-bottom: 35px; }
.hero-actions { display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; }

.button, .btn {
  display: inline-block;
  background: var(--violet);
  color: white;
  border: 0;
  border-radius: 16px;
  padding: 18px 36px;
  font: inherit;
  font-weight: 600;
  cursor: pointer;
}
.button:hover, .btn:hover { background: #6e58ff; }
.button-pink, .btn-pink { background: var(--pink); }
.button-pink:hover, .btn-pink:hover { background: #ff56d6; }
.button-ghost, .btn-ghost {
  background: transparent;
  border: 2px solid var(--violet);
  color: var(--text);
}
.btn { padding: 14px 22px; }

.features {
  max-width: 1280px;
  margin: 0 auto;
  padding: 30px 24px 80px;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 32px;
}
.feature-card {
  background: var(--card);
  border: 2px solid var(--violet);
  border-radius: 20px;
  padding: 38px;
  min-width: 0;
  display: block;
}
.feature-card:hover { border-color: var(--pink); }
.illustration {
  height: 88px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 18px;
  font-size: 40px;
  color: var(--pink);
}
.feature-card h2 { font-size: 28px; line-height: 1.2; margin: 0 0 18px; font-weight: 800; }
.feature-card p { color: var(--muted); font-size: 18px; line-height: 1.5; margin: 0; }

.catalog { max-width: 1280px; margin: 0 auto; padding: 10px 24px 80px; }
.catalog h2.block-title, .newsletter h2 {
  font-size: 38px;
  line-height: 1.2;
  margin: 0 0 24px;
  font-weight: 800;
}
.catalog-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.mini-card {
  background: var(--card);
  border: 2px solid var(--violet);
  border-radius: 20px;
  padding: 22px;
  min-width: 0;
}
.mini-card:hover { border-color: var(--pink); }
.mini-card h3 { font-size: 20px; margin: 0 0 8px; font-weight: 700; }
.mini-card p { color: var(--muted); font-size: 15px; margin: 0; line-height: 1.45; }
.mini-card .slug {
  display: block;
  margin-top: 12px;
  color: var(--mint);
  font-size: 13px;
  font-weight: 600;
}

.newsletter { text-align: center; padding: 90px 24px 110px; }
.newsletter p { color: var(--muted); font-size: 23px; margin: 0 auto 32px; max-width: 1000px; }
.newsletter-form { max-width: 1000px; margin: 0 auto; display: flex; flex-direction: column; gap: 12px; }

.footer {
  padding: 30px 24px;
  text-align: center;
  color: var(--muted);
  border-top: 1px solid var(--line);
  font-size: 15px;
}

.page-wrap { max-width: 920px; margin: 0 auto; padding: 48px 24px 80px; }
.crumb { color: #a69ac9; font-size: 14px; font-weight: 600; margin-bottom: 16px; }
.crumb a:hover { color: var(--pink); }
.sep { opacity: 0.6; padding: 0 4px; }
.page-head { display: flex; justify-content: space-between; gap: 16px; align-items: flex-start; }
.page-wrap h1 { font-size: clamp(32px, 5vw, 52px); line-height: 1.1; margin: 0 0 12px; font-weight: 800; }
.subtitle { color: var(--muted); font-size: 20px; margin: 0 0 28px; max-width: 62ch; }

.badge {
  display: inline-flex;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  padding: 5px 10px;
  border-radius: 999px;
}
.badge-live {
  background: var(--green-soft);
  color: var(--mint);
  border: 1px solid rgba(36, 231, 190, 0.4);
}
.badge-draft {
  background: var(--accent-soft);
  color: var(--pink);
  border: 1px solid rgba(245, 59, 201, 0.4);
}

.page-wrap h2 {
  font-size: 13px;
  font-weight: 800;
  color: var(--mint);
  text-transform: uppercase;
  letter-spacing: 0.1em;
  margin: 36px 0 14px;
}
.page-wrap h3 { font-size: 22px; font-weight: 700; margin: 22px 0 8px; }
.page-wrap p { margin: 0 0 14px; }

.card, .callout, .placeholder, .held-item, .table-wrap {
  background: var(--card);
  border: 2px solid var(--violet);
  border-radius: 20px;
}
.card { padding: 28px; margin-bottom: 16px; }
.card-title { font-size: 20px; font-weight: 700; margin-bottom: 8px; }
.callout { padding: 18px 22px; margin-bottom: 18px; border-left: 4px solid var(--pink); }
.callout.amber { border-left-color: var(--violet); }
.callout.green { border-left-color: var(--mint); }
.placeholder { padding: 22px; margin-bottom: 16px; border-style: dashed; color: var(--muted); }
.placeholder strong { color: var(--text); }
.fill-box {
  display: block;
  margin-top: 10px;
  background: var(--bg);
  border: 2px solid var(--line);
  border-radius: 14px;
  padding: 14px;
  font-size: 15px;
}

.card-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 16px; }
.card.nav-card { margin: 0; }
.card.nav-card:hover { border-color: var(--pink); }
.card.nav-card .meta { margin-top: 12px; }

ul.list, ol.list { padding-left: 1.2rem; margin: 0; }
ul.list li, ol.list li { margin-bottom: 8px; }
.tag {
  display: inline-block;
  font-size: 12px;
  font-weight: 700;
  padding: 3px 9px;
  border-radius: 999px;
  margin-right: 4px;
}
.tag-red { background: var(--accent-soft); color: var(--pink); border: 1px solid rgba(245,59,201,0.4); }
.tag-amber { background: var(--violet-soft); color: #c8bfff; border: 1px solid var(--violet); }
.tag-green { background: var(--green-soft); color: var(--mint); border: 1px solid rgba(36,231,190,0.35); }

.step { display: flex; gap: 14px; margin-bottom: 14px; }
.step-num {
  flex-shrink: 0;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: var(--violet);
  color: #fff;
  font-size: 13px;
  font-weight: 800;
  display: flex;
  align-items: center;
  justify-content: center;
}

table { width: 100%; border-collapse: collapse; font-size: 16px; }
th {
  background: var(--surface2);
  text-align: left;
  padding: 12px 14px;
  font-size: 12px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--muted);
}
td { padding: 12px 14px; border-top: 1px solid var(--line); vertical-align: top; }
.table-wrap { overflow-x: auto; margin-bottom: 16px; }

.link-row { display: flex; flex-wrap: wrap; gap: 12px; margin-bottom: 16px; }
.link-btn {
  display: flex;
  align-items: center;
  gap: 12px;
  flex: 1 1 260px;
  background: var(--card);
  border: 2px solid var(--violet);
  border-radius: 16px;
  padding: 16px 18px;
}
.link-btn:hover { border-color: var(--pink); }
.lb-ico {
  width: 40px;
  height: 40px;
  border-radius: 12px;
  background: var(--accent-soft);
  color: var(--pink);
  display: flex;
  align-items: center;
  justify-content: center;
}
.lb-title { font-size: 16px; font-weight: 700; }
.lb-sub { font-size: 13px; color: var(--muted); }

.check-list { list-style: none; padding: 0; margin: 0; }
.check-list li { position: relative; padding-left: 28px; margin-bottom: 10px; }
.check-list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 6px;
  width: 16px;
  height: 16px;
  border-radius: 4px;
  border: 2px solid var(--pink);
  background: var(--accent-soft);
}
.check-list li strong { color: var(--mint); }
.faq-q { font-weight: 700; color: var(--mint); margin-bottom: 4px; }
.faq-a { margin-bottom: 18px; }
hr { border: 0; border-top: 2px solid var(--line); margin: 28px 0; }
code {
  font-family: 'JetBrains Mono', monospace;
  font-size: 14px;
  background: var(--surface2);
  padding: 1px 6px;
  border-radius: 6px;
  color: var(--mint);
}

.held-item { margin-bottom: 12px; overflow: hidden; }
.held-item-title {
  background: var(--surface2);
  padding: 14px 18px;
  font-weight: 700;
  cursor: pointer;
  display: flex;
  justify-content: space-between;
}
.held-item-title:hover { color: var(--pink); }
.held-item-body { padding: 16px 18px; display: none; }
.held-item-body.open { display: block; }
.held-item-body ul { padding-left: 1.2rem; }
.page-foot {
  margin-top: 36px;
  color: #a69ac9;
  font-size: 14px;
  display: flex;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
}

.contact-bar {
  margin-top: 40px;
  padding: 28px;
  background: var(--card);
  border: 2px solid var(--violet);
  border-radius: 20px;
}
.contact-url {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  align-items: center;
  margin-bottom: 14px;
  font-size: 15px;
}
.contact-url a { color: var(--mint); font-weight: 600; word-break: break-all; }
.contact-label {
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #a69ac9;
}
.contact-btn { display: block; text-align: center; width: 100%; }
.btn-mini {
  border: 2px solid var(--violet);
  background: transparent;
  color: var(--text);
  border-radius: 12px;
  padding: 6px 12px;
  font: inherit;
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
}
.btn-mini:hover { border-color: var(--pink); color: var(--pink); }

.gen-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.gen-field { margin-bottom: 12px; }
.gen-field label {
  display: block;
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: #a69ac9;
  margin-bottom: 6px;
}
.gen-field input, .gen-field select, .gen-field textarea {
  width: 100%;
  background: transparent;
  color: var(--text);
  border: 2px solid var(--violet);
  border-radius: 16px;
  padding: 12px 14px;
  font: inherit;
}
.gen-field input:focus,
.gen-field select:focus,
.gen-field textarea:focus {
  outline: none;
  border-color: var(--pink);
}
.gen-preview { white-space: pre-wrap; min-height: 220px; font-size: 16px; }
.gen-actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 12px; }
.has-anchor { scroll-margin-top: 90px; }

@media (max-width: 900px) {
  .features, .catalog-grid, .card-grid, .gen-grid { grid-template-columns: 1fr; }
}
@media (max-width: 700px) {
  .navbar { height: 60px; }
  .nav-container { padding: 0 16px; gap: 0; justify-content: space-between; }
  .nav-links, .nav-right { display: none; }
  .menu-button { display: block; }
  .menu-panel { inset: 60px 0 0 0; }
  .hero { padding: 65px 20px 30px; }
  .hero h1 { font-size: 40px; }
  .hero p { font-size: 18px; }
  .features { gap: 20px; padding: 20px 16px 50px; }
  .feature-card { padding: 24px; }
  .feature-card h2 { font-size: 26px; }
  .newsletter { padding: 65px 20px 80px; }
  .newsletter h2, .catalog h2.block-title { font-size: 30px; }
  .newsletter p { font-size: 18px; }
  .page-wrap { padding: 28px 16px 60px; }
}
