:root {
  --bg: #0b0d12;
  --bg-soft: #12151c;
  --card: #171b24;
  --text: #f2f3f6;
  --text-muted: #9aa0ad;
  --accent: #6c8cff;
  --accent-2: #b06cff;
  --accent-soft: #262b45;
  --border: #262b36;
  --radius: 16px;
  --shadow: 0 8px 30px rgba(0,0,0,0.35);
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
}

a { color: var(--accent); text-decoration: none; transition: color .15s ease; }
a:hover { text-decoration: underline; }

.wrap {
  max-width: 980px;
  margin: 0 auto;
  padding: 0 24px;
}

header.site-header {
  border-bottom: 1px solid var(--border);
  padding: 18px 0;
  position: sticky;
  top: 0;
  background: rgba(11,13,18,0.85);
  backdrop-filter: blur(10px);
  z-index: 10;
}

header.site-header .wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.logo {
  display: flex;
  align-items: center;
  gap: 8px;
  font-weight: 800;
  font-size: 1.15rem;
  letter-spacing: -0.02em;
}

.logo a {
  display: flex;
  align-items: center;
  gap: 8px;
  color: inherit;
}

.logo-icon {
  height: 28px;
  width: 28px;
  display: block;
}

.logo span {
  background: linear-gradient(135deg, var(--accent), var(--accent-2));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

nav a {
  margin-left: 22px;
  color: var(--text-muted);
  font-size: 0.95rem;
  font-weight: 500;
}
nav a:hover { color: var(--text); text-decoration: none; }

.hero {
  padding: 96px 0 60px;
  text-align: center;
  position: relative;
  overflow: hidden;
}

.hero::before {
  content: "";
  position: absolute;
  top: -160px;
  left: 50%;
  transform: translateX(-50%);
  width: 720px;
  height: 480px;
  background: radial-gradient(circle, rgba(108,140,255,0.25), rgba(176,108,255,0.12) 45%, transparent 70%);
  filter: blur(10px);
  pointer-events: none;
  z-index: 0;
}

.hero .wrap { position: relative; z-index: 1; }

@keyframes fadeInUp {
  from { opacity: 0; transform: translateY(14px); }
  to { opacity: 1; transform: translateY(0); }
}

.hero .wrap > * { animation: fadeInUp .7s ease both; }
.hero .wrap > *:nth-child(1) { animation-delay: 0s; }
.hero .wrap > *:nth-child(2) { animation-delay: .08s; }
.hero .wrap > *:nth-child(3) { animation-delay: .16s; }
.hero .wrap > *:nth-child(4) { animation-delay: .24s; }
.hero .wrap > *:nth-child(5) { animation-delay: .3s; }

.hero h1 {
  font-size: 2.6rem;
  font-weight: 800;
  line-height: 1.18;
  margin: 0 0 18px;
  letter-spacing: -0.03em;
}

.hero p.lead {
  font-size: 1.18rem;
  color: var(--text-muted);
  max-width: 640px;
  margin: 0 auto 34px;
}

.btn {
  display: inline-block;
  padding: 14px 28px;
  border-radius: 999px;
  font-weight: 600;
  font-size: 0.98rem;
  cursor: pointer;
  border: none;
  transition: transform .15s ease, box-shadow .15s ease, background .15s ease;
}

.btn-primary {
  background: linear-gradient(135deg, var(--accent), var(--accent-2));
  color: #0b0d12;
  box-shadow: 0 6px 20px rgba(108,140,255,0.35);
}
.btn-primary:hover { transform: translateY(-2px); box-shadow: 0 10px 26px rgba(108,140,255,0.45); text-decoration: none; }

.btn-secondary {
  background: transparent;
  color: var(--text);
  border: 1px solid var(--border);
  margin-left: 12px;
}
.btn-secondary:hover { border-color: var(--accent); transform: translateY(-2px); text-decoration: none; }

section {
  padding: 60px 0;
  border-top: 1px solid var(--border);
}

section h2 {
  font-size: 1.7rem;
  margin-bottom: 8px;
  letter-spacing: -0.02em;
  font-weight: 700;
}

section p.section-lead {
  color: var(--text-muted);
  margin-bottom: 34px;
  max-width: 620px;
}

.grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 18px;
}

.card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 24px;
  transition: transform .18s ease, border-color .18s ease, box-shadow .18s ease;
}
.card:hover { transform: translateY(-3px); border-color: var(--accent-soft); box-shadow: var(--shadow); }

.card .icon {
  font-size: 1.6rem;
  display: block;
  margin-bottom: 10px;
}

.card h3 {
  margin: 0 0 8px;
  font-size: 1.05rem;
  font-weight: 650;
}

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

.stat {
  font-size: 2rem;
  font-weight: 800;
  background: linear-gradient(135deg, var(--accent), var(--accent-2));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  display: block;
  margin-bottom: 6px;
}

table.pricing {
  width: 100%;
  border-collapse: collapse;
  margin-top: 8px;
}

table.pricing th, table.pricing td {
  text-align: left;
  padding: 14px 12px;
  border-bottom: 1px solid var(--border);
  font-size: 0.95rem;
}

table.pricing th {
  color: var(--text-muted);
  font-weight: 600;
  font-size: 0.82rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

table.pricing tbody tr:hover { background: rgba(255,255,255,0.03); }

.badge {
  display: inline-block;
  background: var(--accent-soft);
  color: var(--accent);
  font-size: 0.78rem;
  padding: 5px 14px;
  border-radius: 999px;
  margin-bottom: 14px;
  font-weight: 600;
  letter-spacing: 0.02em;
}

.pilot-box {
  position: relative;
  background: linear-gradient(135deg, rgba(108,140,255,0.14), rgba(176,108,255,0.08));
  border: 1px solid var(--accent-soft);
  border-radius: var(--radius);
  padding: 28px;
  margin-top: 26px;
  overflow: hidden;
}

.pilot-box h3 { margin-top: 0; }

footer.site-footer {
  border-top: 1px solid var(--border);
  padding: 36px 0 50px;
  color: var(--text-muted);
  font-size: 0.85rem;
}

footer.site-footer a { color: var(--text-muted); }
footer.site-footer .links a { margin-right: 16px; }

.footer-logo-badge {
  display: block;
  height: 68px;
  width: auto;
  background: #fff;
  border-radius: 10px;
  padding: 8px 16px;
  margin-bottom: 18px;
}

/* Demo page specifics */

.demo-note {
  background: var(--card);
  border: 1px solid var(--border);
  border-left: 3px solid var(--accent);
  border-radius: 10px;
  padding: 14px 18px;
  font-size: 0.9rem;
  color: var(--text-muted);
  margin-bottom: 28px;
}

.chat-window {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  height: 420px;
  box-shadow: var(--shadow);
}

.chat-messages {
  flex: 1;
  overflow-y: auto;
  padding: 18px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.msg {
  max-width: 80%;
  padding: 11px 15px;
  border-radius: 14px;
  font-size: 0.92rem;
}

.msg.bot {
  background: var(--bg-soft);
  align-self: flex-start;
  border-bottom-left-radius: 3px;
}

.msg.user {
  background: linear-gradient(135deg, var(--accent), var(--accent-2));
  color: #0b0d12;
  align-self: flex-end;
  border-bottom-right-radius: 3px;
}

.msg.typing { color: var(--text-muted); font-style: italic; }

.chat-input-row {
  display: flex;
  border-top: 1px solid var(--border);
  padding: 12px;
  gap: 8px;
}

.chat-input-row input {
  flex: 1;
  min-width: 0;
  background: var(--bg-soft);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 11px 14px;
  color: var(--text);
  font-size: 0.92rem;
}
.chat-input-row input:focus { outline: none; border-color: var(--accent); }

.chat-input-row .btn {
  flex-shrink: 0;
  white-space: nowrap;
}

.product-card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 20px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  transition: transform .18s ease, border-color .18s ease;
}
.product-card:hover { transform: translateY(-3px); border-color: var(--accent-soft); }

.product-card .price {
  color: var(--accent);
  font-weight: 700;
  font-size: 1.05rem;
}

.product-card button {
  margin-top: auto;
}

.modal-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.65);
  display: none;
  align-items: center;
  justify-content: center;
  z-index: 100;
  padding: 20px;
  backdrop-filter: blur(3px);
}

.modal-backdrop.open { display: flex; }

.modal {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 28px;
  max-width: 380px;
  width: 100%;
  box-shadow: var(--shadow);
}

.modal h3 { margin-top: 0; }

.modal input {
  width: 100%;
  background: var(--bg-soft);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 11px 14px;
  color: var(--text);
  margin-bottom: 12px;
  font-size: 0.92rem;
}

.modal .modal-actions {
  display: flex;
  justify-content: flex-end;
  gap: 10px;
  margin-top: 6px;
}

.modal-status {
  font-size: 0.88rem;
  margin-top: 10px;
  min-height: 20px;
}

.modal-status.ok { color: #7bdc9c; }
.modal-status.err { color: #ff8080; }

.mock-before-after {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}
@media (max-width: 640px) {
  .mock-before-after { grid-template-columns: 1fr; }
}

.mock-col {
  background: var(--bg-soft);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 18px;
  font-size: 0.9rem;
}

.mock-col .label {
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--text-muted);
  margin-bottom: 8px;
  display: block;
}

.legal h1, .legal h2 { letter-spacing: -0.01em; }
.legal section { border-top: none; padding-top: 0; }

@media (max-width: 640px) {
  header.site-header .wrap { flex-direction: column; gap: 10px; }
  nav a { margin: 0 10px; }
  .hero { padding: 64px 0 44px; }
  .hero h1 { font-size: 1.9rem; }
  .hero::before { width: 520px; height: 360px; }
  .chat-input-row .btn { padding: 11px 16px; font-size: 0.9rem; }

  table.pricing, table.pricing thead, table.pricing tbody, table.pricing th, table.pricing td, table.pricing tr {
    display: block;
  }
  table.pricing thead { display: none; }
  table.pricing tr {
    background: var(--card);
    border: 1px solid var(--border);
    border-radius: 12px;
    padding: 14px 16px;
    margin-bottom: 12px;
  }
  table.pricing td {
    border-bottom: none;
    padding: 4px 0;
    display: flex;
    justify-content: space-between;
    gap: 12px;
  }
  table.pricing td:first-child { font-weight: 700; color: var(--text); }
  table.pricing td:not(:first-child)::before {
    content: attr(data-label);
    color: var(--text-muted);
    font-size: 0.8rem;
  }
}
