:root {
  --bg: #0b1220;
  --bg-2: #0f172a;
  --bg-3: #111a2e;
  --surface: #131c33;
  --border: rgba(148, 163, 184, 0.15);
  --text: #e6edf7;
  --muted: #97a3b6;
  --brand: #0ea5e9;
  --brand-2: #22d3ee;
  --accent: #a78bfa;
  --radius: 14px;
  --radius-lg: 20px;
  --shadow: 0 12px 40px rgba(2, 8, 23, 0.45);
  --maxw: 1180px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: 'Inter', system-ui, -apple-system, Segoe UI, Roboto, sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }

.container { width: 100%; max-width: var(--maxw); margin: 0 auto; padding: 0 24px; }

/* Nav */
.nav {
  position: sticky; top: 0; z-index: 50;
  background: rgba(11, 18, 32, 0.75);
  backdrop-filter: saturate(160%) blur(14px);
  -webkit-backdrop-filter: saturate(160%) blur(14px);
  border-bottom: 1px solid transparent;
  transition: border-color .25s ease, background .25s ease;
}
.nav.is-scrolled { border-bottom-color: var(--border); background: rgba(11, 18, 32, 0.9); }
.nav__inner {
  display: flex; align-items: center; justify-content: space-between;
  height: 68px;
}
.brand { display: inline-flex; align-items: center; gap: 10px; font-weight: 700; }
.brand__mark {
  width: 32px; height: 32px; border-radius: 8px;
  background: linear-gradient(135deg, var(--brand), var(--accent));
  display: inline-grid; place-items: center; color: white; font-weight: 800;
  box-shadow: 0 6px 20px rgba(14, 165, 233, 0.35);
}
.brand__mark--logo {
  background: transparent;
  box-shadow: none;
  display: inline-grid; place-items: center;
}
.brand__mark--logo svg { display: block; }
.brand__name { letter-spacing: .2px; }
.brand__sub { color: var(--muted); font-weight: 500; }

.nav__links { display: flex; align-items: center; gap: 28px; }
.nav__links a { color: var(--muted); font-weight: 500; font-size: 15px; }
.nav__links a:hover { color: var(--text); }
.nav__toggle {
  display: none; background: transparent; border: 0; padding: 8px; cursor: pointer;
}
.nav__toggle span { display: block; width: 22px; height: 2px; background: var(--text); margin: 5px 0; border-radius: 2px; transition: transform .2s; }

/* Buttons */
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  padding: 12px 20px; border-radius: 999px; font-weight: 600; font-size: 15px;
  border: 1px solid transparent; cursor: pointer; transition: transform .15s ease, background .2s ease, border-color .2s ease, color .2s ease;
}
.btn--sm { padding: 8px 16px; font-size: 14px; }
.btn--primary {
  background: linear-gradient(135deg, var(--brand), var(--accent));
  color: white; box-shadow: 0 10px 30px rgba(14, 165, 233, 0.35);
}
.btn--primary:hover { transform: translateY(-1px); }
.btn--ghost { border-color: var(--border); color: var(--text); background: transparent; }
.btn--ghost:hover { border-color: rgba(148, 163, 184, 0.4); }
.btn--full { width: 100%; }

/* Hero */
.hero { position: relative; padding: 96px 0 72px; overflow: hidden; }
.hero__logo {
  display: flex; align-items: center; justify-content: center;
  padding: 22px;
  border-radius: 24px;
  background: linear-gradient(180deg, rgba(20, 184, 166, 0.10), rgba(20, 184, 166, 0.02));
  border: 1px solid rgba(20, 184, 166, 0.25);
  box-shadow: 0 12px 40px rgba(20, 184, 166, 0.18);
  aspect-ratio: 1 / 1;
  width: 100%;
}
.hero__logo svg { display: block; width: 100%; height: auto; max-width: 140px; }
.hero__bg {
  position: absolute; inset: -20% -10% auto -10%; height: 620px;
  background:
    radial-gradient(700px 300px at 15% 20%, rgba(14, 165, 233, 0.25), transparent 60%),
    radial-gradient(600px 260px at 85% 10%, rgba(167, 139, 250, 0.22), transparent 60%),
    radial-gradient(800px 300px at 50% 100%, rgba(34, 211, 238, 0.15), transparent 60%);
  filter: blur(4px);
  z-index: 0;
}
.hero__inner {
  position: relative; z-index: 1;
  display: grid;
  grid-template-columns: minmax(160px, 200px) 1fr;
  gap: 48px;
  align-items: flex-start;
}
.hero__content { min-width: 0; max-width: 820px; }
.eyebrow {
  text-transform: uppercase; letter-spacing: .18em; font-size: 12px;
  color: var(--brand-2); font-weight: 700; margin: 0 0 14px;
}
.eyebrow--titlecase {
  text-transform: none;
  letter-spacing: .04em;
  font-size: 14px;
}
h1 {
  font-size: clamp(36px, 5.6vw, 60px); line-height: 1.06;
  margin: 0 0 20px; font-weight: 800; letter-spacing: -0.02em;
}
h2 {
  font-size: clamp(26px, 3.4vw, 38px); line-height: 1.15;
  margin: 0 0 12px; font-weight: 700; letter-spacing: -0.01em;
}
h3 { font-size: 18px; margin: 0 0 8px; font-weight: 700; }
.grad {
  color: #5eead4;
  -webkit-text-fill-color: #5eead4;
  background: none;
}
.lead { font-size: 18px; color: var(--muted); max-width: 720px; }
.hero__ctas { display: flex; flex-wrap: wrap; gap: 12px; margin: 28px 0 36px; }
.hero__stats {
  list-style: none; padding: 0; margin: 0; display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
}
.hero__stats li {
  background: linear-gradient(180deg, rgba(255,255,255,0.03), rgba(255,255,255,0.01));
  border: 1px solid var(--border); border-radius: var(--radius);
  padding: 14px 16px;
}
.hero__stats strong { display: block; font-size: 16px; }
.hero__stats span { color: var(--muted); font-size: 13px; }

/* Sections */
.section { padding: 88px 0; position: relative; }
.section--alt { background: linear-gradient(180deg, var(--bg-2), var(--bg-3)); border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); }
.section__head { max-width: 760px; margin: 0 auto 40px; text-align: center; }
.section__head h2 { margin-top: 6px; }

/* Grid */
.grid { display: grid; gap: 20px; }
.grid--3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }

/* Cards */
.card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 26px;
  transition: transform .2s ease, border-color .2s ease, box-shadow .25s ease;
}
.card:hover {
  transform: translateY(-3px);
  border-color: rgba(14, 165, 233, 0.35);
  box-shadow: var(--shadow);
}
.card__icon {
  width: 42px; height: 42px; border-radius: 12px;
  background: linear-gradient(135deg, rgba(14,165,233,0.18), rgba(167,139,250,0.18));
  color: var(--brand-2); display: grid; place-items: center;
  font-size: 20px; margin-bottom: 16px; border: 1px solid var(--border);
}
.card p { color: var(--muted); margin: 0 0 14px; }
.ticks { list-style: none; margin: 0; padding: 0; }
.ticks li {
  color: var(--text); font-size: 14px; padding-left: 22px; position: relative; margin: 6px 0;
}
.ticks li::before {
  content: ""; position: absolute; left: 0; top: 9px;
  width: 12px; height: 12px; border-radius: 3px;
  background: linear-gradient(135deg, var(--brand), var(--accent));
}

/* Steps */
.steps {
  list-style: none; padding: 0; margin: 0;
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px;
  counter-reset: step;
}
.steps li {
  background: var(--surface); border: 1px solid var(--border);
  border-radius: var(--radius-lg); padding: 24px;
}
.steps__num {
  display: inline-block; font-weight: 800; color: var(--brand-2);
  font-size: 14px; letter-spacing: .12em; margin-bottom: 12px;
}
.steps p { color: var(--muted); margin: 0; }

/* Tags */
.tags {
  display: flex; flex-wrap: wrap; gap: 10px; justify-content: center;
}
.tags span {
  padding: 10px 16px; border-radius: 999px;
  background: var(--surface); border: 1px solid var(--border);
  color: var(--text); font-size: 14px;
}

/* About */
.about { display: grid; grid-template-columns: 1.15fr 0.85fr; gap: 40px; align-items: center; }
.about p { color: var(--muted); margin: 0 0 14px; max-width: 60ch; }
.about .btn { margin-top: 12px; }
.stat-cards { display: grid; grid-template-columns: repeat(2, 1fr); gap: 14px; }
.stat-cards div {
  background: var(--surface); border: 1px solid var(--border);
  border-radius: var(--radius); padding: 18px;
}
.stat-cards strong { display: block; }
.stat-cards span { color: var(--muted); font-size: 13px; }

/* Contact */
.contact { display: grid; grid-template-columns: 1fr 1fr; gap: 40px; align-items: start; }
.contact p { color: var(--muted); }
.contact__meta { list-style: none; padding: 0; margin: 18px 0 0; }
.contact__meta li { margin: 8px 0; color: var(--text); }
.contact__meta span { display: inline-block; width: 90px; color: var(--muted); font-size: 13px; text-transform: uppercase; letter-spacing: .12em; }
.contact__form {
  background: var(--surface); border: 1px solid var(--border);
  border-radius: var(--radius-lg); padding: 24px; display: grid; gap: 14px;
}
.contact__form label { display: grid; gap: 6px; font-size: 13px; color: var(--muted); }
.contact__form input,
.contact__form textarea {
  background: rgba(255,255,255,0.03);
  border: 1px solid var(--border);
  color: var(--text); padding: 12px 14px; border-radius: 10px;
  font: inherit; font-size: 15px; outline: none; transition: border-color .2s, box-shadow .2s;
}
.contact__form input:focus,
.contact__form textarea:focus {
  border-color: var(--brand);
  box-shadow: 0 0 0 3px rgba(14, 165, 233, 0.18);
}
.fine { font-size: 12px; color: var(--muted); margin: 0; }
.form-success {
  background: var(--surface); border: 1px solid rgba(20, 184, 166, 0.35);
  border-radius: var(--radius-lg); padding: 32px; text-align: center;
  display: grid; gap: 8px;
  box-shadow: 0 12px 40px rgba(20, 184, 166, 0.15);
}
.form-success strong { color: #5eead4; font-size: 18px; }
.form-success span { color: var(--muted); font-size: 14px; }

/* Footer */
.footer {
  border-top: 1px solid var(--border);
  padding: 28px 0; background: var(--bg-2);
}
.footer__inner {
  display: flex; align-items: center; justify-content: space-between; gap: 20px; flex-wrap: wrap;
}
.footer nav { display: flex; gap: 18px; }
.footer nav a { color: var(--muted); font-size: 14px; }
.footer nav a:hover { color: var(--text); }
.footer p { color: var(--muted); font-size: 13px; margin: 0; }

/* Products */
.product {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 24px;
  padding: 32px;
  margin-bottom: 24px;
  position: relative;
  overflow: hidden;
}
.product::before {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background:
    radial-gradient(400px 200px at 100% 0%, rgba(14,165,233,0.10), transparent 60%),
    radial-gradient(400px 200px at 0% 100%, rgba(34,211,238,0.08), transparent 60%);
}
.product--alt::before {
  background:
    radial-gradient(400px 200px at 100% 0%, rgba(167,139,250,0.12), transparent 60%),
    radial-gradient(400px 200px at 0% 100%, rgba(14,165,233,0.08), transparent 60%);
}
.product__badge {
  display: flex; align-items: center; gap: 16px; margin-bottom: 18px; position: relative;
}
.product__mark {
  width: 54px; height: 54px; border-radius: 14px;
  background: linear-gradient(135deg, var(--brand), var(--brand-2));
  display: grid; place-items: center; color: white; font-weight: 800; font-size: 24px;
  box-shadow: 0 10px 30px rgba(14,165,233,0.35);
  flex-shrink: 0;
}
.product__mark--alt {
  background: linear-gradient(135deg, var(--accent), var(--brand));
  box-shadow: 0 10px 30px rgba(167,139,250,0.35);
}
.product__mark--fin {
  background: linear-gradient(135deg, #14b8a6, #22d3ee);
  box-shadow: 0 10px 30px rgba(20,184,166,0.35);
}
.product__mark--ent {
  background: linear-gradient(135deg, #a78bfa, #14b8a6);
  box-shadow: 0 10px 30px rgba(167,139,250,0.35);
}
.product__mark svg { display: block; }
.product__name { font-size: 24px; margin: 4px 0 4px; font-weight: 800; letter-spacing: -0.01em; }
.product__tag { color: var(--muted); margin: 0; font-size: 15px; }
.product__body { position: relative; }
.product__body > p { color: var(--muted); max-width: 78ch; }
.product__cols {
  display: grid; grid-template-columns: 1fr 1fr; gap: 32px; margin: 22px 0 20px;
}
.product__cols h4 {
  font-size: 13px; text-transform: uppercase; letter-spacing: .14em;
  color: var(--brand-2); margin: 0 0 12px; font-weight: 700;
}
.usecases { list-style: none; padding: 0; margin: 0; display: grid; gap: 10px; }
.usecases li {
  color: var(--text); font-size: 14px; padding: 12px 14px;
  border-left: 3px solid var(--brand);
  background: rgba(255,255,255,0.025); border-radius: 8px;
}
.chips { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 6px; }
.chips span {
  font-size: 12px; padding: 6px 12px; border-radius: 999px;
  background: rgba(14, 165, 233, 0.10);
  border: 1px solid rgba(14, 165, 233, 0.25);
  color: var(--brand-2); font-weight: 500;
}
.product--alt .chips span {
  background: rgba(167, 139, 250, 0.10);
  border-color: rgba(167, 139, 250, 0.25);
  color: #c4b5fd;
}
.contact__form select {
  background: rgba(255,255,255,0.03);
  border: 1px solid var(--border);
  color: var(--text); padding: 12px 14px; border-radius: 10px;
  font: inherit; font-size: 15px; outline: none;
}
.contact__form select:focus {
  border-color: var(--brand);
  box-shadow: 0 0 0 3px rgba(14, 165, 233, 0.18);
}

/* Q2C deep dive */
.q2c-stats {
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px;
  margin: 0 0 32px;
}
.q2c-stats div {
  background: var(--surface); border: 1px solid var(--border);
  border-radius: var(--radius); padding: 18px;
}
.q2c-stats strong {
  display: block; font-size: 22px; font-weight: 800;
  color: #14b8a6; letter-spacing: -0.01em;
}
.q2c-stats span { color: var(--muted); font-size: 12px; }

.q2c-grid {
  display: grid; grid-template-columns: repeat(2, 1fr); gap: 20px;
}
.q2c-card {
  background: var(--surface); border: 1px solid var(--border);
  border-radius: var(--radius-lg); padding: 26px;
  position: relative; transition: transform .2s ease, border-color .2s ease;
}
.q2c-card:hover { transform: translateY(-3px); border-color: rgba(20,184,166,0.35); }
.q2c-card h3 { font-size: 18px; margin: 12px 0 10px; font-weight: 700; }
.q2c-card p { color: var(--muted); margin: 0 0 14px; font-size: 14.5px; }
.q2c-card p code {
  background: rgba(20,184,166,0.10);
  border: 1px solid rgba(20,184,166,0.25);
  color: #5eead4; padding: 1px 6px; border-radius: 4px;
  font-size: 12.5px;
}
.q2c-tag {
  display: inline-block; font-size: 11px; font-weight: 700;
  letter-spacing: .10em; text-transform: uppercase;
  padding: 4px 10px; border-radius: 6px;
}
.q2c-tag--chat { background: rgba(20,184,166,0.15); color: #5eead4; border: 1px solid rgba(20,184,166,0.30); }
.q2c-tag--insights { background: rgba(167,139,250,0.15); color: #c4b5fd; border: 1px solid rgba(167,139,250,0.30); }
.q2c-tag--investigate { background: rgba(239,68,68,0.15); color: #fca5a5; border: 1px solid rgba(239,68,68,0.30); }
.q2c-tag--anomaly { background: rgba(249,115,22,0.15); color: #fdba74; border: 1px solid rgba(249,115,22,0.30); }
.q2c-tag--dq { background: rgba(14,165,233,0.15); color: #7dd3fc; border: 1px solid rgba(14,165,233,0.30); }
.q2c-tag--fpa { background: rgba(34,211,238,0.15); color: #67e8f9; border: 1px solid rgba(34,211,238,0.30); }

/* SC deep dive */
.sc-grid {
  display: grid; grid-template-columns: repeat(2, 1fr); gap: 20px;
}
.sc-card {
  background: var(--surface); border: 1px solid var(--border);
  border-radius: var(--radius-lg); padding: 26px;
  transition: transform .2s ease, border-color .2s ease;
}
.sc-card:hover { transform: translateY(-3px); border-color: rgba(20,184,166,0.35); }
.sc-card__head {
  display: grid; grid-template-columns: auto 1fr auto;
  gap: 16px; align-items: center; margin-bottom: 16px;
}
.sc-card__head h3 { margin: 0; font-size: 18px; font-weight: 700; }
.sc-purpose { color: var(--muted); font-size: 13px; margin: 4px 0 0; }
.sc-num {
  display: inline-block; font-weight: 800;
  color: #14b8a6; font-size: 22px; letter-spacing: .04em;
  min-width: 36px;
}
.sc-count {
  font-size: 11px; font-weight: 700;
  letter-spacing: .10em; text-transform: uppercase;
  padding: 5px 10px; border-radius: 999px;
  background: rgba(20,184,166,0.12);
  border: 1px solid rgba(20,184,166,0.28);
  color: #5eead4; white-space: nowrap;
}
.sc-foundations {
  margin-top: 32px;
  padding: 20px 24px;
  background: linear-gradient(180deg, rgba(20,184,166,0.06), rgba(20,184,166,0.02));
  border: 1px solid rgba(20,184,166,0.20);
  border-radius: var(--radius-lg);
}
.sc-foundations h4 {
  font-size: 13px; text-transform: uppercase; letter-spacing: .14em;
  color: #5eead4; margin: 0 0 12px; font-weight: 700;
}

/* Responsive */
@media (max-width: 900px) {
  .grid--3 { grid-template-columns: 1fr; }
  .steps { grid-template-columns: repeat(2, 1fr); }
  .about, .contact { grid-template-columns: 1fr; }
  .hero__stats { grid-template-columns: 1fr; }
  .product__cols { grid-template-columns: 1fr; gap: 20px; }
  .product { padding: 22px; }
  .q2c-stats { grid-template-columns: repeat(2, 1fr); }
  .q2c-grid, .sc-grid { grid-template-columns: 1fr; }
  .hero__inner {
    grid-template-columns: 1fr;
    gap: 28px;
  }
  .hero__logo { max-width: 180px; aspect-ratio: 1 / 1; }
  .hero__stats { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 720px) {
  .nav__links {
    position: absolute; right: 16px; top: 64px; flex-direction: column; align-items: flex-start;
    background: var(--bg-2); border: 1px solid var(--border); border-radius: 14px; padding: 14px;
    box-shadow: var(--shadow);
    display: none;
  }
  .nav__links.is-open { display: flex; }
  .nav__toggle { display: block; }
  .steps { grid-template-columns: 1fr; }
  .brand__sub { display: none; }
  .section { padding: 64px 0; }
  .hero { padding: 64px 0 40px; }
}
