@tailwind base;
@tailwind components;
@tailwind utilities;

html { scroll-behavior: smooth; scroll-padding-top: 88px; }
body { background-color: #070912; color: #A8B3C4; font-family: 'Inter', sans-serif; -webkit-font-smoothing: antialiased; overflow-x: hidden; }
::selection { background: rgba(139,92,246,0.35); color: #fff; }

::-webkit-scrollbar { width: 11px; height: 11px; }
::-webkit-scrollbar-track { background: #070912; }
::-webkit-scrollbar-thumb { background: #1e2740; border-radius: 99px; border: 3px solid #070912; }
::-webkit-scrollbar-thumb:hover { background: #2c3658; }

.font-display { font-family: 'Bricolage Grotesque', sans-serif; }
.font-mono { font-family: 'Inter', monospace; }

.glass {
  background: linear-gradient(180deg, rgba(18,24,41,0.72), rgba(14,20,34,0.6));
  border: 1px solid rgba(255,255,255,0.06);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
}
.glass-strong {
  background: linear-gradient(180deg, rgba(20,27,46,0.9), rgba(12,17,30,0.85));
  border: 1px solid rgba(255,255,255,0.08);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
}

.hairline { border: 1px solid rgba(255,255,255,0.06); }
.text-gradient {
  background: linear-gradient(100deg, #818cf8 0%, #a78bfa 45%, #22D3EE 110%);
  -webkit-background-clip: text; background-clip: text; color: transparent;
}
.text-gradient-tight {
  background: linear-gradient(100deg, #6366F1, #8B5CF6);
  -webkit-background-clip: text; background-clip: text; color: transparent;
}
.grad-border { position: relative; }
.grad-border::before {
  content: ''; position: absolute; inset: 0; border-radius: inherit; padding: 1px;
  background: linear-gradient(140deg, rgba(99,102,241,0.6), rgba(139,92,246,0.25) 40%, rgba(34,211,238,0.0) 70%);
  -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
  -webkit-mask-composite: xor; mask-composite: exclude; pointer-events: none;
}
.btn-primary {
  background: linear-gradient(100deg, #6366F1, #8B5CF6);
  box-shadow: 0 10px 30px -8px rgba(99,102,241,0.55), inset 0 1px 0 rgba(255,255,255,0.18);
  transition: transform .18s ease, box-shadow .18s ease, filter .18s ease;
}
.btn-primary:hover { transform: translateY(-2px); box-shadow: 0 18px 40px -10px rgba(124,92,246,0.7), inset 0 1px 0 rgba(255,255,255,0.22); filter: saturate(1.08); }
.btn-primary:active { transform: translateY(0); }
.btn-ghost { border: 1px solid rgba(255,255,255,0.1); background: rgba(255,255,255,0.02); transition: all .18s ease; }
.btn-ghost:hover { background: rgba(255,255,255,0.06); border-color: rgba(255,255,255,0.18); transform: translateY(-2px); }
a:focus-visible, button:focus-visible, input:focus-visible, textarea:focus-visible, [tabindex]:focus-visible {
  outline: 2px solid #8B5CF6; outline-offset: 3px; border-radius: 8px;
}
.reveal { opacity: 0; transform: translateY(28px); transition: opacity .7s cubic-bezier(.2,.7,.2,1), transform .7s cubic-bezier(.2,.7,.2,1); }
.reveal.in { opacity: 1; transform: none; }
.card-lift { transition: transform .25s cubic-bezier(.2,.7,.2,1), box-shadow .25s ease, border-color .25s ease; }
.card-lift:hover { transform: translateY(-6px); }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .reveal { opacity: 1; transform: none; transition: none; }
  * { animation-duration: .001ms !important; }
}
#boot { position: fixed; inset: 0; display: grid; place-items: center; background: #070912; z-index: 100; }
.boot-dot { width: 10px; height: 10px; border-radius: 99px; background: linear-gradient(100deg,#6366F1,#8B5CF6); animation: pulse-dot 1.2s ease-in-out infinite; }
@keyframes pulse-dot { 0%,100%{opacity:1;transform:scale(1)} 50%{opacity:.35;transform:scale(.7)} }
.marquee-track { display: flex; width: max-content; animation: marquee 38s linear infinite; }
@keyframes marquee { from { transform: translateX(0) } to { transform: translateX(-50%) } }
.marquee:hover .marquee-track { animation-play-state: paused; }
.grid-faint { background-image: linear-gradient(rgba(255,255,255,0.025) 1px, transparent 1px), linear-gradient(90deg, rgba(255,255,255,0.025) 1px, transparent 1px); background-size: 56px 56px; }
@keyframes fadeIn { from { opacity: 0 } to { opacity: 1 } }
@keyframes slideUp { from { opacity: 0; transform: translateY(24px) } to { opacity: 1; transform: none } }
