/* ==========================================================================
   Knight LTD — Global Stylesheet
   Shared design system for all pages (home, blog, legal, kairobase)
   ========================================================================== */

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; -webkit-tap-highlight-color: transparent; }

:root {
  --bg: #080808; --bg2: #0f0f0f; --bg3: #161616;
  --border: #242424; --bh: #303030;
  --text: #f2f2f2; --t2: #888; --t3: #555;
  --blue: #3b82f6; --accent: #60a5fa; --accent2: #a78bfa;
  --green: #22c55e; --red: #ef4444; --yellow: #eab308;
  --font: 'Outfit', sans-serif;
  --radius: 10px;
  --shadow-lg: 0 20px 60px rgba(0,0,0,0.5);
}

html { scroll-behavior: smooth; }
body {
  font-family: var(--font);
  background: var(--bg);
  color: var(--text);
  min-height: 100vh;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  line-height: 1.6;
}
::-webkit-scrollbar { width: 6px; }
::-webkit-scrollbar-track { background: var(--bg); }
::-webkit-scrollbar-thumb { background: #2a2a2a; border-radius: 4px; }
::-webkit-scrollbar-thumb:hover { background: #3a3a3a; }

a { color: var(--accent); text-decoration: none; }
a:hover { text-decoration: underline; }
img { max-width: 100%; display: block; }

body::after {
  content: ''; position: fixed; top: -200px; right: -200px;
  width: 600px; height: 600px;
  background: radial-gradient(circle, rgba(59,130,246,0.06) 0%, transparent 65%);
  pointer-events: none; z-index: 0;
}

/* ---------- NAV ---------- */
nav.site-nav {
  position: fixed; top: 0; left: 0; right: 0; height: 60px;
  background: rgba(8,8,8,0.9); backdrop-filter: blur(16px); -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--border);
  display: flex; align-items: center; justify-content: space-between;
  padding: 0 28px; z-index: 1000;
}
.nav-brand { display: flex; align-items: center; gap: 11px; text-decoration: none; }
.nav-logo { width: 34px; height: 34px; border-radius: 8px; border: 1px solid var(--border); object-fit: cover; }
.nav-name { font-size: 15px; font-weight: 700; color: var(--text); letter-spacing: -0.3px; }
.nav-right { display: flex; align-items: center; gap: 10px; }
.nav-pill { font-size: 11.5px; font-weight: 500; color: var(--t3); background: var(--bg3); border: 1px solid var(--border); border-radius: 6px; padding: 4px 10px; }
.hamburger { width: 34px; height: 34px; border-radius: 8px; border: 1px solid var(--border); background: transparent; cursor: pointer; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 4px; transition: all .2s; }
.hamburger span { display: block; width: 14px; height: 1.5px; background: var(--t2); border-radius: 2px; }
.hamburger:hover { border-color: var(--bh); background: var(--bg3); }

/* ---------- SIDEBAR ---------- */
.s-overlay { position: fixed; inset: 0; background: rgba(0,0,0,0.75); z-index: 1100; opacity: 0; pointer-events: none; transition: opacity .3s; }
.s-overlay.on { opacity: 1; pointer-events: all; }
.sidebar { position: fixed; top: 0; right: -300px; width: 270px; height: 100vh; background: var(--bg2); border-left: 1px solid var(--border); z-index: 1200; display: flex; flex-direction: column; transition: right .35s cubic-bezier(.4,0,.2,1); }
.sidebar.on { right: 0; }
.sb-head { display: flex; align-items: center; justify-content: space-between; padding: 20px; border-bottom: 1px solid var(--border); }
.sb-title { font-size: 14px; font-weight: 700; }
.sb-close { width: 30px; height: 30px; border-radius: 6px; border: 1px solid var(--border); background: transparent; color: var(--t2); font-size: 16px; cursor: pointer; display: flex; align-items: center; justify-content: center; transition: all .2s; }
.sb-close:hover { color: var(--text); background: var(--bg3); border-color: var(--bh); }
.sb-links { padding: 12px; display: flex; flex-direction: column; gap: 2px; }
.sb-link { display: flex; align-items: center; gap: 11px; padding: 10px 12px; border-radius: 8px; border: 1px solid transparent; color: var(--t2); text-decoration: none; font-size: 13.5px; font-weight: 500; cursor: pointer; transition: all .2s; }
.sb-link:hover { color: var(--text); background: var(--bg3); border-color: var(--border); }
.sb-link i { width: 18px; text-align: center; font-size: 14px; flex: none; }

/* ---------- NOTICE TICKER ---------- */
.ticker { position: fixed; top: 60px; left: 0; right: 0; height: 34px; background: var(--bg2); border-bottom: 1px solid var(--border); overflow: hidden; z-index: 900; display: flex; align-items: center; }
.ticker-inner { display: block; white-space: nowrap; animation: tick 40s linear infinite; }
.ticker-inner .notice-item { display: inline-block; font-size: 12px; color: var(--t2); padding: 0 36px; font-weight: 500; vertical-align: middle; white-space: nowrap; }
.ticker-inner strong { color: var(--accent); font-weight: 600; }
.ticker-dot { display: inline-block; box-sizing: border-box; width: 5px; height: 5px; min-width: 5px; max-width: 5px; min-height: 5px; max-height: 5px; border-radius: 50%; background: var(--green); vertical-align: middle; margin-right: 6px; flex: none; }
@keyframes tick { from { transform: translateX(100vw); } to { transform: translateX(-200%); } }
.page-body-offset { padding-top: 94px; }

/* ---------- HERO ---------- */
.hero { min-height: 92vh; display: flex; align-items: center; justify-content: center; padding: 100px 24px 70px; text-align: center; position: relative; z-index: 1; }
.hero-inner { max-width: 680px; }
.hero-pill { display: inline-flex; align-items: center; gap: 8px; background: var(--bg3); border: 1px solid var(--border); border-radius: 100px; padding: 5px 14px 5px 8px; font-size: 12px; color: var(--t2); font-weight: 500; margin-bottom: 28px; }
.live-dot { width: 7px; height: 7px; border-radius: 50%; background: var(--green); animation: pdot 2s infinite; }
@keyframes pdot { 0%,100%{opacity:1} 50%{opacity:.35} }
h1.hero-h1 { font-size: clamp(38px,7vw,72px); font-weight: 900; line-height: 1.04; letter-spacing: -2.5px; margin-bottom: 18px; }
.hero-grad { background: linear-gradient(135deg,#60a5fa 0%,#818cf8 45%,#a78bfa 100%); -webkit-background-clip: text; background-clip: text; color: transparent; }
.hero-sub { font-size: 16px; color: var(--t2); line-height: 1.65; max-width: 520px; margin: 0 auto 36px; }
.hero-btns { display: flex; gap: 10px; justify-content: center; flex-wrap: wrap; }

/* ---------- BUTTONS ---------- */
.btn-solid { display: inline-flex; align-items: center; gap: 7px; background: var(--text); color: #080808; padding: 11px 22px; border-radius: 8px; font-size: 13.5px; font-weight: 700; text-decoration: none; font-family: var(--font); border: none; cursor: pointer; transition: all .2s; }
.btn-solid:hover { background: #ddd; transform: translateY(-1px); text-decoration: none; }
.btn-outline { display: inline-flex; align-items: center; gap: 7px; background: transparent; color: var(--text); padding: 11px 22px; border-radius: 8px; font-size: 13.5px; font-weight: 600; text-decoration: none; font-family: var(--font); border: 1px solid var(--border); cursor: pointer; transition: all .2s; }
.btn-outline:hover { border-color: var(--bh); background: var(--bg3); transform: translateY(-1px); text-decoration: none; }

/* ---------- STATS ---------- */
.stats-row { border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); background: var(--bg2); position: relative; z-index: 1; }
.stats-inner { max-width: 900px; margin: 0 auto; display: grid; grid-template-columns: repeat(4,1fr); text-align: center; }
.stat-cell { padding: 28px 16px; border-right: 1px solid var(--border); }
.stat-cell:last-child { border-right: none; }
.stat-n { font-size: 30px; font-weight: 800; letter-spacing: -1px; line-height: 1; }
.stat-l { font-size: 12px; color: var(--t3); margin-top: 5px; font-weight: 500; }

/* ---------- SECTIONS / CARDS ---------- */
.sec { max-width: 1080px; margin: 0 auto; padding: 88px 24px; position: relative; z-index: 1; }
.sec-label { font-size: 11px; font-weight: 700; letter-spacing: 1.5px; text-transform: uppercase; color: var(--blue); margin-bottom: 14px; }
.sec-title { font-size: clamp(26px,4vw,38px); font-weight: 800; letter-spacing: -1px; margin-bottom: 14px; }
.sec-sub { color: var(--t2); font-size: 15px; max-width: 560px; margin-bottom: 44px; line-height: 1.6; }
.grid { display: grid; gap: 16px; }
.grid-3 { grid-template-columns: repeat(3,1fr); }
.grid-2 { grid-template-columns: repeat(2,1fr); }
.card { background: var(--bg2); border: 1px solid var(--border); border-radius: var(--radius); padding: 24px; transition: all .2s; }
.card:hover { border-color: var(--bh); transform: translateY(-2px); }
.card-icon { width: 40px; height: 40px; border-radius: 9px; background: var(--bg3); border: 1px solid var(--border); display: flex; align-items: center; justify-content: center; font-size: 17px; margin-bottom: 14px; color: var(--accent); }
.card h3 { font-size: 15.5px; font-weight: 700; margin-bottom: 7px; }
.card p { font-size: 13px; color: var(--t2); line-height: 1.55; }

/* ---------- FOOTER ---------- */
footer.site-footer { border-top: 1px solid var(--border); padding: 50px 24px 30px; text-align: center; position: relative; z-index: 1; }
footer.site-footer .f-links { display: flex; gap: 18px; justify-content: center; flex-wrap: wrap; margin-bottom: 18px; }
footer.site-footer .f-links a { color: var(--t2); font-size: 13px; font-weight: 500; }
footer.site-footer .f-links a:hover { color: var(--text); }
footer.site-footer .f-copy { color: var(--t3); font-size: 12px; }

/* ---------- ARTICLE / LEGAL PAGE CONTENT ---------- */
.article-wrap { max-width: 760px; margin: 0 auto; padding: 110px 24px 90px; position: relative; z-index: 1; }
.article-wrap h1 { font-size: clamp(28px,5vw,44px); font-weight: 800; letter-spacing: -1px; margin-bottom: 14px; line-height: 1.15; }
.article-meta { color: var(--t3); font-size: 13px; margin-bottom: 40px; display: flex; gap: 14px; flex-wrap: wrap; }
.article-body h2 { font-size: 22px; font-weight: 750; margin: 40px 0 14px; letter-spacing: -.4px; }
.article-body h3 { font-size: 17px; font-weight: 700; margin: 28px 0 10px; color: var(--accent); }
.article-body p { color: #cfcfcf; font-size: 15px; line-height: 1.85; margin-bottom: 16px; }
.article-body ul, .article-body ol { color: #cfcfcf; font-size: 15px; line-height: 1.8; margin: 0 0 16px 20px; }
.article-body li { margin-bottom: 6px; }
.article-body a { text-decoration: underline; }
.article-body blockquote { border-left: 3px solid var(--blue); padding: 4px 0 4px 18px; color: var(--t2); font-style: italic; margin: 20px 0; }
.article-body code { background: var(--bg3); border: 1px solid var(--border); padding: 2px 6px; border-radius: 4px; font-size: 13px; }
.article-body table { width: 100%; border-collapse: collapse; margin: 20px 0; font-size: 14px; }
.article-body th, .article-body td { border: 1px solid var(--border); padding: 10px 12px; text-align: left; color: #cfcfcf; }
.article-body th { background: var(--bg2); color: var(--text); }

/* ---------- BLOG GRID ---------- */
.blog-card { display: block; background: var(--bg2); border: 1px solid var(--border); border-radius: var(--radius); padding: 22px; transition: all .2s; text-decoration: none; color: inherit; }
.blog-card:hover { border-color: var(--bh); transform: translateY(-2px); text-decoration: none; }
.blog-tag { display: inline-block; font-size: 10.5px; font-weight: 700; letter-spacing: .5px; text-transform: uppercase; color: var(--blue); background: rgba(59,130,246,0.1); padding: 3px 9px; border-radius: 5px; margin-bottom: 12px; }
.blog-card h3 { font-size: 16px; font-weight: 700; margin-bottom: 8px; line-height: 1.35; }
.blog-card p { font-size: 13px; color: var(--t2); line-height: 1.6; margin-bottom: 12px; }
.blog-card .b-meta { font-size: 11.5px; color: var(--t3); }

/* ---------- KAIROBASE COMING SOON ---------- */
.coming-wrap { min-height: 100vh; display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center; padding: 24px; position: relative; z-index: 1; }
.coming-badge { font-size: 11px; font-weight: 700; letter-spacing: 2px; text-transform: uppercase; color: var(--accent2); background: rgba(167,139,250,0.1); border: 1px solid rgba(167,139,250,0.25); padding: 6px 14px; border-radius: 100px; margin-bottom: 24px; }
.countdown { display: flex; gap: 14px; margin: 34px 0; }
.countdown .c-box { background: var(--bg2); border: 1px solid var(--border); border-radius: 10px; padding: 16px 18px; min-width: 70px; }
.countdown .c-num { font-size: 26px; font-weight: 800; }
.countdown .c-lbl { font-size: 10px; color: var(--t3); text-transform: uppercase; letter-spacing: 1px; margin-top: 4px; }
.notify-form { display: flex; gap: 8px; margin-top: 12px; flex-wrap: wrap; justify-content: center; }
.notify-form input { background: var(--bg2); border: 1px solid var(--border); border-radius: 8px; padding: 11px 14px; color: var(--text); font-family: var(--font); font-size: 13.5px; min-width: 240px; }
.notify-form input:focus { outline: none; border-color: var(--blue); }

/* ---------- FORMS (contact etc) ---------- */
.form-field { margin-bottom: 16px; text-align: left; }
.form-field label { display: block; font-size: 12.5px; font-weight: 600; color: var(--t2); margin-bottom: 6px; }
.form-field input, .form-field textarea, .form-field select {
  width: 100%; background: var(--bg2); border: 1px solid var(--border); border-radius: 8px;
  padding: 11px 14px; color: var(--text); font-family: var(--font); font-size: 14px;
}
.form-field input:focus, .form-field textarea:focus, .form-field select:focus { outline: none; border-color: var(--blue); }
.form-field textarea { resize: vertical; min-height: 120px; }

/* ---------- RESPONSIVE ---------- */
@media (max-width: 760px) {
  .grid-3 { grid-template-columns: 1fr 1fr; }
  .grid-2 { grid-template-columns: 1fr; }
  .stats-inner { grid-template-columns: repeat(2,1fr); }
  .stat-cell:nth-child(2) { border-right: none; }
}
@media (max-width: 520px) {
  .grid-3 { grid-template-columns: 1fr; }
  nav.site-nav { padding: 0 16px; }
  .sec { padding: 60px 18px; }
}
