:root {
  --bg: #eef2f8;
  --surface: #fff;
  --ink: #0f172a;
  --ink-soft: #334155;
  --muted: #64748b;
  --line: #e2e8f0;
  --accent: #2563eb;
  --accent-2: #1d4ed8;
  --accent-soft: #eff6ff;
  --ok: #059669;
  --danger: #e11d48;
  --radius: 16px;
  --font: "Plus Jakarta Sans", "Segoe UI", system-ui, sans-serif;
  --shadow: 0 1px 2px rgba(15, 23, 42, 0.05), 0 8px 24px rgba(15, 23, 42, 0.04);
  --max: 1120px;
}

* { box-sizing: border-box; }
body {
  margin: 0;
  font-family: var(--font);
  color: var(--ink);
  background:
    radial-gradient(1000px 420px at 10% -10%, #dbeafe, transparent 55%),
    var(--bg);
  line-height: 1.6;
  font-size: 16.5px;
  -webkit-font-smoothing: antialiased;
}
a { color: var(--accent-2); text-decoration: none; }
a:hover { text-decoration: underline; }

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

.top {
  background: rgba(255,255,255,0.92);
  border-bottom: 1px solid var(--line);
  backdrop-filter: blur(12px);
  position: sticky;
  top: 0;
  z-index: 10;
}
.top-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 14px 0;
  flex-wrap: wrap;
}
.brand {
  display: flex;
  gap: 10px;
  align-items: center;
  color: var(--ink);
  font-weight: 800;
  text-decoration: none;
}
.brand:hover { text-decoration: none; }
.brand-mark {
  width: 36px; height: 36px; border-radius: 12px;
  display: grid; place-items: center;
  background: linear-gradient(160deg, #3b82f6, #1d4ed8);
  color: #fff; font-size: 0.75rem; font-weight: 800;
}
.nav { display: flex; flex-wrap: wrap; gap: 6px 14px; }
.nav a {
  color: var(--ink-soft);
  font-weight: 600;
  font-size: 0.9rem;
  text-decoration: none;
}
.nav a:hover { color: var(--accent-2); }

/* Home deep-blue stage: menu → mid product carousel */
.page-home {
  background: var(--bg);
}
.home-stage {
  position: relative;
  isolation: isolate;
  margin-bottom: 8px;
}
.home-stage::before {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  top: 0;
  bottom: 42%;
  z-index: -1;
  background:
    radial-gradient(900px 480px at 85% 12%, rgba(59, 130, 246, 0.35), transparent 60%),
    radial-gradient(700px 380px at 8% 30%, rgba(37, 99, 235, 0.22), transparent 55%),
    linear-gradient(
      180deg,
      #020617 0%,
      #0a1a3a 28%,
      #0f2f6d 58%,
      #163a7a 78%,
      #1e4a8c 100%
    );
  pointer-events: none;
}
.home-stage::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  top: 58%;
  bottom: 0;
  z-index: -1;
  background: linear-gradient(
    180deg,
    #1e4a8c 0%,
    rgba(30, 74, 140, 0.55) 28%,
    rgba(238, 242, 248, 0.35) 62%,
    var(--bg) 100%
  );
  pointer-events: none;
}
.page-home .home-stage > .top {
  background: rgba(2, 6, 23, 0.55);
  border-bottom: 1px solid rgba(148, 163, 184, 0.22);
  backdrop-filter: blur(14px);
}
.page-home .home-stage .brand {
  color: #f8fafc;
}
.page-home .home-stage .nav a {
  color: rgba(226, 232, 240, 0.88);
}
.page-home .home-stage .nav a:hover {
  color: #fff;
}
.page-home .home-stage .hero .eyebrow {
  color: #93c5fd;
}
.page-home .home-stage .hero h1 {
  color: #f8fafc;
  font-size: clamp(2rem, 4.2vw, 2.85rem);
  font-weight: 400;
  letter-spacing: -0.02em;
  line-height: 1.15;
}
.page-home .home-stage .hero .lead {
  color: #cbd5e1;
}
.page-home .home-stage .banner-head h2 {
  color: #f1f5f9;
}
.page-home .home-stage .banner-head .section-lead {
  color: #94a3b8;
}
.btn-on-dark {
  background: #fff;
  color: #0f172a;
  box-shadow: 0 8px 20px rgba(2, 6, 23, 0.28);
}
.btn-on-dark:hover {
  background: #e2e8f0;
  color: #0f172a;
}
.trigger-on-dark {
  background: rgba(15, 23, 42, 0.35);
  border-color: rgba(148, 163, 184, 0.45);
  color: #f8fafc;
}
.trigger-on-dark:hover,
.trigger-on-dark:focus-visible {
  background: rgba(255, 255, 255, 0.12);
  border-color: rgba(191, 219, 254, 0.7);
  color: #fff;
}
.page-home .home-stage .banner-btn {
  background: rgba(255, 255, 255, 0.92);
}

.hero {
  padding: 48px 0 36px;
}
.eyebrow {
  margin: 0 0 10px;
  color: var(--accent-2);
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}
.hero h1 {
  margin: 0 0 14px;
  font-size: clamp(1.9rem, 4vw, 2.75rem);
  line-height: 1.15;
  letter-spacing: -0.02em;
  font-weight: 400;
}
.lead {
  margin: 0 0 22px;
  max-width: 62ch;
  color: var(--ink-soft);
  font-size: 1.05rem;
}
.cta-row { display: flex; flex-wrap: wrap; gap: 10px; }

.btn {
  appearance: none;
  border: 0;
  cursor: pointer;
  display: inline-grid;
  justify-items: center;
  align-items: center;
  font-family: var(--font);
  font-size: 0.9rem;
  font-weight: 400;
  line-height: 1.25;
  color: #fff;
  background: #2563eb;
  border-radius: 10px;
  padding: 10px 16px;
  text-decoration: none;
  box-shadow: 0 6px 14px rgba(37, 99, 235, 0.22);
  transition: background 0.12s ease;
}
.btn:hover { background: #059669; text-decoration: none; color: #fff; }
.btn-ghost {
  background: #fff;
  color: var(--ink);
  border: 1px solid var(--line);
  box-shadow: var(--shadow);
}
.btn-ghost:hover { background: var(--accent-soft); color: var(--accent-2); }

.trigger-btn {
  appearance: none;
  position: relative;
  display: inline-grid;
  justify-items: center;
  align-items: center;
  border: 0;
  cursor: pointer;
  font-family: var(--font);
  font-size: 0.88rem;
  font-weight: 400;
  line-height: 1.25;
  color: #fff;
  background: #2563eb;
  border-radius: 10px;
  padding: 9px 14px;
  box-shadow: 0 6px 14px rgba(37, 99, 235, 0.22);
  transition: background 0.12s ease, box-shadow 0.12s ease;
}
.trigger-idle, .trigger-hover { grid-area: 1 / 1; }
.trigger-hover { visibility: hidden; }
.trigger-btn:hover, .trigger-btn:focus-visible {
  background: #059669;
  box-shadow: 0 6px 14px rgba(5, 150, 105, 0.28);
}
.trigger-btn:hover .trigger-idle,
.trigger-btn:focus-visible .trigger-idle { visibility: hidden; }
.trigger-btn:hover .trigger-hover,
.trigger-btn:focus-visible .trigger-hover { visibility: visible; }

.section { padding: 28px 0 40px; }
.section h2 {
  margin: 0 0 8px;
  font-size: clamp(1.35rem, 2.2vw, 1.7rem);
  letter-spacing: -0.02em;
  font-weight: 400;
}
.section-lead {
  margin: 0 0 20px;
  color: var(--muted);
  max-width: 66ch;
}

.trust {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
}
.trust article {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 16px;
  box-shadow: var(--shadow);
}
.trust strong {
  display: block;
  font-size: 1.4rem;
  font-weight: 800;
  letter-spacing: -0.03em;
}
.trust span { color: var(--muted); font-size: 0.88rem; }

.grid-3 {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
}
.grid-2 {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}
.card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 18px 20px;
  box-shadow: var(--shadow);
}
.card h3 {
  margin: 0 0 6px;
  font-size: 1.08rem;
  font-weight: 400;
  letter-spacing: -0.02em;
}
.card p { margin: 0 0 12px; color: var(--ink-soft); font-size: 0.94rem; }
.tags { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 12px; }
.tag {
  font-size: 0.72rem;
  font-weight: 700;
  color: var(--accent-ink, #1e40af);
  background: var(--accent-soft);
  border-radius: 999px;
  padding: 3px 9px;
}

.page-hero {
  padding: 36px 0 12px;
}
.page-hero h1 {
  margin: 0 0 10px;
  font-size: clamp(1.7rem, 3vw, 2.3rem);
  letter-spacing: -0.02em;
  font-weight: 400;
}
.prose { color: var(--ink-soft); max-width: 68ch; }
.prose p { margin: 0 0 0.85rem; }
.block { margin: 28px 0; }
.block h2 {
  margin: 0 0 10px;
  font-size: 1.2rem;
  font-weight: 400;
  letter-spacing: -0.02em;
}
.triggers { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 8px; }

.lane-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
}
.lane {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 18px;
  box-shadow: var(--shadow);
}
.lane h3 { margin: 0 0 8px; font-weight: 400; letter-spacing: -0.02em; }
.lane p { margin: 0 0 12px; color: var(--ink-soft); }

.foot {
  margin-top: 40px;
  padding: 24px 0 40px;
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: 0.88rem;
}
.foot-nav { display: flex; flex-wrap: wrap; gap: 12px 18px; margin-bottom: 10px; }

.lead-pop {
  position: absolute;
  z-index: 20;
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 14px;
  border-radius: 14px;
  background: #052e16;
  color: #ecfdf5;
  box-shadow: 0 12px 28px rgba(5, 46, 22, 0.28);
  transform: translate(-50%, calc(-100% - 10px));
  pointer-events: none;
  white-space: nowrap;
}
.lead-pop[hidden] { display: none !important; }
.lead-pop-icon {
  display: grid; place-items: center;
  width: 36px; height: 36px; border-radius: 10px;
  background: #059669; color: #fff;
}
.lead-pop strong { display: block; font-size: 0.95rem; }
.lead-pop > div span {
  display: block;
  font-size: 0.82rem;
  font-weight: 700;
  color: #a7f3d0;
}

.note {
  margin: 16px 0 0;
  padding: 12px 14px;
  background: var(--accent-soft);
  border-radius: 12px;
  color: var(--accent-2);
  font-size: 0.9rem;
}

/* Product banner carousel */
.banners {
  padding: 8px 0 36px;
}
.banner-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
  margin-bottom: 14px;
}
.banner-head h2 { margin: 0; font-weight: 400; letter-spacing: -0.02em; }
.banner-nav {
  display: flex;
  align-items: center;
  gap: 8px;
}
.banner-btn {
  appearance: none;
  width: 40px;
  height: 40px;
  border-radius: 12px;
  border: 1px solid var(--line);
  background: #fff;
  color: var(--ink);
  cursor: pointer;
  font-size: 1.1rem;
  line-height: 1;
  box-shadow: var(--shadow);
}
.banner-btn:hover { background: var(--accent-soft); color: var(--accent-2); }
.banner-dots {
  display: flex;
  gap: 6px;
  align-items: center;
}
.banner-dot {
  appearance: none;
  width: 8px;
  height: 8px;
  border-radius: 999px;
  border: 0;
  padding: 0;
  background: #cbd5e1;
  cursor: pointer;
}
.banner-dot.is-active {
  width: 22px;
  background: var(--accent);
}
.banner-viewport {
  overflow: hidden;
  border-radius: 24px;
  border: 1px solid var(--line);
  box-shadow: var(--shadow);
  background: #fff;
}
.banner-track {
  display: flex;
  transition: transform 0.4s ease;
}
.banner-slide {
  flex: 0 0 100%;
  min-width: 100%;
  padding: 28px 32px 30px;
  background:
    linear-gradient(135deg, #eff6ff 0%, #ffffff 48%, #f8fafc 100%);
}
.banner-slide-top {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  align-items: flex-start;
  flex-wrap: wrap;
  margin-bottom: 10px;
}
.banner-product {
  margin: 0;
  font-size: clamp(1.5rem, 2.5vw, 2rem);
  font-weight: 400;
  letter-spacing: -0.02em;
}
.banner-usp {
  margin: 0 0 14px;
  max-width: 52ch;
  color: var(--ink-soft);
  font-size: 1.05rem;
  line-height: 1.55;
}
.banner-roles {
  margin: 0 0 16px;
  color: var(--ink-soft);
  font-size: 0.95rem;
  font-weight: 600;
  line-height: 1.4;
}
.audience-line {
  margin: -6px 0 16px;
  color: var(--muted);
  font-size: 0.95rem;
  font-weight: 600;
}
.banner-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
}
.banner-link {
  font-weight: 700;
  font-size: 0.92rem;
  margin-left: 4px;
}

/* AI chat widget */
.ai-chat {
  position: fixed;
  right: 20px;
  bottom: 20px;
  z-index: 40;
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 12px;
  font-family: var(--font);
}
.ai-chat-panel {
  width: min(380px, calc(100vw - 32px));
  height: min(520px, calc(100vh - 120px));
  display: flex;
  flex-direction: column;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 20px;
  box-shadow: 0 16px 48px rgba(15, 23, 42, 0.18);
  overflow: hidden;
  transform-origin: bottom right;
  animation: ai-chat-in 0.22s ease;
}
.ai-chat-panel[hidden] { display: none !important; }
@keyframes ai-chat-in {
  from { opacity: 0; transform: translateY(12px) scale(0.96); }
  to { opacity: 1; transform: none; }
}
.ai-chat-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 14px 16px;
  background: linear-gradient(160deg, #1d4ed8, #2563eb);
  color: #fff;
}
.ai-chat-head-main {
  display: flex;
  align-items: center;
  gap: 10px;
  min-width: 0;
}
.ai-chat-avatar {
  width: 36px;
  height: 36px;
  border-radius: 12px;
  background: rgba(255,255,255,0.18);
  display: grid;
  place-items: center;
  font-weight: 800;
  font-size: 0.75rem;
  flex-shrink: 0;
}
.ai-chat-title {
  margin: 0;
  font-size: 0.95rem;
  font-weight: 800;
  line-height: 1.2;
}
.ai-chat-sub {
  margin: 2px 0 0;
  font-size: 0.72rem;
  opacity: 0.85;
}
.ai-chat-close {
  appearance: none;
  border: 0;
  background: rgba(255,255,255,0.16);
  color: #fff;
  width: 32px;
  height: 32px;
  border-radius: 10px;
  cursor: pointer;
  font-size: 1.1rem;
  line-height: 1;
}
.ai-chat-close:hover { background: rgba(255,255,255,0.28); }
.ai-chat-messages {
  flex: 1;
  overflow-y: auto;
  padding: 14px 14px 8px;
  background: #f8fafc;
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.ai-msg {
  max-width: 92%;
  padding: 10px 12px;
  border-radius: 14px;
  font-size: 0.9rem;
  line-height: 1.45;
  white-space: pre-wrap;
}
.ai-msg-bot {
  align-self: flex-start;
  background: #fff;
  border: 1px solid var(--line);
  color: var(--ink);
  border-bottom-left-radius: 4px;
}
.ai-msg-user {
  align-self: flex-end;
  background: var(--accent);
  color: #fff;
  border-bottom-right-radius: 4px;
}
.ai-msg-meta {
  display: block;
  margin-bottom: 4px;
  font-size: 0.68rem;
  font-weight: 800;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  opacity: 0.7;
}
.ai-chat-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  padding: 0 14px 10px;
  background: #f8fafc;
}
.ai-chip {
  appearance: none;
  border: 1px solid var(--line);
  background: #fff;
  color: var(--ink-soft);
  border-radius: 999px;
  padding: 6px 10px;
  font-size: 0.78rem;
  font-weight: 700;
  cursor: pointer;
  font-family: inherit;
}
.ai-chip:hover {
  border-color: #bfdbfe;
  background: var(--accent-soft);
  color: var(--accent-2);
}
.ai-chat-form {
  display: flex;
  gap: 8px;
  padding: 12px;
  border-top: 1px solid var(--line);
  background: #fff;
}
.ai-chat-input {
  flex: 1;
  min-width: 0;
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 10px 12px;
  font: inherit;
  font-size: 0.9rem;
  outline: none;
}
.ai-chat-input:focus {
  border-color: #93c5fd;
  box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.15);
}
.ai-chat-send {
  appearance: none;
  border: 0;
  border-radius: 12px;
  padding: 0 14px;
  background: var(--accent);
  color: #fff;
  font-weight: 800;
  font-size: 0.85rem;
  cursor: pointer;
  font-family: inherit;
}
.ai-chat-send:hover { background: var(--accent-2); }
.ai-chat-toggle {
  appearance: none;
  border: 0;
  width: 60px;
  height: 60px;
  border-radius: 18px;
  background: linear-gradient(160deg, #3b82f6, #1d4ed8);
  color: #fff;
  cursor: pointer;
  box-shadow: 0 10px 28px rgba(37, 99, 235, 0.4);
  display: grid;
  place-items: center;
  transition: transform 0.15s ease;
}
.ai-chat-toggle:hover { transform: translateY(-2px); }
.ai-chat-toggle[aria-expanded="true"] {
  background: #0f172a;
  box-shadow: 0 8px 20px rgba(15, 23, 42, 0.35);
}
.ai-chat-toggle svg { width: 26px; height: 26px; display: block; }
.ai-chat-badge {
  position: absolute;
  top: -4px;
  right: -4px;
  width: 14px;
  height: 14px;
  border-radius: 999px;
  background: #ef4444;
  border: 2px solid #fff;
  pointer-events: none;
}
.ai-chat.is-open .ai-chat-badge { display: none; }

/* Embedded chat on Products catalog */
.ai-chat-embed {
  padding: 8px 0 48px;
}
.ai-chat-panel-embed {
  width: 100%;
  max-width: 720px;
  height: min(440px, 70vh);
  margin: 0 auto;
  animation: none;
  position: relative;
}
.ai-msg-typing .ai-typing-cursor {
  display: inline-block;
  width: 0.55ch;
  margin-left: 1px;
  background: currentColor;
  animation: ai-blink 0.9s step-end infinite;
  vertical-align: text-bottom;
  height: 1em;
}
@keyframes ai-blink {
  50% { opacity: 0; }
}

@media (max-width: 900px) {
  .trust, .grid-3, .lane-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 640px) {
  .trust, .grid-3, .grid-2, .lane-grid { grid-template-columns: 1fr; }
  .banner-slide { padding: 22px 18px 24px; }
  .ai-chat { right: 12px; bottom: 12px; }
  .ai-chat-panel {
    width: calc(100vw - 24px);
    height: min(70vh, 560px);
  }
  .ai-chat-panel-embed {
    height: min(480px, 75vh);
  }
}
