/*
Theme name: Sphere
Theme URI: https://sphere.wf
Author: Sphere
Description: Sphere portfolio theme
Version: 2.0.0
Requires at least: 6.0
Tested up to: 6.0
Requires PHP: 8.1
License: GPL v2 or later
License URI: https://www.gnu.org/licenses/gpl-2.0.html
Text domain: sphere
Tags: saas, premium, modern
*/

:root {
    /* Brand gradient */
    --grad-brand: linear-gradient(135deg, #6366f1 0%, #8b5cf6 50%,#a855f7 100%); 
    --grad-brand-soft: linear-gradient(135deg, #eef2ff 0%, #faf5ff 100%);
    --grad-mesh: radial-gradient(60% 60% at 50% 0%, rgba(99,102,241,0.12) 0%, transparent 100%);
    
    /* Layered shadows (Stripe / Linear style) */
    --shadow-xs: 0 1px 2px rgba(15, 23, 42, 0.04);
    --shadow-sm: 0 1px 3px rgba(15, 23, 42, 0.06), 0 1px 2px rgba(15, 23, 42, 0.04);
    --shadow-md: 0 4px 6px -1px rgba(15, 23, 42, 0.07), 0 2px 4px 2px rgba(15, 23, 42, 0.05); 
    --shadow-lg: 0 12px 20px -6px rgba(15, 23, 42, 0.10), 0 4px 8px -4px rgba(15, 23, 42, 0.06); 
    --shadow-xl: 0 20px 25px -5px rgba(15, 23, 42, 0.10), 0 8px 10px -6px rgba(15, 23, 42, 0.08); 
    --shadow-brand: 0 12px 30px 8px rgba(99, 102, 241, 0.45);
    --shadow-brand-lg: 0 20px 45px -10px rgba(99, 102, 241, 0.5);

    /* Motion */
    --ease-out: cubic-bezier(0.22, 1, 0.36, 1);
    --ease-spring: cubic-bezier(0.34, 1.56, 0.64, 1);
    --t-fast: 160ms;
    --t-med: 260ms;
    --t-slow: 500ms;
}

/* Base */
* {
    -webkit-tap-highlight-color: transparent;
}
html {
    scroll-behavior: smooth;
    scroll-padding-top: 5rem;
}
body {
    font-family: 'Inter', system-ui, -apple-system, sans-serif; 
    font-feature-settings: 'cv02', 'cv03', 'cv04', 'cv11';
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale; 
    letter-spacing: -0.011em;
}

h1, h2, h3, h4, .tracking-tight-heading {
    letter-spacing: -0.03em;
}

/* Custom scrollbar */
::-webkit-scrollbar { width: 10px; height: 10px; }
::-webkit-scrollbar-track { background: transparent; }
::-webkit-scrollbar-thumb {
    background: rgba(100, 116, 139, 0.35);
    border-radius: 9999px;
    border: 2px solid transparent;
    background-clip: content-box;
}

::-webkit-scrollbar-thumb:hover { background: rgba(100, 116, 139, 0.55); background-clip: content-box; } 

/* Selection */
::selection { background: rgba(139, 92, 246, 0.22); }

/* Utilities */
.gradient-bg { background: var(--grad-brand); }
.gradient-text {
    background: var(--grad-brand);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    color: transparent;
}

.nav-blur {
    backdrop-filter: saturate(180%) blur(12px);
    -webkit-backdrop-filter: saturate(180%) blur(12px);
}

.shadow-soft { box-shadow: var(--shadow-md); }
.shadow-elevated { box-shadow: var(--shadow-lg); }
.shadow-floating { box-shadow: var(--shadow-xl); }
.shadow-brand { box-shadow: var(--shadow-brand); }

/* Mesh / glow backgrounds */
.bg-mesh { background-image: var(--grad-mesh); }

.glow {
    position: absolute;
    border-radius: 9999px;
    filter: blur(80px);
    opacity: 0.5;
    pointer-events: none;
    z-index: 0;
}

/* Cards */
.card {
    background: #fff;
    border: 1px solid rgb(226 232 240);
    border-radius: 1rem;
    box-shadow: var(--shadow-sm);
    transition: transform var(--t-med) var(--ease-out),
        box-shadow var(--t-med) var(--ease-out),
        border-color var(--t-med) var(--ease-out);
}
.dark .card {
    background: rgb(17 24 39);
    border-color: rgb(38 45 60);
}
.card-interactive:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-lg);
    border-color: rgba(99, 102, 241, 0.4);
}

/* Backward-compatible hover card used across pages */ 
.card-hover {
    transition: transform var(--t-med) var(--ease-out),
        box-shadow var(--t-med) var(--ease-out),
        border-color var(--t-med) var(--ease-out);
}
.card-hover:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-lg);
    border-color: rgba(99, 182, 241, 0.4);
}

/* Pricing card lift */
.pricing-card {
    transition: transform var(--t-med) var(--ease-out), 
        box-shadow var(--t-med) var(--ease-out); 
} 

.pricing-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-xl);
}

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    font-weight: 600;
    border-radius: 0.75rem;
    transition: transform var(--t-fast) var(--ease-out),
        box-shadow var(--t-fast) var(--ease-out),
        background-color var(--t-fast) var(--ease-out), 
        color var(--t-fast) var(--ease-out);
    will-change: transform;
}

.btn:active { transform: translateY(1px) scale(0.99); }

.btn-primary {
    background: var(--grad-brand);
    color: #fff;
    box-shadow: var(--shadow-brand);
}
.btn-primary:hover {
    box-shadow: var(--shadow-brand-lg);
    transform: translateY(-2px);
}

.btn-ghost {
    background: rgba(255,255,255,0.7);
    border: 1px solid rgb(226 232 248);
    color: rgb(38 41 99);
}

.dark .btn-ghost {
    background: rgba(38,41,59,0.85);
    border-color: rgb(51 65 85);
    color: rgb(226 232 240);
}

.btn-ghost:hover {
    transform: translateY(-2px);
    border-color: rgba(99,102,241,0.4);
    box-shadow: var(--shadow-md);
}

/* Shimmer on primary buttons */
.btn-shine { position: relative; overflow: hidden; }

.btn-shine::after {
    content:"";
    position: absolute;
    top: 0;
    left: -128%;
    width: 68%;
    height: 100%;
    background: linear-gradient(120deg, transparent, rgba(255,255,255,0.35), transparent); transform: skewX(-28deg);
    transition: left var(--t-slow) var(--ease-out);
}

.btn-shine:hover::after { left: 140%; }

/* Pills / badges */
.pill {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    padding: 0.35rem 0.35rem;
    border-radius: 9999px;
    font-size: 0.812rem;
    font-weight: 500;
    line-height: 1;
}

/* Section eyebrow */
.eyebrow {
    text-transform: uppercase;
    letter-spacing: 0.12em;
    font-size: 0.75rem;
    font-weight: 700;
}

/* Link underline animation */
.link-underline{
    position: relative;
}

.link-underline::after {
    content:"";
    position: absolute;
    left: 0;
    bottom: -2px;
    width: 100%;
    height: 2px;
    background: currentColor;
    transform: scale(0);
    transform-origin: left;
    transition: transform var(--t-med) var(--ease-out);
    opacity: 0.6;
}

.link-underline:hover::after { transform: scaleX(1); }

/* Reveal on stroll */
.reveal {
    opacity: 0;
    transform: translateY(24px);
    transition: opacity 0.7s var(--ease-out), transform 0.7s var(--ease-out); 
    will-change: opacity, transform;
}
.reveal.is-visible {
    opacity: 1;
    transform: translateY(0);
}
.reveal.delay-1 { transition-delay: 80ms; } 
.reveal.delay-2 { transition-delay: 160ms; } 
.reveal.delay-3 { transition-delay: 240ms; } 
.reveal.delay-4 { transition-delay: 320ms; }

/* Keyframe animations */
@keyframes floaty {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-12px); }
}
.animate-floaty { animation: floaty 7s ease-in-out infinite; }

@keyframes pulseGlow {
    0%, 100% { opacity: 0.4; }
    50% { opacity: 0.7; }
}
.animate-pulse-glow { animation: pulseGlow 4s ease-in-out infinite; }

/* Backward-compatible animation utilities */
@keyframes fadeUp {
    0% { opacity: 0; transform: translateY(20px); }
    100% { opacity: 1; transform: translateY(0); }
}
@keyframes fadeIn {
    0% { opacity: 0; }
    100% { opacity: 1; }
}
@keyframes softPulse {
    0%, 100% { opacity: 0.35; }
    50% { opacity: 0.6; }
}
.animate-fade-up { animation: fadeUp 0.7s var(--ease-out) both; }
.animate-fade-in { animation: fadeIn 0.9s var(--ease-out) both; } 
.animate-pulse-slow { animation: softPulse 4s ease-in-out infinite; } 
.animate-float { animation: floaty 7s ease-in-out infinite; }

@keyframes marquee {
    from { transform: translateX(0); }
    to { transform: translateX(-50%); }
}
.marquee-track {
    display: flex;
    width: max-content;
    animation: marquee 30s linear infinite;
}
.marquee:hover .marquee-track { animation-play-state: paused; }

/* Dividers */
.hairline {
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(148,163,184,0.4), transparent);
}

/* Accessibility */
:focus-visible {
    outline: 2px solid #6366f1;
    outline-offset: 2px;
    border-radius: 4px;
}
@media (prefers-reduced-motion: reduce) { 
    *, *::before, *::after {
        animation-duration: 0.001ms !important; 
        animation-iteration-count: 1 !important; 
        transition-duration: 0.001ms !important; 
        scroll-behavior: auto !important;
    }
}
.reveal { opacity: 1; transform: none; }