:root {
  --ink: #171a22;
  --ink-muted: #525866;
  --ink-faint: #8e95a3;
  --indigo: #3429cc;
  --line: #e3e5ea;
  --chip: #fafbfc;
}

* { box-sizing: border-box; }

html { background: #f5f4f2; }

body {
  margin: 0;
  color: var(--ink);
  background: #fff;
  font-family: Inter, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  -webkit-font-smoothing: antialiased;
}

.page-shell { min-height: 100vh; background: #fff; }

.hero {
  background: radial-gradient(94% 50% at 50% 0%, rgba(92, 72, 224, .10), rgba(18, 24, 38, 0) 72%), #fbfbfc;
  padding: 28px 48px 44px;
}

.hero-inner, .content-width { max-width: 1140px; margin-inline: auto; }

.brand-bar { display: flex; align-items: center; gap: 10px; margin-bottom: 56px; }

.brand-icon, .bot-avatar {
  display: block;
  flex: 0 0 auto;
  object-fit: contain;
}

.brand-icon { width: 30px; height: 30px; border-radius: 8px; }
.bot-avatar { width: 18px; height: 18px; border-radius: 50%; }

.product-name { font-size: 16px; font-weight: 600; letter-spacing: -.2px; }
.by-frontier { display: inline-flex; gap: 5px; align-items: baseline; color: var(--ink-faint); font-size: 13px; font-weight: 500; }
.frontier-wordmark { display: inline-block; width: 54px; height: auto; vertical-align: -1px; }

.free-badge { margin-left: auto; padding: 4px 10px; border-radius: 999px; color: #23734e; background: #e5f5eb; font-size: 11.5px; font-weight: 600; letter-spacing: .3px; }

.hero-grid { display: grid; grid-template-columns: minmax(0, 1fr) 380px; gap: 64px; align-items: start; }
.intro h1 { max-width: 610px; margin: 0 0 16px; color: var(--ink); font-size: 46px; font-weight: 550; letter-spacing: -1.6px; line-height: 1.08; text-wrap: pretty; }
.intro > p { max-width: 480px; margin: 0 0 28px; color: var(--ink-muted); font-size: 16.5px; font-weight: 450; line-height: 1.55; text-wrap: pretty; }

.desktop-cta { max-width: 340px; }
.telegram-cta {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 56px;
  padding: 12px 22px;
  border: 0;
  border-radius: 12px;
  color: #fff;
  background: radial-gradient(42% 100% at 50% 100%, #4d53ff, rgba(5, 17, 86, 0) 100%), linear-gradient(180deg, #00047a, #7e5ce6);
  box-shadow: inset 0 0 1.5px rgba(255,255,255,.75);
  font-size: 16px;
  font-weight: 600;
  letter-spacing: -.2px;
  text-align: center;
  text-decoration: none;
  transition: filter .18s ease, transform .18s ease;
}
.telegram-cta:hover { filter: brightness(1.06); transform: translateY(-1px); }
.telegram-cta:focus-visible { outline: 3px solid rgba(52, 41, 204, .32); outline-offset: 3px; }
.cta-note { margin: 10px 0 0; color: var(--ink-muted); font-size: 12.5px; font-weight: 500; text-align: center; }

.steps { list-style: none; padding: 0; }
.desktop-steps { display: flex; flex-wrap: wrap; column-gap: 28px; row-gap: 10px; margin: 36px 0 0; }
.steps li { display: flex; align-items: baseline; gap: 9px; color: var(--ink-muted); font-size: 13.5px; font-weight: 450; }
.steps b { color: var(--indigo); font-size: 12px; font-weight: 650; }

.alert-preview { padding: 12px 12px 10px; border-radius: 14px; background: linear-gradient(165deg, #b3d69a, #8fbe7d); box-shadow: inset 0 0 0 1px rgba(255,255,255,.25), -5px 5px 12px rgba(7,13,25,.08); }
.bot-label { display: flex; align-items: center; gap: 6px; margin: 0 2px 8px; color: #fff; font-size: 11.5px; font-weight: 600; text-shadow: 0 1px 2px rgba(0,0,0,.15); }
.bot-label em { color: rgba(255,255,255,.75); font-size: 10px; font-style: normal; font-weight: 500; }
.message-card { padding: 11px 12px; border-radius: 12px; border-top-left-radius: 4px; color: #1a1f16; background: #fff; }
.message-card strong { display: block; font-size: 13px; font-weight: 650; line-height: 1.45; }
.message-card > span, .message-card p { display: block; margin: 0; font-size: 12.5px; line-height: 1.5; }
.message-card > span { color: #3c4436; line-height: 1.45; }
.message-card p:nth-of-type(1) { margin-top: 7px; }
.message-card p:nth-of-type(3) { margin-top: 7px; }
.message-card time { display: block; margin-top: 2px; color: #9aa392; font-size: 10.5px; text-align: right; }
.message-actions { display: flex; flex-direction: column; gap: 4px; margin-top: 6px; color: #fff; font-size: 13px; font-weight: 600; text-align: center; }
.message-actions > span, .message-actions div span { display: flex; align-items: center; justify-content: center; height: 34px; border-radius: 9px; background: rgba(255,255,255,.24); }
.message-actions .apply { position: relative; }
.message-actions .apply i { position: absolute; right: 8px; top: 6px; font-size: 17px; font-style: normal; }
.message-actions div { display: flex; gap: 4px; }
.message-actions div span { flex: 1; height: 32px; font-size: 12.5px; }
.preview-caption { margin: 8px 0 0; color: var(--ink-faint); font-size: 11px; font-weight: 500; letter-spacing: .3px; text-align: center; }

.mobile-cta, .mobile-steps { display: none; }
.companies { display: flex; flex-wrap: wrap; align-items: baseline; gap: 16px; padding: 20px 48px 0; }
.companies > p { flex: none; margin: 0; color: var(--ink-faint); font-size: 10.5px; font-weight: 600; letter-spacing: .6px; }
.company-pills { display: flex; flex-wrap: wrap; gap: 5px; }
.company-pills span { padding: 4px 9px; border: 1px solid var(--line); border-radius: 7px; color: #4f5663; background: var(--chip); font-size: 11.5px; font-weight: 550; }
.company-pills .more { border-style: dashed; color: var(--ink-faint); background: transparent; }
.footer { display: flex; align-items: center; gap: 6px; margin-top: 20px; padding: 14px 48px 18px; border-top: 1px solid var(--line); color: var(--ink-faint); font-size: 11.5px; font-weight: 450; }

@media (max-width: 760px) {
  html, body { background: #f5f4f2; }
  .page-shell { max-width: 430px; margin: 0 auto; }
  .hero { padding: 20px 20px 24px; }
  .brand-bar { gap: 8px; margin-bottom: 24px; }
  .brand-icon { width: 26px; height: 26px; border-radius: 7px; }
  .product-name { font-size: 14px; }
  .by-frontier { gap: 4px; font-size: 12px; }
  .free-badge { padding: 3px 8px; font-size: 11px; }
  .hero-grid { display: flex; flex-direction: column; gap: 0; }
  .intro h1 { margin-bottom: 10px; font-size: 29px; letter-spacing: -1.1px; line-height: 1.14; }
  .intro > p { margin: 0; font-size: 14.5px; line-height: 1.5; }
  .desktop-cta, .desktop-steps { display: none; }
  .alert-preview-wrap { width: 100%; margin-top: 0; transform: translateY(24px); }
  .alert-preview { box-shadow: inset 0 0 0 1px rgba(255,255,255,.25); }
  .mobile-cta { display: block; padding: 40px 20px 0; }
  .mobile-cta .telegram-cta { min-height: 56px; }
  .mobile-cta .cta-note { font-size: 12px; }
  .content-width { max-width: 430px; }
  .companies { display: block; padding: 20px 20px 0; }
  .companies > p { margin: 0 0 8px; }
  .mobile-steps { display: flex; flex-direction: column; gap: 7px; margin: 0; padding: 18px 20px 0; }
  .mobile-steps li { font-size: 13px; }
  .mobile-steps b { font-size: 11px; }
  .footer { margin: 18px 20px 0; padding: 14px 0 16px; font-size: 11.5px; }
}

@media (max-width: 380px) {
  .intro h1 { font-size: 27px; }
  .product-name { font-size: 13px; }
  .by-frontier { font-size: 11px; }
  .company-pills span { font-size: 11px; }
}
