/* Rakin IA World-Class Design Stylesheet */

@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700;800;900&family=JetBrains+Mono:wght@400;500;600;700&display=swap');

:root {
    --bg-obsidian: #030712;
    --bg-glass-dark: rgba(15, 23, 42, 0.75);
    --border-glass-dark: rgba(255, 255, 255, 0.12);
    --accent-sky: #0284c7;
    --accent-emerald: #10b981;
}

html {
    scroll-behavior: smooth;
    -webkit-font-smoothing: antialiased;
}

/* Custom Scrollbar */
::-webkit-scrollbar {
    width: 8px;
}
::-webkit-scrollbar-track {
    background: #f1f5f9;
}
::-webkit-scrollbar-thumb {
    background: #cbd5e1;
    border-radius: 9999px;
    border: 2px solid #f1f5f9;
}
::-webkit-scrollbar-thumb:hover {
    background: #0284c7;
}

/* Hero Dashboard Ambient Glow */
.hero-dashboard-glow {
    box-shadow: 0 0 50px -10px rgba(2, 132, 199, 0.25),
                0 25px 50px -12px rgba(15, 23, 42, 0.35);
}

/* Procedural Gradient Background Loop (Estilo Jitter) */
.jitter-gradient-bg {
    background: linear-gradient(-45deg, #cde2ff, #eef5ff, #dbeafe, #f0f9ff);
    background-size: 400% 400%;
    animation: jitterGradient 12s ease infinite;
}

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

/* Button Micro-interactions & Shimmer (Estilo Jitter Buttons) */
.btn-pill-primary {
    position: relative;
    overflow: hidden;
    transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
}
.btn-pill-primary:hover {
    transform: translateY(-2px) scale(1.02);
    box-shadow: 0 12px 25px -5px rgba(2, 132, 199, 0.4);
}
.btn-pill-primary:active {
    transform: translateY(0) scale(0.985);
}

.btn-jitter-pulse {
    animation: jitterPulse 3s infinite;
}

@keyframes jitterPulse {
    0%, 100% { box-shadow: 0 0 0 0 rgba(2, 132, 199, 0.4); }
    50% { box-shadow: 0 0 0 10px rgba(2, 132, 199, 0); }
}

/* PII Blur & Glow Effect */
.pii-glow-tag {
    position: relative;
    display: inline-block;
    transition: all 0.3s ease;
    animation: tagGlow 2.5s ease-in-out infinite alternate;
}

@keyframes tagGlow {
    0% { box-shadow: 0 0 4px rgba(56, 189, 248, 0.2); }
    100% { box-shadow: 0 0 12px rgba(56, 189, 248, 0.6); }
}

/* Animated Stack / Orbit Cards (Estilo Jitter Orbit Cards) */
.jitter-stack-card {
    transition: all 0.35s cubic-bezier(0.34, 1.56, 0.64, 1);
}
.jitter-stack-card:hover {
    transform: translateY(-8px) scale(1.02) rotate(0.5deg);
    box-shadow: 0 20px 35px -10px rgba(15, 23, 42, 0.15);
}

/* Live Counter Pulse */
.counter-time-bar {
    background: linear-gradient(90deg, #38bdf8, #10b981);
    background-size: 200% 200%;
    animation: barFlow 3s ease infinite;
}

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

/* Focus States Accessibility */
a:focus-visible, button:focus-visible {
    outline: none;
    ring: 2px;
    ring-offset: 2px;
    ring-color: #0284c7;
}

/* ==========================================
   ACETERNITY UI & MAGIC UI ADVANCED STYLES
   ========================================== */

/* Grid & Dots Mesh Patterns */
.bg-grid-pattern {
    background-size: 40px 40px;
    background-image: 
        linear-gradient(to right, rgba(2, 132, 199, 0.07) 1px, transparent 1px),
        linear-gradient(to bottom, rgba(2, 132, 199, 0.07) 1px, transparent 1px);
}

.bg-dot-pattern {
    background-image: radial-gradient(rgba(14, 165, 233, 0.15) 1px, transparent 1px);
    background-size: 24px 24px;
}

/* Spotlight Effect Container */
.spotlight-card {
    position: relative;
    border-radius: 1rem;
    background: rgba(15, 23, 42, 0.65);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
    overflow: hidden;
}

.spotlight-card::before {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0; bottom: 0;
    border-radius: inherit;
    padding: 1.5px;
    background: linear-gradient(135deg, rgba(56, 189, 248, 0.5), rgba(16, 185, 129, 0.1), rgba(255, 255, 255, 0.05));
    -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
    -webkit-mask-composite: xor;
    mask-composite: exclude;
    pointer-events: none;
}

.spotlight-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 20px 40px -15px rgba(2, 132, 199, 0.3);
}

/* Bento Grid System */
.bento-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 1.5rem;
}

.bento-card-span-2 {
    grid-column: span 2 / span 2;
}

@media (max-width: 768px) {
    .bento-card-span-2 {
        grid-column: span 1 / span 1;
    }
}

/* Text Gradient Glow */
.text-gradient-glow {
    background: linear-gradient(135deg, #38bdf8 0%, #818cf8 50%, #34d399 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    filter: drop-shadow(0 2px 10px rgba(56, 189, 248, 0.25));
}

/* Interactive Calculator Styling */
.calc-slider {
    -webkit-appearance: none;
    appearance: none;
    height: 8px;
    border-radius: 4px;
    background: #e2e8f0;
    outline: none;
}

.calc-slider::-webkit-slider-thumb {
    -webkit-appearance: none;
    appearance: none;
    width: 24px;
    height: 24px;
    border-radius: 50%;
    background: #0284c7;
    cursor: pointer;
    box-shadow: 0 0 10px rgba(2, 132, 199, 0.5);
    transition: transform 0.15s ease;
}

.calc-slider::-webkit-slider-thumb:hover {
    transform: scale(1.2);
}


