/* ═══════════════════════════════════════════════════════
   PREMIUM DESIGN SYSTEM — Rapitek CRM
   Elevates the visual layer without structural changes.
   ═══════════════════════════════════════════════════════ */

/* ── Gradient Mesh Background ── */
.hero-gradient {
    background:
        radial-gradient(ellipse 80% 60% at 70% 20%, rgba(255, 167, 38, 0.08) 0%, transparent 60%),
        radial-gradient(ellipse 60% 50% at 20% 80%, rgba(230, 74, 25, 0.06) 0%, transparent 50%),
        radial-gradient(ellipse 50% 40% at 90% 70%, rgba(59, 130, 246, 0.04) 0%, transparent 50%),
        linear-gradient(180deg, #ffffff 0%, #fafafa 100%);
}

/* ── Glass Card Effect ── */
.glass-card {
    background: rgba(255, 255, 255, 0.7);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid rgba(255, 255, 255, 0.6);
    box-shadow:
        0 4px 6px -1px rgba(0, 0, 0, 0.04),
        0 2px 4px -2px rgba(0, 0, 0, 0.03),
        inset 0 1px 0 rgba(255, 255, 255, 0.8);
}

.glass-card:hover {
    background: rgba(255, 255, 255, 0.85);
    box-shadow:
        0 20px 25px -5px rgba(0, 0, 0, 0.06),
        0 8px 10px -6px rgba(0, 0, 0, 0.04),
        inset 0 1px 0 rgba(255, 255, 255, 0.9);
    transform: translateY(-2px);
}

/* ── Premium Shadows (tinted, not gray) ── */
.shadow-premium {
    box-shadow:
        0 1px 3px rgba(230, 74, 25, 0.04),
        0 4px 12px rgba(230, 74, 25, 0.06);
}

.shadow-premium-lg {
    box-shadow:
        0 4px 6px rgba(230, 74, 25, 0.04),
        0 10px 40px rgba(230, 74, 25, 0.08);
}

/* ── Feature Card Hover Glow ── */
.card-glow {
    position: relative;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.card-glow::before {
    content: '';
    position: absolute;
    inset: -1px;
    border-radius: inherit;
    background: linear-gradient(135deg, rgba(230, 74, 25, 0.15), rgba(59, 130, 246, 0.1), rgba(230, 74, 25, 0.05));
    opacity: 0;
    transition: opacity 0.3s;
    z-index: -1;
}

.card-glow:hover::before {
    opacity: 1;
}

/* ── Bento Grid ── */
.bento-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    grid-template-rows: auto auto;
    gap: 1rem;
}

.bento-grid > :nth-child(1) { grid-column: span 1; }
.bento-grid > :nth-child(2) { grid-column: span 2; }
.bento-grid > :nth-child(3) { grid-column: span 2; }
.bento-grid > :nth-child(4) { grid-column: span 1; }

@media (max-width: 768px) {
    .bento-grid {
        grid-template-columns: 1fr;
    }
    .bento-grid > * {
        grid-column: span 1 !important;
    }
}

/* ── Dark Section (for WhatsApp / contrast) ── */
.section-dark {
    background: linear-gradient(135deg, #0f172a 0%, #1e293b 50%, #0f172a 100%);
    color: #f1f5f9;
}

.section-dark h2, .section-dark h3 {
    color: #f8fafc;
}

.section-dark p {
    color: #94a3b8;
}

/* ── Gradient Text ── */
.text-gradient {
    background: linear-gradient(135deg, var(--color-primary-500), var(--color-primary-600));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* ── Stats Counter Animation ── */
.stat-number {
    font-variant-numeric: tabular-nums;
    letter-spacing: -0.04em;
}

/* ── Premium Button ── */
.btn-premium {
    position: relative;
    overflow: hidden;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.btn-premium::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, rgba(255,255,255,0.15), transparent);
    opacity: 0;
    transition: opacity 0.3s;
}

.btn-premium:hover::after {
    opacity: 1;
}

.btn-premium:hover {
    transform: translateY(-1px);
    box-shadow: 0 8px 30px rgba(230, 74, 25, 0.3);
}

/* ── Section Divider (subtle gradient line) ── */
.divider-gradient {
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(230, 74, 25, 0.15), transparent);
}

/* ── Testimonial Card Premium ── */
.testimonial-premium {
    position: relative;
    border: 1px solid rgba(0, 0, 0, 0.05);
    transition: all 0.3s;
}

.testimonial-premium::before {
    content: '\201C';
    position: absolute;
    top: 1rem;
    right: 1.5rem;
    font-size: 4rem;
    line-height: 1;
    color: rgba(230, 74, 25, 0.08);
    font-family: Georgia, serif;
}

.testimonial-premium:hover {
    border-color: rgba(230, 74, 25, 0.15);
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.06);
}

/* ── Pricing Card Highlight ── */
.pricing-highlighted {
    position: relative;
    border: 2px solid var(--color-primary-500);
    transform: scale(1.02);
    box-shadow: 0 8px 40px rgba(230, 74, 25, 0.12);
}

.pricing-highlighted::before {
    content: '';
    position: absolute;
    top: -1px;
    left: 2rem;
    right: 2rem;
    height: 3px;
    background: linear-gradient(90deg, var(--color-primary-500), var(--color-accent));
    border-radius: 0 0 4px 4px;
}

/* ── Scroll Reveal Animations ── */
@keyframes slideUp {
    from { opacity: 0; transform: translateY(30px); }
    to { opacity: 1; transform: translateY(0); }
}

@keyframes slideInLeft {
    from { opacity: 0; transform: translateX(-40px); }
    to { opacity: 1; transform: translateX(0); }
}

@keyframes slideInRight {
    from { opacity: 0; transform: translateX(40px); }
    to { opacity: 1; transform: translateX(0); }
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

.animate-slide-up {
    animation: slideUp 0.6s cubic-bezier(0.4, 0, 0.2, 1) forwards;
}

.animate-slide-left {
    animation: slideInLeft 0.6s cubic-bezier(0.4, 0, 0.2, 1) forwards;
}

.animate-slide-right {
    animation: slideInRight 0.6s cubic-bezier(0.4, 0, 0.2, 1) forwards;
}

/* ── Respect reduced motion ── */
@media (prefers-reduced-motion: reduce) {
    .animate-slide-up,
    .animate-slide-left,
    .animate-slide-right,
    .glass-card:hover,
    .card-glow:hover,
    .btn-premium:hover,
    .testimonial-premium:hover {
        animation: none !important;
        transform: none !important;
        transition: none !important;
    }
}

/* ── Phone Mockup (CSS-only) ── */
.phone-mockup {
    position: relative;
    width: 280px;
    height: 560px;
    background: #1a1a1a;
    border-radius: 40px;
    padding: 12px;
    box-shadow:
        0 25px 50px rgba(0, 0, 0, 0.25),
        inset 0 1px 0 rgba(255, 255, 255, 0.1);
}

.phone-mockup-screen {
    width: 100%;
    height: 100%;
    background: #ffffff;
    border-radius: 30px;
    overflow: hidden;
}

.phone-mockup::before {
    content: '';
    position: absolute;
    top: 12px;
    left: 50%;
    transform: translateX(-50%);
    width: 100px;
    height: 28px;
    background: #1a1a1a;
    border-radius: 0 0 16px 16px;
    z-index: 10;
}

/* ── Floating WhatsApp Button ── */
.whatsapp-float {
    position: fixed;
    bottom: 24px;
    right: 24px;
    z-index: 50;
    width: 56px;
    height: 56px;
    background: #25D366;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 20px rgba(37, 211, 102, 0.4);
    transition: all 0.3s;
    cursor: pointer;
}

.whatsapp-float:hover {
    transform: scale(1.1);
    box-shadow: 0 6px 30px rgba(37, 211, 102, 0.5);
}

.whatsapp-float svg {
    width: 28px;
    height: 28px;
    fill: white;
}
