:root {
  --ink: #1c2540;
  --muted: #5a6584;
  --faint: #8b93ad;
  --bg: #f7f9ff;
  --card: #ffffff;
  --line: #e3e9f7;
  --sky1: #4f8ef7;
  --sky2: #7c6cf0;
  --sky3: #b3d4ff;
  --good: #1e9e6a;
  --bad: #d8632b;
  --grad: linear-gradient(120deg, #4f8ef7, #7c6cf0);
  --grad-soft: linear-gradient(160deg, #eaf2ff 0%, #f1edff 55%, #fdf3ff 100%);
  --radius: 18px;
  --shadow: 0 10px 30px rgba(48, 74, 150, 0.10);
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: 'Plus Jakarta Sans', system-ui, -apple-system, sans-serif;
  background: var(--bg);
  color: var(--ink);
  line-height: 1.6;
}

img { max-width: 100%; display: block; }

.wrap { max-width: 1100px; margin: 0 auto; padding: 0 20px; }

h1, h2, h3 { line-height: 1.15; letter-spacing: -0.02em; }
h2 { font-size: clamp(1.6rem, 3.5vw, 2.3rem); margin: 0 0 10px; }

section { padding: 70px 0; }
section.soft { background: var(--grad-soft); }

.sec-head { max-width: 640px; margin: 0 auto 42px; text-align: center; }
.sec-head p { color: var(--muted); margin: 0; }

.grad-text {
  background: var(--grad);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

/* ---------- Nav ---------- */

.nav {
  position: sticky; top: 0; z-index: 50;
  background: rgba(247, 249, 255, 0.9);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
}

.nav-inner {
  max-width: 1100px; margin: 0 auto; padding: 12px 20px;
  display: flex; align-items: center; gap: 18px;
}

.brand {
  display: flex; align-items: center; gap: 10px;
  font-weight: 800; font-size: 1.08rem; color: var(--ink);
  text-decoration: none; margin-right: auto;
}
.brand img { width: 34px; height: 34px; }

.nav-links { display: flex; align-items: center; gap: 22px; }
.nav-links a {
  color: var(--muted); text-decoration: none; font-weight: 600; font-size: 0.92rem;
}
.nav-links a:hover { color: var(--ink); }
.nav-links a.cta {
  background: var(--grad); color: #fff; padding: 9px 18px;
  border-radius: 999px; box-shadow: var(--shadow);
}

.nav-toggle {
  display: none; background: none; border: none; font-size: 1.5rem;
  color: var(--ink); cursor: pointer; padding: 4px 8px;
}

/* ---------- Buttons ---------- */

.btn {
  display: inline-block; border: none; cursor: pointer;
  font-family: inherit; font-weight: 700; font-size: 0.98rem;
  padding: 13px 26px; border-radius: 999px; text-decoration: none;
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}
.btn:hover { transform: translateY(-2px); }
.btn-primary { background: var(--grad); color: #fff; box-shadow: 0 8px 22px rgba(79, 110, 247, 0.35); }
.btn-ghost {
  background: #fff; color: var(--ink);
  box-shadow: inset 0 0 0 2px var(--line);
}
.btn-small { padding: 10px 20px; font-size: 0.9rem; }
.btn-wide { width: 100%; text-align: center; }

/* ---------- Hero ---------- */

.hero {
  position: relative; overflow: hidden;
  background: linear-gradient(175deg, #dceafe 0%, #e9e4ff 60%, #fdf0ff 100%);
  padding: 76px 0 84px;
}

.hero-inner {
  display: grid; grid-template-columns: 1.05fr 0.95fr;
  gap: 48px; align-items: center;
}

.eyebrow {
  display: inline-block; background: #fff; color: var(--sky2);
  font-size: 0.78rem; font-weight: 700; letter-spacing: 0.02em;
  padding: 6px 14px; border-radius: 999px; box-shadow: var(--shadow);
  margin-bottom: 18px;
}

.hero h1 {
  font-size: clamp(2.2rem, 5.2vw, 3.6rem);
  font-weight: 800; margin: 0 0 18px;
}

.hero-sub { font-size: 1.08rem; color: var(--muted); max-width: 34em; margin: 0 0 26px; }
.hero-sub b { color: var(--ink); }

.hero-ctas { display: flex; gap: 14px; flex-wrap: wrap; margin-bottom: 16px; }
.hero-note { font-size: 0.85rem; color: var(--faint); margin: 0; }
.hero-note .dot { color: var(--good); }

.hero-media { position: relative; }
.hero-media img {
  border-radius: 24px; box-shadow: 0 24px 60px rgba(48, 74, 150, 0.28);
  cursor: zoom-in;
}
.hero-chip {
  position: absolute; left: -14px; bottom: 22px;
  background: #fff; border-radius: 14px; box-shadow: var(--shadow);
  padding: 10px 16px; font-size: 0.82rem; font-weight: 700;
}
.hero-chip span { display: block; color: var(--faint); font-weight: 600; font-size: 0.72rem; }

/* ---------- Logo bar ---------- */

.logobar { padding: 26px 0; border-bottom: 1px solid var(--line); background: #fff; }
.logobar p {
  text-align: center; font-size: 0.78rem; letter-spacing: 0.08em;
  text-transform: uppercase; color: var(--faint); margin: 0 0 14px;
}
.logo-row {
  display: flex; flex-wrap: wrap; justify-content: center; gap: 14px 38px;
  font-weight: 800; color: #b9c1d9; font-size: 1.05rem;
}

/* ---------- Cards / grids ---------- */

.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }

.card {
  background: var(--card); border-radius: var(--radius);
  padding: 28px; box-shadow: var(--shadow);
}
.card h3 { margin: 12px 0 8px; }
.card p { color: var(--muted); margin: 0; font-size: 0.95rem; }

.step-num {
  width: 40px; height: 40px; border-radius: 12px;
  background: var(--grad); color: #fff; font-weight: 800;
  display: flex; align-items: center; justify-content: center; font-size: 1.1rem;
}

.split { display: grid; grid-template-columns: 1fr 1fr; gap: 48px; align-items: center; }
.split-media img { border-radius: var(--radius); box-shadow: var(--shadow); cursor: zoom-in; }
.split-copy h2 { margin-top: 0; }
.split-copy p { color: var(--muted); }
.split-copy ul { color: var(--muted); padding-left: 20px; margin: 14px 0 0; }
.split-copy li { margin-bottom: 8px; }
.split.rev .split-media { order: 2; }

/* ---------- Pricing ---------- */

.price-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; align-items: start; }

.price-card {
  background: var(--card); border-radius: var(--radius);
  box-shadow: var(--shadow); overflow: hidden; position: relative;
  display: flex; flex-direction: column;
}
.price-card.featured { outline: 3px solid var(--sky2); }

.price-media { position: relative; }
.price-media img { aspect-ratio: 16 / 10; object-fit: cover; cursor: zoom-in; }

.badge {
  position: absolute; top: 12px; right: 12px;
  background: var(--grad); color: #fff; font-size: 0.72rem; font-weight: 800;
  padding: 5px 12px; border-radius: 999px; letter-spacing: 0.03em;
}

.price-body { padding: 24px; display: flex; flex-direction: column; flex: 1; }
.price-body h3 { margin: 0 0 2px; }
.plan-for { color: var(--faint); font-size: 0.88rem; margin: 0 0 14px; }
.price { font-size: 2rem; font-weight: 800; margin: 0; }
.price small { font-size: 0.85rem; color: var(--faint); font-weight: 600; }
.plan-meta {
  display: flex; flex-wrap: wrap; gap: 6px; margin: 12px 0 14px;
}
.plan-meta span {
  background: var(--bg); border: 1px solid var(--line);
  font-size: 0.72rem; font-weight: 700; color: var(--muted);
  padding: 4px 10px; border-radius: 999px;
}
.price-body ul { padding-left: 18px; margin: 0 0 20px; color: var(--muted); font-size: 0.9rem; }
.price-body li { margin-bottom: 7px; }
.price-body .btn { margin-top: auto; }

/* ---------- Calculator ---------- */

.calc {
  background: var(--card); border-radius: var(--radius); box-shadow: var(--shadow);
  padding: 30px; display: grid; grid-template-columns: 1.1fr 0.9fr; gap: 32px;
}
.calc h3 { margin-top: 0; }
.calc label { font-size: 0.85rem; font-weight: 700; display: block; margin-bottom: 6px; }
.calc .field { margin-bottom: 18px; }
.calc select, .calc input[type="number"] {
  width: 100%; padding: 11px 13px; border: 2px solid var(--line);
  border-radius: 12px; font-family: inherit; font-size: 0.95rem; background: #fff;
}
.calc input[type="range"] { width: 100%; accent-color: var(--sky2); }
.calc .range-val { font-size: 0.82rem; color: var(--faint); }
.calc-check { display: flex; align-items: center; gap: 8px; font-size: 0.9rem; color: var(--muted); margin-bottom: 8px; }
.calc-check input { accent-color: var(--sky2); width: 17px; height: 17px; }

.calc-out {
  background: var(--grad-soft); border-radius: 14px; padding: 24px;
  display: flex; flex-direction: column;
}
.calc-total { font-size: 2.4rem; font-weight: 800; margin: 4px 0 2px; }
.calc-total small { font-size: 1rem; color: var(--muted); font-weight: 600; }
.calc-lines { list-style: none; margin: 14px 0; padding: 0; font-size: 0.88rem; color: var(--muted); flex: 1; }
.calc-lines li { display: flex; justify-content: space-between; padding: 5px 0; border-bottom: 1px dashed var(--line); }
.calc-note { font-size: 0.75rem; color: var(--faint); margin: 10px 0 0; }

/* ---------- CTA band ---------- */

.cta-band {
  background: var(--grad); border-radius: 24px; color: #fff;
  text-align: center; padding: 56px 30px;
  box-shadow: 0 20px 50px rgba(79, 110, 247, 0.35);
}
.cta-band h2 { margin: 0 0 10px; }
.cta-band p { margin: 0 auto 24px; max-width: 34em; opacity: 0.92; }
.cta-band .btn-primary { background: #fff; color: var(--sky2); box-shadow: none; }

/* ---------- Status page ---------- */

.page-head { padding: 60px 0 30px; text-align: center; }
.page-head h1 { font-size: clamp(1.9rem, 4.5vw, 2.8rem); margin: 0 0 10px; }
.page-head p { color: var(--muted); max-width: 40em; margin: 0 auto; }

.status-banner {
  display: flex; align-items: center; gap: 14px; justify-content: center;
  background: var(--card); border-radius: var(--radius); box-shadow: var(--shadow);
  padding: 22px 26px; margin-bottom: 30px; flex-wrap: wrap; text-align: center;
}
.status-light { width: 16px; height: 16px; border-radius: 50%; background: var(--good); box-shadow: 0 0 0 6px rgba(30, 158, 106, 0.15); }
.status-light.warn { background: var(--bad); box-shadow: 0 0 0 6px rgba(216, 99, 43, 0.15); }
.status-banner b { font-size: 1.15rem; }
.status-banner span { color: var(--muted); font-size: 0.92rem; }

.status-table { width: 100%; border-collapse: collapse; background: var(--card); border-radius: var(--radius); box-shadow: var(--shadow); overflow: hidden; font-size: 0.92rem; }
.status-table th, .status-table td { text-align: left; padding: 13px 16px; border-bottom: 1px solid var(--line); }
.status-table th { background: var(--grad-soft); font-size: 0.78rem; text-transform: uppercase; letter-spacing: 0.05em; color: var(--muted); }
.status-table td .sub { display: block; color: var(--faint); font-size: 0.78rem; }
.pill { display: inline-block; padding: 4px 12px; border-radius: 999px; font-size: 0.78rem; font-weight: 700; }
.pill.ok { background: rgba(30, 158, 106, 0.12); color: var(--good); }
.pill.warn { background: rgba(216, 99, 43, 0.12); color: var(--bad); }

.badge-tool { margin-top: 40px; }
.badge-preview { display: flex; justify-content: center; padding: 26px; background: var(--card); border-radius: var(--radius); box-shadow: var(--shadow); margin-bottom: 16px; }
.badge-actions { display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; }

/* ---------- Incident / prose lists ---------- */

.incident { background: var(--card); border-radius: var(--radius); box-shadow: var(--shadow); padding: 26px 28px; margin-bottom: 18px; }
.incident h3 { margin: 0 0 4px; }
.incident .when { color: var(--faint); font-size: 0.82rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.04em; }
.incident p { color: var(--muted); margin: 10px 0 0; font-size: 0.95rem; }

.prose { max-width: 700px; margin: 0 auto; }
.prose h2 { margin-top: 44px; }
.prose p, .prose li { color: var(--muted); }

/* ---------- Case studies ---------- */

.case { background: var(--card); border-radius: var(--radius); box-shadow: var(--shadow); overflow: hidden; margin-bottom: 34px; }
.case img { width: 100%; aspect-ratio: 16 / 8.5; object-fit: cover; cursor: zoom-in; }
.case-body { padding: 30px; }
.case-body h2 { margin: 0 0 4px; font-size: 1.45rem; }
.case-org { color: var(--sky2); font-weight: 700; font-size: 0.88rem; margin: 0 0 16px; }
.case-quote { border-left: 4px solid var(--sky3); padding-left: 18px; font-size: 1.02rem; color: var(--muted); font-style: italic; margin: 0 0 8px; }
.case-attr { color: var(--faint); font-size: 0.85rem; margin: 0 0 20px; }
.case-stats { display: flex; gap: 30px; flex-wrap: wrap; }
.case-stats div b { display: block; font-size: 1.4rem; }
.case-stats div span { color: var(--faint); font-size: 0.8rem; }

/* ---------- FAQ ---------- */

.faq-list { max-width: 760px; margin: 0 auto; }
.faq-item { background: var(--card); border-radius: 14px; box-shadow: var(--shadow); margin-bottom: 12px; overflow: hidden; }
.faq-item summary {
  cursor: pointer; font-weight: 700; padding: 18px 22px; list-style: none;
  display: flex; justify-content: space-between; align-items: center; gap: 12px;
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after { content: "+"; font-size: 1.3rem; color: var(--sky2); flex-shrink: 0; }
.faq-item[open] summary::after { content: "\2212"; }
.faq-item .faq-a { padding: 0 22px 20px; color: var(--muted); font-size: 0.95rem; }

/* ---------- Marketing gallery ---------- */

.marketing-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 24px; align-items: start; }
.marketing-grid figure { margin: 0; }
.marketing-grid img { border-radius: var(--radius); box-shadow: var(--shadow); cursor: zoom-in; width: 100%; }
.marketing-grid figcaption { font-size: 0.82rem; color: var(--faint); margin-top: 8px; text-align: center; }

/* ---------- Forms / modals ---------- */

.modal-backdrop {
  position: fixed; inset: 0; z-index: 100;
  background: rgba(20, 26, 48, 0.72);
  display: flex; align-items: center; justify-content: center; padding: 20px;
}
.modal-backdrop[hidden] { display: none; }
.modal-backdrop > img {
  max-width: min(94vw, 1100px); max-height: 90vh; border-radius: 14px;
  object-fit: contain; box-shadow: 0 30px 80px rgba(0,0,0,0.5);
}

.modal-card {
  background: #fff; border-radius: 20px; padding: 30px;
  max-width: 480px; width: 100%; position: relative;
  max-height: 90vh; overflow-y: auto;
}
.modal-close {
  position: absolute; top: 14px; right: 14px; background: var(--bg);
  border: none; border-radius: 50%; width: 34px; height: 34px;
  cursor: pointer; font-size: 1rem; color: var(--muted);
}

.form-grid { display: grid; gap: 14px; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.form-grid label { font-size: 0.82rem; font-weight: 700; display: block; margin-bottom: 5px; }
.form-grid input, .form-grid select, .form-grid textarea {
  width: 100%; padding: 11px 13px; border: 2px solid var(--line); border-radius: 12px;
  font-family: inherit; font-size: 0.95rem;
}
.form-ok {
  background: rgba(30, 158, 106, 0.1); border: 1px solid rgba(30, 158, 106, 0.3);
  color: var(--good); border-radius: 12px; padding: 14px 16px; font-size: 0.92rem;
  margin-bottom: 14px;
}
.muted-small { color: var(--muted); font-size: 0.9rem; }
.faint-small { font-size: 0.75rem; color: var(--faint); margin: 0; }

/* ---------- Footer ---------- */

footer { background: #171e38; color: #aeb6d3; padding: 56px 0 30px; margin-top: 40px; }
.foot-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: 30px; margin-bottom: 34px; }
.foot-brand { display: flex; align-items: center; gap: 10px; color: #fff; font-weight: 800; font-size: 1.05rem; margin-bottom: 10px; }
.foot-brand img { width: 30px; height: 30px; }
.foot-grid p { font-size: 0.88rem; margin: 0; }
.foot-grid h4 { color: #fff; margin: 0 0 12px; font-size: 0.85rem; text-transform: uppercase; letter-spacing: 0.06em; }
.foot-grid a { display: block; color: #aeb6d3; text-decoration: none; font-size: 0.9rem; margin-bottom: 8px; }
.foot-grid a:hover { color: #fff; }
.foot-legal { border-top: 1px solid rgba(255,255,255,0.12); padding-top: 22px; font-size: 0.78rem; color: #7b84a6; }
.foot-legal p { margin: 0; }

/* ---------- Mobile ---------- */

@media (max-width: 860px) {
  section { padding: 50px 0; }

  .nav-toggle { display: block; }
  .nav-links {
    display: none; position: absolute; top: 100%; left: 0; right: 0;
    flex-direction: column; align-items: stretch; gap: 0;
    background: #fff; border-bottom: 1px solid var(--line);
    box-shadow: var(--shadow); padding: 10px 20px 16px;
  }
  .nav-links.open { display: flex; }
  .nav-links a { padding: 11px 4px; font-size: 1rem; }
  .nav-links a.cta { text-align: center; margin-top: 8px; }

  .hero { padding: 48px 0 56px; }
  .hero-inner, .split, .split.rev { grid-template-columns: 1fr; gap: 28px; }
  .split.rev .split-media { order: 0; }
  .hero-chip { left: 10px; }

  .grid-3, .price-grid, .marketing-grid { grid-template-columns: 1fr; }
  .calc { grid-template-columns: 1fr; padding: 22px; }
  .foot-grid { grid-template-columns: 1fr 1fr; }
  .form-row { grid-template-columns: 1fr; }

  .status-table thead { display: none; }
  .status-table tr { display: block; border-bottom: 8px solid var(--bg); }
  .status-table td { display: block; border: none; padding: 6px 16px; }
  .status-table td:first-child { padding-top: 14px; }
  .status-table td:last-child { padding-bottom: 14px; }
}
