/* =========================================================
   Kulathunga Smart Distribution - modern home page layer
   Loaded after style.css. Everything is scoped with .km-
   ========================================================= */

:root {
  --km-ink: #040a33;
  --km-navy: #061153;
  --km-navy-2: #0a1a78;
  --km-blue: #1053f3;
  --km-sky: #7fb0ff;
  --km-lamp: #ffb547;
  --km-lamp-soft: rgba(255, 181, 71, 0.18);
  --km-paper: #f3f6ff;
  --km-text: #c9d3f5;
  --km-line: rgba(255, 255, 255, 0.12);
  --km-radius: 24px;
  --km-ease: cubic-bezier(0.22, 1, 0.36, 1);
}

.km-section { position: relative; padding: 110px 0; }
.km-hero p, .km-section p, .km-brands p, .km-cta p { color: inherit; }
.km-services, .km-living, .km-process, .km-cta, .km-brands { color: var(--km-text); }
.km-container { width: min(1240px, 100% - 48px); margin-inline: auto; }
.km-dark { background: var(--km-ink); color: var(--km-text); }
.km-light { background: var(--km-paper); color: #3b4670; }

.km-title {
  font-family: "Manrope", sans-serif;
  font-weight: 800;
  letter-spacing: -0.02em;
  line-height: 1.08;
  font-size: clamp(32px, 4.2vw, 56px);
  color: #fff;
  margin: 0 0 18px;
}
.km-light .km-title { color: var(--km-navy); }
.km-lead { font-size: 18px; line-height: 1.65; max-width: 56ch; margin: 0; }
.km-head { display: flex; justify-content: space-between; align-items: flex-end; gap: 32px; margin-bottom: 56px; flex-wrap: wrap; }
.km-head > div { max-width: 640px; }

/* Buttons */
.km-btn {
  display: inline-flex; align-items: center; gap: 12px;
  padding: 16px 28px; border-radius: 999px; border: 1px solid transparent;
  font-family: "Manrope", sans-serif; font-weight: 700; font-size: 16px; line-height: 1;
  text-decoration: none; cursor: pointer;
  transition: transform .35s var(--km-ease), background .3s, color .3s, border-color .3s, box-shadow .35s;
}
.km-btn svg { width: 18px; height: 18px; transition: transform .35s var(--km-ease); }
.km-btn:hover svg { transform: translateX(4px); }
.km-btn-primary { background: var(--km-blue); color: #fff; box-shadow: 0 10px 30px -8px rgba(16, 83, 243, .7); }
.km-btn-primary:hover { background: #2f68ff; color: #fff; transform: translateY(-2px); box-shadow: 0 16px 36px -8px rgba(16, 83, 243, .85); }
.km-btn-ghost { background: transparent; color: #fff; border-color: rgba(255, 255, 255, .28); }
.km-btn-ghost:hover { background: rgba(255, 255, 255, .08); color: #fff; border-color: #fff; }
.km-btn-dark { background: var(--km-navy); color: #fff; }
.km-btn-dark:hover { background: var(--km-blue); color: #fff; transform: translateY(-2px); }
.km-btn:focus-visible, .km-dev:focus-visible, .km-scene:focus-visible,
.km-svc:focus-visible, .km-faq summary:focus-visible, .km-prod:focus-visible {
  outline: 3px solid var(--km-lamp); outline-offset: 3px;
}

/* ---------------------------------------------------------
   HERO
   --------------------------------------------------------- */
.km-hero {
  position: relative; overflow: hidden; isolation: isolate;
  background: var(--km-ink); color: var(--km-text);
  padding: 170px 0 110px;
}
.km-hero::before {            /* drifting blue light */
  content: ""; position: absolute; z-index: -2; inset: -20% -10% auto auto;
  width: 900px; height: 900px; border-radius: 50%;
  background: radial-gradient(circle, rgba(16, 83, 243, .55), rgba(16, 83, 243, 0) 65%);
  animation: km-drift 18s ease-in-out infinite alternate;
}
.km-hero::after {             /* fine grid that fades out */
  content: ""; position: absolute; z-index: -1; inset: 0;
  background-image: linear-gradient(rgba(255,255,255,.05) 1px, transparent 1px),
                    linear-gradient(90deg, rgba(255,255,255,.05) 1px, transparent 1px);
  background-size: 64px 64px;
  -webkit-mask-image: radial-gradient(ellipse 80% 70% at 70% 40%, #000, transparent 75%);
          mask-image: radial-gradient(ellipse 80% 70% at 70% 40%, #000, transparent 75%);
}
@keyframes km-drift { to { transform: translate(-120px, 90px) scale(1.12); } }

.km-hero-grid { display: grid; grid-template-columns: minmax(0, 1.02fr) minmax(0, 1fr); gap: 64px; align-items: center; }
.km-hero h1 {
  font-family: "Manrope", sans-serif; font-weight: 800; color: #fff;
  font-size: clamp(40px, 5.6vw, 78px); line-height: 1.03; letter-spacing: -0.03em; margin: 0 0 24px;
}
.km-hero h1 .ln { display: block; overflow: hidden; padding-bottom: .08em; }
.km-hero h1 .ln > span { display: block; transform: translateY(110%); transition: transform 1s var(--km-ease); }
.km-ready .km-hero h1 .ln > span { transform: none; }
.km-hero h1 .ln:nth-child(2) > span { transition-delay: .12s; }
.km-hero h1 .ln:nth-child(3) > span { transition-delay: .24s; }
.km-hero .km-lead { font-size: 19px; opacity: 0; transform: translateY(14px); transition: opacity .9s .5s, transform .9s .5s var(--km-ease); }
.km-hero-actions { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 36px; opacity: 0; transform: translateY(14px); transition: opacity .9s .65s, transform .9s .65s var(--km-ease); }
.km-ready .km-hero .km-lead, .km-ready .km-hero-actions { opacity: 1; transform: none; }

.km-hero-proof { display: flex; gap: 40px; margin-top: 52px; padding-top: 28px; border-top: 1px solid var(--km-line); flex-wrap: wrap; }
.km-hero-proof strong { display: block; font-family: "Manrope", sans-serif; font-size: 34px; font-weight: 800; color: #fff; line-height: 1; }
.km-hero-proof > div > span { font-size: 14px; color: var(--km-text); }

/* Control panel */
.km-panel {
  position: relative; border-radius: 32px; padding: 14px;
  background: linear-gradient(160deg, rgba(255,255,255,.14), rgba(255,255,255,.04));
  border: 1px solid rgba(255,255,255,.18);
  box-shadow: 0 40px 80px -30px rgba(0,0,0,.7), inset 0 1px 0 rgba(255,255,255,.2);
  -webkit-backdrop-filter: blur(14px); backdrop-filter: blur(14px);
  opacity: 0; transform: translateY(30px) scale(.97); transition: opacity 1s .35s, transform 1.1s .35s var(--km-ease);
}
.km-ready .km-panel { opacity: 1; transform: none; }
.km-panel-top { display: flex; justify-content: space-between; align-items: center; padding: 6px 12px 14px; font-family: "Manrope", sans-serif; font-weight: 700; color: #fff; font-size: 15px; }
.km-panel-top small { font-weight: 500; color: var(--km-text); font-size: 13px; }
.km-rec { display: inline-flex; align-items: center; gap: 8px; font-size: 12px; font-weight: 700; letter-spacing: .06em; color: #fff; padding: 5px 12px; border-radius: 999px; background: rgba(255,255,255,.08); transition: opacity .3s; }
.km-rec i { width: 8px; height: 8px; border-radius: 50%; background: #ff4d5e; animation: km-pulse 1.4s infinite; }
.km-panel[data-cam="off"] .km-rec { opacity: .35; }
.km-panel[data-cam="off"] .km-rec i { animation: none; background: #8a93bd; }
@keyframes km-pulse { 0% { box-shadow: 0 0 0 0 rgba(255,77,94,.7); } 70% { box-shadow: 0 0 0 9px rgba(255,77,94,0); } 100% { box-shadow: 0 0 0 0 rgba(255,77,94,0); } }

.km-house { border-radius: 22px; overflow: hidden; background: linear-gradient(#0b1566, #071049 70%, #050b33); }
.km-house svg { display: block; width: 100%; height: auto; }

/* house states */
.km-win { fill: #0d1b78; stroke: rgba(127,176,255,.35); stroke-width: 2; transition: fill .6s, filter .6s; }
.km-glow { opacity: 0; transition: opacity .8s; }
.km-panel[data-lights="on"] .km-win { fill: #ffcf7a; filter: drop-shadow(0 0 14px rgba(255,181,71,.85)); }
.km-panel[data-lights="on"] .km-glow { opacity: 1; }
.km-panel[data-lights="on"] .km-xbar { stroke: #8a5200; stroke-opacity: .35; }
.km-xbar { transition: stroke .6s; }
.km-padlock-body { fill: #0a1466; stroke: var(--km-sky); stroke-width: 3; transition: stroke .4s, fill .4s; }
.km-padlock-shackle { fill: none; stroke: var(--km-sky); stroke-width: 4; stroke-linecap: round; transition: transform .5s var(--km-ease), stroke .4s; transform-origin: 252px 202px; transform-box: view-box; }
.km-panel[data-lock="open"] .km-padlock-shackle { transform: translateY(-9px) rotate(-26deg); stroke: var(--km-lamp); }
.km-panel[data-lock="open"] .km-padlock-body { stroke: var(--km-lamp); }
.km-door { transition: fill .5s; fill: #070e44; }
.km-panel[data-lock="open"] .km-door { fill: #1a2a8f; }
.km-door-light { opacity: 0; transition: opacity .6s; }
.km-panel[data-lock="open"] .km-door-light { opacity: 1; }
.km-beam { transform-origin: 402px 162px; transform-box: view-box; opacity: 0; transition: opacity .5s; animation: km-sweep 5s ease-in-out infinite alternate; }
.km-panel[data-cam="on"] .km-beam { opacity: 1; }
@keyframes km-sweep { from { transform: rotate(-14deg); } to { transform: rotate(10deg); } }
.km-star { animation: km-twinkle 3.2s ease-in-out infinite; }
.km-star:nth-child(2n) { animation-delay: .9s; }
.km-star:nth-child(3n) { animation-delay: 1.7s; }
@keyframes km-twinkle { 50% { opacity: .25; } }

.km-devs { display: grid; grid-template-columns: repeat(2, 1fr); gap: 10px; margin-top: 12px; }
.km-dev {
  display: flex; align-items: center; gap: 12px; text-align: left; width: 100%;
  padding: 12px 14px; border-radius: 16px; cursor: pointer;
  background: rgba(255,255,255,.06); border: 1px solid rgba(255,255,255,.12); color: #fff;
  transition: background .35s, border-color .35s, transform .35s var(--km-ease);
}
.km-dev:hover { transform: translateY(-2px); background: rgba(255,255,255,.1); }
.km-dev .ic { flex: none; width: 40px; height: 40px; border-radius: 12px; display: grid; place-items: center; background: rgba(255,255,255,.08); color: var(--km-text); transition: background .35s, color .35s; }
.km-dev .ic svg { width: 22px; height: 22px; }
.km-dev b { display: block; font-family: "Manrope", sans-serif; font-size: 14.5px; line-height: 1.2; }
.km-dev em { display: block; font-style: normal; font-size: 12.5px; color: var(--km-text); margin-top: 2px; }
.km-dev[aria-pressed="true"] { background: var(--km-lamp-soft); border-color: rgba(255,181,71,.55); }
.km-dev[aria-pressed="true"] .ic { background: var(--km-lamp); color: #3a2400; }
.km-fan-blades { transform-origin: 12px 12px; }
.km-dev[aria-pressed="true"] .km-fan-blades { animation: km-spin 1.1s linear infinite; }
@keyframes km-spin { to { transform: rotate(360deg); } }

.km-scenes { display: flex; gap: 10px; margin-top: 12px; }
.km-scene {
  flex: 1; padding: 13px 14px; border-radius: 14px; cursor: pointer; text-align: center;
  font-family: "Manrope", sans-serif; font-weight: 700; font-size: 14px;
  background: rgba(255,255,255,.1); border: 1px solid rgba(255,255,255,.16); color: #fff;
  transition: background .3s, transform .3s var(--km-ease), color .3s;
}
.km-scene:hover { background: #fff; color: var(--km-navy); transform: translateY(-2px); }
.km-hint { text-align: center; font-size: 13px; color: var(--km-text); margin: 14px 0 4px; }

/* ---------------------------------------------------------
   BRANDS TICKER
   --------------------------------------------------------- */
.km-brands { background: var(--km-ink); padding: 0 0 10px; overflow: hidden; }
.km-brands p { text-align: center; margin: 0 0 26px; font-size: 15px; color: var(--km-text); }
.km-track { display: flex; width: max-content; animation: km-marquee 38s linear infinite; }
.km-brands:hover .km-track { animation-play-state: paused; }
.km-track .km-logo {
  flex: none; display: grid; place-items: center; width: 190px; height: 76px; margin-right: 18px;
  background: #fff; border-radius: 18px; transition: transform .4s var(--km-ease), box-shadow .4s;
}
.km-track .km-logo:hover { transform: translateY(-4px); box-shadow: 0 16px 30px -12px rgba(16,83,243,.7); }
.km-track .km-logo img { width: 128px; height: auto; display: block; }
@keyframes km-marquee { to { transform: translateX(-50%); } }

/* ---------------------------------------------------------
   SERVICES - accordion
   --------------------------------------------------------- */
.km-services { background: linear-gradient(180deg, var(--km-ink), #07104a 60%, var(--km-ink)); }
.km-acc { display: flex; gap: 16px; height: 560px; }
.km-svc {
  position: relative; flex: 1 1 0; min-width: 0; border-radius: var(--km-radius); overflow: hidden;
  cursor: pointer; text-decoration: none; color: #fff; isolation: isolate;
  transition: flex-grow .8s var(--km-ease);
  border: 1px solid rgba(255,255,255,.1);
}
.km-svc.is-active { flex-grow: 2.3; }
.km-svc img { position: absolute; inset: 0; z-index: -2; width: 100%; height: 100%; object-fit: cover; transform: scale(1.12); transition: transform 1.4s var(--km-ease); }
.km-svc.is-active img { transform: scale(1); }
.km-svc::after { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(180deg, rgba(4,10,51,.05) 25%, rgba(4,10,51,.92) 100%); }
.km-svc-in { position: absolute; left: 0; right: 0; bottom: 0; padding: 26px 22px; }
.km-svc h3 { font-family: "Manrope", sans-serif; font-weight: 800; font-size: 21px; line-height: 1.15; color: #fff; margin: 0; transition: font-size .5s var(--km-ease); }
.km-svc.is-active h3 { font-size: 30px; }
.km-svc-link svg { width: 18px; height: 18px; flex: none; }
.km-svc-link { white-space: nowrap; }
.km-svc-more { display: grid; grid-template-rows: 0fr; transition: grid-template-rows .7s var(--km-ease), opacity .6s; opacity: 0; }
.km-svc.is-active .km-svc-more { grid-template-rows: 1fr; opacity: 1; }
.km-svc-more > div { overflow: hidden; }
.km-svc-more p { margin: 14px 0 16px; max-width: 46ch; font-size: 16px; color: #dfe6ff; white-space: normal; }
.km-chips { display: flex; flex-wrap: wrap; gap: 8px; margin: 0 0 18px; padding: 0; list-style: none; }
.km-chips li { color: #fff; margin: 0; padding: 7px 14px; border-radius: 999px; font-size: 13.5px; background: rgba(255,255,255,.14); border: 1px solid rgba(255,255,255,.2); }
.km-svc-link { display: inline-flex; align-items: center; gap: 10px; font-weight: 700; font-family: "Manrope", sans-serif; color: var(--km-lamp); }
.km-svc-ico { position: absolute; top: 22px; left: 22px; width: 52px; height: 52px; border-radius: 16px; display: grid; place-items: center; background: rgba(255,255,255,.14); border: 1px solid rgba(255,255,255,.22); -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px); color: #fff; }
.km-svc-ico svg { width: 26px; height: 26px; }

/* ---------------------------------------------------------
   PRODUCTS - snap rail
   --------------------------------------------------------- */
.km-products { overflow: hidden; }
.km-rail-ctl { display: flex; gap: 10px; }
.km-rail-btn { width: 54px; height: 54px; border-radius: 50%; border: 1px solid #c7d3f7; background: #fff; color: var(--km-navy); cursor: pointer; display: grid; place-items: center; transition: background .3s, color .3s, transform .3s var(--km-ease), border-color .3s; }
.km-rail-btn:hover { background: var(--km-blue); color: #fff; border-color: var(--km-blue); transform: scale(1.06); }
.km-rail-btn svg { width: 20px; height: 20px; }
.km-rail { display: flex; gap: 22px; overflow-x: auto; scroll-snap-type: x mandatory; padding: 8px max(24px, calc((100vw - 1240px) / 2)) 36px; scrollbar-width: none; cursor: grab; scroll-padding-inline: max(24px, calc((100vw - 1240px) / 2)); }
.km-rail::-webkit-scrollbar { display: none; }
.km-rail.is-drag { cursor: grabbing; scroll-snap-type: none; }
.km-prod {
  flex: none; width: 300px; scroll-snap-align: start; border-radius: var(--km-radius); background: #fff; overflow: hidden;
  border: 1px solid #dfe6fb; text-decoration: none; color: inherit; display: block;
  transition: transform .5s var(--km-ease), box-shadow .5s;
}
.km-prod:hover { transform: translateY(-8px); box-shadow: 0 30px 50px -24px rgba(6,17,83,.35); }
.km-prod-img { position: relative; aspect-ratio: 1; background: #fff; overflow: hidden; }
.km-prod-img img { width: 100%; height: 100%; object-fit: contain; transition: transform .8s var(--km-ease); -webkit-user-drag: none; user-select: none; }
.km-prod:hover .km-prod-img img { transform: scale(1.07); }
.km-tag { position: absolute; top: 14px; left: 14px; padding: 6px 12px; border-radius: 999px; font-size: 12.5px; font-weight: 700; font-family: "Manrope", sans-serif; background: var(--km-navy); color: #fff; }
.km-prod-body { padding: 18px 22px 22px; border-top: 1px solid #e8eefc; }
.km-prod-body h3 { font-family: "Manrope", sans-serif; font-size: 17px; line-height: 1.3; font-weight: 800; color: var(--km-navy); margin: 0 0 12px; min-height: 44px; }
.km-price { font-family: "Manrope", sans-serif; font-weight: 800; font-size: 19px; color: var(--km-blue); display: flex; justify-content: space-between; align-items: center; }
.km-price span { font-size: 13px; font-weight: 600; color: #6a76a3; }
.km-products-foot { display: flex; justify-content: center; margin-top: 8px; }

/* ---------------------------------------------------------
   SMART LIVING - phone + features
   --------------------------------------------------------- */
.km-living { background: var(--km-ink); overflow: hidden; }
.km-living::before { content: ""; position: absolute; left: -200px; top: 20%; width: 700px; height: 700px; border-radius: 50%; background: radial-gradient(circle, rgba(255,181,71,.16), transparent 65%); pointer-events: none; }
.km-living-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 80px; align-items: center; position: relative; }
.km-phone-wrap { display: grid; place-items: center; perspective: 1200px; }
.km-phone {
  position: relative; width: min(320px, 80vw); aspect-ratio: 9 / 18.6; border-radius: 46px; padding: 10px;
  background: linear-gradient(145deg, #2a3a9c, #0a1250); border: 1px solid rgba(255,255,255,.25);
  box-shadow: 0 50px 90px -30px rgba(16,83,243,.7), 0 0 0 6px rgba(255,255,255,.04);
  transform: rotateY(-14deg) rotateX(5deg); transition: transform .25s ease-out; transform-style: preserve-3d;
  animation: km-float 6s ease-in-out infinite alternate;
}
@keyframes km-float { to { translate: 0 -14px; } }
.km-phone-screen { height: 100%; border-radius: 37px; overflow: hidden; background: #050c3d; padding: 20px 14px 14px; display: flex; flex-direction: column; gap: 9px; color: #fff; }
.km-phone-screen::before { content: ""; width: 86px; height: 22px; border-radius: 99px; background: #000; margin: -6px auto 4px; flex: none; }
.km-app-h { display: flex; justify-content: space-between; align-items: baseline; font-family: "Manrope", sans-serif; }
.km-app-h b { font-size: 19px; }
.km-app-h span { font-size: 12px; color: var(--km-text); }
.km-cam { position: relative; border-radius: 18px; overflow: hidden; aspect-ratio: 16 / 9; flex: none; background: #0b1566 url("../images/service/hm8-img003.webp") center / cover; }
.km-cam::after { content: ""; position: absolute; inset: 0; background: linear-gradient(transparent 55%, rgba(4,10,51,.85)); }
.km-cam .km-rec { position: absolute; top: 10px; left: 10px; z-index: 2; background: rgba(4,10,51,.7); }
.km-cam small { position: absolute; z-index: 2; left: 12px; bottom: 9px; font-size: 12px; }
.km-cam .scan { position: absolute; z-index: 1; left: 0; right: 0; height: 2px; background: linear-gradient(90deg, transparent, var(--km-sky), transparent); animation: km-scan 3.4s linear infinite; }
@keyframes km-scan { from { top: 0; opacity: 0; } 10% { opacity: 1; } 90% { opacity: 1; } to { top: 100%; opacity: 0; } }
.km-tiles { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.km-tile { padding: 9px 11px; border-radius: 16px; background: rgba(255,255,255,.07); border: 1px solid rgba(255,255,255,.1); font-size: 13px; font-family: "Manrope", sans-serif; }
.km-tile b { display: block; font-size: 14px; }
.km-tile span { color: var(--km-text); font-size: 12px; }
.km-tile.on { background: var(--km-lamp-soft); border-color: rgba(255,181,71,.5); }
.km-tile.on span { color: #ffd9a0; }
.km-bar { height: 5px; border-radius: 9px; background: rgba(255,255,255,.14); margin-top: 8px; overflow: hidden; }
.km-bar i { display: block; height: 100%; width: 70%; border-radius: inherit; background: var(--km-lamp); animation: km-dim 4.5s ease-in-out infinite alternate; }
@keyframes km-dim { from { width: 25%; } to { width: 90%; } }

.km-feats { list-style: none; margin: 36px 0 0; padding: 0; }
.km-feat { display: flex; gap: 20px; padding: 24px 0; border-top: 1px solid var(--km-line); opacity: .55; transition: opacity .5s; }
.km-feat:last-child { border-bottom: 1px solid var(--km-line); }
.km-feat.is-on { opacity: 1; }
.km-feat .ic { flex: none; width: 52px; height: 52px; border-radius: 16px; display: grid; place-items: center; background: rgba(255,255,255,.07); color: var(--km-sky); transition: background .4s, color .4s; }
.km-feat.is-on .ic { background: var(--km-blue); color: #fff; }
.km-feat .ic svg { width: 26px; height: 26px; }
.km-feat h3 { font-family: "Manrope", sans-serif; font-size: 21px; font-weight: 800; color: #fff; margin: 2px 0 6px; }
.km-feat p { margin: 0; font-size: 16px; max-width: 46ch; }

.km-scn { display: flex; gap: 8px; }
.km-scn span { flex: 1; text-align: center; padding: 8px 6px; border-radius: 12px; font-size: 12.5px; font-family: "Manrope", sans-serif; font-weight: 700; background: rgba(255,255,255,.08); border: 1px solid rgba(255,255,255,.1); }
.km-scn span.on { background: var(--km-blue); border-color: var(--km-blue); }
.km-energy { margin-top: auto; padding: 10px 12px; border-radius: 16px; background: rgba(255,255,255,.07); border: 1px solid rgba(255,255,255,.1); }
.km-energy small { font-size: 12px; color: var(--km-text); font-family: "Manrope", sans-serif; }
.km-energy .bars { display: flex; align-items: flex-end; gap: 6px; height: 40px; margin-top: 6px; }
.km-energy .bars i { flex: 1; height: var(--h); border-radius: 5px 5px 2px 2px; background: linear-gradient(var(--km-sky), var(--km-blue)); transform-origin: bottom; animation: km-bars 3.6s ease-in-out infinite alternate; animation-delay: calc(var(--d, 0) * .25s); }
@keyframes km-bars { from { transform: scaleY(.55); } to { transform: scaleY(1); } }

/* ---------------------------------------------------------
   PROCESS
   --------------------------------------------------------- */
.km-process { background: linear-gradient(180deg, var(--km-ink), #08124f); }
.km-steps { position: relative; display: grid; grid-template-columns: repeat(4, 1fr); gap: 28px; margin-top: 20px; }
.km-steps::before, .km-steps::after { content: ""; position: absolute; z-index: 0; top: 27px; left: 27px; height: 2px; }
.km-steps::before { right: 27px; background: var(--km-line); }
.km-steps::after { width: calc(100% - 54px); background: linear-gradient(90deg, var(--km-blue), var(--km-lamp)); transform: scaleX(0); transform-origin: left; transition: transform 2.2s .2s var(--km-ease); }
.km-steps.is-in::after { transform: scaleX(1); }
.km-step { position: relative; z-index: 1; padding-top: 80px; }
.km-step .dot { position: absolute; top: 0; left: 0; width: 56px; height: 56px; border-radius: 50%; display: grid; place-items: center; font-family: "Manrope", sans-serif; font-weight: 800; color: #fff; background: var(--km-navy); border: 2px solid var(--km-blue); transition: background .5s, border-color .5s, color .5s; }
.km-steps.is-in .km-step .dot { background: var(--km-blue); }
.km-steps.is-in .km-step:nth-child(4) .dot { background: var(--km-lamp); border-color: var(--km-lamp); color: #3a2400; transition-delay: 1.6s; }
.km-steps.is-in .km-step:nth-child(2) .dot { transition-delay: .5s; }
.km-steps.is-in .km-step:nth-child(3) .dot { transition-delay: 1s; }
.km-step h3 { font-family: "Manrope", sans-serif; font-weight: 800; font-size: 22px; color: #fff; margin: 0 0 8px; }
.km-step p { margin: 0; font-size: 16px; max-width: 30ch; }

/* ---------------------------------------------------------
   WHY + FAQ
   --------------------------------------------------------- */
.km-why-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.km-why {
  position: relative; padding: 32px 28px; border-radius: var(--km-radius); background: #fff; border: 1px solid #dfe6fb; overflow: hidden;
  transition: transform .5s var(--km-ease), box-shadow .5s, border-color .5s;
}
.km-why::before { content: ""; position: absolute; inset: 0; background: radial-gradient(260px circle at var(--mx, 50%) var(--my, 0%), rgba(16,83,243,.12), transparent 70%); opacity: 0; transition: opacity .4s; }
.km-why:hover::before { opacity: 1; }
.km-why:hover { transform: translateY(-6px); border-color: #b9c9fb; box-shadow: 0 26px 40px -26px rgba(6,17,83,.4); }
.km-why .ic { position: relative; width: 54px; height: 54px; border-radius: 16px; display: grid; place-items: center; background: #e6edff; color: var(--km-blue); margin-bottom: 20px; }
.km-why .ic svg { width: 27px; height: 27px; }
.km-why h3 { position: relative; font-family: "Manrope", sans-serif; font-weight: 800; font-size: 20px; color: var(--km-navy); margin: 0 0 8px; }
.km-why p { position: relative; margin: 0; font-size: 16px; }

.km-faq-wrap { display: grid; grid-template-columns: minmax(0, .8fr) minmax(0, 1.2fr); gap: 80px; margin-top: 110px; align-items: start; }
.km-faq details { border-bottom: 1px solid #cfd9f7; }
.km-faq details:first-child { border-top: 1px solid #cfd9f7; }
.km-faq summary { display: flex; justify-content: space-between; align-items: center; gap: 20px; padding: 24px 0; cursor: pointer; list-style: none; font-family: "Manrope", sans-serif; font-weight: 800; font-size: 19px; color: var(--km-navy); }
.km-faq summary::-webkit-details-marker { display: none; }
.km-faq summary i { flex: none; width: 34px; height: 34px; border-radius: 50%; border: 1px solid #b9c9fb; position: relative; transition: background .35s, transform .5s var(--km-ease), border-color .35s; }
.km-faq summary i::before, .km-faq summary i::after { content: ""; position: absolute; left: 50%; top: 50%; width: 12px; height: 2px; background: var(--km-navy); transform: translate(-50%, -50%); transition: background .3s, transform .4s var(--km-ease); }
.km-faq summary i::after { transform: translate(-50%, -50%) rotate(90deg); }
.km-faq details[open] summary i { background: var(--km-blue); border-color: var(--km-blue); }
.km-faq details[open] summary i::before, .km-faq details[open] summary i::after { background: #fff; }
.km-faq details[open] summary i::after { transform: translate(-50%, -50%) rotate(0); }
.km-faq .ans { padding: 0 54px 26px 0; font-size: 16.5px; animation: km-open .5s var(--km-ease); }
@keyframes km-open { from { opacity: 0; transform: translateY(-8px); } }

/* ---------------------------------------------------------
   CTA
   --------------------------------------------------------- */
.km-cta { background: var(--km-ink); padding: 60px 0 130px; }
.km-cta-card {
  position: relative; overflow: hidden; border-radius: 36px; padding: 80px 64px; text-align: center; isolation: isolate;
  background: linear-gradient(135deg, #0d2bb3, var(--km-blue) 55%, #3a79ff);
}
.km-cta-card::before { content: ""; position: absolute; z-index: -1; inset: -50%; background: conic-gradient(from 0deg, transparent 0 70%, rgba(255,181,71,.35) 85%, transparent 100%); animation: km-rot 14s linear infinite; }
.km-cta-card::after { content: ""; position: absolute; z-index: -1; inset: 2px; border-radius: 34px; background: linear-gradient(135deg, #0a1fa0, #1053f3 60%, #2f68ff); }
@keyframes km-rot { to { transform: rotate(360deg); } }
.km-cta-card .km-title { max-width: 18ch; margin-inline: auto; }
.km-cta-card .km-lead { margin: 0 auto; color: #dbe5ff; }
.km-cta-card .km-hero-actions { justify-content: center; opacity: 1; transform: none; }
.km-btn-light { background: #fff; color: var(--km-navy); }
.km-btn-light:hover { background: var(--km-lamp); color: #2c1b00; transform: translateY(-2px); }

/* ---------------------------------------------------------
   Reveal (used sparingly) + reduced motion + responsive
   --------------------------------------------------------- */
.km-rv { opacity: 0; transform: translateY(26px); transition: opacity .9s var(--km-ease), transform .9s var(--km-ease); transition-delay: calc(var(--i, 0) * 90ms); }
.km-rv.is-in { opacity: 1; transform: none; }

@media (max-width: 1100px) {
  .km-hero-grid, .km-living-grid, .km-faq-wrap { grid-template-columns: 1fr; gap: 56px; }
  .km-why-grid { grid-template-columns: repeat(2, 1fr); }
  .km-steps { grid-template-columns: repeat(2, 1fr); row-gap: 48px; }
  .km-steps::before, .km-steps::after { display: none; }
  .km-faq-wrap { margin-top: 80px; }
}
@media (max-width: 860px) {
  .km-section { padding: 80px 0; }
  .km-hero { padding: 130px 0 80px; }
  .km-acc { flex-direction: column; height: auto; }
  .km-svc { flex: none; height: 134px; transition: height .8s var(--km-ease); }
  .km-svc-ico { top: 14px; left: 14px; width: 44px; height: 44px; border-radius: 14px; }
  .km-svc-ico svg { width: 22px; height: 22px; }
  .km-svc.is-active { height: 430px; }
  .km-svc h3, .km-svc.is-active h3 { font-size: 22px; white-space: normal; }
  .km-svc-in { padding: 20px; }
  .km-cta-card { padding: 56px 24px; border-radius: 28px; }
  .km-cta-card::after { border-radius: 26px; }
}
@media (max-width: 600px) {
  .km-why-grid, .km-steps { grid-template-columns: 1fr; }
  .km-devs { grid-template-columns: 1fr; }
  .km-prod { width: 258px; }
  .km-hero-proof { gap: 28px; }
  .km-hero-proof strong { font-size: 28px; }
  .km-rail-btn { width: 46px; height: 46px; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition-duration: .01ms !important; transition-delay: 0s !important; }
  .km-hero h1 .ln > span, .km-hero .km-lead, .km-hero-actions, .km-panel, .km-rv { opacity: 1; transform: none; }
  .km-track { animation: none; flex-wrap: wrap; width: auto; justify-content: center; gap: 12px; }
  .km-steps::after { transform: scaleX(1); }
}
