/* Design reference: assets/design/concept.png.
   White canvas, black editorial type, quiet mint states, one Telegram phone.
   Live command entry intentionally replaces the concept's decorative message bar. */
:root {
  color-scheme: light;
  --page: #fff;
  --ink: #15191a;
  --muted: #7c898f;
  --line: #e0e5e7;
  --chat: #eaf0f3;
  --green: #37bb78;
  --mint: #b6e5c8;
  --blue: #1787f5;
  font-family: Arial, "DejaVu Sans", sans-serif;
  color: var(--ink);
  background: var(--page);
}
* { box-sizing: border-box; }
body { margin: 0; }
button, input, a { -webkit-tap-highlight-color: transparent; }
button, input { font: inherit; }
button { cursor: pointer; color: inherit; }
button:focus-visible, a:focus-visible, input:focus-visible { outline: 3px solid #269a62; outline-offset: 5px; }
button:disabled { cursor: progress; opacity: .65; }
button { transition: background .16s, border-color .16s, transform .16s; }
a { color: inherit; }
[hidden] { display: none !important; }
.masthead {
  height: 76px; padding: 0 4%; display: flex; align-items: center;
  justify-content: space-between; border-bottom: 1px solid var(--line);
}
.wordmark { display: inline-flex; align-items: center; gap: 9px; text-decoration: none; font-size: 34px; font-weight: 800; letter-spacing: -1.7px; }
.header-label, .header-status, .telegram-link { font-size: 16px; letter-spacing: -.2px; }
.telegram-link { text-decoration: none; border-bottom: 1px solid #b8cac0; padding: 6px 0; }
.showcase { max-width: 1480px; margin: 0 auto; padding: 24px 11% 28px 4%; display: grid; grid-template-columns: minmax(0, 1fr) 440px; gap: min(9vw, 128px); min-height: calc(100svh - 76px); }
.intro { display: flex; flex-direction: column; justify-content: space-between; padding-top: 148px; min-width: 0; }
.intro-main { width: 100%; }
h1 { font-size: clamp(58px, 7.3vw, 105px); line-height: 1.025; font-weight: 800; letter-spacing: -.057em; margin: 0 0 30px; }
.lead { max-width: 660px; font-size: clamp(20px, 1.85vw, 28px); line-height: 1.4; letter-spacing: -.5px; margin: 0; }
.palette { display: flex; justify-content: space-between; gap: 15px; margin: 54px 0 42px; }
.palette-option { border: none; background: none; padding: 0; min-width: 0; flex: 1; font-size: 14px; font-weight: 600; display: flex; flex-direction: column; align-items: center; gap: 13px; }
.swatch { display: block; width: 100%; aspect-ratio: 1.5; border: 7px solid white; border-radius: 10px; outline: 1px solid transparent; background-clip: padding-box; transition: outline-color .2s, transform .2s; }
.palette-option[aria-pressed="true"] .swatch { outline: 2px solid #58c78a; }
.palette-option:hover .swatch { transform: translateY(-3px); }
.green { background-color: #0c3d2d; }
.blue { background-color: #0759ae; }
.red { background-color: #b32a31; }
.color { background-image: linear-gradient(120deg, #8e71ef, #c3a8cb 48%, #72cdd2); }
.black { background-color: #1c1f22; }
.scenario-buttons { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.outline-button { background: white; border: 1px solid #62696d; border-radius: 8px; padding: 20px 12px; font-weight: 600; font-size: 18px; line-height: 1.2; }
.outline-button:hover { background: #f3f8f5; border-color: #269a62; }
.disclaimer { margin: 50px 0 5px; border-top: 1px solid #cbd1d4; padding-top: 17px; font-size: 13px; color: #5b6266; line-height: 1.6; }
.phone-stage { display: flex; align-items: center; justify-content: center; }
.phone { border: 6px solid #202628; border-radius: 58px; padding: 7px; background: #020405; width: 440px; height: 860px; display: flex; flex-direction: column; overflow: hidden; box-shadow: 0 0 0 2px #aab3b8, 0 14px 25px #12212b18; }
.phone-status { flex: 0 0 45px; background: #f4f7f9; border-radius: 42px 42px 0 0; display: flex; align-items: center; justify-content: space-between; padding: 10px 30px 0; position: relative; font-size: 14px; font-weight: 700; }
.notch { position: absolute; top: 0; left: 50%; transform: translateX(-50%); width: 155px; height: 27px; background: #020405; border-radius: 0 0 17px 17px; }
.notch::after { content: ""; position: absolute; width: 40px; height: 5px; background: #1c2023; border-radius: 5px; left: 57px; top: 11px; }
.signal { font-size: 11px; }
.chat-header { display: flex; align-items: center; gap: 12px; padding: 12px 13px 15px; background: #f4f7f9; }
.icon-button { width: 27px; height: 32px; padding: 0; border: 0; background: transparent; display: grid; place-items: center; color: var(--blue); }
.avatar { width: 44px; height: 44px; display: grid; place-items: center; border-radius: 50%; background: #2ca767; color: #fff; font-size: 25px; }
.chat-name { display: flex; flex-direction: column; gap: 2px; flex: 1; }
.chat-name strong { font-size: 18px; font-weight: 700; }
.chat-name span { font-size: 13px; color: var(--muted); }
.chat-content { background: var(--chat); flex: 1; min-height: 0; overflow-y: auto; scrollbar-width: thin; scrollbar-color: #b7c8cd transparent; padding: 17px 14px 15px; scroll-behavior: smooth; }
.message { background: #fff; border-radius: 18px 18px 18px 4px; padding: 13px; overflow-wrap: anywhere; }
.card-image { display: block; width: 100%; aspect-ratio: 1.6; object-fit: cover; border-radius: 12px; background: #173c2e; margin-bottom: 16px; cursor: zoom-in; }
.message h2 { margin: 2px 0 9px; font-size: 18px; line-height: 1.3; font-weight: 700; letter-spacing: -.25px; }
.message p { white-space: pre-line; margin: 0; font-size: 16px; line-height: 1.45; }
.progress-track { margin-top: 18px; width: 100%; height: 12px; border: 0; border-radius: 9px; background: #e1e8eb; overflow: hidden; appearance: none; display: block; }
.progress-track::-webkit-progress-bar { background: #e1e8eb; border-radius: 9px; }
.progress-track::-webkit-progress-value { background: var(--green); border-radius: 9px; }
.progress-track::-moz-progress-bar { background: var(--green); border-radius: 9px; }
.progress-label { display: block; font-size: 12px; line-height: 1.4; margin-top: 8px; }
.message-time { display: block; text-align: right; color: #95a1ab; font-size: 11px; margin-top: 10px; }
.inline-keyboard { display: grid; gap: 7px; margin-top: 12px; }
.keyboard-row { display: flex; gap: 7px; }
.keyboard-button { border: 0; background: #ffffffed; padding: 14px 8px; min-height: 48px; border-radius: 12px; font-size: 13px; font-weight: 600; line-height: 1.3; flex: 1; display: flex; align-items: center; justify-content: center; gap: 8px; }
.keyboard-button:hover { background: #e1f4e8; }
.key-icon { width: 21px; height: 21px; flex: 0 0 auto; color: #009c53; }
.demo-note { text-align: center; color: #8999a2; font-size: 12px; margin: 19px 0 0; }
.notice { background: #d9eee2; color: #20513b; border-radius: 12px; font-size: 13px; line-height: 1.5; padding: 12px; margin-bottom: 12px; }
.notice.error { color: #892b29; background: #f9e3e1; }
.command-bar { display: flex; align-items: center; gap: 7px; background: #f4f7f9; padding: 12px 14px 8px; }
.command-bar input { width: 100%; min-width: 0; border: 1px solid #dde4e8; background: #fff; border-radius: 24px; padding: 11px 13px; font-size: 13px; color: #34414b; }
.command-bar input::placeholder { color: #8a98a5; }
.send-button { width: 34px; height: 34px; flex: 0 0 auto; padding: 4px; display: grid; place-items: center; border: 0; background: transparent; color: var(--blue); }
.home-indicator { height: 22px; background: #f4f7f9; border-radius: 0 0 39px 39px; position: relative; }
.home-indicator::after { content: ""; position: absolute; top: 6px; left: 50%; transform: translateX(-50%); width: 122px; height: 4px; border-radius: 10px; background: #101516; }
.loading { padding: 80px 18px; text-align: center; color: #60736c; }
.gallery-card { display: block; width: 100%; border-radius: 9px; margin: 12px 0; }
.card-dialog { max-width: min(1100px, 96vw); border: 0; padding: 15px; border-radius: 16px; background: #fff; }
.card-dialog::backdrop { background: #081018ba; }
.card-dialog img { display: block; width: 100%; max-height: 80vh; object-fit: contain; border-radius: 10px; }
.dialog-close { display: block; margin: 13px auto 0; border: 0; background: #e4f0e9; border-radius: 8px; padding: 11px 30px; font-size: 15px; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0; }
@media (min-width: 1600px) { .showcase { gap: 140px; } }
@media (max-width: 1150px) {
  .showcase { grid-template-columns: minmax(0, 1fr) 370px; gap: 6%; padding: 28px 4%; }
  .phone { width: 370px; height: 780px; border-radius: 52px; }
  .intro { padding-top: 110px; }
  h1 { font-size: 72px; }
  .lead { font-size: 22px; }
  .palette { gap: 8px; }
  .palette-option { font-size: 12px; }
  .outline-button { font-size: 15px; }
  .chat-name strong { font-size: 16px; }
  .keyboard-button { font-size: 12px; gap: 5px; }
  .key-icon { width: 18px; }
  .scenario-buttons { gap: 12px; }
}
@media (max-width: 850px) {
  .masthead { height: 66px; padding: 0 6%; }
  .wordmark { font-size: 28px; }
  .header-label { display: none; }
  .header-status, .telegram-link { font-size: 13px; }
  .showcase { display: flex; flex-direction: column; padding: 0 6% 35px; gap: 30px; }
  .intro { padding-top: 42px; }
  h1 { font-size: clamp(50px, 9vw, 76px); line-height: 1.04; margin-bottom: 20px; }
  .lead { font-size: 19px; max-width: 600px; line-height: 1.45; }
  .palette { margin: 29px 0 25px; gap: 12px; max-width: 500px; }
  .swatch { border-width: 5px; border-radius: 8px; }
  .palette-option { font-size: 12px; gap: 10px; }
  .scenario-buttons { max-width: 500px; }
  .outline-button { font-size: 14px; padding: 16px 9px; }
  .disclaimer { margin: 24px 0 0; padding-top: 13px; font-size: 11px; }
  .phone { width: min(420px, 100%); height: 790px; }
  .phone-stage { margin-top: 4px; }
  .chat-content { scroll-behavior: auto; }
}
@media (max-width: 390px) {
  .showcase { padding-left: 4%; padding-right: 4%; }
  h1 { font-size: 49px; }
  .lead { font-size: 17px; }
  .phone { padding: 5px; border-width: 4px; height: 760px; }
  .chat-content { padding: 16px 10px; }
  .message p { font-size: 14px; }
  .message h2 { font-size: 16px; }
  .palette { gap: 7px; }
}
@media (prefers-reduced-motion: reduce) { *, *::before, *::after { transition: none !important; scroll-behavior: auto !important; } }
