:root {
  --bg: #171716;
  --bg-soft: #20201f;
  --panel: rgba(255, 255, 255, 0.055);
  --line: rgba(255, 255, 255, 0.12);
  --text: #f7f4ed;
  --muted: #aaa8a2;
  --cyan: #35f2ed;
  --blue: #3434ff;
  --cream: #fff0bd;
  --coral: #ff4865;
  --page: min(1240px, calc(100vw - 64px));
  color-scheme: dark;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  overflow-x: hidden;
  background:
    radial-gradient(circle at 80% -10%, rgba(53, 242, 237, 0.07), transparent 34%),
    var(--bg);
  color: var(--text);
  font-family: "Manrope", Arial, sans-serif;
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

a { color: inherit; }

.skip-link {
  position: fixed;
  top: 12px;
  left: 12px;
  z-index: 100;
  padding: 10px 14px;
  background: var(--text);
  color: var(--bg);
  transform: translateY(-150%);
}

.skip-link:focus { transform: translateY(0); }

.site-header {
  position: absolute;
  z-index: 10;
  top: 0;
  left: 50%;
  display: flex;
  width: var(--page);
  height: 104px;
  align-items: center;
  justify-content: space-between;
  transform: translateX(-50%);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 11px;
  text-decoration: none;
}

.brand-mark, .chat-brand-mark, .message-brand-mark { position: relative; display: block; overflow: hidden; flex: 0 0 auto; }
.brand-mark { width: 21px; height: 27px; }
.brand-mark img, .chat-brand-mark img, .message-brand-mark img { display: block; width: 100%; height: 100%; object-fit: contain; }
.brand-name { color: var(--text); font-size: 25px; font-weight: 700; letter-spacing: -.045em; }
.brand-name em { font-style: italic; }

.button {
  display: inline-flex;
  min-height: 56px;
  align-items: center;
  justify-content: center;
  gap: 7px;
  padding: 0 28px;
  border: 1px solid transparent;
  border-radius: 15px;
  font-family: "Manrope", Arial, sans-serif;
  font-size: 16px;
  font-weight: 600;
  line-height: 1;
  text-decoration: none;
  transition: transform .25s ease, box-shadow .25s ease, background-position .4s ease, border-color .25s ease;
}

.button i {
  display: inline-flex;
  height: 1em;
  align-items: center;
  justify-content: center;
  font-size: 23px;
  font-style: normal;
  font-weight: 400;
  line-height: 1;
  transition: transform .25s ease;
}

.button:hover { transform: translateY(-3px); }
.button:hover i { transform: translateX(4px); }
.button:focus-visible { outline: 3px solid var(--cyan); outline-offset: 4px; }

.button-primary {
  background: linear-gradient(110deg, var(--cream) 0%, #ffae7d 48%, var(--coral) 100%);
  background-position: 0 50%;
  background-size: 150% 100%;
  box-shadow: 0 12px 36px rgba(255, 72, 101, 0.16);
  color: #191918;
}

.button-primary:hover {
  background-position: 100% 50%;
  box-shadow: 0 16px 42px rgba(255, 72, 101, 0.24);
}

.button-secondary {
  border-color: rgba(53, 242, 237, .5);
  background: rgba(7, 82, 92, .12);
  color: var(--text);
}

.button-secondary:hover { background: rgba(53, 242, 237, .1); border-color: var(--cyan); }

.button-header { min-height: 50px; padding-inline: 24px; }

.hero {
  position: relative;
  display: grid;
  min-height: 840px;
  place-items: center;
  overflow: hidden;
  border-bottom: 1px solid var(--line);
}

.hero::before {
  position: absolute;
  inset: 0;
  background-image: linear-gradient(rgba(255,255,255,.025) 1px, transparent 1px), linear-gradient(90deg, rgba(255,255,255,.025) 1px, transparent 1px);
  background-size: 72px 72px;
  content: "";
  mask-image: linear-gradient(to bottom, rgba(0,0,0,.65), transparent 90%);
}

.hero-copy {
  position: relative;
  z-index: 3;
  width: min(900px, calc(100vw - 48px));
  padding-top: 80px;
  text-align: center;
}

.eyebrow, .section-number {
  margin: 0 0 28px;
  color: var(--muted);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: .16em;
  text-transform: uppercase;
}

.eyebrow span {
  display: inline-block;
  width: 7px;
  height: 7px;
  margin-right: 9px;
  border-radius: 50%;
  background: var(--cyan);
  box-shadow: 0 0 14px var(--cyan);
}

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

h1, h2 {
  font-family: "Prata", Georgia, serif;
  font-weight: 400;
  letter-spacing: -.045em;
  line-height: 1.04;
}

h1 { margin-bottom: 30px; font-size: clamp(52px, 7vw, 102px); }
h2 { margin-bottom: 30px; font-size: clamp(44px, 5.2vw, 74px); }
h1 em, h2 em { color: var(--cream); font-style: normal; }

.hero-lead {
  max-width: 670px;
  margin: 0 auto 38px;
  color: #d1cfc9;
  font-size: clamp(18px, 2vw, 22px);
  line-height: 1.55;
}

.hero-copy small, .final-cta small {
  display: block;
  margin-top: 14px;
  color: #85837f;
  font-size: 12px;
}

.hero-illustration {
  position: absolute;
  z-index: 1;
  inset: 0;
  width: 100%;
  height: 100%;
  overflow: hidden;
  opacity: 1;
}

.signal-ring { position: absolute; border: 1px solid rgba(53,242,237,.2); border-radius: 50%; box-shadow: inset 0 0 90px rgba(53,242,237,.025); }
.signal-ring::before, .signal-ring::after { position: absolute; width: 9px; height: 9px; border-radius: 50%; content: ""; }
.signal-ring::before { top: 19%; left: 7%; background: var(--cyan); box-shadow: 0 0 16px var(--cyan); }
.signal-ring::after { right: 13%; bottom: 10%; background: var(--coral); box-shadow: 0 0 16px var(--coral); }
.ring-one { top: 260px; left: -230px; width: 510px; height: 510px; }
.ring-two { top: 120px; right: -190px; width: 430px; height: 430px; border-color: rgba(255,72,101,.2); }

.hero-glow {
  position: absolute;
  z-index: 0;
  width: 420px;
  height: 600px;
  border-radius: 50%;
  opacity: .11;
  filter: blur(90px);
  animation: glow-drift 12s ease-in-out infinite alternate;
}

.hero-glow-cool { left: 4%; bottom: -20%; background: var(--blue); }
.hero-glow-warm { right: 2%; top: -24%; background: var(--coral); animation-delay: -5s; }

.hero-orbit {
  position: absolute;
  z-index: 4;
  bottom: 10px;
  left: 50%;
  display: flex;
  width: var(--page);
  justify-content: space-between;
  transform: translateX(-50%);
  color: #777571;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: .16em;
  text-transform: uppercase;
}

.section-shell { width: var(--page); margin-inline: auto; }

.capabilities { padding-block: 150px; }

.section-intro { max-width: 900px; margin-bottom: 72px; }

.capability-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  border-top: 1px solid var(--line);
  border-left: 1px solid var(--line);
}

.capability-card {
  min-height: 330px;
  padding: 44px;
  border-right: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  background: rgba(255,255,255,.018);
  transition: background .25s ease;
}

.capability-card:hover { background: rgba(255,255,255,.045); }

.capability-feature { background: linear-gradient(145deg, rgba(53,242,237,.11), rgba(52,52,255,.06)); }

.card-icon {
  display: grid;
  width: 58px;
  height: 58px;
  margin-bottom: 62px;
  place-items: center;
  border: 1px solid rgba(53,242,237,.3);
  border-radius: 50%;
  color: var(--cyan);
  font-size: 14px;
  font-weight: 700;
}

.capability-card h3 { margin-bottom: 14px; font-size: 24px; line-height: 1.25; }
.capability-card p { max-width: 430px; margin-bottom: 0; color: var(--muted); }

.conversation {
  display: grid;
  grid-template-columns: .8fr 1.2fr;
  gap: clamp(50px, 8vw, 130px);
  align-items: center;
  padding-block: 130px 160px;
}

.conversation-copy p:last-child { max-width: 440px; color: var(--muted); font-size: 18px; }

.chat-shell {
  overflow: hidden;
  border: 1px solid rgba(255,255,255,.16);
  border-radius: 30px;
  background: #202120;
  box-shadow: 0 42px 100px rgba(0,0,0,.34), 0 0 80px rgba(53,242,237,.045);
}

.chat-head {
  display: grid;
  grid-template-columns: auto 1fr auto;
  gap: 13px;
  align-items: center;
  padding: 20px 24px;
  border-bottom: 1px solid var(--line);
  background: rgba(255,255,255,.025);
}

.chat-avatar { display: grid; width: 42px; height: 42px; place-items: center; border-radius: 50%; background: #171716; }
.chat-brand-mark { width: 25px; height: 34px; }
.chat-head strong, .chat-head span { display: block; }
.chat-head strong { font-size: 14px; }
.chat-head span, .chat-head time { color: #85837f; font-size: 11px; }
.chat-head span i { display: inline-block; width: 6px; height: 6px; margin-right: 5px; border-radius: 50%; background: #63ef8b; }

.chat-body { display: flex; min-height: 640px; flex-direction: column; gap: 12px; padding: 30px 24px 36px; }

.message {
  display: flex;
  max-width: 78%;
  gap: 9px;
  align-items: flex-end;
  opacity: 0;
  transform: translateY(12px);
  transition: opacity .38s ease, transform .38s ease;
}

.message p { margin: 0; padding: 13px 16px; border-radius: 18px; font-size: 14px; line-height: 1.55; }
.message > span { flex: 0 0 auto; font-size: 18px; }
.message-brand-mark { width: 18px; height: 25px; }
.message-client { align-self: flex-end; flex-direction: row-reverse; }
.message-client p { border-bottom-right-radius: 5px; background: linear-gradient(130deg, #e7dfc5, #f4b68f); color: #252421; }
.message-ai p { border-bottom-left-radius: 5px; background: #30312f; color: #eeece6; }
.message.short { max-width: 45%; }
.message-final { max-width: 88%; }

.typing {
  display: flex;
  width: max-content;
  align-items: center;
  gap: 5px;
  padding: 12px 15px;
  border-radius: 16px 16px 16px 5px;
  background: #30312f;
  opacity: 0;
  transition: opacity .25s ease;
}

.typing > span { width: 5px; height: 5px; border-radius: 50%; background: #aaa8a2; animation: typing 1s infinite ease-in-out; }
.typing > span:nth-child(2) { animation-delay: .15s; }
.typing > span:nth-child(3) { animation-delay: .3s; }
.typing b { margin-left: 5px; color: #8f8d89; font-size: 10px; font-weight: 500; }
.chat-shell.is-playing [data-message].is-visible { opacity: 1; transform: translateY(0); }
.chat-shell.is-playing .typing.is-hidden { display: none; }

.channels { padding-block: 130px 170px; }

.channel-list { margin: 0; padding: 0; border-top: 1px solid var(--line); list-style: none; }
.channel-list li { display: grid; grid-template-columns: 84px 1fr; align-items: center; padding: 25px 10px; border-bottom: 1px solid var(--line); transition: padding .25s ease, background .25s ease; }
.channel-list li:hover { padding-inline: 22px; background: rgba(255,255,255,.025); }
.channel-list strong { font-family: "Prata", Georgia, serif; font-size: clamp(30px, 4vw, 54px); font-weight: 400; }
.channel-logo { display: grid; width: 48px; height: 48px; place-items: center; }
.channel-logo svg { width: 42px; height: 42px; overflow: visible; }
.telegram-logo svg circle { fill: #229ed9; }
.telegram-logo svg path { fill: #fff; }
.whatsapp-logo svg circle:first-child { fill: #25d366; stroke: none; }
.whatsapp-logo svg path { fill: none; stroke: #fff; stroke-width: 2.4; stroke-linecap: round; stroke-linejoin: round; }
.avito-logo svg circle:nth-child(1) { fill: #00aaff; }
.avito-logo svg circle:nth-child(2) { fill: #ff6163; }
.avito-logo svg circle:nth-child(3) { fill: #97cf26; }
.avito-logo svg circle:nth-child(4) { fill: #a169f7; }
.cian-logo svg path:first-child { fill: #0468ff; }
.cian-logo svg path:last-child { fill: var(--bg); }

.product { padding-bottom: 170px; }

.product-card {
  position: relative;
  display: grid;
  min-height: 600px;
  grid-template-columns: 1fr 1fr;
  overflow: hidden;
  border: 1px solid rgba(53,242,237,.18);
  border-radius: 34px;
  background: linear-gradient(135deg, #1e2423, #181a1e 60%, #1e1920);
}

.product-copy { position: relative; z-index: 2; padding: clamp(46px, 7vw, 88px); }
.product-copy > p:not(.section-number) { max-width: 490px; font-size: 21px; }
.product-copy .product-detail { margin-bottom: 38px; color: var(--muted); font-size: 16px; }
.product-copy h2 em { color: var(--cyan); }

.product-visual { position: relative; min-height: 500px; overflow: hidden; }
.product-visual > svg { position: absolute; right: -80px; bottom: -110px; width: 520px; fill: none; stroke: rgba(53,242,237,.17); stroke-width: 2; transform: rotate(8deg); }
.estate-card { position: absolute; display: flex; width: 290px; min-height: 170px; flex-direction: column; justify-content: flex-end; padding: 26px; border: 1px solid rgba(255,255,255,.15); border-radius: 22px; backdrop-filter: blur(14px); }
.estate-card-back { top: 100px; right: 48px; background: rgba(52,52,255,.1); color: #9f9ff9; transform: rotate(8deg); }
.estate-card-front { top: 230px; right: 110px; background: rgba(34,38,36,.87); box-shadow: 0 30px 70px rgba(0,0,0,.35); transform: rotate(-4deg); }
.estate-card-front i { display: grid; width: 38px; height: 38px; margin-bottom: 32px; place-items: center; border-radius: 50%; background: var(--cyan); color: #111; font-style: normal; font-weight: 800; }
.estate-card-front strong { margin-bottom: 6px; font-size: 17px; }
.estate-card-front span { color: var(--muted); font-size: 12px; }

.final-cta { position: relative; overflow: hidden; padding-block: 150px 165px; text-align: center; }
.final-cta > div:not(.cta-glow) { position: relative; z-index: 2; }
.final-cta p:not(.section-number) { margin-bottom: 38px; color: var(--muted); font-size: 20px; }
.cta-glow { position: absolute; top: 50%; left: 50%; width: 650px; height: 300px; border-radius: 50%; background: linear-gradient(90deg, rgba(52,52,255,.22), rgba(255,72,101,.18)); filter: blur(90px); transform: translate(-50%, -50%); }

.site-footer {
  display: flex;
  width: var(--page);
  margin-inline: auto;
  padding-block: 28px 38px;
  align-items: center;
  justify-content: space-between;
  border-top: 1px solid rgba(255,255,255,.075);
  color: #6f6d69;
  font-size: 11px;
}

.footer-brand { display: flex; align-items: center; gap: 10px; color: #96938d; }
.footer-legal { display: flex; gap: 18px; }

.reveal { opacity: 0; transform: translateY(24px); transition: opacity .75s ease, transform .75s cubic-bezier(.22,1,.36,1); }
.reveal.is-visible { opacity: 1; transform: none; }

@keyframes glow-drift { to { transform: translate(70px, 30px) scale(1.15); } }
@keyframes typing { 0%,60%,100% { transform: translateY(0); opacity: .4; } 30% { transform: translateY(-3px); opacity: 1; } }

@media (max-width: 860px) {
  :root { --page: min(100% - 36px, 680px); }
  .site-header { height: 86px; }
  .brand-mark { width: 17px; height: 23px; }
  .brand-name { font-size: 21px; }
  .button-header { min-height: 46px; padding-inline: 17px; font-size: 13px; }
  .hero { min-height: 760px; }
  .hero-copy { width: var(--page); padding-top: 52px; }
  .ring-one { top: 320px; left: -250px; }
  .ring-two { top: 145px; right: -230px; }
  .hero-orbit { display: none; }
  .capabilities { padding-block: 105px; }
  .section-intro { margin-bottom: 44px; }
  .capability-grid { grid-template-columns: 1fr; }
  .capability-card { min-height: 270px; padding: 32px; }
  .card-icon { margin-bottom: 42px; }
  .conversation { grid-template-columns: 1fr; padding-block: 90px 120px; }
  .conversation-copy { max-width: 600px; }
  .chat-body { min-height: 610px; padding-inline: 16px; }
  .channels { padding-block: 90px 120px; }
  .channel-list li { grid-template-columns: 68px 1fr; }
  .product { padding-bottom: 110px; }
  .product-card { grid-template-columns: 1fr; }
  .product-visual { min-height: 410px; }
  .estate-card-back { top: 45px; right: 5%; }
  .estate-card-front { top: 150px; right: 18%; }
  .final-cta { padding-block: 110px 125px; }
  .site-footer { align-items: flex-start; gap: 24px; }
  .footer-legal { max-width: 410px; flex-wrap: wrap; justify-content: flex-end; gap: 5px 15px; text-align: right; }
}

@media (max-width: 540px) {
  :root { --page: calc(100% - 28px); }
  .button { width: 100%; min-height: 56px; }
  .button-header { width: auto; min-height: 44px; padding-inline: 14px; }
  .hero { min-height: 730px; }
  h1 { font-size: clamp(43px, 13.4vw, 63px); }
  h2 { font-size: clamp(38px, 11vw, 52px); }
  .hero-copy { padding-top: 68px; }
  .hero-lead { font-size: 17px; }
  .eyebrow { margin-bottom: 22px; font-size: 10px; }
  .ring-one { top: 360px; left: -330px; }
  .ring-two { top: 105px; right: -315px; }
  .capability-card { min-height: 250px; }
  .conversation { gap: 38px; }
  .chat-shell { border-radius: 22px; }
  .chat-body { min-height: 650px; }
  .message { max-width: 90%; }
  .message-final { max-width: 95%; }
  .channel-list strong { font-size: 31px; }
  .channel-logo svg { width: 36px; height: 36px; }
  .product-card { border-radius: 24px; }
  .product-copy { padding: 38px 26px; }
  .product-copy > p:not(.section-number) { font-size: 18px; }
  .product-visual { min-height: 350px; }
  .estate-card { width: 245px; }
  .estate-card-back { right: -3%; }
  .estate-card-front { right: 10%; }
  .site-footer { flex-direction: column; }
  .footer-legal { justify-content: flex-start; text-align: left; }
}

@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, .message, .typing { opacity: 1 !important; transform: none !important; }
  .typing { display: none !important; }
}
