/* ═══════════════════════════════════════════════════════════════
   AgoraIQ Design System — site.css
   Source of truth for all landing pages.
   Extracted from member-portal.html design language.
   ═══════════════════════════════════════════════════════════════ */

/* ── Tokens ─────────────────────────────────────────────────── */
:root {
  --bg:        #08090d;
  --surface:   #0f1018;
  --card:      #13141e;
  --border:    #1e2030;
  --border-hi: #2a2d42;
  --cyan:      #00d4ff;
  --cyan-dim:  rgba(0,212,255,.12);
  --amber:     #f59e0b;
  --amber-dim: rgba(245,158,11,.12);
  --green:     #10b981;
  --green-dim: rgba(16,185,129,.12);
  --red:       #ef4444;
  --red-dim:   rgba(239,68,68,.10);
  --text:      #e2e4ef;
  --muted:     #5a5e7a;
  --label:     #8b90b0;
  --font-display: 'Syne', sans-serif;
  --font-heading: 'Albert Sans', sans-serif;
  --font-mono:   'DM Mono', monospace;
}

/* ── Reset ──────────────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-mono);
  font-size: 14px;
  line-height: 1.65;
  min-height: 100vh;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

/* ── Grid background ────────────────────────────────────────── */
body::before {
  content: '';
  position: fixed; inset: 0; z-index: 0;
  background-image:
    linear-gradient(rgba(0,212,255,.03) 1px, transparent 1px),
    linear-gradient(90deg, rgba(0,212,255,.03) 1px, transparent 1px);
  background-size: 48px 48px;
  pointer-events: none;
}

/* ── Brand / Logo ───────────────────────────────────────────── */
.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
}
.brand-mark {
  width: 32px; height: 32px;
  background: linear-gradient(135deg, var(--cyan), #0066ff);
  clip-path: polygon(50% 0%,100% 25%,100% 75%,50% 100%,0% 75%,0% 25%);
  flex: 0 0 auto;
}
.brand-text {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 18px;
  letter-spacing: -0.5px;
  color: var(--text);
  white-space: nowrap;
  line-height: 1;
}
.brand-iq {
  color: var(--cyan);
  margin-left: 0;
}
.brand-sm .brand-mark { width: 22px; height: 22px; }
.brand-sm .brand-text { font-size: 14px; }

/* ── Header ─────────────────────────────────────────────────── */
.site-header {
  position: sticky; top: 0; z-index: 100;
  background: rgba(8,9,13,.85);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--border);
  padding: 0 32px;
  display: flex; align-items: center; justify-content: space-between;
  height: 60px;
}
.site-header nav { display: flex; gap: 6px; }
.site-header nav a {
  color: var(--label);
  text-decoration: none;
  font-size: 12px;
  letter-spacing: .04em;
  padding: 6px 14px;
  border-radius: 6px;
  transition: all .15s;
  border: 1px solid transparent;
}
.site-header nav a:hover {
  color: var(--text);
  background: var(--card);
  border-color: var(--border);
}
.site-header nav a.active {
  color: var(--cyan);
  border-color: var(--border-hi);
}

/* ── Buttons ────────────────────────────────────────────────── */
.btn {
  display: inline-flex; align-items: center; gap: 6px;
  font-family: var(--font-mono);
  font-size: 12px; font-weight: 500;
  letter-spacing: .04em;
  padding: 8px 20px;
  border-radius: 8px;
  border: 1px solid transparent;
  cursor: pointer;
  text-decoration: none;
  transition: all .2s;
}
.btn-cyan {
  background: var(--cyan);
  color: #08090d;
  border-color: var(--cyan);
  font-weight: 600;
}
.btn-cyan:hover {
  background: #00b8e0;
  box-shadow: 0 0 20px rgba(0,212,255,.25);
}
.btn-outline {
  background: transparent;
  color: var(--label);
  border-color: var(--border);
}
.btn-outline:hover {
  color: var(--text);
  border-color: var(--border-hi);
  background: var(--card);
}
.btn-ghost {
  background: none; border: none;
  color: var(--label);
  padding: 6px 12px;
}
.btn-ghost:hover { color: var(--cyan); }

/* ── Cards ──────────────────────────────────────────────────── */
.card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 12px;
  overflow: hidden;
  transition: border-color .2s;
}
.card:hover { border-color: var(--border-hi); }

/* ── Section headers ────────────────────────────────────────── */
.section-label {
  display: flex; align-items: center; gap: 10px;
  margin-bottom: 20px;
}
.section-label h2 {
  font-family: var(--font-heading);
  font-size: 13px; font-weight: 700;
  letter-spacing: .12em; text-transform: uppercase;
  color: var(--label);
}
.section-label::after {
  content: ''; flex: 1; height: 1px;
  background: linear-gradient(90deg, var(--border) 0%, transparent 100%);
}

/* ── Page container ─────────────────────────────────────────── */
.page {
  position: relative; z-index: 1;
  max-width: 960px; margin: 0 auto;
  padding: 48px 24px 80px;
}
.page-wide {
  max-width: 1120px;
}

/* ── Typography ─────────────────────────────────────────────── */
h1 {
  font-family: var(--font-heading);
  font-size: clamp(32px, 5vw, 52px);
  font-weight: 900;
  letter-spacing: -2px;
  line-height: 1.05;
  color: var(--text);
  text-transform: uppercase;
}
h2 {
  font-family: var(--font-heading);
  font-size: 22px;
  font-weight: 800;
  letter-spacing: -0.5px;
  color: var(--text);
}
h3 {
  font-family: var(--font-heading);
  font-size: 16px;
  font-weight: 700;
  letter-spacing: -0.3px;
  color: var(--text);
}
p { color: var(--label); line-height: 1.7; }
a { color: var(--cyan); }

.accent { color: var(--cyan); }
.muted  { color: var(--muted); }
.small  { font-size: 11px; }

/* ── Pill / Badge ───────────────────────────────────────────── */
.pill {
  display: inline-flex; align-items: center; gap: 6px;
  font-size: 10px; font-weight: 500; letter-spacing: .1em;
  text-transform: uppercase;
  padding: 4px 12px; border-radius: 20px;
}
.pill-cyan  { background: var(--cyan-dim); color: var(--cyan); border: 1px solid rgba(0,212,255,.2); }
.pill-green { background: var(--green-dim); color: var(--green); border: 1px solid rgba(16,185,129,.2); }

/* ── Footer ─────────────────────────────────────────────────── */
.site-footer {
  position: relative; z-index: 1;
  border-top: 1px solid var(--border);
  padding: 48px 32px 24px;
  background: var(--surface);
}
.footer-inner {
  max-width: 960px; margin: 0 auto;
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 40px;
}
.footer-brand-block {
  display: flex; flex-direction: column; gap: 12px;
}
.footer-tagline {
  font-size: 12px; color: var(--muted); line-height: 1.6;
  max-width: 260px;
}
.footer-col h4 {
  font-family: var(--font-heading);
  font-size: 10px; font-weight: 700;
  letter-spacing: .14em; text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 14px;
}
.footer-col a {
  display: block;
  font-size: 12px; color: var(--label);
  text-decoration: none;
  padding: 3px 0;
  transition: color .15s;
}
.footer-col a:hover { color: var(--cyan); }

.footer-bottom {
  max-width: 960px; margin: 32px auto 0;
  padding-top: 20px;
  border-top: 1px solid var(--border);
  display: flex; justify-content: space-between; align-items: center;
  font-size: 11px; color: var(--muted);
}
.footer-bottom a { color: var(--muted); text-decoration: none; margin-left: 16px; }
.footer-bottom a:hover { color: var(--label); }
.footer-legal-warn {
  max-width: 960px; margin: 16px auto 0;
  font-size: 10px; color: var(--muted); line-height: 1.5;
  opacity: .7;
}

/* ── KPI row ────────────────────────────────────────────────── */
.kpi-row {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
  gap: 16px;
  margin: 24px 0;
}
.kpi {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 20px;
  text-align: center;
}
.kpi-value {
  font-family: var(--font-heading);
  font-size: 28px; font-weight: 800;
  color: var(--cyan);
}
.kpi-label {
  font-size: 10px; letter-spacing: .1em;
  text-transform: uppercase; color: var(--muted);
  margin-bottom: 6px;
}
.kpi-sub { font-size: 11px; color: var(--muted); margin-top: 4px; }

/* ── Hero ───────────────────────────────────────────────────── */
.hero {
  padding: 64px 0 48px;
  text-align: center;
  position: relative;
}
.hero::before {
  content: '';
  position: absolute; top: -100px; left: 50%; transform: translateX(-50%);
  width: 600px; height: 400px;
  background: radial-gradient(ellipse, rgba(0,212,255,.06) 0%, transparent 70%);
  pointer-events: none;
}
.hero h1 { margin-bottom: 20px; margin-top: 16px; }
.hero p { max-width: 560px; margin: 0 auto 32px; font-size: 15px; }
.hero-actions {
  display: flex; gap: 12px; justify-content: center; flex-wrap: wrap;
}

/* ── Feature grid ───────────────────────────────────────────── */
.feature-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 16px;
  margin: 32px 0;
}
.feature-card {
  padding: 24px;
}
.feature-icon {
  width: 40px; height: 40px;
  border-radius: 10px;
  display: flex; align-items: center; justify-content: center;
  font-size: 18px;
  background: var(--cyan-dim);
  margin-bottom: 14px;
}
.feature-card h3 { margin-bottom: 8px; font-size: 14px; }
.feature-card p { font-size: 12px; }

/* ── Legal pages ────────────────────────────────────────────── */
.legal-page h1 { font-size: 28px; margin-bottom: 8px; }
.legal-page .legal-updated { font-size: 11px; color: var(--muted); margin-bottom: 32px; }
.legal-page h2 { font-size: 16px; margin: 32px 0 12px; }
.legal-page p { margin-bottom: 16px; }
.legal-page ul { margin: 0 0 16px 20px; color: var(--label); }
.legal-page li { margin-bottom: 6px; font-size: 13px; }

/* ── Responsive ─────────────────────────────────────────────── */
@media (max-width: 768px) {
  .site-header { padding: 0 16px; }
  .site-header nav { display: none; }
  .page { padding: 32px 16px 60px; }
  .footer-inner { grid-template-columns: 1fr 1fr; gap: 24px; }
  .footer-bottom { flex-direction: column; gap: 8px; text-align: center; }
  .hero { padding: 40px 0 32px; }
  .kpi-row { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 480px) {
  .footer-inner { grid-template-columns: 1fr; }
  .hero-actions { flex-direction: column; align-items: center; }
}
