/**
 * LinX Design System — Global CSS
 * Neon-luxury aesthetic: deep black, gold accents, subtle neon glows
 * Mirrors the LinX mobile app visual language.
 */

/* ── DESIGN TOKENS ───────────────────────────────────────────────────────── */
:root {
  /* Colour palette */
  --gold:          #D4A853;
  --gold-light:    #E9C66A;
  --gold-dark:     #A27A33;
  --gold-glow:     rgba(212, 168, 83, 0.18);
  --neon-blue:     #3B82D4;
  --neon-violet:   #7C5CD8;
  --neon-cyan:     #06B6D4;

  /* Backgrounds */
  --bg:            #000000;
  --bg-deep:       #000000;
  --bg-surface:    #050507;
  --bg-card:       #0A0A0E;
  --bg-card-hover: #0F0F14;
  --bg-glass:      rgba(10, 10, 14, 0.85);

  /* Text */
  --text:          #F4F4F5;
  --text-muted:    #A1A1AA;
  --text-dim:      #71717A;

  /* Borders */
  --border:        #1C1C24;
  --border-gold:   rgba(212, 168, 83, 0.35);
  --border-hover:  rgba(212, 168, 83, 0.6);

  /* Status */
  --success:       #22C55E;
  --error:         #EF4444;
  --warning:       #F59E0B;
  --info:          #3B82F6;

  /* Radii */
  --radius-sm:     8px;
  --radius:        14px;
  --radius-lg:     20px;
  --radius-pill:   999px;

  /* Shadows */
  --shadow-gold:   0 0 24px rgba(212, 168, 83, 0.12);
  --shadow-card:   0 4px 24px rgba(0, 0, 0, 0.6);

  /* Typography */
  --font:          'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', system-ui, sans-serif;
  --font-mono:     'SF Mono', 'Fira Code', Consolas, monospace;

  /* Spacing scale */
  --sp-1: 4px;
  --sp-2: 8px;
  --sp-3: 12px;
  --sp-4: 16px;
  --sp-5: 20px;
  --sp-6: 24px;
  --sp-8: 32px;
  --sp-10: 40px;
  --sp-12: 48px;
  --sp-16: 64px;
  --sp-20: 80px;

  /* Layout */
  --max-w:         1080px;
  --nav-h:         64px;
}

/* ── RESET ───────────────────────────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; font-size: 14px; }
body {
  font-family: var(--font);
  background: var(--bg-deep);
  color: var(--text);
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
a { color: var(--gold); text-decoration: none; transition: color 0.15s; }
a:hover { color: var(--gold-light); }
img, svg { display: block; max-width: 100%; }
button { font-family: var(--font); cursor: pointer; border: none; background: none; }

/* ── SCROLLBAR ───────────────────────────────────────────────────────────── */
::-webkit-scrollbar { width: 5px; height: 5px; }
::-webkit-scrollbar-track { background: var(--bg); }
::-webkit-scrollbar-thumb { background: var(--border); border-radius: 3px; }
::-webkit-scrollbar-thumb:hover { background: var(--gold-dark); }

/* ── LAYOUT ──────────────────────────────────────────────────────────────── */
.container { max-width: var(--max-w); margin: 0 auto; padding: 0 6%; }
.section { padding: var(--sp-20) 0; }
.section--alt { background: var(--bg-surface); border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); }

/* ── NAV ─────────────────────────────────────────────────────────────────── */
.nav {
  position: sticky; top: 0; z-index: 200;
  height: var(--nav-h);
  background: var(--bg-glass);
  border-bottom: 1px solid var(--border);
  backdrop-filter: blur(16px);
  display: flex; align-items: center; justify-content: space-between;
  padding: 0 6%;
}
.nav__logo {
  font-size: 22px; font-weight: 900; letter-spacing: -0.04em;
  display: flex; align-items: center; gap: 1px;
}
.nav__logo .l { color: var(--gold); text-shadow: 0 0 12px var(--gold-glow); }
.nav__logo .x { color: #fff; }
.nav__links {
  display: flex; gap: 28px; list-style: none;
  font-size: 11px; font-weight: 600; letter-spacing: 0.14em; text-transform: uppercase;
}
.nav__links a { color: var(--text-muted); }
.nav__links a:hover, .nav__links a.active { color: var(--gold); }
.nav__actions { display: flex; align-items: center; gap: 10px; }

/* ── BUTTONS ─────────────────────────────────────────────────────────────── */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 6px;
  padding: 9px 22px; border-radius: var(--radius-pill);
  font-size: 11px; font-weight: 700; letter-spacing: 0.14em; text-transform: uppercase;
  transition: all 0.18s ease; white-space: nowrap; cursor: pointer;
}
.btn--primary {
  background: var(--gold); color: var(--bg);
  box-shadow: 0 0 16px rgba(212, 168, 83, 0.25);
}
.btn--primary:hover { background: var(--gold-light); color: var(--bg); box-shadow: 0 0 24px rgba(212, 168, 83, 0.45); }
.btn--outline {
  background: transparent; border: 1px solid var(--border-gold); color: var(--gold);
}
.btn--outline:hover { background: var(--gold-glow); border-color: var(--gold); }
.btn--ghost {
  background: transparent; border: 1px solid var(--border); color: var(--text-muted);
}
.btn--ghost:hover { border-color: var(--border-gold); color: var(--gold); }
.btn--sm { padding: 6px 14px; font-size: 10px; }
.btn--lg { padding: 13px 32px; font-size: 12px; }
.btn--full { width: 100%; justify-content: center; }

/* ── SECTION LABELS ──────────────────────────────────────────────────────── */
.eyebrow {
  font-size: 10px; font-weight: 700; letter-spacing: 0.3em; text-transform: uppercase;
  color: var(--gold); margin-bottom: 10px; display: block;
}
.section-title {
  font-size: clamp(24px, 4vw, 36px); font-weight: 800; line-height: 1.15;
  margin-bottom: 12px;
}
.section-sub {
  font-size: 14px; color: var(--text-muted); line-height: 1.75; max-width: 560px;
}

/* ── CARDS ───────────────────────────────────────────────────────────────── */
.card {
  background: var(--bg-card); border: 1px solid var(--border);
  border-radius: var(--radius); padding: var(--sp-6);
  transition: border-color 0.2s, transform 0.2s;
}
.card:hover { border-color: var(--border-gold); }
.card--glow:hover { box-shadow: var(--shadow-gold); }

/* ── BADGES ──────────────────────────────────────────────────────────────── */
.badge {
  display: inline-flex; align-items: center; gap: 4px;
  padding: 3px 10px; border-radius: var(--radius-pill);
  font-size: 10px; font-weight: 700; text-transform: uppercase; letter-spacing: 0.1em;
}
.badge--gold    { background: rgba(212,168,83,0.12); color: var(--gold); }
.badge--green   { background: rgba(34,197,94,0.12);  color: var(--success); }
.badge--blue    { background: rgba(59,130,246,0.12); color: var(--info); }
.badge--red     { background: rgba(239,68,68,0.12);  color: var(--error); }
.badge--violet  { background: rgba(124,92,216,0.12); color: var(--neon-violet); }
.badge--live::before {
  content: ''; display: inline-block; width: 6px; height: 6px;
  background: var(--success); border-radius: 50%;
  animation: pulse-dot 1.5s ease-in-out infinite;
}
@keyframes pulse-dot {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.5; transform: scale(1.3); }
}

/* ── FORM ELEMENTS ───────────────────────────────────────────────────────── */
.form-group { margin-bottom: 14px; }
.form-label {
  display: block; font-size: 10px; font-weight: 700;
  letter-spacing: 0.16em; text-transform: uppercase;
  color: var(--text-muted); margin-bottom: 6px;
}
.form-input, .form-select, .form-textarea {
  width: 100%; background: var(--bg-card); border: 1px solid var(--border);
  color: var(--text); padding: 10px 12px; border-radius: var(--radius-sm);
  font-size: 13px; font-family: var(--font); outline: none;
  transition: border-color 0.2s;
}
.form-input:focus, .form-select:focus, .form-textarea:focus {
  border-color: var(--gold);
}
.form-textarea { resize: vertical; min-height: 100px; }
.form-select { appearance: none; cursor: pointer; }

/* ── STAT CARDS ──────────────────────────────────────────────────────────── */
.stat-num { font-size: 28px; font-weight: 900; color: var(--gold); letter-spacing: -0.02em; }
.stat-lbl { font-size: 11px; color: var(--text-muted); letter-spacing: 0.14em; text-transform: uppercase; }

/* ── TOAST ───────────────────────────────────────────────────────────────── */
.toast {
  position: fixed; bottom: 24px; right: 24px; z-index: 9999;
  background: var(--bg-card); border: 1px solid var(--gold);
  border-radius: var(--radius-sm); padding: 12px 20px;
  font-size: 13px; font-weight: 500; color: var(--text);
  display: none; max-width: 340px;
  animation: toastIn 0.25s ease;
}
.toast.toast--success { border-color: var(--success); }
.toast.toast--error   { border-color: var(--error); }
@keyframes toastIn {
  from { transform: translateY(12px); opacity: 0; }
  to   { transform: translateY(0);    opacity: 1; }
}

/* ── CURSOR ──────────────────────────────────────────────────────────────── */
#cursor {
  position: fixed; width: 20px; height: 20px;
  border: 2px solid rgba(212, 168, 83, 0.55); border-radius: 50%;
  pointer-events: none; transform: translate(-50%, -50%);
  transition: transform 0.08s ease-out, width 0.15s, height 0.15s;
  z-index: 9998;
}

/* ── STARS ───────────────────────────────────────────────────────────────── */
.star {
  position: fixed; width: 1px; height: 1px;
  background: rgba(255,255,255,0.4); border-radius: 50%;
  pointer-events: none; animation: twinkle 4s ease-in-out infinite;
}
@keyframes twinkle {
  0%, 100% { opacity: 0.12; }
  50%       { opacity: 0.85; }
}

/* ── DIVIDER ─────────────────────────────────────────────────────────────── */
.divider { border: none; border-top: 1px solid var(--border); margin: 0; }

/* ── FOOTER ──────────────────────────────────────────────────────────────── */
.footer {
  background: var(--bg-surface); border-top: 1px solid var(--border);
  padding: var(--sp-12) 0 var(--sp-6);
}
.footer__grid {
  display: grid; grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 40px; margin-bottom: 36px;
}
.footer__brand-logo { font-size: 22px; font-weight: 900; color: var(--gold); margin-bottom: 4px; }
.footer__tagline { font-size: 12px; color: var(--text-muted); font-style: italic; margin-bottom: 10px; }
.footer__col h4 {
  font-size: 10px; font-weight: 700; text-transform: uppercase;
  letter-spacing: 0.2em; color: var(--text-dim); margin-bottom: 14px;
}
.footer__links { list-style: none; display: flex; flex-direction: column; gap: 8px; }
.footer__links a { font-size: 13px; color: var(--text-muted); }
.footer__links a:hover { color: var(--gold); }
.footer__bottom {
  border-top: 1px solid var(--border); padding-top: 16px;
  display: flex; justify-content: space-between; align-items: center;
  font-size: 11px; color: var(--text-dim); flex-wrap: wrap; gap: 8px;
}
.footer__made {
  text-align: center; font-size: 11px; color: var(--text-dim);
  padding-top: 14px; border-top: 1px solid var(--border); margin-top: 14px;
}

/* ── RESPONSIVE ──────────────────────────────────────────────────────────── */
@media (max-width: 900px) {
  .nav__links { display: none; }
  .footer__grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 600px) {
  .section { padding: var(--sp-12) 0; }
  .footer__grid { grid-template-columns: 1fr; }
  .footer__bottom { flex-direction: column; align-items: flex-start; }
}
