/* ============================================
   KINGLABS AI — DESIGN TOKENS
   Property of Kingship Holdings Inc.
   Edit colors/fonts here, they cascade everywhere.
   ============================================ */
:root {
  --navy-dark: #1A1F3C;
  --blue: #2D5BE3;
  --accent-blue: #4DA6FF;
  --bg-dark: #0D1B2A;
  --white: #FFFFFF;

  --text-muted: #8FA3C4;
  --border-line: rgba(77, 166, 255, 0.18);
  --card-bg: rgba(26, 31, 60, 0.55);

  --font-display: 'Space Grotesk', sans-serif;
  --font-body: 'IBM Plex Sans', sans-serif;
  --font-mono: 'IBM Plex Mono', monospace;

  --max-width: 1120px;
  --radius: 6px;
}

* { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; }

body {
  background: var(--bg-dark);
  color: var(--white);
  font-family: var(--font-body);
  line-height: 1.6;
  font-size: 16px;
}

a { color: var(--accent-blue); text-decoration: none; }
a:hover { text-decoration: underline; }
a:focus-visible, button:focus-visible { outline: 2px solid var(--accent-blue); outline-offset: 3px; }

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

.container {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 24px;
}

/* ---------- EYEBROW / LABEL (mono, circuit-trace feel) ---------- */
.eyebrow {
  font-family: var(--font-mono);
  font-size: 13px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--accent-blue);
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 14px;
}
.eyebrow::before {
  content: '';
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--accent-blue);
  box-shadow: 0 0 8px var(--accent-blue);
  flex-shrink: 0;
}

/* ---------- HEADER / NAV ---------- */
.site-header {
  border-bottom: 1px solid var(--border-line);
  background: rgba(13, 27, 42, 0.9);
  backdrop-filter: blur(8px);
  position: sticky;
  top: 0;
  z-index: 100;
}
.site-header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 72px;
}
.logo-wrap {
  display: flex;
  align-items: center;
}
.logo-img { height: 34px; width: auto; }

.main-nav { display: flex; align-items: center; gap: 32px; }
.main-nav a {
  color: var(--white);
  font-size: 14px;
  font-weight: 500;
  font-family: var(--font-body);
}
.main-nav a:hover { color: var(--accent-blue); text-decoration: none; }
.main-nav a.active { color: var(--accent-blue); }

.nav-toggle {
  display: none;
  background: none;
  border: none;
  color: var(--white);
  font-size: 24px;
  cursor: pointer;
}

@media (max-width: 760px) {
  .main-nav {
    position: absolute;
    top: 72px;
    left: 0;
    right: 0;
    background: var(--navy-dark);
    flex-direction: column;
    align-items: flex-start;
    padding: 20px 24px;
    gap: 18px;
    border-bottom: 1px solid var(--border-line);
    display: none;
  }
  .main-nav.open { display: flex; }
  .nav-toggle { display: block; }
}

/* ---------- HERO ---------- */
.hero {
  padding: 100px 0 80px;
  position: relative;
  overflow: hidden;
  border-bottom: 1px solid var(--border-line);
}
.hero-trace {
  position: absolute;
  top: 0;
  right: -10%;
  width: 60%;
  height: 100%;
  opacity: 0.35;
  pointer-events: none;
}
.hero h1 {
  font-family: var(--font-display);
  font-size: clamp(36px, 6vw, 64px);
  font-weight: 700;
  line-height: 1.08;
  max-width: 780px;
  margin-bottom: 20px;
}
.hero h1 .accent { color: var(--accent-blue); }
.hero p.lede {
  font-size: 18px;
  color: var(--text-muted);
  max-width: 560px;
  margin-bottom: 36px;
}
.hero-actions { display: flex; gap: 16px; flex-wrap: wrap; }

/* ---------- BUTTONS ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 14px;
  padding: 13px 26px;
  border-radius: var(--radius);
  border: 1px solid transparent;
  cursor: pointer;
  transition: all 0.15s ease;
}
.btn-primary { background: var(--blue); color: var(--white); }
.btn-primary:hover { background: var(--accent-blue); text-decoration: none; }
.btn-outline { border-color: var(--border-line); color: var(--white); }
.btn-outline:hover { border-color: var(--accent-blue); color: var(--accent-blue); text-decoration: none; }

/* ---------- SECTIONS ---------- */
.section { padding: 72px 0; border-bottom: 1px solid var(--border-line); }
.section:last-of-type { border-bottom: none; }
.section-head { margin-bottom: 40px; max-width: 620px; }
.section-head h2 {
  font-family: var(--font-display);
  font-size: clamp(26px, 4vw, 36px);
  font-weight: 700;
  margin-bottom: 12px;
}
.section-head p { color: var(--text-muted); font-size: 16px; }

/* ---------- CARDS (circuit-board corner bracket motif) ---------- */
.card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 24px;
}
.card {
  position: relative;
  background: var(--card-bg);
  border: 1px solid var(--border-line);
  border-radius: var(--radius);
  padding: 28px;
}
.card::before, .card::after {
  content: '';
  position: absolute;
  width: 14px;
  height: 14px;
  border-color: var(--accent-blue);
  opacity: 0.7;
}
.card::before { top: -1px; left: -1px; border-top: 2px solid; border-left: 2px solid; }
.card::after { bottom: -1px; right: -1px; border-bottom: 2px solid; border-right: 2px solid; }
.card h3 { font-family: var(--font-display); font-size: 20px; margin-bottom: 10px; }
.card p { color: var(--text-muted); font-size: 15px; margin-bottom: 16px; }
.card .card-links { display: flex; gap: 16px; font-family: var(--font-mono); font-size: 13px; }

/* ---------- LEGAL / DOCUMENT PAGES ---------- */
.legal-page { padding: 64px 0 100px; }
.legal-page .container { max-width: 760px; }
.legal-page h1 {
  font-family: var(--font-display);
  font-size: clamp(30px, 5vw, 42px);
  margin-bottom: 8px;
}
.legal-meta { color: var(--text-muted); font-family: var(--font-mono); font-size: 13px; margin-bottom: 40px; }
.legal-page h2 {
  font-family: var(--font-display);
  font-size: 20px;
  margin-top: 40px;
  margin-bottom: 12px;
  color: var(--accent-blue);
}
.legal-page p { margin-bottom: 16px; color: var(--white); }
.legal-page ul { margin: 0 0 16px 20px; color: var(--white); }
.legal-page li { margin-bottom: 8px; }
.notice-box {
  background: var(--card-bg);
  border: 1px solid var(--border-line);
  border-left: 3px solid var(--accent-blue);
  border-radius: var(--radius);
  padding: 20px 24px;
  margin: 24px 0;
}
.notice-box p:last-child { margin-bottom: 0; }
.placeholder-flag {
  display: inline-block;
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--bg-dark);
  background: var(--accent-blue);
  padding: 2px 8px;
  border-radius: 3px;
  margin-left: 8px;
}

/* ---------- FOOTER ---------- */
.site-footer {
  border-top: 1px solid var(--border-line);
  padding: 48px 0 32px;
}
.footer-top {
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 32px;
  margin-bottom: 32px;
}
.footer-brand .logo-wrap { margin-bottom: 10px; }
.footer-brand p { color: var(--text-muted); font-size: 14px; max-width: 320px; }
.footer-links { display: flex; gap: 48px; flex-wrap: wrap; }
.footer-col h4 {
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--accent-blue);
  margin-bottom: 14px;
}
.footer-col a {
  display: block;
  color: var(--text-muted);
  font-size: 14px;
  margin-bottom: 10px;
}
.footer-col a:hover { color: var(--white); text-decoration: none; }
.footer-bottom {
  border-top: 1px solid var(--border-line);
  padding-top: 24px;
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
  font-size: 13px;
  color: var(--text-muted);
  font-family: var(--font-mono);
}

@media (max-width: 600px) {
  .footer-top, .footer-bottom { flex-direction: column; }
}
