/* Stunning Features V4 - Ultra Premium Redesign */
:root {
    --bg-page: #ffffff;
    --text-main: #0f172a;
    --text-muted: #64748b;
    --card-bg: rgba(255, 255, 255, 0.7);
    --grid-gap: 32px;
    --radius-lg: 32px;
    --radius-md: 24px;

    /* Professional Shadow Stack */
    --shadow-md:
        0 4px 6px -1px rgba(0, 0, 0, 0.05),
        0 2px 4px -1px rgba(0, 0, 0, 0.03),
        0 0 0 1px rgba(0, 0, 0, 0.02);
    --shadow-hover:
        0 20px 25px -5px rgba(0, 0, 0, 0.1),
        0 10px 10px -5px rgba(0, 0, 0, 0.04),
        0 0 0 1px rgba(0, 0, 0, 0.05);

    --accent-purple: #8b5cf6;
    --accent-blue: #3b82f6;
    --accent-pink: #ec4899;
    --primary-gradient: linear-gradient(135deg, #4f46e5 0%, #9333ea 100%);
}

body.features-page {
    background-color: var(--bg-page);
    background-image:
        radial-gradient(at 0% 0%, rgba(59, 130, 246, 0.03) 0px, transparent 50%),
        radial-gradient(at 100% 0%, rgba(139, 92, 246, 0.03) 0px, transparent 50%),
        radial-gradient(at 100% 100%, rgba(236, 72, 153, 0.03) 0px, transparent 50%),
        radial-gradient(at 0% 100%, rgba(16, 185, 129, 0.03) 0px, transparent 50%);
    background-attachment: fixed;
}

/* Main Layout */
.features-main {
    max-width: 1400px;
    margin: 0 auto;
    padding: 140px 24px 100px;
    display: flex;
    flex-direction: column;
    align-items: center;
}

/* Hero Section */
.features-hero-new {
    text-align: center;
    margin-bottom: 30px;
    width: 100%;
    max-width: 1000px;
}

.hero-badge {
    display: inline-flex;
    align-items: center;
    padding: 8px 16px;
    background: rgba(79, 70, 229, 0.05);
    color: #4f46e5;
    border-radius: 100px;
    font-weight: 600;
    font-size: 0.85rem;
    margin-bottom: 24px;
    border: 1px solid rgba(79, 70, 229, 0.1);
    letter-spacing: 0.5px;
}

.hero-title-new {
    font-size: 5rem;
    font-weight: 800;
    line-height: 1.1;
    margin-bottom: 28px;
    letter-spacing: -0.05em;
    background: linear-gradient(135deg, #4f46e5 0%, #7c3aed 30%, #ec4899 70%, #4f46e5 100%);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    filter: drop-shadow(0 4px 12px rgba(79, 70, 229, 0.1));
}

.gradient-text {
    background: linear-gradient(135deg, #1e293b 0%, #475569 50%, #1e293b 100%);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    display: block;
}

.hero-subtitle-new {
    font-size: 1.5rem;
    color: var(--text-muted);
    line-height: 1.6;
    max-width: 850px;
    margin: 0 auto;
    font-weight: 400;
}

/* 4-Column Top Features Grid */
.features-top-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: var(--grid-gap);
    width: 100%;
    margin-bottom: 100px;
}

.card-top-feature {
    background: white;
    border-radius: var(--radius-md);
    padding: 50px 30px;
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    border: 1px solid rgba(0, 0, 0, 0.03);
    box-shadow: 0 10px 30px -10px rgba(0, 0, 0, 0.05);
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    position: relative;
    overflow: hidden;
}

.card-top-feature:hover {
    transform: translateY(-12px);
    box-shadow: 0 30px 60px -15px rgba(79, 70, 229, 0.15);
    border-color: rgba(79, 70, 229, 0.2);
}

.card-top-feature::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 4px;
    background: var(--primary-gradient);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.card-top-feature:hover::after {
    opacity: 1;
}

.card-top-feature .card-icon {
    width: 80px;
    height: 80px;
    font-size: 2.8rem;
    margin-bottom: 32px;
    background: rgba(248, 250, 252, 0.8);
    border-radius: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: inset 0 2px 4px rgba(0, 0, 0, 0.02);
}

.card-top-feature h3 {
    font-size: 1.4rem;
    font-weight: 700;
    margin-bottom: 16px;
    color: #1e293b;
}

.card-top-feature p {
    font-size: 1rem;
    color: #64748b;
    line-height: 1.6;
}

/* Bento Container */
.bento-container {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    grid-auto-rows: 360px;
    gap: var(--grid-gap);
    width: 100%;
    margin-bottom: 100px;
}

.bento-card {
    background: white;
    border-radius: var(--radius-lg);
    padding: 56px;
    border: 1px solid rgba(0, 0, 0, 0.05);
    box-shadow: 0 4px 20px -2px rgba(0, 0, 0, 0.04);
    transition: all 0.5s cubic-bezier(0.19, 1, 0.22, 1);
    display: flex;
    flex-direction: column;
    position: relative;
    overflow: hidden;
}

.bento-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 40px 80px -20px rgba(0, 0, 0, 0.12);
}

.card-wide {
    grid-column: span 2;
}

.card-tall {
    grid-row: span 2;
}

.card-icon {
    width: 64px;
    height: 64px;
    border-radius: 18px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 32px;
    font-size: 1.8rem;
}

/* Specific Card Styling */
.card-ai {
    background: radial-gradient(circle at top left, #ffffff 0%, #f5f3ff 100%);
}

.card-ai h2 {
    font-size: 2.8rem;
    margin-bottom: 24px;
    letter-spacing: -0.02em;
}

.card-badge {
    display: inline-flex;
    align-items: center;
    padding: 8px 16px;
    border-radius: 100px;
    font-size: 0.8rem;
    font-weight: 800;
    text-transform: uppercase;
    margin-bottom: 24px;
    letter-spacing: 1px;
}

.badge-purple {
    background: #8b5cf6;
    color: white;
}

.stat-pill {
    background: white;
    padding: 12px 24px;
    border-radius: 100px;
    font-size: 0.95rem;
    color: #334155;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
    border: 1px solid rgba(0, 0, 0, 0.02);
    display: flex;
    align-items: center;
    gap: 10px;
    font-weight: 600;
}

.stat-pill:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.1);
}

/* Visualization Card */
.visual-viz {
    margin-top: auto;
    transform: translateY(20px);
}

.card-viz {
    background: linear-gradient(180deg, #ffffff 0%, #f0f9ff 100%);
}

.chart-item {
    background: white;
    padding: 16px 24px;
    border-radius: 20px;
    margin-bottom: 16px;
    display: flex;
    align-items: center;
    gap: 20px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.03);
    border: 1px solid rgba(0, 0, 0, 0.02);
    transition: all 0.3s ease;
    font-weight: 600;
    color: #1e293b;
}

.chart-item:hover {
    transform: translateX(12px) scale(1.02);
    border-color: #3b82f6;
    color: #3b82f6;
}

/* Privacy Card - Professional Dark */
.card-privacy {
    background: #020617;
    color: white;
    border: none;
}

.card-privacy h2,
.card-privacy h3 {
    color: white !important;
}

.card-privacy p {
    color: #64748b;
    font-size: 1.1rem;
}

.privacy-visual {
    position: absolute;
    right: 60px;
    bottom: 60px;
    width: 80px;
    height: 80px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.lock-icon {
    font-size: 3.5rem;
    z-index: 2;
}

.shield-pulse {
    position: absolute;
    width: 100px;
    height: 100px;
    background: rgba(59, 130, 246, 0.2);
    border-radius: 50%;
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0% {
        transform: scale(0.6);
        opacity: 1;
    }

    100% {
        transform: scale(1.4);
        opacity: 0;
    }
}

/* Images & Visuals */
.card-visual img {
    width: 100%;
    border-radius: 16px;
    box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1);
}

/* CTA Section */
.features-cta {
    margin-top: 40px;
    text-align: center;
    padding: 80px 40px;
    background: #0f172a;
    color: white;
    border-radius: var(--radius-lg);
    width: 100%;
    position: relative;
    overflow: hidden;
}

.features-cta h2 {
    font-size: 3rem;
    font-weight: 800;
    margin-bottom: 40px;
    letter-spacing: -0.02em;
}

.btn-lg {
    padding: 20px 50px;
    font-size: 1.1rem;
    font-weight: 600;
    border-radius: 100px;
    background: white;
    color: #0f172a;
    text-decoration: none;
    transition: all 0.3s ease;
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1);
}

.btn-lg:hover {
    transform: translateY(-4px);
    box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.2);
    background: #f8fafc;
}

/* Icon Variants */
.icon-purple {
    background: rgba(139, 92, 246, 0.1);
    color: #8b5cf6;
}

.icon-blue {
    background: rgba(59, 130, 246, 0.1);
    color: #3b82f6;
}

.icon-red {
    background: rgba(239, 68, 68, 0.1);
    color: #ef4444;
}

.icon-teal {
    background: rgba(20, 184, 166, 0.1);
    color: #14b8a6;
}

.icon-orange {
    background: rgba(249, 115, 22, 0.1);
    color: #f97316;
}

.icon-green {
    background: rgba(34, 197, 94, 0.1);
    color: #22c55e;
}

.icon-yellow {
    background: rgba(234, 179, 8, 0.1);
    color: #eab308;
}

/* Responsive Adjustments */
@media (max-width: 1280px) {
    .hero-title-new {
        font-size: 3.5rem;
    }
}

@media (max-width: 1024px) {
    .features-top-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .bento-container {
        grid-template-columns: repeat(2, 1fr);
        grid-auto-rows: auto;
    }

    .card-wide {
        grid-column: span 2;
    }

    .card-tall {
        grid-row: span 1;
    }
}

@media (max-width: 768px) {
    .features-top-grid {
        grid-template-columns: 1fr;
    }

    .bento-container {
        grid-template-columns: 1fr;
    }

    .card-wide {
        grid-column: span 1;
    }

    .hero-title-new {
        font-size: 2.8rem;
    }

    .features-main {
        padding-top: 100px;
    }
}