:root {
  --blue: #1a56ff;
  --blue-600: #0a41e0;
  --blue-glow: rgba(26, 86, 255, 0.35);
  --ink: #0a0e1a;
  --ink-2: #384153;
  --muted: #6b7488;
  --line: #e6e9f0;
  --bg: #ffffff;
  --bg-alt: #f6f7fb;
  --node-gray: #c7cddb;
  --radius: 16px;
  --maxw: 1160px;
  --font: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --mono: "JetBrains Mono", ui-monospace, "SF Mono", Menlo, monospace;
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: var(--font);
  color: var(--ink);
  background: var(--bg);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
a { color: inherit; text-decoration: none; }
img { display: block; }
.accent { color: var(--blue); }
.accent-light { color: #bcd0ff; }
u { text-decoration-color: var(--blue); text-underline-offset: 3px; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  font-weight: 600; font-size: 15px; padding: 10px 18px; border-radius: 10px;
  border: 1px solid transparent; cursor: pointer;
  transition: transform .15s ease, background .15s ease, box-shadow .15s ease;
  white-space: nowrap;
}
.btn-lg { padding: 14px 26px; font-size: 16px; }
.btn-primary { background: var(--blue); color: #fff; box-shadow: 0 6px 20px -6px var(--blue-glow); }
.btn-primary:hover { background: var(--blue-600); transform: translateY(-1px); }
.btn-ghost { background: transparent; color: var(--ink); border-color: var(--line); }
.btn-ghost:hover { border-color: var(--blue); color: var(--blue); }

.link-arrow { display: inline-block; margin-top: 26px; color: var(--blue); font-weight: 600; font-size: 15px; }
.link-arrow:hover { text-decoration: underline; }

/* ---------- Nav ---------- */
.nav {
  position: sticky; top: 0; z-index: 50;
  display: flex; align-items: center; justify-content: space-between; gap: 24px;
  max-width: var(--maxw); margin: 0 auto; padding: 16px 24px;
  backdrop-filter: saturate(1.4) blur(10px);
}
.nav::after {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background: rgba(255, 255, 255, 0.72); border-bottom: 1px solid var(--line);
}
.brand { display: flex; align-items: center; gap: 9px; font-weight: 800; font-size: 19px; letter-spacing: -0.02em; }
.nav-links { display: flex; gap: 28px; font-size: 15px; color: var(--ink-2); font-weight: 500; }
.nav-links a:hover { color: var(--blue); }
.nav-cta { display: flex; gap: 10px; align-items: center; }

/* ---------- Hero ---------- */
.hero {
  position: relative; overflow: hidden; border-bottom: 1px solid var(--line);
  background:
    radial-gradient(900px 500px at 78% -10%, rgba(26,86,255,0.10), transparent 60%),
    radial-gradient(700px 400px at 8% 6%, rgba(26,86,255,0.05), transparent 55%);
}
#graph { position: absolute; inset: 0; width: 100%; height: 100%; z-index: 0; }
.hero-inner { position: relative; z-index: 1; max-width: var(--maxw); margin: 0 auto; padding: 104px 24px 116px; text-align: center; }
h1 { font-size: clamp(34px, 5.2vw, 62px); line-height: 1.04; letter-spacing: -0.03em; font-weight: 800; }
.lede { max-width: 660px; margin: 24px auto 0; font-size: clamp(17px, 2.2vw, 20px); color: var(--ink-2); }
.hero-actions { display: flex; gap: 14px; justify-content: center; flex-wrap: wrap; margin-top: 34px; }
.hero-note { margin-top: 30px; display: inline-flex; align-items: center; gap: 12px; flex-wrap: wrap; justify-content: center; font-size: 14px; color: var(--muted); }
.hero-note code { font-family: var(--mono); background: #0a0e1a; color: #e8ecff; padding: 8px 14px; border-radius: 8px; font-size: 13px; }

/* ---------- Customer logos strip (end of first fold) ---------- */
.logos-strip { position: relative; z-index: 1; max-width: var(--maxw); margin: 0 auto; padding: 8px 24px 40px; text-align: center; }
.logos-strip p { font-size: 12px; text-transform: uppercase; letter-spacing: 0.09em; color: var(--muted); font-weight: 600; }
.logos-track { display: flex; flex-wrap: wrap; justify-content: center; align-items: center; gap: 28px 46px; margin-top: 26px; }
.logos-track img { height: 30px; width: auto; max-width: 130px; opacity: 0.6; filter: grayscale(1); transition: opacity .2s, filter .2s; }
.logos-track img:hover { opacity: 1; filter: grayscale(0); }

/* ---------- Sections base ---------- */
.section { max-width: var(--maxw); margin: 0 auto; padding: 88px 24px; }
.section-head { max-width: 760px; }
.section-head.left { text-align: left; }
.section-head h2, .context-head h2, .faq-head h2 {
  font-size: clamp(26px, 3.6vw, 40px); line-height: 1.12; letter-spacing: -0.028em; font-weight: 800;
}
.section-head .sub { margin-top: 14px; color: var(--ink-2); font-size: 17px; }
.kicker { font-size: 12px; font-weight: 700; letter-spacing: 0.09em; text-transform: uppercase; color: var(--blue); display: inline-block; margin-bottom: 12px; }

/* ---------- Problem grid ---------- */
.problem-grid { display: grid; grid-template-columns: repeat(5, 1fr); gap: 0; margin-top: 52px; border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; }
.pcard { padding: 26px 22px; border-right: 1px solid var(--line); background: #fff; }
.pcard:last-child { border-right: none; }
.pcard-num { font-family: var(--mono); font-size: 13px; color: var(--blue); font-weight: 600; margin-bottom: 30px; }
.pcard h3 { font-size: 16px; line-height: 1.25; letter-spacing: -0.01em; }
.pcard p { margin-top: 10px; color: var(--ink-2); font-size: 14px; }

/* ---------- Context section ---------- */
.context { background: transparent; }
.context-head { text-align: center; max-width: 780px; margin: 0 auto; }
.context-body { display: grid; grid-template-columns: 1fr 1fr; gap: 40px; margin-top: 48px; align-items: start; }
.context-scenario {
  background: var(--bg-alt); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 34px; position: sticky; top: 92px;
}
.scenario { font-size: 22px; line-height: 1.5; letter-spacing: -0.01em; color: var(--ink); }
.scenario b { color: var(--ink); }
.scenario-note { margin-top: 20px; font-size: 14px; color: var(--muted); }
.context-sources { display: grid; gap: 14px; }
.csource { border-left: 3px solid var(--blue); background: #fff; border: 1px solid var(--line); border-left: 3px solid var(--blue); border-radius: 12px; padding: 18px 20px; }
.csource h4 { font-size: 15px; font-weight: 700; }
.csource p { margin-top: 6px; color: var(--ink-2); font-size: 14px; }

/* ---------- Use cases ---------- */
.usecases { background: var(--bg-alt); border-block: 1px solid var(--line); }
.usecases-inner { max-width: var(--maxw); margin: 0 auto; padding: 72px 24px; display: grid; grid-template-columns: 0.85fr 1.15fr; gap: 48px; align-items: center; }
.big-stat { font-size: clamp(64px, 9vw, 104px); font-weight: 800; letter-spacing: -0.04em; color: var(--blue); line-height: 1; display: block; }
.uc-head p { margin-top: 16px; font-size: 18px; color: var(--ink-2); max-width: 340px; }
.uc-panel { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; box-shadow: 0 24px 60px -40px rgba(10,14,26,0.4); }
.uc-tabs { display: flex; flex-wrap: wrap; border-bottom: 1px solid var(--line); }
.uc-tab { flex: 1; min-width: 120px; padding: 15px 12px; font-family: var(--font); font-size: 14px; font-weight: 600; color: var(--muted); background: var(--bg-alt); border: none; border-right: 1px solid var(--line); cursor: pointer; transition: color .15s, background .15s; }
.uc-tab:last-child { border-right: none; }
.uc-tab.is-active { background: #fff; color: var(--blue); box-shadow: inset 0 -2px 0 var(--blue); }
.uc-content { padding: 28px 30px; }
.uc-item { display: none; }
.uc-item.is-active { display: block; }
.uc-item h3 { font-size: 20px; letter-spacing: -0.01em; }
.uc-item ul { list-style: none; margin-top: 18px; display: grid; gap: 12px; }
.uc-item li { position: relative; padding-left: 28px; color: var(--ink-2); font-size: 15px; }
.uc-item li::before { content: "✓"; position: absolute; left: 0; top: 1px; width: 18px; height: 18px; display: flex; align-items: center; justify-content: center; font-size: 11px; font-weight: 700; color: #fff; background: var(--blue); border-radius: 5px; }

/* ---------- Split / code ---------- */
.split { display: grid; grid-template-columns: 1fr 1.1fr; gap: 56px; align-items: center; }
.split-copy h2 { margin-top: 10px; font-size: clamp(26px, 3.4vw, 38px); line-height: 1.14; letter-spacing: -0.025em; font-weight: 800; }
.split-copy > p { margin-top: 16px; color: var(--ink-2); font-size: 16px; }
.check-list { list-style: none; margin-top: 22px; display: grid; gap: 12px; }
.check-list li { position: relative; padding-left: 30px; color: var(--ink-2); font-weight: 500; }
.check-list li::before { content: "✓"; position: absolute; left: 0; top: 0; width: 20px; height: 20px; display: flex; align-items: center; justify-content: center; font-size: 12px; font-weight: 700; color: #fff; background: var(--blue); border-radius: 6px; }

.code-window { background: #0b0f1e; border-radius: 14px; overflow: hidden; box-shadow: 0 30px 60px -30px rgba(10,14,26,0.6); border: 1px solid #1c2436; }
.code-bar { display: flex; align-items: center; gap: 8px; padding: 13px 16px; background: #10152a; border-bottom: 1px solid #1c2436; }
.code-bar span { width: 11px; height: 11px; border-radius: 50%; background: #2a3350; }
.code-bar span:nth-child(1) { background: #ff5f57; }
.code-bar span:nth-child(2) { background: #febc2e; }
.code-bar span:nth-child(3) { background: #28c840; }
.code-bar em { margin-left: auto; font-style: normal; font-family: var(--mono); font-size: 12px; color: #6b7590; }
.code-window pre { margin: 0; padding: 22px 24px; overflow-x: auto; font-family: var(--mono); font-size: 13.5px; line-height: 1.75; color: #d6def5; }
.c-kw { color: #ff7ab2; } .c-st { color: #9ae86c; } .c-cm { color: #5f6b8a; font-style: italic; } .c-nm { color: #f3b562; }

/* ---------- Chat mockup (connect any agent) ---------- */
.chat { background: #fff; border: 1px solid var(--line); border-radius: 16px; overflow: hidden; box-shadow: 0 30px 60px -34px rgba(10,14,26,0.4); }
.chat-bar { display: flex; align-items: center; gap: 10px; padding: 14px 18px; background: var(--bg-alt); border-bottom: 1px solid var(--line); }
.chat-bar em { font-style: normal; font-size: 13px; font-weight: 600; color: var(--ink-2); }
.chat-body { padding: 22px; display: grid; gap: 16px; }
.bubble { border-radius: 14px; padding: 14px 16px; font-size: 14.5px; line-height: 1.55; }
.bubble .who { display: block; font-size: 11px; font-weight: 700; letter-spacing: 0.04em; text-transform: uppercase; margin-bottom: 6px; opacity: 0.7; }
.bubble.user { background: var(--blue); color: #fff; border-bottom-right-radius: 4px; margin-left: 40px; }
.bubble.agent { background: var(--bg-alt); border: 1px solid var(--line); color: var(--ink); border-bottom-left-radius: 4px; margin-right: 20px; }
.bubble.agent p { margin: 0 0 8px; }
.bubble.agent p:last-of-type { margin-bottom: 0; }
.rule-list { list-style: none; margin: 8px 0 10px; display: grid; gap: 4px; }
.rule-list li { font-size: 14px; color: var(--ink-2); padding-left: 16px; position: relative; }
.rule-list li::before { content: "•"; position: absolute; left: 2px; color: var(--blue); }
.cite { display: inline-block; margin-top: 10px; font-size: 12px; color: var(--blue); font-weight: 600; background: rgba(26,86,255,0.08); padding: 4px 10px; border-radius: 6px; }

/* ---------- SOPs into agents ---------- */
.sops-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; margin-top: 48px; }
.sop-step { padding: 26px; border: 1px solid var(--line); border-radius: var(--radius); background: #fff; }
.sop-icon { width: 46px; height: 46px; display: flex; align-items: center; justify-content: center; font-size: 20px; color: var(--blue); background: rgba(26,86,255,0.08); border-radius: 12px; margin-bottom: 16px; }
.sop-step h4 { font-size: 16px; }
.sop-step p { margin-top: 8px; color: var(--ink-2); font-size: 14px; }
.sop-proof { display: grid; grid-template-columns: 1fr auto 1fr; gap: 20px; align-items: center; margin-top: 24px; background: var(--bg-alt); border: 1px solid var(--line); border-radius: var(--radius); padding: 28px; }
.sop-tag { display: inline-block; font-size: 11px; font-weight: 700; text-transform: uppercase; letter-spacing: 0.05em; color: var(--blue); margin-bottom: 10px; }
.sop-tag.muted { color: var(--muted); }
.sop-rule-text { font-size: 16px; font-weight: 600; line-height: 1.5; color: var(--ink); }
.sop-src-text { font-size: 14px; line-height: 1.6; color: var(--ink-2); font-style: italic; }
.sop-arrow { font-size: 28px; color: var(--blue); font-weight: 700; }
.sop-rule { border-left: 3px solid var(--blue); padding-left: 18px; }
.sop-source { border-left: 3px solid var(--node-gray); padding-left: 18px; }

/* ---------- Social / testimonial ---------- */
.social { max-width: 860px; margin: 0 auto; padding: 88px 24px; text-align: center; }
.quote-mark { font-size: 90px; line-height: 0.5; color: var(--blue); font-weight: 800; display: inline-block; margin-bottom: 8px; }
.social blockquote { font-size: clamp(22px, 3.2vw, 30px); line-height: 1.35; letter-spacing: -0.02em; font-weight: 600; }
.social-by { display: flex; align-items: center; justify-content: center; gap: 14px; margin-top: 28px; }
.social-avatar { width: 46px; height: 46px; border-radius: 50%; background: rgba(26,86,255,0.1); color: var(--blue); display: flex; align-items: center; justify-content: center; font-size: 18px; }
.social-by b { display: block; font-size: 15px; }
.social-by span { font-size: 13px; color: var(--muted); }
.social-stats { display: flex; justify-content: center; gap: 48px; margin-top: 40px; flex-wrap: wrap; }
.social-stats b { display: block; font-size: 32px; font-weight: 800; color: var(--blue); letter-spacing: -0.03em; }
.social-stats span { font-size: 14px; color: var(--muted); }

/* ---------- Integrations ---------- */
.logo-grid { display: grid; grid-template-columns: repeat(6, 1fr); gap: 14px; margin-top: 44px; }
.logo-cell { aspect-ratio: 3 / 2; display: flex; align-items: center; justify-content: center; background: #fff; border: 1px solid var(--line); border-radius: 12px; transition: border-color .18s, transform .18s; }
.logo-cell:hover { border-color: rgba(26,86,255,0.4); transform: translateY(-2px); }
.logo-cell img { max-height: 30px; max-width: 62%; width: auto; opacity: 0.8; }
.logo-cell:hover img { opacity: 1; }

/* ---------- Why graphs ---------- */
.why { }
.why-inner { display: grid; grid-template-columns: 0.8fr 1.2fr; gap: 56px; align-items: center; }
.why-visual { display: flex; align-items: flex-end; gap: 24px; height: 240px; padding: 24px; background: var(--bg-alt); border: 1px solid var(--line); border-radius: var(--radius); }
.bar { flex: 1; border-radius: 10px 10px 0 0; position: relative; display: flex; align-items: flex-start; justify-content: center; }
.bar span { position: absolute; bottom: -26px; font-size: 12px; font-weight: 600; color: var(--muted); white-space: nowrap; }
.bar-a { height: 34%; background: #cfd6e6; }
.bar-b { height: 100%; background: linear-gradient(180deg, #1a56ff, #0a41e0); box-shadow: 0 16px 30px -16px var(--blue-glow); }
.why-copy h2 { margin-top: 8px; font-size: clamp(26px, 3.4vw, 38px); line-height: 1.14; letter-spacing: -0.025em; font-weight: 800; }
.why-copy p { margin-top: 16px; color: var(--ink-2); font-size: 16px; }

/* ---------- Enterprise controls ---------- */
.controls-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; margin-top: 44px; }
.ctrl { padding: 22px; border: 1px solid var(--line); border-radius: 14px; background: #fff; }
.ctrl h4 { font-size: 15px; font-weight: 700; }
.ctrl p { margin-top: 8px; color: var(--ink-2); font-size: 14px; }

/* ---------- Security ---------- */
.security { }
.security-inner { display: grid; grid-template-columns: 1.1fr 1fr; gap: 48px; align-items: center; background: var(--bg-alt); border: 1px solid var(--line); border-radius: 24px; padding: 48px; }
.security-copy h2 { margin-top: 8px; font-size: clamp(24px, 3vw, 34px); letter-spacing: -0.025em; font-weight: 800; }
.security-copy p { margin-top: 14px; color: var(--ink-2); font-size: 16px; }
.fine-note { font-size: 13px !important; color: var(--muted) !important; }
.badges { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.badge { display: flex; flex-direction: column; align-items: center; gap: 12px; background: #fff; border: 1px solid var(--line); border-radius: 16px; padding: 24px; }
.badge img { height: 68px; width: auto; }
.badge span { font-size: 13px; font-weight: 600; color: var(--ink-2); }

/* ---------- FAQ ---------- */
.faq { max-width: 860px; }
.faq-head { text-align: center; margin-bottom: 40px; }
.faq-list { display: grid; gap: 12px; }
.faq details { border: 1px solid var(--line); border-radius: 14px; background: #fff; overflow: hidden; }
.faq summary { list-style: none; cursor: pointer; padding: 20px 22px; font-size: 16px; font-weight: 600; display: flex; align-items: center; justify-content: space-between; gap: 16px; }
.faq summary::-webkit-details-marker { display: none; }
.faq .chev { color: var(--blue); font-size: 22px; font-weight: 400; transition: transform .2s; flex-shrink: 0; }
.faq details[open] .chev { transform: rotate(45deg); }
.faq details p { padding: 0 22px 22px; color: var(--ink-2); font-size: 15px; }

/* ---------- CTA ---------- */
.cta { max-width: var(--maxw); margin: 88px auto; padding: 72px 24px; border-radius: 28px; text-align: center; color: #fff;
  background: radial-gradient(600px 300px at 80% -20%, rgba(255,255,255,0.16), transparent 60%), linear-gradient(135deg, #1a56ff 0%, #0a2fb8 100%);
  box-shadow: 0 40px 80px -40px var(--blue-glow); }
.cta-inner { max-width: 600px; margin: 0 auto; }
.cta h2 { font-size: clamp(28px, 4.2vw, 44px); letter-spacing: -0.03em; font-weight: 800; line-height: 1.1; }
.cta p { margin-top: 14px; color: rgba(255,255,255,0.85); font-size: 17px; }
.cta-form { display: flex; gap: 10px; margin: 28px auto 0; max-width: 460px; }
.cta-form input { flex: 1; padding: 14px 16px; border-radius: 10px; border: 1px solid rgba(255,255,255,0.3); background: rgba(255,255,255,0.12); color: #fff; font-size: 15px; font-family: var(--font); }
.cta-form input::placeholder { color: rgba(255,255,255,0.7); }
.cta-form input:focus { outline: 2px solid rgba(255,255,255,0.6); }
.cta-form .btn-primary { background: #fff; color: var(--blue); box-shadow: none; }
.cta-form .btn-primary:hover { background: #eef1ff; }
.cta-fine { margin-top: 16px; font-size: 14px; }
.cta-fine a { text-decoration: underline; color: #fff; }

/* ---------- Footer ---------- */
.footer { border-top: 1px solid var(--line); background: var(--bg-alt); }
.footer-top { max-width: var(--maxw); margin: 0 auto; padding: 64px 24px 40px; display: grid; grid-template-columns: 1.4fr 2fr; gap: 40px; }
.footer-brand p { margin-top: 12px; color: var(--muted); font-size: 15px; max-width: 300px; }
.footer-cols { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.footer-cols h4 { font-size: 13px; text-transform: uppercase; letter-spacing: 0.06em; color: var(--ink); margin-bottom: 14px; }
.footer-cols a { display: block; color: var(--ink-2); font-size: 15px; padding: 5px 0; }
.footer-cols a:hover { color: var(--blue); }
.footer-bottom { max-width: var(--maxw); margin: 0 auto; padding: 20px 24px 40px; display: flex; align-items: center; justify-content: space-between; border-top: 1px solid var(--line); color: var(--muted); font-size: 14px; }
.footer-legal { display: flex; gap: 20px; }
.footer-legal a:hover { color: var(--blue); }

/* ---------- Responsive ---------- */
@media (max-width: 960px) {
  .problem-grid { grid-template-columns: 1fr 1fr; }
  .pcard { border-right: 1px solid var(--line); border-bottom: 1px solid var(--line); }
  .context-body { grid-template-columns: 1fr; }
  .context-scenario { position: static; }
  .usecases-inner { grid-template-columns: 1fr; gap: 32px; }
  .split { grid-template-columns: 1fr; gap: 32px; }
  .why-inner { grid-template-columns: 1fr; gap: 32px; }
  .security-inner { grid-template-columns: 1fr; gap: 32px; padding: 36px; }
  .controls-grid { grid-template-columns: 1fr 1fr; }
  .logo-grid { grid-template-columns: repeat(4, 1fr); }
  .sops-grid { grid-template-columns: 1fr; }
  .sop-proof { grid-template-columns: 1fr; }
  .sop-arrow { transform: rotate(90deg); justify-self: center; }
  .footer-top { grid-template-columns: 1fr; }
  .nav-links { display: none; }
}
@media (max-width: 560px) {
  .problem-grid { grid-template-columns: 1fr; }
  .controls-grid { grid-template-columns: 1fr; }
  .logo-grid { grid-template-columns: repeat(3, 1fr); }
  .social-stats { gap: 28px; }
  .nav-cta .btn-ghost { display: none; }
  .cta-form { flex-direction: column; }
  .footer-cols { grid-template-columns: 1fr 1fr; }
  .footer-bottom { flex-direction: column; gap: 12px; }
}
