
/* ── Base condivisa da home, login e 404 ── */

:root {
  --bg: #080b10;
  --surface: #0d1117;
  --surface2: #131920;
  --border: rgba(255,255,255,0.06);
  --border-hover: rgba(255,255,255,0.14);
  --text: #e2e8f0;
  --muted: #64748b;
  --accent: #38bdf8;
  --accent2: #818cf8;
  --accent3: #34d399;
  --white: #ffffff;
}

*, *::before, *::after { margin:0; padding:0; box-sizing:border-box; }
html { scroll-behavior:smooth; }

body::before {
  content:'';
  position:fixed; inset:0;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noise'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noise)' opacity='0.04'/%3E%3C/svg%3E");
  pointer-events:none; z-index:1000; opacity:.4;
}

/* ── CURSOR ── */
.cursor { width:8px; height:8px; background:var(--accent); border-radius:50%; position:fixed; pointer-events:none; z-index:9999; transform:translate(-50%,-50%); transition:width .2s,height .2s; mix-blend-mode:screen; }
.cursor-ring { width:32px; height:32px; border:1px solid rgba(56,189,248,0.4); border-radius:50%; position:fixed; pointer-events:none; z-index:9998; transform:translate(-50%,-50%); transition:all .12s ease-out; }

/* ── CANVAS BG ── */
#aurora-canvas { position:fixed; inset:0; z-index:0; pointer-events:none; }

/* ── SCANLINE OVERLAY ── */
.scanline { position:fixed; top:0; left:0; right:0; bottom:0; background:repeating-linear-gradient(0deg, transparent, transparent 2px, rgba(0,0,0,0.025) 2px, rgba(0,0,0,0.025) 4px); pointer-events:none; z-index:999; }

/* ── NAV ── */
nav {
  position:fixed; top:0; left:0; right:0; z-index:900;
  display:flex; align-items:center; justify-content:space-between;
  padding:0 3rem; height:64px;
  background:rgba(4,8,25,0.85);
  backdrop-filter:blur(20px) saturate(180%);
  border-bottom:1px solid var(--border);
  transition:border-color .3s;
}
.nav-brand { display:flex; align-items:center; gap:.7rem; text-decoration:none; }

/* ── Terminal dots (usati da login e 404) ── */
.terminal-bar {
  display:flex; align-items:center; gap:.5rem;
  margin-bottom:.9rem; padding-bottom:.7rem;
  border-bottom:1px solid rgba(56,140,255,0.08);
}
.t-dot { width:10px; height:10px; border-radius:50%; }
.t-dot-red   { background:#ff5f57; }
.t-dot-amber { background:#ffbd2e; }
.t-dot-green { background:#28c840; }

@keyframes gradShift {
  0%   { background-position: 0% 50%; }
  50%  { background-position: 100% 50%; }
  100% { background-position: 0% 50%; }
}

@keyframes fadeIn { from{opacity:0;transform:translateY(18px)} to{opacity:1;transform:none} }
