/* =========================================================
   SovSentry — Marketing / Landing styles
   Extends the StrategicSyntax DS (ds.css) + reuses product
   chrome classes from app.css for the embedded preview.
   ========================================================= */

/* app.css locks the viewport for the product shell — release it
   so the marketing page can scroll normally. */
html, body { height: auto !important; }
body {
  margin: 0;
  overflow-x: hidden;
  overflow-y: auto !important;
  background: var(--bg-2);
  color: var(--fg-1);
  font-family: var(--font-sans);
}

::selection { background: rgba(47,133,237,0.22); }

/* ---------- layout primitives ---------- */
.mk-container { width: 100%; max-width: 1180px; margin: 0 auto; padding: 0 32px; }
.mk-narrow { max-width: 860px; }
.mk-section { padding: 108px 0; position: relative; }
.mk-section.tight { padding: 76px 0; }
.mk-center { text-align: center; }
.mk-center .mk-lede { margin-left: auto; margin-right: auto; }
.mk-center .mk-eyebrow { justify-content: center; }

/* ---------- type ---------- */
.mk-eyebrow {
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--ss-blue-2);
  display: inline-flex; align-items: center; gap: 10px;
  margin: 0 0 20px;
  font-weight: 500;
}
.mk-eyebrow::before { content: ''; width: 22px; height: 1px; background: currentColor; opacity: 0.55; }
.mk-h1 {
  font-family: var(--font-display); font-weight: 700;
  font-size: clamp(42px, 6vw, 78px); line-height: 1.0;
  letter-spacing: -0.035em; margin: 0 0 24px; color: var(--fg-1);
  text-wrap: balance;
}
.mk-h2 {
  font-family: var(--font-display); font-weight: 700;
  font-size: clamp(30px, 3.6vw, 48px); line-height: 1.06;
  letter-spacing: -0.028em; margin: 0 0 18px; color: var(--fg-1);
  text-wrap: balance;
}
.mk-lede {
  font-size: 19px; line-height: 1.6; color: var(--fg-2);
  font-weight: 300; max-width: 62ch; margin: 0;
}
.grad {
  background: linear-gradient(100deg, #24CAFF 0%, #2F85ED 72%);
  -webkit-background-clip: text; background-clip: text; color: transparent;
}

/* ---------- nav ---------- */
.mk-nav {
  position: sticky; top: 0; z-index: 100;
  display: flex; align-items: center; gap: 28px;
  height: 64px; padding: 0 32px;
  border-bottom: 1px solid transparent;
  background: rgba(248,250,253,0);
  transition: background var(--dur-base) var(--ease-out), border-color var(--dur-base) var(--ease-out), backdrop-filter var(--dur-base);
}
.mk-nav.scrolled {
  background: rgba(248,250,253,0.82);
  backdrop-filter: blur(16px) saturate(150%);
  -webkit-backdrop-filter: blur(16px) saturate(150%);
  border-bottom-color: var(--border-1);
}
.mk-brand { display: flex; align-items: center; gap: 10px; cursor: pointer; }
.mk-brand img { width: 26px; height: 26px; object-fit: contain; }
.mk-brand b {
  font-family: var(--font-display); font-weight: 700; font-size: 18px;
  letter-spacing: -0.015em; color: var(--fg-1);
}
.mk-nav-links { display: flex; align-items: center; gap: 26px; margin-left: 14px; }
.mk-nav-links a {
  font-size: 14px; color: var(--fg-2); text-decoration: none; font-weight: 500;
  transition: color var(--dur-fast) var(--ease-out);
}
.mk-nav-links a:hover { color: var(--fg-1); text-decoration: none; }
.mk-nav-spacer { flex: 1; }
.mk-nav .nav-cta { display: flex; align-items: center; gap: 10px; }
.mk-nav .login-link { font-size: 14px; font-weight: 600; color: var(--fg-1); text-decoration: none; }
.mk-nav .login-link:hover { color: var(--ss-blue-2); text-decoration: none; }

/* ---------- hero ---------- */
.mk-hero {
  position: relative;
  background:
    radial-gradient(1100px 620px at 80% -10%, rgba(36,202,255,0.18), transparent 58%),
    radial-gradient(820px 560px at 5% 110%, rgba(47,133,237,0.16), transparent 55%),
    linear-gradient(160deg, #1D2254 0%, #141838 52%, #0C0F2E 100%);
  color: #fff;
  overflow: hidden;
  margin-top: -64px;        /* slide under the transparent nav */
  padding-top: 64px;
}
.mk-hero::before {
  content: ''; position: absolute; inset: 0;
  background-image: radial-gradient(rgba(255,255,255,0.05) 1px, transparent 1px);
  background-size: 24px 24px;
  mask-image: radial-gradient(ellipse at 50% 18%, #000 0%, transparent 72%);
  pointer-events: none;
}
.mk-hero > * { position: relative; z-index: 1; }
.mk-hero-inner { padding: 120px 0 0; text-align: center; }
.mk-hero h1 { color: #fff; }
.mk-hero .mk-lede { color: rgba(255,255,255,0.74); margin: 0 auto; }
.mk-hero .mk-eyebrow { color: var(--ss-blue-1); }

/* waitlist form */
.waitlist {
  display: flex; align-items: center; gap: 8px;
  margin: 34px auto 16px; max-width: 480px;
  background: rgba(255,255,255,0.06);
  border: 1px solid rgba(255,255,255,0.16);
  border-radius: 12px; padding: 6px;
  transition: border-color var(--dur-fast) var(--ease-out), box-shadow var(--dur-fast);
}
.waitlist:focus-within { border-color: var(--ss-blue-1); box-shadow: 0 0 0 4px rgba(36,202,255,0.15); }
.waitlist input {
  flex: 1; min-width: 0; border: 0; background: transparent; outline: 0;
  color: #fff; font-family: inherit; font-size: 15px; padding: 8px 12px;
}
.waitlist input::placeholder { color: rgba(255,255,255,0.5); }
.waitlist .btn { padding: 10px 18px; flex-shrink: 0; }
.waitlist-note {
  font-family: var(--font-mono); font-size: 12px; letter-spacing: 0.02em;
  color: rgba(255,255,255,0.5); margin: 0 auto;
}
.waitlist-note b { color: rgba(255,255,255,0.78); font-weight: 600; }
.waitlist.done { justify-content: center; border-color: rgba(36,202,255,0.4); background: rgba(36,202,255,0.08); }
.waitlist-success {
  display: none; align-items: center; gap: 10px; justify-content: center;
  color: #fff; font-size: 15px; font-weight: 500; padding: 10px;
}
.waitlist-success svg { color: var(--ss-blue-1); }
.waitlist.done input, .waitlist.done .btn { display: none; }
.waitlist.done .waitlist-success { display: flex; }

/* provider trust row in hero */
.mk-providers {
  display: flex; align-items: center; justify-content: center; gap: 22px;
  margin-top: 56px; padding-top: 26px;
  border-top: 1px solid rgba(255,255,255,0.08);
  flex-wrap: wrap;
}
.mk-providers .lbl {
  font-family: var(--font-mono); font-size: 11px; letter-spacing: 0.14em;
  text-transform: uppercase; color: rgba(255,255,255,0.42);
}
.mk-providers .chip {
  display: inline-flex; align-items: center; gap: 8px;
  font-size: 13px; font-weight: 600; color: rgba(255,255,255,0.82);
  padding: 6px 14px; border-radius: 999px;
  background: rgba(255,255,255,0.05); border: 1px solid rgba(255,255,255,0.1);
}
.mk-providers .chip .dot { width: 7px; height: 7px; border-radius: 50%; }
.mk-providers .chip .dot.aws { background: var(--aws-orange); }
.mk-providers .chip .dot.azure { background: var(--azure-blue); }
.mk-providers .chip .dot.read { background: var(--st-ok); }

/* ---------- product preview (embedded app shot) ---------- */
.mk-shot-wrap {
  position: relative; z-index: 2;
  max-width: 1120px; margin: 78px auto -120px;
  padding: 0 24px;
}
.mk-browser {
  border-radius: 14px; overflow: hidden;
  background: #fff;
  border: 1px solid rgba(255,255,255,0.12);
  box-shadow: 0 40px 100px -24px rgba(8,10,30,0.6), 0 12px 32px -8px rgba(8,10,30,0.5);
}
.mk-browser-bar {
  display: flex; align-items: center; gap: 14px;
  height: 42px; padding: 0 16px;
  background: #0C0F2E; border-bottom: 1px solid rgba(255,255,255,0.06);
}
.mk-browser-bar .dots { display: flex; gap: 7px; }
.mk-browser-bar .dots span { width: 11px; height: 11px; border-radius: 50%; background: rgba(255,255,255,0.18); }
.mk-browser-bar .dots span:nth-child(1) { background: #ff5f57; }
.mk-browser-bar .dots span:nth-child(2) { background: #febc2e; }
.mk-browser-bar .dots span:nth-child(3) { background: #28c840; }
.mk-browser-bar .url {
  flex: 1; max-width: 420px; margin: 0 auto;
  display: flex; align-items: center; gap: 8px;
  height: 26px; padding: 0 12px; border-radius: 7px;
  background: rgba(255,255,255,0.07);
  font-family: var(--font-mono); font-size: 12px; color: rgba(255,255,255,0.6);
}
.mk-browser-bar .url svg { width: 11px; height: 11px; color: var(--st-ok); }
.mk-shot {
  overflow: hidden; position: relative;
  pointer-events: none;     /* purely a screenshot */
  user-select: none;
  background: #fff;
}
.mk-shot-img {
  display: block; width: 100%; height: auto;
}
.mk-shot-fade {
  position: absolute; left: 0; right: 0; bottom: 0; height: 70px;
  background: linear-gradient(180deg, transparent, rgba(255,255,255,0.9));
  pointer-events: none;
}

/* ---------- problem statement ---------- */
.mk-problem { background: var(--bg-1); border-bottom: 1px solid var(--border-1); }
.mk-problem .mk-h2 { max-width: 18ch; }
.problem-grid {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 28px;
  margin-top: 56px;
}
.problem-card {
  border-top: 2px solid var(--border-2); padding-top: 20px;
}
.problem-card.flag { border-top-color: var(--st-crit); }
.problem-card .pc-k {
  font-family: var(--font-display); font-size: 30px; font-weight: 700;
  letter-spacing: -0.02em; color: var(--fg-1); margin: 0 0 8px; line-height: 1;
}
.problem-card h4 { font-family: var(--font-display); font-size: 17px; font-weight: 700; margin: 0 0 8px; letter-spacing: -0.01em; }
.problem-card p { font-size: 14.5px; color: var(--fg-3); line-height: 1.6; margin: 0; max-width: none; }

/* ---------- pillars / features ---------- */
.pillars-grid {
  display: grid; grid-template-columns: repeat(2, 1fr); gap: 20px;
  margin-top: 56px;
}
.pillar-feature {
  background: var(--bg-1);
  border: 1px solid var(--border-1);
  border-radius: 16px;
  padding: 32px;
  position: relative; overflow: hidden;
  transition: border-color var(--dur-base) var(--ease-out), transform var(--dur-base) var(--ease-out), box-shadow var(--dur-base);
}
.pillar-feature::after {
  content: ''; position: absolute; right: -40px; top: -40px;
  width: 160px; height: 160px; border-radius: 50%;
  background: radial-gradient(closest-side, rgba(47,133,237,0.08), transparent 70%);
  pointer-events: none; opacity: 0; transition: opacity var(--dur-base) var(--ease-out);
}
.pillar-feature:hover { border-color: var(--ss-blue-2-200); transform: translateY(-3px); box-shadow: var(--shadow-md); }
.pillar-feature:hover::after { opacity: 1; }
.pillar-feature .pf-icn {
  width: 48px; height: 48px; border-radius: 12px;
  background: linear-gradient(135deg, var(--ss-blue-2), var(--ss-blue-1));
  color: #fff; display: grid; place-items: center; margin-bottom: 20px;
  box-shadow: 0 8px 20px -6px rgba(47,133,237,0.5);
}
.pillar-feature .pf-icn svg { width: 22px; height: 22px; stroke-width: 1.8; }
.pillar-feature .pf-num {
  position: absolute; top: 28px; right: 30px;
  font-family: var(--font-mono); font-size: 12px; color: var(--fg-mute); letter-spacing: 0.1em;
}
.pillar-feature h3 { font-family: var(--font-display); font-size: 21px; font-weight: 700; letter-spacing: -0.015em; margin: 0 0 10px; }
.pillar-feature p { font-size: 15px; color: var(--fg-3); line-height: 1.62; margin: 0 0 18px; max-width: none; }
.pillar-feature .pf-checks { display: flex; flex-direction: column; gap: 9px; }
.pillar-feature .pf-checks li {
  display: flex; align-items: center; gap: 9px; list-style: none;
  font-size: 13.5px; color: var(--fg-2); font-weight: 500;
}
.pillar-feature .pf-checks li svg { color: var(--st-ok); flex-shrink: 0; }
.pillar-feature .pf-checks { margin: 0; padding: 0; }

/* ---------- frameworks ---------- */
.mk-frameworks { background: var(--ss-obsidian); color: #fff; position: relative; overflow: hidden; }
.mk-frameworks::before {
  content: ''; position: absolute; inset: 0;
  background:
    radial-gradient(700px 400px at 90% 0%, rgba(36,202,255,0.12), transparent 60%),
    radial-gradient(600px 400px at 0% 100%, rgba(47,133,237,0.1), transparent 60%);
  pointer-events: none;
}
.mk-frameworks > * { position: relative; z-index: 1; }
.mk-frameworks .mk-h2 { color: #fff; }
.mk-frameworks .mk-lede { color: rgba(255,255,255,0.66); }
.fw-grid {
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px;
  margin-top: 52px;
}
.fw-card {
  background: rgba(255,255,255,0.04);
  border: 1px solid rgba(255,255,255,0.09);
  border-radius: 12px; padding: 20px;
  transition: border-color var(--dur-fast) var(--ease-out), background var(--dur-fast);
}
.fw-card:hover { border-color: rgba(36,202,255,0.4); background: rgba(255,255,255,0.06); }
.fw-card .fw-tag {
  font-family: var(--font-display); font-size: 17px; font-weight: 700;
  color: #fff; letter-spacing: -0.01em; margin-bottom: 6px;
  display: flex; align-items: center; justify-content: space-between;
}
.fw-card .fw-tag .ok { width: 16px; height: 16px; color: var(--ss-blue-1); }
.fw-card .fw-desc { font-size: 12.5px; color: rgba(255,255,255,0.55); line-height: 1.5; }

/* ---------- FAQ ---------- */
.mk-faq { background: var(--bg-1); }
.faq-list { margin-top: 44px; max-width: 820px; margin-left: auto; margin-right: auto; }
.faq-item { border-bottom: 1px solid var(--border-1); }
.faq-item summary {
  list-style: none; cursor: pointer; padding: 24px 0;
  display: flex; align-items: center; justify-content: space-between; gap: 24px;
  font-family: var(--font-display); font-size: 18px; font-weight: 700;
  letter-spacing: -0.012em; color: var(--fg-1);
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary .q-icn {
  flex-shrink: 0; width: 26px; height: 26px; border-radius: 50%;
  border: 1px solid var(--border-2); color: var(--fg-2);
  display: grid; place-items: center;
  transition: transform var(--dur-base) var(--ease-out), background var(--dur-fast), color var(--dur-fast), border-color var(--dur-fast);
}
.faq-item[open] summary .q-icn { transform: rotate(45deg); background: var(--ss-blue-2); color: #fff; border-color: var(--ss-blue-2); }
.faq-item .faq-a { padding: 0 50px 26px 0; font-size: 15px; line-height: 1.65; color: var(--fg-3); max-width: 70ch; }
.faq-item .faq-a a { font-weight: 600; }

/* ---------- final CTA ---------- */
.mk-cta {
  background:
    radial-gradient(800px 420px at 50% -20%, rgba(36,202,255,0.2), transparent 60%),
    linear-gradient(160deg, #1D2254, #0C0F2E);
  color: #fff; text-align: center; position: relative; overflow: hidden;
}
.mk-cta::before {
  content: ''; position: absolute; inset: 0;
  background-image: radial-gradient(rgba(255,255,255,0.05) 1px, transparent 1px);
  background-size: 24px 24px;
  mask-image: radial-gradient(ellipse at 50% 30%, #000, transparent 70%);
}
.mk-cta > * { position: relative; z-index: 1; }
.mk-cta .mk-h2 { color: #fff; }
.mk-cta .mk-lede { color: rgba(255,255,255,0.72); }

/* ---------- footer ---------- */
.mk-footer { background: var(--ss-obsidian); color: rgba(255,255,255,0.6); padding: 64px 0 40px; }
.footer-top { display: grid; grid-template-columns: 1.6fr repeat(3, 1fr); gap: 40px; }
.footer-brand .mk-brand b { color: #fff; }
.footer-brand p { font-size: 13.5px; color: rgba(255,255,255,0.5); line-height: 1.6; margin: 16px 0 0; max-width: 32ch; }
.footer-col h5 {
  font-family: var(--font-mono); font-size: 11px; letter-spacing: 0.12em;
  text-transform: uppercase; color: rgba(255,255,255,0.4); margin: 0 0 16px; font-weight: 500;
}
.footer-col a {
  display: block; font-size: 14px; color: rgba(255,255,255,0.66);
  text-decoration: none; margin-bottom: 11px; transition: color var(--dur-fast) var(--ease-out);
}
.footer-col a:hover { color: #fff; text-decoration: none; }
.footer-bottom {
  display: flex; align-items: center; justify-content: space-between;
  margin-top: 52px; padding-top: 24px; border-top: 1px solid rgba(255,255,255,0.08);
  font-size: 12.5px; color: rgba(255,255,255,0.4); font-family: var(--font-mono); letter-spacing: 0.02em;
}
.footer-bottom .fb-badges { display: flex; gap: 18px; }

/* ---------- 404 ---------- */
.nf-root {
  position: fixed; inset: 0; display: grid; place-items: center;
  text-align: center; padding: 40px;
  background:
    radial-gradient(900px 600px at 70% -10%, rgba(36,202,255,0.16), transparent 58%),
    radial-gradient(700px 500px at 10% 110%, rgba(47,133,237,0.16), transparent 55%),
    linear-gradient(160deg, #1D2254 0%, #141838 52%, #0C0F2E 100%);
  color: #fff; overflow: hidden;
}
.nf-root::before {
  content: ''; position: absolute; inset: 0;
  background-image: radial-gradient(rgba(255,255,255,0.05) 1px, transparent 1px);
  background-size: 24px 24px;
  mask-image: radial-gradient(ellipse at 50% 40%, #000 0%, transparent 70%);
  pointer-events: none;
}
.nf-inner { position: relative; z-index: 1; max-width: 560px; }
.nf-brand { display: inline-flex; align-items: center; gap: 10px; margin-bottom: 48px; }
.nf-brand img { width: 28px; height: 28px; }
.nf-brand b { font-family: var(--font-display); font-weight: 700; font-size: 18px; letter-spacing: -0.015em; color: #fff; }
.nf-code {
  font-family: var(--font-mono); font-size: 13px; letter-spacing: 0.18em; text-transform: uppercase;
  color: var(--ss-blue-1); margin-bottom: 22px;
  display: inline-flex; align-items: center; gap: 10px;
}
.nf-code::before, .nf-code::after { content: ''; width: 26px; height: 1px; background: currentColor; opacity: 0.5; }
.nf-root h1 {
  font-family: var(--font-display); font-weight: 700;
  font-size: clamp(40px, 7vw, 72px); line-height: 1.02; letter-spacing: -0.03em;
  color: #fff; margin: 0 0 18px;
}
.nf-root p { color: rgba(255,255,255,0.7); font-size: 17px; line-height: 1.6; margin: 0 auto 36px; max-width: 44ch; }
.nf-actions { display: flex; align-items: center; justify-content: center; gap: 12px; flex-wrap: wrap; }
.nf-actions .btn { padding: 11px 22px; font-size: 14px; }
.nf-actions .btn-secondary { background: transparent; color: #fff; border-color: rgba(255,255,255,0.22); }
.nf-actions .btn-secondary:hover { border-color: var(--ss-blue-1); color: var(--ss-blue-1); }
.nf-meta {
  margin-top: 52px; padding-top: 26px; border-top: 1px solid rgba(255,255,255,0.1);
  font-family: var(--font-mono); font-size: 12px; color: rgba(255,255,255,0.42); letter-spacing: 0.04em;
}
.nf-meta b { color: rgba(255,255,255,0.7); font-weight: 500; }

/* ---------- responsive ---------- */
@media (max-width: 980px) {
  .pillars-grid { grid-template-columns: 1fr; }
  .problem-grid { grid-template-columns: 1fr; gap: 32px; }
  .fw-grid { grid-template-columns: repeat(2, 1fr); }
  .footer-top { grid-template-columns: 1fr 1fr; }
  .mk-nav-links { display: none; }
  .mk-shot-wrap { margin-bottom: -80px; }
}
@media (max-width: 640px) {
  .mk-section { padding: 76px 0; }
  .mk-container { padding: 0 22px; }
  .fw-grid { grid-template-columns: 1fr; }
  .footer-top { grid-template-columns: 1fr; gap: 28px; }
  .footer-bottom { flex-direction: column; gap: 14px; }
  .mk-providers { gap: 14px; }
}
