:root {
  --bg: #1A1028;           /* deep dark purple (brand) */
  --bg-soft: #2B2235;      /* slightly lighter panel surface */
  --bg-card: #251a36;      /* card / inset surface */
  --bg-elevated: #322443;  /* hover / elevated */
  --fg: #EDEAF2;           /* off-white (brand) */
  --muted: #b8aecb;
  --muted-2: #847a98;
  --accent: #7C3AED;       /* violet (brand) */
  --accent-2: #5b21b6;     /* deep violet for hover */
  --accent-bright: #B86CFF; /* lavender highlight (brand) */
  --accent-soft: rgba(184, 108, 255, 0.12);
  --border: rgba(184, 108, 255, 0.16);
  --border-strong: rgba(184, 108, 255, 0.32);
  --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.35);
  --shadow: 0 16px 36px rgba(124, 58, 237, 0.28);
  --shadow-lg: 0 28px 60px rgba(124, 58, 237, 0.40);
  --radius: 14px;
  --radius-lg: 18px;
  --display-font: "Bungee", system-ui, -apple-system, BlinkMacSystemFont, sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: system-ui, -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-bright); text-decoration: none; }
a:hover { color: var(--fg); 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(26, 16, 40, 0.78);
  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);
  font-family: var(--display-font);
  font-size: 18px;
  letter-spacing: 0.02em;
}
.nav-brand:hover { text-decoration: none; color: var(--accent-bright); }
.nav-brand img { height: 32px; width: 32px; }
.nav-links {
  display: flex;
  align-items: center;
  gap: 22px;
  font-size: 15px;
}
.nav-links a {
  color: var(--muted);
  font-weight: 600;
  padding: 6px 4px;
}
.nav-links a:hover { color: var(--fg); text-decoration: none; }
.nav-links a.active { color: var(--accent-bright); }
@media (max-width: 640px) {
  .nav-links { gap: 14px; font-size: 14px; }
  .nav-brand { font-size: 16px; }
}

/* ---------- Hero ---------- */
.hero {
  position: relative;
  padding: 88px 0 72px;
  background:
    radial-gradient(900px 420px at 50% -10%, rgba(184, 108, 255, 0.22), transparent 60%),
    radial-gradient(700px 480px at 85% 30%, rgba(124, 58, 237, 0.18), transparent 60%),
    linear-gradient(180deg, #1A1028 0%, #221735 100%);
  overflow: hidden;
}
.hero-logo {
  max-width: min(640px, 86%);
  margin: 0 auto 14px;
  display: block;
}
.hero h1 {
  font-family: var(--display-font);
  font-size: clamp(32px, 5vw, 56px);
  line-height: 1.05;
  margin: 0 0 22px;
  letter-spacing: 0.02em;
  text-align: center;
  color: var(--fg);
}
.hero h1 .accent { color: var(--accent-bright); }
.hero .lede {
  font-size: clamp(17px, 1.7vw, 20px);
  color: var(--muted);
  max-width: 640px;
  margin: 0 auto;
  text-align: center;
}
.eyebrow {
  font-size: 12px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--accent-bright);
  margin: 0 0 16px;
  text-align: center;
  font-weight: 700;
}

/* ---------- Sections ---------- */
section { padding: 64px 0; }
section + section { border-top: 1px solid var(--border); }
section h2 {
  font-family: var(--display-font);
  font-size: clamp(26px, 3vw, 38px);
  margin: 0 0 14px;
  letter-spacing: 0.01em;
  color: var(--fg);
}
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(260px, 1fr));
  gap: 20px;
}
.card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 24px;
  box-shadow: var(--shadow-sm);
  transition: transform 0.18s ease, box-shadow 0.18s ease, border-color 0.18s ease;
}
.card:hover { transform: translateY(-3px); box-shadow: var(--shadow); border-color: var(--border-strong); }
.card h3 { margin: 0 0 8px; font-size: 19px; font-weight: 700; color: var(--fg); }
.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.kimelogic { background: var(--accent-soft); color: var(--accent-bright); border: 1px solid var(--border-strong); }
.tag.status { background: rgba(251, 191, 36, 0.14); color: #fbbf24; }
.tag.live { background: rgba(16, 185, 129, 0.16); color: #34d399; }

/* ---------- Feature card (game showcase) ---------- */
.feature-card {
  background: var(--bg-card);
  border: 1px solid var(--border-strong);
  border-radius: var(--radius-lg);
  padding: 32px;
  box-shadow: var(--shadow);
  display: grid;
  grid-template-columns: 1fr;
  gap: 28px;
  align-items: center;
}
@media (min-width: 860px) {
  .feature-card { grid-template-columns: 1.1fr 1fr; padding: 44px; gap: 48px; }
  .feature-card.reverse { grid-template-columns: 1fr 1.1fr; }
  .feature-card.reverse .feature-media { order: 2; }
}
.feature-card h3 {
  font-family: var(--display-font);
  font-size: clamp(28px, 3vw, 38px);
  margin: 8px 0 14px;
  letter-spacing: 0.01em;
  color: var(--fg);
}
.feature-card p { color: var(--muted); margin: 0 0 14px; font-size: 16px; }
.feature-media {
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--muted-2);
  font-size: 13px;
  text-align: center;
}
.feature-media img {
  width: 100%;
  max-width: 280px;
  height: auto;
  border-radius: var(--radius);
  box-shadow: 0 18px 44px rgba(0, 0, 0, 0.45), 0 0 0 1px rgba(184, 108, 255, 0.20);
}

/* ---------- Buttons ---------- */
.btn-row {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 18px;
}
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px 22px;
  border-radius: 12px;
  font-weight: 700;
  font-size: 15px;
  border: 2px solid transparent;
  transition: transform 0.12s ease, box-shadow 0.12s ease, background 0.12s ease, color 0.12s ease;
  text-decoration: none;
  white-space: nowrap;
}
.btn-primary {
  background: var(--accent);
  color: #ffffff;
  box-shadow: 0 8px 24px rgba(124, 58, 237, 0.45);
}
.btn-primary:hover {
  background: var(--accent-bright);
  color: #1A1028;
  transform: translateY(-2px);
  text-decoration: none;
  box-shadow: 0 12px 32px rgba(184, 108, 255, 0.55);
}
.btn-secondary {
  background: var(--bg-soft);
  color: var(--fg);
  border-color: var(--border-strong);
}
.btn-secondary:hover {
  background: var(--bg-elevated);
  border-color: var(--accent-bright);
  color: var(--accent-bright);
  text-decoration: none;
}
.btn-disabled {
  background: var(--bg-soft);
  color: var(--muted-2);
  border-color: var(--border);
  cursor: not-allowed;
  pointer-events: none;
}

/* ---------- Pillars ---------- */
.pillars {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 20px;
  margin-top: 12px;
}
.pillar {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 22px;
  box-shadow: var(--shadow-sm);
}
.pillar h4 {
  font-family: var(--display-font);
  font-size: 14px;
  margin: 0 0 8px;
  color: var(--accent-bright);
  letter-spacing: 0.04em;
}
.pillar p { color: var(--muted); margin: 0; font-size: 14.5px; line-height: 1.55; }

/* ---------- Feature bullets ---------- */
.feature-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 14px;
}
.feature-list li {
  background: var(--bg-card);
  border: 1px solid var(--border);
  padding: 16px 18px;
  border-radius: 12px;
  font-size: 15px;
  color: var(--fg);
  box-shadow: var(--shadow-sm);
}
.feature-list li strong {
  display: block;
  color: var(--accent-bright);
  font-size: 13px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-bottom: 4px;
}

/* ---------- Screenshot row ---------- */
.screenshot-row {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 18px;
  margin-top: 22px;
}
.screenshot {
  display: flex;
  align-items: flex-start;
  justify-content: center;
}
.screenshot img {
  width: 100%;
  height: auto;
  border-radius: var(--radius);
  box-shadow: 0 12px 28px rgba(0, 0, 0, 0.42), 0 0 0 1px rgba(184, 108, 255, 0.18);
}

/* ---------- Prose (long-form pages) ---------- */
.prose h1 {
  font-family: var(--display-font);
  font-size: clamp(34px, 5vw, 52px);
  margin: 0 0 8px;
  letter-spacing: 0.01em;
  color: var(--fg);
}
.prose .updated { color: var(--muted-2); font-size: 14px; margin: 0 0 28px; }
.prose h2 {
  font-family: var(--display-font);
  font-size: 22px;
  margin: 36px 0 10px;
  letter-spacing: 0.01em;
  color: var(--fg);
}
.prose h3 { font-size: 17px; margin: 24px 0 6px; font-weight: 700; color: var(--fg); }
.prose p, .prose li { color: var(--muted); font-size: 16px; line-height: 1.75; }
.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; }

/* ---------- Contact list ---------- */
.contact-list {
  list-style: none;
  margin: 8px 0 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 14px;
}
.contact-list li {
  background: var(--bg-card);
  border: 1px solid var(--border);
  padding: 18px 20px;
  border-radius: 12px;
  font-size: 15px;
  box-shadow: var(--shadow-sm);
}
.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: 700;
}
.contact-list a { word-break: break-all; font-weight: 600; }

/* ---------- Footer ---------- */
.site-footer {
  margin-top: 40px;
  padding: 40px 0 48px;
  border-top: 1px solid var(--border);
  color: var(--muted-2);
  font-size: 14px;
  background: #15091f;
}
.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(--fg);
  font-family: var(--display-font);
  font-size: 12px;
  letter-spacing: 0.06em;
  margin: 0 0 12px;
}
.footer-grid ul { list-style: none; padding: 0; margin: 0; }
.footer-grid li { margin-bottom: 6px; }
.footer-grid a { color: var(--muted); font-weight: 500; }
.footer-grid a:hover { color: var(--accent-bright); text-decoration: none; }
.footer-brand {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 12px;
  font-family: var(--display-font);
  font-size: 20px;
  color: var(--fg);
  letter-spacing: 0.02em;
}
.footer-brand img { height: 36px; width: 36px; }
.footer-tag { color: var(--muted); font-size: 14px; line-height: 1.6; max-width: 360px; }
.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); }
.footer-bottom a { color: var(--muted-2); }
.footer-bottom a:hover { color: var(--accent-bright); }
