@import url('https://fonts.googleapis.com/css2?family=DM+Sans:wght@400;450;500;550;600;650;700&display=swap');

:root {
  --bg: #0b171b;
  --panel: #132429;
  --text: #edf1e9;
  --muted: #a9bab9;
  --line: #2b3c40;
  --cyan: #83c6ca;
  --mint: #91c5ad;
  --sage: #bac998;
  --font: 'DM Sans', Arial, sans-serif;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 28px; }
body { margin: 0; background: var(--bg); color: var(--text); font-family: var(--font); -webkit-font-smoothing: antialiased; }
a { color: inherit; text-decoration: none; }
button { font: inherit; }
a, button { -webkit-tap-highlight-color: transparent; }
a:focus-visible, button:focus-visible { outline: 3px solid var(--cyan); outline-offset: 5px; }
.wrap { width: min(1200px, calc(100% - 112px)); margin-inline: auto; }
.skip-link { position: fixed; top: -100px; left: 20px; z-index: 10; padding: 15px; background: var(--cyan); color: var(--bg); }
.skip-link:focus { top: 12px; }
.site-header { height: 108px; display: flex; justify-content: space-between; align-items: center; border-bottom: 1px solid var(--line); }
.brand { display: inline-flex; align-items: center; font-size: 28px; font-weight: 650; letter-spacing: -1.2px; }
.brand img { margin-right: 11px; border-radius: 12px; }
.brand > span { font-weight: 400; }
nav { display: flex; align-items: center; gap: 34px; font-size: 15px; }
.nav-about { color: var(--muted); }
.nav-about:hover { color: var(--text); }
.nav-cta { display: flex; align-items: center; min-height: 46px; gap: 22px; border: 1px solid #4c666a; border-radius: 8px; padding: 12px 17px; }
.nav-cta:hover { background: #1b3035; }
.hero { display: grid; grid-template-columns: 1.08fr 1fr; align-items: center; gap: 68px; padding-block: 82px 86px; }
.eyebrow { display: flex; align-items: center; gap: 10px; color: var(--cyan); font-size: 15px; font-weight: 500; margin: 0 0 30px; }
.eyebrow > span { width: 7px; height: 7px; background: var(--cyan); border-radius: 50%; }
h1 { font-size: clamp(64px, 6.9vw, 98px); line-height: 1.03; font-weight: 500; letter-spacing: -5px; margin: 0 0 28px; }
h1 em { font-style: normal; color: var(--cyan); background: linear-gradient(110deg, #7ec3c9 10%, #a7c7a7 85%); -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent; }
.hero-description { font-size: 19px; color: var(--muted); line-height: 1.65; max-width: 455px; margin: 0 0 32px; }
.button { display: inline-flex; align-items: center; justify-content: space-between; gap: 30px; padding: 18px 23px; min-height: 58px; background: #a9cbb9; color: #102326; border-radius: 9px; font-size: 16px; font-weight: 600; transition: background .2s, transform .2s; }
.button:hover { background: #c0dacb; transform: translateY(-2px); }
.button > span { font-size: 23px; line-height: 1; }
.demo-stage { position: relative; min-width: 0; padding-top: 45px; }
.demo-stage::before { content: ''; position: absolute; inset: 0 -24px -20px; z-index: -1; background: radial-gradient(ellipse, #5c9c921c, transparent 70%); }
.home-outline { position: absolute; width: calc(100% + 72px); left: -36px; top: -38px; z-index: -1; opacity: .45; }
.chat-window { background: linear-gradient(140deg, #1a3035, #132429 55%); border: 1px solid #3b5355; border-radius: 22px; box-shadow: 0 24px 70px #00000026; overflow: hidden; }
.chat-header { display: flex; align-items: center; gap: 13px; padding: 24px; border-bottom: 1px solid #34484b; }
.chat-header img { border-radius: 13px; }
.chat-header strong { display: block; font-size: 18px; font-weight: 550; }
.chat-header div > span { display: block; margin-top: 3px; font-size: 14px; color: var(--muted); }
.chat-spark { margin-left: auto; color: var(--sage); font-size: 27px; }
.scenario-buttons { display: flex; gap: 7px; padding: 22px 24px 8px; }
.scenario { flex: 1; cursor: pointer; padding: 10px 8px; min-height: 44px; border: 1px solid transparent; border-radius: 7px; background: transparent; color: #b0bdbd; font-size: 14px; white-space: nowrap; }
.scenario.active { background: #2b4145; border-color: #4c6567; color: var(--text); }
.scenario:hover { color: var(--text); background: #263b40; }
.conversation { display: flex; flex-direction: column; gap: 17px; padding: 23px 24px 25px; min-height: 286px; }
.message { max-width: 91%; padding: 16px 19px; font-size: 17px; line-height: 1.5; animation: arrive .2s ease-out; }
.user-message { align-self: flex-end; background: #304b50; color: #edf2ee; border-radius: 15px 15px 3px 15px; }
.assistant-message { align-self: flex-start; background: #c9d9c7; color: #192d2b; border-radius: 15px 15px 15px 3px; }
.chat-caption { display: flex; align-items: center; gap: 10px; padding: 18px 24px; border-top: 1px solid #34484b; color: #b0c2bf; font-size: 14px; }
.small-spark { color: var(--sage); font-size: 21px; }
.demo-note { color: #9baead; text-align: center; font-size: 14px; margin: 16px 0 0; }
.features { padding-block: 43px 63px; border-top: 1px solid var(--line); }
.features > h2 { font-size: 38px; font-weight: 500; letter-spacing: -1.5px; margin: 0 0 35px; }
.features > h2 > span { color: var(--muted); }
.feature-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.feature { background: #112126; border: 1px solid #2a3d41; border-radius: 14px; padding: 27px; }
.feature-icon { width: 44px; height: 44px; display: flex; align-items: center; margin-bottom: 22px; }
.feature-icon svg { width: 32px; height: 32px; stroke: currentColor; stroke-width: 1.6; stroke-linejoin: round; stroke-linecap: round; }
.cyan { color: var(--cyan); }
.mint { color: var(--mint); }
.sage { color: var(--sage); }
.feature h3 { font-size: 23px; letter-spacing: -.6px; font-weight: 500; margin: 0 0 12px; }
.feature p { font-size: 17px; color: var(--muted); line-height: 1.65; margin: 0; }
.care { display: flex; align-items: center; gap: 28px; padding: 35px 36px; background: linear-gradient(110deg, #203639, #253733); border: 1px solid #40564f; border-radius: 14px; }
.care-symbol { font-size: 51px; color: #b6c7a0; }
.care h2 { font-size: 29px; font-weight: 500; letter-spacing: -.9px; margin: 0 0 10px; }
.care p { font-size: 17px; color: #b7c7c0; line-height: 1.65; margin: 0; }
.care-link { display: flex; align-items: center; justify-content: center; width: 48px; height: 48px; margin-left: auto; border-radius: 50%; border: 1px solid #5b7467; flex-shrink: 0; font-size: 26px; color: var(--sage); }
.care-link:hover { background: #354c42; }
.site-footer { display: flex; align-items: center; justify-content: space-between; gap: 20px; padding-block: 39px; font-size: 14px; color: #a7b7b5; }
.site-footer .brand { font-size: 23px; color: var(--text); }
@keyframes arrive { from { opacity: 0; transform: translateY(4px); } to { opacity: 1; transform: translateY(0); } }
@media (max-width: 1100px) {
  .wrap { width: calc(100% - 72px); }
  .hero { gap: 42px; padding-block: 70px; }
  h1 { font-size: 78px; letter-spacing: -4px; }
  .hero-description { font-size: 18px; }
  .desktop-break { display: none; }
  .chat-header { padding: 20px; }
  .scenario-buttons { padding-inline: 16px; }
  .conversation { padding-inline: 18px; min-height: 300px; }
  .message { padding: 14px 16px; font-size: 16px; }
  .feature { padding: 23px; }
  .feature h3 { font-size: 21px; }
}
@media (max-width: 800px) {
  .wrap { width: calc(100% - 44px); }
  .site-header { height: 84px; }
  .brand { font-size: 24px; }
  .brand img { width: 37px; height: 37px; border-radius: 10px; margin-right: 8px; }
  .nav-about { display: none; }
  .nav-cta { font-size: 14px; gap: 10px; padding: 11px 13px; }
  .hero { grid-template-columns: 1fr; padding-block: 49px 37px; gap: 48px; }
  .eyebrow { font-size: 14px; margin-bottom: 23px; }
  h1 { font-size: clamp(63px, 12.5vw, 90px); letter-spacing: -3.5px; line-height: 1.03; margin-bottom: 23px; }
  .hero-description { font-size: 19px; max-width: 520px; margin-bottom: 25px; }
  .button { padding: 17px 20px; gap: 25px; }
  .demo-stage { width: 100%; max-width: 480px; justify-self: center; padding: 10px 0 0; }
  .home-outline { width: 100%; left: 0; top: -20px; opacity: .28; }
  .demo-stage::before { inset: -20px 0; }
  .chat-header { padding: 21px; }
  .scenario-buttons { padding: 18px 19px 6px; }
  .conversation { min-height: 284px; padding: 19px 20px 22px; }
  .message { font-size: 17px; padding: 14px 17px; }
  .chat-caption { padding: 16px 20px; }
  .demo-note { margin-top: 13px; }
  .features { padding-block: 35px 30px; }
  .features > h2 { font-size: 30px; letter-spacing: -1px; margin-bottom: 24px; }
  .feature-grid { grid-template-columns: 1fr; gap: 12px; }
  .feature { display: grid; grid-template-columns: 37px 1fr; column-gap: 16px; padding: 23px 21px; }
  .feature-icon { grid-row: 1 / 3; margin: 0; width: 34px; height: 34px; }
  .feature h3 { font-size: 23px; margin-bottom: 8px; }
  .feature p { grid-column: 2; font-size: 17px; line-height: 1.6; }
  .care { padding: 25px; gap: 16px; align-items: flex-start; }
  .care-symbol { font-size: 34px; line-height: 1; padding-top: 3px; }
  .care h2 { font-size: 25px; line-height: 1.2; }
  .care p { font-size: 17px; }
  .care-link { display: none; }
  .site-footer { padding-block: 28px; flex-wrap: wrap; gap: 16px; }
  .site-footer > span { display: none; }
}
@media (max-width: 370px) {
  .wrap { width: calc(100% - 32px); }
  .brand { font-size: 22px; }
  .brand img { width: 32px; height: 32px; margin-right: 6px; }
  .nav-cta { font-size: 13px; padding-inline: 10px; }
  .nav-cta > span { display: none; }
  h1 { font-size: 61px; letter-spacing: -3.5px; }
  .hero-description { font-size: 18px; }
  .button { font-size: 15px; gap: 15px; padding-inline: 17px; }
  .chat-header { padding-inline: 17px; }
  .chat-header img { width: 42px; height: 42px; }
  .chat-header strong { font-size: 17px; }
  .scenario-buttons { padding-inline: 13px; }
  .conversation { padding-inline: 14px; }
  .message { font-size: 16px; padding: 14px; }
  .features > h2 { font-size: 28px; }
  .feature { padding: 20px 16px; grid-template-columns: 28px 1fr; column-gap: 12px; }
  .feature-icon svg { width: 28px; height: 28px; }
  .feature h3 { font-size: 21px; }
  .care { padding: 23px 18px; gap: 12px; }
  .care-symbol { font-size: 28px; }
  .care h2 { font-size: 23px; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
}

[hidden] { display: none !important; }
button.nav-cta { font-family: inherit; background: transparent; color: var(--text); cursor: pointer; }
button.nav-cta:hover { background: #1b3035; }
.contact-cta { margin-left: auto; flex-shrink: 0; border: 0; cursor: pointer; }
dialog { width: min(520px, calc(100% - 32px)); max-height: calc(100dvh - 40px); padding: 33px; color: var(--text); background: #13262b; border: 1px solid #496365; border-radius: 20px; overflow-y: auto; }
dialog::backdrop { background: #040d11c9; backdrop-filter: blur(5px); }
.dialog-close { position: absolute; right: 13px; top: 11px; width: 44px; height: 44px; background: transparent; border: 0; color: var(--muted); font-size: 30px; cursor: pointer; }
dialog .eyebrow { margin-bottom: 13px; }
dialog h2 { font-size: 32px; font-weight: 500; line-height: 1.15; letter-spacing: -1px; margin: 0 0 24px; padding-right: 10px; }
#contact-form label { display: block; font-size: 16px; margin: 17px 0 8px; }
#contact-form input:not(.honeypot), #contact-form textarea { width: 100%; min-height: 46px; border: 1px solid #50676a; background: #0d1c20; color: var(--text); border-radius: 7px; padding: 12px; font: 17px var(--font); }
#contact-form input:focus, #contact-form textarea:focus { outline: 2px solid var(--cyan); outline-offset: 2px; }
#contact-form textarea { resize: vertical; }
.honeypot { display: none; }
.send-button { border: 0; width: 100%; margin-top: 21px; cursor: pointer; }
.send-button:disabled { cursor: wait; opacity: .65; transform: none; }
#contact-status { font-size: 16px; line-height: 1.5; margin: 14px 0 0; }
#contact-status:empty { display: none; }
#contact-status[data-state="error"] { color: #ecc0ae; }
#contact-status[data-state="success"] { color: var(--mint); }
.contact-note { color: var(--muted); font-size: 14px; line-height: 1.5; margin: 15px 0 0; }
.contact-note a { text-decoration: underline; text-underline-offset: 3px; }
@media (max-width: 800px) {
  .care { flex-wrap: wrap; }
  .care > div:nth-child(2) { flex: 1; }
  .contact-cta { margin: 8px 0 0 50px; }
  dialog { padding: 27px 23px; }
  dialog h2 { font-size: 29px; }
}

.hero-description strong { color: var(--text); font-weight: 500; }

/* Telegram conversation preview. Scenario selectors remain outside the chat. */
.demo-stage > .scenario-buttons { padding: 0 0 14px; gap: 8px; }
.chat-window { background: #14232d; border-color: #3b505c; }
.chat-header { background: #1d303c; border-bottom-color: #2e4654; gap: 12px; }
.chat-header img { border-radius: 50%; }
.telegram-back { color: #88bdcf; font-size: 42px; font-weight: 400; line-height: 1; margin-right: 2px; }
.telegram-menu { margin-left: auto; color: #88bdcf; font-size: 29px; }
.chat-header div > span { color: #a6b8c2; }
.conversation { background: radial-gradient(ellipse at top right, #233f472e, transparent 75%); gap: 15px; min-height: 315px; }
.user-message { background: #335b70; color: #eff5f7; border-radius: 14px 14px 3px 14px; }
.user-message::after { content: '✓✓'; display: inline-block; margin-left: 9px; color: #a7d5e8; font-size: 12px; letter-spacing: -4px; padding-right: 4px; }
.assistant-message { background: #263d4b; color: #eff3f3; border-radius: 14px 14px 14px 3px; }
.telegram-input { display: flex; align-items: center; gap: 14px; padding: 18px 23px; border-top: 1px solid #2e4654; background: #1d303c; color: #a0b5c2; font-size: 17px; }
.telegram-input > span { flex: 1; }
.telegram-input svg { width: 23px; height: 23px; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }
.demo-note { display: flex; justify-content: center; align-items: center; gap: 8px; }
.demo-note svg { width: 18px; height: 18px; color: #86b9cc; }
@media (max-width: 800px) { .conversation { min-height: 305px; } }

.arrow-icon { display: block; width: 21px; height: 21px; flex-shrink: 0; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.nav-cta .arrow-icon { width: 17px; height: 17px; }
.contact-toast { position: fixed; z-index: 20; right: max(22px, env(safe-area-inset-right)); bottom: max(22px, env(safe-area-inset-bottom)); display: flex; align-items: center; gap: 18px; max-width: calc(100% - 44px); padding: 15px 14px 15px 20px; border: 1px solid #9dbdab; border-radius: 12px; background: #c5d9ca; color: #132a25; box-shadow: 0 12px 40px #0006; font-size: 17px; line-height: 1.5; }
.contact-toast button { width: 40px; height: 40px; padding: 0; border: 0; border-radius: 6px; flex-shrink: 0; background: transparent; color: inherit; font: 27px var(--font); cursor: pointer; }
.contact-toast button:hover { background: #adc9b8; }
@media (max-width: 370px) { .nav-cta .arrow-icon { display: none; } }

/* Compact opening: explain the product before the first scroll on phones. */
h1 { font-size: clamp(56px, 5.5vw, 79px); letter-spacing: -3.8px; }
.hero { padding-block: 55px 58px; }
.hero-description { margin-bottom: 19px; }
.hero-highlights { display: grid; gap: 10px; padding: 0; margin: 0 0 27px; list-style: none; font-size: 18px; line-height: 1.45; color: #c0d0ca; }
.hero-highlights li { display: flex; align-items: center; gap: 11px; }
.hero-highlights li::before { content: ''; width: 6px; height: 6px; border-radius: 50%; background: var(--mint); flex-shrink: 0; }
@media (max-width: 1100px) and (min-width: 801px) {
  h1 { font-size: 60px; letter-spacing: -3px; }
  .hero-highlights { font-size: 17px; }
}
@media (max-width: 800px) {
  .site-header { height: 76px; }
  .hero { padding-block: 29px 30px; gap: 29px; }
  .eyebrow { margin-bottom: 18px; }
  h1 { font-size: clamp(44px, 11.8vw, 65px); letter-spacing: -2.5px; line-height: 1.08; margin-bottom: 19px; }
  .hero-description { font-size: 18px; line-height: 1.55; margin-bottom: 18px; }
  .hero-highlights { gap: 8px; font-size: 17px; margin-bottom: 22px; }
  .hero .button { min-height: 50px; padding: 14px 19px; }
  .demo-stage { padding-top: 5px; }
}
@media (max-width: 370px) {
  h1 { font-size: 42px; letter-spacing: -2px; }
  .hero-highlights { font-size: 16px; }
  .hero-description { font-size: 17px; }
}

/* Keep the contact sheet inside the visible screen as the mobile keyboard moves. */
html.contact-open { overflow: hidden; scroll-behavior: auto; }
html.contact-open body { position: fixed; top: var(--contact-page-top); left: 0; width: 100%; overflow: hidden; }
#contact-dialog { padding: 0; overflow: hidden; max-height: min(760px, calc(var(--contact-height, 100dvh) - 32px)); }
#contact-dialog[open] { display: flex; flex-direction: column; }
.contact-dialog-header { display: flex; align-items: flex-start; gap: 12px; flex-shrink: 0; padding: 27px 25px 16px; background: #13262b; }
.contact-dialog-header > div { flex: 1; min-width: 0; }
.contact-dialog-header .eyebrow { margin: 0 0 10px; }
.contact-dialog-header h2 { margin: 0; padding: 0; font-size: 28px; }
.contact-dialog-header .dialog-close { position: static; width: 44px; height: 44px; flex-shrink: 0; margin: -7px -9px 0 0; }
.contact-dialog-body { min-height: 0; flex: 1 1 auto; overflow-y: auto; overscroll-behavior-y: contain; -webkit-overflow-scrolling: touch; padding: 0 25px 25px; }
#contact-form { margin: 0; }
@media (max-width: 800px) {
  #contact-dialog { position: fixed; inset: auto; top: var(--contact-top, 0px); left: var(--contact-left, 0px); width: var(--contact-width, 100vw); height: var(--contact-height, 100dvh); max-width: none; max-height: none; margin: 0; border: 0; border-radius: 0; }
  .contact-dialog-header { padding: max(19px, env(safe-area-inset-top)) 22px 16px; border-bottom: 1px solid #32494d; }
  .contact-dialog-header h2 { font-size: 25px; line-height: 1.15; }
  .contact-dialog-header .eyebrow { font-size: 14px; margin-bottom: 8px; }
  .contact-dialog-body { padding: 0 22px max(22px, env(safe-area-inset-bottom)); }
  #contact-form textarea { resize: none; }
}
