:root {
  --ink: #0e1a2b;
  --muted: #546179;
  --line: #d9e3f1;
  --line-strong: #b4c4dc;
  --bg: #f4f7fb;
  --panel: #ffffff;
  --panel-soft: #edf4ff;
  --navy: #10233f;
  --blue: #1f66d1;
  --blue-dark: #174c9d;
  --gold: #d4a62f;
  --green: #19a06b;
  --shadow: 0 24px 70px rgba(16, 35, 63, 0.14);
  --radius-lg: 28px;
  --radius-md: 18px;
  --radius-sm: 12px;
  --max: 1180px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  color: var(--ink);
  background: var(--bg);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  line-height: 1.5;
}
a { color: inherit; text-decoration: none; }
img { max-width: 100%; height: auto; }
code { background: rgba(31, 102, 209, 0.08); padding: 0.08rem 0.35rem; border-radius: 0.35rem; }

.topnav {
  position: sticky;
  top: 0;
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  max-width: var(--max);
  margin: 1rem auto 0;
  padding: 0.8rem 1rem;
  background: rgba(255, 255, 255, 0.86);
  backdrop-filter: blur(18px);
  border: 1px solid rgba(180, 196, 220, 0.7);
  border-radius: 999px;
  box-shadow: 0 12px 30px rgba(16, 35, 63, 0.08);
}
.brand { display: flex; align-items: center; }
.brand img { width: 128px; height: auto; }
.topnav__links { display: flex; align-items: center; gap: 0.25rem; flex-wrap: wrap; }
.topnav__links a {
  padding: 0.55rem 0.85rem;
  color: var(--muted);
  border-radius: 999px;
  font-size: 0.92rem;
  font-weight: 650;
}
.topnav__links a:hover { background: var(--panel-soft); color: var(--blue-dark); }

.hero {
  display: grid;
  grid-template-columns: minmax(0, 1.02fr) minmax(360px, 0.98fr);
  align-items: center;
  gap: 3rem;
  max-width: var(--max);
  margin: 4.5rem auto 2rem;
  padding: 0 1rem;
}
.hero__content h1 {
  margin: 0.8rem 0 1rem;
  max-width: 780px;
  font-size: clamp(2.5rem, 6vw, 5.25rem);
  line-height: 0.96;
  letter-spacing: -0.06em;
}
.hero__subtitle {
  max-width: 690px;
  margin: 0 0 1.65rem;
  color: var(--muted);
  font-size: 1.18rem;
}
.hero__actions { display: flex; gap: 0.9rem; flex-wrap: wrap; margin: 1.5rem 0; }
.hero__proof { color: var(--muted); font-weight: 650; font-size: 0.95rem; }
.hero__visual {
  min-height: 460px;
  display: grid;
  place-items: center;
  background: linear-gradient(145deg, #112844, #1e65c9 58%, #d4a62f 120%);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow);
  overflow: hidden;
  border: 1px solid rgba(255,255,255,0.4);
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  color: var(--blue-dark);
  font-size: 0.78rem;
  font-weight: 850;
  text-transform: uppercase;
  letter-spacing: 0.12em;
}
.eyebrow::before {
  content: "";
  width: 0.75rem;
  height: 0.75rem;
  border-radius: 99px;
  background: var(--gold);
  box-shadow: 0 0 0 5px rgba(212, 166, 47, 0.14);
}
.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.92rem 1.2rem;
  border-radius: 999px;
  font-weight: 800;
  border: 1px solid transparent;
  transition: transform 140ms ease, box-shadow 140ms ease, background 140ms ease;
}
.button:hover { transform: translateY(-1px); }
.button--primary { background: var(--blue); color: #fff; box-shadow: 0 14px 30px rgba(31, 102, 209, 0.28); }
.button--primary:hover { background: var(--blue-dark); }
.button--secondary { border-color: var(--line-strong); background: #fff; color: var(--navy); }

.metrics-grid {
  max-width: var(--max);
  margin: 1.75rem auto 5rem;
  padding: 0 1rem;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 1rem;
}
.metric-card {
  padding: 1.35rem;
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  box-shadow: 0 14px 30px rgba(16, 35, 63, 0.06);
}
.metric-card strong { display: block; font-size: 2.3rem; line-height: 1; letter-spacing: -0.04em; }
.metric-card span { display: block; margin-top: 0.45rem; color: var(--muted); font-weight: 650; }

.section, .section-panel, .cta-section {
  max-width: var(--max);
  margin: 0 auto 5rem;
  padding: 0 1rem;
}
.section--light, .section-panel {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: 3rem;
  box-shadow: var(--shadow);
}
.section--dark {
  background: radial-gradient(circle at top left, rgba(31, 102, 209, 0.32), transparent 28%), var(--navy);
  color: #fff;
  border-radius: var(--radius-lg);
  padding: 3rem;
  box-shadow: var(--shadow);
}
.section--dark .section-heading p { color: rgba(255,255,255,0.74); }
.section--dark .eyebrow { color: #bcd5ff; }
.section-heading { max-width: 760px; margin-bottom: 2rem; }
.section-heading--center { margin-left: auto; margin-right: auto; text-align: center; }
.section-heading--center .eyebrow::before { display: none; }
.section-heading h2 {
  margin: 0.45rem 0 0.75rem;
  font-size: clamp(2rem, 4.6vw, 3.35rem);
  line-height: 1.02;
  letter-spacing: -0.045em;
}
.section-heading p { margin: 0; color: var(--muted); font-size: 1.05rem; }

.capability-grid {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 1rem;
}
.capability-card {
  display: flex;
  flex-direction: column;
  min-height: 100%;
  padding: 1.2rem;
  border: 1px solid var(--line);
  background: linear-gradient(180deg, #fff, #f8fbff);
  border-radius: var(--radius-md);
}
.capability-card__topline { display: flex; justify-content: space-between; align-items: center; gap: 0.75rem; }
.capability-card__icon {
  display: inline-grid;
  place-items: center;
  width: 2.5rem;
  height: 2.5rem;
  border-radius: 999px;
  color: #fff;
  background: var(--blue);
  font-weight: 850;
  font-size: 0.92rem;
}
.capability-card h3 { margin: 1.1rem 0 0.55rem; font-size: 1.14rem; line-height: 1.15; }
.capability-card p { color: var(--muted); margin: 0 0 1rem; font-size: 0.95rem; }
.capability-card ul { margin: auto 0 0; padding: 0; list-style: none; display: grid; gap: 0.38rem; }
.capability-card li { color: var(--navy); font-size: 0.86rem; font-weight: 650; }
.capability-card li::before { content: "✓"; margin-right: 0.38rem; color: var(--green); }
.pill {
  display: inline-flex;
  align-items: center;
  padding: 0.32rem 0.65rem;
  border-radius: 999px;
  background: rgba(31,102,209,0.1);
  color: var(--blue-dark);
  font-size: 0.74rem;
  font-weight: 850;
}
.pill--muted { background: #eef3fa; color: #496077; }

.demo-shell { padding: 3rem; }
.browser-frame {
  background: #0b1728;
  border-radius: 24px;
  overflow: hidden;
  box-shadow: 0 26px 60px rgba(0,0,0,0.28);
  border: 1px solid rgba(255,255,255,0.14);
}
.browser-frame__chrome {
  display: flex;
  align-items: center;
  gap: 0.48rem;
  padding: 0.75rem 1rem;
  background: #17253b;
  color: rgba(255,255,255,0.72);
  font-size: 0.82rem;
}
.browser-frame__chrome span { width: 0.72rem; height: 0.72rem; border-radius: 999px; background: #ff6b6b; display: inline-block; }
.browser-frame__chrome span:nth-child(2) { background: #f7c948; }
.browser-frame__chrome span:nth-child(3) { background: #3bd678; }
.browser-frame__chrome p { margin: 0 0 0 0.5rem; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.demo-frame { display: block; width: 100%; height: min(70vh, 760px); border: 0; background: #fff; }
.demo-placeholder { position: relative; min-height: 530px; background: #edf4ff; }
.demo-placeholder img { display: block; width: 100%; height: auto; }
.demo-placeholder__callout {
  position: absolute;
  right: 2rem;
  bottom: 2rem;
  width: min(380px, calc(100% - 4rem));
  padding: 1.2rem;
  background: rgba(255,255,255,0.92);
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  box-shadow: 0 18px 40px rgba(16,35,63,0.16);
}
.demo-placeholder__callout h3 { margin: 0.7rem 0 0.35rem; }
.demo-placeholder__callout p { margin: 0; color: var(--muted); }

.split-section {
  display: grid;
  grid-template-columns: minmax(0, 0.85fr) minmax(360px, 1.15fr);
  gap: 2rem;
  align-items: start;
}
.entity-cloud {
  display: flex;
  flex-wrap: wrap;
  gap: 0.65rem;
  padding: 1rem;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  box-shadow: 0 14px 30px rgba(16,35,63,0.06);
}
.entity-cloud span { padding: 0.55rem 0.72rem; border-radius: 999px; background: #f3f7fd; color: var(--navy); font-weight: 750; font-size: 0.88rem; }
.entity-cloud span:nth-child(3n) { background: #fff7de; }
.entity-cloud span:nth-child(4n) { background: #e9f7f0; }

.steps-grid, .role-grid { display: grid; gap: 1rem; }
.steps-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.step-card {
  padding: 1.35rem;
  border: 1px solid rgba(255,255,255,0.16);
  border-radius: var(--radius-md);
  background: rgba(255,255,255,0.08);
}
.step-card span { color: var(--gold); font-size: 0.88rem; font-weight: 900; }
.step-card h3 { margin: 0.55rem 0; }
.step-card p { margin: 0; color: rgba(255,255,255,0.74); }
.role-grid { grid-template-columns: repeat(5, minmax(0, 1fr)); }
.role-card {
  padding: 1.1rem;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
}
.role-card h3 { margin: 0 0 0.6rem; font-size: 1rem; }
.role-card p { margin: 0; color: var(--muted); font-size: 0.92rem; }
.role-card__signal { color: var(--blue-dark) !important; font-weight: 750; margin-bottom: 0.5rem !important; }

.cta-section {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 320px;
  gap: 1.5rem;
  align-items: center;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: 2.25rem;
  box-shadow: var(--shadow);
}
.cta-section h2 { margin: 0.45rem 0; font-size: clamp(1.8rem, 3.8vw, 3rem); line-height: 1.03; letter-spacing: -0.04em; }
.cta-section p { margin: 0; color: var(--muted); }
.contact-card {
  display: grid;
  gap: 0.5rem;
  padding: 1.2rem;
  background: var(--panel-soft);
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
}
.contact-card a { color: var(--blue-dark); font-weight: 800; }
.footer {
  max-width: var(--max);
  margin: 0 auto 2rem;
  padding: 0 1rem;
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
  color: var(--muted);
  font-size: 0.9rem;
}

@media (max-width: 1060px) {
  .hero, .split-section, .cta-section { grid-template-columns: 1fr; }
  .capability-grid, .role-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .metrics-grid, .steps-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .hero__visual { min-height: auto; }
}
@media (max-width: 680px) {
  .topnav { align-items: flex-start; border-radius: 24px; flex-direction: column; margin-left: 1rem; margin-right: 1rem; }
  .topnav__links { gap: 0.1rem; }
  .hero { margin-top: 2.5rem; }
  .metrics-grid, .capability-grid, .role-grid, .steps-grid { grid-template-columns: 1fr; }
  .section--light, .section--dark, .section-panel, .demo-shell, .cta-section { padding: 1.25rem; border-radius: 22px; }
  .demo-placeholder { min-height: 420px; }
  .demo-placeholder__callout { position: static; width: auto; margin: 1rem; }
}
