/* YAS landing — vanilla CSS, mobile-first, no frameworks */

:root {
  --bg-dark: #0B1220;
  --bg-dark-2: #111C2E;
  --bg-light: #F6F7F9;
  --surface: #FFFFFF;
  --ink: #0F1A2B;
  --ink-on-dark: #F8FAFC;
  --muted: #5B6B7F;
  --muted-dark: #9AA8BD;
  --accent: #2D6BFF;
  --dot-blue: #125AFE;
  --tg: #229ED9;
  --line: #E4E8EE;
  --line-dark: #22304A;
  --green: #16A34A;
  --radius: 16px;
  --font-head: "Manrope", system-ui, sans-serif;
  --font-body: "Inter", system-ui, sans-serif;
  --container: 1200px;
  --pad-x: clamp(20px, 5vw, 64px);
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.6;
  color: var(--ink);
  background: var(--bg-dark);
  -webkit-font-smoothing: antialiased;
}

img, svg { display: block; max-width: 100%; }

.container {
  width: 100%;
  max-width: var(--container);
  margin-inline: auto;
  padding-inline: var(--pad-x);
}

.visually-hidden {
  position: absolute;
  width: 1px; height: 1px;
  margin: -1px; padding: 0;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap; border: 0;
}

h1, h2, h3 {
  font-family: var(--font-head);
  line-height: 1.15;
  margin: 0;
}

h1 {
  font-size: clamp(2rem, 1.2rem + 3.6vw, 3.75rem);
  font-weight: 800;
  letter-spacing: -0.02em;
  color: var(--ink-on-dark);
}

h2 { font-size: clamp(1.6rem, 1.1rem + 2.2vw, 2.5rem); font-weight: 800; }

h3 { font-size: 1.05rem; font-weight: 700; }

p { margin: 0; }

a { color: inherit; }

/* ============ NAV ============ */

.nav {
  position: sticky;
  top: 0;
  z-index: 50;
  background: color-mix(in srgb, var(--bg-dark) 88%, transparent);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--line-dark);
}

.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  min-height: 68px;
  padding-block: 12px;
}

.brand-logo {
  width: 76px;
  height: 36px;
  color: var(--ink-on-dark);
}

.nav-links {
  display: flex;
  gap: clamp(16px, 3vw, 32px);
}

.nav-links a {
  font-size: 0.9rem;
  color: var(--muted-dark);
  text-decoration: none;
  transition: color .15s;
}

.nav-links a:hover { color: var(--ink-on-dark); }

/* ============ BUTTONS ============ */

.btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 14px 26px;
  border-radius: 14px;
  font-family: var(--font-head);
  font-size: 0.95rem;
  font-weight: 600;
  text-decoration: none;
  white-space: nowrap;
  transition: transform .15s, box-shadow .15s, filter .15s;
}

.btn:hover { transform: translateY(-2px); }
.btn:active { transform: translateY(0); }

.btn-primary { background: var(--accent); color: #fff; }
.btn-primary:hover { box-shadow: 0 8px 24px rgba(45,107,255,.35); }

.btn-telegram {
  background: var(--tg);
  color: #fff;
  box-shadow: 0 8px 28px rgba(34,158,217,.4);
}
.btn-telegram:hover { box-shadow: 0 10px 32px rgba(34,158,217,.55); }

.btn-max { background: var(--surface); color: var(--ink); }
.btn-max:hover { box-shadow: 0 8px 28px rgba(0,0,0,.25); }

.btn-ic { width: 22px; height: 22px; flex: none; }

.btn-nav { padding: 10px 18px; border-radius: 10px; font-size: 0.9rem; }

/* ============ HERO ============ */

.hero {
  background:
    radial-gradient(1200px 500px at 50% -10%, #16294a 0%, transparent 60%),
    var(--bg-dark);
  color: var(--muted-dark);
  padding-block: clamp(56px, 9vw, 110px) clamp(56px, 8vw, 96px);
}

.hero-inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 24px;
}

.badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 16px;
  border-radius: 999px;
  background: #152238;
  border: 1px solid var(--line-dark);
  font-size: 0.82rem;
}

.badge-dot {
  width: 8px; height: 8px;
  border-radius: 50%;
  background: #4ADE80;
  flex: none;
}

.hero .lead {
  max-width: 720px;
  font-size: clamp(1rem, 0.95rem + 0.4vw, 1.125rem);
}

.cta-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 16px;
  margin-top: 8px;
}

.cta-note { font-size: 0.85rem; color: var(--muted-dark); }

/* demo chat card */

.demo-card {
  margin: 40px 0 0;
  width: min(720px, 100%);
  display: flex;
  flex-direction: column;
  gap: 14px;
  padding: 24px;
  border-radius: var(--radius);
  background: var(--surface);
  border: 1px solid var(--line-dark);
  box-shadow: 0 16px 48px rgba(0,0,0,.4);
  text-align: left;
}

.msg p { margin: 0; font-size: 0.92rem; line-height: 1.5; }

.msg-q { display: flex; justify-content: flex-end; }

.msg-q p {
  background: #EEF2F7;
  color: var(--ink);
  border-radius: 12px;
  padding: 12px 16px;
  max-width: 85%;
}

.msg-a {
  background: #EAF1FF;
  border-radius: 12px;
  padding: 14px 16px;
  color: var(--ink);
}

.chips {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 12px;
}

.chip {
  font-size: 0.72rem;
  padding: 5px 10px;
  border-radius: 6px;
  background: #DCE8FF;
  color: #1D4ED8;
  font-weight: 500;
}

/* ============ SECTIONS ============ */

.section { padding-block: clamp(56px, 8vw, 96px); }

.section-light { background: var(--bg-light); }

.section-dark {
  background:
    radial-gradient(900px 400px at 50% 0%, #132441 0%, transparent 70%),
    var(--bg-dark);
  color: var(--muted-dark);
}

.section-head {
  max-width: 760px;
  margin: 0 auto clamp(32px, 5vw, 56px);
  text-align: center;
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.section-light .section-head h2 { color: var(--ink); }
.section-dark  .section-head h2 { color: var(--ink-on-dark); }

.section-sub {
  font-size: 1rem;
  margin-inline: auto;
  max-width: 640px;
}

.section-light .section-sub { color: var(--muted); }
.section-dark  .section-sub { color: var(--muted-dark); }

.eyebrow {
  margin: 0;
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: .18em;
  text-transform: uppercase;
}

.eyebrow-orange { color: #C2410C; }
.eyebrow-blue { color: #1D4ED8; }
.section-dark .eyebrow-blue { color: #60A5FA; }

/* ============ GRIDS & CARDS ============ */

.grid { display: grid; gap: 20px; margin-top: 8px; }

.grid-3   { grid-template-columns: repeat(3, 1fr); }
.grid-4   { grid-template-columns: repeat(4, 1fr); }
.grid-2-1 { grid-template-columns: 2fr 1fr; }

.card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 28px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.card p { color: var(--muted); font-size: 0.92rem; margin: 0; }

.card-tall { gap: 14px; }

.card-ic {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px; height: 40px;
  border-radius: 10px;
  flex: none;
}

.card-ic svg { width: 20px; height: 20px; }

.ic-red    { background: #FEE2E2; color: #DC2626; }
.ic-amber  { background: #FEF3C7; color: #D97706; }
.ic-indigo { background: #E0E7FF; color: #4F46E5; }
.ic-green  { background: #DCFCE7; color: #16A34A; }

.checklist {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.checklist li {
  position: relative;
  padding-left: 28px;
  font-size: 0.92rem;
  color: var(--ink);
}

.checklist li::before {
  content: "";
  position: absolute;
  left: 0; top: 1px;
  width: 18px; height: 18px;
  border-radius: 50%;
  background: #DCFCE7 url('data:image/svg+xml,%3Csvg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" fill="%2316A34A"%3E%3Cpath d="M9 16.2 4.8 12l-1.4 1.4L9 19 21 7l-1.4-1.4z"/%3E%3C/svg%3E') center/14px no-repeat;
}

/* steps */

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

.step {
  position: relative;
  overflow: hidden;
  height: 150px;
  background: var(--bg-dark-2);
  border: 1px solid var(--line-dark);
  border-radius: var(--radius);
  padding: 24px;
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
}

.step-num {
  position: absolute;
  bottom: -3px;
  right: 0;
  width: 158px;
  height: 170px;
  overflow: visible;
  font-family: var(--font-head);
  font-weight: 800;
  font-size: 190px;
  line-height: 1;
  text-align: right;
  color: rgba(96, 165, 250, .15);
  pointer-events: none;
  user-select: none;
}

.step-body {
  margin-top: auto;
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.step h3 { color: var(--ink-on-dark); font-size: 1.02rem; }

.step p { color: var(--muted-dark); font-size: 0.9rem; margin: 0; }

.features-row-b { margin-top: 20px; }

/* ============ FINAL CTA ============ */

.section-cta {
  background:
    linear-gradient(180deg, var(--bg-dark) 0%, #132441 100%);
  text-align: center;
}

.cta-inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 20px;
}

.section-cta h2 {
  color: var(--ink-on-dark);
  max-width: 700px;
}

.audience-note {
  font-size: 0.85rem;
  color: var(--muted-dark);
  margin-top: 4px;
}

/* ============ FOOTER ============ */

.footer {
  background: #080E19;
  border-top: 1px solid var(--line-dark);
}

.footer-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
  padding-block: 24px;
  color: var(--muted-dark);
  font-size: 0.85rem;
}

.footer-logo { width: 64px; height: 30px; color: var(--ink-on-dark); }

/* ============ RESPONSIVE ============ */

@media (max-width: 1024px) {
  .grid-2-1 { grid-template-columns: 1fr; }
  .grid-3   { grid-template-columns: repeat(2, 1fr); }
  .grid-4   { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 900px) {
  .nav-links { display: none; }
}

@media (max-width: 640px) {
  .grid-3, .grid-4 { grid-template-columns: 1fr; }

  .step { height: auto; min-height: 140px; }
  .step-num { height: 150px; font-size: 175px; bottom: -2px; }
  .cta-row { flex-direction: column; }
  .cta-row .btn { width: 100%; justify-content: center; }

  .demo-card { padding: 18px; }
  .msg-q p { max-width: 100%; }

  .btn-nav { padding: 8px 14px; font-size: 0.85rem; }

  .footer-inner {
    flex-direction: column;
    text-align: center;
  }
}

@media (max-width: 400px) {
  .brand-logo { width: 60px; height: 29px; }
  .btn { padding: 12px 20px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .btn { transition: none; }
  .btn:hover { transform: none; }
}

.footer-inner a { color: var(--muted-dark); text-decoration: none; border-bottom: 1px solid var(--line-dark); transition: color .15s, border-color .15s; }
.footer-inner a:hover { color: var(--ink-on-dark); border-color: var(--muted-dark); }
