/* ==========================================================================
   Fola Labs — shared stylesheet
   Dark, minimal, glassmorphic. Violet / Lime / White / Black.
   ========================================================================== */

:root {
  --bg: #09090b;
  --surface: #18181b;
  --surface-2: #1f1f23;
  --violet: #7c3aed;
  --violet-soft: #a78bfa;
  --lime: #a3e635;
  --text: #fafafa;
  --text-secondary: #a1a1aa;
  --border: rgba(250, 250, 250, 0.08);
}

* {
  scroll-behavior: smooth;
}

body {
  background-color: var(--bg);
  color: var(--text);
  font-family: "Inter", ui-sans-serif, system-ui, sans-serif;
  -webkit-font-smoothing: antialiased;
}

.font-display {
  font-family: "Space Grotesk", "Inter", ui-sans-serif, system-ui, sans-serif;
}

::selection {
  background: var(--violet);
  color: #fff;
}

/* Scrollbar */
::-webkit-scrollbar { width: 10px; }
::-webkit-scrollbar-track { background: var(--bg); }
::-webkit-scrollbar-thumb { background: #2a2a30; border-radius: 8px; }
::-webkit-scrollbar-thumb:hover { background: #37373f; }

/* ---------- Glassmorphism ---------- */
.glass {
  background: rgba(24, 24, 27, 0.55);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
  border: 1px solid var(--border);
}

.glass-strong {
  background: rgba(24, 24, 27, 0.75);
  backdrop-filter: blur(24px);
  -webkit-backdrop-filter: blur(24px);
  border: 1px solid rgba(250, 250, 250, 0.1);
}

/* ---------- Glow ---------- */
.glow-violet {
  box-shadow: 0 0 0 1px rgba(124, 58, 237, 0.35), 0 8px 40px -8px rgba(124, 58, 237, 0.55);
}

.glow-violet-soft {
  box-shadow: 0 8px 30px -10px rgba(124, 58, 237, 0.45);
}

.glow-lime-text {
  text-shadow: 0 0 24px rgba(163, 230, 53, 0.35);
}

.btn-primary {
  background: linear-gradient(135deg, #8b5cf6 0%, #7c3aed 100%);
  box-shadow: 0 0 0 1px rgba(124, 58, 237, 0.4), 0 10px 30px -8px rgba(124, 58, 237, 0.65);
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}
.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 0 0 1px rgba(124, 58, 237, 0.55), 0 14px 36px -6px rgba(124, 58, 237, 0.8);
}

.btn-ghost {
  border: 1px solid rgba(250, 250, 250, 0.14);
  transition: border-color 0.25s ease, background-color 0.25s ease, transform 0.25s ease;
}
.btn-ghost:hover {
  border-color: rgba(250, 250, 250, 0.35);
  background: rgba(250, 250, 250, 0.04);
  transform: translateY(-2px);
}

/* ---------- Background blobs ---------- */
.blob {
  position: absolute;
  border-radius: 999px;
  filter: blur(90px);
  pointer-events: none;
  z-index: 0;
}

/* ---------- Cards ---------- */
.card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 24px;
  transition: transform 0.35s ease, border-color 0.35s ease, box-shadow 0.35s ease;
}
.card:hover {
  transform: translateY(-6px);
  border-color: rgba(124, 58, 237, 0.4);
  box-shadow: 0 20px 45px -20px rgba(124, 58, 237, 0.45);
}

.tag {
  background: rgba(250, 250, 250, 0.06);
  border: 1px solid var(--border);
  color: var(--text-secondary);
}

/* ---------- Floating animation ---------- */
@keyframes float {
  0% { transform: translateY(0); }
  50% { transform: translateY(-10px); }
  100% { transform: translateY(0); }
}
.float {
  animation: float 4s ease-in-out infinite;
}
.float-delay {
  animation: float 4s ease-in-out infinite;
  animation-delay: 1.2s;
}
.float-delay-2 {
  animation: float 5s ease-in-out infinite;
  animation-delay: 0.6s;
}

/* ---------- Pulse dot ---------- */
@keyframes pulse-dot {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.5; transform: scale(0.85); }
}
.pulse-dot { animation: pulse-dot 2s ease-in-out infinite; }

/* ---------- Nav ---------- */
#site-nav {
  transition: background-color 0.3s ease, border-color 0.3s ease, padding 0.3s ease;
}
#site-nav.scrolled {
  background: rgba(9, 9, 11, 0.75);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--border);
}

.nav-link {
  position: relative;
  color: var(--text-secondary);
  transition: color 0.2s ease;
}
.nav-link:hover { color: var(--text); }
.nav-link.active { color: var(--text); }
.nav-link.active::after {
  content: "";
  position: absolute;
  left: 0; right: 0; bottom: -6px;
  height: 2px;
  border-radius: 2px;
  background: var(--lime);
}

/* ---------- Faux dashboard mockups ---------- */
.mock-screen {
  background: linear-gradient(160deg, #131318 0%, #0c0c0f 100%);
  border: 1px solid rgba(250, 250, 250, 0.08);
  border-radius: 16px;
  overflow: hidden;
}
.mock-bar { background: rgba(250,250,250,0.06); }
.sparkline {
  stroke: var(--violet-soft);
  stroke-width: 2;
  fill: none;
}

/* ---------- Process connector ---------- */
.process-line {
  background: linear-gradient(90deg, rgba(124,58,237,0.05), rgba(124,58,237,0.5), rgba(163,230,53,0.5), rgba(163,230,53,0.05));
}

/* ---------- Form fields ---------- */
.field {
  background: rgba(250, 250, 250, 0.03);
  border: 1px solid rgba(250, 250, 250, 0.12);
  color: var(--text);
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}
.field::placeholder { color: #6b6b74; }
.field:focus {
  outline: none;
  border-color: var(--violet);
  box-shadow: 0 0 0 3px rgba(124, 58, 237, 0.25);
}

/* Respect reduced motion */
@media (prefers-reduced-motion: reduce) {
  .float, .float-delay, .float-delay-2, .pulse-dot { animation: none !important; }
  * { scroll-behavior: auto !important; }
}
