:root {
  --bg: #f7f8fb;
  --panel: #ffffff;
  --text: #111827;
  --muted: #667085;
  --line: #e5e7eb;
  --brand: #0f766e;
  --brand-2: #155e75;
  --ink: #0b1220;
  --good: #16a34a;
  --shadow: 0 22px 70px rgba(15, 23, 42, .12);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  overflow-x: hidden;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  color: var(--text);
  background: #f6f8fa;
}
a { color: inherit; text-decoration: none; }
button, input, textarea { font: inherit; }
button { cursor: pointer; }

.topbar {
  position: sticky;
  top: 0;
  z-index: 10;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  min-height: 72px;
  padding: 14px clamp(18px, 4vw, 56px);
  border-bottom: 1px solid rgba(229, 231, 235, .78);
  background: rgba(255, 255, 255, .9);
  backdrop-filter: blur(18px);
  box-shadow: 0 1px 18px rgba(15, 23, 42, .04);
}
.brand { display: inline-flex; align-items: center; gap: 10px; font-weight: 850; }
.brand-logo {
  flex: 0 0 auto;
  width: 42px;
  height: 42px;
  border-radius: 14px;
  filter: drop-shadow(0 10px 20px rgba(15, 118, 110, .22));
}
.brand-logo.compact {
  width: 34px;
  height: 34px;
  border-radius: 10px;
}
.brand span {
  color: var(--ink);
  font-size: 17px;
  letter-spacing: 0;
}
.brand:hover .brand-logo { transform: translateY(-1px); transition: transform .18s ease; }
.brand-mark {
  display: grid;
  place-items: center;
  width: 34px;
  height: 34px;
  border-radius: 9px;
  color: white;
  background: linear-gradient(135deg, var(--brand), var(--brand-2));
  box-shadow: 0 10px 24px rgba(15, 118, 110, .28);
}
.nav { display: flex; align-items: center; gap: 8px; color: var(--muted); font-size: 15px; }
.nav a { padding: 10px 12px; border-radius: 8px; }
.nav a { transition: color .18s ease, background-color .18s ease, transform .18s ease; }
.nav a:hover { transform: translateY(-1px); background: rgba(15, 118, 110, .08); color: var(--text); }
.nav .nav-cta { color: white; background: var(--ink); }
.burger {
  display: none;
  width: 44px;
  height: 44px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
}
.burger span {
  display: block;
  width: 20px;
  height: 2px;
  margin: 4px auto;
  border-radius: 99px;
  background: var(--ink);
}
.mobile-menu {
  position: fixed;
  inset: 0 0 auto auto;
  z-index: 30;
  display: grid;
  gap: 6px;
  width: min(360px, calc(100vw - 24px));
  max-height: calc(100vh - 24px);
  overflow: auto;
  margin: 12px;
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: rgba(255,255,255,.98);
  box-shadow: var(--shadow);
  transform: translateY(-120%);
  opacity: 0;
  pointer-events: none;
  transition: transform .22s ease, opacity .22s ease;
}
.mobile-menu.open {
  transform: translateY(0);
  opacity: 1;
  pointer-events: auto;
}
.mobile-menu-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 6px;
}
.mobile-menu-head button {
  width: 36px;
  height: 36px;
  border: 0;
  border-radius: 8px;
  background: #eef2f7;
  font-size: 24px;
}
.mobile-menu a {
  padding: 13px 12px;
  border-radius: 8px;
  color: #1f2937;
  background: #f8fafc;
  font-weight: 800;
}

.hero {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(340px, 540px);
  gap: clamp(28px, 5vw, 72px);
  align-items: center;
  padding: clamp(42px, 7vw, 86px) clamp(18px, 5vw, 72px) 48px;
}
.hero.compact { min-height: 560px; }
.hero > * { min-width: 0; }
.eyebrow {
  margin: 0 0 14px;
  color: var(--brand);
  font-weight: 800;
  text-transform: uppercase;
  font-size: 13px;
  letter-spacing: .08em;
}
h1, h2, h3, p { overflow-wrap: anywhere; }
h1 {
  margin: 0;
  max-width: 960px;
  color: #0b1220;
  font-size: clamp(42px, 6vw, 78px);
  line-height: .98;
  letter-spacing: 0;
}
h2 { margin: 0; font-size: clamp(28px, 4vw, 46px); line-height: 1.05; letter-spacing: 0; }
h3 { margin: 0 0 10px; font-size: 19px; }
.hero p, .section-head p, .auth-copy p {
  max-width: 760px;
  color: var(--muted);
  font-size: 19px;
  line-height: 1.65;
}
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 28px; }
.button, .price-card button, .auth-form button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 46px;
  padding: 13px 18px;
  border: 0;
  border-radius: 8px;
  font-weight: 800;
  transition: transform .18s ease, box-shadow .18s ease, background-color .18s ease, border-color .18s ease;
}
.button.primary, .price-card button, .auth-form button { color: white; background: var(--ink); }
.button.secondary { color: var(--ink); background: white; border: 1px solid var(--line); }
.button:hover, .price-card button:hover, .auth-form button:hover { transform: translateY(-2px); box-shadow: 0 12px 28px rgba(15, 23, 42, .16); }
.button:active, .price-card button:active, .auth-form button:active { transform: translateY(0); }

.home-hero {
  position: relative;
  display: block;
  min-height: clamp(610px, calc(100svh - 96px), 760px);
  overflow: hidden;
  padding: clamp(58px, 8vw, 104px) clamp(18px, 5vw, 72px) 54px;
  background-color: #f4f6f7;
  background-image: url('/assets/hero-workspace.jpg');
  background-repeat: no-repeat;
  background-position: center;
  background-size: cover;
  isolation: isolate;
}
.home-hero::after {
  display: none;
}
.home-hero .hero-copy { position: relative; z-index: 1; max-width: 720px; }
.home-hero h1 { max-width: 720px; font-size: clamp(48px, 6vw, 80px); }
.home-hero .hero-copy > p { max-width: 660px; color: #475467; }
.home-hero .hero-stats { max-width: 540px; }
.home-hero .hero-stats div { border-color: rgba(255,255,255,.72); background: rgba(255,255,255,.82); backdrop-filter: blur(10px); }
.hero-chat-card {
  position: absolute;
  right: clamp(18px, 5vw, 72px);
  bottom: 42px;
  z-index: 2;
  width: min(390px, 34vw);
  padding: 18px;
  border: 1px solid rgba(255,255,255,.42);
  border-radius: 16px;
  background: rgba(11, 18, 32, .9);
  box-shadow: 0 26px 70px rgba(11, 18, 32, .28);
  backdrop-filter: blur(16px);
}
.hero-chat-card .bubble { max-width: 94%; font-size: 14px; }
.hero-chat-card .bubble + .bubble { margin-top: 10px; }
.hero-chat-head { display: flex; align-items: center; gap: 8px; margin-bottom: 15px; color: white; }
.hero-chat-head small { margin-left: auto; color: #99f6e4; }
.live-dot { width: 9px; height: 9px; border-radius: 50%; background: #34d399; box-shadow: 0 0 0 5px rgba(52, 211, 153, .14); }

.product-shot, .chat-preview {
  overflow: hidden;
  border: 1px solid rgba(15, 23, 42, .08);
  border-radius: 22px;
  background: #101827;
  box-shadow: var(--shadow);
}
.shot-head {
  display: flex;
  gap: 7px;
  padding: 16px;
  border-bottom: 1px solid rgba(255,255,255,.08);
}
.shot-head span { width: 10px; height: 10px; border-radius: 99px; background: #d1d5db; }
.shot-layout { display: grid; grid-template-columns: 120px 1fr; min-height: 390px; }
.shot-layout aside { background: rgba(255,255,255,.05); border-right: 1px solid rgba(255,255,255,.08); }
.shot-layout section { padding: 24px; }
.line { height: 11px; border-radius: 99px; background: rgba(255,255,255,.16); margin-bottom: 30px; }
.line.wide { width: 72%; }
.bubble, .message {
  width: fit-content;
  max-width: min(640px, 86%);
  padding: 14px 16px;
  border-radius: 18px;
  line-height: 1.55;
  white-space: pre-wrap;
  overflow-wrap: anywhere;
}
.bubble.user, .message.user { margin-left: auto; color: white; background: var(--brand); border-bottom-right-radius: 7px; }
.bubble.ai, .message.assistant { color: #172033; background: #f0fdfa; border: 1px solid #ccfbf1; border-bottom-left-radius: 7px; }
.bubble + .bubble { margin-top: 14px; }
.composer-fake { height: 48px; margin-top: 44px; border-radius: 10px; background: rgba(255,255,255,.10); }

.content-band, .seo-section, .pricing-page, .auth-page, .narrow, .related {
  padding: 56px clamp(18px, 5vw, 72px);
}
.content-band {
  background: rgba(255,255,255,.64);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}
.feature-grid, .seo-grid, .pricing-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
  margin-top: 28px;
}
.feature-grid article, .seo-card, .price-card, .auth-card, .unit-economics {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(255,255,255,.88);
  box-shadow: 0 12px 30px rgba(15, 23, 42, .06);
}
.feature-grid article { padding: 24px; }
.feature-grid.visual article {
  min-height: 220px;
  background:
    linear-gradient(180deg, rgba(255,255,255,.95), rgba(240,253,250,.78)),
    #fff;
}
.feature-grid.visual i {
  display: inline-grid;
  place-items: center;
  width: 52px;
  height: 52px;
  margin-bottom: 20px;
  border-radius: 14px;
  color: #063f3b;
  background: #99f6e4;
  font-style: normal;
  font-size: 24px;
  font-weight: 900;
}
.feature-grid p, .seo-card p, .price-card p, .unit-economics p { color: var(--muted); line-height: 1.6; }
.seo-card { display: block; padding: 22px; transition: transform .18s ease, border-color .18s ease; }
.seo-card:hover { transform: translateY(-3px); border-color: rgba(15,118,110,.38); }
.seo-card span, .plan-badge { color: var(--brand); font-size: 13px; font-weight: 850; text-transform: uppercase; letter-spacing: .06em; }
.seo-card strong { display: block; margin: 10px 0; font-size: 21px; }
.section-head { max-width: 860px; }

.pricing-grid { grid-template-columns: repeat(3, minmax(220px, 1fr)); }
.price-card { position: relative; padding: 28px; }
.price-card.featured { border-color: rgba(15,118,110,.55); box-shadow: 0 24px 70px rgba(15, 118, 110, .18); }
.price { margin: 16px 0 6px; font-size: 42px; font-weight: 900; color: var(--ink); }
.price span { color: var(--muted); font-size: 16px; font-weight: 700; }
.price-card ul { display: grid; gap: 10px; padding-left: 20px; margin: 20px 0 24px; color: #344054; }
.price-card button { width: 100%; }
.price-card button:disabled { opacity: .65; cursor: wait; }
.unit-economics, .notice { max-width: 920px; margin-top: 22px; padding: 22px; }
.notice { border-radius: 8px; background: #ecfdf5; color: #065f46; border: 1px solid #bbf7d0; }

.auth-page {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(320px, 440px);
  gap: 36px;
  align-items: center;
  min-height: calc(100vh - 150px);
}
.auth-copy {
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  min-height: 590px;
  overflow: hidden;
  padding: clamp(28px, 5vw, 58px);
  border-radius: 8px;
  background-color: #172033;
  background-image: url('/assets/hero-workspace.jpg');
  background-position: 66% center;
  background-size: cover;
  box-shadow: 0 24px 64px rgba(15, 23, 42, .16);
  isolation: isolate;
}
.auth-copy::before {
  position: absolute;
  inset: 0;
  z-index: -1;
  content: '';
  background: rgba(11, 18, 32, .63);
}
.auth-copy h1 { max-width: 720px; color: white; font-size: clamp(46px, 5.6vw, 76px); }
.auth-copy p { max-width: 680px; color: #e2e8f0; }
.auth-copy .eyebrow { color: #99f6e4; }
.auth-card { padding: 22px; }
.tabs { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin-bottom: 16px; padding: 5px; border-radius: 9px; background: #eef2f7; }
.tab { border: 0; border-radius: 7px; padding: 10px; background: transparent; color: var(--muted); font-weight: 800; }
.tab.active { background: white; color: var(--ink); box-shadow: 0 6px 16px rgba(15,23,42,.08); }
.auth-form { display: grid; gap: 12px; }
.checkline {
  display: grid;
  grid-template-columns: 18px 1fr;
  gap: 10px;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.45;
}
.checkline input { width: 18px; height: 18px; margin-top: 1px; accent-color: var(--brand); }
.checkline a { color: var(--brand-2); font-weight: 800; }
.hidden { display: none !important; }
input, textarea {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 14px 15px;
  background: white;
  color: var(--text);
  outline: none;
}
input:focus, textarea:focus { border-color: var(--brand); box-shadow: 0 0 0 4px rgba(15,118,110,.12); }
.form-message { min-height: 24px; color: #b42318; }

.app-body { background: #0b1220; }
.app-body .topbar, .app-body .footer { display: none; }
.app-shell {
  display: grid;
  grid-template-columns: 300px 1fr;
  height: 100vh;
  color: #e5e7eb;
  background: #0b1220;
}
.sidebar {
  display: flex;
  flex-direction: column;
  min-width: 0;
  padding: 16px;
  border-right: 1px solid rgba(255,255,255,.08);
  background: #111827;
}
.side-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 14px; }
.side-brand {
  display: inline-flex;
  align-items: center;
  min-width: 0;
  gap: 10px;
  color: white;
  font-weight: 900;
}
.side-brand span {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.side-head button {
  width: 34px;
  height: 34px;
  border: 1px solid rgba(255,255,255,.12);
  border-radius: 8px;
  color: white;
  background: rgba(255,255,255,.08);
}
.account-card {
  display: grid;
  gap: 8px;
  margin-bottom: 12px;
  padding: 13px;
  border: 1px solid rgba(255,255,255,.10);
  border-radius: 8px;
  background: rgba(255,255,255,.06);
}
.account-card strong { color: white; }
.account-card span, .account-card small { color: #cbd5e1; line-height: 1.4; }
.usage-bar {
  overflow: hidden;
  height: 7px;
  border-radius: 999px;
  background: rgba(255,255,255,.10);
}
.usage-bar i {
  display: block;
  width: 0;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, #14b8a6, #22c55e);
  transition: width .25s ease;
}
.chat-search {
  margin-bottom: 12px;
  border-color: rgba(255,255,255,.10);
  background: rgba(255,255,255,.08);
  color: white;
}
.chat-search::placeholder { color: #94a3b8; }
.chat-list { display: grid; gap: 6px; overflow: auto; min-height: 0; }
.chat-item {
  overflow: hidden;
  width: 100%;
  border: 0;
  border-radius: 8px;
  padding: 11px 12px;
  color: #cbd5e1;
  background: transparent;
  text-align: left;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.chat-item:hover, .chat-item.active { background: rgba(255,255,255,.08); color: white; }
.billing-link, .logout {
  display: block;
  margin-top: auto;
  padding: 12px;
  border-radius: 8px;
  color: #d1fae5;
  background: rgba(15,118,110,.18);
}
.logout { margin-top: 8px; color: #cbd5e1; background: transparent; }
.chat-panel { display: grid; grid-template-rows: auto 1fr auto; min-width: 0; background: #f8fafc; color: var(--text); }
.chat-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 15px 22px;
  border-bottom: 1px solid var(--line);
  background: rgba(255,255,255,.88);
}
.chat-head span { display: block; color: var(--muted); font-size: 13px; }
.chat-head a { color: var(--brand); font-weight: 800; }
.chat-head-actions button {
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 8px 10px;
  background: white;
  color: var(--ink);
  font-weight: 800;
}
.chat-head-actions button:disabled { opacity: .45; cursor: not-allowed; }
.messages {
  display: flex;
  flex-direction: column;
  gap: 14px;
  overflow: auto;
  padding: 28px clamp(16px, 4vw, 72px);
}
.empty-chat { margin: auto; max-width: 720px; text-align: center; color: var(--muted); }
.empty-chat h1 { font-size: clamp(36px, 5vw, 64px); }
.message { box-shadow: 0 10px 24px rgba(15, 23, 42, .05); }
.message.assistant.thinking { opacity: .74; }
.composer {
  display: grid;
  grid-template-columns: 1fr 48px;
  gap: 10px;
  padding: 16px clamp(16px, 4vw, 72px) 22px;
  border-top: 1px solid var(--line);
  background: rgba(255,255,255,.90);
}
.composer textarea { resize: none; min-height: 48px; max-height: 180px; }
.composer button {
  width: 48px;
  height: 48px;
  border: 0;
  border-radius: 8px;
  color: white;
  background: var(--ink);
  font-size: 20px;
}

.related div { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 18px; }
.related a { padding: 10px 12px; border: 1px solid var(--line); border-radius: 8px; background: white; color: var(--brand-2); font-weight: 750; }
.chat-preview { padding: 24px; background: white; }
.seo-copy, .faq, .legal-page {
  padding: 56px clamp(18px, 5vw, 72px);
}
.breadcrumbs {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 18px;
  color: var(--muted);
  font-size: 14px;
}
.breadcrumbs a { color: var(--brand-2); font-weight: 800; }
.toc-block {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
  margin: 0 clamp(18px, 5vw, 72px) 20px;
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(255,255,255,.86);
  box-shadow: 0 12px 30px rgba(15, 23, 42, .04);
}
.toc-block strong { margin-right: 6px; }
.toc-block a {
  padding: 8px 10px;
  border-radius: 7px;
  background: #f1f5f9;
  color: var(--brand-2);
  font-weight: 800;
  font-size: 14px;
}
.seo-copy {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
}
.seo-copy article, .faq details, .legal-doc, .workflow, .compare, .prompt-bank, .cta-band {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(255,255,255,.9);
  box-shadow: 0 12px 30px rgba(15, 23, 42, .05);
}
.seo-copy article { padding: 26px; }
.seo-copy p, .seo-copy li, .legal-doc p, .legal-doc li, .legal-doc dd, .workflow p, .workflow li, .compare p, .prompt-bank div, .cta-band p {
  color: var(--muted);
  line-height: 1.7;
}
.workflow, .compare, .prompt-bank, .cta-band {
  margin: 28px clamp(18px, 5vw, 72px);
  padding: clamp(24px, 4vw, 34px);
}
.workflow {
  display: grid;
  grid-template-columns: minmax(0, 1.4fr) minmax(260px, .6fr);
  gap: 26px;
}
.workflow ol { display: grid; gap: 12px; padding-left: 22px; }
.workflow aside {
  align-self: start;
  padding: 20px;
  border-radius: 8px;
  background: #ecfeff;
  border: 1px solid #a5f3fc;
}
.compare-grid, .prompt-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
  margin-top: 20px;
}
.compare-grid article, .prompt-grid div {
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #f8fafc;
}
.compare-grid strong { display: block; margin-bottom: 8px; color: var(--ink); font-size: 18px; }
.prompt-grid div { color: var(--text); background: #fff; }
.cta-band {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  color: white;
  background: linear-gradient(135deg, #0b1220, #164e63);
}
.cta-band h2 { color: white; }
.cta-band p { color: #d1fae5; }
.cta-band .button.primary { background: white; color: var(--ink); }
.faq { max-width: 980px; }
.faq details { margin-top: 12px; padding: 18px 20px; }
.faq summary { cursor: pointer; font-weight: 850; }
.legal-page { display: flex; justify-content: center; }
.legal-doc {
  width: min(100%, 980px);
  padding: clamp(24px, 5vw, 46px);
}
.legal-doc h1 { font-size: clamp(34px, 5vw, 58px); }
.legal-doc h2 { margin-top: 34px; font-size: 25px; }
.doc-note {
  padding: 14px 16px;
  border: 1px solid #fde68a;
  border-radius: 8px;
  background: #fffbeb;
  color: #92400e !important;
}
.requisites {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
  margin: 24px 0;
}
.requisites div {
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #f8fafc;
}
.requisites dt { color: var(--text); font-weight: 850; }
.requisites dd { margin: 4px 0 0; }
.footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: 30px clamp(18px, 5vw, 72px);
  color: var(--muted);
  border-top: 1px solid var(--line);
  background: #fff;
}
.footer strong, .footer span { display: block; }
.footer-links { display: flex; flex-wrap: wrap; gap: 14px; }

.hero-stats {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
  max-width: 620px;
  margin-top: 24px;
}
.hero-stats div, .pricing-proof div {
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(255,255,255,.84);
}
.hero-stats strong, .pricing-proof strong {
  display: block;
  color: var(--ink);
  font-size: 24px;
  line-height: 1;
}
.hero-stats span, .pricing-proof span {
  display: block;
  margin-top: 6px;
  color: var(--muted);
  font-size: 13px;
}
.hero-offer {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px 12px;
  max-width: 620px;
  margin-top: 22px;
  padding: 14px 16px;
  border: 1px solid #99f6e4;
  border-radius: 8px;
  background: rgba(240, 253, 250, .92);
  box-shadow: 0 12px 28px rgba(15, 118, 110, .08);
}
.hero-offer strong {
  color: #0f766e;
  font-weight: 900;
}
.hero-offer span {
  color: #155e75;
  font-weight: 750;
}
.shot-layout aside {
  display: grid;
  align-content: start;
  gap: 10px;
  padding: 18px 14px;
}
.shot-layout aside i {
  display: block;
  height: 9px;
  border-radius: 99px;
  background: rgba(255,255,255,.14);
}
.shot-layout aside i:nth-child(2) { width: 72%; }
.shot-layout aside i:nth-child(3) { width: 54%; }
.pricing-proof {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
  margin: 24px 0;
}
.promo-panel {
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(280px, .8fr);
  gap: 24px;
  align-items: center;
  margin: 26px 0;
  padding: clamp(22px, 4vw, 34px);
  border: 1px solid #99f6e4;
  border-radius: 8px;
  background:
    linear-gradient(135deg, rgba(240, 253, 250, .96), rgba(236, 254, 255, .9)),
    #fff;
  box-shadow: 0 18px 44px rgba(15, 118, 110, .10);
}
.promo-panel.alt {
  border-color: #bfdbfe;
  background:
    linear-gradient(135deg, rgba(239,246,255,.96), rgba(255,255,255,.92)),
    #fff;
}
.promo-panel p { color: var(--muted); line-height: 1.65; }
.promo-panel form {
  display: grid;
  gap: 10px;
  padding: 18px;
  border: 1px solid rgba(15, 118, 110, .16);
  border-radius: 8px;
  background: rgba(255,255,255,.82);
}
.promo-panel button,
.sidebar-promo button {
  min-height: 44px;
  border: 0;
  border-radius: 8px;
  color: white;
  background: var(--ink);
  font-weight: 850;
}
.promo-panel button:disabled,
.sidebar-promo button:disabled {
  opacity: .66;
  cursor: wait;
}
.promo-panel [data-promo-message],
.sidebar-promo [data-promo-message],
.key-box [data-key-message],
.sidebar-promo [data-key-message] {
  min-height: 18px;
  margin: 0;
  color: #0f766e;
  font-size: 13px;
  line-height: 1.4;
}
.marketing-grid,
.funnel-steps {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
  margin-top: 28px;
}
.marketing-grid article,
.funnel-steps article {
  padding: 22px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(255,255,255,.9);
  box-shadow: 0 12px 30px rgba(15, 23, 42, .05);
}
.marketing-grid span {
  display: inline-grid;
  place-items: center;
  width: 34px;
  height: 34px;
  margin-bottom: 16px;
  border-radius: 8px;
  color: white;
  background: var(--brand);
  font-weight: 900;
}
.marketing-grid p,
.funnel-steps p {
  color: var(--muted);
  line-height: 1.6;
}
.funnel-band {
  padding: 56px clamp(18px, 5vw, 72px);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  background: rgba(255,255,255,.7);
}
.funnel-steps { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.funnel-steps strong {
  display: block;
  margin-bottom: 10px;
  color: var(--ink);
  font-size: 18px;
}
.mini-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 18px;
}
.mini-grid span {
  padding: 9px 10px;
  border-radius: 7px;
  color: #155e75;
  background: #ecfeff;
  font-weight: 800;
  font-size: 13px;
}
.usecase-band, .cluster-strip, .catalog-hero {
  padding: 56px clamp(18px, 5vw, 72px);
}
.usecase-grid, .cluster-grid {
  display: grid;
  gap: 16px;
  margin-top: 28px;
}
.usecase-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.cluster-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.usecase-grid article, .cluster-card {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(255,255,255,.9);
  box-shadow: 0 12px 30px rgba(15, 23, 42, .06);
}
.usecase-grid article { padding: 22px; }
.usecase-grid span {
  display: inline-grid;
  place-items: center;
  width: 34px;
  height: 34px;
  margin-bottom: 16px;
  border-radius: 8px;
  color: white;
  background: var(--brand-2);
  font-weight: 850;
}
.usecase-grid p, .cluster-card p { color: var(--muted); line-height: 1.6; }
.cluster-strip, .catalog-hero {
  background: rgba(248,250,252,.86);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}
.catalog-hero p { max-width: 860px; color: var(--muted); font-size: 19px; line-height: 1.65; }
.cluster-card {
  display: block;
  padding: 24px;
  transition: transform .18s ease, border-color .18s ease;
}
.cluster-card:hover { transform: translateY(-3px); border-color: rgba(15,118,110,.42); }
.cluster-card span, .seo-card em {
  color: var(--brand);
  font-size: 13px;
  font-weight: 850;
  text-transform: uppercase;
  letter-spacing: .06em;
}
.cluster-card strong {
  display: block;
  margin: 10px 0;
  font-size: 24px;
}
.cluster-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 22px;
}
.cluster-pill {
  display: inline-grid;
  gap: 4px;
  min-width: 190px;
  padding: 14px 16px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
}
.cluster-pill strong { color: var(--ink); }
.cluster-pill span { color: var(--muted); font-size: 13px; }
.seo-card em {
  display: inline-flex;
  margin-top: 10px;
  padding: 6px 8px;
  border-radius: 7px;
  background: #ccfbf1;
  font-style: normal;
}
.section-actions { margin-top: 24px; }

.chat-head-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 8px;
}
.chat-head-actions a {
  padding: 8px 10px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
}
.sidebar-promo {
  display: grid;
  gap: 9px;
  margin-bottom: 12px;
  padding: 12px;
  border: 1px solid rgba(153, 246, 228, .26);
  border-radius: 8px;
  background: rgba(15, 118, 110, .14);
}
.sidebar-promo.key { background: rgba(37, 99, 235, .14); border-color: rgba(147, 197, 253, .28); }
.sidebar-promo.key button { background: #93c5fd; color: #0f172a; }
.key-box {
  display: grid;
  gap: 10px;
  margin-top: 18px;
  padding: 16px;
  border: 1px solid #bfdbfe;
  border-radius: 8px;
  background: #eff6ff;
}
.key-box h3 { margin: 0; }
.key-box p { margin: 0; color: var(--muted); line-height: 1.5; }
.key-box form { display: grid; gap: 10px; }
.key-box button {
  min-height: 44px;
  border: 0;
  border-radius: 8px;
  color: white;
  background: var(--brand-2);
  font-weight: 850;
}
.sidebar-promo input {
  min-height: 42px;
  border-color: rgba(255,255,255,.12);
  background: rgba(255,255,255,.08);
  color: white;
}
.sidebar-promo input::placeholder { color: #99f6e4; }
.sidebar-promo button { background: #14b8a6; color: #052e2b; }
.sidebar-promo [data-promo-message] { color: #ccfbf1; }
.empty-kicker {
  display: inline-flex;
  margin-bottom: 14px;
  padding: 7px 10px;
  border-radius: 999px;
  color: #0f766e;
  background: #ccfbf1;
  font-size: 13px;
  font-weight: 850;
}
.quick-prompts {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 10px;
  margin-top: 22px;
}
.quick-prompts button {
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 10px 12px;
  color: var(--ink);
  background: #fff;
  font-weight: 800;
  box-shadow: 0 8px 18px rgba(15,23,42,.05);
  transition: transform .18s ease, border-color .18s ease, box-shadow .18s ease, background-color .18s ease;
}
.quick-prompts button:hover { transform: translateY(-2px); border-color: rgba(15,118,110,.45); background: #f0fdfa; box-shadow: 0 14px 28px rgba(15,23,42,.1); }
.message.assistant {
  max-width: min(820px, 92%);
  padding: 18px 20px;
}
.message.assistant p { margin: 0 0 12px; color: #1f2937; }
.message.assistant p:last-child { margin-bottom: 0; }
.message.assistant h3,
.message.assistant h4,
.message.assistant h5 {
  margin: 16px 0 8px;
  color: var(--ink);
  line-height: 1.2;
}
.message.assistant h3:first-child,
.message.assistant h4:first-child,
.message.assistant h5:first-child { margin-top: 0; }
.message.assistant ul {
  margin: 10px 0 14px;
  padding-left: 22px;
}
.message.assistant li { margin: 6px 0; color: #344054; line-height: 1.55; }
.message.assistant code {
  padding: 2px 5px;
  border-radius: 5px;
  background: #e5e7eb;
  color: #0f172a;
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
  font-size: .92em;
}
.message.assistant pre {
  overflow: auto;
  margin: 14px 0;
  padding: 16px;
  border-radius: 8px;
  background: #0b1220;
  color: #d1fae5;
}
.message.assistant pre code {
  padding: 0;
  background: transparent;
  color: inherit;
}
.message.assistant a { color: var(--brand-2); font-weight: 850; text-decoration: underline; text-underline-offset: 3px; }
.message-tools {
  display: flex;
  justify-content: flex-end;
  margin-top: 12px;
  padding-top: 10px;
  border-top: 1px solid #d1fae5;
}
.message-tools button {
  border: 1px solid #99f6e4;
  border-radius: 7px;
  padding: 7px 9px;
  color: #0f766e;
  background: #fff;
  font-size: 12px;
  font-weight: 850;
}
.composer {
  box-shadow: 0 -14px 34px rgba(15,23,42,.05);
}
.composer textarea {
  border-color: #d0d5dd;
  box-shadow: 0 8px 20px rgba(15,23,42,.04);
}
.composer:focus-within { box-shadow: 0 -18px 42px rgba(15, 118, 110, .09); }

.editorial-band {
  display: grid;
  gap: 0;
  padding: 0;
  background: #fff;
}
.editorial-story {
  display: grid;
  grid-template-columns: minmax(0, 1.08fr) minmax(320px, .92fr);
  min-height: 520px;
  border-top: 1px solid var(--line);
  background: #fff;
}
.editorial-story.reverse { grid-template-columns: minmax(320px, .92fr) minmax(0, 1.08fr); background: #eef6f5; }
.editorial-story.reverse img { order: 2; }
.editorial-story img {
  width: 100%;
  height: 100%;
  min-height: 520px;
  object-fit: cover;
  transition: transform .7s cubic-bezier(.2,.7,.2,1), filter .3s ease;
}
.editorial-story > div {
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: clamp(38px, 7vw, 96px);
}
.editorial-story h2 { max-width: 640px; }
.editorial-story p:not(.eyebrow) { max-width: 620px; color: var(--muted); font-size: 18px; line-height: 1.7; }
.editorial-story a { display: inline-flex; align-items: center; gap: 10px; width: fit-content; margin-top: 12px; color: var(--brand-2); font-weight: 900; }
.editorial-story a span { transition: transform .18s ease; }
.editorial-story a:hover span { transform: translateX(5px); }

.landing-visual {
  position: relative;
  min-width: 0;
  min-height: 480px;
  overflow: hidden;
  margin: 0;
  border-radius: 8px;
  background: #dbe5e7;
  box-shadow: 0 24px 70px rgba(15, 23, 42, .16);
}
.landing-visual img { width: 100%; height: 100%; min-height: 480px; object-fit: cover; transition: transform .8s cubic-bezier(.2,.7,.2,1); }
.landing-visual:hover img { transform: scale(1.025); }
.landing-visual figcaption {
  position: absolute;
  right: 16px;
  bottom: 16px;
  left: 16px;
  padding: 18px;
  border: 1px solid rgba(255,255,255,.52);
  border-radius: 8px;
  background: rgba(11, 18, 32, .9);
  color: white;
  backdrop-filter: blur(12px);
}
.landing-visual figcaption span { display: block; color: #99f6e4; font-size: 12px; font-weight: 900; text-transform: uppercase; letter-spacing: .08em; }
.landing-visual figcaption strong { display: block; margin-top: 5px; font-size: 20px; }
.landing-visual figcaption p { margin: 7px 0 0; color: #dbeafe; font-size: 14px; line-height: 1.5; }

.feature-grid article, .seo-card, .price-card, .usecase-grid article, .cluster-card, .funnel-steps article {
  transition: transform .22s ease, border-color .22s ease, box-shadow .22s ease;
}
.feature-grid article:hover, .price-card:hover, .usecase-grid article:hover, .funnel-steps article:hover {
  transform: translateY(-4px);
  border-color: rgba(15,118,110,.34);
  box-shadow: 0 20px 42px rgba(15, 23, 42, .1);
}
.feature-grid.visual article:hover i { transform: rotate(-3deg) scale(1.06); }
.feature-grid.visual i { transition: transform .22s ease; }

.reveal-ready [data-reveal] { opacity: 0; transform: translateY(22px); }
.reveal-ready [data-reveal].is-visible { opacity: 1; transform: translateY(0); transition: opacity .65s ease, transform .65s cubic-bezier(.2,.7,.2,1); }
.live-dot { animation: livePulse 2s ease-in-out infinite; }
@keyframes livePulse {
  0%, 100% { box-shadow: 0 0 0 4px rgba(52, 211, 153, .12); }
  50% { box-shadow: 0 0 0 8px rgba(52, 211, 153, .03); }
}

@media (min-width: 901px) and (max-height: 800px) {
  .home-hero { min-height: 620px; padding-top: 38px; padding-bottom: 28px; }
  .home-hero h1 { font-size: clamp(52px, 5vw, 64px); }
  .home-hero .hero-copy > p { margin: 14px 0; font-size: 17px; line-height: 1.5; }
  .home-hero .hero-offer { margin-top: 12px; padding: 10px 13px; }
  .home-hero .hero-actions { margin-top: 14px; }
  .home-hero .hero-stats { margin-top: 14px; }
  .home-hero .hero-stats div { padding: 10px 12px; }
  .home-hero .hero-stats strong { font-size: 20px; }
  .hero-chat-card { bottom: 24px; }
}
.status-page { min-height: 70vh; }
.status-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
  padding: 42px clamp(18px, 5vw, 72px);
}
.status-card {
  padding: 22px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(255,255,255,.9);
  box-shadow: 0 12px 30px rgba(15, 23, 42, .06);
}
.status-card span {
  display: inline-flex;
  margin-bottom: 14px;
  padding: 6px 8px;
  border-radius: 999px;
  color: #0f766e;
  background: #ccfbf1;
  font-size: 12px;
  font-weight: 850;
}
.status-card p { color: var(--muted); line-height: 1.6; }
.cookie-notice {
  position: fixed;
  right: 18px;
  bottom: 18px;
  z-index: 20;
  display: none;
  align-items: center;
  gap: 16px;
  max-width: 520px;
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(255,255,255,.96);
  box-shadow: var(--shadow);
}
.cookie-notice.visible { display: flex; }
.cookie-notice strong, .cookie-notice span { display: block; }
.cookie-notice span { color: var(--muted); font-size: 13px; line-height: 1.45; }
.cookie-notice button {
  flex: 0 0 auto;
  border: 0;
  border-radius: 8px;
  padding: 10px 12px;
  color: white;
  background: var(--ink);
  font-weight: 850;
}

@media (max-width: 900px) {
  .hero, .auth-page { grid-template-columns: 1fr; }
  .hero { padding-top: 34px; }
  .feature-grid, .seo-grid, .pricing-grid, .seo-copy, .requisites, .pricing-proof, .usecase-grid, .cluster-grid, .workflow, .compare-grid, .prompt-grid, .hero-stats, .status-grid, .promo-panel, .marketing-grid, .funnel-steps { grid-template-columns: 1fr; }
  .app-shell { grid-template-columns: 1fr; }
  .sidebar { display: none; }
  .nav { display: none; }
  .burger { display: block; }
  .chat-preview { width: 100%; min-width: 0; }
  .chat-preview .bubble { max-width: 100%; white-space: normal; }
  h1 { font-size: clamp(38px, 12vw, 58px); }
  .home-hero {
    min-height: auto;
    padding-top: 330px;
    background-position: 68% top;
    background-size: auto 330px;
  }
  .home-hero::after { display: none; }
  .home-hero h1 { font-size: clamp(42px, 11vw, 64px); }
  .hero-chat-card { display: none; }
  .editorial-story, .editorial-story.reverse { grid-template-columns: 1fr; min-height: 0; }
  .editorial-story.reverse img { order: 0; }
  .editorial-story img { min-height: 0; aspect-ratio: 16 / 9; }
  .editorial-story > div { padding: 42px clamp(18px, 7vw, 54px); }
  .landing-visual, .landing-visual img { min-height: 380px; }
  .auth-copy { min-height: 380px; background-position: 64% 36%; }
  .auth-copy h1 { font-size: clamp(40px, 9vw, 58px); }
}

@media (max-width: 620px) {
  .topbar { align-items: flex-start; }
  .nav { justify-content: flex-end; flex-wrap: wrap; font-size: 14px; }
  .hero-actions, .footer { align-items: stretch; flex-direction: column; }
  .button { width: 100%; }
  .shot-layout { grid-template-columns: 74px 1fr; min-height: 330px; }
  .shot-layout section { padding: 16px; }
  .chat-head { align-items: flex-start; flex-direction: column; }
  .messages { padding: 18px 12px; }
  .composer { padding: 12px; }
  .cookie-notice {
    left: 12px;
    right: 12px;
    bottom: 12px;
    align-items: center;
    flex-direction: row;
    gap: 10px;
    padding: 11px 12px;
  }
  .cookie-notice span { font-size: 11px; }
  .cookie-notice button { padding: 9px 10px; }
  .home-hero { padding: 216px 20px 24px; background-position: 67% top; background-size: auto 216px; }
  .home-hero h1 { font-size: 37px; line-height: 1.02; }
  .home-hero .eyebrow { margin-bottom: 10px; font-size: 11px; }
  .home-hero .hero-copy > p {
    display: -webkit-box;
    overflow: hidden;
    margin: 14px 0;
    font-size: 16px;
    line-height: 1.45;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 4;
  }
  .home-hero .hero-offer { margin-top: 12px; padding: 10px 12px; }
  .home-hero .hero-offer span { font-size: 13px; }
  .home-hero .hero-actions { margin-top: 12px; }
  .home-hero .hero-stats { display: none; }
  .landing-visual, .landing-visual img { min-height: 310px; }
  .landing-visual figcaption { right: 10px; bottom: 10px; left: 10px; padding: 14px; }
  .auth-page { padding: 18px; }
  .auth-copy { min-height: 300px; padding: 24px 20px; }
  .auth-copy h1 { font-size: 38px; }
  .auth-copy p { font-size: 16px; line-height: 1.5; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
  .reveal-ready [data-reveal] { opacity: 1; transform: none; }
}
