/* Palette and radii — the app's DESIGN_SYSTEM.md, so the site and the app read as one product */
:root {
  --font: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  --gradient-bg: linear-gradient(135deg, #eef2ff 0%, #e8e0f0 40%, #dbeafe 100%);
  --glass-bg: rgba(255, 255, 255, 0.7);
  --glass-bg-strong: rgba(255, 255, 255, 0.85);
  --glass-border: rgba(0, 0, 0, 0.06);
  --surface-bg: #ffffff;
  --surface-hover: #f1f3f9;
  --surface-border: rgba(0, 0, 0, 0.08);
  --text-primary: #1e293b;
  --text-secondary: #475569;
  --text-muted: #64748b;
  --text-dim: #94a3b8;
  --accent: #6366f1;
  --accent-hover: #4f46e5;
  --accent-light: rgba(99, 102, 241, 0.08);
  --accent-text: #4f46e5;
  --accent-gradient: linear-gradient(135deg, #6366f1, #8b5cf6);
  --success: #10b981;
  --success-light: #ecfdf5;
  --warning: #f59e0b;
  --warning-light: #fffbeb;
  --code-bg: #1e293b;
  --code-text: #a5f3fc;
  --shadow-sm: 0 1px 2px rgba(0, 0, 0, 0.05);
  --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.07), 0 2px 4px -2px rgba(0, 0, 0, 0.05);
  --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.08), 0 4px 6px -4px rgba(0, 0, 0, 0.04);
  --shadow-accent: 0 2px 8px rgba(99, 102, 241, 0.3);
  --radius-sm: 6px;
  --radius-md: 8px;
  --radius-lg: 12px;
  --radius-xl: 16px;
  --radius-full: 99px;
  --transition: 0.15s ease;
  --width: 1120px;
}

*, *::before, *::after { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: var(--font);
  font-size: 16px;
  line-height: 1.6;
  color: var(--text-primary);
  background: var(--gradient-bg) fixed;
  -webkit-font-smoothing: antialiased;
}

a { color: var(--accent-text); text-decoration: none; }
a:hover { text-decoration: underline; }

h1, h2, h3 { line-height: 1.25; letter-spacing: -0.025em; margin: 0 0 12px; }
h1 { font-size: clamp(32px, 5vw, 48px); font-weight: 700; }
h2 { font-size: clamp(24px, 3.2vw, 32px); font-weight: 700; }
h3 { font-size: 17px; font-weight: 600; }
p { margin: 0 0 12px; }

code {
  font-family: ui-monospace, 'SFMono-Regular', Menlo, monospace;
  font-size: 0.9em;
  background: var(--accent-light);
  color: var(--accent-text);
  padding: 1px 6px;
  border-radius: var(--radius-sm);
}

.container { max-width: var(--width); margin: 0 auto; padding: 0 24px; }

/* ---------- header ---------- */

.header {
  position: sticky;
  top: 0;
  z-index: 10;
  background: var(--glass-bg-strong);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--glass-border);
}

.header .container { display: flex; align-items: center; gap: 24px; height: 64px; }

.logo { display: flex; align-items: center; gap: 10px; font-weight: 700; font-size: 17px; color: var(--text-primary); }
.logo:hover { text-decoration: none; }
.logo img { width: 30px; height: 30px; }

.nav { display: flex; gap: 20px; margin-left: auto; }
.nav a { color: var(--text-secondary); font-size: 14px; font-weight: 500; }
.nav a:hover { color: var(--text-primary); text-decoration: none; }

.header-actions { display: flex; gap: 8px; align-items: center; }

.lang { display: flex; gap: 2px; margin-right: 4px; }
.lang a {
  padding: 4px 7px; border-radius: var(--radius-sm);
  color: var(--text-muted); font-size: 12px; font-weight: 600; letter-spacing: .02em;
}
.lang a:hover { color: var(--text-primary); background: var(--surface-hover); text-decoration: none; }
.lang a[aria-current] { color: var(--accent-text); background: var(--accent-light); }

/* ---------- buttons ---------- */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  height: 40px;
  padding: 0 18px;
  border-radius: var(--radius-md);
  font: 600 14px var(--font);
  border: 1px solid transparent;
  cursor: pointer;
  transition: background var(--transition), box-shadow var(--transition), transform var(--transition);
  white-space: nowrap;
}
.btn:hover { text-decoration: none; }
.btn-primary { background: var(--accent-gradient); color: #fff; box-shadow: var(--shadow-accent); }
.btn-primary:hover { transform: translateY(-1px); box-shadow: 0 4px 14px rgba(99, 102, 241, 0.4); }
.btn-ghost { background: var(--surface-bg); color: var(--text-primary); border-color: var(--surface-border); }
.btn-ghost:hover { background: var(--surface-hover); }
.btn-lg { height: 48px; padding: 0 26px; font-size: 15px; border-radius: var(--radius-lg); }

/* ---------- sections ---------- */

section { padding: 80px 0; }
.section-head { max-width: 680px; margin: 0 auto 48px; text-align: center; }
.section-head p { color: var(--text-secondary); font-size: 17px; }

.eyebrow {
  display: inline-block;
  margin-bottom: 14px;
  padding: 4px 12px;
  border-radius: var(--radius-full);
  background: var(--accent-light);
  color: var(--accent-text);
  font-size: 13px;
  font-weight: 600;
}

.card {
  background: var(--glass-bg);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius-xl);
  box-shadow: var(--shadow-md);
  padding: 28px;
}
.card p { color: var(--text-secondary); font-size: 15px; margin: 0; }

.grid { display: grid; gap: 20px; }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-2 { grid-template-columns: repeat(2, 1fr); }

.icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  margin-bottom: 16px;
  border-radius: var(--radius-lg);
  background: var(--accent-light);
  font-size: 22px;
}

/* ---------- hero ---------- */

.hero { padding: 72px 0 64px; }
.hero .container { display: grid; grid-template-columns: 1fr 1.05fr; gap: 56px; align-items: center; }
.hero h1 span { background: var(--accent-gradient); -webkit-background-clip: text; background-clip: text; color: transparent; }
.hero-lead { font-size: 19px; color: var(--text-secondary); margin-bottom: 28px; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-bottom: 22px; }
.hero-note { font-size: 14px; color: var(--text-muted); }

/* Static mock of the chat: question → SQL → table, the whole product in one picture */
.demo { padding: 0; overflow: hidden; box-shadow: var(--shadow-lg); background: var(--glass-bg-strong); }
.demo-bar { display: flex; align-items: center; gap: 6px; padding: 12px 16px; border-bottom: 1px solid var(--glass-border); }
.demo-bar i { width: 10px; height: 10px; border-radius: 50%; background: #e2e8f0; }
.demo-bar span { margin-left: 10px; font-size: 12px; color: var(--text-dim); }
.demo-body { padding: 20px; display: flex; flex-direction: column; gap: 14px; }
.bubble { max-width: 88%; padding: 10px 14px; border-radius: var(--radius-lg); font-size: 14px; }
.bubble-user { align-self: flex-end; background: var(--accent-gradient); color: #fff; border-bottom-right-radius: 4px; }
.bubble-ai { align-self: flex-start; max-width: 100%; width: 100%; background: var(--surface-bg); border: 1px solid var(--surface-border); border-bottom-left-radius: 4px; }
.bubble-ai p { margin: 0 0 10px; color: var(--text-secondary); }
.sql {
  margin: 0 0 12px;
  padding: 10px 12px;
  border-radius: var(--radius-md);
  background: var(--code-bg);
  color: var(--code-text);
  font: 12px/1.55 ui-monospace, Menlo, monospace;
  white-space: pre;
  overflow-x: auto;
}
.sql b { color: #c4b5fd; font-weight: 500; }
table.result { width: 100%; border-collapse: collapse; font-size: 13px; }
.result th { text-align: left; font-weight: 600; color: var(--text-muted); padding: 6px 8px; border-bottom: 1px solid var(--surface-border); }
.result td { padding: 6px 8px; border-bottom: 1px solid var(--surface-border); }
.result tr:last-child td { border-bottom: 0; }
.result .num { text-align: right; font-variant-numeric: tabular-nums; }

/* ---------- problem ---------- */

.problem .card { text-align: left; }
.problem h3 { display: flex; gap: 10px; align-items: baseline; }

/* ---------- steps ---------- */

.steps { counter-reset: step; }
.step { position: relative; padding-top: 56px; }
.step::before {
  counter-increment: step;
  content: counter(step);
  position: absolute;
  top: 24px;
  left: 28px;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: var(--accent-gradient);
  color: #fff;
  font: 700 14px/28px var(--font);
  text-align: center;
}

/* ---------- architecture diagram ---------- */

.diagram { margin-top: 32px; padding: 28px; }
.diagram svg { display: block; width: 100%; height: auto; }

/* ---------- video ---------- */

.video-frame {
  position: relative;
  max-width: 880px;
  margin: 0 auto;
  aspect-ratio: 16 / 9;
  border-radius: var(--radius-xl);
  overflow: hidden;
  background: var(--code-bg);
  box-shadow: var(--shadow-lg);
}
.video-frame video { width: 100%; height: 100%; display: block; }
.video-note {
  margin: 14px auto 0;
  text-align: center;
  font-size: 14px;
  color: var(--text-muted);
}
.page .video-frame { margin: 28px 0 8px; }

/* ---------- security list ---------- */

.checks { list-style: none; margin: 0; padding: 0; display: grid; gap: 14px; }
/* Список у картці: без цього рядок упирається в край блока (padding: 0 вище перекриває .card) */
.checks.card { padding: 26px 28px; }
.checks li { position: relative; padding-left: 32px; color: var(--text-secondary); font-size: 15px; }
.checks li::before {
  content: '✓';
  position: absolute;
  left: 0;
  top: 1px;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: var(--success-light);
  color: var(--success);
  font-size: 13px;
  font-weight: 700;
  line-height: 22px;
  text-align: center;
}
.checks li strong { color: var(--text-primary); }
.honest { margin-top: 20px; padding: 14px 16px; border-radius: var(--radius-lg); background: var(--warning-light); color: var(--text-secondary); font-size: 14px; }

/* ---------- databases ---------- */

.dbs { display: flex; flex-wrap: wrap; justify-content: center; gap: 12px; }
.db { display: flex; align-items: center; gap: 10px; padding: 12px 18px; border-radius: var(--radius-full); background: var(--surface-bg); border: 1px solid var(--surface-border); font-weight: 600; font-size: 15px; }
.badge { padding: 2px 8px; border-radius: var(--radius-full); font-size: 12px; font-weight: 600; }
.badge-ok { background: var(--success-light); color: var(--success); }
.badge-soon { background: var(--warning-light); color: #b45309; }

/* ---------- pilot / CTA ---------- */

.cta { text-align: center; padding: 48px; background: var(--accent-gradient); color: #fff; border: 0; }
.cta h2 { color: #fff; }
.cta p { color: rgba(255, 255, 255, 0.88); font-size: 17px; max-width: 640px; margin: 0 auto 24px; }
.cta .btn-ghost { border-color: transparent; }
.cta-actions { display: flex; flex-wrap: wrap; justify-content: center; gap: 12px; }
.cta .btn-outline { background: transparent; color: #fff; border-color: rgba(255, 255, 255, 0.5); }
.cta .btn-outline:hover { background: rgba(255, 255, 255, 0.12); }

/* ---------- faq ---------- */

.faq { max-width: 780px; margin: 0 auto; display: grid; gap: 12px; }
.faq details { background: var(--glass-bg); border: 1px solid var(--glass-border); border-radius: var(--radius-lg); padding: 16px 20px; }
.faq summary { cursor: pointer; font-weight: 600; list-style: none; display: flex; justify-content: space-between; gap: 16px; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: '+'; color: var(--accent); font-size: 20px; line-height: 1; }
.faq details[open] summary::after { content: '−'; }
.faq details p { margin: 12px 0 0; color: var(--text-secondary); font-size: 15px; }

/* ---------- docs pages (connect, privacy) ---------- */

.page { padding: 56px 0 80px; }
.page .container { max-width: 820px; }
.page h1 { font-size: clamp(28px, 4vw, 40px); }
.page h2 { font-size: 22px; margin-top: 44px; }
.page p, .page li { color: var(--text-secondary); }
.page ol, .page ul { padding-left: 22px; }
.page li { margin-bottom: 8px; }
.lead { font-size: 18px; }

pre.cmd {
  margin: 16px 0;
  padding: 16px 18px;
  border-radius: var(--radius-lg);
  background: var(--code-bg);
  color: var(--code-text);
  font: 13px/1.6 ui-monospace, Menlo, monospace;
  overflow-x: auto;
}
pre.cmd .c { color: #64748b; }

table.env { width: 100%; border-collapse: collapse; margin: 16px 0; font-size: 14px; background: var(--surface-bg); border-radius: var(--radius-lg); overflow: hidden; box-shadow: var(--shadow-sm); }
.env th, .env td { text-align: left; padding: 10px 14px; border-bottom: 1px solid var(--surface-border); vertical-align: top; }
.env th { background: var(--surface-hover); font-weight: 600; color: var(--text-muted); }
.env tr:last-child td { border-bottom: 0; }

.note { margin: 16px 0; padding: 14px 16px; border-radius: var(--radius-lg); background: var(--accent-light); color: var(--text-secondary); font-size: 15px; }

/* ---------- footer ---------- */

.footer { padding: 40px 0; border-top: 1px solid var(--glass-border); background: var(--glass-bg); }
.footer .container { display: flex; flex-wrap: wrap; gap: 16px 32px; align-items: center; justify-content: space-between; font-size: 14px; color: var(--text-muted); }
.footer nav { display: flex; flex-wrap: wrap; gap: 20px; }
.footer a { color: var(--text-secondary); }

/* ---------- responsive ---------- */

@media (max-width: 960px) {
  .hero .container { grid-template-columns: 1fr; gap: 40px; }
  .grid-3 { grid-template-columns: 1fr; }
  .nav { display: none; }
  .header-actions { margin-left: auto; }
}

@media (max-width: 640px) {
  section { padding: 56px 0; }
  .grid-2 { grid-template-columns: 1fr; }
  .header-actions .btn-ghost { display: none; }
  .cta { padding: 32px 20px; }
  .card { padding: 22px; }
  .checks.card { padding: 22px; }
  .step { padding-top: 56px; }
  .step::before { top: 20px; left: 22px; }
  /* the diagram is unreadable squeezed to a phone width — let it scroll instead */
  .diagram { padding: 16px; overflow-x: auto; }
  .diagram svg { min-width: 720px; }
}
