:root {
  --bg: #f7faff;
  --text: #0f172a;
  --muted: #475569;
  --blue: #3b82f6;
  --violet: #8b5cf6;
  --card: #ffffffee;
  --line: #dbe7fb;
  --r: 16px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: "Segoe UI", "Avenir Next", Arial, sans-serif;
  color: var(--text);
  background: var(--bg);
}

a { color: inherit; text-decoration: none; }

.container {
  width: min(1120px, 92%);
  margin: 0 auto;
}

.section { padding: 72px 0; position: relative; }
h1 { font-size: clamp(2rem, 5vw, 3.6rem); line-height: 1.08; margin: 0 0 16px; }
h2 { font-size: clamp(1.55rem, 3.4vw, 2.4rem); margin: 0 0 18px; }
h3 { margin: 0 0 10px; font-size: 1.2rem; }
.lead { color: var(--muted); line-height: 1.6; margin: 0 0 24px; }

.bg-orb {
  position: fixed;
  width: 280px;
  height: 280px;
  border-radius: 50%;
  filter: blur(50px);
  z-index: -1;
  pointer-events: none;
}
.orb-a { background: #6ea8ff44; top: 5%; left: -90px; }
.orb-b { background: #a78bfa55; top: 20%; right: -80px; }

.header {
  position: sticky;
  top: 0;
  z-index: 20;
  backdrop-filter: blur(12px);
  background: #ffffffc7;
  border-bottom: 1px solid #ebf0fb;
}
.nav { min-height: 68px; display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.logo { font-weight: 700; }
.menu { display: none; gap: 18px; color: #334155; }

.badge {
  display: inline-block;
  font-size: .75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .12em;
  padding: 8px 12px;
  border: 1px solid #d9e6ff;
  border-radius: 999px;
  background: #ebf3ff;
  color: #2563eb;
  margin-bottom: 14px;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  height: 44px;
  border-radius: var(--r);
  border: 1px solid transparent;
  background: linear-gradient(135deg, var(--blue), #2563eb);
  color: #fff;
  padding: 0 18px;
  font-weight: 600;
  cursor: pointer;
  transition: transform .25s ease, box-shadow .25s ease, background .25s ease;
  box-shadow: 0 12px 24px -16px #3b82f6cc;
}
.btn:hover { transform: translateY(-2px); }
.btn:active { transform: translateY(0); }
.btn-sm { height: 38px; font-size: .9rem; padding: 0 14px; }
.btn-ghost {
  background: #fff;
  color: #334155;
  border-color: #dbe7fb;
  box-shadow: none;
}

.actions { display: flex; flex-wrap: wrap; gap: 10px; }

.hero-grid {
  display: grid;
  gap: 24px;
  align-items: center;
}
.mockup {
  border: 1px solid var(--line);
  border-radius: calc(var(--r) + 8px);
  padding: 12px;
  background: linear-gradient(145deg, #fff, #eef4ff);
  box-shadow: 0 30px 80px -60px #3b82f688;
}
.mock {
  background: #fff;
  border: 1px solid #e6edfb;
  border-radius: var(--r);
  padding: 14px;
}
.mock + .mock { margin-top: 10px; }
.mock strong { display: block; margin-bottom: 10px; font-size: .95rem; }
.mock.web span {
  display: block;
  height: 10px;
  border-radius: 999px;
  background: #eef2ff;
  margin-bottom: 8px;
}
.mock.web .grad { height: 82px; border-radius: 12px; background: linear-gradient(135deg, #3b82f6, #8b5cf6); }
.mock.chat p {
  width: fit-content;
  max-width: 88%;
  margin: 0 0 6px;
  font-size: .9rem;
  border-radius: 12px;
  padding: 8px 10px;
  background: #eef2ff;
  color: #334155;
}
.mock.chat .right { margin-left: auto; background: #3b82f6; color: #fff; }

.grid { display: grid; gap: 12px; }
.card {
  background: var(--card);
  border: 1px solid #e2eaf9;
  border-radius: var(--r);
  padding: 16px;
  box-shadow: 0 20px 40px -34px #0f172a44;
  transition: transform .28s ease, box-shadow .28s ease, border-color .28s ease;
}
.card:hover {
  transform: translateY(-4px);
  border-color: #bfd5ff;
  box-shadow: 0 24px 44px -30px #3b82f64f;
}
.service ul, .feature-list {
  padding: 0;
  list-style: none;
  margin: 0;
  display: grid;
  gap: 8px;
  color: #334155;
}
.service li::before,
.feature-list li::before { content: "• "; color: var(--blue); font-weight: 700; }

.tg-block {
  display: grid;
  gap: 16px;
  align-items: start;
}
.chat-demo { min-height: 280px; }
.bubble {
  opacity: 0;
  transform: translateY(8px);
  margin: 0 0 8px;
  width: fit-content;
  max-width: 92%;
  padding: 9px 11px;
  border-radius: 12px;
  background: #eef2ff;
  color: #334155;
  font-size: .93rem;
}
.bubble.right { margin-left: auto; background: #3b82f6; color: #fff; }
.bubble.ai {
  background: linear-gradient(135deg, #8b5cf6, #3b82f6);
  position: relative;
  overflow: hidden;
}
.bubble.ai::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(120deg, transparent, #ffffff40, transparent);
  animation: shimmer 2.2s linear infinite;
}
.typing, .status { opacity: 0; margin: 4px 0 8px; color: #475569; font-size: .88rem; }
.status { color: #0f766e; font-weight: 600; }

.chat-demo.play .b1 { animation: show .5s ease forwards .1s; }
.chat-demo.play .b2 { animation: show .5s ease forwards .55s; }
.chat-demo.play .b3 { animation: show .5s ease forwards 1s; }
.chat-demo.play .typing { animation: show .35s ease forwards 1.4s; }
.chat-demo.play .b4 { animation: show .55s ease forwards 1.8s; }
.chat-demo.play .status { animation: show .35s ease forwards 2.3s; }

.case span {
  display: inline-block;
  margin-top: 10px;
  background: #ebf3ff;
  color: #1d4ed8;
  border-radius: 12px;
  padding: 7px 10px;
  font-weight: 600;
  font-size: .9rem;
}

.why .card { text-align: center; font-weight: 600; }

.cta {
  display: grid;
  gap: 18px;
  background: linear-gradient(145deg, #fff, #eef4ff, #f5f0ff);
}
.form { display: grid; gap: 10px; }
input, textarea {
  width: 100%;
  border: 1px solid #d7e3fa;
  border-radius: 12px;
  padding: 11px 12px;
  font: inherit;
  background: #fff;
}
textarea { min-height: 110px; resize: vertical; }
input:focus, textarea:focus {
  outline: 2px solid #93c5fd55;
  border-color: #93c5fd;
}
.form-msg { min-height: 20px; margin: 0; font-size: .92rem; }
.form-msg.ok { color: #047857; }
.form-msg.err { color: #b91c1c; }

.footer { border-top: 1px solid #e2eaf9; padding: 22px 0 30px; }
.foot { display: flex; flex-direction: column; gap: 8px; }
.foot div { display: flex; flex-wrap: wrap; gap: 12px; color: #475569; }

.reveal {
  opacity: 0;
  transform: translateY(22px);
  transition: opacity .6s ease, transform .6s ease;
}
.reveal.visible { opacity: 1; transform: none; }
.float { animation: float 4.8s ease-in-out infinite; }

@keyframes show { to { opacity: 1; transform: none; } }
@keyframes shimmer { to { transform: translateX(100%); } }
@keyframes float {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-8px); }
}

@media (min-width: 768px) {
  .menu { display: flex; }
  .hero-grid { grid-template-columns: 1.1fr 1fr; }
  .tg-block { grid-template-columns: 1fr 1fr; }
  .cta { grid-template-columns: 1fr 1.05fr; }
  .cols-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .cols-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .cols-5 { grid-template-columns: repeat(5, minmax(0, 1fr)); }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .reveal, .float, .bubble, .typing, .status { transition: none; animation: none !important; opacity: 1; transform: none; }
}
