/* ── Avermex Systems — Shared Design System ──────────────────────────── */
:root {
  --bg:        #04080f;
  --bg2:       #070d17;
  --surface:   rgba(255,255,255,0.03);
  --surface2:  rgba(255,255,255,0.055);
  --border:    rgba(255,255,255,0.08);
  --border2:   rgba(255,255,255,0.14);
  --text:      #e8edf4;
  --muted:     #7a8fa8;
  --faint:     rgba(255,255,255,0.35);
  --gold:      #D4A520;
  --gold-dim:  rgba(212,165,32,0.15);
  --green:     #1C2B1C;
  --green-lit: #5db870;
  --mint:      #4ade80;
  --blue:      #60a5fa;
  --purple:    #a78bfa;
  --red:       #f87171;
  --radius:    16px;
  --radius-sm: 10px;
}

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

html { scroll-behavior: smooth; font-size: 16px; }

body {
  font-family: 'Inter', 'Segoe UI', system-ui, sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

/* ── Typography ─────────────────────────────────────────────────────── */
h1 { font-size: clamp(2.4rem, 5vw, 4rem); font-weight: 800; line-height: 1.08; letter-spacing: -0.04em; }
h2 { font-size: clamp(1.8rem, 3.5vw, 2.8rem); font-weight: 700; line-height: 1.12; letter-spacing: -0.03em; }
h3 { font-size: clamp(1.2rem, 2vw, 1.6rem); font-weight: 700; line-height: 1.25; letter-spacing: -0.02em; }
h4 { font-size: 1rem; font-weight: 600; }
p  { color: var(--muted); line-height: 1.8; }

a { color: inherit; text-decoration: none; }

/* ── Layout ─────────────────────────────────────────────────────────── */
.wrap { width: min(1160px, calc(100% - 40px)); margin: 0 auto; }
.section { padding: 96px 0; }
.section-sm { padding: 64px 0; }

/* ── Topbar ─────────────────────────────────────────────────────────── */
.topbar {
  position: sticky; top: 0; z-index: 100;
  background: rgba(4,8,15,0.85);
  backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--border);
}
.topbar-inner {
  display: flex; align-items: center; justify-content: space-between;
  padding: 14px 0;
}
.topbar-logo img { height: 36px; width: auto; display: block; }
.topbar-nav { display: flex; gap: 6px; align-items: center; }
.topbar-nav a {
  padding: 7px 14px; border-radius: 8px;
  font-size: 13px; font-weight: 500; color: var(--muted);
  transition: color .15s, background .15s;
}
.topbar-nav a:hover { color: var(--text); background: var(--surface2); }
.topbar-nav a.active { color: var(--text); }
.nav-cta {
  padding: 8px 18px !important; border-radius: 8px !important;
  background: var(--gold-dim) !important; color: var(--gold) !important;
  border: 1px solid rgba(212,165,32,0.25) !important;
}

/* ── Buttons ─────────────────────────────────────────────────────────── */
.btn {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 12px 22px; border-radius: 10px;
  font-size: 14px; font-weight: 700; cursor: pointer;
  text-decoration: none; transition: all .15s;
  border: none;
}
.btn-primary {
  background: var(--gold); color: #04080f;
}
.btn-primary:hover { background: #e8b82a; }
.btn-ghost {
  background: var(--surface2); color: var(--text);
  border: 1px solid var(--border2);
}
.btn-ghost:hover { background: rgba(255,255,255,0.08); }
.btn-sm { padding: 9px 16px; font-size: 13px; }

/* ── Cards ─────────────────────────────────────────────────────────── */
.card {
  background: var(--surface); border: 1px solid var(--border);
  border-radius: var(--radius); padding: 28px;
  transition: border-color .2s;
}
.card:hover { border-color: var(--border2); }

/* ── Tags / Badges ──────────────────────────────────────────────────── */
.tag {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 4px 10px; border-radius: 999px;
  font-size: 11px; font-weight: 600; letter-spacing: .06em;
  text-transform: uppercase;
}
.tag-rust   { background: rgba(247,107,28,.12); color: #f76b1c; border: 1px solid rgba(247,107,28,.2); }
.tag-python { background: rgba(96,165,250,.1);  color: #60a5fa; border: 1px solid rgba(96,165,250,.2); }
.tag-audio  { background: rgba(167,139,250,.1); color: #a78bfa; border: 1px solid rgba(167,139,250,.2); }
.tag-fin    { background: rgba(74,222,128,.1);  color: #4ade80; border: 1px solid rgba(74,222,128,.2); }
.tag-stable { background: rgba(212,165,32,.1);  color: #D4A520; border: 1px solid rgba(212,165,32,.2); }
.tag-beta   { background: rgba(248,113,113,.1); color: #f87171; border: 1px solid rgba(248,113,113,.2); }

/* ── Eyebrow label ──────────────────────────────────────────────────── */
.eyebrow {
  display: block; font-size: 11px; font-weight: 700;
  letter-spacing: .14em; text-transform: uppercase; color: var(--gold);
  margin-bottom: 12px;
}

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

/* ── Footer ─────────────────────────────────────────────────────────── */
.footer {
  border-top: 1px solid var(--border); padding: 44px 0;
}
.footer-inner {
  display: flex; align-items: center; justify-content: space-between;
  flex-wrap: wrap; gap: 16px;
}
.footer-links { display: flex; gap: 24px; }
.footer-links a { font-size: 13px; color: var(--muted); }
.footer-links a:hover { color: var(--text); }
.footer-copy { font-size: 13px; color: var(--muted); }

/* ── Responsive ─────────────────────────────────────────────────────── */
@media (max-width: 768px) {
  .topbar-nav { display: none; }
  .section { padding: 64px 0; }
}

/* ── Animations ─────────────────────────────────────────────────────── */
@keyframes fadein { from { opacity:0; transform: translateY(18px); } to { opacity:1; transform: translateY(0); } }
.fadein { animation: fadein .5s ease both; }
.fadein-2 { animation: fadein .5s .1s ease both; }
.fadein-3 { animation: fadein .5s .2s ease both; }
