/* ══════════════════════════════════════════════════
   BrandEngine Premium SaaS Styles - LIGHT THEME
   Design: Stripe × Notion × Webflow
   ══════════════════════════════════════════════════ */

:root {
    --brand-primary: #6366f1;
    --brand-secondary: #4f46e5;
    --brand-accent: #a855f7;
    --bg-main: #ffffff;
    --bg-sub: #f8fafc;
    --text-main: #0f172a;
    --text-sub: #475569;
    --border-main: rgba(0,0,0,0.05);
}

/* ─── Gradient Orbs ───────────────────────────── */
.hero-gradient-orb {
    position: absolute; border-radius: 50%;
    filter: blur(120px); opacity: 0.2;
    animation-timing-function: ease-in-out;
    animation-iteration-count: infinite;
    animation-direction: alternate;
    z-index: -1;
}
.orb-1 { width: 800px; height: 800px; top: -300px; left: -200px;
    background: radial-gradient(circle, rgba(99,102,241,0.3), transparent 70%);
    animation: orbFloat1 20s infinite alternate; }
.orb-2 { width: 600px; height: 600px; bottom: -200px; right: -200px;
    background: radial-gradient(circle, rgba(139,92,246,0.2), transparent 70%);
    animation: orbFloat2 25s infinite alternate; }
.orb-3 { width: 500px; height: 500px; top: 40%; left: 50%;
    background: radial-gradient(circle, rgba(59,130,246,0.15), transparent 70%);
    animation: orbFloat3 18s infinite alternate; }

@keyframes orbFloat1 { to { transform: translate(150px, 100px) scale(1.1); } }
@keyframes orbFloat2 { to { transform: translate(-120px, -80px) scale(0.9); } }
@keyframes orbFloat3 { to { transform: translate(-80px, 60px) scale(1.2); } }

/* ─── Floating Shapes Animation ───────────────── */
@keyframes float { 
    0%, 100% { transform: translate(0, 0) rotate(0deg); }
    33% { transform: translate(30px, -20px) rotate(10deg); }
    66% { transform: translate(-10px, 40px) rotate(-5deg); }
}
.animate-float { animation: float 15s infinite ease-in-out; }
.animate-float-delayed { animation: float 18s infinite ease-in-out reverse; }

/* ─── Grid Background ─────────────────────────── */
.grid-bg {
    position: absolute; inset: 0;
    background-image: linear-gradient(rgba(0,0,0,0.02) 1px, transparent 1px),
                       linear-gradient(90deg, rgba(0,0,0,0.02) 1px, transparent 1px);
    background-size: 60px 60px;
    mask-image: radial-gradient(ellipse 80% 50% at 50% 0%, black 40%, transparent 100%);
    z-index: -1;
}

/* ─── Navigation ──────────────────────────────── */
.nav-glass {
    background: rgba(255,255,255,0.8);
    backdrop-filter: blur(20px) saturate(1.8);
    -webkit-backdrop-filter: blur(20px) saturate(1.8);
    border-bottom: 1px solid rgba(0,0,0,0.05);
}
.nav-link { position: relative; transition: color 0.3s; color: #475569; }
.nav-link:hover { color: #6366f1; }
.nav-link::after {
    content: ''; position: absolute; bottom: -4px; left: 50%; width: 0; height: 2px;
    background: linear-gradient(90deg, #6366f1, #a78bfa);
    transition: all 0.3s cubic-bezier(0.4,0,0.2,1);
    transform: translateX(-50%); border-radius: 1px;
}
.nav-link:hover::after { width: 100%; }

/* ─── Gradient Text ───────────────────────────── */
.text-gradient {
    background: linear-gradient(135deg, #4f46e5 0%, #6366f1 30%, #8b5cf6 60%, #a855f7 100%);
    -webkit-background-clip: text; 
    background-clip: text;
    -webkit-text-fill-color: transparent;
    background-size: 200% auto;
    animation: shiftGradient 6s ease infinite;
}
@keyframes shiftGradient {
    0%,100% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
}

/* ─── Glow Button ─────────────────────────────── */
.btn-glow {
    background: linear-gradient(135deg, #6366f1, #7c3aed);
    box-shadow: 0 4px 15px rgba(99,102,241,0.3);
    color: white !important;
    transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative; overflow: hidden;
}
.btn-glow:hover { box-shadow: 0 10px 25px rgba(99,102,241,0.4); opacity: 0.95; }
.btn-glow:active { transform: scale(0.95); }

/* Ripple */
.btn-glow .ripple, .btn-ghost .ripple { position: absolute; border-radius: 50%;
    transform: scale(0); animation: ripple 0.6s linear; pointer-events: none; }
.btn-glow .ripple { background: rgba(255,255,255,0.3); }
.btn-ghost .ripple { background: rgba(99,102,241,0.2); }
@keyframes ripple { to { transform: scale(4); opacity: 0; } }

/* ─── Ghost Button ────────────────────────────── */
.btn-ghost {
    border: 1px solid rgba(0,0,0,0.08); color: #475569; background: white;
    transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative; overflow: hidden; z-index: 1;
}
.btn-ghost::before {
    content: ''; position: absolute; inset: 0;
    background: linear-gradient(135deg, #6366f1, #7c3aed);
    opacity: 0; transition: opacity 0.2s cubic-bezier(0.4, 0, 0.2, 1);
    z-index: -1;
}
.btn-ghost:hover { 
    border-color: #6366f1; color: white !important;
    box-shadow: 0 10px 25px rgba(99,102,241,0.4); 
}
.btn-ghost:hover::before { opacity: 1; }
.btn-ghost:active { transform: scale(0.95); }

/* ─── Feature Cards ───────────────────────────── */
.feature-card {
    position: relative; padding: 2.5rem; border-radius: 1.5rem;
    border: 1px solid rgba(0,0,0,0.05);
    background: #ffffff;
    box-shadow: 0 1px 3px rgba(0,0,0,0.02);
    transition: all 0.5s cubic-bezier(0.175,0.885,0.32,1.275);
    overflow: hidden;
}
.feature-card::before {
    content: ''; position: absolute; inset: 0;
    background: radial-gradient(400px circle at var(--mx, 50%) var(--my, 50%), rgba(99,102,241,0.04), transparent 40%);
    opacity: 0; transition: opacity 0.5s;
}
.feature-card:hover { border-color: rgba(99,102,241,0.15);
    transform: translateY(-6px);
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.08); }
.feature-card:hover::before { opacity: 1; }

.feature-icon {
    width: 48px; height: 48px; border-radius: 14px; display: flex;
    align-items: center; justify-content: center;
    background: #f8fafc;
    border: 1px solid rgba(0,0,0,0.05);
    transition: all 0.4s;
}
.feature-card:hover .feature-icon {
    transform: scale(1.1) rotate(5deg);
    box-shadow: 0 4px 12px rgba(99,102,241,0.1);
}

/* ─── Dashboard Preview ──────────────────────── */
.dash-preview {
    position: relative; border-radius: 1.5rem;
    border: 1px solid rgba(0,0,0,0.08);
    background: #ffffff;
    box-shadow: 0 32px 64px -16px rgba(0,0,0,0.1);
    overflow: hidden;
}
.dash-topbar { height: 40px; border-bottom: 1px solid rgba(0,0,0,0.05);
    display: flex; align-items: center; gap: 6px; padding: 0 16px; background: #f8fafc;}

.float-card {
    position: absolute; border-radius: 1.25rem; padding: 1.25rem;
    border: 1px solid rgba(0,0,0,0.05);
    background: rgba(255,255,255,0.95); backdrop-filter: blur(20px);
    box-shadow: 0 10px 25px -4px rgba(0,0,0,0.08);
}

/* ─── Comparison Table ────────────────────────── */
.compare-row { transition: all 0.2s; border-bottom: 1px solid rgba(0,0,0,0.03); }
.compare-row:hover { background: #f8fafc; }
.compare-highlight { background: rgba(99,102,241,0.03); border-left: 3px solid #6366f1; }

/* ─── Step Cards ──────────────────────────────── */
.step-card { background: #ffffff; border: 1px solid rgba(0,0,0,0.05); }
.step-card:hover { border-color: #6366f1; }

/* ─── Pricing ────────────────────────────────── */
.price-card-glow {
    background: white; border: 2px solid #6366f1;
    box-shadow: 0 20px 40px -10px rgba(99,102,241,0.15);
}

/* ─── Smooth Scrollbar ────────────────────────── */
::-webkit-scrollbar { width: 8px; }
::-webkit-scrollbar-track { background: #f8fafc; }
::-webkit-scrollbar-thumb { background: #cbd5e1; border-radius: 4px; }
::-webkit-scrollbar-thumb:hover { background: #94a3b8; }

/* ─── Animation Utility Classes ───────────────── */
.anim-fade-up { opacity: 0; transform: translateY(30px); }
.anim-section { opacity: 0; transform: translateY(40px); }
.anim-scale { opacity: 0; transform: scale(0.95); }
