:root {
  --bg: #07090e;
  --bg-soft: #0b0f19;
  --panel: #0f172a;
  --panel-2: #141c2e;
  --border: #1e293b;
  --border-soft: #162032;
  --text: #f8fafc;
  --dim: #94a3b8;
  --dimmer: #64748b;
  --accent: #38bdf8;
  --accent-soft: rgba(56, 189, 248, 0.14);
  --cyan: #0ea5e9;
  --cyan-soft: rgba(14, 165, 233, 0.14);
  --indigo: #6366f1;
  --indigo-soft: rgba(99, 102, 241, 0.14);
  --radius: 14px;
  --max: 1180px;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  background:
    radial-gradient(1100px 520px at 12% -8%, rgba(14, 165, 233, 0.16), transparent 60%),
    radial-gradient(900px 480px at 92% 4%, rgba(99, 102, 241, 0.14), transparent 62%),
    var(--bg);
  color: var(--text);
  font-family: Inter, "Segoe UI", system-ui, -apple-system, sans-serif;
  font-size: 16px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

a { color: var(--accent); text-decoration: none; }
a:hover { color: #7dd3fc; }

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

[lang-hidden] { display: none !important; }

/* ── header ─────────────────────────────────────────────── */
header.site {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(7, 9, 14, 0.88);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border-soft);
}
.bar {
  display: flex;
  align-items: center;
  gap: 18px;
  height: 66px;
}
.brand { display: flex; align-items: center; gap: 12px; font-weight: 700; color: var(--text); font-size: 17px; letter-spacing: 0.2px; }
.brand img { height: 34px; display: block; }
.brand .mark { height: 34px; width: 34px; object-fit: contain; }
nav.links { display: flex; gap: 20px; margin-left: auto; align-items: center; }
nav.links a { color: var(--dim); font-size: 14.5px; transition: color .15s ease; }
nav.links a:hover, nav.links a.on { color: var(--text); }
.lang {
  display: flex;
  gap: 2px;
  border: 1px solid var(--border);
  border-radius: 999px;
  padding: 3px;
  background: var(--panel);
}
.lang button {
  appearance: none;
  border: 0;
  background: transparent;
  color: var(--dim);
  font: inherit;
  font-size: 13px;
  padding: 4px 11px;
  border-radius: 999px;
  cursor: pointer;
  transition: all .15s ease;
}
.lang button:hover { color: var(--text); }
.lang button.on { background: linear-gradient(135deg, var(--cyan), var(--indigo)); color: #ffffff; font-weight: 600; }
.menu-btn { display: none; }

/* ── hero ───────────────────────────────────────────────── */
.hero { padding: 56px 0 54px; }
.hero-logo-box { margin-bottom: 24px; }
.hero-logo-img {
  max-width: 480px;
  width: 100%;
  height: auto;
  display: block;
  filter: drop-shadow(0 0 35px rgba(56, 189, 248, 0.22));
}

.pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  border: 1px solid var(--border);
  background: var(--panel);
  color: var(--dim);
  border-radius: 999px;
  padding: 5px 14px;
  font-size: 13px;
  margin-bottom: 22px;
}
.pill b { color: var(--accent); font-weight: 600; }
h1 {
  font-size: clamp(30px, 5vw, 50px);
  line-height: 1.12;
  margin: 0 0 18px;
  letter-spacing: -0.02em;
}
h1 .accent {
  background: linear-gradient(135deg, #38bdf8 0%, #818cf8 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}
.lead { font-size: 19px; color: var(--dim); max-width: 760px; margin: 0 0 30px; }
.cta { display: flex; gap: 14px; flex-wrap: wrap; }
.btn {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  padding: 12px 24px;
  border-radius: 10px;
  font-weight: 600;
  font-size: 15px;
  border: 1px solid transparent;
  transition: transform .12s ease, filter .12s ease, box-shadow .15s ease;
}
.btn:hover { transform: translateY(-1px); }
.btn-primary {
  background: linear-gradient(135deg, #0ea5e9, #6366f1);
  color: #ffffff;
  border: 1px solid rgba(56, 189, 248, 0.4);
  box-shadow: 0 4px 18px rgba(14, 165, 233, 0.25);
}
.btn-primary:hover { color: #ffffff; filter: brightness(1.10); box-shadow: 0 6px 24px rgba(56, 189, 248, 0.4); }
.btn-ghost { border-color: var(--border); color: var(--text); background: var(--panel); }
.btn-ghost:hover { color: var(--text); border-color: var(--accent); }

.hero-art {
  margin-top: 44px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background:
    linear-gradient(180deg, rgba(14, 165, 233, 0.08), transparent 60%),
    var(--panel);
  padding: 20px;
  box-shadow: 0 24px 60px rgba(0, 0, 0, .45);
}
.caption { color: var(--dimmer); font-size: 13px; margin-top: 12px; text-align: center; }

/* ── stats ──────────────────────────────────────────────── */
.stats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 14px;
  margin: 54px 0 10px;
}
.stat {
  border: 1px solid var(--border);
  background: var(--panel);
  border-radius: var(--radius);
  padding: 20px 18px;
  text-align: center;
  transition: border-color .15s ease;
}
.stat:hover { border-color: rgba(56, 189, 248, 0.4); }
.stat b {
  display: block;
  font-size: 30px;
  background: linear-gradient(135deg, #38bdf8, #818cf8);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  line-height: 1.2;
}
.stat span { color: var(--dim); font-size: 13.5px; }

/* ── sections ───────────────────────────────────────────── */
section { padding: 62px 0; }
.eyebrow {
  color: var(--accent);
  font-size: 13px;
  letter-spacing: .14em;
  text-transform: uppercase;
  margin-bottom: 10px;
}
h2 { font-size: clamp(23px, 3.4vw, 33px); margin: 0 0 12px; letter-spacing: -0.015em; }
.sub { color: var(--dim); max-width: 720px; margin: 0 0 34px; }

.grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.card {
  border: 1px solid var(--border);
  background: var(--panel);
  border-radius: var(--radius);
  padding: 22px;
  transition: border-color .15s ease, transform .15s ease, box-shadow .15s ease;
}
.card:hover {
  border-color: rgba(56, 189, 248, 0.45);
  transform: translateY(-2px);
  box-shadow: 0 12px 28px rgba(0, 0, 0, 0.35);
}
.card h3 { margin: 0 0 8px; font-size: 17.5px; color: var(--text); }
.card p { margin: 0; color: var(--dim); font-size: 14.8px; }
.card .ico { font-size: 20px; margin-bottom: 10px; display: block; }

/* ── chat demo ──────────────────────────────────────────── */
.chat {
  border: 1px solid var(--border);
  background: var(--panel);
  border-radius: var(--radius);
  padding: 18px;
  max-width: 860px;
}
.msg { display: flex; gap: 12px; margin-bottom: 14px; align-items: flex-start; }
.who {
  flex: 0 0 34px;
  height: 34px;
  border-radius: 9px;
  display: grid;
  place-items: center;
  font-size: 12px;
  font-weight: 700;
  background: var(--panel-2);
  border: 1px solid var(--border);
  color: var(--dim);
}
.msg.ai .who {
  background: var(--cyan-soft);
  color: var(--accent);
  border-color: rgba(56, 189, 248, 0.4);
}
.bubble {
  background: var(--bg-soft);
  border: 1px solid var(--border-soft);
  border-radius: 12px;
  padding: 11px 14px;
  font-size: 14.6px;
  flex: 1;
}
.msg.ai .bubble { border-color: rgba(56, 189, 248, 0.28); }
.tool {
  font-family: "JetBrains Mono", Consolas, monospace;
  font-size: 13px;
  color: var(--accent);
  background: var(--accent-soft);
  border-radius: 7px;
  padding: 1px 7px;
}
.tool.ok { color: #34d399; background: rgba(52, 211, 153, 0.12); }

/* ── chips / table ──────────────────────────────────────── */
.chips { display: flex; flex-wrap: wrap; gap: 9px; margin-top: 26px; }
.chip {
  border: 1px solid var(--border);
  background: var(--panel);
  border-radius: 999px;
  padding: 6px 14px;
  font-size: 13.5px;
  color: var(--dim);
  transition: all .15s ease;
}
.chip:hover { color: var(--text); border-color: var(--accent); }

table.simple {
  width: 100%;
  border-collapse: collapse;
  font-size: 14.5px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
}
table.simple th, table.simple td {
  text-align: left;
  padding: 11px 14px;
  border-bottom: 1px solid var(--border-soft);
}
table.simple th { background: var(--panel-2); color: var(--text); font-weight: 600; }
table.simple tr:last-child td { border-bottom: 0; }
table.simple td { color: var(--dim); }
table.simple td:first-child { color: var(--text); }

/* ── cta + footer ───────────────────────────────────────── */
.cta-band {
  border: 1px solid var(--border);
  background: linear-gradient(135deg, rgba(14, 165, 233, 0.12), rgba(99, 102, 241, 0.10));
  border-radius: var(--radius);
  padding: 38px;
  text-align: center;
}
footer.site {
  border-top: 1px solid var(--border-soft);
  padding: 30px 0 42px;
  color: var(--dimmer);
  font-size: 13.5px;
}
footer.site .links { display: flex; gap: 18px; flex-wrap: wrap; margin-bottom: 10px; }
footer.site a { color: var(--dim); }
footer.site a:hover { color: var(--text); }

@media (max-width: 900px) {
  .stats { grid-template-columns: repeat(2, 1fr); }
  .grid { grid-template-columns: 1fr; }
  nav.links {
    display: none;
    position: absolute;
    top: 66px;
    right: 12px;
    left: 12px;
    flex-direction: column;
    align-items: flex-start;
    gap: 12px;
    background: var(--panel);
    border: 1px solid var(--border);
    border-radius: 12px;
    padding: 16px;
  }
  nav.links.open { display: flex; }
  .menu-btn {
    display: block;
    margin-left: auto;
    background: var(--panel);
    border: 1px solid var(--border);
    color: var(--text);
    border-radius: 9px;
    padding: 8px 12px;
    font: inherit;
    cursor: pointer;
  }
  .lang { margin-left: 0; }
}
@media (max-width: 560px) {
  .stats { grid-template-columns: 1fr; }
  .cta-band { padding: 28px 20px; }
}
