:root {
  color-scheme: light;
  --bg: #fbf8ff;
  --panel: #ffffff;
  --ink: #1d1825;
  --muted: #665f70;
  --line: #ddd5e8;
  --brand: #6650a4;
  --brand-strong: #4f378b;
  --soft: #efe7ff;
  --ok: #2f7d4c;
  --warn: #9a5b00;
  --radius: 8px;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  line-height: 1.6;
}

a {
  color: var(--brand-strong);
  text-decoration: none;
}

a:hover {
  text-decoration: underline;
}

.skip-link {
  position: absolute;
  left: -999px;
  top: 12px;
  background: var(--brand);
  color: #fff;
  padding: 8px 12px;
  border-radius: 6px;
}

.skip-link:focus {
  left: 12px;
  z-index: 100;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 10;
  background: rgba(251, 248, 255, 0.92);
  border-bottom: 1px solid var(--line);
  backdrop-filter: blur(12px);
}

.nav {
  max-width: 1080px;
  margin: 0 auto;
  padding: 16px 22px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 800;
  font-size: 20px;
  color: var(--ink);
}

.brand-mark {
  width: 34px;
  height: 34px;
  border-radius: 8px;
  display: inline-grid;
  place-items: center;
  background: var(--brand);
  color: #fff;
  font-weight: 900;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 16px;
  font-size: 14px;
}

.language-menu {
  position: relative;
}

.language-menu summary {
  cursor: pointer;
  list-style: none;
  color: var(--brand-strong);
}

.language-menu summary::-webkit-details-marker {
  display: none;
}

.language-panel {
  position: absolute;
  right: 0;
  top: calc(100% + 10px);
  width: 260px;
  max-height: 360px;
  overflow: auto;
  display: grid;
  gap: 4px;
  padding: 10px;
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: 0 18px 40px rgba(60, 45, 90, 0.16);
}

.language-panel a {
  display: block;
  padding: 8px 10px;
  border-radius: 6px;
}

.language-panel a[aria-current="true"] {
  background: var(--soft);
  font-weight: 800;
}

.hero {
  max-width: 1080px;
  margin: 0 auto;
  padding: 72px 22px 44px;
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(300px, 0.95fr);
  gap: 40px;
  align-items: center;
}

.eyebrow {
  color: var(--brand-strong);
  font-weight: 700;
  margin: 0 0 10px;
}

h1 {
  margin: 0;
  font-size: clamp(42px, 7vw, 76px);
  line-height: 0.98;
  letter-spacing: 0;
}

h2 {
  margin: 0 0 14px;
  font-size: 30px;
  line-height: 1.18;
  letter-spacing: 0;
}

h3 {
  margin: 0 0 8px;
  font-size: 18px;
}

p {
  margin: 0 0 16px;
}

.lead {
  margin-top: 22px;
  color: var(--muted);
  font-size: 20px;
  max-width: 620px;
}

.status-line {
  margin-top: 18px;
  color: var(--ok);
  font-weight: 700;
}

.actions {
  margin-top: 28px;
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 10px 18px;
  border-radius: 999px;
  border: 1px solid var(--brand);
  font-weight: 750;
}

.button.primary {
  background: var(--brand);
  color: #fff;
}

.button.secondary {
  background: transparent;
  color: var(--brand-strong);
}

.phone-frame {
  justify-self: center;
  width: min(340px, 100%);
  background: #15121c;
  border-radius: 32px;
  padding: 20px;
  box-shadow: 0 22px 60px rgba(80, 55, 139, 0.25);
}

.phone-screen {
  border-radius: 24px;
  background: #f5efff;
  min-height: 520px;
  padding: 22px 16px;
  overflow: hidden;
}

.chat-title {
  font-weight: 800;
  font-size: 22px;
  margin-bottom: 20px;
}

.chat-row {
  display: grid;
  grid-template-columns: 5px 42px minmax(0, 1fr);
  gap: 12px;
  align-items: center;
  padding: 14px 0;
  border-bottom: 1px solid #ddd5e8;
}

.strip.red {
  width: 5px;
  height: 42px;
  background: #d46a6a;
}

.strip.blue {
  width: 5px;
  height: 42px;
  background: #4b83d1;
}

.avatar {
  width: 42px;
  height: 42px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: #e3d7f6;
  color: var(--brand-strong);
  font-weight: 800;
}

.chat-copy strong,
.chat-copy span {
  display: block;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.chat-copy span {
  color: var(--muted);
  font-size: 14px;
}

.section {
  max-width: 1080px;
  margin: 0 auto;
  padding: 52px 22px;
}

.grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
}

.grid.two {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.card {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 22px;
}

.card p {
  color: var(--muted);
}

.band {
  background: var(--soft);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.content {
  max-width: 900px;
  margin: 0 auto;
  padding: 54px 22px;
}

.content h1 {
  font-size: clamp(34px, 5vw, 54px);
  line-height: 1.05;
  margin-bottom: 16px;
}

.content h2 {
  margin-top: 34px;
}

.content ul {
  padding-left: 22px;
}

.notice {
  border-left: 4px solid var(--brand);
  background: var(--soft);
  padding: 16px;
  border-radius: 0 var(--radius) var(--radius) 0;
}

.warning {
  border-left: 4px solid var(--warn);
  background: #fff5df;
  padding: 16px;
  border-radius: 0 var(--radius) var(--radius) 0;
}

.steps {
  counter-reset: steps;
  display: grid;
  gap: 14px;
  padding: 0;
  list-style: none;
}

.steps li {
  counter-increment: steps;
  display: grid;
  grid-template-columns: 36px minmax(0, 1fr);
  gap: 12px;
  align-items: start;
}

.steps li::before {
  content: counter(steps);
  width: 34px;
  height: 34px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: var(--brand);
  color: #fff;
  font-weight: 800;
}

.faq {
  display: grid;
  gap: 12px;
}

.faq details {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--panel);
  padding: 16px 18px;
}

.faq summary {
  cursor: pointer;
  font-weight: 750;
}

.faq p {
  margin-top: 10px;
  margin-bottom: 0;
  color: var(--muted);
}

.small {
  color: var(--muted);
  font-size: 14px;
}

.site-footer {
  border-top: 1px solid var(--line);
  padding: 28px 22px;
  color: var(--muted);
}

.footer-inner {
  max-width: 1080px;
  margin: 0 auto;
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 16px;
}

@media (max-width: 760px) {
  .nav {
    align-items: flex-start;
    flex-direction: column;
  }

  .nav-links {
    flex-wrap: wrap;
  }

  .language-panel {
    left: auto;
    right: 0;
    max-width: calc(100vw - 44px);
  }

  .hero {
    grid-template-columns: 1fr;
    padding-top: 44px;
  }

  .grid {
    grid-template-columns: 1fr;
  }

  .grid.two {
    grid-template-columns: 1fr;
  }
}
