/* ===============================================
   Windikate — Custom styles
   Layered on top of Tailwind utility classes
   =============================================== */

html {
    scroll-behavior: smooth;
}

body {
    font-feature-settings: 'cv02', 'cv03', 'cv04', 'cv11';
    letter-spacing: -0.005em;
}

/* Grid background overlay — used on dark canvases */
.bg-grid {
    background-image:
        linear-gradient(rgba(255, 255, 255, 0.7) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255, 255, 255, 0.7) 1px, transparent 1px);
    background-size: 44px 44px;
}

/* Selection */
::selection {
    background-color: rgba(139, 92, 246, 0.35);
    color: #fff;
}

/* Scrollbar */
::-webkit-scrollbar {
    width: 10px;
    height: 10px;
}
::-webkit-scrollbar-track {
    background: #0a0a12;
}
::-webkit-scrollbar-thumb {
    background: #1d1d28;
    border-radius: 6px;
}
::-webkit-scrollbar-thumb:hover {
    background: #2a2a3a;
}

/* Subtle grain on the dark background for richness */
body::before {
    content: '';
    position: fixed;
    inset: 0;
    pointer-events: none;
    opacity: 0.025;
    z-index: 0;
    background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 400 400' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='3'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

/* Headline gradient text fix on Safari */
.bg-clip-text {
    -webkit-background-clip: text;
    background-clip: text;
}

/* Dashboard mockup subtle floating effect */
@media (min-width: 1024px) {
    .dashboard-float {
        animation: float 7s ease-in-out infinite;
    }
}

@keyframes float {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-6px); }
}

/* Focus styles */
a:focus-visible,
button:focus-visible {
    outline: 2px solid rgba(139, 92, 246, 0.7);
    outline-offset: 3px;
    border-radius: 8px;
}

/* Mobile dashboard table responsiveness — switch to compact spacing */
@media (max-width: 640px) {
    table th,
    table td {
        padding-left: 12px !important;
        padding-right: 12px !important;
    }
}
