:root {
  --ink: #12110f;
  --muted: #68645e;
  --paper: #f5f2eb;
  --paper-2: #ece7dd;
  --white: #fffdf8;
  --lime: #c9f460;
  --lime-dark: #9fca37;
  --blue: #3879f3;
  --line: rgba(18, 17, 15, .13);
  --shadow: 0 25px 80px rgba(28, 25, 20, .14);
  --radius: 26px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  color: var(--ink);
  background: var(--paper);
  font-family: Inter, ui-sans-serif, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  -webkit-font-smoothing: antialiased;
}
button, input, textarea { font: inherit; }
button, a { -webkit-tap-highlight-color: transparent; }
a { color: inherit; text-decoration: none; }
.hidden { display: none !important; }

.nav {
  height: 80px;
  padding: 0 clamp(24px, 5vw, 76px);
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid var(--line);
}
.brand { display: inline-flex; align-items: center; gap: 11px; font-weight: 760; }
.brand-mark {
  display: grid; place-items: center;
  width: 34px; height: 34px;
  border-radius: 10px;
  color: var(--ink); background: var(--lime);
  font-size: 12px; letter-spacing: -.03em;
  box-shadow: inset 0 0 0 1px rgba(0,0,0,.08);
}
.nav-link { font-size: 13px; font-weight: 650; border-bottom: 1px solid; padding-bottom: 3px; }

.hero {
  min-height: 700px;
  padding: 72px clamp(24px, 7vw, 110px) 88px;
  display: grid;
  grid-template-columns: minmax(0, 1.04fr) minmax(420px, .96fr);
  gap: clamp(48px, 8vw, 128px);
  align-items: center;
  overflow: hidden;
}
.eyebrow, .section-kicker {
  display: flex; align-items: center; gap: 9px;
  font-size: 11px; font-weight: 800; letter-spacing: .15em;
  color: #5e5a53;
}
.eyebrow span { width: 7px; height: 7px; border-radius: 50%; background: var(--lime-dark); box-shadow: 0 0 0 5px rgba(159,202,55,.12); }
h1 {
  margin: 24px 0;
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(52px, 6.2vw, 92px);
  font-weight: 500;
  line-height: .97;
  letter-spacing: -.055em;
}
h1 em { color: var(--lime-dark); font-weight: 500; }
.hero-lead {
  max-width: 590px; margin: 0 0 34px;
  color: var(--muted); font-size: clamp(17px, 1.5vw, 21px); line-height: 1.6;
}
.hero-actions { display: flex; gap: 12px; flex-wrap: wrap; }
.button {
  appearance: none; border: 0; cursor: pointer;
  display: inline-flex; justify-content: center; align-items: center;
  min-height: 52px; padding: 0 24px; border-radius: 14px;
  font-weight: 750; transition: transform .2s, box-shadow .2s, background .2s;
}
.button:hover { transform: translateY(-2px); }
.button-primary { background: var(--ink); color: var(--white); box-shadow: 0 12px 24px rgba(18,17,15,.14); }
.button-primary:hover { box-shadow: 0 16px 34px rgba(18,17,15,.22); }
.button-ghost { border: 1px solid var(--line); background: rgba(255,255,255,.45); }
.button.full { width: 100%; }
.trust-row { margin-top: 32px; display: flex; align-items: center; flex-wrap: wrap; gap: 10px; font-size: 11px; font-weight: 700; color: #716c64; text-transform: uppercase; letter-spacing: .07em; }
.trust-row i { width: 3px; height: 3px; border-radius: 50%; background: #9e998f; }

.hero-demo { position: relative; min-height: 510px; }
.demo-window {
  width: min(100%, 540px); min-height: 490px;
  background: var(--white); border: 1px solid rgba(0,0,0,.12);
  border-radius: 30px; box-shadow: var(--shadow); overflow: hidden;
  transform: rotate(1.1deg);
}
.window-bar { height: 66px; padding: 0 21px; display: flex; align-items: center; gap: 16px; border-bottom: 1px solid var(--line); font-size: 12px; font-weight: 720; }
.window-dots { display: flex; gap: 5px; }
.window-dots b { width: 7px; height: 7px; border-radius: 50%; background: #d5d0c6; }
.window-bar > span { flex: 1; }
.online { color: #6e6a62; display: flex; align-items: center; gap: 5px; }
.online i { width: 6px; height: 6px; border-radius: 50%; background: #74b23d; }
.demo-chat { padding: 28px; display: flex; flex-direction: column; gap: 18px; }
.bubble { max-width: 84%; padding: 15px 18px; border-radius: 18px; font-size: 14px; line-height: 1.48; box-shadow: 0 8px 20px rgba(0,0,0,.04); }
.bubble.user { align-self: flex-end; color: white; background: var(--ink); border-bottom-right-radius: 5px; }
.bubble.assistant { background: #efebe2; border-bottom-left-radius: 5px; }
.photo-stack { align-self: flex-end; display: flex; width: 245px; height: 118px; position: relative; margin: 2px 10px 4px 0; }
.photo-card {
  position: absolute; width: 140px; height: 106px; border-radius: 13px;
  border: 5px solid var(--white); display: flex; align-items: end; padding: 10px;
  background:
    radial-gradient(circle at 30% 25%, rgba(255,255,255,.85), transparent 20%),
    linear-gradient(135deg, #dca67a, #733f29 60%, #2e1d18);
  box-shadow: 0 12px 30px rgba(30,22,17,.18);
}
.photo-card span { color: white; font-size: 9px; font-weight: 800; letter-spacing: .1em; text-shadow: 0 1px 5px #000; }
.photo-one { left: 0; transform: rotate(-6deg); }
.photo-two { right: 0; transform: rotate(7deg); background: linear-gradient(135deg, #deb78e, #514138 65%, #1c1815); }
.typing { display: flex; align-items: center; gap: 5px; color: #777168; font-size: 11px; }
.typing b { width: 5px; height: 5px; border-radius: 50%; background: #8b857a; animation: pulse 1.2s infinite; }
.typing b:nth-child(2) { animation-delay: .2s; }.typing b:nth-child(3) { animation-delay: .4s; }
.typing span { margin-left: 5px; }
@keyframes pulse { 0%,100%{opacity:.25; transform:translateY(0)} 50%{opacity:1;transform:translateY(-3px)} }
.floating-card { position: absolute; background: var(--white); border: 1px solid var(--line); border-radius: 18px; box-shadow: 0 18px 50px rgba(32,26,18,.15); }
.result-card { right: -36px; top: 66px; padding: 18px 22px; display: flex; flex-direction: column; transform: rotate(-3deg); }
.result-label { font-size: 9px; font-weight: 850; letter-spacing: .15em; color: #79736b; }
.result-card strong { font-family: Georgia, serif; font-size: 25px; margin-top: 5px; }
.result-card small, .publish-card small { color: var(--muted); margin-top: 4px; }
.publish-card { left: -45px; bottom: 52px; padding: 16px 20px; display: flex; align-items: center; gap: 12px; transform: rotate(2deg); }
.publish-card div { display: flex; flex-direction: column; font-size: 13px; }
.check { display: grid; place-items: center; width: 34px; height: 34px; border-radius: 50%; background: var(--lime); font-weight: 900; }

.how { background: var(--ink); color: var(--white); padding: 100px clamp(24px, 7vw, 110px); }
.section-heading { display: grid; grid-template-columns: 1fr 2fr; align-items: end; gap: 30px; }
.section-heading > span { color: #959187; font-size: 10px; font-weight: 800; letter-spacing: .16em; }
.section-heading h2, .channels h2, .rules h2 {
  margin: 0; font-family: Georgia, serif; font-weight: 500;
  font-size: clamp(38px, 4vw, 62px); line-height: 1.06; letter-spacing: -.04em;
}
.steps { display: grid; grid-template-columns: repeat(4, 1fr); margin-top: 74px; border-top: 1px solid rgba(255,255,255,.15); }
.steps article { padding: 32px 28px 10px 0; border-right: 1px solid rgba(255,255,255,.12); min-height: 230px; }
.steps article + article { padding-left: 28px; }
.steps b { color: var(--lime); font: 500 28px Georgia, serif; }
.steps h3 { margin: 42px 0 12px; font-size: 17px; }
.steps p { margin: 0; color: #aaa69e; line-height: 1.6; font-size: 14px; }

.channels { padding: 110px clamp(24px, 7vw, 110px); display: grid; grid-template-columns: 1fr 1fr; gap: 90px; align-items: center; }
.channels .section-kicker, .rules .section-kicker { margin-bottom: 20px; }
.channels p { color: var(--muted); max-width: 480px; line-height: 1.65; font-size: 16px; }
.channel-cards { display: grid; gap: 14px; }
.channel-card { min-height: 106px; padding: 22px; border-radius: 20px; display: grid; grid-template-columns: 54px 1fr auto; align-items: center; gap: 16px; transition: transform .2s, box-shadow .2s; }
.channel-card:hover { transform: translateX(4px); box-shadow: 0 15px 35px rgba(0,0,0,.1); }
.web-card { background: var(--white); border: 1px solid var(--line); }
.telegram-card { background: var(--blue); color: white; }
.channel-icon { width: 50px; height: 50px; border-radius: 15px; display: grid; place-items: center; background: rgba(0,0,0,.07); font-size: 24px; }
.channel-card div { display: flex; flex-direction: column; gap: 5px; }
.channel-card strong { font-size: 17px; }.channel-card small { opacity: .68; }.channel-card > b { font-size: 22px; }

.rules { margin: 0 clamp(24px, 7vw, 110px) 110px; padding: 70px; border-radius: 32px; background: var(--lime); display: grid; grid-template-columns: 1fr 1fr; gap: 80px; }
.rules ul { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: 1fr 1fr; gap: 24px 28px; align-content: center; }
.rules li { display: flex; gap: 10px; font-size: 14px; font-weight: 700; }
.rules li span { display: grid; place-items: center; width: 19px; height: 19px; border-radius: 50%; color: white; background: var(--ink); font-size: 10px; }

footer { min-height: 120px; border-top: 1px solid var(--line); padding: 30px clamp(24px, 5vw, 76px); display: flex; justify-content: space-between; align-items: center; gap: 30px; }
footer p { color: var(--muted); font-size: 12px; text-align: right; }

dialog {
  width: min(92vw, 510px); padding: 38px; border: 0; border-radius: 26px;
  color: var(--ink); background: var(--white); box-shadow: var(--shadow);
}
dialog::backdrop { background: rgba(18,17,15,.65); backdrop-filter: blur(8px); }
.dialog-close { position: absolute; right: 18px; top: 16px; border: 0; background: transparent; font-size: 28px; cursor: pointer; color: #777; }
.dialog-icon { display: grid; place-items: center; width: 50px; height: 50px; border-radius: 15px; background: var(--lime); font-size: 22px; margin-bottom: 24px; }
dialog h2 { font: 500 38px/1.05 Georgia, serif; margin: 10px 0 14px; letter-spacing: -.03em; }
dialog > p { color: var(--muted); line-height: 1.55; }
dialog form { display: grid; gap: 18px; margin-top: 26px; }
dialog label:not(.consent) { display: grid; gap: 8px; font-size: 12px; font-weight: 750; }
dialog input[type=email], dialog input[type=text] { width: 100%; height: 52px; border: 1px solid var(--line); border-radius: 13px; padding: 0 15px; background: #f8f5ee; outline: none; }
dialog input:focus { border-color: #7ba720; box-shadow: 0 0 0 3px rgba(159,202,55,.18); }
.consent { display: grid; grid-template-columns: 18px 1fr; gap: 10px; color: var(--muted); font-size: 11px; line-height: 1.5; }
.consent input { margin-top: 2px; accent-color: var(--ink); }
.form-result { min-height: 16px; margin: 0; font-size: 12px; color: #3e7a1f; text-align: center; }
.form-result.error { color: #b13b2d; }

.chat-shell { min-height: 100vh; background: #ece8df; }
.chat-header { height: 76px; padding: 0 clamp(20px, 4vw, 58px); display: flex; align-items: center; justify-content: space-between; border-bottom: 1px solid var(--line); background: var(--white); }
.trial-meter { display: flex; align-items: end; flex-direction: column; gap: 3px; }
.trial-meter span { font-size: 12px; font-weight: 800; }.trial-meter small { color: var(--muted); font-size: 10px; }
.chat-layout { height: calc(100vh - 76px); display: grid; grid-template-columns: 280px 1fr; }
.progress-panel { padding: 38px 28px; border-right: 1px solid var(--line); background: #f3efe7; display: flex; flex-direction: column; }
.progress-list { list-style: none; padding: 0; margin: 30px 0; display: grid; gap: 7px; }
.progress-list li { display: flex; align-items: center; gap: 13px; padding: 12px; border-radius: 13px; opacity: .5; }
.progress-list li.active { background: var(--white); opacity: 1; box-shadow: 0 7px 20px rgba(0,0,0,.04); }
.progress-list li.done { opacity: .85; }
.progress-list li b { width: 28px; height: 28px; border-radius: 9px; display: grid; place-items: center; border: 1px solid var(--line); font-size: 11px; }
.progress-list li.active b, .progress-list li.done b { background: var(--lime); border-color: transparent; }
.progress-list li span { display: flex; flex-direction: column; font-size: 13px; font-weight: 750; }
.progress-list li small { margin-top: 3px; font-size: 9px; color: var(--muted); font-weight: 500; }
.switch-channel { margin-top: auto; font-size: 11px; font-weight: 750; border-top: 1px solid var(--line); padding-top: 18px; }
.conversation { min-width: 0; display: flex; flex-direction: column; position: relative; background: #ece8df; }
.messages { flex: 1; overflow-y: auto; padding: 44px max(24px, calc((100% - 720px)/2)); display: flex; flex-direction: column; gap: 15px; }
.message { max-width: 76%; padding: 14px 17px; border-radius: 17px; font-size: 14px; line-height: 1.5; white-space: pre-wrap; }
.message.assistant { align-self: flex-start; background: var(--white); border-bottom-left-radius: 4px; }
.message.user { align-self: flex-end; color: white; background: var(--ink); border-bottom-right-radius: 4px; }
.message.system { align-self: center; color: var(--muted); background: transparent; font-size: 11px; }
.composer { margin: 0 auto 25px; width: min(720px, calc(100% - 40px)); padding: 8px; display: flex; align-items: end; gap: 7px; border: 1px solid var(--line); background: var(--white); border-radius: 19px; box-shadow: 0 15px 45px rgba(0,0,0,.09); }
.composer textarea { flex: 1; resize: none; max-height: 140px; min-height: 42px; padding: 11px 8px; border: 0; outline: 0; background: transparent; line-height: 1.45; }
.send-button, .upload-button { width: 42px; height: 42px; flex: 0 0 42px; display: grid; place-items: center; border-radius: 13px; border: 0; cursor: pointer; }
.send-button { color: white; background: var(--ink); font-size: 20px; }
.upload-button { background: var(--paper-2); font-size: 20px; }
.upload-button input { display: none; }
.chat-actions { width: min(720px, calc(100% - 40px)); margin: -10px auto 22px; display: flex; gap: 9px; flex-wrap: wrap; }
.action-chip { border: 1px solid var(--line); background: var(--white); border-radius: 12px; padding: 10px 14px; cursor: pointer; font-size: 12px; font-weight: 720; }
.action-chip.primary { background: var(--ink); color: white; }
.action-chip:disabled { opacity: .45; cursor: wait; }
.design-grid { padding: 10px max(24px, calc((100% - 840px)/2)) 25px; display: grid; grid-template-columns: repeat(3, 1fr); gap: 13px; max-height: 55vh; overflow-y: auto; }
.design-card { position: relative; border: 3px solid transparent; border-radius: 17px; overflow: hidden; background: white; cursor: pointer; box-shadow: 0 10px 25px rgba(0,0,0,.08); }
.design-card.selected { border-color: var(--lime-dark); }
.design-card img { width: 100%; aspect-ratio: 1; display: block; object-fit: cover; }
.design-card span { display: block; padding: 10px; font-size: 11px; font-weight: 750; }
.loading-note { align-self: center; padding: 14px 18px; background: var(--lime); border-radius: 13px; font-size: 12px; font-weight: 750; }

@media (max-width: 900px) {
  .hero { grid-template-columns: 1fr; padding-top: 50px; }
  .hero-demo { width: min(560px, 100%); margin: auto; }
  .section-heading { grid-template-columns: 1fr; }
  .steps { grid-template-columns: 1fr 1fr; }
  .channels, .rules { grid-template-columns: 1fr; gap: 45px; }
  .rules { padding: 48px; }
  .chat-layout { grid-template-columns: 1fr; }
  .progress-panel { display: none; }
}

@media (max-width: 620px) {
  .nav { height: 68px; padding: 0 18px; }
  .nav-link { font-size: 11px; }
  .hero { min-height: auto; padding: 44px 20px 75px; gap: 55px; }
  h1 { font-size: 50px; }
  .hero-actions .button { width: 100%; }
  .hero-demo { min-height: 450px; }
  .demo-window { min-height: 430px; border-radius: 23px; }
  .demo-chat { padding: 21px; }
  .result-card { right: -10px; top: 46px; }
  .publish-card { left: -8px; bottom: 25px; }
  .how { padding: 72px 20px; }
  .steps { grid-template-columns: 1fr; }
  .steps article, .steps article + article { min-height: auto; padding: 28px 0; border-right: 0; border-bottom: 1px solid rgba(255,255,255,.12); }
  .steps h3 { margin: 20px 0 8px; }
  .channels { padding: 75px 20px; }
  .rules { margin: 0 20px 75px; padding: 34px 25px; border-radius: 24px; }
  .rules ul { grid-template-columns: 1fr; }
  footer { align-items: flex-start; flex-direction: column; }
  footer p { text-align: left; }
  dialog { padding: 30px 24px; }
  .chat-header { height: 66px; padding: 0 16px; }
  .trial-meter small { display: none; }
  .chat-layout { height: calc(100dvh - 66px); }
  .messages { padding: 24px 15px; }
  .message { max-width: 88%; }
  .composer { width: calc(100% - 20px); margin-bottom: max(10px, env(safe-area-inset-bottom)); }
  .design-grid { padding: 8px 12px 18px; grid-template-columns: 1fr 1fr; }
  .design-card:last-child { grid-column: 1 / -1; width: calc(50% - 7px); justify-self: center; }
  .chat-actions { width: calc(100% - 20px); }
}

