/* Features Page - Premium Bento Grid Design with Light Theme */

.features-page {
    width: 100%;
    max-width: 100%;
    overflow-x: hidden;
    background: #f8fafc;
    min-height: 100vh;
}

/* ============================================
   HERO SECTION - LIGHT WITH SUBTLE GLOWS
   ============================================ */
.features-hero {
    position: relative;
    min-height: 480px;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    background: radial-gradient(ellipse 80% 50% at 50% -20%, rgba(0, 123, 252, 0.12), transparent),
                radial-gradient(ellipse 60% 40% at 80% 100%, rgba(139, 92, 246, 0.08), transparent),
                linear-gradient(180deg, #ffffff 0%, #f8fafc 100%);
    padding: 80px 40px;
}

/* Animated Gradient Orbs */
.hero-blob {
    position: absolute;
    border-radius: 50%;
    filter: blur(100px);
    opacity: 0.4;
    will-change: transform;
}

.hero-blob-1 {
    width: 600px;
    height: 600px;
    background: radial-gradient(circle, rgba(0, 123, 252, 0.3) 0%, transparent 70%);
    top: -200px;
    left: -150px;
    animation: blobFloat1 25s ease-in-out infinite;
}

.hero-blob-2 {
    width: 500px;
    height: 500px;
    background: radial-gradient(circle, rgba(139, 92, 246, 0.25) 0%, transparent 70%);
    bottom: -150px;
    right: -100px;
    animation: blobFloat2 20s ease-in-out infinite;
}

.hero-blob-3 {
    width: 350px;
    height: 350px;
    background: radial-gradient(circle, rgba(6, 182, 212, 0.2) 0%, transparent 70%);
    top: 40%;
    left: 60%;
    animation: blobFloat3 18s ease-in-out infinite;
}

@keyframes blobFloat1 {
    0%, 100% { transform: translate(0, 0) scale(1); }
    33% { transform: translate(80px, 50px) scale(1.1); }
    66% { transform: translate(-40px, -30px) scale(0.95); }
}

@keyframes blobFloat2 {
    0%, 100% { transform: translate(0, 0) scale(1); }
    33% { transform: translate(-60px, -40px) scale(1.08); }
    66% { transform: translate(50px, 30px) scale(0.92); }
}

@keyframes blobFloat3 {
    0%, 100% { transform: translate(0, 0) scale(1); }
    33% { transform: translate(40px, -50px) scale(1.15); }
    66% { transform: translate(-30px, 40px) scale(0.9); }
}

.features-hero-content {
    position: relative;
    z-index: 2;
    text-align: center;
    max-width: 800px;
}

.features-hero-title {
    font-size: 58px;
    font-weight: 700;
    color: #0f172a;
    line-height: 1.1;
    margin-bottom: 24px;
    letter-spacing: -2px;
    animation: heroFadeIn 1s ease-out forwards;
    opacity: 0;
}

.features-hero-title span {
    background: linear-gradient(135deg, #007BFC 0%, #3b82f6 50%, #8b5cf6 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.features-hero-subtitle {
    font-size: 20px;
    color: #64748b;
    line-height: 1.7;
    max-width: 600px;
    margin: 0 auto;
    animation: heroFadeIn 1s ease-out 0.3s forwards;
    opacity: 0;
}

@keyframes heroFadeIn {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* ============================================
   BENTO GRID SECTION
   ============================================ */
.features-section {
    padding: 100px 40px;
    max-width: 1300px;
    margin: 0 auto;
    background: transparent;
}

.features-section-header {
    text-align: center;
    margin-bottom: 70px;
}

.features-section-header h2 {
    font-size: 42px;
    font-weight: 700;
    color: #0f172a;
    margin-bottom: 16px;
    letter-spacing: -1px;
}

.features-section-header p {
    font-size: 18px;
    color: #64748b;
    max-width: 500px;
    margin: 0 auto;
    line-height: 1.6;
}

/* ============================================
   BENTO GRID LAYOUT
   ============================================ */
.bento-grid {
    display: grid;
    grid-template-columns: repeat(12, 1fr);
    grid-auto-rows: minmax(200px, auto);
    gap: 20px;
}

/* Card Base - Light Glassmorphism */
.bento-card {
    position: relative;
    background: rgba(255, 255, 255, 0.8);
    backdrop-filter: blur(20px);
    border-radius: 24px;
    padding: 36px;
    overflow: hidden;
    transition: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);
    display: flex;
    flex-direction: column;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.04), 0 4px 20px rgba(0, 0, 0, 0.03);
}

/* Gradient Border Effect */
.bento-card::before {
    content: '';
    position: absolute;
    inset: 0;
    border-radius: 24px;
    padding: 1px;
    background: linear-gradient(135deg, rgba(0, 0, 0, 0.06), rgba(0, 0, 0, 0.02));
    -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
    -webkit-mask-composite: xor;
    mask-composite: exclude;
    pointer-events: none;
}

/* Glow effect on hover */
.bento-card::after {
    content: '';
    position: absolute;
    inset: -1px;
    border-radius: 24px;
    background: linear-gradient(135deg, var(--card-glow, #007BFC), transparent 60%);
    opacity: 0;
    z-index: -1;
    transition: opacity 0.5s ease;
    filter: blur(30px);
}

.bento-card:hover {
    transform: translateY(-4px);
    background: rgba(255, 255, 255, 0.95);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05), 0 8px 32px rgba(0, 0, 0, 0.04);
}

.bento-card:hover::after {
    opacity: 0.25;
}

/* Card Sizes */
.bento-card.large {
    grid-column: span 8;
    grid-row: span 2;
}

.bento-card.medium {
    grid-column: span 4;
    grid-row: span 2;
}

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

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

.bento-card.small {
    grid-column: span 4;
    grid-row: span 1;
}

/* Card Glow Colors */
.bento-card.transcription { --card-glow: #007BFC; }
.bento-card.onelive { --card-glow: #ec4899; }
.bento-card.meetings { --card-glow: #8b5cf6; }
.bento-card.onechat { --card-glow: #06b6d4; }
.bento-card.onesearch { --card-glow: #10b981; }
.bento-card.projects { --card-glow: #f59e0b; }

/* Card Icon */
.bento-icon {
    width: 56px;
    height: 56px;
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 24px;
    position: relative;
    background: linear-gradient(135deg, rgba(0, 123, 252, 0.15), rgba(0, 123, 252, 0.05));
}

.bento-card.transcription .bento-icon {
    background: linear-gradient(135deg, rgba(0, 123, 252, 0.2), rgba(96, 165, 250, 0.1));
    color: #60a5fa;
}
.bento-card.onelive .bento-icon {
    background: linear-gradient(135deg, rgba(236, 72, 153, 0.2), rgba(244, 114, 182, 0.1));
    color: #f472b6;
}
.bento-card.meetings .bento-icon {
    background: linear-gradient(135deg, rgba(139, 92, 246, 0.2), rgba(167, 139, 250, 0.1));
    color: #a78bfa;
}
.bento-card.onechat .bento-icon {
    background: linear-gradient(135deg, rgba(6, 182, 212, 0.2), rgba(34, 211, 238, 0.1));
    color: #22d3ee;
}
.bento-card.onesearch .bento-icon {
    background: linear-gradient(135deg, rgba(16, 185, 129, 0.2), rgba(52, 211, 153, 0.1));
    color: #34d399;
}
.bento-card.projects .bento-icon {
    background: linear-gradient(135deg, rgba(245, 158, 11, 0.2), rgba(251, 191, 36, 0.1));
    color: #fbbf24;
}

/* Card Content */
.bento-card h3 {
    font-size: 24px;
    font-weight: 700;
    color: #0f172a;
    margin-bottom: 12px;
    letter-spacing: -0.5px;
}

.bento-card.large h3 {
    font-size: 32px;
}

.bento-card > p {
    font-size: 16px;
    color: #64748b;
    line-height: 1.7;
    margin-bottom: 24px;
    flex-grow: 1;
}

.bento-card.large > p {
    font-size: 18px;
    max-width: 500px;
}

/* Feature Pills */
.feature-pills {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: auto;
}

.feature-pill {
    padding: 8px 16px;
    font-size: 13px;
    font-weight: 500;
    color: #475569;
    background: rgba(0, 123, 252, 0.06);
    border-radius: 100px;
    border: 1px solid rgba(0, 123, 252, 0.1);
    transition: all 0.3s ease;
}

.feature-pill:hover {
    background: rgba(0, 123, 252, 0.1);
    border-color: rgba(0, 123, 252, 0.2);
    color: #007BFC;
}

/* Coming Soon Badge */
.coming-soon-badge {
    position: absolute;
    top: 24px;
    right: 24px;
    padding: 8px 14px;
    font-size: 11px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: #fbbf24;
    background: rgba(245, 158, 11, 0.15);
    border: 1px solid rgba(245, 158, 11, 0.3);
    border-radius: 100px;
    z-index: 2;
}

/* ============================================
   AI CAPABILITIES SECTION
   ============================================ */
.features-section-alt {
    background: linear-gradient(180deg, #f1f5f9 0%, #e2e8f0 50%, #f1f5f9 100%);
    padding: 100px 40px;
    position: relative;
}

.features-section-alt::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(0, 123, 252, 0.2), transparent);
}

.features-section-alt > .features-section-header,
.features-section-alt > .capabilities-grid {
    max-width: 1300px;
    margin-left: auto;
    margin-right: auto;
}

.capabilities-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
}

.capability-card {
    background: rgba(255, 255, 255, 0.7);
    border: 1px solid rgba(0, 0, 0, 0.05);
    border-radius: 20px;
    padding: 32px;
    transition: all 0.4s ease;
    position: relative;
    overflow: hidden;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.03);
}

.capability-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 2px;
    background: linear-gradient(90deg, #007BFC, #60a5fa);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.capability-card:hover {
    background: rgba(255, 255, 255, 0.95);
    border-color: rgba(0, 123, 252, 0.2);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
}

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

.capability-icon {
    width: 48px;
    height: 48px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 20px;
    background: linear-gradient(135deg, rgba(0, 123, 252, 0.15), rgba(0, 123, 252, 0.05));
    color: #60a5fa;
}

.capability-card h4 {
    font-size: 18px;
    font-weight: 700;
    color: #0f172a;
    margin-bottom: 10px;
}

.capability-card p {
    font-size: 15px;
    color: #64748b;
    line-height: 1.6;
}

/* ============================================
   QUICK LINKS SECTION
   ============================================ */
.quick-links-section {
    position: relative;
    padding: 80px 40px;
    background: #f8fafc;
    overflow: hidden;
}

.quick-links-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(0, 0, 0, 0.06), transparent);
}

/* Subtle background glow */
.quick-links-glow {
    position: absolute;
    width: 600px;
    height: 600px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(0, 123, 252, 0.06) 0%, transparent 70%);
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    pointer-events: none;
}

.quick-links-content {
    position: relative;
    z-index: 2;
    max-width: 1100px;
    margin: 0 auto;
}

.quick-links-header {
    text-align: center;
    margin-bottom: 50px;
}

.quick-links-header h2 {
    font-size: 36px;
    font-weight: 700;
    color: #0f172a;
    margin-bottom: 12px;
}

.quick-links-header p {
    font-size: 17px;
    color: #64748b;
}

.quick-links-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 16px;
}

.quick-link-card {
    background: rgba(255, 255, 255, 0.8);
    border: 1px solid rgba(0, 0, 0, 0.05);
    border-radius: 20px;
    padding: 32px 24px;
    text-align: center;
    text-decoration: none;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.03);
}

.quick-link-card::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, var(--link-glow, rgba(0, 123, 252, 0.08)), transparent);
    opacity: 0;
    transition: opacity 0.4s ease;
}

.quick-link-card:hover {
    background: rgba(255, 255, 255, 0.95);
    border-color: rgba(0, 123, 252, 0.2);
    transform: translateY(-4px);
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.06);
}

.quick-link-card:hover::before {
    opacity: 1;
}

.quick-link-card:nth-child(1) { --link-glow: rgba(0, 123, 252, 0.1); }
.quick-link-card:nth-child(2) { --link-glow: rgba(236, 72, 153, 0.1); }
.quick-link-card:nth-child(3) { --link-glow: rgba(139, 92, 246, 0.1); }
.quick-link-card:nth-child(4) { --link-glow: rgba(16, 185, 129, 0.1); }

.quick-link-icon {
    width: 60px;
    height: 60px;
    margin: 0 auto 20px;
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    z-index: 1;
}

.quick-link-card:nth-child(1) .quick-link-icon {
    background: linear-gradient(135deg, rgba(0, 123, 252, 0.2), rgba(96, 165, 250, 0.1));
    color: #60a5fa;
}

.quick-link-card:nth-child(2) .quick-link-icon {
    background: linear-gradient(135deg, rgba(236, 72, 153, 0.2), rgba(244, 114, 182, 0.1));
    color: #f472b6;
}

.quick-link-card:nth-child(3) .quick-link-icon {
    background: linear-gradient(135deg, rgba(139, 92, 246, 0.2), rgba(167, 139, 250, 0.1));
    color: #a78bfa;
}

.quick-link-card:nth-child(4) .quick-link-icon {
    background: linear-gradient(135deg, rgba(16, 185, 129, 0.2), rgba(52, 211, 153, 0.1));
    color: #34d399;
}

.quick-link-card h3 {
    font-size: 17px;
    font-weight: 600;
    color: #0f172a;
    margin-bottom: 8px;
    position: relative;
    z-index: 1;
}

.quick-link-card p {
    font-size: 14px;
    color: #64748b;
    line-height: 1.5;
    position: relative;
    z-index: 1;
}

/* ============================================
   RESPONSIVE DESIGN
   ============================================ */
@media (max-width: 1200px) {
    .bento-card.large {
        grid-column: span 12;
    }

    .bento-card.medium {
        grid-column: span 6;
    }

    .bento-card.wide {
        grid-column: span 6;
    }

    .bento-card.tall {
        grid-column: span 12;
    }

    .bento-card.small {
        grid-column: span 6;
    }
}

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

    .quick-links-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .features-hero {
        min-height: 400px;
        padding: 60px 24px;
    }

    .features-hero-title {
        font-size: 36px;
        letter-spacing: -1px;
    }

    .features-hero-subtitle {
        font-size: 17px;
    }

    .hero-blob-1 { width: 350px; height: 350px; }
    .hero-blob-2 { width: 300px; height: 300px; }
    .hero-blob-3 { width: 200px; height: 200px; }

    .features-section {
        padding: 60px 20px;
    }

    .features-section-alt {
        padding: 60px 20px;
    }

    .features-section-header h2 {
        font-size: 32px;
    }

    .features-section-header {
        margin-bottom: 50px;
    }

    .bento-grid {
        gap: 16px;
    }

    .bento-card {
        grid-column: span 12 !important;
        grid-row: span 1 !important;
        padding: 28px;
    }

    .bento-card h3 {
        font-size: 22px !important;
    }

    .bento-card > p {
        font-size: 15px !important;
    }

    .capabilities-grid {
        grid-template-columns: 1fr;
    }

    .quick-links-section {
        padding: 60px 20px;
    }

    .quick-links-grid {
        grid-template-columns: 1fr;
        gap: 12px;
    }

    .quick-links-header h2 {
        font-size: 28px;
    }
}

/* Sidebar collapsed state */
@media (max-width: 767px) {
    main {
        margin-left: 0 !important;
    }
}

/* ============================================
   ANIMATIONS
   ============================================ */
.bento-card,
.capability-card,
.quick-link-card {
    opacity: 0;
    animation: cardFadeIn 0.7s ease forwards;
}

@keyframes cardFadeIn {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Staggered delays for bento cards */
.bento-card:nth-child(1) { animation-delay: 0.1s; }
.bento-card:nth-child(2) { animation-delay: 0.2s; }
.bento-card:nth-child(3) { animation-delay: 0.3s; }
.bento-card:nth-child(4) { animation-delay: 0.4s; }
.bento-card:nth-child(5) { animation-delay: 0.5s; }
.bento-card:nth-child(6) { animation-delay: 0.6s; }

.capability-card:nth-child(1) { animation-delay: 0.1s; }
.capability-card:nth-child(2) { animation-delay: 0.15s; }
.capability-card:nth-child(3) { animation-delay: 0.2s; }
.capability-card:nth-child(4) { animation-delay: 0.25s; }
.capability-card:nth-child(5) { animation-delay: 0.3s; }
.capability-card:nth-child(6) { animation-delay: 0.35s; }

.quick-link-card:nth-child(1) { animation-delay: 0.1s; }
.quick-link-card:nth-child(2) { animation-delay: 0.2s; }
.quick-link-card:nth-child(3) { animation-delay: 0.3s; }
.quick-link-card:nth-child(4) { animation-delay: 0.4s; }

/* ============================================
   REDUCED MOTION
   ============================================ */
@media (prefers-reduced-motion: reduce) {
    .hero-blob {
        animation: none !important;
    }

    .bento-card,
    .capability-card,
    .quick-link-card {
        animation: none;
        opacity: 1;
    }

    .bento-card:hover,
    .capability-card:hover,
    .quick-link-card:hover {
        transform: none;
    }

    .features-hero-title,
    .features-hero-subtitle {
        animation: none;
        opacity: 1;
    }
}
