/* ============================================================
   KELPARO — home page (premium layer)
   ============================================================ */

/* ---------- hero ---------- */
.v3-hero { padding: 132px 0 0; display: block; overflow: visible; text-align: center; }
.v3-glow { position: absolute; inset: -10% 0 auto; height: 900px; pointer-events: none; z-index: 0;
  background:
    radial-gradient(40% 46% at 30% 22%, rgba(47, 91, 255, 0.10), transparent 70%),
    radial-gradient(36% 40% at 72% 30%, rgba(255, 196, 140, 0.16), transparent 70%),
    radial-gradient(50% 50% at 50% 60%, rgba(142, 164, 255, 0.10), transparent 70%);
  animation: glowDrift 22s ease-in-out infinite alternate; }
@keyframes glowDrift { from { transform: translate3d(-2%, 0, 0) scale(1); } to { transform: translate3d(2%, 3%, 0) scale(1.06); } }
.v3-hero__in { position: relative; z-index: 2; display: flex; flex-direction: column; align-items: center; }
.v3-hero .h-display { max-width: 15ch; margin: 22px auto 22px; }
.v3-hero .lead { margin: 0 auto; max-width: 62ch; }
.v3-announce { display: inline-flex; align-items: center; gap: 10px; padding: 5px 14px 5px 5px; border-radius: 999px;
  background: #fff; border: 1px solid var(--line); box-shadow: var(--shadow-soft); font-size: 13.5px; font-weight: 500; color: var(--ink-2); transition: border-color .2s; }
.v3-announce:hover { border-color: var(--line-2); color: var(--ink); }
.v3-announce span { background: var(--ink); color: #fff; border-radius: 999px; padding: 3px 9px; font-size: 12px; }
.v3-announce b { font-weight: 500; color: var(--ink-3); }
.v3-cta { display: flex; gap: 10px; justify-content: center; flex-wrap: wrap; margin-top: 30px; }
.v3-trust { display: flex; gap: 8px 22px; justify-content: center; flex-wrap: wrap; margin-top: 22px; font-size: 13.5px; color: var(--ink-3); }
.v3-trust span::before { content: '✓'; color: var(--ok); margin-right: 7px; font-size: 12px; }
.v3-hero__win { position: relative; z-index: 2; margin-top: 64px; text-align: left; perspective: 1600px; }
.v3-hero__win .win { box-shadow: 0 1px 2px rgba(17,17,16,.05), 0 60px 120px -50px rgba(17,17,16,.35), 0 0 0 8px rgba(17,17,16,.025); }
.v3-hero__win .win__body { height: clamp(420px, 40vw, 540px); }
.v3-hero::after { content: ''; position: absolute; left: 0; right: 0; bottom: 0; height: 140px; background: linear-gradient(transparent, var(--paper)); z-index: 3; pointer-events: none; }

/* ---------- logos ---------- */
.v3-logos { padding: 44px 0 16px; position: relative; z-index: 4; }
.v3-logos__t { text-align: center; font-size: 13.5px; color: var(--ink-3); margin-bottom: 22px; }
.v3-logos__row { display: flex; flex-wrap: wrap; justify-content: center; gap: 14px 40px; }
.v3-logos__row span { font-size: clamp(17px, 1.6vw, 21px); font-weight: 600; letter-spacing: -0.03em; color: #a9a59c; transition: color .25s; }
.v3-logos__row span:hover { color: var(--ink); }

/* ---------- facts ---------- */
.v3-facts { padding: 56px 0 0; }
.v3-facts__row { display: grid; grid-template-columns: repeat(4, 1fr); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.v3-facts__row > div { padding: 28px 24px; border-left: 1px solid var(--line); }
.v3-facts__row > div:first-child { border-left: 0; padding-left: 0; }
.v3-facts__row b { display: block; font-size: clamp(36px, 4vw, 52px); font-weight: 500; letter-spacing: -0.05em; line-height: 1; font-variant-numeric: tabular-nums; }
.v3-facts__row span { display: block; margin-top: 10px; font-size: 14px; color: var(--ink-2); max-width: 22ch; }
@media (max-width: 860px) { .v3-facts__row { grid-template-columns: 1fr 1fr; } .v3-facts__row > div:nth-child(3) { border-left: 0; padding-left: 0; } .v3-facts__row > div:nth-child(n+3) { border-top: 1px solid var(--line); } }

.v3-intro { padding: clamp(110px, 12vw, 170px) 0 0; }
.v3-intro .h2 { max-width: 18ch; margin: 14px 0 18px; }

/* systems grid on home: lighter, inside a warm sunk band */
.v3-systems { background: var(--paper-2); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); margin-top: clamp(100px, 10vw, 150px); }

/* ---------- technology: dark band with a curved horizon ---------- */
.v3-tech { position: relative; background: #0c0c0b; color: #fff; padding: clamp(150px, 15vw, 220px) 0 clamp(100px, 10vw, 150px); overflow: hidden; }
.v3-tech__arc { position: absolute; left: 50%; top: 0; width: 180%; height: 600px; transform: translate(-50%, -64%); border-radius: 50%;
  background: var(--paper); box-shadow: 0 30px 80px 10px rgba(110, 140, 255, .35), 0 6px 24px rgba(160, 180, 255, .5); }
.v3-tech__head { max-width: 760px; margin-bottom: 56px; }
.v3-tech__head .h2 { margin: 14px 0 18px; }
.v3-tech .grad-text, .v3-tech .grad-text .word > span { color: #77746d !important; }
.v3-stack { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1px; background: rgba(255,255,255,.08); border: 1px solid rgba(255,255,255,.08); border-radius: 20px; overflow: hidden; }
.v3-stack__g { background: #0c0c0b; padding: 24px 22px 26px; }
.v3-stack__g h4 { font-size: 13px; font-weight: 500; color: #9fb2ff; margin-bottom: 14px; letter-spacing: -0.005em; }
.v3-stack__g p { display: flex; flex-wrap: wrap; gap: 7px; }
.v3-stack__g span { font-size: 13.5px; color: #e9e7e2; padding: 6px 11px; border-radius: 8px; background: rgba(255,255,255,.05); border: 1px solid rgba(255,255,255,.07); transition: background .25s, border-color .25s; }
.v3-stack__g span:hover { background: rgba(255,255,255,.1); border-color: rgba(255,255,255,.18); }
@media (max-width: 1000px) { .v3-stack { grid-template-columns: 1fr 1fr; } }
@media (max-width: 560px) { .v3-stack { grid-template-columns: 1fr; } }

/* ---------- guardrails ---------- */
.v3-guard__grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 0; border-top: 1px solid var(--line); }
.v3-guard__grid > div { padding: 26px 24px 8px 0; }
.v3-guard__grid > div + div { padding-left: 24px; border-left: 1px solid var(--line); }
.v3-guard__grid b { display: block; font-size: 17px; font-weight: 500; letter-spacing: -0.02em; margin-bottom: 10px; }
.v3-guard__grid p { font-size: 15px; color: var(--ink-2); }
@media (max-width: 900px) { .v3-guard__grid { grid-template-columns: 1fr 1fr; } .v3-guard__grid > div:nth-child(3) { border-left: 0; padding-left: 0; } }
@media (max-width: 560px) { .v3-guard__grid { grid-template-columns: 1fr; } .v3-guard__grid > div + div { border-left: 0; padding-left: 0; border-top: 1px solid var(--line); } }

/* ---------- founder ---------- */
.v3-founder { padding-top: 40px; }
.v3-founder figure { max-width: 900px; margin: 0 auto; text-align: center; }
.v3-founder blockquote { font-size: clamp(28px, 3.6vw, 46px); line-height: 1.18; color: var(--ink); text-wrap: balance; }
.v3-founder figcaption { display: inline-flex; align-items: center; gap: 14px; margin-top: 30px; text-align: left; font-size: 14px; color: var(--ink-3); }
.v3-founder figcaption b { display: block; color: var(--ink); font-weight: 500; font-size: 15px; }
.v3-founder__mark { width: 46px; height: 46px; border-radius: 50%; background: var(--ink); color: #fff; display: grid; place-items: center; font-weight: 600; font-size: 14px; }

/* ---------- close ---------- */
.v3-close { position: relative; text-align: center; padding: clamp(120px, 12vw, 180px) 0 clamp(120px, 12vw, 170px); overflow: hidden; background: var(--paper-2); border-top: 1px solid var(--line); }
.v3-close__arc { position: absolute; left: 50%; bottom: -520px; width: 1500px; height: 700px; transform: translateX(-50%); border-radius: 50%;
  background: radial-gradient(closest-side, rgba(47,91,255,.10), transparent); }
.v3-close .h-display { max-width: 12ch; margin: 0 auto 20px; position: relative; }
.v3-close .lead { margin: 0 auto; position: relative; }
.v3-close .v3-cta { position: relative; }

@media (max-width: 900px) {
  .v3-hero { padding-top: 110px; }
  .v3-hero__win .win__body { height: 430px; }
  .v3-hero__win .win__body .tbl th:nth-child(n+3), .v3-hero__win .tbl td:nth-child(n+3) { display: none; }
}

/* ---------- live 3D hero ---------- */
.v3-hero__3d { position: absolute; left: 0; top: 0; width: 100%; height: clamp(640px, 90vh, 860px); z-index: 1; pointer-events: none; opacity: 0; }
.v3-hero__in { min-height: clamp(470px, 62vh, 600px); justify-content: center; }
.v3-hero.has-3d .v3-glow { opacity: .7; }
@media (max-width: 760px) {
  .v3-hero__3d { height: 760px; }
  .v3-hero__in { min-height: 0; padding-top: 150px; padding-bottom: 110px; }
}

/* ---------- systems: 3D icons + filter tabs ---------- */
.sys-tabs { display: flex; flex-wrap: wrap; gap: 6px; margin: -18px 0 30px; }
.sys-tabs button { border: 1px solid var(--line-2); background: #fff; color: var(--ink-2); font: 500 14px var(--font-body); padding: 9px 15px; border-radius: 999px; transition: all .2s; }
.sys-tabs button:hover { color: var(--ink); border-color: var(--ink-4); }
.sys-tabs button.on { background: var(--ink); color: #fff; border-color: var(--ink); }
.v3-systems .sys-card { position: relative; transition: opacity .35s var(--ease-out), transform .45s var(--ease-out), filter .35s; }
.v3-systems .sys-card.is-dim { opacity: .18; filter: grayscale(1); transform: scale(.98); pointer-events: none; }
.sys-ico { position: absolute; top: 14px; right: 16px; width: 72px; height: 72px; filter: drop-shadow(0 12px 14px rgba(17,17,16,.16)); transition: transform .5s var(--ease-out); pointer-events: none; }
.sys-card:hover .sys-ico { transform: translateY(-6px) rotate(-8deg) scale(1.08); }
.v3-systems .sys-card .h3 { padding-right: 70px; }

/* ---------- technology: a slowly turning 3D ring of names ---------- */
.ring3d { position: relative; height: 380px; perspective: 1400px; margin: 10px 0 60px; display: grid; place-items: center; }
.ring3d__core img { width: 150px; height: 150px; filter: drop-shadow(0 30px 40px rgba(110,140,255,.35)); animation: megaFloat 6s ease-in-out infinite; position: relative; z-index: 2; }
.ring3d__r { position: absolute; left: 50%; top: 50%; width: 0; height: 0; transform-style: preserve-3d; }
.ring3d__r1 { transform: rotateX(-14deg); animation: ringSpin 70s linear infinite; }
.ring3d__r2 { transform: translateY(90px) rotateX(-14deg); animation: ringSpin 90s linear infinite reverse; }
.ring3d__r1 { top: calc(50% - 70px); }
.ring3d__r span { position: absolute; left: 0; top: 0; transform: translate(-50%, -50%) rotateY(calc(var(--i) * 360deg / var(--n))) translateZ(min(520px, 40vw));
  font-size: 14px; color: #e9e7e2; padding: 7px 12px; border-radius: 9px; background: rgba(255,255,255,.06); border: 1px solid rgba(255,255,255,.1); white-space: nowrap; backface-visibility: hidden; }
@keyframes ringSpin { from { transform: rotateX(-14deg) rotateY(0); } to { transform: rotateX(-14deg) rotateY(360deg); } }
.ring3d__r2 { animation-name: ringSpin2; }
@keyframes ringSpin2 { from { transform: translateY(90px) rotateX(-14deg) rotateY(0); } to { transform: translateY(90px) rotateX(-14deg) rotateY(-360deg); } }
@media (max-width: 760px) { .ring3d { height: 280px; } .ring3d__r span { font-size: 12px; } .ring3d__core img { width: 110px; height: 110px; } }
@media (prefers-reduced-motion: reduce) { .ring3d__r { animation: none; } }

/* ---------- technology orbit (script-driven; replaces the CSS cylinder) ---------- */
.ring3d { height: 520px; margin: 0 0 56px; perspective: none; overflow: hidden; position: relative;
  -webkit-mask-image: linear-gradient(90deg, transparent 0, #000 14%, #000 86%, transparent 100%);
          mask-image: linear-gradient(90deg, transparent 0, #000 14%, #000 86%, transparent 100%); }
.ring3d__r, .ring3d__r1, .ring3d__r2 { position: absolute; inset: 0; width: auto; height: auto; transform: none !important; animation: none !important; top: 0; left: 0; }
.ring3d__r span { left: 50%; top: 50%; transform: translate3d(-50%, -50%, 0); will-change: transform, opacity, filter; backface-visibility: visible;
  transition: none; font-size: 15px; padding: 8px 14px; }
.ring3d__core { position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%); z-index: 50; }
.ring3d__core::after { content: ''; position: absolute; left: 50%; top: 58%; width: 260px; height: 90px; transform: translate(-50%, 0); border-radius: 50%;
  background: radial-gradient(closest-side, rgba(110,140,255,.28), transparent); z-index: -1; }
.v3-stack { margin-top: 0; }
@media (max-width: 760px) { .ring3d { height: 340px; } .ring3d__r span { font-size: 12.5px; padding: 6px 10px; } }
html { overflow-x: clip; } .v3-hero__win { overflow-x: clip; overflow-y: visible; padding-inline: 10px; }
/* the orbit shows marks only (names live in the list below), so 78 never collide */
.ring3d__r span.has-lg { font-size: 0; padding: 0; background: none; border: 0; box-shadow: none; }
.ring3d__r span.has-lg .lg { font-size: 30px; margin: 0; border-radius: 14px; box-shadow: 0 0 0 1px rgba(255,255,255,.08), 0 14px 30px -10px rgba(0,0,0,.6); }
.ring3d__r span.has-lg .lg--m b { font-size: 11px; }
@media (max-width: 760px) { .ring3d__r span.has-lg .lg { font-size: 22px; border-radius: 10px; } .ring3d__r span.has-lg .lg--m b { font-size: 8.5px; } }
