/* ============================================================
   KINEGIS - Apple-style front page
   Child theme of mac4electronics-homepage-v6
   Everything is scoped under .kinegis-home so no style
   leaks into Product / Enterprise / News / Investors / Contact.
   ============================================================ */

.kinegis-home{
  /* Brand accents - MAC4 logo blue family (hue ~216, from #022a6a).
     --olive/--sand keep their names for compatibility with existing
     rules; the roles are unchanged, only the hue. --olive is the
     readable blue for LIGHT backgrounds, --sand the light blue for
     DARK sections. */
  --sand:#7db4ec;
  --sand-hi:#a8cef7;
  --olive:#1256b8;
  --olive-deep:#0b3f8f;

  /* Apple neutral ladder */
  --black:#000;
  --near:#0a0a0a;
  --ink:#1d1d1f;
  --ink-2:#6e6e73;
  --paper:#fbfbfd;
  --paper-2:#f5f5f7;
  --hair:rgba(0,0,0,.10);
  --hair-d:rgba(255,255,255,.12);

  --display:-apple-system,BlinkMacSystemFont,"SF Pro Display","Segoe UI",Inter,system-ui,sans-serif;
  --shell:min(1080px,calc(100% - 44px));

  background:var(--paper);
  color:var(--ink);
  font-family:var(--display);
  -webkit-font-smoothing:antialiased;
  overflow-x:hidden;
}

/* the parent theme paints a dark gradient on body; neutralise on this page only */
body.kinegis-page{background:#fbfbfd !important;}

.kinegis-home *{box-sizing:border-box;}
.kinegis-home .shell{width:var(--shell);margin-inline:auto;}

/* ---------- type ---------- */
.kinegis-home h1,.kinegis-home h2,.kinegis-home h3{
  font-weight:700;line-height:1.05;letter-spacing:-.026em;margin:0;text-wrap:balance;
}
.k-h1{font-size:clamp(3.2rem,9vw,6.5rem);letter-spacing:-.04em;}
.k-h2{font-size:clamp(2.1rem,5.2vw,3.9rem);}
.k-h3{font-size:clamp(1.35rem,2.4vw,1.85rem);letter-spacing:-.02em;}
.k-lede{
  font-size:clamp(1.15rem,2.1vw,1.6rem);line-height:1.42;font-weight:400;
  letter-spacing:-.012em;color:var(--ink-2);margin:1.1rem 0 0;text-wrap:pretty;
}
.k-eyebrow{
  font-size:.78rem;font-weight:600;letter-spacing:.22em;text-transform:uppercase;
  color:var(--olive);margin:0 0 1.1rem;
}
.k-body{font-size:1.0625rem;line-height:1.55;color:var(--ink-2);margin:.9rem 0 0;max-width:62ch;}

/* ---------- sections ---------- */
.k-sec{padding:clamp(86px,13vh,168px) 0;position:relative;}
.k-sec--tight{padding:clamp(58px,8vh,104px) 0;}
.k-sec--dark{background:var(--black);color:#f5f5f7;}
.k-sec--dark .k-lede,.k-sec--dark .k-body{color:#a1a1a6;}
.k-sec--dark .k-eyebrow{color:var(--sand);}
.k-sec--paper2{background:var(--paper-2);}
.k-center{text-align:center;}
.k-center .k-body{margin-inline:auto;}

/* ---------- buttons ---------- */
.k-cta{display:flex;flex-wrap:wrap;gap:14px;margin-top:2rem;}
.k-center .k-cta{justify-content:center;}
.k-btn{
  display:inline-flex;align-items:center;gap:.5em;
  padding:13px 26px;border-radius:980px;border:1px solid transparent;
  font-size:1.0625rem;font-weight:500;letter-spacing:-.01em;line-height:1;
  cursor:pointer;text-decoration:none;
  transition:background .22s ease,color .22s ease,border-color .22s ease,transform .22s ease;
}
.k-btn--fill{background:var(--olive);color:#fff;}
.k-btn--fill:hover{background:var(--olive-deep);color:#fff;}
.k-btn--out{background:transparent;color:var(--olive);border-color:rgba(18,86,184,.45);}
.k-btn--out:hover{background:rgba(18,86,184,.08);color:var(--olive-deep);}
.k-sec--dark .k-btn--fill,.k-hero .k-btn--fill{background:var(--sand);color:#0a1420;}
.k-sec--dark .k-btn--fill:hover,.k-hero .k-btn--fill:hover{background:var(--sand-hi);color:#0a1420;}
.k-sec--dark .k-btn--out,.k-hero .k-btn--out{color:var(--sand);border-color:rgba(125,180,236,.5);}
.k-sec--dark .k-btn--out:hover,.k-hero .k-btn--out:hover{background:rgba(125,180,236,.12);color:var(--sand-hi);}
.k-btn:focus-visible{outline:3px solid var(--olive);outline-offset:3px;}

.k-link{
  display:inline-flex;align-items:center;gap:.28em;color:var(--olive);
  font-size:1.0625rem;font-weight:400;letter-spacing:-.01em;text-decoration:none;
}
.k-link::after{content:"\203A";font-size:1.24em;line-height:0;transition:transform .22s ease;}
.k-link:hover::after{transform:translateX(3px);}
.k-sec--dark .k-link{color:var(--sand);}

/* ---------- hero ---------- */
.k-hero{
  position:relative;min-height:min(94svh,880px);
  display:flex;align-items:flex-end;
  background:var(--black);color:#f5f5f7;overflow:hidden;isolation:isolate;
}
.k-hero__media{position:absolute;inset:0;z-index:-2;}
.k-hero__media img{width:100%;height:100%;object-fit:cover;object-position:center 38%;}
.k-hero::before{
  content:"";position:absolute;inset:0;z-index:-1;
  background:linear-gradient(180deg,rgba(0,0,0,.62) 0%,rgba(0,0,0,.12) 34%,rgba(0,0,0,.55) 72%,rgba(0,0,0,.92) 100%);
}
.k-hero__inner{width:var(--shell);margin-inline:auto;padding:0 0 clamp(64px,9vh,116px);}
.k-hero .k-h1{color:#fff;text-shadow:0 2px 40px rgba(0,0,0,.4);}
.k-hero__sub{
  font-size:clamp(1.05rem,2vw,1.5rem);font-weight:500;letter-spacing:-.01em;
  color:#e4ecf6;margin:.6rem 0 0;
}
.k-hero .k-lede{color:#c9c9ce;max-width:44ch;}

/* patent-pending badge */
.k-badge{
  display:inline-flex;align-items:center;gap:.55em;
  padding:7px 15px 7px 12px;border-radius:980px;
  background:rgba(255,255,255,.10);border:1px solid rgba(255,255,255,.20);
  backdrop-filter:blur(14px);-webkit-backdrop-filter:blur(14px);
  font-size:.8rem;font-weight:600;letter-spacing:.06em;color:#e9f0f8;margin-bottom:1.4rem;
}
.k-badge__dot{width:7px;height:7px;border-radius:50%;background:var(--sand);box-shadow:0 0 0 4px rgba(125,180,236,.22);}

/* ---------- pillars ---------- */
.k-pillars{display:grid;grid-template-columns:repeat(4,1fr);gap:20px;margin-top:3.4rem;}
.k-pillar{
  background:rgba(255,255,255,.045);border:1px solid var(--hair-d);
  border-radius:20px;padding:30px 26px 32px;
  transition:background .3s ease,transform .3s ease,border-color .3s ease;
}
.k-pillar:hover{background:rgba(125,180,236,.09);border-color:rgba(125,180,236,.34);transform:translateY(-4px);}
.k-pillar__n{font-size:.72rem;font-weight:600;letter-spacing:.2em;color:var(--sand);}
.k-pillar h3{font-size:1.32rem;margin:.85rem 0 .5rem;letter-spacing:-.018em;}
.k-pillar p{font-size:.95rem;line-height:1.5;color:#a1a1a6;margin:0;}

/* ---------- alternating feature rows ---------- */
.k-feature{display:grid;grid-template-columns:1fr 1fr;gap:clamp(36px,6vw,84px);align-items:center;}
.k-feature--flip .k-feature__text{order:2;}
.k-feature__media{border-radius:22px;overflow:hidden;background:#0b0b0b;box-shadow:0 24px 70px rgba(0,0,0,.16);}
.k-sec--dark .k-feature__media{box-shadow:0 24px 80px rgba(0,0,0,.6);border:1px solid var(--hair-d);}
.k-feature__media img{width:100%;height:auto;display:block;}

/* full-bleed showpiece */
.k-show{text-align:center;}
.k-show__media{margin-top:clamp(38px,6vh,70px);border-radius:26px;overflow:hidden;}
.k-show__media img{width:100%;height:auto;display:block;}

/* ---------- spec strip ---------- */
.k-specs{display:grid;grid-template-columns:repeat(4,1fr);gap:2px;background:var(--hair);
  border-radius:20px;overflow:hidden;margin-top:3rem;}
.k-spec{background:var(--paper);padding:30px 24px;text-align:center;}
.k-sec--dark .k-specs{background:var(--hair-d);}
.k-sec--dark .k-spec{background:var(--near);}
.k-spec__v{font-size:clamp(1.7rem,3.4vw,2.5rem);font-weight:700;letter-spacing:-.03em;color:var(--olive);line-height:1;}
.k-sec--dark .k-spec__v{color:var(--sand);}
.k-spec__l{font-size:.82rem;color:var(--ink-2);margin-top:.6rem;letter-spacing:.01em;}
.k-sec--dark .k-spec__l{color:#86868b;}

/* ---------- funding meter ---------- */
.k-fund{max-width:660px;margin:3rem auto 0;}
.k-fund__row{display:flex;justify-content:space-between;align-items:baseline;font-size:.9rem;color:var(--ink-2);margin-bottom:.7rem;}
.k-sec--dark .k-fund__row{color:#a1a1a6;}
.k-fund__raised{font-size:1.5rem;font-weight:700;color:var(--ink);letter-spacing:-.02em;}
.k-sec--dark .k-fund__raised{color:#f5f5f7;}
.k-fund__track{height:10px;border-radius:980px;background:rgba(0,0,0,.09);overflow:hidden;}
.k-sec--dark .k-fund__track{background:rgba(255,255,255,.13);}
.k-fund__bar{height:100%;border-radius:980px;background:linear-gradient(90deg,var(--olive),var(--sand));
  width:0;transition:width 1.5s cubic-bezier(.22,.61,.36,1);}
.k-fund__note{font-size:.8rem;color:var(--ink-2);margin-top:1rem;line-height:1.5;}
.k-sec--dark .k-fund__note{color:#86868b;}

/* ---------- legal footnote ---------- */
.k-legal{
  border-top:1px solid var(--hair);padding:34px 0 44px;
  font-size:.78rem;line-height:1.62;color:#86868b;background:var(--paper-2);
}
.k-legal p{margin:0 auto;max-width:82ch;}
.k-legal p + p{margin-top:.7rem;}

/* ---------- scroll reveal ----------
   Progressive enhancement: content is visible by default. The hidden
   start state applies only once the script has confirmed it can drive
   the reveal (.k-js). If JS fails, is blocked, or the observer never
   fires, the page still reads normally instead of going blank. */
.kinegis-home.k-js .k-rise{
  opacity:0;transform:translateY(26px);
  transition:opacity .8s cubic-bezier(.22,.61,.36,1),transform .8s cubic-bezier(.22,.61,.36,1);
}
.kinegis-home.k-js .k-rise.is-in{opacity:1;transform:none;}
.k-rise[data-d="1"]{transition-delay:.09s}
.k-rise[data-d="2"]{transition-delay:.18s}
.k-rise[data-d="3"]{transition-delay:.27s}

@media (prefers-reduced-motion:reduce){
  .kinegis-home *{animation:none !important;transition:none !important;}
  .k-rise{opacity:1;transform:none;}
}

/* ---------- responsive ---------- */
@media (max-width:900px){
  .k-pillars{grid-template-columns:repeat(2,1fr);}
  .k-specs{grid-template-columns:repeat(2,1fr);}
  .k-feature{grid-template-columns:1fr;gap:32px;}
  .k-feature--flip .k-feature__text{order:0;}
}
@media (max-width:560px){
  .kinegis-home{--shell:calc(100% - 32px);}
  .k-pillars{grid-template-columns:1fr;}
  .k-hero{min-height:82svh;}
  .k-btn{width:100%;justify-content:center;}
  .k-cta{gap:10px;}
}
