/* ==========================================================================
   Pia Marketing Site — Custom Styles
   Aesthetic: Digital Editorial — Instrument Serif + Outfit, blue accent, warm paper
   ========================================================================== */

html {
    scroll-behavior: smooth;
}

body {
    min-height: 100vh;
}

/* ==========================================================================
   DOT GRID BACKGROUND TEXTURE
   ========================================================================== */

.dot-grid {
    background-image: radial-gradient(circle, #1C191712 1px, transparent 1px);
    background-size: 24px 24px;
}

.dark .dot-grid {
    background-image: radial-gradient(circle, #E7E5E408 1px, transparent 1px);
}

/* ==========================================================================
   NAVIGATION
   ========================================================================== */

.nav-blur {
    background: rgba(250, 250, 247, 0.85);
    backdrop-filter: blur(16px) saturate(180%);
    -webkit-backdrop-filter: blur(16px) saturate(180%);
}

.dark .nav-blur {
    background: rgba(12, 12, 12, 0.85);
}

/* ==========================================================================
   REVEAL ANIMATIONS — Orchestrated page load with stagger
   ========================================================================== */

.reveal {
    opacity: 0;
    transform: translateY(24px);
    transition:
        opacity 0.8s cubic-bezier(0.16, 1, 0.3, 1),
        transform 0.8s cubic-bezier(0.16, 1, 0.3, 1);
    transition-delay: var(--delay, 0s);
}

.reveal.visible {
    opacity: 1;
    transform: translateY(0);
}

/* ==========================================================================
   HERO PERSONA — Glow + floating animation
   ========================================================================== */

.hero-glow {
    background: radial-gradient(circle, rgba(0, 120, 212, 0.08) 0%, transparent 70%);
    filter: blur(40px);
}

.dark .hero-glow {
    background: radial-gradient(circle, rgba(96, 205, 255, 0.06) 0%, transparent 70%);
}

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

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

@media (prefers-reduced-motion: reduce) {
    .hero-persona {
        animation: none;
    }
}

/* ==========================================================================
   BENTO CARDS — Top-line sweep on hover
   ========================================================================== */

.bento-card {
    transition: border-color 0.5s ease, box-shadow 0.5s ease;
}

.bento-card:hover {
    box-shadow: 0 8px 30px -12px rgba(0, 120, 212, 0.08);
}

.dark .bento-card:hover {
    box-shadow: 0 8px 30px -12px rgba(96, 205, 255, 0.06);
}

/* ==========================================================================
   PRICING TIERS
   ========================================================================== */

.pricing-tier {
    transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1), border-color 0.5s ease;
}

.pricing-tier:hover {
    transform: translateY(-4px);
}

/* ==========================================================================
   SCROLLBAR
   ========================================================================== */

.dark ::-webkit-scrollbar {
    width: 8px;
}

.dark ::-webkit-scrollbar-track {
    background: #0C0C0C;
}

.dark ::-webkit-scrollbar-thumb {
    background: #292524;
    border-radius: 4px;
}

.dark ::-webkit-scrollbar-thumb:hover {
    background: #44403C;
}

/* ==========================================================================
   GRAIN OVERLAY — adds texture depth
   ========================================================================== */

body::after {
    content: '';
    position: fixed;
    inset: 0;
    z-index: 9999;
    pointer-events: none;
    opacity: 0.025;
    background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noise'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noise)'/%3E%3C/svg%3E");
    background-repeat: repeat;
    background-size: 256px 256px;
}

.dark body::after {
    opacity: 0.04;
}

/* ==========================================================================
   SELECTION HIGHLIGHT
   ========================================================================== */

::selection {
    background: rgba(0, 120, 212, 0.2);
    color: inherit;
}

.dark ::selection {
    background: rgba(96, 205, 255, 0.2);
}
