:root {
  --bg: #120a24;
  --bg-2: #1c1236;
  --card: #221743;
  --line: #3a2b66;
  --text: #f4f1ff;
  --muted: #b4aad6;
  --yellow: #ffee00;
  --pink: #fe2c55;
  --radius: 22px;
  color-scheme: dark;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  background:
    radial-gradient(1200px 700px at 85% -10%, #3b1d6b 0%, transparent 60%),
    radial-gradient(900px 600px at -10% 30%, #0f3b4d 0%, transparent 55%),
    var(--bg);
  color: var(--text);
  font: 500 17px/1.55 Montserrat, system-ui, sans-serif;
  -webkit-font-smoothing: antialiased;
}

a { color: inherit; }

h1, h2, h3 { font-weight: 900; line-height: 1.1; margin: 0; letter-spacing: -0.02em; }
h1 { font-size: clamp(2.2rem, 5.5vw, 4rem); text-transform: uppercase; }
h2 { font-size: clamp(1.7rem, 3.6vw, 2.6rem); text-transform: uppercase; margin-bottom: 1rem; }
h3 { font-size: 1.15rem; margin-bottom: 0.5rem; }

.hl {
  color: var(--yellow);
  text-shadow: 0 0 28px rgba(255, 238, 0, 0.35);
}

.top {
  position: sticky;
  top: 0;
  z-index: 10;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 14px max(16px, calc((100vw - 1120px) / 2));
  background: rgba(18, 10, 36, 0.72);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

.logo {
  font-weight: 900;
  font-size: 1.25rem;
  text-transform: uppercase;
  text-decoration: none;
  letter-spacing: 0.02em;
}

.btn {
  display: inline-block;
  padding: 16px 28px;
  border-radius: 999px;
  background: var(--yellow);
  color: #140b26;
  font-weight: 800;
  text-decoration: none;
  transition: transform 0.15s ease, box-shadow 0.15s ease;
  box-shadow: 0 10px 30px rgba(255, 238, 0, 0.25);
}
.btn:hover { transform: translateY(-2px); box-shadow: 0 14px 36px rgba(255, 238, 0, 0.35); }
.btn-small { padding: 9px 18px; font-size: 0.9rem; box-shadow: none; }

.link { color: var(--muted); text-decoration: none; font-weight: 700; }
.link:hover { color: var(--text); }

main > section {
  max-width: 1120px;
  margin: 0 auto;
  padding: 72px 16px;
}

.hero {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: 48px;
  align-items: center;
  padding-top: 56px !important;
}
.lead { font-size: 1.2rem; color: var(--muted); max-width: 34rem; margin: 1.25rem 0 2rem; }
.cta { display: flex; flex-wrap: wrap; gap: 20px; align-items: center; }
.facts {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  list-style: none;
  padding: 0;
  margin: 2rem 0 0;
}
.facts li {
  padding: 8px 14px;
  border: 1px solid var(--line);
  border-radius: 999px;
  color: var(--muted);
  font-size: 0.9rem;
}
.facts b { color: var(--text); }

.phone {
  position: relative;
  width: min(100%, 320px);
  aspect-ratio: 9 / 16;
  margin: 0 auto;
  border-radius: 36px;
  padding: 10px;
  background: linear-gradient(160deg, #2c1f55, #0d0720);
  box-shadow:
    0 0 0 1px rgba(255, 255, 255, 0.08),
    0 40px 80px rgba(0, 0, 0, 0.55),
    0 0 120px rgba(254, 44, 85, 0.18);
}
.phone video {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 28px;
  background: #000;
}
.sound {
  position: absolute;
  right: 22px;
  bottom: 22px;
  width: 44px;
  height: 44px;
  display: grid;
  place-items: center;
  border: 0;
  border-radius: 50%;
  background: rgba(0, 0, 0, 0.55);
  color: #fff;
  cursor: pointer;
  backdrop-filter: blur(6px);
}
.sound svg {
  width: 22px;
  height: 22px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.sound[data-muted="true"] .i-sound,
.sound[data-muted="false"] .i-muted { display: none; }

.sub { color: var(--muted); max-width: 44rem; margin: 0 0 2.5rem; }

.demo-grid {
  display: grid;
  grid-template-columns: 340px 1fr;
  gap: 48px;
  align-items: start;
}

.toggle {
  display: inline-flex;
  padding: 5px;
  border-radius: 999px;
  background: var(--bg-2);
  border: 1px solid var(--line);
}
.toggle button {
  padding: 10px 26px;
  border: 0;
  border-radius: 999px;
  background: none;
  color: var(--muted);
  font: inherit;
  font-weight: 800;
  cursor: pointer;
}
.toggle button[aria-checked="true"] { background: var(--text); color: var(--bg); }

.label {
  margin: 2rem 0 0.75rem;
  color: var(--muted);
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-weight: 700;
}

.styles {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}
.styles button {
  display: flex;
  flex-direction: column;
  gap: 4px;
  padding: 16px 18px;
  text-align: left;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: var(--card);
  color: var(--text);
  font: inherit;
  cursor: pointer;
  transition: border-color 0.15s ease, transform 0.15s ease;
}
.styles button:hover { transform: translateY(-2px); }
.styles button span { color: var(--muted); font-size: 0.85rem; }
.styles button[aria-checked="true"] { border-color: var(--yellow); box-shadow: inset 0 0 0 1px var(--yellow); }
.styles[aria-disabled="true"] { opacity: 0.45; pointer-events: none; }
.hint { color: var(--muted); font-size: 0.9rem; margin-top: 1.5rem; }

.chat {
  max-width: 460px;
  margin: 0 auto;
  padding: 24px 18px;
  border-radius: var(--radius);
  background: #0e1621;
  border: 1px solid #1f2b38;
  display: flex;
  flex-direction: column;
  gap: 10px;
  min-height: 520px;
}
.msg {
  max-width: 78%;
  padding: 8px;
  border-radius: 16px;
  font-size: 0.92rem;
  line-height: 1.4;
  opacity: 0;
  transform: translateY(10px);
  transition: opacity 0.35s ease, transform 0.35s ease;
}
.msg.shown { opacity: 1; transform: none; }
.msg p { margin: 6px 6px 2px; }
.msg.me { align-self: flex-end; background: #2b5278; border-bottom-right-radius: 4px; }
.msg.bot { align-self: flex-start; background: #182533; border-bottom-left-radius: 4px; }
.msg.status p { margin: 2px 6px; }
.video-thumb { position: relative; }
.video-thumb img { display: block; width: 120px; height: auto; border-radius: 10px; }
.video-thumb span {
  position: absolute;
  left: 8px;
  top: 8px;
  padding: 1px 6px;
  border-radius: 6px;
  background: rgba(0, 0, 0, 0.5);
  font-size: 0.75rem;
}
.kb { display: flex; gap: 6px; margin-top: 8px; }
.kb span {
  flex: 1;
  padding: 7px 10px;
  text-align: center;
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.08);
  font-size: 0.82rem;
  font-weight: 700;
  white-space: nowrap;
}

.steps ol {
  list-style: none;
  counter-reset: step;
  padding: 0;
  margin: 0;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 20px;
}
.steps li {
  counter-increment: step;
  padding: 28px 24px;
  border-radius: var(--radius);
  background: var(--card);
  border: 1px solid var(--line);
  color: var(--muted);
}
.steps li::before {
  content: counter(step);
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  margin-bottom: 16px;
  border-radius: 50%;
  background: var(--pink);
  color: #fff;
  font-weight: 900;
}
.steps li b { color: var(--text); display: block; margin-bottom: 6px; }

.cards {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 20px;
}
.cards article {
  padding: 28px;
  border-radius: var(--radius);
  background: linear-gradient(160deg, var(--card), var(--bg-2));
  border: 1px solid var(--line);
}
.cards p { color: var(--muted); margin: 0; }

.final { text-align: center; }
.final h2 { margin-bottom: 1.75rem; }

footer {
  padding: 32px 16px 48px;
  text-align: center;
  color: var(--muted);
  font-size: 0.85rem;
  border-top: 1px solid rgba(255, 255, 255, 0.06);
}

@media (max-width: 860px) {
  .hero, .demo-grid { grid-template-columns: 1fr; }
  .hero-text { text-align: left; }
  .steps ol, .cards { grid-template-columns: 1fr; }
  main > section { padding: 48px 16px; }
  .phone { width: min(100%, 300px); }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .msg, .btn, .styles button { transition: none; }
}
