:root {
  --paper: #f4f0e7;
  --paper-deep: #e8e1d4;
  --ink: #151514;
  --muted: #66635d;
  --line: rgba(21, 21, 20, 0.15);
  --acid: #d8ff57;
  --violet: #7c5cff;
  --coral: #ff7657;
  --blue: #2f62ff;
  --white: #fffdf7;
  --radius: 28px;
  --shadow: 0 28px 80px rgba(38, 33, 25, 0.13);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--ink);
  background: var(--paper);
  font-family: Inter, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: 16px;
  line-height: 1.55;
  text-rendering: optimizeLegibility;
}

a {
  color: inherit;
  text-decoration-thickness: 1px;
  text-underline-offset: 4px;
}

button,
a,
summary {
  -webkit-tap-highlight-color: transparent;
}

.site-header {
  width: min(1180px, calc(100% - 40px));
  min-height: 88px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 32px;
  border-bottom: 1px solid var(--line);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 11px;
  width: fit-content;
  color: var(--ink);
  font-weight: 850;
  letter-spacing: -0.04em;
  text-decoration: none;
}

.brand__mark {
  width: 38px;
  height: 38px;
  display: grid;
  place-items: center;
  border-radius: 11px;
  color: var(--white);
  background: var(--ink);
  font-size: 14px;
  letter-spacing: -0.08em;
}

.site-nav {
  display: flex;
  gap: 28px;
}

.site-nav a,
.site-footer nav a {
  color: var(--muted);
  font-size: 14px;
  font-weight: 650;
  text-decoration: none;
}

.site-nav a:hover,
.site-footer nav a:hover {
  color: var(--ink);
}

.site-header > .button {
  justify-self: end;
}

.section-shell {
  width: min(1180px, calc(100% - 40px));
  margin-inline: auto;
}

.hero {
  min-height: 680px;
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  align-items: center;
  gap: clamp(48px, 8vw, 112px);
  padding-block: 72px 84px;
}

.eyebrow {
  margin: 0 0 18px;
  display: flex;
  align-items: center;
  gap: 9px;
  color: var(--muted);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.status-dot {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: #49a85b;
  box-shadow: 0 0 0 5px rgba(73, 168, 91, 0.14);
}

h1,
h2,
h3,
p {
  margin-top: 0;
}

h1 {
  margin-bottom: 28px;
  font-size: clamp(54px, 7.2vw, 104px);
  line-height: 0.93;
  letter-spacing: -0.075em;
}

h1 em {
  font-family: Georgia, "Times New Roman", serif;
  font-weight: 400;
}

h2 {
  margin-bottom: 20px;
  font-size: clamp(40px, 5vw, 70px);
  line-height: 0.98;
  letter-spacing: -0.06em;
}

h3 {
  margin-bottom: 12px;
  font-size: 26px;
  line-height: 1.1;
  letter-spacing: -0.04em;
}

.hero__lead {
  max-width: 640px;
  margin-bottom: 32px;
  color: #46433e;
  font-size: clamp(18px, 2vw, 22px);
  line-height: 1.45;
}

.hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-bottom: 25px;
}

.button {
  min-height: 52px;
  padding: 14px 20px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  border: 1px solid var(--ink);
  border-radius: 999px;
  color: var(--ink);
  font-size: 14px;
  font-weight: 780;
  line-height: 1;
  text-decoration: none;
  transition: transform 160ms ease, background 160ms ease;
}

.button:hover:not(.button--disabled) {
  transform: translateY(-2px);
}

.button--primary {
  color: var(--white);
  background: var(--ink);
}

.button--ghost {
  border-color: var(--line);
  background: rgba(255, 255, 255, 0.22);
}

.button--compact {
  min-height: 40px;
  padding: 10px 16px;
}

.button--light {
  color: var(--ink);
  border-color: var(--white);
  background: var(--white);
}

.button small {
  opacity: 0.55;
  font-size: 10px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.button--disabled {
  cursor: default;
}

.plain-features {
  margin: 0;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 16px 22px;
  color: var(--muted);
  font-size: 13px;
  list-style: none;
}

.plain-features li::before {
  content: "✓";
  margin-right: 7px;
  color: #367944;
  font-weight: 900;
}

.chat-card {
  position: relative;
  max-width: 500px;
  margin-left: auto;
  overflow: hidden;
  border: 1px solid rgba(21, 21, 20, 0.2);
  border-radius: 34px;
  background: var(--white);
  box-shadow: var(--shadow);
  transform: rotate(1.4deg);
}

.chat-card::before {
  content: "";
  position: absolute;
  inset: -80px -100px auto auto;
  width: 230px;
  height: 230px;
  border-radius: 50%;
  background: rgba(124, 92, 255, 0.13);
  filter: blur(2px);
}

.chat-card__top,
.model-switcher {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: 23px 25px;
}

.chat-card__top {
  border-bottom: 1px solid var(--line);
}

.chat-card__label,
.model-switcher > span {
  display: block;
  color: var(--muted);
  font-size: 11px;
  font-weight: 750;
  letter-spacing: 0.07em;
  text-transform: uppercase;
}

.chat-card__top strong {
  display: block;
  margin-top: 2px;
  letter-spacing: -0.02em;
}

.mode-pill {
  padding: 7px 11px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--paper);
  font-size: 12px;
  font-weight: 700;
}

.chat-card__body {
  position: relative;
  min-height: 350px;
  padding: 32px 25px;
  display: flex;
  flex-direction: column;
  gap: 18px;
  background: linear-gradient(180deg, rgba(244, 240, 231, 0.35), rgba(255, 255, 255, 0));
}

.message {
  max-width: 82%;
  padding: 15px 17px;
  border-radius: 18px;
  font-size: 14px;
  line-height: 1.45;
}

.message--user {
  align-self: flex-end;
  border-bottom-right-radius: 5px;
  color: var(--white);
  background: var(--ink);
}

.message--bot {
  align-self: flex-start;
  border: 1px solid var(--line);
  border-bottom-left-radius: 5px;
  background: var(--white);
}

.message__author {
  display: block;
  margin-bottom: 5px;
  color: var(--violet);
  font-size: 11px;
  font-weight: 850;
  text-transform: uppercase;
}

.attachment-row {
  width: 75%;
  padding: 13px 15px;
  display: flex;
  justify-content: space-between;
  gap: 12px;
  border: 1px dashed rgba(21, 21, 20, 0.25);
  border-radius: 14px;
  color: var(--muted);
  font-size: 11px;
}

.model-switcher {
  align-items: flex-start;
  border-top: 1px solid var(--line);
  background: var(--acid);
}

.model-switcher__list {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 6px;
}

.model-switcher__list b {
  padding: 5px 7px;
  border: 1px solid rgba(21, 21, 20, 0.2);
  border-radius: 7px;
  background: rgba(255, 255, 255, 0.45);
  font-size: 9px;
}

.marquee {
  overflow: hidden;
  border-block: 1px solid var(--ink);
  background: var(--acid);
  white-space: nowrap;
}

.marquee div {
  width: max-content;
  padding: 16px 0;
  font-size: 13px;
  font-weight: 850;
  letter-spacing: 0.12em;
  word-spacing: 22px;
  transform: translateX(-1%);
}

.marquee i {
  color: var(--violet);
  font-style: normal;
}

.section-block {
  padding-block: 120px;
}

.section-heading {
  max-width: 760px;
  margin-bottom: 55px;
}

.section-heading > p:last-child {
  max-width: 640px;
  color: var(--muted);
  font-size: 18px;
}

.mode-grid {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  gap: 18px;
}

.mode-card {
  position: relative;
  min-height: 440px;
  padding: 30px;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  border: 1px solid var(--ink);
  border-radius: var(--radius);
}

.mode-card--text {
  grid-column: span 6;
  background: var(--violet);
}

.mode-card--image {
  grid-column: span 6;
  background: var(--coral);
}

.mode-card--future {
  grid-column: 4 / span 6;
  min-height: 330px;
  background: var(--paper-deep);
}

.mode-card__number {
  align-self: flex-end;
  padding: 5px 9px;
  border: 1px solid rgba(21, 21, 20, 0.35);
  border-radius: 999px;
  font-size: 10px;
  font-weight: 850;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.mode-card__icon {
  margin: auto 0 20px;
  font-size: 52px;
}

.mode-card h3 {
  font-size: 46px;
}

.mode-card p {
  max-width: 510px;
  color: rgba(21, 21, 20, 0.76);
}

.mode-card__footer {
  margin-top: 22px;
  padding-top: 18px;
  display: flex;
  justify-content: space-between;
  border-top: 1px solid rgba(21, 21, 20, 0.28);
  font-size: 12px;
  font-weight: 750;
  text-transform: uppercase;
}

.how {
  width: min(1180px, calc(100% - 40px));
  padding-inline: clamp(26px, 6vw, 80px);
  border-radius: 40px;
  color: var(--white);
  background: var(--ink);
}

.section-heading--light .eyebrow,
.section-heading--light > p:last-child {
  color: rgba(255, 253, 247, 0.58);
}

.steps {
  margin: 0;
  padding: 0;
  list-style: none;
}

.steps li {
  padding: 28px 0;
  display: grid;
  grid-template-columns: 72px 1fr;
  gap: 24px;
  border-top: 1px solid rgba(255, 255, 255, 0.17);
}

.steps__number {
  width: 48px;
  height: 48px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  color: var(--ink);
  background: var(--acid);
  font-weight: 900;
}

.steps h3 {
  margin-bottom: 5px;
}

.steps p {
  margin: 0;
  color: rgba(255, 253, 247, 0.62);
}

.reset-note {
  margin-top: 42px;
  padding: 25px;
  display: flex;
  align-items: center;
  gap: 24px;
  border-radius: 20px;
  color: var(--ink);
  background: var(--acid);
}

.reset-note__command {
  padding: 12px 16px;
  border: 1px solid rgba(21, 21, 20, 0.25);
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.5);
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  font-weight: 850;
}

.reset-note p {
  margin: 0;
}

.input-section {
  display: grid;
  grid-template-columns: 0.85fr 1.15fr;
  gap: clamp(50px, 9vw, 120px);
  align-items: center;
}

.input-section__copy > p:last-child {
  color: var(--muted);
  font-size: 18px;
}

.format-list {
  border-top: 1px solid var(--ink);
}

.format-list div {
  min-height: 78px;
  display: grid;
  grid-template-columns: 46px 1fr auto;
  align-items: center;
  gap: 16px;
  border-bottom: 1px solid var(--ink);
}

.format-list span {
  font-size: 25px;
}

.format-list strong {
  font-size: 21px;
  letter-spacing: -0.025em;
}

.format-list small {
  color: var(--muted);
}

.token-section {
  padding-top: 0;
}

.token-card {
  min-height: 390px;
  padding: clamp(30px, 6vw, 76px);
  display: grid;
  grid-template-columns: 1.25fr 0.75fr;
  align-items: center;
  gap: 40px;
  overflow: hidden;
  border-radius: 40px;
  color: var(--white);
  background: var(--blue);
}

.token-card > div:first-child {
  max-width: 680px;
}

.token-card .eyebrow,
.token-card p {
  color: rgba(255, 253, 247, 0.72);
}

.token-visual {
  aspect-ratio: 1;
  display: grid;
  place-items: center;
  align-content: center;
  border: 1px solid rgba(255, 255, 255, 0.35);
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.08);
  box-shadow: inset 0 0 0 20px rgba(255, 255, 255, 0.05);
  transform: rotate(7deg);
}

.token-visual span {
  font-size: 54px;
}

.token-visual b {
  font-size: 17px;
  letter-spacing: 0.16em;
}

.token-visual small {
  margin-top: 5px;
  color: rgba(255, 255, 255, 0.58);
}

.faq {
  display: grid;
  grid-template-columns: 0.85fr 1.15fr;
  gap: clamp(50px, 9vw, 120px);
}

.faq-list {
  border-top: 1px solid var(--ink);
}

.faq-list details {
  border-bottom: 1px solid var(--ink);
}

.faq-list summary {
  padding: 24px 44px 24px 0;
  position: relative;
  cursor: pointer;
  font-size: 19px;
  font-weight: 750;
  list-style: none;
}

.faq-list summary::-webkit-details-marker {
  display: none;
}

.faq-list summary::after {
  content: "+";
  position: absolute;
  top: 19px;
  right: 0;
  font-size: 28px;
  font-weight: 400;
}

.faq-list details[open] summary::after {
  content: "−";
}

.faq-list p {
  max-width: 640px;
  padding: 0 35px 22px 0;
  color: var(--muted);
}

.final-cta {
  min-height: 420px;
  padding: clamp(35px, 7vw, 90px);
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 40px;
  border-radius: 40px 40px 0 0;
  color: var(--white);
  background: var(--violet);
}

.final-cta .eyebrow {
  color: rgba(255, 255, 255, 0.65);
}

.final-cta h2 {
  margin: 0;
}

.site-footer {
  width: min(1180px, calc(100% - 40px));
  margin: 0 auto;
  padding-block: 55px 75px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 30px 60px;
  border-top: 1px solid var(--line);
}

.site-footer p,
.site-footer small {
  margin: 0;
  color: var(--muted);
  font-size: 13px;
}

.site-footer nav {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 18px;
}

.site-footer small {
  justify-self: end;
}

.legal-page {
  min-height: 100vh;
}

.legal-page--protected {
  -webkit-user-select: none;
  user-select: none;
}

.legal-shell {
  width: min(840px, calc(100% - 40px));
  margin: 0 auto;
  padding: 80px 0 120px;
}

.legal-title {
  padding-bottom: 40px;
  border-bottom: 1px solid var(--ink);
}

.legal-title h1 {
  max-width: 820px;
  margin-bottom: 18px;
  font-size: clamp(42px, 7vw, 76px);
  line-height: 0.98;
}

.legal-title p {
  margin: 0;
  color: var(--muted);
}

.legal-content {
  padding-top: 42px;
}

.legal-content h2 {
  margin: 52px 0 18px;
  font-size: 28px;
  line-height: 1.15;
  letter-spacing: -0.035em;
}

.legal-content h3 {
  margin-top: 30px;
  font-size: 20px;
}

.legal-content p,
.legal-content li {
  color: #3f3d38;
}

.legal-content li + li {
  margin-top: 8px;
}

.legal-note {
  margin: 32px 0;
  padding: 20px 22px;
  border-left: 4px solid var(--violet);
  background: var(--paper-deep);
}

.legal-note p:last-child {
  margin-bottom: 0;
}

.legal-details {
  margin-top: 55px;
  padding: 25px;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.28);
}

.legal-details summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  cursor: pointer;
  list-style: none;
  font-size: 22px;
  font-weight: 700;
  line-height: 1.2;
}

.legal-details summary::-webkit-details-marker {
  display: none;
}

.legal-details summary::after {
  content: "Раскрыть";
  flex: 0 0 auto;
  color: var(--violet);
  font-size: 14px;
  font-weight: 700;
}

.legal-details[open] summary::after {
  content: "Скрыть";
}

.legal-details__content {
  padding-top: 20px;
}

.legal-details__content p:last-child {
  margin-bottom: 0;
}

.simple-page {
  min-height: 100vh;
  display: grid;
  place-items: center;
  padding: 30px;
  text-align: center;
}

.simple-page h1 {
  margin-bottom: 15px;
}

.simple-page p {
  color: var(--muted);
}

@media (max-width: 900px) {
  .site-header {
    grid-template-columns: 1fr auto;
  }

  .site-nav {
    display: none;
  }

  .hero,
  .input-section,
  .faq,
  .token-card {
    grid-template-columns: 1fr;
  }

  .hero {
    padding-top: 55px;
  }

  .chat-card {
    width: min(100%, 560px);
    margin: 0 auto;
    transform: none;
  }

  .mode-card--text,
  .mode-card--image,
  .mode-card--future {
    grid-column: span 12;
  }

  .mode-card--future {
    min-height: 360px;
  }

  .token-visual {
    width: min(300px, 75vw);
    justify-self: center;
  }

  .faq .section-heading {
    margin-bottom: 0;
  }
}

@media (max-width: 620px) {
  .site-header,
  .section-shell,
  .site-footer,
  .how {
    width: min(100% - 24px, 1180px);
  }

  .site-header {
    min-height: 72px;
  }

  .site-header > .button {
    min-height: 36px;
    padding: 9px 12px;
    font-size: 12px;
  }

  .hero {
    min-height: auto;
    gap: 58px;
    padding-block: 55px 70px;
  }

  h1 {
    font-size: clamp(52px, 16vw, 74px);
  }

  h2 {
    font-size: 43px;
  }

  .hero__actions,
  .hero__actions .button {
    width: 100%;
  }

  .chat-card {
    border-radius: 24px;
  }

  .chat-card__body {
    min-height: 320px;
  }

  .model-switcher {
    display: block;
  }

  .model-switcher__list {
    margin-top: 10px;
    justify-content: flex-start;
  }

  .section-block {
    padding-block: 82px;
  }

  .mode-card {
    min-height: 410px;
    padding: 24px;
    border-radius: 24px;
  }

  .how,
  .token-card,
  .final-cta {
    border-radius: 28px;
  }

  .how {
    padding: 70px 24px;
  }

  .steps li {
    grid-template-columns: 48px 1fr;
    gap: 16px;
  }

  .steps__number {
    width: 40px;
    height: 40px;
  }

  .reset-note {
    align-items: flex-start;
    flex-direction: column;
  }

  .format-list div {
    grid-template-columns: 42px 1fr;
  }

  .format-list small {
    grid-column: 2;
    margin-top: -17px;
    padding-bottom: 14px;
  }

  .token-card {
    padding: 40px 24px;
  }

  .final-cta {
    min-height: 500px;
    padding: 35px 24px;
    flex-direction: column;
    align-items: flex-start;
    justify-content: flex-end;
  }

  .final-cta .button {
    width: 100%;
  }

  .site-footer {
    grid-template-columns: 1fr;
  }

  .site-footer nav,
  .site-footer small {
    justify-self: start;
    justify-content: flex-start;
  }

  .legal-shell {
    padding-top: 55px;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    transition-duration: 0.01ms !important;
  }
}
