:root {
  --bg: #0b0b10;
  --bg-alt: #111118;
  --card: #16161f;
  --line: #262633;
  --text: #ececf1;
  --muted: #9a9aab;
  --a: #f97316;
  --b: #ec4899;
  --radius: 16px;
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: Inter, system-ui, -apple-system, sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
a { color: inherit; text-decoration: none; }
.container { width: min(1120px, 92%); margin: 0 auto; }
.grad { background: linear-gradient(90deg, var(--a), var(--b)); -webkit-background-clip: text; background-clip: text; color: transparent; }

/* Buttons */
.btn {
  display: inline-block; padding: 12px 22px; border-radius: 999px; border: 0; cursor: pointer;
  font: 600 15px/1 Inter, sans-serif; color: #fff;
  background: linear-gradient(90deg, var(--a), var(--b));
  transition: transform .15s, box-shadow .15s;
}
.btn:hover { transform: translateY(-1px); box-shadow: 0 8px 24px -8px var(--b); }
.btn--ghost { background: transparent; border: 1px solid var(--line); }
.btn--ghost:hover { box-shadow: none; border-color: var(--muted); }
.btn--sm { padding: 9px 16px; font-size: 14px; }

/* Nav */
.nav { position: sticky; top: 0; z-index: 10; backdrop-filter: blur(12px); background: rgba(11,11,16,.75); border-bottom: 1px solid var(--line); }
.nav__inner { display: flex; align-items: center; justify-content: space-between; height: 64px; }
.logo { display: flex; align-items: center; gap: 10px; font-weight: 800; font-size: 18px; }
.nav__links { display: flex; align-items: center; gap: 28px; font-size: 15px; color: var(--muted); }
.nav__links a:not(.btn):hover { color: var(--text); }
.nav__links .btn { color: #fff; }
.nav__toggle { display: none; background: none; border: 0; color: var(--text); font-size: 24px; cursor: pointer; }

/* Hero */
.hero { padding: 96px 0 72px; background: radial-gradient(60% 50% at 75% 20%, rgba(236,72,153,.18), transparent), radial-gradient(50% 40% at 10% 10%, rgba(249,115,22,.14), transparent); }
.hero__grid { display: grid; grid-template-columns: 1.1fr 1fr; gap: 56px; align-items: center; }
.pill { display: inline-block; padding: 6px 12px; border: 1px solid var(--line); border-radius: 999px; font-size: 13px; color: var(--muted); margin-bottom: 20px; }
h1 { font-size: clamp(38px, 5.2vw, 60px); line-height: 1.08; letter-spacing: -0.03em; font-weight: 800; }
.lead { margin-top: 20px; font-size: 18px; color: var(--muted); max-width: 540px; }
.hero__cta { display: flex; gap: 12px; margin-top: 32px; flex-wrap: wrap; }
.hero__stats { list-style: none; display: flex; gap: 24px; margin-top: 44px; flex-wrap: wrap; }
.hero__stats li { display: flex; flex-direction: column; }
.hero__stats b { font-size: 18px; }
.hero__stats span { font-size: 13px; color: var(--muted); }

/* Chat mock */
.chat { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; box-shadow: 0 30px 80px -30px rgba(236,72,153,.35); }
.chat__bar { display: flex; align-items: center; gap: 6px; padding: 12px 16px; border-bottom: 1px solid var(--line); font-size: 13px; color: var(--muted); }
.chat__bar i { width: 10px; height: 10px; border-radius: 50%; background: var(--line); }
.chat__bar span { margin-left: 8px; }
.chat__body { padding: 20px; min-height: 340px; display: flex; flex-direction: column; gap: 12px; font-size: 14.5px; }
.msg { max-width: 88%; padding: 10px 14px; border-radius: 14px; animation: pop .3s ease; }
.msg--user { align-self: flex-end; background: linear-gradient(90deg, var(--a), var(--b)); color: #fff; border-bottom-right-radius: 4px; }
.msg--bot { align-self: flex-start; background: #1f1f2b; border-bottom-left-radius: 4px; }
.msg--tool { align-self: flex-start; font-family: ui-monospace, monospace; font-size: 12.5px; color: #a7f3d0; background: #0f1d18; border: 1px solid #1d3a30; }
.cite { display: inline-block; margin-top: 6px; font-size: 12px; color: var(--muted); border: 1px solid var(--line); border-radius: 6px; padding: 2px 6px; margin-right: 4px; }
.typing::after { content: "▍"; animation: blink 1s infinite; margin-left: 2px; }
@keyframes pop { from { opacity: 0; transform: translateY(6px); } to { opacity: 1; transform: none; } }
@keyframes blink { 50% { opacity: 0; } }

/* Logos */
.logos { padding: 28px 0 8px; text-align: center; }
.logos p { font-size: 13px; color: var(--muted); text-transform: uppercase; letter-spacing: .12em; }
.logos__row { display: flex; justify-content: center; flex-wrap: wrap; gap: 14px 36px; margin-top: 16px; color: #6b6b7d; font-weight: 600; }

/* Sections */
.section { padding: 96px 0; }
.section--alt { background: var(--bg-alt); border-block: 1px solid var(--line); }
.section__title { font-size: clamp(28px, 3.6vw, 40px); letter-spacing: -0.02em; text-align: center; }
.section__sub { text-align: center; color: var(--muted); margin-top: 12px; }
.left { text-align: left; }

.cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; margin-top: 48px; }
.card { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 28px; transition: border-color .2s, transform .2s; }
.card:hover { border-color: #3a3a4d; transform: translateY(-3px); }
.card__icon { font-size: 28px; margin-bottom: 14px; }
.card h3 { font-size: 19px; margin-bottom: 8px; }
.card p { color: var(--muted); }

.steps { list-style: none; display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; margin-top: 48px; }
.steps li { padding: 28px; border: 1px solid var(--line); border-radius: var(--radius); background: var(--card); }
.steps span { display: inline-grid; place-items: center; width: 36px; height: 36px; border-radius: 50%; font-weight: 700; background: linear-gradient(90deg, var(--a), var(--b)); margin-bottom: 14px; }
.steps h3 { margin-bottom: 6px; }
.steps p { color: var(--muted); }

.usecases { display: grid; grid-template-columns: repeat(2, 1fr); gap: 20px; margin-top: 48px; }
.uc { padding: 28px; border-radius: var(--radius); border: 1px solid var(--line); background: linear-gradient(180deg, var(--card), transparent); }
.uc h3 { margin-bottom: 6px; }
.uc p { color: var(--muted); }

.security { display: grid; grid-template-columns: 1fr 1fr; gap: 48px; align-items: center; }
.checks { list-style: none; display: grid; gap: 14px; }
.checks li { padding-left: 32px; position: relative; }
.checks li::before { content: "✓"; position: absolute; left: 0; top: 0; width: 22px; height: 22px; border-radius: 50%; display: grid; place-items: center; font-size: 12px; font-weight: 700; background: rgba(16,185,129,.15); color: #34d399; }

.cta { text-align: center; padding: 56px 24px; border-radius: 24px; border: 1px solid var(--line); background: radial-gradient(80% 120% at 50% 0%, rgba(236,72,153,.2), transparent), var(--card); }
.cta h2 { font-size: clamp(28px, 3.6vw, 40px); letter-spacing: -0.02em; }
.cta p { color: var(--muted); margin-top: 10px; }
.cta__form { display: flex; justify-content: center; gap: 10px; margin-top: 28px; flex-wrap: wrap; }
.cta__form input { padding: 12px 16px; border-radius: 999px; border: 1px solid var(--line); background: var(--bg); color: var(--text); font: 15px Inter, sans-serif; min-width: 220px; }
.cta__form input:focus { outline: none; border-color: var(--b); }
.cta__note { min-height: 1.6em; font-size: 14px; }

.footer { padding: 32px 0; border-top: 1px solid var(--line); color: var(--muted); font-size: 14px; }
.footer__inner { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 12px; }
.footer a:hover { color: var(--text); }

/* Reveal on scroll */
.reveal { opacity: 0; transform: translateY(16px); transition: opacity .6s ease, transform .6s ease; }
.reveal.is-visible { opacity: 1; transform: none; }

/* Responsive */
@media (max-width: 900px) {
  .hero__grid, .security { grid-template-columns: 1fr; }
  .cards, .steps { grid-template-columns: 1fr; }
  .usecases { grid-template-columns: 1fr; }
  .nav__toggle { display: block; }
  .nav__links { display: none; position: absolute; top: 64px; left: 0; right: 0; flex-direction: column; padding: 20px; background: var(--bg); border-bottom: 1px solid var(--line); }
  .nav__links.open { display: flex; }
  .hero { padding-top: 64px; }
}

@media (prefers-reduced-motion: reduce) {
  * { animation: none !important; transition: none !important; }
  .reveal { opacity: 1; transform: none; }
}
