:root {
  --bg: #050912;
  --bg-2: #0c1424;
  --bg-3: #111c33;
  --fg: #eef4ff;
  --muted: #99a8c2;
  --muted-2: #6b7a93;
  --accent: #4ea3ff;
  --accent-2: #1e63c4;
  --kime: #4ea3ff;
  --kimelogic: #a96bff;
  --border: rgba(255, 255, 255, 0.08);
  --border-strong: rgba(255, 255, 255, 0.14);
  --shadow: 0 20px 60px rgba(0, 0, 0, 0.45);
  --radius: 14px;
}

*, *::before, *::after { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Helvetica, Arial, sans-serif;
  background: var(--bg);
  color: var(--fg);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

a { color: var(--accent); text-decoration: none; }
a:hover { text-decoration: underline; }

img { max-width: 100%; height: auto; display: block; }

.container { max-width: 1080px; margin: 0 auto; padding: 0 24px; }
.container-narrow { max-width: 760px; margin: 0 auto; padding: 0 24px; }

/* ---------- Header / Nav ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(5, 9, 18, 0.85);
  backdrop-filter: saturate(140%) blur(10px);
  -webkit-backdrop-filter: saturate(140%) blur(10px);
  border-bottom: 1px solid var(--border);
}
.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 14px 0;
}
.nav-brand {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  color: var(--fg);
}
.nav-brand img { height: 38px; width: auto; border-radius: 6px; }
.nav-brand-text { display: none; }
@media (min-width: 480px) { .nav-brand-text { display: inline; font-weight: 700; letter-spacing: 0.02em; font-size: 15px; } }
.nav-links {
  display: flex;
  align-items: center;
  gap: 22px;
  font-size: 15px;
}
.nav-links a { color: var(--muted); font-weight: 500; }
.nav-links a:hover { color: var(--fg); text-decoration: none; }
.nav-links a.active { color: var(--fg); }
@media (max-width: 640px) {
  .nav-links { gap: 14px; font-size: 14px; }
  .nav-links a:nth-child(n+4) { display: none; }
}

/* ---------- Hero ---------- */
.hero {
  position: relative;
  padding: 88px 0 72px;
  background:
    radial-gradient(800px 380px at 50% -10%, rgba(78, 163, 255, 0.18), transparent 60%),
    radial-gradient(600px 400px at 85% 30%, rgba(169, 107, 255, 0.10), transparent 60%);
  overflow: hidden;
}
.hero-banner {
  width: 100%;
  max-width: 720px;
  margin: 0 auto 32px;
  border-radius: 16px;
  box-shadow: var(--shadow);
}
.hero h1 {
  font-size: clamp(34px, 5vw, 56px);
  line-height: 1.08;
  margin: 0 0 18px;
  font-weight: 800;
  letter-spacing: -0.02em;
  text-align: center;
}
.hero .lede {
  font-size: clamp(17px, 1.7vw, 20px);
  color: var(--muted);
  max-width: 720px;
  margin: 0 auto;
  text-align: center;
}
.eyebrow {
  font-size: 12px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--accent);
  margin: 0 0 16px;
  text-align: center;
  font-weight: 600;
}

/* ---------- Sections ---------- */
section { padding: 64px 0; border-top: 1px solid var(--border); }
section h2 {
  font-size: clamp(26px, 2.6vw, 34px);
  margin: 0 0 14px;
  font-weight: 700;
  letter-spacing: -0.01em;
}
section .section-lede {
  color: var(--muted);
  max-width: 740px;
  font-size: 16.5px;
  margin: 0 0 28px;
}
.page-section { padding: 56px 0; }
.page-section + .page-section { border-top: 1px solid var(--border); }

/* ---------- Cards ---------- */
.grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 20px;
}
.card {
  background: linear-gradient(180deg, var(--bg-2) 0%, var(--bg-3) 100%);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 22px 22px 24px;
  transition: transform 0.18s ease, border-color 0.18s ease;
}
.card:hover { transform: translateY(-2px); border-color: var(--border-strong); }
.card h3 { margin: 0 0 8px; font-size: 19px; font-weight: 700; }
.card p { color: var(--muted); font-size: 15px; margin: 0; line-height: 1.55; }
.card .tag {
  display: inline-block;
  margin-bottom: 12px;
  padding: 4px 10px;
  font-size: 11px;
  font-weight: 700;
  border-radius: 999px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}
.tag.kime { background: rgba(78, 163, 255, 0.16); color: #b3d4ff; }
.tag.kimelogic { background: rgba(169, 107, 255, 0.18); color: #d6bbff; }
.tag.status { background: rgba(255, 255, 255, 0.08); color: var(--muted); }

/* Side-by-side product feature */
.feature {
  display: grid;
  grid-template-columns: 1fr;
  gap: 28px;
  align-items: center;
}
@media (min-width: 860px) {
  .feature { grid-template-columns: 1.05fr 1fr; gap: 48px; }
  .feature.reverse { grid-template-columns: 1fr 1.05fr; }
  .feature.reverse .feature-media { order: 2; }
}
.feature-media img {
  width: 100%;
  border-radius: var(--radius);
  border: 1px solid var(--border);
  box-shadow: var(--shadow);
}
.feature h3 { font-size: 22px; margin: 6px 0 10px; font-weight: 700; }
.feature p { color: var(--muted); margin: 0 0 10px; }

/* ---------- Stats / pillars row ---------- */
.pillars {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 20px;
  margin-top: 12px;
}
.pillar {
  background: var(--bg-2);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 18px;
}
.pillar h4 {
  font-size: 14px;
  font-weight: 700;
  margin: 0 0 6px;
  color: var(--accent);
  letter-spacing: 0.04em;
  text-transform: uppercase;
}
.pillar p { color: var(--muted); margin: 0; font-size: 14.5px; line-height: 1.5; }

/* ---------- Contact list ---------- */
.contact-list {
  list-style: none;
  margin: 8px 0 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 14px;
}
.contact-list li {
  background: var(--bg-2);
  border: 1px solid var(--border);
  padding: 16px 18px;
  border-radius: 12px;
  font-size: 15px;
}
.contact-list .label {
  display: block;
  color: var(--muted-2);
  font-size: 11.5px;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  margin-bottom: 4px;
  font-weight: 600;
}
.contact-list a { word-break: break-all; }

/* ---------- Prose (long-form pages) ---------- */
.prose h1 { font-size: clamp(30px, 4vw, 44px); margin: 0 0 8px; font-weight: 800; letter-spacing: -0.02em; }
.prose .updated { color: var(--muted-2); font-size: 14px; margin: 0 0 28px; }
.prose h2 {
  font-size: 22px;
  margin: 36px 0 10px;
  font-weight: 700;
  letter-spacing: -0.005em;
}
.prose h3 { font-size: 17px; margin: 24px 0 6px; font-weight: 700; }
.prose p, .prose li { color: var(--muted); font-size: 16px; line-height: 1.7; }
.prose strong { color: var(--fg); font-weight: 600; }
.prose ul, .prose ol { padding-left: 22px; }
.prose li { margin-bottom: 6px; }
.prose hr { border: none; border-top: 1px solid var(--border); margin: 36px 0; }
.prose code {
  background: var(--bg-2);
  padding: 2px 7px;
  border-radius: 5px;
  font-size: 14px;
  border: 1px solid var(--border);
}

/* ---------- Footer ---------- */
.site-footer {
  margin-top: 40px;
  padding: 36px 0 48px;
  border-top: 1px solid var(--border);
  color: var(--muted-2);
  font-size: 14px;
  background: var(--bg-2);
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr;
  gap: 28px;
  margin-bottom: 28px;
}
@media (max-width: 640px) {
  .footer-grid { grid-template-columns: 1fr; gap: 24px; }
}
.footer-grid h5 {
  color: var(--muted);
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  margin: 0 0 10px;
  font-weight: 700;
}
.footer-grid ul { list-style: none; padding: 0; margin: 0; }
.footer-grid li { margin-bottom: 6px; }
.footer-grid a { color: var(--muted); }
.footer-grid a:hover { color: var(--fg); text-decoration: none; }
.footer-brand { display: flex; align-items: center; gap: 10px; margin-bottom: 12px; }
.footer-brand img { height: 36px; }
.footer-tag { color: var(--muted-2); font-size: 14px; line-height: 1.55; max-width: 340px; }
.footer-bottom {
  padding-top: 22px;
  border-top: 1px solid var(--border);
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
  font-size: 13px;
}
.footer-bottom .legal { color: var(--muted-2); }
