/* ── Reset & Base ── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --bg:           #fafafa;
  --bg2:          #f4f4f5;
  --bg3:          #ededef;
  --surface:      #ffffff;
  --surface2:     #f7f7f8;
  --border:       rgba(15, 23, 42, .08);
  --border-strong:rgba(15, 23, 42, .14);
  --text:         #0a0a0f;
  --text-soft:    #3f3f46;
  --muted:        #71717a;
  --accent:       #5b5bff;
  --accent-soft:  rgba(91, 91, 255, .10);
  --accent-line:  rgba(91, 91, 255, .25);
  --success:      #10b981;
  --warning:      #f59e0b;
  --danger:       #ef4444;
  --radius:       10px;
  --radius-lg:    16px;
  --shadow-sm:    0 1px 2px rgba(15, 23, 42, .04);
  --shadow-md:    0 4px 12px rgba(15, 23, 42, .06);
  --shadow-lg:    0 12px 32px rgba(15, 23, 42, .08);
}

html { scroll-behavior: smooth; }
body.menu-open { overflow: hidden; }
body.no-scroll { overflow: hidden; }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: .01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .01ms !important;
    scroll-behavior: auto !important;
  }
}

body {
  font-family: 'Inter', system-ui, -apple-system, sans-serif;
  background: var(--bg);
  color: var(--text);
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

a { color: inherit; text-decoration: none; }
ul { list-style: none; }
img, svg { display: block; max-width: 100%; }

.container {
  max-width: 1180px;
  margin: 0 auto;
  padding: 0 24px;
}

/* ── Accent text ── */
.accent-text {
  color: var(--accent);
}

/* ── Buttons ── */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  border-radius: var(--radius);
  font-weight: 600;
  font-size: 15px;
  cursor: pointer;
  border: none;
  transition: all .15s ease;
  white-space: nowrap;
  text-decoration: none;
}
.btn--sm  { padding: 8px 16px; font-size: 14px; }
.btn--lg  { padding: 14px 28px; font-size: 16px; }
.btn--md  { padding: 11px 22px; }

.btn--primary {
  background: var(--accent);
  color: #fff;
  box-shadow: 0 1px 2px rgba(91, 91, 255, .25), inset 0 1px 0 rgba(255, 255, 255, .15);
}
.btn--primary:hover {
  background: #4848ee;
  transform: translateY(-1px);
  box-shadow: 0 6px 20px rgba(91, 91, 255, .28);
}

.btn--ghost {
  background: transparent;
  color: var(--text);
  border: 1px solid var(--border-strong);
}
.btn--ghost:hover { border-color: var(--text); background: var(--surface); }

.btn--outline {
  background: transparent;
  color: var(--text);
  border: 1px solid var(--border-strong);
  width: 100%;
}
.btn--outline:hover { border-color: var(--accent); color: var(--accent); }

.btn--tg {
  background: #229ED9;
  color: #fff !important;
  font-weight: 600;
}
.btn--tg:hover { background: #1c8bc0; transform: translateY(-1px); }

.btn:disabled {
  opacity: .5;
  cursor: not-allowed;
  transform: none !important;
  box-shadow: none !important;
}

/* ── Nav ── */
.nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  background: rgba(250, 250, 250, .80);
  backdrop-filter: blur(12px) saturate(180%);
  -webkit-backdrop-filter: blur(12px) saturate(180%);
  border-bottom: 1px solid transparent;
  transition: border-color .2s, background .2s;
}
.nav.scrolled {
  background: rgba(250, 250, 250, .92);
  border-bottom-color: var(--border);
}
.nav__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 64px;
  gap: 24px;
}
.nav__logo {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: 18px;
  font-weight: 700;
  letter-spacing: -.2px;
  color: var(--text);
}
.logo__mark {
  width: 28px;
  height: 28px;
  flex-shrink: 0;
}
.nav__links {
  display: flex;
  align-items: center;
  gap: 28px;
}
.nav__links a {
  font-size: 14px;
  font-weight: 500;
  color: var(--text-soft);
  transition: color .15s;
}
.nav__links a:hover { color: var(--text); }
.nav__actions {
  display: flex;
  align-items: center;
  gap: 12px;
}
.nav__burger {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 4px;
}
.nav__burger span {
  display: block;
  width: 22px; height: 2px;
  background: var(--text);
  border-radius: 2px;
  transition: all .3s;
}

/* ── Lang / currency switchers in nav ── */
.switcher {
  display: inline-flex;
  align-items: center;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 999px;
  padding: 2px;
  gap: 0;
  font-size: 13px;
  font-weight: 600;
}
.switcher__btn {
  background: none;
  border: none;
  color: var(--muted);
  padding: 5px 12px;
  border-radius: 999px;
  cursor: pointer;
  font-family: inherit;
  font-size: 13px;
  font-weight: 600;
  transition: all .15s;
}
.switcher__btn.active {
  background: var(--text);
  color: #fff;
}

/* ── Hero ── */
.hero {
  position: relative;
  padding: 150px 0 100px;
  overflow: hidden;
  text-align: center;
}
.hero__inner { position: relative; z-index: 1; max-width: 880px; margin: 0 auto; }
.hero__glow {
  position: absolute;
  top: -200px; left: 50%;
  transform: translateX(-50%);
  width: 900px; height: 900px;
  background: radial-gradient(circle, rgba(91, 91, 255, .10) 0%, transparent 60%);
  pointer-events: none;
}
.hero__badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 14px;
  border-radius: 999px;
  border: 1px solid var(--border-strong);
  background: var(--surface);
  color: var(--text-soft);
  font-size: 13px;
  font-weight: 500;
  margin-bottom: 24px;
  box-shadow: var(--shadow-sm);
}
.hero__badge .dot-live {
  width: 6px; height: 6px;
  border-radius: 50%;
  background: var(--success);
  box-shadow: 0 0 0 4px rgba(16, 185, 129, .18);
}
.hero__title {
  font-size: clamp(36px, 7vw, 72px);
  font-weight: 800;
  line-height: 1.05;
  letter-spacing: -2px;
  margin-bottom: 22px;
  color: var(--text);
}
.hero__sub {
  font-size: 19px;
  color: var(--text-soft);
  max-width: 640px;
  margin: 0 auto 36px;
  line-height: 1.55;
}
.hero__cta {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  flex-wrap: wrap;
  margin-bottom: 60px;
}
.hero__stats {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 56px;
  flex-wrap: wrap;
}
.stat { text-align: center; }
.stat__num {
  display: block;
  font-size: 28px;
  font-weight: 800;
  color: var(--text);
  letter-spacing: -.5px;
}
.stat__label {
  display: block;
  font-size: 13px;
  color: var(--muted);
  margin-top: 4px;
}

/* ── Sections ── */
.section {
  padding: 96px 0;
}
.section + .section { border-top: 1px solid var(--border); }
.section--surface { background: var(--surface); }
.section__title {
  font-size: clamp(28px, 4vw, 42px);
  font-weight: 800;
  text-align: center;
  letter-spacing: -1px;
  margin-bottom: 14px;
  color: var(--text);
}
.section__sub {
  text-align: center;
  color: var(--text-soft);
  font-size: 17px;
  max-width: 600px;
  margin: 0 auto 56px;
  line-height: 1.55;
}

/* ── Cards ── */
.cards {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 20px;
}
.cards--3 { grid-template-columns: repeat(3, 1fr); }
.cards--4 { grid-template-columns: repeat(4, 1fr); }
@media (max-width: 900px) {
  .cards--3, .cards--4 { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 520px) {
  .cards--3, .cards--4 { grid-template-columns: 1fr; }
}
.card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 28px;
  transition: border-color .2s, transform .2s, box-shadow .2s;
  box-shadow: var(--shadow-sm);
}
.card:hover {
  border-color: var(--border-strong);
  transform: translateY(-3px);
  box-shadow: var(--shadow-lg);
}
.card--accent {
  border-color: var(--accent-line);
  background: linear-gradient(180deg, var(--accent-soft) 0%, var(--surface) 60%);
}
.card__icon { font-size: 26px; margin-bottom: 14px; }
.card__title { font-size: 18px; font-weight: 700; margin-bottom: 10px; color: var(--text); letter-spacing: -.2px; }
.card__text { font-size: 15px; color: var(--text-soft); margin-bottom: 16px; line-height: 1.6; }
.card__list { display: flex; flex-direction: column; gap: 6px; }
.card__list li {
  font-size: 13px;
  color: var(--muted);
  padding-left: 14px;
  position: relative;
}
.card__list li::before {
  content: '—';
  position: absolute;
  left: 0;
  color: var(--accent);
  font-size: 11px;
}

/* ── Platforms (rows of pills) ── */
.platforms {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: 12px;
}
.platform {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 11px 20px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 999px;
  font-size: 14px;
  font-weight: 500;
  color: var(--text);
  transition: border-color .15s, transform .15s, box-shadow .15s;
}
.platform:hover {
  border-color: var(--accent-line);
  transform: translateY(-1px);
  box-shadow: var(--shadow-sm);
}
.platform__icon {
  width: 20px; height: 20px;
  color: var(--accent);
  flex-shrink: 0;
}

/* ── Steps ── */
.steps {
  display: flex;
  align-items: stretch;
  justify-content: center;
  gap: 16px;
  flex-wrap: wrap;
}
.step {
  flex: 1;
  min-width: 220px;
  max-width: 300px;
  text-align: left;
  padding: 28px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-sm);
}
.step__num {
  font-size: 14px;
  font-weight: 700;
  color: var(--accent);
  margin-bottom: 16px;
  letter-spacing: .5px;
}
.step__title { font-size: 18px; font-weight: 700; margin-bottom: 10px; color: var(--text); }
.step__text { font-size: 14px; color: var(--text-soft); line-height: 1.6; }

/* ── Case / Portfolio ── */
.case {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 56px;
  align-items: center;
}
.case__title { font-size: 28px; font-weight: 800; margin-bottom: 12px; letter-spacing: -.5px; }
.case__desc { font-size: 16px; color: var(--text-soft); margin-bottom: 24px; line-height: 1.6; }
.case__features { display: flex; flex-direction: column; gap: 10px; margin-bottom: 32px; }
.case__features li { display: flex; align-items: flex-start; gap: 10px; font-size: 14px; color: var(--text-soft); }
.check { color: var(--success); font-weight: 700; flex-shrink: 0; }

/* ── Mockup ── */
.case__visual {
  position: relative;
  min-height: 480px;
}
.mockup {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-lg);
}
.mockup--chat {
  position: relative;
  z-index: 2;
  max-width: 380px;
  transform: rotate(-1.5deg);
}
.mockup--admin {
  position: absolute;
  right: 0;
  bottom: 0;
  width: 88%;
  z-index: 1;
  transform: translate(0, 28px) rotate(2deg);
  box-shadow: 0 28px 60px rgba(15, 23, 42, .12);
}
.mockup__header {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 12px 16px;
  background: var(--surface2);
  border-bottom: 1px solid var(--border);
}
.mockup__dot {
  width: 10px; height: 10px;
  border-radius: 50%;
  background: var(--border-strong);
}
.mockup__dot:nth-child(1) { background: #ff5f56; }
.mockup__dot:nth-child(2) { background: #febc2e; }
.mockup__dot:nth-child(3) { background: #28c840; }
.mockup__title {
  font-size: 12px;
  color: var(--muted);
  margin-left: 8px;
  font-weight: 500;
}
.mockup__body {
  padding: 20px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.msg { display: flex; }
.msg--in { justify-content: flex-start; }
.msg--out { justify-content: flex-end; }
.msg__bubble {
  max-width: 85%;
  padding: 10px 14px;
  border-radius: 14px;
  font-size: 13px;
  line-height: 1.5;
}
.msg--in .msg__bubble {
  background: var(--surface2);
  border-radius: 4px 14px 14px 14px;
  color: var(--text);
}
.msg--out .msg__bubble {
  background: var(--accent);
  color: #fff;
  border-radius: 14px 4px 14px 14px;
}
.msg.typing .msg__bubble {
  display: inline-flex;
  gap: 4px;
  padding: 12px 14px;
}
.dot {
  width: 6px; height: 6px;
  border-radius: 50%;
  background: var(--muted);
  animation: bounce 1.2s infinite ease-in-out;
}
.dot:nth-child(2) { animation-delay: .15s; }
.dot:nth-child(3) { animation-delay: .3s; }
@keyframes bounce {
  0%, 60%, 100% { transform: translateY(0); opacity: .4; }
  30% { transform: translateY(-4px); opacity: 1; }
}

/* ── Admin mockup ── */
.admin {
  display: grid;
  grid-template-columns: 130px 1fr;
  min-height: 240px;
  font-size: 12px;
  background: var(--surface);
}
.admin__side {
  background: var(--surface2);
  padding: 14px 12px;
  display: flex;
  flex-direction: column;
  gap: 4px;
  border-right: 1px solid var(--border);
}
.admin__brand {
  font-size: 11px;
  font-weight: 700;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: .5px;
  margin-bottom: 10px;
}
.admin__link {
  padding: 7px 10px;
  border-radius: 6px;
  color: var(--muted);
  font-size: 12px;
  cursor: default;
}
.admin__link--active {
  background: var(--accent-soft);
  color: var(--accent);
  font-weight: 600;
}
.admin__main {
  padding: 14px 16px;
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.admin__title {
  font-size: 14px;
  font-weight: 700;
  color: var(--text);
  margin-bottom: 8px;
}
.admin__row {
  display: grid;
  grid-template-columns: 1.4fr .6fr 1fr;
  gap: 8px;
  padding: 8px 10px;
  background: var(--surface2);
  border-radius: 6px;
  color: var(--text);
  font-size: 12px;
}
.admin__row span:nth-child(2),
.admin__row span:nth-child(3) { color: var(--muted); }
.admin__row--head {
  background: transparent;
  padding-bottom: 4px;
  color: var(--muted);
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: .5px;
}
.admin__row--head span { color: var(--muted) !important; }

/* ── Pricing ── */
.pricing {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  align-items: stretch;
}
.plan {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 32px 28px;
  position: relative;
  display: flex;
  flex-direction: column;
  transition: border-color .2s, transform .2s, box-shadow .2s;
  box-shadow: var(--shadow-sm);
}
.plan .btn { margin-top: auto; }
.plan:hover { border-color: var(--border-strong); transform: translateY(-3px); box-shadow: var(--shadow-md); }
.plan--featured {
  border-color: var(--accent-line);
  background: linear-gradient(180deg, var(--accent-soft) 0%, var(--surface) 30%);
  transform: translateY(-8px);
  box-shadow: var(--shadow-lg);
}
.plan--featured:hover { transform: translateY(-11px); }
.plan__badge {
  position: absolute;
  top: -14px; left: 50%;
  transform: translateX(-50%);
  background: var(--accent);
  color: #fff;
  font-size: 12px;
  font-weight: 700;
  padding: 4px 14px;
  border-radius: 999px;
  white-space: nowrap;
  letter-spacing: .3px;
}
.plan__name { font-size: 18px; font-weight: 700; margin-bottom: 6px; color: var(--text); letter-spacing: -.2px; }
.plan__tagline { font-size: 13px; color: var(--muted); margin-bottom: 18px; }
.plan__price {
  font-size: 13px;
  color: var(--muted);
  margin-bottom: 4px;
  display: flex;
  align-items: baseline;
  gap: 6px;
}
.plan__price-num {
  font-size: 32px;
  font-weight: 800;
  color: var(--text);
  letter-spacing: -1px;
  font-variant-numeric: tabular-nums;
}
.plan__time { font-size: 13px; color: var(--muted); margin-bottom: 24px; }
.plan__list { display: flex; flex-direction: column; gap: 10px; margin-bottom: 28px; }
.plan__list li {
  font-size: 14px;
  color: var(--text-soft);
  padding-left: 22px;
  position: relative;
  line-height: 1.55;
}
.plan__list li::before {
  content: '';
  position: absolute;
  left: 0; top: 6px;
  width: 14px; height: 14px;
  background: var(--success);
  -webkit-mask: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 14 14'><path d='M2.5 7.5L5.5 10.5L11.5 4' stroke='black' stroke-width='2' fill='none' stroke-linecap='round' stroke-linejoin='round'/></svg>") center/contain no-repeat;
          mask: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 14 14'><path d='M2.5 7.5L5.5 10.5L11.5 4' stroke='black' stroke-width='2' fill='none' stroke-linecap='round' stroke-linejoin='round'/></svg>") center/contain no-repeat;
}

/* ── Marquee (tech stack) ── */
.marquee {
  overflow: hidden;
  position: relative;
  padding: 8px 0;
  margin-top: -8px;
  mask-image: linear-gradient(to right, transparent 0%, #000 6%, #000 94%, transparent 100%);
  -webkit-mask-image: linear-gradient(to right, transparent 0%, #000 6%, #000 94%, transparent 100%);
}
.marquee__track {
  display: flex;
  gap: 12px;
  width: max-content;
  animation: marquee-scroll 60s linear infinite;
}
.marquee:hover .marquee__track { animation-play-state: paused; }
.marquee__chip {
  flex-shrink: 0;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 999px;
  padding: 11px 20px;
  font-size: 14px;
  font-weight: 500;
  color: var(--text-soft);
  white-space: nowrap;
  transition: border-color .2s, transform .2s, color .2s;
}
.marquee__chip:hover {
  border-color: var(--accent-line);
  color: var(--text);
  transform: translateY(-2px);
}
@keyframes marquee-scroll {
  from { transform: translateX(0); }
  to   { transform: translateX(-50%); }
}

/* ── Scenarios carousel ── */
.scenarios {
  position: relative;
  overflow: hidden;
}
.scenarios__track {
  display: flex;
  gap: 20px;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scrollbar-width: none;
  -ms-overflow-style: none;
  padding: 4px max(24px, calc((100vw - 1180px) / 2 + 24px)) 8px;
  scroll-padding-left: max(24px, calc((100vw - 1180px) / 2 + 24px));
}
.scenarios__track::-webkit-scrollbar { display: none; }
.scenarios__hint {
  text-align: center;
  font-size: 13px;
  color: var(--muted);
  margin-top: 18px;
}
.scenario {
  flex: 0 0 320px;
  scroll-snap-align: start;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 28px 26px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  transition: transform .25s, border-color .25s, box-shadow .25s;
  box-shadow: var(--shadow-sm);
}
.scenario:hover {
  transform: translateY(-4px);
  border-color: var(--accent-line);
  box-shadow: var(--shadow-md);
}
.scenario__badge {
  align-self: flex-start;
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .8px;
  padding: 4px 10px;
  border-radius: 999px;
  background: var(--accent-soft);
  color: var(--accent);
  border: 1px solid var(--accent-line);
}
.scenario__badge--real {
  background: rgba(16, 185, 129, .10);
  color: var(--success);
  border-color: rgba(16, 185, 129, .25);
}
.scenario__icon { font-size: 32px; line-height: 1; }
.scenario__title {
  font-size: 18px;
  font-weight: 700;
  color: var(--text);
  letter-spacing: -.2px;
}
.scenario__problem,
.scenario__solution {
  font-size: 14px;
  line-height: 1.55;
  color: var(--text-soft);
  margin: 0;
}
.scenario__problem::before {
  content: '⚡ ';
  color: var(--warning);
  font-weight: 700;
}
.scenario__solution::before {
  content: '✓ ';
  color: var(--success);
  font-weight: 700;
}
.scenario__metric {
  margin-top: auto;
  padding-top: 14px;
  border-top: 1px solid var(--border);
  display: flex;
  align-items: baseline;
  gap: 10px;
}
.scenario__metric-num {
  font-size: 28px;
  font-weight: 800;
  color: var(--accent);
  letter-spacing: -.5px;
}
.scenario__metric-label {
  font-size: 12px;
  color: var(--muted);
  line-height: 1.4;
}
@media (max-width: 600px) {
  .scenario { flex-basis: 85vw; }
}

/* ── Why-list ── */
.why-list {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  max-width: 980px;
  margin: 0 auto;
}
.why-item {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 32px 24px;
  text-align: left;
  display: flex;
  flex-direction: column;
  gap: 10px;
  box-shadow: var(--shadow-sm);
}
.why-item__icon {
  width: 36px; height: 36px;
  border-radius: 10px;
  background: var(--accent-soft);
  color: var(--accent);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 18px;
  margin-bottom: 4px;
}
.why-item__title { font-size: 16px; font-weight: 700; color: var(--text); }
.why-item__text {
  font-size: 14px;
  color: var(--text-soft);
  line-height: 1.55;
}
@media (max-width: 768px) {
  .why-list { grid-template-columns: 1fr; }
}

/* ── Calculator ── */
.calc {
  max-width: 840px;
  margin: 0 auto;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 36px;
  display: flex;
  flex-direction: column;
  gap: 28px;
  box-shadow: var(--shadow-sm);
}
.calc__step { display: flex; flex-direction: column; gap: 12px; }
.calc__label {
  font-size: 15px;
  font-weight: 600;
  color: var(--text);
}
.calc__hint {
  font-size: 12px;
  font-weight: 400;
  color: var(--muted);
  margin-left: 6px;
}
.calc__chips {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
.chip {
  background: var(--surface);
  border: 1.5px solid var(--border);
  color: var(--text);
  font-family: inherit;
  font-size: 14px;
  font-weight: 500;
  padding: 9px 16px;
  border-radius: 999px;
  cursor: pointer;
  transition: all .15s ease;
}
.chip:hover { border-color: var(--accent-line); }
.chip.selected {
  background: var(--accent);
  border-color: var(--accent);
  color: #fff;
}
.calc__result {
  margin-top: 8px;
  padding: 28px;
  background: var(--accent-soft);
  border: 1px solid var(--accent-line);
  border-radius: var(--radius);
  text-align: center;
}
.calc__result-label {
  font-size: 12px;
  font-weight: 600;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: .8px;
  margin-bottom: 10px;
}
.calc__price {
  display: flex;
  align-items: baseline;
  justify-content: center;
  gap: 6px;
  margin-bottom: 6px;
}
.calc__price-prefix, .calc__price-suffix {
  font-size: 22px;
  font-weight: 600;
  color: var(--text-soft);
}
.calc__price-value {
  font-size: clamp(36px, 6vw, 52px);
  font-weight: 800;
  color: var(--accent);
  font-variant-numeric: tabular-nums;
  letter-spacing: -1px;
  transition: opacity .15s;
}
.calc__price-value.flash { opacity: .5; }
.calc__disclaimer {
  font-size: 13px;
  color: var(--muted);
  margin-bottom: 20px;
  line-height: 1.55;
}
.calc__cta { display: inline-flex; }
@media (max-width: 600px) {
  .calc { padding: 24px 20px; }
  .chip { font-size: 13px; padding: 8px 14px; }
}

/* ── FAQ ── */
.faq {
  max-width: 780px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.faq__item {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  transition: border-color .15s, box-shadow .15s;
}
.faq__item.open { border-color: var(--accent-line); box-shadow: var(--shadow-sm); }
.faq__q {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 18px 22px;
  background: transparent;
  border: none;
  color: var(--text);
  font-family: inherit;
  font-size: 16px;
  font-weight: 600;
  text-align: left;
  cursor: pointer;
  transition: background .15s;
}
.faq__q:hover { background: var(--surface2); }
.faq__arrow {
  font-size: 22px;
  font-weight: 300;
  color: var(--muted);
  flex-shrink: 0;
  transition: transform .25s, color .25s;
}
.faq__item.open .faq__arrow {
  transform: rotate(45deg);
  color: var(--accent);
}
.faq__a {
  max-height: 0;
  overflow: hidden;
  transition: max-height .3s ease;
}
.faq__a p {
  padding: 0 22px 20px;
  color: var(--text-soft);
  font-size: 15px;
  line-height: 1.7;
}

/* ── Form (Formspree) ── */
.contact { max-width: 640px; margin: 0 auto; }

.form {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 32px;
  display: flex;
  flex-direction: column;
  gap: 18px;
  box-shadow: var(--shadow-sm);
}
.form__row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.form__group { display: flex; flex-direction: column; gap: 6px; }
.form__label { font-size: 13px; font-weight: 600; color: var(--text); }
.form__label .req { color: var(--danger); margin-left: 2px; }
.form__input {
  background: var(--surface);
  border: 1.5px solid var(--border);
  border-radius: var(--radius);
  padding: 11px 14px;
  color: var(--text);
  font-family: inherit;
  font-size: 15px;
  transition: border-color .15s, box-shadow .15s;
  outline: none;
  width: 100%;
}
.form__input:focus {
  border-color: var(--accent);
  box-shadow: 0 0 0 3px var(--accent-soft);
}
.form__input::placeholder { color: var(--muted); }
.form__select {
  appearance: none;
  cursor: pointer;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8' fill='none'><path d='M1 1.5L6 6.5L11 1.5' stroke='%2371717a' stroke-width='2' stroke-linecap='round'/></svg>");
  background-repeat: no-repeat;
  background-position: right 14px center;
  padding-right: 36px;
}
.form__textarea { resize: vertical; min-height: 110px; }
.form__honeypot {
  position: absolute;
  left: -9999px;
  width: 1px; height: 1px;
  opacity: 0;
}
.form__submit { position: relative; }
.btn__loader {
  display: none;
  width: 16px; height: 16px;
  border: 2px solid rgba(255,255,255,.3);
  border-top-color: #fff;
  border-radius: 50%;
  animation: spin .6s linear infinite;
}
.form--loading .btn__text { opacity: 0; }
.form--loading .btn__loader { display: block; position: absolute; }
.form__error {
  background: rgba(239, 68, 68, .08);
  border: 1px solid rgba(239, 68, 68, .25);
  color: #b91c1c;
  padding: 12px 16px;
  border-radius: var(--radius);
  font-size: 14px;
  display: none;
}
.form__error.visible { display: block; }
.form__success {
  text-align: center;
  padding: 48px 32px;
  background: var(--surface);
  border: 1px solid rgba(16, 185, 129, .3);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-sm);
}
.success__icon {
  width: 56px; height: 56px;
  border-radius: 50%;
  background: rgba(16, 185, 129, .15);
  color: var(--success);
  font-size: 24px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 20px;
}
.form__success h3 { font-size: 22px; font-weight: 700; margin-bottom: 8px; color: var(--text); }
.form__success p { color: var(--text-soft); font-size: 15px; }

@keyframes spin { to { transform: rotate(360deg); } }

/* ── Consent checkboxes ── */
.form__consent {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  font-size: 13px;
  color: var(--text-soft);
  line-height: 1.55;
  cursor: pointer;
  user-select: none;
}
.form__consent input[type="checkbox"] {
  appearance: none;
  width: 18px; height: 18px;
  border: 1.5px solid var(--border-strong);
  border-radius: 4px;
  background: var(--surface);
  cursor: pointer;
  flex-shrink: 0;
  margin-top: 2px;
  transition: border-color .15s, background .15s;
  position: relative;
}
.form__consent input[type="checkbox"]:checked {
  background: var(--accent);
  border-color: var(--accent);
}
.form__consent input[type="checkbox"]:checked::after {
  content: '';
  position: absolute;
  left: 5px; top: 1px;
  width: 5px; height: 10px;
  border: solid #fff;
  border-width: 0 2px 2px 0;
  transform: rotate(45deg);
}
.form__consent a {
  color: var(--accent);
  text-decoration: underline;
  text-decoration-color: var(--accent-line);
  text-underline-offset: 2px;
}

/* ── Legal pages ── */
.legal { padding: 130px 0 80px; max-width: 800px; margin: 0 auto; }
.legal__back {
  display: inline-block;
  margin-bottom: 24px;
  font-size: 14px;
  color: var(--muted);
  transition: color .15s;
}
.legal__back:hover { color: var(--accent); }
.legal__title {
  font-size: clamp(28px, 4vw, 38px);
  font-weight: 800;
  letter-spacing: -1px;
  margin-bottom: 8px;
  color: var(--text);
}
.legal__meta {
  font-size: 13px;
  color: var(--muted);
  margin-bottom: 36px;
}
.legal h2 {
  font-size: 20px;
  font-weight: 700;
  margin: 36px 0 14px;
  color: var(--text);
  letter-spacing: -.2px;
}
.legal h3 {
  font-size: 16px;
  font-weight: 700;
  margin: 24px 0 10px;
  color: var(--text);
}
.legal p, .legal ul, .legal ol {
  font-size: 15px;
  color: var(--text-soft);
  margin-bottom: 12px;
  line-height: 1.75;
}
.legal ul, .legal ol { padding-left: 22px; list-style: disc; }
.legal ol { list-style: decimal; }
.legal li { margin-bottom: 6px; }
.legal a {
  color: var(--accent);
  text-decoration: underline;
  text-decoration-color: var(--accent-line);
  text-underline-offset: 3px;
}
.legal a:hover { text-decoration-color: var(--accent); }
.legal strong { color: var(--text); font-weight: 600; }
.legal table {
  width: 100%;
  border-collapse: collapse;
  margin: 16px 0;
  font-size: 14px;
}
.legal table th, .legal table td {
  text-align: left;
  padding: 10px 12px;
  border: 1px solid var(--border);
  vertical-align: top;
}
.legal table th {
  background: var(--surface2);
  font-weight: 600;
  color: var(--text);
}
.legal table td { color: var(--text-soft); }

/* ── Cookie consent banner ── */
.cc-banner {
  position: fixed;
  bottom: 16px;
  left: 16px;
  right: 16px;
  z-index: 9000;
  max-width: 720px;
  margin: 0 auto;
  background: var(--surface);
  border: 1px solid var(--border-strong);
  border-radius: var(--radius-lg);
  box-shadow: 0 20px 60px rgba(15, 23, 42, .18);
  padding: 22px;
  display: none;
}
.cc-banner.visible { display: block; }
.cc-banner__title {
  font-size: 16px;
  font-weight: 700;
  color: var(--text);
  margin-bottom: 8px;
}
.cc-banner__text {
  font-size: 14px;
  color: var(--text-soft);
  line-height: 1.55;
  margin-bottom: 16px;
}
.cc-banner__text a {
  color: var(--accent);
  text-decoration: underline;
}
.cc-banner__actions {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}
.cc-banner__actions .btn { flex: 1; min-width: 130px; }
@media (max-width: 520px) {
  .cc-banner__actions .btn { flex-basis: 100%; }
}

/* Cookie modal (granular settings) */
.cc-modal {
  position: fixed;
  inset: 0;
  z-index: 9100;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 16px;
  background: rgba(15, 23, 42, .45);
  backdrop-filter: blur(4px);
}
.cc-modal.visible { display: flex; }
.cc-modal__card {
  background: var(--surface);
  border-radius: var(--radius-lg);
  max-width: 560px;
  width: 100%;
  max-height: 90vh;
  overflow-y: auto;
  padding: 28px;
  box-shadow: var(--shadow-lg);
}
.cc-modal__title { font-size: 20px; font-weight: 800; margin-bottom: 8px; color: var(--text); }
.cc-modal__intro { font-size: 14px; color: var(--text-soft); margin-bottom: 22px; line-height: 1.6; }
.cc-cat {
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 16px;
  margin-bottom: 12px;
}
.cc-cat__row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}
.cc-cat__name { font-size: 14px; font-weight: 700; color: var(--text); }
.cc-cat__desc { font-size: 13px; color: var(--text-soft); line-height: 1.55; margin-top: 6px; }
.cc-cat__locked { font-size: 12px; color: var(--muted); font-style: italic; }
.cc-modal__actions {
  display: flex;
  gap: 8px;
  justify-content: flex-end;
  margin-top: 18px;
  flex-wrap: wrap;
}

/* Toggle switch */
.cc-switch { position: relative; display: inline-block; width: 38px; height: 22px; flex-shrink: 0; }
.cc-switch input { opacity: 0; width: 0; height: 0; }
.cc-slider {
  position: absolute; inset: 0;
  background: var(--border-strong);
  border-radius: 999px;
  transition: background .2s;
  cursor: pointer;
}
.cc-slider::before {
  content: '';
  position: absolute;
  height: 16px; width: 16px;
  left: 3px; top: 3px;
  background: #fff;
  border-radius: 50%;
  transition: transform .2s;
  box-shadow: 0 1px 3px rgba(0,0,0,.2);
}
.cc-switch input:checked + .cc-slider { background: var(--accent); }
.cc-switch input:checked + .cc-slider::before { transform: translateX(16px); }
.cc-switch input:disabled + .cc-slider { background: var(--border); cursor: not-allowed; }

/* ── Footer ── */
.footer {
  background: var(--surface);
  border-top: 1px solid var(--border);
  padding: 48px 0 32px;
}
.footer__top {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 40px;
  margin-bottom: 36px;
}
.footer__col h4 {
  font-size: 12px;
  font-weight: 700;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: .8px;
  margin-bottom: 16px;
}
.footer__col ul { display: flex; flex-direction: column; gap: 10px; }
.footer__logo {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: 18px;
  font-weight: 700;
  margin-bottom: 12px;
  color: var(--text);
}
.footer__logo .logo__mark { width: 26px; height: 26px; }
.footer__tagline {
  font-size: 14px;
  color: var(--text-soft);
  line-height: 1.55;
  max-width: 320px;
  margin-bottom: 16px;
}
.footer__link {
  font-size: 14px;
  color: var(--text-soft);
  transition: color .15s;
}
.footer__link:hover { color: var(--accent); }
.footer__bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
  padding-top: 24px;
  border-top: 1px solid var(--border);
}
.footer__copy { font-size: 13px; color: var(--muted); }
.footer__legal { display: flex; gap: 18px; flex-wrap: wrap; }
.footer__legal a { font-size: 13px; color: var(--muted); }
.footer__legal a:hover { color: var(--accent); }
@media (max-width: 768px) {
  .footer__top { grid-template-columns: 1fr 1fr; gap: 32px; }
}
@media (max-width: 480px) {
  .footer__top { grid-template-columns: 1fr; }
}

/* ── Mobile ── */
@media (max-width: 900px) {
  .case { grid-template-columns: 1fr; gap: 32px; }
  .case__visual { min-height: auto; display: flex; flex-direction: column; gap: 16px; }
  .mockup--chat { max-width: 100%; transform: none; }
  .mockup--admin { position: static; width: 100%; transform: none; }
  .pricing { grid-template-columns: 1fr; }
  .plan--featured { transform: none; }
  .plan--featured:hover { transform: translateY(-3px); }
}

@media (max-width: 768px) {
  .nav {
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
  }
  .nav.scrolled { background: #fafafa; }
  .nav__links { display: none; }
  .nav__links.open {
    display: flex;
    flex-direction: column;
    position: fixed;
    top: 64px;
    left: 0;
    width: 100vw;
    height: calc(100vh - 64px);
    height: calc(100dvh - 64px);
    background: #fafafa;
    z-index: 9999;
    padding: 32px 24px;
    gap: 24px;
    border-top: 1px solid var(--border);
    overflow-y: auto;
  }
  .nav__links.open a { font-size: 18px; color: var(--text); }
  .nav__burger { display: flex; }

  .hero { padding: 110px 0 70px; }
  .hero__cta { gap: 10px; }
  .form__row { grid-template-columns: 1fr; }
  .form { padding: 24px; }
}

@media (max-width: 480px) {
  .hero__stats { gap: 24px; }
}

/* ── Animations on scroll ── */
.fade-in {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity .6s ease, transform .6s ease;
}
.fade-in.visible {
  opacity: 1;
  transform: translateY(0);
}
