/* Kinora: shared brand layer (nav, mega menu, drawer, command palette, footer, letterbox, buttons). */
:root {
  --black: #0B0B0C; --black-2: #131315; --black-3: #1A1A1D; --bone: #F1F0EC; --bone-2: #E8E7E2; --white: #FFFFFF;
  --line: #DAD8D2; --line-k: #26262A; --muted: #6D6B66; --muted-k: #9C9A94; --red: #E5162F; --red-d: #C70F26; --grey: #D6D5D0;
  --ease: cubic-bezier(.22, 1, .36, 1); --ease-cut: cubic-bezier(.7, 0, .3, 1);
  --g: clamp(16px, 4vw, 56px); --max: 1400px; --nav-h: 60px;
  --f-d: "Clash Grotesk", "Satoshi", ui-sans-serif, sans-serif; --f-t: "Satoshi", ui-sans-serif, -apple-system, sans-serif;
}
html { background: var(--black); scroll-padding-top: 72px; }
html, body { overflow-x: clip; }
body { font-family: var(--f-t); font-size: 16px; line-height: 1.55; color: var(--black); background: var(--bone); -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility; }
h1, h2, h3, h4 { font-family: var(--f-d); font-weight: 500; margin: 0; letter-spacing: -0.02em; line-height: 1; }
p { margin: 0; }
ul { margin: 0; padding: 0; list-style: none; }
a { text-decoration: none; }
em, i { font-style: normal; }
img, video { max-width: 100%; }
input, select, textarea { font: inherit; color: inherit; }
kbd { font-family: var(--f-t); }
:focus-visible { outline: 2px solid var(--red); outline-offset: 3px; border-radius: 6px; }
.on-dark :focus-visible, .kn-head :focus-visible, .kn-foot :focus-visible, .kn-pal :focus-visible, .kn-drawer :focus-visible { outline-color: #fff; }
.vh { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.wrap { width: 100%; max-width: var(--max); margin: 0 auto; padding: 0 var(--g); }
.skip { position: fixed; left: 12px; top: 10px; z-index: 200; padding: 10px 16px; background: #fff; color: var(--black); border-radius: 999px; font-weight: 700; transform: translateY(-160%); transition: transform .3s var(--ease); }
.skip:focus { transform: none; }

/* Buttons */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 10px; height: 46px; padding: 0 22px; border-radius: 999px; border: 1px solid transparent; font: 500 15px/1 var(--f-t); white-space: nowrap; cursor: pointer; transition: background-color .3s var(--ease), color .3s var(--ease), border-color .3s var(--ease); }
.btn svg { width: 16px; height: 16px; flex: none; }
.btn-red { background: var(--red); color: #fff; }
.btn-red:hover { background: var(--red-d); }
.btn-white { background: #fff; color: var(--black); }
.btn-white:hover { background: var(--bone); }
.btn-black { background: var(--black); color: #fff; }
.btn-black:hover { background: #26262A; }
.btn-line { background: transparent; color: var(--black); border-color: #C9C7C0; }
.btn-line:hover { border-color: var(--black); }
.btn-line-k { background: transparent; color: #fff; border-color: #3A3A40; }
.btn-line-k:hover { border-color: #fff; }
.tlink { display: inline-flex; align-items: center; gap: 8px; font-weight: 500; color: inherit; }
.tlink svg { width: 16px; height: 16px; transition: transform .45s var(--ease); }
.tlink:hover svg { transform: translateX(4px); }

/* Section heads */
.eyebrow { display: inline-flex; align-items: center; gap: 9px; font: 500 14px/1 var(--f-t); color: var(--muted); }
.eyebrow::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: var(--red); }
.on-dark .eyebrow { color: var(--muted-k); }
.h2 { font-size: clamp(36px, 4.4vw, 64px); line-height: .98; letter-spacing: -0.028em; }
.lede { font-size: 18px; line-height: 1.5; color: var(--muted); max-width: 520px; }
.on-dark .lede { color: var(--muted-k); }

/* Letterbox: frames enter through two bars that open */
.kit-js:not(.is-static) [data-lb] { clip-path: inset(36% 0 36% 0 round 18px); transition: clip-path 1.25s var(--ease-cut); }
.kit-js:not(.is-static) [data-lb].lb-in { clip-path: inset(0 0 0 0 round 18px); }
.kit-js:not(.is-static) [data-lb] > :is(img, video) { transform: scale(1.08); transition: transform 1.8s var(--ease); }
.kit-js:not(.is-static) [data-lb].lb-in > :is(img, video) { transform: none; }

/* ---------- Nav ---------- */
.kn-head { position: fixed; inset: 0 0 auto; z-index: 90; color: #fff; }
.kn-nav { height: var(--nav-h); display: flex; align-items: center; gap: 28px; padding: 0 var(--g); background: rgba(11, 11, 12, .9); border-bottom: 1px solid transparent; transition: border-color .4s var(--ease), background-color .4s var(--ease); }
.kn-head.is-scrolled .kn-nav, .kn-head.is-open .kn-nav { border-bottom-color: var(--line-k); background: rgba(11, 11, 12, .94); -webkit-backdrop-filter: blur(14px); backdrop-filter: blur(14px); }
.kn-logo { display: inline-flex; align-items: center; gap: 10px; color: #fff; flex: none; }
.kn-mark { width: 34px; height: 16px; }
.kn-word { font: 600 21px/1 var(--f-d); letter-spacing: -0.02em; }
.kn-menu { display: flex; align-items: center; gap: 2px; }
.kn-trig, .kn-link { display: inline-flex; align-items: center; gap: 6px; height: 36px; padding: 0 12px; border-radius: 999px; background: none; border: 0; color: rgba(255, 255, 255, .78); font: 500 15px/1 var(--f-t); transition: color .25s, background-color .25s; }
.kn-trig svg { width: 12px; height: 12px; transition: transform .35s var(--ease); }
.kn-trig:hover, .kn-link:hover, .kn-trig[aria-expanded="true"], .kn-link[aria-current="page"] { color: #fff; background: rgba(255, 255, 255, .08); }
.kn-trig[aria-expanded="true"] svg { transform: rotate(180deg); }
.kn-right { margin-left: auto; display: flex; align-items: center; gap: 10px; }
.kn-search { display: inline-flex; align-items: center; gap: 10px; height: 38px; width: 268px; padding: 0 8px 0 14px; border-radius: 999px; border: 1px solid var(--line-k); background: var(--black-2); color: rgba(255, 255, 255, .6); font: 400 14px/1 var(--f-t); text-align: left; transition: border-color .25s, color .25s; }
.kn-search:hover { border-color: #45454B; color: #fff; }
.kn-search svg { width: 17px; height: 17px; flex: none; }
.kn-search-t { flex: 1; }
.kn-kbd { display: inline-flex; align-items: center; height: 22px; padding: 0 7px; border-radius: 6px; border: 1px solid #34343A; color: rgba(255, 255, 255, .62); font: 500 11.5px/1 var(--f-t); letter-spacing: .02em; }
.kn-login { height: 38px; padding: 0 12px; border: 0; background: none; color: rgba(255, 255, 255, .82); font: 500 15px/1 var(--f-t); border-radius: 999px; }
.kn-login:hover { color: #fff; }
.kn-cta { display: inline-flex; align-items: center; height: 38px; padding: 0 18px; border-radius: 999px; background: #fff; color: var(--black); font: 500 15px/1 var(--f-t); }
.kn-burger { display: none; width: 40px; height: 40px; border-radius: 999px; border: 1px solid var(--line-k); background: none; position: relative; }
.kn-burger span { position: absolute; left: 12px; right: 12px; height: 1.6px; background: #fff; transition: transform .4s var(--ease); }
.kn-burger span:first-child { top: 16px; }
.kn-burger span:last-child { top: 22px; }
.kn-burger[aria-expanded="true"] span:first-child { transform: translateY(3px) rotate(45deg); }
.kn-burger[aria-expanded="true"] span:last-child { transform: translateY(-3px) rotate(-45deg); }

/* Mega panel */
.kn-mega { position: absolute; left: 0; right: 0; top: var(--nav-h); background: var(--black); border-bottom: 1px solid var(--line-k); clip-path: inset(0 0 100% 0); transition: clip-path .55s var(--ease-cut); }
.kn-mega.is-open { clip-path: inset(0 0 0 0); }
.kn-mega-in { display: grid; grid-template-columns: minmax(0, 1fr) 300px 210px; gap: 48px; padding-top: 36px; padding-bottom: 40px; opacity: 0; transform: translateY(-8px); transition: opacity .4s var(--ease) .1s, transform .5s var(--ease) .1s; }
.kn-mega.is-open .kn-mega-in { opacity: 1; transform: none; }
.kn-cols { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 24px; }
.kn-cols[hidden] { display: none; }
.kn-col-h { font: 500 13px/1 var(--f-t); color: var(--muted-k); margin-bottom: 16px; }
.kn-col li + li { margin-top: 2px; }
.kn-col a { display: block; padding: 6px 0; color: rgba(255, 255, 255, .9); font-size: 15px; transition: color .2s; }
.kn-col a:hover { color: var(--red); }
.kn-trend { border-left: 1px solid var(--line-k); padding-left: 32px; }
.kn-trend a { display: flex; align-items: center; gap: 12px; padding: 7px; margin: 0 -7px; border-radius: 12px; transition: background-color .2s; }
.kn-trend a:hover { background: var(--black-3); }
.kn-trend img { width: 44px; height: 44px; border-radius: 9px; object-fit: cover; flex: none; }
.kn-trend span:not(.kn-new) { display: flex; flex-direction: column; gap: 3px; flex: 1; }
.kn-trend b { font-weight: 500; font-size: 15px; }
.kn-trend small { font-size: 13px; color: var(--muted-k); }
.kn-new { font: 700 11px/1 var(--f-t); color: #fff; background: var(--red); padding: 5px 7px; border-radius: 999px; letter-spacing: .02em; }
.kn-works li { display: flex; align-items: center; gap: 10px; padding: 6px 0; font-size: 15px; color: rgba(255, 255, 255, .88); }
.kn-app { width: 26px; height: 26px; border-radius: 7px; display: grid; place-items: center; font: 700 11px/1 var(--f-t); color: #fff; }
.kn-mega-all { display: inline-flex; align-items: center; gap: 8px; margin-top: 22px; color: #fff; font-weight: 500; font-size: 15px; }
.kn-mega-all svg { width: 16px; height: 16px; transition: transform .4s var(--ease); }
.kn-mega-all:hover svg { transform: translateX(4px); }

/* Drawer (phones) */
.kn-drawer { position: fixed; inset: var(--nav-h) 0 0; z-index: 89; background: var(--black); color: #fff; padding: 18px var(--g) 28px; overflow-y: auto; display: flex; flex-direction: column; clip-path: inset(0 0 100% 0); transition: clip-path .55s var(--ease-cut); }
.kn-drawer.is-open { clip-path: inset(0 0 0 0); }
.kn-dsearch { display: flex; align-items: center; gap: 10px; height: 48px; padding: 0 16px; border-radius: 14px; border: 1px solid var(--line-k); background: var(--black-2); color: rgba(255, 255, 255, .66); font-size: 16px; margin-bottom: 10px; }
.kn-dsearch svg { width: 18px; height: 18px; }
.kn-dtrig, .kn-dlink { display: flex; align-items: center; justify-content: space-between; width: 100%; padding: 18px 0; border: 0; border-bottom: 1px solid var(--line-k); background: none; color: #fff; font: 500 26px/1 var(--f-d); letter-spacing: -0.01em; text-align: left; }
.kn-dtrig::after { content: "+"; font: 400 24px/1 var(--f-t); color: var(--muted-k); }
.kn-dtrig[aria-expanded="true"]::after { content: "\2212"; }
.kn-dbody { padding: 8px 0 18px; display: grid; grid-template-columns: 1fr 1fr; gap: 18px 16px; }
.kn-dbody[hidden] { display: none; }
.kn-dbody .kn-col a { font-size: 15px; padding: 5px 0; }
.kn-dfoot { margin-top: auto; padding-top: 28px; display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }

/* Command palette */
.kn-pal { position: fixed; inset: 0; z-index: 150; display: grid; justify-items: center; align-items: start; padding: 12vh 16px 16px; }
.kn-pal[hidden] { display: none; }
.kn-pal-scrim { position: absolute; inset: 0; background: rgba(5, 5, 6, .62); opacity: 0; transition: opacity .35s var(--ease); }
.kn-pal-box { position: relative; width: min(660px, 100%); background: var(--black-2); color: #fff; border: 1px solid var(--line-k); border-radius: 18px; overflow: hidden; opacity: 0; transform: translateY(12px) scale(.985); transition: opacity .35s var(--ease), transform .45s var(--ease); }
.kn-pal.is-open .kn-pal-scrim { opacity: 1; }
.kn-pal.is-open .kn-pal-box { opacity: 1; transform: none; }
.kn-pal-field { display: flex; align-items: center; gap: 12px; padding: 0 16px; height: 60px; border-bottom: 1px solid var(--line-k); }
.kn-pal-field svg { width: 19px; height: 19px; color: var(--muted-k); flex: none; }
.kn-pal-field input { flex: 1; min-width: 0; height: 100%; border: 0; background: none; outline: none; font-size: 17px; color: #fff; }
.kn-pal-field input::placeholder { color: #77757F; }
.kn-pal-list { max-height: min(56vh, 460px); overflow-y: auto; padding: 8px; overscroll-behavior: contain; }
.kn-pal-g { font: 500 12.5px/1 var(--f-t); color: var(--muted-k); padding: 12px 10px 8px; }
.kn-pal-o { display: flex; align-items: center; gap: 12px; padding: 9px 10px; border-radius: 11px; cursor: pointer; }
.kn-pal-o[aria-selected="true"] { background: #232327; }
.kn-pal-o img, .kn-pal-ic { width: 34px; height: 34px; border-radius: 8px; object-fit: cover; flex: none; }
.kn-pal-ic { display: grid; place-items: center; background: #222226; color: rgba(255, 255, 255, .82); }
.kn-pal-ic svg { width: 17px; height: 17px; }
.kn-pal-ic.is-red { background: var(--red); color: #fff; }
.kn-pal-t { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 2px; }
.kn-pal-t b { font-weight: 500; font-size: 15px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.kn-pal-t small { font-size: 12.5px; color: var(--muted-k); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.kn-pal-m { font-size: 12.5px; color: var(--muted-k); flex: none; }
.kn-pal-empty { padding: 28px 12px; color: var(--muted-k); text-align: center; }
.kn-pal-foot { display: flex; gap: 18px; align-items: center; padding: 11px 16px; border-top: 1px solid var(--line-k); font-size: 12.5px; color: var(--muted-k); }
.kn-pal-foot span { display: inline-flex; align-items: center; gap: 5px; }
.kn-pal-tip { margin-left: auto; }

/* Toast */
.kn-toast { position: fixed; left: 50%; bottom: 24px; z-index: 160; max-width: calc(100% - 32px); padding: 13px 18px; border-radius: 14px; background: var(--black); color: #fff; border: 1px solid var(--line-k); font-size: 14.5px; opacity: 0; transform: translate(-50%, 16px); pointer-events: none; transition: opacity .35s var(--ease), transform .45s var(--ease); }
.kn-toast.is-on { opacity: 1; transform: translate(-50%, 0); }

/* ---------- Footer ---------- */
.kn-foot { background: var(--black); color: #fff; padding: 88px 0 28px; }
.kf-top { display: grid; grid-template-columns: 1.1fr 1fr; gap: 64px; padding-bottom: 56px; border-bottom: 1px solid var(--line-k); }
.kf-brand p { margin-top: 20px; max-width: 420px; color: var(--muted-k); font-size: 15px; }
.kf-social { display: flex; gap: 8px; margin-top: 24px; }
.kf-social a { width: 40px; height: 40px; border-radius: 50%; border: 1px solid var(--line-k); display: grid; place-items: center; color: rgba(255, 255, 255, .85); transition: border-color .25s, color .25s; }
.kf-social a:hover { border-color: #fff; color: #fff; }
.kf-social svg { width: 18px; height: 18px; }
.kf-news label { display: block; font: 500 22px/1.3 var(--f-d); letter-spacing: -0.01em; max-width: 460px; }
.kf-news-row { display: flex; gap: 10px; margin-top: 20px; max-width: 480px; }
.kf-news input { flex: 1; min-width: 0; height: 46px; padding: 0 18px; border-radius: 999px; border: 1px solid var(--line-k); background: var(--black-2); color: #fff; }
.kf-news input::placeholder { color: #75737C; }
.kf-news input:focus-visible { outline: 2px solid #fff; outline-offset: 2px; }
.kf-news-msg { min-height: 22px; margin-top: 10px; font-size: 14px; color: var(--muted-k); }
.kf-news-msg.is-ok { color: #fff; }
.kf-cols { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 32px; padding: 48px 0 56px; }
.kf-h { font-size: 13px; color: var(--muted-k); margin-bottom: 14px; }
.kf-cols a { display: inline-block; padding: 5px 0; color: rgba(255, 255, 255, .86); font-size: 15px; transition: color .2s; }
.kf-cols a:hover { color: #fff; text-decoration: underline; text-underline-offset: 4px; }
.kf-legal { display: flex; align-items: center; gap: 28px; flex-wrap: wrap; padding-top: 24px; border-top: 1px solid var(--line-k); font-size: 13.5px; color: var(--muted-k); }
.kf-legal > ul { display: flex; gap: 20px; flex-wrap: wrap; }
.kf-lang-menu[hidden] { display: none; }
.kf-legal a:hover { color: #fff; }
.kf-lang { margin-left: auto; position: relative; }
.kf-lang-btn { display: inline-flex; align-items: center; gap: 8px; height: 36px; padding: 0 14px; border-radius: 999px; border: 1px solid var(--line-k); background: none; color: rgba(255, 255, 255, .86); font-size: 13.5px; }
.kf-lang-btn svg { width: 16px; height: 16px; }
.kf-lang-menu { position: absolute; right: 0; bottom: calc(100% + 8px); min-width: 180px; padding: 6px; background: var(--black-2); border: 1px solid var(--line-k); border-radius: 14px; }
.kf-lang-menu button { width: 100%; text-align: left; padding: 9px 12px; border: 0; border-radius: 9px; background: none; color: rgba(255, 255, 255, .86); font-size: 14px; }
.kf-lang-menu button:hover, .kf-lang-menu button:focus-visible { background: #232327; outline: none; }
.kf-lang-menu button[aria-checked="true"] { color: #fff; }
.kf-lang-menu button[aria-checked="true"]::after { content: ""; float: right; width: 7px; height: 7px; margin-top: 6px; border-radius: 50%; background: var(--red); }

@media (max-width: 1180px) {
  .kn-search { width: 210px; }
  .kn-mega-in { grid-template-columns: minmax(0, 1fr) 260px; }
  .kn-works { display: none; }
}
@media (max-width: 1020px) {
  .kn-menu, .kn-login, .kn-search-t, .kn-search .kn-kbd { display: none; }
  .kn-search { width: 40px; padding: 0; justify-content: center; }
  .kn-burger { display: inline-block; }
  .kn-mega { display: none; }
  .kf-top { grid-template-columns: 1fr; gap: 40px; }
  .kf-cols { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}
@media (max-width: 640px) {
  :root { --nav-h: 56px; }
  .kn-nav { gap: 12px; }
  .kn-cta { display: none; }
  .kf-cols { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 24px 16px; }
  .kf-lang { margin-left: 0; }
  .kf-lang-menu { right: auto; left: 0; }
  .kn-pal { padding-top: 10px; }
  .kn-pal-foot span:not(.kn-pal-tip) { display: none; }
  .kn-pal-tip { margin-left: 0; }
  .kn-foot { padding-top: 64px; }
}
