/* ─────────────────────────────────────────
   BASE — shared across every page
   ───────────────────────────────────────── */

/* ── DESIGN TOKENS ── */
:root {
  --bg: #020408;
  --surface: #080d14;
  --surface2: #0d1520;
  --accent: #00d4ff;
  --accent2: #7b2fff;
  --accent3: #00ff9d;
  --text: #e8edf5;
  --text-muted: #5a6a7e;
  --text-dim: #8899aa;
  --border: rgba(0, 212, 255, 0.12);
  --glow: rgba(0, 212, 255, 0.15);
}

/* ── RESET ── */
* { margin: 0; padding: 0; box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  background: var(--bg);
  color: var(--text);
  font-family: 'Inter', sans-serif;
  overflow-x: hidden;
  cursor: none;
}

/* ── CUSTOM CURSOR ── */
#cursor {
  position: fixed;
  width: 10px; height: 10px;
  background: var(--accent);
  border-radius: 50%;
  pointer-events: none;
  z-index: 9999;
  transform: translate(-50%, -50%);
  transition: transform 0.1s, width 0.3s, height 0.3s, background 0.3s;
  mix-blend-mode: screen;
}
#cursor-ring {
  position: fixed;
  width: 40px; height: 40px;
  border: 1px solid rgba(0, 212, 255, 0.5);
  border-radius: 50%;
  pointer-events: none;
  z-index: 9998;
  transform: translate(-50%, -50%);
  transition: transform 0.15s ease-out, width 0.3s, height 0.3s;
}

/* ── NAV ── */
nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 1000;
  padding: 24px 60px;
  display: flex;
  align-items: center;
  backdrop-filter: blur(20px);
  border-bottom: 1px solid transparent;
  transition: border-color 0.4s, background 0.4s;
}
nav.scrolled {
  background: rgba(2, 4, 8, 0.85);
  border-bottom-color: var(--border);
}
.nav-logo {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 22px;
  font-weight: 700;
  letter-spacing: 3px;
  text-transform: uppercase;
  background: linear-gradient(90deg, var(--accent), var(--accent2));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  text-decoration: none;
}
.nav-links {
  display: flex;
  gap: 40px;
  list-style: none;
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
}
.nav-links a {
  color: var(--text-dim);
  text-decoration: none;
  font-size: 13px;
  font-weight: 400;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  transition: color 0.3s;
  position: relative;
}
.nav-links a::after {
  content: '';
  position: absolute;
  bottom: -4px; left: 0;
  width: 0; height: 1px;
  background: var(--accent);
  transition: width 0.3s;
}
.nav-links a:hover { color: var(--text); }
.nav-links a:hover::after { width: 100%; }
.nav-cta {
  padding: 10px 28px;
  border: 1px solid var(--accent);
  color: var(--accent);
  font-size: 13px;
  font-weight: 500;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  text-decoration: none;
  transition: background 0.3s, color 0.3s;
  margin-left: 2%;
}
.nav-cta:hover {
  background: var(--accent);
  color: var(--bg);
}

/* ── FOOTER ── */
footer {
  background: var(--surface);
  border-top: 1px solid var(--border);
  padding: 60px 60px 40px;
}
.footer-top {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 60px;
  padding-bottom: 48px;
  border-bottom: 1px solid var(--border);
}
.footer-brand p {
  font-size: 13px;
  line-height: 1.7;
  color: var(--text-muted);
  margin-top: 16px;
  max-width: 260px;
}
.footer-col h4 {
  font-size: 11px;
  letter-spacing: 2.5px;
  text-transform: uppercase;
  color: var(--text-muted);
  margin-bottom: 20px;
}
.footer-col ul {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.footer-col a {
  font-size: 13px;
  color: var(--text-dim);
  text-decoration: none;
  transition: color 0.3s;
}
.footer-col a:hover { color: var(--accent); }
.footer-bottom {
  padding-top: 28px;
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.footer-copy {
  font-size: 12px;
  color: var(--text-muted);
}
.footer-socials {
  display: flex;
  gap: 20px;
}
.footer-socials a {
  width: 36px;
  height: 36px;
  border: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-muted);
  text-decoration: none;
  font-size: 12px;
  transition: border-color 0.3s, color 0.3s;
}
.footer-socials a:hover { border-color: var(--accent); color: var(--accent); }

/* ── LANGUAGE SWITCHER ── */
.lang-switch {
  display: flex;
  gap: 6px;
  margin-left: auto;
  font-size: 11px;
  letter-spacing: 2px;
  align-items: center;
}
.lang-switch a {
  color: var(--text-muted);
  text-decoration: none;
  transition: color 0.3s;
  text-transform: uppercase;
}
.lang-switch a:hover { color: var(--text); }
.lang-switch a.active { color: var(--accent); }
.lang-switch span {
  color: var(--border);
  font-size: 10px;
}

/* ── SHARED ANIMATION ── */
@keyframes fadeUp {
  to { opacity: 1; transform: translateY(0); }
}

/* ── HAMBURGER BUTTON ── */
.nav-hamburger {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  cursor: pointer;
  background: none;
  border: none;
  padding: 6px;
  margin-left: auto;
  z-index: 1002;
  position: relative;
}
.nav-hamburger span {
  display: block;
  width: 22px;
  height: 1.5px;
  background: var(--text);
  border-radius: 2px;
  transition: transform 0.3s ease, opacity 0.3s ease;
  transform-origin: center;
}
.nav-hamburger.open span:nth-child(1) { transform: translateY(6.5px) rotate(45deg); }
.nav-hamburger.open span:nth-child(2) { opacity: 0; transform: scaleX(0); }
.nav-hamburger.open span:nth-child(3) { transform: translateY(-6.5px) rotate(-45deg); }

/* ── MOBILE NAV OVERLAY ── */
.nav-overlay {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(2, 4, 8, 0.97);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  z-index: 1001;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 48px;
  opacity: 0;
  transition: opacity 0.3s ease;
  pointer-events: none;
}
.nav-overlay.open {
  display: flex;
  opacity: 1;
  pointer-events: auto;
}
.nav-overlay-links {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 36px;
  list-style: none;
}
.nav-overlay-links a {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 28px;
  font-weight: 600;
  letter-spacing: 3px;
  text-transform: uppercase;
  color: var(--text-dim);
  text-decoration: none;
  transition: color 0.3s;
}
.nav-overlay-links a:hover { color: var(--accent); }
.nav-overlay .lang-switch {
  margin: 0;
  font-size: 13px;
  letter-spacing: 2px;
}
.nav-overlay .nav-cta {
  margin: 0;
  font-size: 13px;
}

/* ── TOUCH: HIDE CURSOR ── */
@media (pointer: coarse) {
  body { cursor: auto; }
  #cursor, #cursor-ring { display: none !important; }
}

/* ── RESPONSIVE: TABLET / MOBILE ── */
@media (max-width: 900px) {
  nav { padding: 20px 32px; }
  .nav-links { gap: 24px; }
  .nav-cta { margin-left: 16px; }
}

@media (max-width: 768px) {
  /* Nav */
  nav { padding: 18px 24px; }
  .nav-links,
  .lang-switch,
  .nav-cta { display: none; }
  .nav-hamburger { display: flex; }

  /* Footer */
  footer { padding: 48px 24px 32px; }
  .footer-top {
    grid-template-columns: 1fr;
    gap: 36px;
  }
  .footer-brand p { max-width: 100%; }
  .footer-bottom {
    flex-direction: column;
    gap: 16px;
    text-align: center;
  }
}
