/* TulzaGram site. Brand: docs/BRAND.md (Indigo #4F46E5). Budget: ≤ 20 KB, no JS (docs/SEO.md, 8). */
@font-face { font-family: "Manrope"; font-style: normal; font-display: swap; font-weight: 200 800;
  src: url(/fonts/manrope-cyrillic-wght-normal.woff2) format("woff2");
  unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116; }
@font-face { font-family: "Manrope"; font-style: normal; font-display: swap; font-weight: 200 800;
  src: url(/fonts/manrope-latin-wght-normal.woff2) format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }

:root {
  --indigo: #4F46E5; --night: #0F0D2E; --night-2: #1E1B4B;
  --ink: #111827; --muted: #555B6E; --bg: #F6F6FC; --card: #FFFFFF; --line: #E4E4F0;
  --radius: 20px; --shadow: 0 1px 2px rgb(17 24 39 / .04), 0 10px 28px -14px rgb(30 27 75 / .22);
  --font: "Manrope", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --tone: var(--indigo);
}
@media (prefers-color-scheme: dark) {
  :root { --ink: #F2F2F7; --muted: #A6A9BA; --bg: #0B0A1F; --card: #16152F; --line: #28264C;
    --shadow: 0 1px 2px rgb(0 0 0 / .3), 0 14px 36px -16px rgb(0 0 0 / .6); }
}
* { box-sizing: border-box; }
body { margin: 0; background: var(--bg); color: var(--ink); font: 17px/1.6 var(--font); -webkit-font-smoothing: antialiased; }
a { color: inherit; }
h1, h2, h3 { line-height: 1.2; letter-spacing: -.02em; margin: 0; font-weight: 800; }
h2 { font-size: clamp(24px, 3vw, 32px); margin-bottom: 22px; }
.wrap { max-width: 1120px; margin: 0 auto; padding: 0 24px; }
.icon { width: 18px; height: 18px; flex: none; }

.tone-0 { --tone: #4F46E5; } .tone-1 { --tone: #0284C7; } .tone-2 { --tone: #059669; }
.tone-3 { --tone: #D97706; } .tone-4 { --tone: #DB2777; } .tone-5 { --tone: #7C3AED; }

/* buttons: ≥ 48 px high */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 10px; min-height: 48px; padding: 12px 22px;
  border-radius: 14px; font-weight: 800; font-size: 16px; text-decoration: none; transition: transform .15s, filter .15s; }
.btn:hover { transform: translateY(-1px); filter: brightness(1.05); }
.btn:focus-visible, a:focus-visible { outline: 3px solid #A5B4FC; outline-offset: 3px; }
.btn--primary { background: var(--tone); color: #fff; box-shadow: 0 10px 24px -10px var(--tone); }
.btn--light { background: #fff; color: var(--night-2); }
.btn--big { min-height: 58px; padding: 16px 30px; font-size: 18px; border-radius: 16px; }
.btn--big .icon { width: 22px; height: 22px; }
.btn--block { width: 100%; margin-top: auto; }

/* top bar */
.top { background: var(--night); color: #fff; }
.nav { display: flex; align-items: center; justify-content: space-between; gap: 16px; min-height: 64px; }
.brand { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; font-weight: 800; font-size: 19px; }
.brand .logo { width: 32px; height: 32px; color: var(--indigo); }
.nav__link { text-decoration: none; font-weight: 700; font-size: 15px; opacity: .85; }
.nav__link:hover { opacity: 1; }

/* hero */
.hero { color: #fff; padding: 20px 0 64px;
  background: radial-gradient(800px 420px at 90% 0%, color-mix(in srgb, var(--tone) 55%, transparent), transparent 65%),
    linear-gradient(170deg, var(--night) 0%, var(--night-2) 100%); }
.hero--hub { padding: 40px 0 56px; }
.hero h1 { font-size: clamp(30px, 4.4vw, 48px); margin: 12px 0 16px; max-width: 760px; }
.hero__lead { font-size: 19px; color: rgb(255 255 255 / .82); max-width: 620px; margin: 0 0 28px; }
.hero--hub .hero__lead { margin-bottom: 0; }
.hero__note { margin: 12px 0 0; font-size: 14px; color: rgb(255 255 255 / .7); }
.hero__grid { display: grid; grid-template-columns: 1.2fr .8fr; gap: 48px; align-items: center; }
.crumbs { display: flex; gap: 8px; font-size: 14px; color: rgb(255 255 255 / .7); padding-top: 4px; }
.crumbs a { text-decoration: none; }
.crumbs a:hover { text-decoration: underline; }

/* chat demo */
.demo { margin: 0; background: #fff; color: #111827; border-radius: 24px; padding: 18px; display: grid; gap: 10px;
  box-shadow: 0 30px 60px -24px rgb(0 0 0 / .6); }
.demo__head { display: flex; align-items: center; gap: 12px; padding-bottom: 10px; border-bottom: 1px solid #EEF0F4; }
.demo__head span:last-child { display: grid; line-height: 1.3; }
.demo__head small { color: #6B7280; }
.avatar { width: 42px; height: 42px; border-radius: 50%; display: grid; place-items: center; font-size: 22px;
  background: color-mix(in srgb, var(--tone) 16%, #fff); }
.bubble { margin: 0; max-width: 88%; padding: 10px 14px; border-radius: 16px 16px 16px 4px; background: #F1F2F6;
  font-size: 15px; overflow-wrap: anywhere; }
.bubble--me { justify-self: end; border-radius: 16px 16px 4px 16px; background: color-mix(in srgb, var(--tone) 14%, #fff); }

/* sections */
.section { padding-top: 64px; }
.section--tight { padding-top: 40px; }

/* task tiles */
.tasks { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; }
.task { display: flex; align-items: center; gap: 14px; min-height: 72px; padding: 14px 18px; border-radius: 16px; text-decoration: none;
  background: var(--card); border: 1px solid var(--line); box-shadow: var(--shadow); transition: transform .15s, border-color .15s; }
.task:hover { transform: translateY(-2px); border-color: var(--tone); }
.task__icon { width: 44px; height: 44px; flex: none; border-radius: 12px; display: grid; place-items: center; font-size: 22px;
  background: color-mix(in srgb, var(--tone) 14%, transparent); }
.task__name { font-weight: 700; flex: 1; }
.task__arrow { color: var(--tone); font-weight: 800; }

/* bot cards */
.cards { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px; }
.card { display: flex; flex-direction: column; gap: 12px; background: var(--card); border: 1px solid var(--line);
  border-radius: var(--radius); padding: 24px; box-shadow: var(--shadow); }
.card--featured { border-color: var(--tone); }
.card__head { display: flex; align-items: center; gap: 14px; }
.card__tile { width: 52px; height: 52px; border-radius: 14px; display: grid; place-items: center; font-size: 26px; flex: none;
  background: color-mix(in srgb, var(--tone) 14%, transparent); }
.card__name { font-size: 18px; }
.card__user { font-size: 14px; color: var(--muted); overflow-wrap: anywhere; }
.card__tagline { margin: 0; font-weight: 600; }
.card__tasks { margin: 0 0 8px; padding-left: 20px; color: var(--muted); font-size: 15px; }
.card__tasks a { color: var(--ink); }

/* task page blocks */
.steps { margin: 0; padding: 0; list-style: none; counter-reset: step; display: grid; gap: 12px; max-width: 760px; }
.steps li { counter-increment: step; position: relative; padding: 14px 18px 14px 66px; background: var(--card);
  border: 1px solid var(--line); border-radius: 16px; font-weight: 600; min-height: 60px; display: flex; align-items: center; }
.steps li::before { content: counter(step); position: absolute; left: 16px; top: 50%; transform: translateY(-50%); width: 36px; height: 36px;
  border-radius: 11px; display: grid; place-items: center; background: var(--indigo); color: #fff; font-weight: 800; }
.features { margin: 0; padding: 0; list-style: none; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
.features li { padding: 14px 18px 14px 46px; position: relative; background: var(--card); border: 1px solid var(--line); border-radius: 16px; }
.features li::before { content: "✓"; position: absolute; left: 18px; top: 14px; color: #059669; font-weight: 800; }
.faq { display: grid; gap: 12px; max-width: 820px; }
.faq__item { background: var(--card); border: 1px solid var(--line); border-radius: 16px; padding: 18px 20px; }
.faq__item h3 { font-size: 17px; }
.faq__item p { margin: 8px 0 0; color: var(--muted); }
.cta { display: flex; align-items: center; justify-content: space-between; gap: 24px; padding: 32px 36px; border-radius: 24px; color: #fff;
  background: linear-gradient(135deg, var(--night-2), var(--tone)); }
.cta h2 { margin: 0; }
.cta p { margin: 6px 0 0; color: rgb(255 255 255 / .8); }

/* footer */
.footer { margin-top: 80px; padding: 32px 0 40px; border-top: 1px solid var(--line); }
.brand--small { font-size: 16px; }
.brand--small .logo { width: 26px; height: 26px; }
.footer__tasks { list-style: none; padding: 0; margin: 18px 0 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 6px 20px; font-size: 15px; }
.footer__tasks a { color: var(--muted); text-decoration: none; }
.footer__tasks a:hover { color: var(--ink); text-decoration: underline; }
.footer__note { color: var(--muted); font-size: 14px; margin: 20px 0 0; }

.preview-banner { position: sticky; top: 0; z-index: 10; background: #F59E0B; color: #1F2937; text-align: center; padding: 8px; font-weight: 700; }

@media (max-width: 900px) {
  .hero__grid { grid-template-columns: 1fr; gap: 32px; }
  .tasks, .footer__tasks { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .cards, .features { grid-template-columns: 1fr; }
  .cta { flex-direction: column; align-items: flex-start; padding: 28px; }
}
@media (max-width: 560px) {
  body { font-size: 16px; }
  .wrap { padding: 0 16px; }
  .hero { padding-bottom: 44px; }
  .hero__lead { font-size: 17px; margin-bottom: 22px; }
  .btn--big, .cta .btn { width: 100%; }
  .tasks, .footer__tasks { grid-template-columns: 1fr; }
  .section { padding-top: 48px; }
}
@media (prefers-reduced-motion: reduce) { * { transition: none !important; } }
