/* Apple + Linear + Stripe Premium Dark CSS Design System */
:root {
    --color-dark-bg: #030303;
    --color-dark-card: rgba(10, 10, 12, 0.7);
    --color-neon-cyan: #00f0ff;
    --color-neon-purple: #8b5cf6;
    --color-silver: #a1a1aa;
    --color-white: #ffffff;
}

body {
    background-color: var(--color-dark-bg);
    color: var(--color-silver);
    font-family: 'Space Grotesk', sans-serif;
    overflow-x: hidden;
}

/* Custom Scrollbar for Lenis */
::-webkit-scrollbar {
    width: 8px;
    height: 8px;
}
::-webkit-scrollbar-track {
    background: #050505;
}
::-webkit-scrollbar-thumb {
    background: #18181b;
    border-radius: 4px;
    border: 2px solid #050505;
}
::-webkit-scrollbar-thumb:hover {
    background: #27272a;
}

/* Premium Dark Mode Glassmorphism Card (Linear / Apple style) */
.glass-card {
    background: rgba(10, 10, 12, 0.45);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border: 1px solid rgba(255, 255, 255, 0.05);
    box-shadow: 0 8px 32px 0 rgba(0, 0, 0, 0.37);
    transition: all 0.5s cubic-bezier(0.16, 1, 0.3, 1);
}

.glass-card:hover {
    border-color: rgba(0, 240, 255, 0.25);
    background: rgba(15, 15, 20, 0.6);
    box-shadow: 0 12px 40px 0 rgba(0, 240, 255, 0.08);
    transform: translateY(-2px);
}

/* Glow Utilities */
.glow-blue {
    box-shadow: 0 0 30px rgba(0, 240, 255, 0.15);
}

.text-gradient {
    background: linear-gradient(135deg, #ffffff 0%, #00f0ff 50%, #8b5cf6 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    display: inline-block;
}

/* Background animated net grid */
.grid-net-backdrop {
    background-size: 40px 40px;
    background-image: 
        linear-gradient(to right, rgba(255, 255, 255, 0.015) 1px, transparent 1px),
        linear-gradient(to bottom, rgba(255, 255, 255, 0.015) 1px, transparent 1px);
}

/* Floating Blob Keyframes */
@keyframes blob-bounce {
    0% { transform: translate(0px, 0px) scale(1); }
    33% { transform: translate(40px, -60px) scale(1.08); }
    66% { transform: translate(-30px, 30px) scale(0.95); }
    100% { transform: translate(0px, 0px) scale(1); }
}

.animate-blob {
    animation: blob-bounce 25s infinite ease-in-out;
}
.animation-delay-2000 {
    animation-delay: 3s;
}
.animation-delay-4000 {
    animation-delay: 6s;
}

/* Entrance fade-in transition helpers */
.reveal-on-scroll {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.8s cubic-bezier(0.16, 1, 0.3, 1), transform 0.8s cubic-bezier(0.16, 1, 0.3, 1);
}

.reveal-on-scroll.active {
    opacity: 1;
    transform: translateY(0);
}

/* Floating Animation */
@keyframes float {
    0% { transform: translateY(0px); }
    50% { transform: translateY(-12px); }
    100% { transform: translateY(0px); }
}

.animated-float {
    animation: float 6s ease-in-out infinite;
}

/* Form controls styled with sleek Apple dark-theme borders */
input, select, textarea {
    background-color: rgba(10, 10, 12, 0.6) !important;
    border: 1px solid rgba(255, 255, 255, 0.08) !important;
    color: #ffffff !important;
    transition: all 0.3s ease !important;
}

input:focus, select:focus, textarea:focus {
    border-color: var(--color-neon-cyan) !important;
    box-shadow: 0 0 12px rgba(0, 240, 255, 0.15) !important;
    outline: none !important;
}

/* Global utility overrides for high contrast typography */
.text-slate-900, .text-slate-800, .text-slate-700, .text-slate-600, .text-slate-500, .text-slate-400, .text-slate-300, .text-brandSilver, .text-brandSlate, .text-slate-950, .text-slate-750 {
    color: #ffffff !important;
}

body, label, p, span, li, h1, h2, h3, h4, h5, h6 {
    color: #ffffff !important;
}

.border-slate-200, .border-slate-100 {
    border-color: rgba(255, 255, 255, 0.1) !important;
}

/* Force light backgrounds to black in dark theme, excluding links/buttons */
.bg-white:not(a):not(button):not(.btn), 
.bg-slate-50:not(a):not(button):not(.btn), 
.bg-slate-100:not(a):not(button):not(.btn), 
.bg-slate-200:not(a):not(button):not(.btn), 
.bg-slate-300:not(a):not(button):not(.btn), 
.bg-gray-50:not(a):not(button):not(.btn), 
.bg-gray-100:not(a):not(button):not(.btn), 
.bg-gray-200:not(a):not(button):not(.btn), 
.bg-zinc-50:not(a):not(button):not(.btn), 
.bg-zinc-100:not(a):not(button):not(.btn) {
    background-color: #050505 !important;
}

/* Explicit style for white buttons to keep high readability */
a.bg-white, button.bg-white, .bg-white.magnetic-button {
    background-color: #ffffff !important;
    color: #000000 !important;
}

/* Specific opacity variations classes */
.bg-slate-50\/10 {
    background-color: rgba(10, 10, 12, 0.1) !important;
}

.bg-slate-50\/50 {
    background-color: rgba(10, 10, 12, 0.4) !important;
}

.bg-white\/50 {
    background-color: rgba(10, 10, 12, 0.4) !important;
}

/* Interactive elements */
a:hover {
    color: var(--color-neon-cyan) !important;
}

/* Dynamic Gradient Borders for Apple/Linear style cards */
.gradient-border-card {
    position: relative;
    border-radius: 1rem;
    background: rgba(10, 10, 12, 0.5);
}

.gradient-border-card::before {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0; bottom: 0;
    border-radius: 1rem;
    padding: 1px;
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.1) 0%, rgba(255, 255, 255, 0.02) 100%);
    -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
    -webkit-mask-composite: xor;
    mask-composite: exclude;
    pointer-events: none;
    transition: all 0.5s ease;
}

.gradient-border-card:hover::before {
    background: linear-gradient(135deg, #00f0ff 0%, #8b5cf6 100%);
}

/* Prevent header hover jitter */
#site-header.glass-card:hover {
    transform: none !important;
}

