/* ==========================================================
   main.css — Shared variables, reset, header, footer, utils
   ========================================================== */

:root {
  --bg: #0b1220;
  --panel: rgba(255,255,255,.06);
  --panel2: rgba(255,255,255,.10);
  --text: rgba(255,255,255,.90);
  --muted: rgba(255,255,255,.70);
  --muted2: rgba(255,255,255,.55);
  --border: rgba(255,255,255,.12);
  --accent: #7c5cff;
  --accent2: #38bdf8;
  --ok: #22c55e;
  --shadow: 0 20px 60px rgba(0,0,0,.55);
  --radius: 16px;
  --radius2: 22px;
  --max: 1160px;
}

* { box-sizing: border-box; }
html, body { height: 100%; }

body {
  margin: 0;
  font-family: Inter, system-ui, -apple-system, Segoe UI, Roboto, Arial, sans-serif;
  color: var(--text);
  background:
    radial-gradient(800px 450px at 20% 10%, rgba(124,92,255,.25), transparent 55%),
    radial-gradient(700px 420px at 90% 20%, rgba(56,189,248,.18), transparent 60%),
    radial-gradient(900px 500px at 40% 95%, rgba(124,92,255,.14), transparent 60%),
    linear-gradient(180deg, #070b14, var(--bg));
  line-height: 1.55;
  overflow-x: hidden;
}

a { color: inherit; text-decoration: none; }
a:focus-visible, button:focus-visible, input:focus-visible, textarea:focus-visible {
  outline: 2px solid rgba(56,189,248,.7);
  outline-offset: 3px;
  border-radius: 10px;
}

.skip-link {
  position: absolute;
  top: -50px;
  left: 16px;
  background: #fff;
  color: #000;
  padding: 10px 12px;
  border-radius: 10px;
  z-index: 9999;
  transition: top .2s ease;
  font-weight: 600;
}
.skip-link:focus { top: 16px; }

.container {
  width: min(var(--max), calc(100% - 32px));
  margin: 0 auto;
}

/* ---- Header ---- */
header {
  position: sticky;
  top: 0;
  z-index: 50;
  backdrop-filter: blur(10px);
  background: rgba(11,18,32,.55);
  border-bottom: 1px solid var(--border);
}

.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 0;
  gap: 16px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  min-width: 220px;
}

.logo {
  width: 300px; height: 102px;
  max-width: 100%;
  background: url('/images/logo.webp') center / contain no-repeat;
  flex-shrink: 0;
}

nav ul {
  list-style: none;
  display: flex;
  gap: 18px;
  margin: 0;
  padding: 0;
  align-items: center;
}
nav a {
  font-size: 13px;
  color: var(--muted);
  padding: 8px 10px;
  border-radius: 10px;
  transition: background .15s ease, color .15s ease;
}
nav a:hover {
  background: rgba(255,255,255,.06);
  color: rgba(255,255,255,.92);
}

/* ---- Buttons ---- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  border: 1px solid var(--border);
  background: rgba(255,255,255,.04);
  color: var(--text);
  padding: 10px 12px;
  border-radius: 12px;
  font-weight: 600;
  font-size: 13px;
  cursor: pointer;
  transition: transform .12s ease, background .12s ease, border-color .12s ease;
  white-space: nowrap;
}
.btn:hover {
  transform: translateY(-1px);
  background: rgba(255,255,255,.07);
  border-color: rgba(255,255,255,.18);
}
.btn.primary {
  border: 0;
  background: linear-gradient(135deg, rgba(124,92,255,.95), rgba(56,189,248,.85));
  box-shadow: 0 18px 40px rgba(124,92,255,.18);
}
.btn.primary:hover { filter: brightness(1.03); }

/* ---- Footer ---- */
footer {
  padding: 28px 0 40px;
  border-top: 1px solid var(--border);
  background: rgba(0,0,0,.10);
}
.footer-grid {
  display: flex;
  justify-content: space-between;
  gap: 18px;
  flex-wrap: wrap;
  align-items: center;
}
.small {
  color: var(--muted2);
  font-size: 12px;
}
.footer-links {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}
.footer-links a {
  color: var(--muted2);
  font-size: 12px;
  padding: 6px 8px;
  border-radius: 10px;
}
.footer-links a:hover { background: rgba(255,255,255,.05); color: var(--text); }

/* ---- Responsive ---- */
@media (max-width: 980px) {
  .brand { min-width: auto; }
  .logo { width: 100px; height: 67px; }
  nav ul { display: none; }
}

/* ---- Reduced motion ---- */
@media (prefers-reduced-motion: reduce) {
  * { transition: none !important; scroll-behavior: auto !important; }
}
