/* ═══════════════════════════════════════════════════════════
   UNIONAI / K0NSULT — Global Design System
   styles.css · 2026-05
   ═══════════════════════════════════════════════════════════ */

/* ── CSS custom properties ─────────────────────────────────── */
:root {
  /* Backgrounds */
  --bg:         #0d1117;
  --panel:      #161b22;
  --panel-2:    #1c2230;

  /* Borders */
  --border:        #21262d;
  --border-bright: #30363d;

  /* Text */
  --text:      #e6edf3;
  --text-dim:  #8b949e;
  --text-mute: #5a6573;

  /* Brand accent — neon green */
  --accent:  #39ff14;

  /* Semantic colours */
  --warn:    #d29922;
  --danger:  #f85149;
  --ok:      #3fb950;
  --info:    #58a6ff;

  /* Typography */
  --mono: 'JetBrains Mono', ui-monospace, 'Cascadia Code', 'Fira Mono', Consolas, monospace;
  --sans: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
}

/* ── Reset & base ───────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; }

body {
  background: var(--bg);
  color: var(--text);
  font-family: var(--sans);
  font-size: 15px;
  line-height: 1.6;
  min-height: 100vh;
  -webkit-font-smoothing: antialiased;
}

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

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

/* ── Site header ────────────────────────────────────────────── */
.site-header {
  background: var(--panel);
  border-bottom: 1px solid var(--border);
  position: sticky;
  top: 0;
  z-index: 100;
}

.header-inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
  height: 58px;
  display: flex;
  align-items: center;
  gap: 32px;
}

.brand-mark {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  color: var(--text);
  flex-shrink: 0;
}
.brand-mark:hover { text-decoration: none; }

.brand-mark .name {
  display: flex;
  flex-direction: column;
  line-height: 1.25;
}
.brand-mark .name strong {
  font-size: 15px;
  font-weight: 700;
  color: var(--text);
  font-family: var(--mono);
}
.brand-mark .name small {
  font-size: 10px;
  color: var(--text-mute);
  letter-spacing: .3px;
}

.site-nav {
  display: flex;
  align-items: center;
  gap: 4px;
  margin-left: auto;
  flex-wrap: wrap;
}

.site-nav a {
  font-size: 13px;
  font-weight: 500;
  color: var(--text-dim);
  padding: 5px 10px;
  border-radius: 4px;
  text-decoration: none;
  transition: color .12s, background .12s;
}
.site-nav a:hover { color: var(--text); background: rgba(255,255,255,.05); }
.site-nav a.active { color: var(--accent); }

/* ── Hero section ───────────────────────────────────────────── */
.hero {
  background: linear-gradient(180deg, #0f1621 0%, var(--bg) 100%);
  border-bottom: 1px solid var(--border);
  padding: 56px 0 40px;
}

.hero-inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px 40px;
}

.hero-eyebrow {
  font-family: var(--mono);
  font-size: 11px;
  color: var(--accent);
  letter-spacing: 1.2px;
  text-transform: uppercase;
  margin-bottom: 12px;
  opacity: .85;
}

h1 { font-size: clamp(26px, 4vw, 48px); font-weight: 700; line-height: 1.15; color: var(--text); }
h2 { font-size: 20px; font-weight: 600; color: var(--text); }
h3 { font-size: 16px; font-weight: 600; color: var(--text); }

.tagline {
  font-size: 16px;
  color: var(--text-dim);
  max-width: 680px;
  line-height: 1.65;
  margin-top: 10px;
}

/* ── Main section wrapper ───────────────────────────────────── */
.section { padding: 40px 0; }

.section-inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
}

.section-eyebrow {
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 1.4px;
  text-transform: uppercase;
  color: var(--text-mute);
  margin-bottom: 14px;
}

/* ── Buttons ────────────────────────────────────────────────── */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 9px 18px;
  border-radius: 3px;
  font-size: 13px;
  font-weight: 600;
  font-family: var(--sans);
  cursor: pointer;
  text-decoration: none;
  transition: opacity .15s;
  border: 1px solid transparent;
  background: var(--accent);
  color: #0d1117;
}
.btn:hover { opacity: .85; text-decoration: none; }

.btn-secondary {
  background: transparent;
  color: var(--accent);
  border-color: rgba(57,255,20,.35);
}
.btn-secondary:hover { background: rgba(57,255,20,.06); }

/* ── Site footer ────────────────────────────────────────────── */
.site-footer {
  background: var(--panel);
  border-top: 1px solid var(--border);
  margin-top: auto;
}

.footer-inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 40px 24px 32px;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
  gap: 32px;
}

.footer-inner h4 {
  font-family: var(--mono);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 1.2px;
  text-transform: uppercase;
  color: var(--text-mute);
  margin-bottom: 12px;
}

.footer-inner ul {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 7px;
}

.footer-inner ul li a {
  font-size: 13px;
  color: var(--text-dim);
  text-decoration: none;
  transition: color .12s;
}
.footer-inner ul li a:hover { color: var(--text); text-decoration: none; }

.footer-bottom {
  max-width: 1200px;
  margin: 0 auto;
  padding: 16px 24px;
  border-top: 1px solid var(--border);
  font-family: var(--mono);
  font-size: 11px;
  color: var(--text-mute);
}

/* ── Badge — status chips ───────────────────────────────────── */
.badge {
  display: inline-block;
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: .8px;
  padding: 2px 8px;
  border-radius: 2px;
  text-transform: uppercase;
  font-weight: 600;
  white-space: nowrap;
}
.badge.LIVE  { background: rgba(57,255,20,.12);  color: #39ff14;  border: 1px solid rgba(57,255,20,.3);   }
.badge.CTRL  { background: rgba(0,200,255,.10);  color: #00c8ff;  border: 1px solid rgba(0,200,255,.25);  }
.badge.RD    { background: rgba(255,200,0,.10);  color: #ffc800;  border: 1px solid rgba(255,200,0,.25);  }
.badge.PLAN  { background: rgba(150,150,150,.1); color: #888888;  border: 1px solid rgba(150,150,150,.2); }

/* Risk badges */
.badge.prohibited { background: rgba(248,81,73,.12);  color: #f85149; border: 1px solid rgba(248,81,73,.35); }
.badge.high       { background: rgba(219,109,40,.12); color: #db6d28; border: 1px solid rgba(219,109,40,.35); }
.badge.limited    { background: rgba(210,153,34,.12); color: #d29922; border: 1px solid rgba(210,153,34,.35); }
.badge.minimal    { background: rgba(63,185,80,.12);  color: #3fb950; border: 1px solid rgba(63,185,80,.35);  }

/* ── Utility classes ────────────────────────────────────────── */
.mono { font-family: var(--mono); }

.text-accent  { color: var(--accent);    }
.text-dim     { color: var(--text-dim);  }
.text-mute    { color: var(--text-mute); }
.text-warn    { color: var(--warn);      }
.text-danger  { color: var(--danger);    }

/* ── Animations ─────────────────────────────────────────────── */
@keyframes pulse {
  0%, 100% { opacity: 1;   }
  50%       { opacity: .35; }
}

/* ── Responsive ─────────────────────────────────────────────── */
@media (max-width: 768px) {
  .header-inner {
    padding: 0 14px;
    gap: 12px;
    height: auto;
    min-height: 54px;
    flex-wrap: wrap;
    padding-top: 8px;
    padding-bottom: 8px;
  }

  .site-nav {
    width: 100%;
    gap: 2px;
    overflow-x: auto;
    padding-bottom: 4px;
    margin-left: 0;
  }

  .site-nav a { font-size: 12px; padding: 4px 8px; }

  .hero { padding: 32px 0 20px; }
  .hero-inner { padding: 0 14px 28px; }

  .section-inner { padding: 0 14px; }

  .footer-inner { padding: 28px 14px 20px; gap: 20px; }
  .footer-bottom { padding: 12px 14px; }
}
