:root {
    --bg: #f6f8fb; --panel: #ffffff; --text: #0f1a2e; --muted: #5b6577; --line: #e3e8ef; --soft: #eef3fa;
    --blue: #1f6bff; --cyan: #10cfe3; --accent: #2457f5; --accent-text: #fff; --ok: #1f8a4c; --danger: #c93636;
    --grad: linear-gradient(135deg, #1f6bff 0%, #10cfe3 100%);
    --shadow: 0 1px 2px rgba(15, 26, 46, .06), 0 8px 30px rgba(15, 26, 46, .07);
    color-scheme: light;
  }
  @media (prefers-color-scheme: dark) {
    :root:not([data-theme="light"]) { --bg: #0a1022; --panel: #111a31; --text: #e8edf7; --muted: #9aa6bd; --line: #223050; --soft: #15203b;
      --accent: #5b8cff; --accent-text: #08101f; --shadow: 0 1px 2px rgba(0,0,0,.3), 0 8px 30px rgba(0,0,0,.35); color-scheme: dark; }
  }
  :root[data-theme="dark"] { --bg: #0a1022; --panel: #111a31; --text: #e8edf7; --muted: #9aa6bd; --line: #223050; --soft: #15203b;
    --accent: #5b8cff; --accent-text: #08101f; --shadow: 0 1px 2px rgba(0,0,0,.3), 0 8px 30px rgba(0,0,0,.35); color-scheme: dark; }
  :root[data-resolved="dark"] .logo-l, :root:not([data-resolved="dark"]) .logo-d { display: none !important; }
  * { box-sizing: border-box; }
  html { scroll-behavior: smooth; }
  body { margin: 0; font: 16px/1.6 system-ui, -apple-system, "Segoe UI", Inter, Roboto, sans-serif; background: var(--bg); color: var(--text); }
  a { color: inherit; }
  .wrap { max-width: 1160px; margin: 0 auto; padding: 0 20px; }
  .btn { display: inline-flex; align-items: center; gap: 8px; border-radius: 10px; padding: 11px 18px; font: inherit; font-weight: 600;
         border: 1px solid var(--line); background: var(--panel); color: var(--text); text-decoration: none; cursor: pointer; white-space: nowrap; }
  .btn.primary { background: var(--grad); color: #fff; border: none; box-shadow: 0 6px 18px rgba(31, 107, 255, .3); }
  .btn.small { padding: 7px 13px; font-size: 14px; }
  .btn:focus-visible { outline: 3px solid color-mix(in srgb, var(--blue) 50%, transparent); outline-offset: 2px; }
  /* header */
  header { position: sticky; top: 0; z-index: 10; background: color-mix(in srgb, var(--bg) 85%, transparent); backdrop-filter: blur(10px);
           border-bottom: 1px solid var(--line); }
  .bar { display: flex; align-items: center; gap: 22px; height: 66px; }
  .bar .logo img { height: 30px; display: block; }
  .bar nav { display: flex; gap: 22px; margin-left: 12px; }
  .bar nav a { text-decoration: none; color: var(--muted); font-size: 15px; } .bar nav a:hover { color: var(--text); }
  .bar .right { margin-left: auto; display: flex; gap: 10px; align-items: center; }
  .theme { border: 1px solid var(--line); background: var(--panel); color: var(--muted); border-radius: 8px; width: 36px; height: 36px; cursor: pointer; }
  @media (max-width: 860px) { .bar nav { display: none; } }
  @media (max-width: 520px) { .theme { display: none; } .bar { gap: 10px; } .bar .logo img { height: 24px; } .bar .right { gap: 6px; } }
  /* hero */
  .hero { padding: 70px 0 50px; display: grid; grid-template-columns: 1.1fr 1fr; gap: 48px; align-items: center; }
  @media (max-width: 960px) { .hero { grid-template-columns: 1fr; padding-top: 40px; } }
  .eyebrow { display: inline-flex; gap: 8px; align-items: center; font-size: 13px; font-weight: 600; color: var(--blue);
             background: color-mix(in srgb, var(--blue) 10%, transparent); padding: 5px 12px; border-radius: 999px; }
  h1 { font-size: clamp(36px, 5.2vw, 58px); line-height: 1.07; letter-spacing: -.025em; margin: 18px 0 18px; }
  h1 .g { background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; }
  .lead { font-size: 19px; color: var(--muted); max-width: 560px; margin: 0 0 28px; }
  .cta { display: flex; gap: 12px; flex-wrap: wrap; }
  .proof { display: flex; gap: 22px; flex-wrap: wrap; margin-top: 28px; color: var(--muted); font-size: 14px; }
  .proof b { color: var(--text); }
  /* demo card */
  .demo { background: var(--panel); border: 1px solid var(--line); border-radius: 20px; box-shadow: var(--shadow); padding: 22px; position: relative; overflow: hidden; }
  .demo::before { content: ""; position: absolute; inset: 0 0 auto 0; height: 4px; background: var(--grad); }
  .demo-head { display: flex; align-items: center; gap: 12px; }
  .avatar { width: 48px; height: 48px; border-radius: 14px; background: var(--grad); display: grid; place-items: center; flex: none; }
  .avatar img { width: 30px; height: 30px; filter: brightness(0) invert(1); }
  .demo-head .who { flex: 1; } .demo-head .who b { display: block; } .demo-head .who span { color: var(--muted); font-size: 14px; }
  .pill { font-size: 12px; font-weight: 600; padding: 4px 10px; border-radius: 999px; border: 1px solid var(--line); color: var(--muted); }
  .pill.live { border-color: #19b36b; color: #19b36b; } .pill.live::before { content: "● "; }
  .chat { height: 300px; overflow-y: auto; margin: 16px 0; padding: 14px; border-radius: 14px; background: var(--soft); display: flex; flex-direction: column; gap: 8px; }
  .msg { max-width: 85%; padding: 9px 13px; border-radius: 14px; font-size: 15px; line-height: 1.45; }
  .msg.agent { background: var(--panel); border: 1px solid var(--line); align-self: flex-start; border-bottom-left-radius: 4px; }
  .msg.user { background: var(--grad); color: #fff; align-self: flex-end; border-bottom-right-radius: 4px; }
  .msg.user.interim { opacity: .65; }
  .msg.sys { align-self: center; font-size: 13px; color: var(--muted); background: none; padding: 2px; text-align: center; }
  .chat .empty { margin: auto; text-align: center; color: var(--muted); font-size: 14px; max-width: 300px; }
  .demo-controls { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; }
  .call { width: 54px; height: 54px; border-radius: 50%; border: none; cursor: pointer; display: grid; place-items: center; background: var(--grad);
          box-shadow: 0 6px 18px rgba(31, 107, 255, .35); color: #fff; flex: none; }
  .call.end { background: #e5484d; box-shadow: 0 6px 18px rgba(229, 72, 77, .35); }
  .call svg { width: 24px; height: 24px; }
  .call.pulse { animation: pulse 1.6s infinite; }
  @keyframes pulse { 0% { box-shadow: 0 0 0 0 rgba(16, 207, 227, .55); } 70% { box-shadow: 0 0 0 16px rgba(16, 207, 227, 0); } 100% { box-shadow: 0 0 0 0 rgba(16, 207, 227, 0); } }
  @media (prefers-reduced-motion: reduce) { .call.pulse { animation: none; } html { scroll-behavior: auto; } }
  .demo-controls .info { flex: 1; min-width: 160px; font-size: 14px; color: var(--muted); }
  .demo-controls .info b { color: var(--text); font-variant-numeric: tabular-nums; }
  .type { display: none; gap: 8px; margin-top: 10px; } .type.on { display: flex; }
  .type input { flex: 1; font: inherit; padding: 9px 12px; border-radius: 10px; border: 1px solid var(--line); background: var(--bg); color: var(--text); }
  .note { font-size: 12px; color: var(--muted); margin-top: 10px; }
  /* sections */
  section { padding: 72px 0; }
  .center { text-align: center; }
  h2 { font-size: clamp(28px, 3.6vw, 40px); letter-spacing: -.02em; line-height: 1.15; margin: 0 0 12px; }
  .sub { color: var(--muted); font-size: 18px; max-width: 640px; margin: 0 auto 40px; }
  .logos { padding: 26px 0 10px; }
  .logos p { text-align: center; color: var(--muted); font-size: 14px; margin: 0 0 16px; }
  .logo-row { display: flex; flex-wrap: wrap; justify-content: center; gap: 14px; }
  .logo-row span { display: inline-flex; align-items: center; gap: 8px; padding: 8px 14px; background: var(--panel); border: 1px solid var(--line);
                   border-radius: 10px; font-size: 14px; font-weight: 500; }
  .logo-row img { height: 22px; width: 22px; object-fit: contain; border-radius: 5px; }
  :root[data-resolved="dark"] .logo-row img { background: #fff; padding: 2px; }
  .steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; counter-reset: s; }
  @media (max-width: 860px) { .steps { grid-template-columns: 1fr; } }
  .card { background: var(--panel); border: 1px solid var(--line); border-radius: 16px; padding: 24px; }
  .steps .card::before { counter-increment: s; content: counter(s); display: grid; place-items: center; width: 34px; height: 34px; border-radius: 10px;
                         background: var(--grad); color: #fff; font-weight: 700; margin-bottom: 14px; }
  .card h3 { margin: 0 0 6px; font-size: 18px; } .card p { margin: 0; color: var(--muted); font-size: 15px; }
  .grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
  @media (max-width: 960px) { .grid { grid-template-columns: repeat(2, 1fr); } } @media (max-width: 620px) { .grid { grid-template-columns: 1fr; } }
  .ic { width: 40px; height: 40px; border-radius: 11px; display: grid; place-items: center; margin-bottom: 14px;
        background: color-mix(in srgb, var(--blue) 12%, transparent); color: var(--blue); }
  .ic svg { width: 21px; height: 21px; }
  .uses { display: grid; grid-template-columns: repeat(5, 1fr); gap: 14px; }
  @media (max-width: 960px) { .uses { grid-template-columns: repeat(2, 1fr); } } @media (max-width: 520px) { .uses { grid-template-columns: 1fr; } }
  .uses .card { padding: 18px; } .uses .card h3 { font-size: 16px; }
  /* pricing */
  .plans { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 14px; align-items: stretch; }
.plan.enterprise { background: color-mix(in srgb, var(--blue) 5%, var(--panel)); }
.plan.enterprise .price { background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; }
  .plan { display: flex; flex-direction: column; gap: 4px; }
  .plan.pop { border: 2px solid var(--blue); position: relative; }
  .plan.pop .tag { position: absolute; top: -12px; left: 50%; transform: translateX(-50%); background: var(--grad); color: #fff; font-size: 12px;
                   font-weight: 700; padding: 3px 12px; border-radius: 999px; white-space: nowrap; }
  .plan .name { font-weight: 700; font-size: 18px; }
  .plan .price { font-size: 40px; font-weight: 800; letter-spacing: -.02em; margin: 6px 0 0; } .plan .price small { font-size: 15px; color: var(--muted); font-weight: 500; }
  .plan ul { list-style: none; padding: 0; margin: 14px 0 20px; display: grid; gap: 8px; font-size: 15px; }
  .plan li::before { content: "✓"; color: var(--ok); font-weight: 700; margin-right: 8px; }
  .plan .btn { margin-top: auto; justify-content: center; }
  .fineprint { color: var(--muted); font-size: 14px; text-align: center; margin-top: 18px; }
  /* faq */
  .faq { max-width: 780px; margin: 0 auto; }
  details { background: var(--panel); border: 1px solid var(--line); border-radius: 12px; padding: 0 18px; margin-bottom: 10px; }
  summary { cursor: pointer; padding: 16px 0; font-weight: 600; list-style: none; display: flex; justify-content: space-between; gap: 12px; }
  summary::after { content: "+"; color: var(--muted); font-size: 20px; line-height: 1; } details[open] summary::after { content: "–"; }
  summary::-webkit-details-marker { display: none; }
  details p { margin: 0 0 16px; color: var(--muted); }
  .final { background: var(--grad); color: #fff; border-radius: 24px; padding: 54px 28px; text-align: center; }
  .final h2 { color: #fff; } .final p { opacity: .9; font-size: 18px; margin: 0 0 24px; }
  .final .btn { background: #fff; color: #0f1a2e; border: none; }
  .final .btn.ghost { background: transparent; color: #fff; border: 1px solid rgba(255,255,255,.6); }
  footer { border-top: 1px solid var(--line); padding: 30px 0 40px; color: var(--muted); font-size: 14px; }
  footer .wrap { display: flex; gap: 20px; flex-wrap: wrap; align-items: center; }
  footer img { height: 24px; }
  footer nav { margin-left: auto; display: flex; gap: 18px; flex-wrap: wrap; }
  footer a { text-decoration: none; } footer a:hover { color: var(--text); }

/* contact page */
.contact { display: grid; grid-template-columns: 1fr 1.25fr; gap: 40px; padding: 60px 0 80px; align-items: start; }
@media (max-width: 900px) { .contact { grid-template-columns: 1fr; padding-top: 36px; } }
.contact h1 { font-size: clamp(32px, 4.4vw, 46px); margin-top: 14px; }
.contact .points { list-style: none; padding: 0; margin: 24px 0; display: grid; gap: 14px; }
.contact .points li { display: flex; gap: 12px; color: var(--muted); }
.contact .points b { color: var(--text); display: block; }
.contact .points .ic { margin: 0; flex: none; }
form.card { padding: 26px; box-shadow: var(--shadow); }
.field { margin-bottom: 14px; }
.field label { display: block; font-size: 14px; font-weight: 600; margin-bottom: 6px; }
.field label .opt { font-weight: 400; color: var(--muted); }
.field input, .field select, .field textarea { width: 100%; font: inherit; padding: 10px 12px; border-radius: 10px; border: 1px solid var(--line);
  background: var(--bg); color: var(--text); }
.field input:focus, .field select:focus, .field textarea:focus { outline: 2px solid color-mix(in srgb, var(--blue) 45%, transparent); border-color: var(--blue); }
.field textarea { min-height: 120px; resize: vertical; }
.row2 { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; } @media (max-width: 560px) { .row2 { grid-template-columns: 1fr; } }
.hp { position: absolute; left: -10000px; width: 1px; height: 1px; overflow: hidden; }
.form-msg { font-size: 14px; margin-top: 10px; } .form-msg.err { color: var(--danger); }
.thanks { text-align: center; padding: 30px 10px; } .thanks .ic { margin: 0 auto 14px; width: 52px; height: 52px; border-radius: 50%; }
