/* ═══════════════════════════════════════════════════════════
   KLEARLOGIC — shared.css
   Brand: deep indigo/purple (#3b29ab, #5b41dc, #8b7cf8)
   Base: dark slate background
   ═══════════════════════════════════════════════════════════ */

/* ── TOKENS ─────────────────────────────── */
:root {
  --bg:           #0e0f1a;
  --bg2:          #141528;
  --surface:      #1a1c32;
  --surface2:     #212340;
  --border:       rgba(255,255,255,0.08);
  --border-med:   rgba(255,255,255,0.14);

  --brand:        #5b41dc;
  --brand-dark:   #3b29ab;
  --brand-light:  #8b7cf8;

  --text-primary: #eeedf5;
  --text-muted:   #8e8caa;
  --text-dim:     #5a587a;

  --green:        #22d47a;
  --red:          #f55656;

  --ff-head: 'Syne', system-ui, sans-serif;
  --ff-body: 'Plus Jakarta Sans', system-ui, sans-serif;
  --r:       8px;
  --r-lg:    14px;
}

/* ── RESET ──────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: var(--ff-body);
  background: var(--bg);
  color: var(--text-primary);
  line-height: 1.6;
  font-size: 16px;
  overflow-x: hidden;
}
img { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }

/* ── UTILITY ────────────────────────────── */
.container { max-width: 1100px; margin: 0 auto; padding: 0 28px; }
section { padding: 88px 0; }
.section-alt { background: var(--bg2); }

.eyebrow {
  font-size: 0.75rem; font-weight: 700;
  letter-spacing: 0.12em; text-transform: uppercase;
  color: var(--brand-light);
  margin-bottom: 10px;
}
.section-h2 {
  font-family: var(--ff-head);
  font-size: clamp(1.9rem, 4vw, 2.8rem);
  line-height: 1.12; letter-spacing: -0.025em;
  margin-bottom: 14px;
}
.section-intro {
  font-size: 1rem; color: var(--text-muted);
  max-width: 560px; line-height: 1.75;
}
.section-header { margin-bottom: 52px; }

/* ── BUTTONS ────────────────────────────── */
.btn-primary {
  display: inline-flex; align-items: center; gap: 7px;
  background: var(--brand);
  color: #fff; font-weight: 700; font-size: 0.92rem;
  padding: 13px 26px; border-radius: var(--r);
  transition: background 0.2s, transform 0.15s;
}
.btn-primary:hover { background: #6b50f0; transform: translateY(-2px); }

.btn-ghost {
  display: inline-flex; align-items: center; gap: 7px;
  border: 1px solid var(--border-med);
  color: var(--text-muted); font-weight: 600; font-size: 0.92rem;
  padding: 13px 26px; border-radius: var(--r);
  transition: border-color 0.2s, color 0.2s;
}
.btn-ghost:hover { border-color: rgba(139,124,248,0.5); color: var(--text-primary); }

/* ── NAV ────────────────────────────────── */
.nav {
  position: sticky; top: 0; z-index: 200;
  background: rgba(14,15,26,0.9);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--border);
}
.nav__inner {
  display: flex; align-items: center;
  justify-content: space-between;
  height: 66px;
}
.nav__logo {
  font-family: var(--ff-head);
  font-size: 1.45rem; font-weight: 800;
  letter-spacing: -0.02em;
}
.nav__logo span { color: var(--brand-light); }

.nav__links {
  display: flex; gap: 30px; list-style: none;
}
.nav__links a {
  font-size: 0.875rem; font-weight: 600;
  color: var(--text-muted);
  transition: color 0.2s;
}
.nav__links a:hover,
.nav__links a.active { color: var(--text-primary); }

.nav__cta {
  background: var(--brand);
  color: #fff; font-weight: 700; font-size: 0.85rem;
  padding: 9px 20px; border-radius: var(--r);
  transition: background 0.2s;
}
.nav__cta:hover { background: #6b50f0; }

.nav__burger {
  display: none; flex-direction: column; gap: 5px;
  background: none; border: none; cursor: pointer; padding: 4px;
}
.nav__burger span {
  display: block; width: 22px; height: 2px;
  background: var(--text-primary); border-radius: 2px;
  transition: all 0.25s;
}
.nav__mobile {
  display: none; flex-direction: column;
  padding: 16px 28px 24px; gap: 4px;
  border-top: 1px solid var(--border);
}
.nav__mobile.open { display: flex; }
.nav__mobile a {
  padding: 11px 0; font-size: 1rem; font-weight: 600;
  color: var(--text-muted); border-bottom: 1px solid var(--border);
}

/* ── FOOTER ─────────────────────────────── */
.footer { background: #08090f; border-top: 1px solid var(--border); padding: 52px 0 24px; }
.footer__inner {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 48px; align-items: start;
  margin-bottom: 40px;
}
.footer__logo {
  font-family: var(--ff-head);
  font-size: 1.3rem; font-weight: 800;
  margin-bottom: 6px;
}
.footer__logo span { color: var(--brand-light); }
.footer__tagline { font-size: 0.85rem; color: var(--text-dim); }
.footer__links-group { display: flex; gap: 48px; }
.footer__col { display: flex; flex-direction: column; gap: 10px; }
.footer__col-head {
  font-size: 0.75rem; font-weight: 700;
  letter-spacing: 0.1em; text-transform: uppercase;
  color: var(--text-muted); margin-bottom: 4px;
}
.footer__col a { font-size: 0.85rem; color: var(--text-dim); transition: color 0.2s; }
.footer__col a:hover { color: var(--text-primary); }
.footer__bottom {
  display: flex; justify-content: space-between;
  padding-top: 24px; border-top: 1px solid var(--border);
  font-size: 0.8rem; color: var(--text-dim);
}

/* ── PAGE HEADER (inner pages) ──────────── */
.page-header {
  padding: 64px 0 56px;
  background: var(--bg2);
  border-bottom: 1px solid var(--border);
}
.page-header .eyebrow { margin-bottom: 10px; }
.page-header h1 {
  font-family: var(--ff-head);
  font-size: clamp(2rem, 4vw, 3rem);
  letter-spacing: -0.025em; line-height: 1.1;
  margin-bottom: 12px;
}
.page-header p { font-size: 1rem; color: var(--text-muted); max-width: 520px; line-height: 1.75; }

/* ── RESPONSIVE ─────────────────────────── */
@media (max-width: 768px) {
  .nav__links, .nav__cta { display: none; }
  .nav__burger { display: flex; }
  section { padding: 60px 0; }
  .footer__inner { grid-template-columns: 1fr; gap: 32px; }
  .footer__links-group { flex-wrap: wrap; gap: 32px; }
}
