/* ============================================================
   riskbased.ai landing — GKSC2-1745 redesign
   Self-contained (no Webflow CSS). GKS brand palette only.
   Display: Space Grotesk · Body: Manrope
   ============================================================ */

:root {
  --ink:        #0f1220;
  --ink-soft:   #1f2333;
  --muted:      #2b2f40;   /* dark, high-contrast body text (no washed-out grey) */
  --line:       rgba(15, 18, 32, 0.12);
  --bg:         #fbfcfe;
  --surface:    #ffffff;
  --ice:        #eef3fb;
  --ice-2:      #f5f8fd;

  /* riskbased brand: red into blue */
  --red:         #e63a49;
  --red-dark:    #c62b39;
  --blue:        #2166e8;
  --blue-dark:   #1751c4;
  --blue-light:  #cfe0ff;
  --grad:        linear-gradient(115deg, #e63a49 0%, #2166e8 100%);
  --gold:        #ffb306;
  --orange:      #ed8600;
  /* Text-weight orange. #ed8600 is only 2.6:1 on white, so it is kept for the
     decorative pulse/graph marks and this darker tone carries the labels. */
  --orange-ink:  #a85a00;

  /* accent aliases (kept so existing rules resolve) -> brand blue */
  --purple:      var(--blue);
  --purple-dark: var(--blue-dark);
  --purple-light:var(--blue-light);

  --maxw: 1180px;
  --radius: 18px;
  --radius-sm: 12px;
  --shadow: 0 1px 2px rgba(23, 22, 42, 0.04), 0 12px 32px rgba(23, 22, 42, 0.06);
  --shadow-lg: 0 24px 60px rgba(63, 61, 168, 0.16);
  --ease: cubic-bezier(0.22, 1, 0.36, 1);

  --step--1: clamp(0.82rem, 0.79rem + 0.15vw, 0.9rem);
  --step-0:  clamp(1rem, 0.96rem + 0.2vw, 1.09rem);
  --step-1:  clamp(1.2rem, 1.1rem + 0.5vw, 1.45rem);
  --step-2:  clamp(1.55rem, 1.35rem + 1vw, 2.1rem);
  --step-3:  clamp(2.1rem, 1.7rem + 2vw, 3.1rem);
  --step-4:  clamp(2.9rem, 2.1rem + 3.8vw, 5.2rem);
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body.gks-lp {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: "Manrope", ui-sans-serif, system-ui, sans-serif;
  font-size: var(--step-0);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
.gks-lp img { max-width: 100%; display: block; }
.gks-lp a { color: inherit; text-decoration: none; }
.gks-lp h1, .gks-lp h2, .gks-lp h3 {
  font-family: "Space Grotesk", "Manrope", sans-serif;
  font-weight: 600;
  line-height: 1.05;
  letter-spacing: -0.02em;
  margin: 0;
  color: var(--ink);
}
.gks-lp p { margin: 0; }

.wrap { width: 100%; max-width: var(--maxw); margin-inline: auto; padding-inline: clamp(20px, 5vw, 40px); }
.eyebrow {
  font-family: "Space Grotesk", sans-serif;
  font-size: var(--step--1);
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--purple);
}

/* ---- buttons ------------------------------------------------ */
.btn {
  display: inline-flex; align-items: center; gap: 0.5em;
  font-family: "Space Grotesk", sans-serif;
  font-weight: 600; font-size: var(--step-0);
  padding: 0.85em 1.5em; border-radius: 999px;
  border: 1px solid transparent; cursor: pointer;
  transition: transform 0.2s var(--ease), background 0.2s var(--ease), box-shadow 0.2s var(--ease);
  white-space: nowrap;
}
.btn-primary { background: var(--grad); color: #fff; box-shadow: 0 8px 20px rgba(33, 102, 232, 0.30); }
.btn-primary:hover { filter: brightness(1.06); transform: translateY(-2px); }
.btn-ghost { background: transparent; color: var(--ink); border-color: var(--line); }
.btn-ghost:hover { border-color: var(--purple); color: var(--purple); }
.btn .arw { transition: transform 0.2s var(--ease); }
.btn:hover .arw { transform: translateX(3px); }

/* ---- nav ---------------------------------------------------- */
.nav {
  position: sticky; top: 0; z-index: 900;
  background: rgba(251, 251, 254, 0.82);
  backdrop-filter: saturate(140%) blur(12px);
  border-bottom: 1px solid var(--line);
}
.nav-in { display: flex; align-items: center; justify-content: space-between; height: 68px; }
.nav-logo { display: flex; align-items: center; gap: 10px; font-family: "Space Grotesk", sans-serif; font-weight: 700; font-size: 1.15rem; letter-spacing: -0.02em; }
.nav-logo img { height: 26px; width: auto; }
.nav-links { display: flex; align-items: center; gap: clamp(18px, 2.4vw, 34px); }
.nav-links a { font-size: var(--step--1); font-weight: 600; color: var(--ink-soft); letter-spacing: 0.01em; }
.nav-links a:hover { color: var(--purple); }
.nav-cta { display: flex; align-items: center; gap: 14px; }
/* Narrow screens: wrap the nav onto a second row rather than hiding it. Three
   short links do not need a drawer, and hiding them left phones with no way to
   reach MAUDE / Products / About at all. */
@media (max-width: 860px) {
  .nav-in { height: auto; flex-wrap: wrap; row-gap: 4px; padding-top: 10px; padding-bottom: 10px; }
  .nav-links { order: 3; width: 100%; justify-content: space-between; gap: 12px; }
  .nav-cta .btn-ghost { display: none; }
}

/* ---- hero --------------------------------------------------- */
.hero { position: relative; overflow: hidden; }
.hero::before {
  content: ""; position: absolute; inset: 0;
  background:
    radial-gradient(60% 55% at 82% 8%, rgba(33, 102, 232, 0.10), transparent 70%),
    radial-gradient(40% 40% at 0% 100%, rgba(230, 58, 73, 0.06), transparent 70%);
  pointer-events: none;
}
.hero-in {
  position: relative;
  display: grid; grid-template-columns: 1.05fr 0.95fr; gap: clamp(28px, 5vw, 72px);
  align-items: center;
  padding-top: clamp(48px, 7vw, 96px); padding-bottom: clamp(56px, 8vw, 110px);
}
.hero-badge {
  display: inline-flex; align-items: center; gap: 8px;
  background: var(--ice); border: 1px solid var(--line);
  color: var(--purple-dark); font-weight: 600; font-size: var(--step--1);
  padding: 6px 14px 6px 8px; border-radius: 999px; margin-bottom: 22px;
}
.hero-badge .dot { width: 8px; height: 8px; border-radius: 50%; background: var(--gold); box-shadow: 0 0 0 4px rgba(255, 179, 6, 0.18); }
.hero h1 { font-size: var(--step-4); font-weight: 700; }
.hero h1 .accent { color: var(--purple); }
.hero-sub { margin-top: 22px; font-size: var(--step-1); color: var(--muted); max-width: 32ch; line-height: 1.45; }
.hero-actions { margin-top: 34px; display: flex; flex-wrap: wrap; gap: 14px; align-items: center; }
.hero-trust { margin-top: 40px; display: flex; align-items: center; gap: 16px; color: var(--muted); font-size: var(--step--1); }
.hero-trust img { height: 24px; width: auto; opacity: 0.9; }
.hero-trust .sep { width: 1px; height: 22px; background: var(--line); }

/* signal graphic card */
.signal-card {
  position: relative; background: var(--surface); border: 1px solid var(--line);
  border-radius: var(--radius); box-shadow: var(--shadow-lg); padding: 22px;
}
.signal-card .sig-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 14px; }
.sig-title { font-family: "Space Grotesk", sans-serif; font-weight: 600; font-size: var(--step--1); letter-spacing: 0.02em; color: var(--ink-soft); }
.sig-live { display: inline-flex; align-items: center; gap: 7px; font-size: 0.72rem; font-weight: 700; letter-spacing: 0.1em; text-transform: uppercase; color: var(--orange-ink); }
.sig-live .pulse { width: 8px; height: 8px; border-radius: 50%; background: var(--orange); animation: pulse 1.8s var(--ease) infinite; }
@keyframes pulse { 0% { box-shadow: 0 0 0 0 rgba(237, 134, 0, 0.45); } 70% { box-shadow: 0 0 0 9px rgba(237, 134, 0, 0); } 100% { box-shadow: 0 0 0 0 rgba(237, 134, 0, 0); } }
.signal-card svg { width: 100%; height: auto; display: block; }
.sig-foot { display: flex; gap: 10px; margin-top: 16px; }
.sig-chip { flex: 1; background: var(--ice-2); border: 1px solid var(--line); border-radius: var(--radius-sm); padding: 10px 12px; }
.sig-chip .k { font-size: 0.7rem; text-transform: uppercase; letter-spacing: 0.08em; color: var(--muted); font-weight: 700; }
.sig-chip .v { font-family: "Space Grotesk", sans-serif; font-weight: 700; font-size: 1.05rem; color: var(--ink); margin-top: 2px; }
.sig-chip .v.up { color: var(--orange-ink); }

@media (max-width: 900px) {
  .hero-in { grid-template-columns: 1fr; }
  .hero-sub { max-width: 52ch; }
  .signal-card { order: 2; }
}

/* ---- section scaffold -------------------------------------- */
.section { padding-block: clamp(56px, 8vw, 108px); }
.section.alt { background: linear-gradient(180deg, var(--ice) 0%, var(--bg) 100%); }
.section-head { max-width: 60ch; margin-bottom: clamp(32px, 4vw, 52px); }
.section-head h2 { font-size: var(--step-3); margin-top: 12px; }
.section-head p { margin-top: 16px; color: var(--muted); font-size: var(--step-1); line-height: 1.5; }

/* ---- flagship products ------------------------------------- */
.products { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; }
.product {
  position: relative; display: flex; flex-direction: column;
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius);
  overflow: hidden; transition: transform 0.25s var(--ease), box-shadow 0.25s var(--ease), border-color 0.25s var(--ease);
  /* cards are anchors (through the KeyPedia transition) */
  color: inherit; text-decoration: none; cursor: pointer;
}
.product:hover { transform: translateY(-4px); box-shadow: var(--shadow); border-color: var(--purple-light); }
.product-shot { aspect-ratio: 16 / 10; background: var(--ice-2); display: grid; place-items: center; padding: 14px; align-self: stretch; width: 100%; }
.product-shot img { height: 100%; width: 100%; max-width: 100%; object-fit: contain; border-radius: 8px; }
.product-body { padding: 16px 18px 20px; }
.product-body h3 { font-size: 1.12rem; }
.product-body p { margin-top: 6px; color: var(--muted); font-size: var(--step--1); line-height: 1.5; }
.product-tag { position: absolute; top: 12px; right: 12px; font-size: 0.64rem; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase; color: var(--purple-dark); background: var(--ice); border: 1px solid var(--line); padding: 4px 9px; border-radius: 999px; }
@media (max-width: 900px) { .products { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 520px) { .products { grid-template-columns: 1fr; } }

/* ---- capabilities (editorial split) ------------------------ */
.caps { display: grid; grid-template-columns: repeat(12, 1fr); gap: 18px; }
.cap { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: clamp(22px, 3vw, 32px); }
.cap.feature { grid-column: span 7; display: flex; flex-direction: column; justify-content: space-between; gap: 18px; min-height: 300px; background:
    linear-gradient(180deg, rgba(33,102,232,0) 40%, rgba(33,102,232,0.05) 100%), var(--surface); }
.cap-chart { width: 100%; height: auto; display: block; }
.cap.small { grid-column: span 5; }
.cap.third { grid-column: span 4; }
.cap-kicker { font-family: "Space Grotesk", sans-serif; font-weight: 700; font-size: 0.72rem; letter-spacing: 0.12em; text-transform: uppercase; color: var(--purple); }
.cap h3 { font-size: var(--step-2); margin-top: 10px; }
.cap p { margin-top: 12px; color: var(--muted); line-height: 1.55; }
.cap .rule { height: 1px; background: var(--line); margin: 20px 0; }
@media (max-width: 900px) {
  .caps { grid-template-columns: 1fr; }
  .cap.feature, .cap.small, .cap.third { grid-column: auto; }
}

/* ---- steps -------------------------------------------------- */
.steps { display: grid; grid-template-columns: repeat(4, 1fr); gap: 0; border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; background: var(--surface); }
.step { padding: clamp(24px, 3vw, 34px); border-right: 1px solid var(--line); position: relative; }
.step:last-child { border-right: 0; }
.step-n { font-family: "Space Grotesk", sans-serif; font-weight: 700; font-size: 0.8rem; color: #fff; background: var(--purple); width: 30px; height: 30px; border-radius: 50%; display: grid; place-items: center; }
.step h3 { font-size: var(--step-1); margin-top: 18px; }
.step p { margin-top: 8px; color: var(--muted); font-size: var(--step--1); }
@media (max-width: 900px) { .steps { grid-template-columns: repeat(2, 1fr); } .step:nth-child(2) { border-right: 0; } .step:nth-child(1), .step:nth-child(2) { border-bottom: 1px solid var(--line); } }
@media (max-width: 520px) { .steps { grid-template-columns: 1fr; } .step { border-right: 0; border-bottom: 1px solid var(--line); } .step:last-child { border-bottom: 0; } }

/* ---- closing CTA ------------------------------------------- */
.cta-band { position: relative; overflow: hidden; background: linear-gradient(115deg, #c62b39 0%, #1751c4 100%); color: #fff; border-radius: var(--radius); padding: clamp(40px, 6vw, 72px); }
.cta-band::before { content: ""; position: absolute; inset: 0; background: radial-gradient(55% 120% at 100% 0%, rgba(255,179,6,0.20), transparent 60%), radial-gradient(60% 120% at 0% 100%, rgba(230,58,73,0.45), transparent 60%); }
.cta-band > * { position: relative; }
.cta-band h2 { color: #fff; font-size: var(--step-3); max-width: 20ch; }
.cta-band p { color: #eaf0ff; margin-top: 16px; font-size: var(--step-1); max-width: 44ch; }
.cta-band .btn-primary { background: #fff; color: var(--blue-dark); margin-top: 28px; box-shadow: 0 10px 30px rgba(0,0,0,0.2); }
.cta-band .btn-primary:hover { background: #eaf0ff; filter: none; }

/* ---- footer ------------------------------------------------- */
.foot { background: #100f1e; color: #b9b7cf; padding-block: clamp(44px, 6vw, 72px) 32px; }
.foot-top { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: 28px; }
.foot-brand .nav-logo { color: #fff; }
.foot-brand p { margin-top: 14px; color: #85839c; max-width: 32ch; font-size: var(--step--1); }
.foot-cta { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 22px; padding-bottom: 36px; margin-bottom: 40px; border-bottom: 1px solid rgba(255,255,255,0.08); }
.foot-cta-copy h3 { color: #fff; font-size: var(--step-2); }
.foot-cta-copy p { color: #85839c; margin-top: 8px; font-size: var(--step-0); }
.foot-social { display: flex; gap: 12px; margin-top: 20px; }
.foot-social a { display: grid; place-items: center; width: 38px; height: 38px; border-radius: 50%; background: rgba(255,255,255,0.08); color: #b9b7cf; transition: background 0.15s ease, color 0.15s ease; }
.foot-social a:hover { background: var(--purple); color: #fff; }
.foot h4 { font-family: "Space Grotesk", sans-serif; color: #fff; font-size: 0.78rem; letter-spacing: 0.1em; text-transform: uppercase; margin: 0 0 14px; }
.foot ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.foot a { color: #b9b7cf; font-size: var(--step--1); }
.foot a:hover { color: #fff; }
/* `.foot a` [0,1,1] outranks `.btn-primary` [0,1,0], so the footer CTA took the
   footer's link colour and size: pale lavender on the gradient at 2.12:1, at
   14.4px against its twins' 17.44px. Pinned [0,2,1] to win, and scoped to .foot
   so it cannot reach `.cta-band .btn-primary` [0,2,0], which sets blue-on-white
   on purpose. */
.foot a.btn-primary { color: var(--ink); font-size: var(--step-0); }
.foot-note { display: flex; flex-wrap: wrap; align-items: center; gap: 12px; background: rgba(82,79,229,0.16); border: 1px solid rgba(205,205,249,0.18); border-radius: var(--radius-sm); padding: 14px 18px; margin: 34px 0 28px; color: var(--purple-light); font-size: var(--step--1); }
.foot-note strong { color: #fff; }
.foot-note a.kp { margin-left: auto; color: #fff; background: var(--purple); font-weight: 600; padding: 8px 16px; border-radius: 999px; white-space: nowrap; }
.foot-note a.kp:hover { background: var(--purple-light); color: var(--purple-dark); }
.foot-bottom { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px; border-top: 1px solid rgba(255,255,255,0.08); padding-top: 22px; color: #8d8ba3; font-size: var(--step--1); }
.foot-legal { display: flex; flex-wrap: wrap; gap: 18px; }
@media (max-width: 760px) { .foot-top { grid-template-columns: 1fr 1fr; } .foot-brand { grid-column: 1 / -1; } .foot-note a.kp { margin-left: 0; } }

/* ---- entrance motion --------------------------------------- */
@media (prefers-reduced-motion: no-preference) {
  .reveal { opacity: 0; transform: translateY(16px); animation: rise 0.7s var(--ease) forwards; }
  .reveal.d1 { animation-delay: 0.06s; } .reveal.d2 { animation-delay: 0.12s; }
  .reveal.d3 { animation-delay: 0.18s; } .reveal.d4 { animation-delay: 0.24s; }
  @keyframes rise { to { opacity: 1; transform: none; } }
}
