/* UniOn Landing – main styles (mobile-first) */
:root{
  --space-1:4px;--space-2:8px;--space-3:12px;--space-4:16px;--space-5:24px;--space-6:32px;--space-8:48px;
  --accent:#4F46E5;--accent-2:#22D3EE;--bg:#0F172A;--text:#E5E7EB;--muted:#9CA3AF;
}

/* Typography */
h1,h2,h3{letter-spacing:-0.02em}
h1{font-weight:800}
h2{font-weight:700}
h3{font-weight:700}
p{line-height:1.6}

/* Utilities */
.visually-hidden{position:absolute!important;height:1px;width:1px;overflow:hidden;clip:rect(1px,1px,1px,1px);white-space:nowrap}

/* Micro animations */
.fade-in{opacity:0;transform:translateY(10px);transition:opacity .4s ease,transform .4s ease}
.fade-in.is-visible{opacity:1;transform:none}

/* Buttons */
.btn{display:inline-flex;align-items:center;gap:10px;padding:10px 14px;border-radius:12px;background:#111827;border:1px solid rgba(255,255,255,.1);color:var(--text);text-decoration:none}
.btn:hover{background:#0F172A}

/* Header */
.site-header{position:sticky;top:0;z-index:100;background:rgba(10,15,28,.6);backdrop-filter:blur(8px);border-bottom:1px solid rgba(255,255,255,.06);transition:box-shadow .2s ease, background .2s ease}
.site-header.is-scrolled{box-shadow:0 4px 18px rgba(0,0,0,.35);background:rgba(10,15,28,.7)}
.brand{display:flex;align-items:center;gap:10px;font-weight:700;text-decoration:none;color:var(--text)}
.brand img{width:32px;height:32px;border-radius:8px}
.nav{display:flex;align-items:center;justify-content:space-between;padding:14px 0}
.nav__links{display:flex;align-items:center;gap:16px}
.nav__links a{color:var(--text);text-decoration:none;border-radius:8px;padding:6px 8px}
.nav__links a:hover{background:rgba(255,255,255,.06)}
.nav__end{display:flex;align-items:center;gap:12px}
.lang-dropdown{position:relative}
.lang-button{appearance:none;border:1px solid rgba(255,255,255,.12);background:#0B1220;color:var(--text);border-radius:10px;padding:8px 10px;display:inline-flex;align-items:center;gap:8px;cursor:pointer}
.lang-button svg{width:16px;height:16px;fill:currentColor;opacity:.9}
.lang-button .badge{background:#111827;border:1px solid rgba(255,255,255,.1);padding:2px 6px;border-radius:6px;font-weight:700;font-size:12px}
.lang-menu{position:absolute;right:0;top:110%;min-width:160px;background:rgba(10,15,28,.98);border:1px solid rgba(255,255,255,.08);border-radius:10px;padding:6px;display:flex;flex-direction:column;gap:4px;box-shadow:0 10px 26px rgba(0,0,0,.35)}
.lang-menu[hidden]{display:none}
.lang-menu button{appearance:none;border:0;background:transparent;color:var(--text);padding:8px 10px;border-radius:8px;text-align:left;cursor:pointer}
.lang-menu button:hover,.lang-menu button[aria-checked="true"]{background:rgba(255,255,255,.06)}
.menu-toggle{appearance:none;border:1px solid rgba(255,255,255,.12);background:#0B1220;color:var(--text);border-radius:10px;padding:8px;display:none;align-items:center;justify-content:center}
.menu-toggle svg{width:20px;height:20px}
.menu-toggle svg path{stroke:currentColor;stroke-width:2;stroke-linecap:round}

@media (max-width: 820px){
  .nav__links{position:fixed;inset:64px 12px auto 12px;display:none;flex-direction:column;align-items:stretch;background:rgba(10,15,28,.95);border:1px solid rgba(255,255,255,.08);border-radius:14px;padding:12px;gap:8px}
  .site-header.is-open .nav__links{display:flex}
  .menu-toggle{display:inline-flex}
}

/* Skip link */
.skip-link{position:absolute;left:-9999px}
.skip-link:focus{left:16px;top:16px;background:#000;color:#fff;padding:8px 12px;border-radius:8px;z-index:200}

/* Footer */
footer a{color:var(--text)}
footer a:hover{text-decoration:underline}

/* High-contrast focus */
:focus-visible{outline:3px solid var(--accent-2);outline-offset:2px}

/* Prefer-reduced-motion */
@media (prefers-reduced-motion: reduce){
  *{animation:none!important;transition:none!important}
}
