/* ===== Krossnote Landing — page styles ===== */

*,
*::before,
*::after {
  box-sizing: border-box;
}
html,
body {
  margin: 0;
  padding: 0;
}
body {
  font-family: var(--font-sans);
  color: var(--fg-1);
  background: var(--bg-1);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}

img,
svg {
  max-width: 100%;
  display: block;
}
a {
  color: inherit;
  text-decoration: none;
}
button {
  font: inherit;
  color: inherit;
  background: none;
  border: 0;
  padding: 0;
  cursor: pointer;
}

/* ----- Layout helpers ----- */
.container {
  width: 100%;
  max-width: 1240px;
  margin: 0 auto;
  padding: 0 24px;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--kn-orange);
}
.eyebrow::before {
  content: "";
  width: 24px;
  height: 1px;
  background: currentColor;
}
.eyebrow.no-rule::before {
  display: none;
}

.section {
  padding: 120px 0;
  position: relative;
}
.section-sm {
  padding: 80px 0;
}

.display-1 {
  font-family: var(--font-sans);
  font-weight: 500;
  font-size: clamp(44px, 6.2vw, 88px);
  line-height: 0.98;
  letter-spacing: -0.03em;
  margin: 0;
  color: var(--kn-ink);
}
.display-2 {
  font-weight: 500;
  font-size: clamp(36px, 4.6vw, 64px);
  line-height: 1.02;
  letter-spacing: -0.025em;
  margin: 0;
}
.h2 {
  font-weight: 500;
  font-size: clamp(28px, 3.2vw, 44px);
  line-height: 1.1;
  letter-spacing: -0.02em;
  margin: 0;
}
.h3 {
  font-weight: 500;
  font-size: 22px;
  line-height: 1.25;
  letter-spacing: -0.012em;
  margin: 0;
}
.lead {
  font-size: 20px;
  line-height: 1.55;
  color: var(--fg-2);
  margin: 0;
}
.body {
  font-size: 16px;
  line-height: 1.6;
  color: var(--fg-2);
  margin: 0;
}
.small {
  font-size: 14px;
  line-height: 1.5;
  color: var(--fg-3);
  margin: 0;
}

/* ----- Buttons ----- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 14px 22px;
  border-radius: var(--r-md);
  font-weight: 500;
  font-size: 15px;
  letter-spacing: -0.005em;
  transition:
    background 150ms ease-out,
    color 150ms ease-out,
    transform 150ms ease-out,
    box-shadow 150ms ease-out;
  white-space: nowrap;
  position: relative;
}
.btn-primary {
  background: var(--kn-primary);
  color: var(--kn-primary-ink);
}
.btn-primary:hover {
  background: var(--kn-primary-hover);
}
.btn-primary:focus-visible {
  outline: none;
  box-shadow: var(--shadow-focus);
}
.btn-ghost {
  background: transparent;
  color: var(--kn-ink);
}
.btn-ghost:hover {
  background: var(--kn-slate-100);
}
.btn-ghost-dark {
  background: transparent;
  color: rgba(255, 255, 255, 0.82);
  border: 1px solid rgba(255, 255, 255, 0.18);
}
.btn-ghost-dark:hover {
  background: rgba(255, 255, 255, 0.06);
  color: #fff;
  border-color: rgba(255, 255, 255, 0.28);
}

.btn-lg {
  padding: 16px 26px;
  font-size: 16px;
}

.btn-arrow svg {
  transition: transform 200ms ease-out;
}
.btn:hover .btn-arrow svg {
  transform: translateX(3px);
}

/* ----- Dot grid backdrop pattern (brand texture) ----- */
.dot-grid {
  background-image: radial-gradient(
    rgba(255, 255, 255, 0.08) 1px,
    transparent 1px
  );
  background-size: 24px 24px;
}
.dot-grid-ink {
  background-image: radial-gradient(rgba(5, 0, 56, 0.08) 1px, transparent 1px);
  background-size: 24px 24px;
}

/* ----- Nav ----- */
.nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 50;
  padding: 18px 0;
  transition:
    background 220ms ease-out,
    border-color 220ms ease-out,
    backdrop-filter 220ms ease-out;
}
.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 32px;
}
.nav-brand {
  display: flex;
  align-items: center;
  gap: 10px;
  height: 28px;
}
.nav-brand svg {
  height: 26px;
  width: auto;
}
.nav-links {
  display: flex;
  align-items: center;
  gap: 32px;
}
.nav-link {
  font-size: 14px;
  font-weight: 400;
  color: var(--fg-2);
  padding: 8px 2px;
  position: relative;
  transition: color 150ms ease-out;
}
.nav-link:hover {
  color: var(--kn-ink);
}
.nav-link.active {
  color: var(--kn-ink);
}
.nav-link.active::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 2px;
  background: var(--kn-orange);
}
.nav-actions {
  display: flex;
  align-items: center;
  gap: 14px;
}

.nav-scrolled {
  background: rgba(251, 250, 247, 0.85);
  backdrop-filter: saturate(1.4) blur(14px);
  -webkit-backdrop-filter: saturate(1.4) blur(14px);
  border-bottom: 1px solid var(--kn-slate-200);
}

/* Hamburger button */
.nav-hamburger {
  display: none;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 5px;
  width: 36px;
  height: 36px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 4px;
}
.nav-hamburger span {
  display: block;
  width: 22px;
  height: 2px;
  background: var(--kn-midnight);
  border-radius: 2px;
  transition: transform 200ms ease, opacity 200ms ease;
  transform-origin: center;
}
.nav-hamburger span.open:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-hamburger span.open:nth-child(2) { opacity: 0; }
.nav-hamburger span.open:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* Mobile menu overlay */
.nav-mobile-overlay {
  position: fixed;
  inset: 0;
  top: 60px;
  background: rgba(0, 0, 0, 0.35);
  z-index: 999;
}
.nav-mobile-menu {
  background: var(--kn-cream, #fbfaf7);
  padding: 24px 24px 32px;
  display: flex;
  flex-direction: column;
  gap: 4px;
  border-bottom: 1px solid var(--kn-slate-200);
}
.nav-mobile-link {
  display: block;
  padding: 14px 8px;
  font-size: 1.05rem;
  font-weight: 500;
  color: var(--kn-midnight);
  text-decoration: none;
  border-bottom: 1px solid var(--kn-slate-100, #f0eeea);
}
.nav-mobile-link:last-of-type {
  border-bottom: none;
}
.nav-mobile-actions {
  display: flex;
  gap: 12px;
  margin-top: 20px;
  flex-wrap: wrap;
}
.nav-mobile-actions .btn {
  flex: 1;
  text-align: center;
}

@media (max-width: 860px) {
  .nav-links {
    display: none;
  }
  .nav-hamburger {
    display: flex;
  }
}
@media (max-width: 560px) {
  .nav-actions .btn-ghost {
    display: none;
  }
}

/* ----- Hero ----- */
.hero {
  position: relative;
  padding: 160px 0 80px;
  overflow: hidden;
  background: var(--bg-1);
}
.hero-bg-ornament {
  position: absolute;
  inset: 0;
  pointer-events: none;
}
.hero-bg-ornament::before {
  content: "";
  position: absolute;
  top: -160px;
  right: -160px;
  width: 520px;
  height: 520px;
  background: radial-gradient(
    circle at center,
    rgba(224, 123, 0, 0.08),
    transparent 65%
  );
  filter: blur(4px);
}
.hero-bg-ornament::after {
  content: "";
  position: absolute;
  bottom: -260px;
  left: -200px;
  width: 600px;
  height: 600px;
  background: radial-gradient(
    circle at center,
    rgba(26, 58, 143, 0.08),
    transparent 65%
  );
}

.hero-split {
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 56px;
  align-items: center;
  width: 100%;
}
.hero-split > * {
  min-width: 0;
}
.hero-split .hero-copy {
  max-width: 100%;
  width: 100%;
  text-align: left;
  align-items: flex-start;
}
.hero-split .hero-copy .eyebrow {
  justify-content: flex-start;
}
.hero-split .hero-copy .lead {
  text-align: left;
  max-width: 56ch;
}
.hero-split .hero-cta {
  justify-content: flex-start;
}
.hero-split .hero-title {
  max-width: 18ch;
}
.hero-split .hero-scene {
  width: 100%;
  min-width: 0;
}
.hero-split .hero-scene-frame {
  min-width: 0;
}

.hero-stack {
  position: relative;
  z-index: 2;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
}
.hero-copy {
  max-width: 780px;
  position: relative;
  z-index: 2;
  display: flex;
  flex-direction: column;
  align-items: center;
}
.hero-copy .eyebrow {
  justify-content: center;
}
.hero-copy .lead {
  margin-top: 24px;
  max-width: 620px;
  text-align: center;
}
.hero-copy .hero-title {
  margin-top: 24px;
  font-size: clamp(36px, 4.4vw, 60px);
  line-height: 1.02;
  letter-spacing: -0.03em;
  text-wrap: balance;
}
.hero-copy .hero-title em {
  font-style: normal;
  color: var(--kn-orange);
}
.hero-cta {
  margin-top: 40px;
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
  justify-content: center;
}

/* Cinematic scene */
.hero-scene {
  position: relative;
  margin: 0;
  width: 100%;
  z-index: 1;
}
.hero-split .hero-scene {
  padding: 0;
}
.hero-scene-frame {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 9;
  border-radius: 20px;
  overflow: hidden;
  box-shadow:
    0 1px 0 rgba(255, 255, 255, 0.6) inset,
    0 30px 80px -30px rgba(5, 0, 56, 0.35),
    0 12px 28px -12px rgba(5, 0, 56, 0.2);
}
.hero-scene-frame img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  display: block;
}
/* soft fade at edges so it feels embedded, not stamped */
.hero-scene-frame::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: radial-gradient(
    ellipse at center,
    transparent 55%,
    rgba(251, 250, 247, 0.18) 100%
  );
}

/* Floating tags hovering off the frame */
.hero-scene-tag {
  position: absolute;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 14px;
  background: #fff;
  border: 1px solid var(--kn-slate-200);
  border-radius: 999px;
  font-size: 13px;
  font-weight: 500;
  color: var(--kn-ink);
  letter-spacing: -0.005em;
  box-shadow: 0 8px 24px -10px rgba(5, 0, 56, 0.25);
  white-space: nowrap;
  z-index: 3;
}
.hero-scene-tag-dot {
  width: 8px;
  height: 8px;
  border-radius: 999px;
  background: var(--kn-orange);
  box-shadow: 0 0 0 4px rgba(224, 123, 0, 0.18);
}
.hero-scene-tag-1 {
  top: 12%;
  left: -16px;
}
.hero-scene-tag-1 .hero-scene-tag-dot {
  background: var(--kn-orange);
  box-shadow: 0 0 0 4px rgba(224, 123, 0, 0.18);
}
.hero-scene-tag-2 {
  top: 40%;
  right: -20px;
}
.hero-scene-tag-2 .hero-scene-tag-dot {
  background: #1a3a8f;
  box-shadow: 0 0 0 4px rgba(26, 58, 143, 0.18);
}
.hero-scene-tag-3 {
  bottom: 14%;
  left: 12%;
}
.hero-scene-tag-3 .hero-scene-tag-dot {
  background: #2ba46b;
  box-shadow: 0 0 0 4px rgba(43, 164, 107, 0.18);
}

.hero-illustration-full {
  position: relative;
  z-index: 2;
  width: 100%;
  max-width: 1400px;
  margin: 64px auto 0;
  line-height: 0;
  background: var(--kn-midnight);
  border-radius: 12px;
  overflow: hidden;
}
.hero-illustration-full img {
  display: block;
  width: 100%;
  height: auto;
  object-fit: cover;
  object-position: right center;
}

.hero .hero-meta {
  margin-top: 56px;
  display: flex;
  gap: 48px;
  flex-wrap: wrap;
  justify-content: center;
  padding-top: 32px;
  border-top: 1px solid var(--kn-slate-200);
}
.hero-meta-item {
  display: flex;
  flex-direction: column;
  gap: 4px;
  align-items: center;
  text-align: center;
}
.hero-meta-num {
  font-weight: 500;
  font-size: 28px;
  letter-spacing: -0.02em;
  color: var(--kn-ink);
  font-feature-settings: "tnum";
}
.hero-meta-label {
  font-size: 12px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--fg-3);
}

@media (max-width: 980px) {
  .hero {
    padding: 130px 0 64px;
  }
  .hero-split {
    grid-template-columns: 1fr;
    gap: 40px;
  }
  .hero-split .hero-copy {
    max-width: 100%;
    align-items: center;
    text-align: center;
  }
  .hero-split .hero-copy .eyebrow {
    justify-content: center;
  }
  .hero-split .hero-copy .lead {
    text-align: center;
  }
  .hero-split .hero-cta {
    justify-content: center;
  }
  .hero-scene-frame {
    border-radius: 14px;
  }
  .hero .hero-meta {
    margin-top: 40px;
    gap: 28px;
  }
  .hero-illustration-full {
    border-radius: 0;
    max-width: 100%;
  }
  .hero-illustration-full img {
    aspect-ratio: 2 / 1;
  }
}

/* ----- Social proof ----- */
.proof {
  padding: 56px 0;
  border-top: 1px solid var(--kn-slate-200);
  border-bottom: 1px solid var(--kn-slate-200);
  background: var(--bg-2);
}
.proof-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 32px;
  flex-wrap: wrap;
  margin-bottom: 32px;
}
.proof-stat {
  font-size: clamp(36px, 4.2vw, 56px);
  font-weight: 500;
  letter-spacing: -0.025em;
  line-height: 1;
  color: var(--kn-ink);
  font-feature-settings: "tnum";
}
.proof-stat em {
  font-style: normal;
  color: var(--kn-orange);
}
.proof-logos {
  display: grid;
  grid-template-columns: repeat(9, 1fr);
  gap: 0;
  align-items: center;
}
.proof-logo {
  padding: 18px 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-right: 1px solid var(--kn-slate-100);
  height: 88px;
  transition:
    opacity 150ms ease-out,
    filter 150ms ease-out;
}
.proof-logo img {
  max-width: 100%;
  max-height: 44px;
  width: auto;
  height: auto;
  object-fit: contain;
  filter: grayscale(1) contrast(0.9);
  opacity: 0.7;
  transition:
    opacity 150ms ease-out,
    filter 150ms ease-out;
}
.proof-logo:hover img {
  filter: grayscale(0) contrast(1);
  opacity: 1;
}
.proof-logo-dark {
  background: var(--kn-ink, #050038);
  border-radius: 8px;
  margin: 8px 6px;
  border-right: 0;
  height: 72px;
}
.proof-logo-dark + .proof-logo {
  border-left: 1px solid var(--kn-slate-100);
}
.proof-logo-dark img {
  filter: none;
  opacity: 0.95;
  max-height: 36px;
}
.proof-logo-dark:hover img {
  opacity: 1;
}
.proof-logo:last-child {
  border-right: 0;
}

@media (max-width: 900px) {
  .proof-logos {
    grid-template-columns: repeat(3, 1fr);
  }
  .proof-logo {
    border-right: 1px solid var(--kn-slate-100);
  }
  .proof-logo:nth-child(3n) {
    border-right: 0;
  }
  .proof-logo:nth-child(n + 4) {
    border-top: 1px solid var(--kn-slate-100);
  }
}
@media (max-width: 500px) {
  .proof-logos {
    grid-template-columns: repeat(2, 1fr);
  }
  .proof-logo:nth-child(2n) {
    border-right: 0;
  }
  .proof-logo:nth-child(odd) {
    border-right: 1px solid var(--kn-slate-100);
  }
  .proof-logo:nth-child(n + 3) {
    border-top: 1px solid var(--kn-slate-100);
  }
}

/* ----- Pour qui (Audience) ----- */
.audience-head {
  display: flex;
  flex-direction: column;
  gap: 20px;
  margin-bottom: 72px;
  align-items: flex-start;
  max-width: 760px;
}
.audience-head .h2 {
  max-width: 22ch;
}
.audience-head .body {
  max-width: 60ch;
  margin: 0;
}
.audience-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
}
.audience-card {
  background: var(--bg-2);
  border: var(--border-subtle);
  border-radius: var(--r-xl);
  padding: 40px;
  position: relative;
  overflow: hidden;
  transition:
    box-shadow 220ms ease-out,
    transform 220ms ease-out,
    border-color 220ms ease-out;
}
.audience-card:hover {
  box-shadow: var(--shadow-2);
  transform: translateY(-2px);
}
.audience-card-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 28px;
}
.audience-card-num {
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.12em;
  color: var(--kn-orange);
  font-feature-settings: "tnum";
}
.audience-card h3 {
  font-size: 28px;
  font-weight: 500;
  letter-spacing: -0.018em;
  margin: 0 0 20px;
}
.audience-card ul {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 14px;
}
.audience-card li {
  font-size: 15px;
  line-height: 1.55;
  color: var(--fg-2);
  display: grid;
  grid-template-columns: 20px 1fr;
  gap: 12px;
  align-items: start;
}
.audience-card li svg {
  margin-top: 3px;
  flex-shrink: 0;
  color: var(--kn-orange);
}
.audience-card-icon {
  width: 48px;
  height: 48px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--kn-primary-tint);
  border-radius: var(--r-md);
  color: var(--kn-orange);
}

@media (max-width: 900px) {
  .audience-head {
    gap: 16px;
  }
  .audience-grid {
    grid-template-columns: 1fr;
  }
}

/* ----- Value blocks ----- */
.value-block {
  display: grid;
  grid-template-columns: 1fr 1.1fr;
  gap: 80px;
  align-items: center;
  padding: 80px 0;
  border-top: 1px solid var(--kn-slate-200);
}
.value-block:first-of-type {
  border-top: 0;
}
.value-block.reverse {
  grid-template-columns: 1.1fr 1fr;
}
.value-block.reverse .value-copy {
  order: 2;
}
.value-block.reverse .value-stage {
  order: 1;
}

.value-copy {
  max-width: 500px;
}
.value-copy .h2 {
  margin-top: 20px;
}
.value-copy .body {
  margin-top: 20px;
  font-size: 17px;
}
.value-copy .value-num {
  font-size: 14px;
  font-weight: 500;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--kn-orange);
  font-feature-settings: "tnum";
}
.value-copy .value-features {
  margin-top: 28px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  list-style: none;
  padding: 0;
}
.value-copy .value-features li {
  display: grid;
  grid-template-columns: 20px 1fr;
  gap: 12px;
  font-size: 15px;
  color: var(--fg-2);
}
.value-copy .value-features li svg {
  margin-top: 3px;
  color: var(--kn-orange);
}

.value-stage {
  position: relative;
  width: 100%;
  aspect-ratio: 4 / 3;
  border-radius: var(--r-xl);
  overflow: hidden;
}

@media (max-width: 980px) {
  .value-block,
  .value-block.reverse {
    grid-template-columns: 1fr;
    gap: 40px;
    padding: 56px 0;
  }
  .value-block.reverse .value-copy {
    order: 1;
  }
  .value-block.reverse .value-stage {
    order: 2;
  }
}

/* ----- Cross-platform section ----- */
.cross {
  background: var(--kn-midnight);
  color: #fff;
  position: relative;
  overflow: hidden;
}
.cross-bg {
  position: absolute;
  inset: 0;
  pointer-events: none;
  opacity: 0.5;
}
.cross-inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 80px;
  align-items: center;
  position: relative;
}
.cross-inner .display-2 {
  color: #fff;
  max-width: 14ch;
}
.cross-inner .lead {
  color: rgba(255, 255, 255, 0.72);
  margin-top: 24px;
  max-width: 44ch;
}
.cross-inner .eyebrow {
  color: var(--kn-yellow);
}

.cross-tiles {
  display: flex;
  flex-direction: column;
  gap: 14px;
  margin-top: 32px;
}
.cross-tile {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 16px 18px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: var(--r-md);
}
.cross-tile-icon {
  width: 36px;
  height: 36px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(255, 255, 255, 0.08);
  border-radius: var(--r-sm);
  color: var(--kn-yellow);
}
.cross-tile-label {
  font-size: 15px;
  color: #fff;
}
.cross-tile-meta {
  margin-left: auto;
  font-size: 13px;
  color: rgba(255, 255, 255, 0.48);
}

.cross-stage {
  aspect-ratio: 1 / 1;
  position: relative;
}

@media (max-width: 980px) {
  .cross-inner {
    grid-template-columns: 1fr;
    gap: 48px;
  }
}

/* ----- Process ----- */
.process-head {
  max-width: 720px;
  margin-bottom: 56px;
}
.process-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0;
  border-top: 1px solid var(--kn-slate-200);
  border-bottom: 1px solid var(--kn-slate-200);
}
.process-step {
  padding: 40px 32px 48px;
  position: relative;
  border-right: 1px solid var(--kn-slate-200);
  display: flex;
  flex-direction: column;
  gap: 16px;
}
.process-step:last-child {
  border-right: 0;
}
.process-step-num {
  font-size: 12px;
  letter-spacing: 0.12em;
  font-weight: 500;
  color: var(--kn-orange);
  font-feature-settings: "tnum";
}
.process-step h4 {
  font-size: 22px;
  font-weight: 500;
  letter-spacing: -0.01em;
  margin: 0;
  color: var(--kn-ink);
}
.process-step p {
  font-size: 15px;
  color: var(--fg-2);
  line-height: 1.55;
  margin: 0;
}
.process-step-icon {
  width: 36px;
  height: 36px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--kn-ink);
  margin-bottom: 4px;
}
.process-outcome {
  margin-top: 40px;
  text-align: center;
  font-size: 17px;
  font-style: italic;
  color: var(--fg-2);
}

@media (max-width: 900px) {
  .process-grid {
    grid-template-columns: 1fr 1fr;
  }
  .process-step:nth-child(2n) {
    border-right: 0;
  }
  .process-step:nth-child(n + 3) {
    border-top: 1px solid var(--kn-slate-200);
  }
}
@media (max-width: 520px) {
  .process-grid {
    grid-template-columns: 1fr;
  }
  .process-step {
    border-right: 0;
    border-bottom: 1px solid var(--kn-slate-200);
  }
  .process-step:last-child {
    border-bottom: 0;
  }
  .process-step:nth-child(n + 3) {
    border-top: 0;
  }
}

/* ----- Final CTA ----- */
.final-cta {
  background: var(--kn-midnight);
  color: #fff;
  padding: 120px 0;
  position: relative;
  overflow: hidden;
}
.final-cta-bg {
  position: absolute;
  inset: 0;
  opacity: 0.4;
}
.final-cta-inner {
  position: relative;
  text-align: center;
  max-width: 780px;
  margin: 0 auto;
}
.final-cta .display-1 {
  color: #fff;
}
.final-cta .display-1 em {
  color: var(--kn-orange);
  font-style: normal;
}
.final-cta .lead {
  color: rgba(255, 255, 255, 0.7);
  margin-top: 24px;
}
.final-cta-btns {
  margin-top: 40px;
  display: inline-flex;
  gap: 14px;
  flex-wrap: wrap;
  justify-content: center;
}

/* ----- Footer ----- */
.footer {
  background: var(--kn-midnight);
  color: rgba(255, 255, 255, 0.72);
  padding: 80px 0 32px;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
}
.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 48px;
  margin-bottom: 56px;
}
.footer-brand svg {
  height: 28px;
  width: auto;
  margin-bottom: 20px;
}
.footer-brand p {
  font-size: 14px;
  color: rgba(255, 255, 255, 0.6);
  max-width: 32ch;
  line-height: 1.5;
}
.footer-col h5 {
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.48);
  margin: 0 0 20px;
}
.footer-col ul {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.footer-col a {
  font-size: 15px;
  color: rgba(255, 255, 255, 0.82);
  transition: color 150ms ease-out;
}
.footer-col a:hover {
  color: var(--kn-orange);
}

.footer-bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-top: 32px;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  font-size: 13px;
  color: rgba(255, 255, 255, 0.5);
  flex-wrap: wrap;
  gap: 16px;
}

@media (max-width: 860px) {
  .footer-grid {
    grid-template-columns: 1fr 1fr;
    gap: 40px;
  }
}
@media (max-width: 500px) {
  .footer-grid {
    grid-template-columns: 1fr;
  }
}

/* ----- Demo modal ----- */
.modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(5, 0, 56, 0.55);
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 900;
  padding: var(--sp-4);
  animation: kn-modal-in 0.18s ease;
}
@keyframes kn-modal-in {
  from { opacity: 0; }
  to   { opacity: 1; }
}
.modal-card {
  background: var(--kn-paper);
  border-radius: var(--r-2xl);
  padding: var(--sp-7) var(--sp-6);
  max-width: 540px;
  width: 100%;
  position: relative;
  max-height: 90vh;
  overflow-y: auto;
  box-shadow: var(--shadow-4);
  animation: kn-card-in 0.2s cubic-bezier(0.34, 1.3, 0.64, 1);
}
@keyframes kn-card-in {
  from { opacity: 0; transform: translateY(16px) scale(0.97); }
  to   { opacity: 1; transform: translateY(0) scale(1); }
}
.modal-close {
  position: absolute;
  top: var(--sp-4);
  right: var(--sp-4);
  background: none;
  border: none;
  cursor: pointer;
  color: var(--kn-slate-500);
  width: 34px;
  height: 34px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: var(--r-sm);
  transition: background 0.12s, color 0.12s;
}
.modal-close:hover { background: var(--kn-slate-100); color: var(--kn-ink); }
.modal-title {
  font-weight: 500;
  font-size: clamp(22px, 3vw, 28px);
  line-height: 1.15;
  letter-spacing: -0.02em;
  color: var(--kn-ink);
  margin: 0 0 8px;
}
.modal-lead {
  font-size: 15px;
  line-height: 1.5;
  color: var(--fg-2);
  margin: 0 0 4px;
}
.demo-form {
  display: flex;
  flex-direction: column;
  gap: var(--sp-4);
  margin-top: var(--sp-5);
}
.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--sp-3);
}
.form-group {
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.form-group label {
  font-size: 13px;
  font-weight: 500;
  color: var(--kn-ink);
  letter-spacing: -0.005em;
}
.form-group input,
.form-group textarea {
  border: 1.5px solid var(--kn-slate-200);
  border-radius: var(--r-md);
  padding: 10px 13px;
  font-size: 15px;
  font-family: var(--font-sans);
  color: var(--kn-ink);
  background: var(--kn-white);
  transition: border-color 0.15s, box-shadow 0.15s;
  outline: none;
  width: 100%;
}
.form-group input:focus,
.form-group textarea:focus {
  border-color: var(--kn-blue);
  box-shadow: var(--shadow-focus-blue);
}
.form-group textarea {
  resize: vertical;
  min-height: 96px;
}
.form-error {
  font-size: 13px;
  color: var(--kn-danger);
  margin: 0;
}
.modal-success {
  text-align: center;
  padding: var(--sp-5) var(--sp-4);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--sp-4);
}
.modal-success-icon {
  width: 56px;
  height: 56px;
  border-radius: var(--r-pill);
  background: var(--kn-success-bg);
  color: var(--kn-success);
  display: flex;
  align-items: center;
  justify-content: center;
}
@media (max-width: 520px) {
  .modal-card { padding: var(--sp-6) var(--sp-5); border-radius: var(--r-xl); }
  .form-row { grid-template-columns: 1fr; }
}

/* ----- Motion utilities ----- */
@keyframes kn-fade-up {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}
.reveal {
  opacity: 1;
  transform: none;
}
.reveal.in {
  opacity: 1;
  transform: translateY(0);
}

@media (prefers-reduced-motion: reduce) {
  .reveal {
    opacity: 1;
    transform: none;
    transition: none;
  }
  * {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}
