/* ==================== */
/* Features Overview Page */
/* ==================== */

/* Hub Cards in Header */
.features-hub-card {
    position: relative;
    cursor: pointer;
    text-decoration: none;
}

.features-hub-card-inner {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.875rem 1rem;
    background: linear-gradient(135deg, rgba(30, 41, 59, 0.6), rgba(15, 23, 42, 0.8));
    border: 1px solid rgba(148, 163, 184, 0.1);
    border-radius: 0.75rem;
    transition: all 0.3s ease;
}

.features-hub-card:hover .features-hub-card-inner {
    border-color: rgba(9, 167, 213, 0.3);
    background: linear-gradient(135deg, rgba(30, 41, 59, 0.8), rgba(15, 23, 42, 0.9));
    transform: translateY(-2px);
    box-shadow: 0 10px 40px rgba(9, 167, 213, 0.1);
}

.features-hub-icon {
    width: 40px;
    height: 40px;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, rgba(9, 167, 213, 0.15), rgba(9, 167, 213, 0.1));
    border: 1px solid rgba(9, 167, 213, 0.2);
    flex-shrink: 0;
}

.features-hub-card-content {
    flex: 1;
    min-width: 0;
}

.features-hub-title {
    font-size: 0.875rem;
    font-weight: 600;
    color: #e2e8f0;
    transition: color 0.2s ease;
    margin-bottom: 0.125rem;
    line-height: 1.3;
}

.features-hub-card:hover .features-hub-title {
    color: #22d3ee;
}

.features-hub-desc {
    font-size: 0.7rem;
    color: #64748b;
}

.features-hub-arrow {
    width: 16px;
    height: 16px;
    color: #22d3ee;
    opacity: 0.5;
    transition: all 0.2s ease;
    flex-shrink: 0;
}

.features-hub-card:hover .features-hub-arrow {
    opacity: 1;
    transform: translateY(3px);
}

/* ==================== */
/* Timeline Design */
/* ==================== */

.features-timeline {
    position: relative;
}

.features-timeline-line {
    position: absolute;
    left: 50%;
    top: 0;
    bottom: 0;
    width: 2px;
    background: linear-gradient(to bottom,
            transparent,
            rgba(9, 167, 213, 0.2) 10%,
            rgba(9, 167, 213, 0.2) 90%,
            transparent);
    transform: translateX(-50%);
}

/* Timeline Node */
.features-timeline-node {
    position: absolute;
    left: 50%;
    top: 2rem;
    transform: translateX(-50%);
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: linear-gradient(135deg, rgba(15, 23, 42, 0.98), rgba(30, 41, 59, 0.98));
    border: 2px solid rgba(9, 167, 213, 0.4);
    display: none;
    align-items: center;
    justify-content: center;
    z-index: 10;
    box-shadow: 0 0 20px rgba(9, 167, 213, 0.15);
}

@media (min-width: 768px) {
    .features-timeline-node {
        display: flex;
    }
}

.features-timeline-number {
    font-size: 0.875rem;
    font-weight: 700;
    color: #22d3ee;
}

/* Section Content Layout */
.features-section-content {
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

@media (min-width: 768px) {
    .features-section-content {
        display: flex;
        flex-direction: row;
        align-items: flex-start;
        gap: 4rem;
        padding-top: 1rem;
    }

    .features-section-content.md\:flex-row-reverse {
        flex-direction: row-reverse;
    }
}

.features-section-header {
    flex: 1;
}

@media (min-width: 768px) {
    .features-section-header {
        max-width: 45%;
        padding-top: 2rem;
    }
}

.features-section-cards {
    flex: 1;
}

@media (min-width: 768px) {
    .features-section-cards {
        max-width: 50%;
    }
}

/* Section Icon */
.features-section-icon {
    width: 64px;
    height: 64px;
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, rgba(9, 167, 213, 0.15), rgba(9, 167, 213, 0.1));
    border: 1px solid rgba(9, 167, 213, 0.25);
    flex-shrink: 0;
}

/* Highlight Cards */
.features-highlight-card {
    position: relative;
}

.features-highlight-inner {
    display: flex;
    align-items: flex-start;
    gap: 1rem;
    padding: 1.25rem;
    background: linear-gradient(135deg, rgba(30, 41, 59, 0.5), rgba(15, 23, 42, 0.7));
    border: 1px solid rgba(148, 163, 184, 0.1);
    border-radius: 1rem;
    transition: all 0.3s ease;
}

.features-highlight-card:hover .features-highlight-inner {
    background: linear-gradient(135deg, rgba(30, 41, 59, 0.7), rgba(15, 23, 42, 0.9));
    border-color: rgba(9, 167, 213, 0.3);
    transform: translateX(4px);
}

.features-highlight-icon {
    width: 40px;
    height: 40px;
    border-radius: 10px;
    background: rgba(30, 41, 59, 0.8);
    border: 1px solid rgba(148, 163, 184, 0.15);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

/* ==================== */
/* Bento Box Layouts */
/* ==================== */

.bento-link {
    display: block;
    text-decoration: none;
    color: inherit;
    transition: transform 0.3s ease;
}

.bento-link:hover {
    transform: translateY(-4px);
}

.bento-grid {
    display: grid;
    gap: 1rem;
    width: 100%;
}

/* Layout 1: Large left + 2 stacked right */
.bento-layout-1 {
    grid-template-columns: 1fr;
    grid-template-rows: auto auto auto;
}

@media (min-width: 768px) {
    .bento-layout-1 {
        grid-template-columns: 1.2fr 1fr;
        grid-template-rows: 1fr 1fr;
    }

    .bento-layout-1 .bento-card-large {
        grid-row: 1 / 3;
        grid-column: 1;
    }
}

/* Layout 2: Wide top + 2 columns bottom */
.bento-layout-2 {
    grid-template-columns: 1fr;
    grid-template-rows: auto auto auto;
}

@media (min-width: 768px) {
    .bento-layout-2 {
        grid-template-columns: 1fr 1fr;
        grid-template-rows: auto auto;
    }

    .bento-layout-2 .bento-card-wide {
        grid-column: 1 / 3;
        grid-row: 1;
    }
}

/* Layout 3: 2 columns top + wide bottom */
.bento-layout-3 {
    grid-template-columns: 1fr;
    grid-template-rows: auto auto auto;
}

@media (min-width: 768px) {
    .bento-layout-3 {
        grid-template-columns: 1fr 1fr;
        grid-template-rows: auto auto;
    }

    .bento-layout-3 .bento-card-wide {
        grid-column: 1 / 3;
        grid-row: 2;
    }
}

/* Layout 4: 2 stacked left + large right */
.bento-layout-4 {
    grid-template-columns: 1fr;
    grid-template-rows: auto auto auto;
}

@media (min-width: 768px) {
    .bento-layout-4 {
        grid-template-columns: 1fr 1.2fr;
        grid-template-rows: 1fr 1fr;
    }

    .bento-layout-4 .bento-card-large {
        grid-row: 1 / 3;
        grid-column: 2;
    }
}

/* Bento Card Base */
.bento-card {
    position: relative;
    border-radius: 1rem;
    overflow: hidden;
    background: rgba(30, 41, 59, 0.3);
    border: 1px solid rgba(148, 163, 184, 0.08);
    transition: all 0.3s ease;
}

.bento-card-inner {
    padding: 1.5rem;
    height: 100%;
    display: flex;
    flex-direction: column;
}

/* Large card spans 2 rows */
.bento-card-large .bento-card-inner {
    min-height: 280px;
    justify-content: space-between;
}

/* Wide card layout */
.bento-card-wide .bento-card-inner {
    min-height: 120px;
}

/* Bento Icon */
.bento-icon {
    width: 48px;
    height: 48px;
    border-radius: 12px;
    background: linear-gradient(135deg, rgba(9, 167, 213, 0.15), rgba(9, 167, 213, 0.08));
    border: 1px solid rgba(9, 167, 213, 0.2);
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1rem;
    flex-shrink: 0;
    transition: all 0.3s ease;
}

.bento-link:hover .bento-icon {
    background: linear-gradient(135deg, rgba(9, 167, 213, 0.25), rgba(9, 167, 213, 0.15));
    border-color: rgba(9, 167, 213, 0.4);
}

.bento-icon svg {
    width: 24px;
    height: 24px;
    color: #22d3ee;
}

/* Large card icon */
.bento-card-large .bento-icon {
    width: 56px;
    height: 56px;
}

.bento-card-large .bento-icon svg {
    width: 28px;
    height: 28px;
}

/* Bento Content */
.bento-content {
    flex: 1;
}

.bento-title {
    font-size: 1.125rem;
    font-weight: 700;
    color: #e2e8f0;
    margin-bottom: 0.5rem;
    line-height: 1.3;
}

.bento-card-large .bento-title {
    font-size: 1.25rem;
}

.bento-desc {
    font-size: 0.875rem;
    color: #94a3b8;
    line-height: 1.6;
}

.bento-card-large .bento-desc {
    font-size: 1rem;
}

/* Hover Indicator */
.bento-hover-indicator {
    position: absolute;
    bottom: 1rem;
    right: 1rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    opacity: 0;
    transform: translateY(4px);
    transition: all 0.3s ease;
}

.bento-link:hover .bento-hover-indicator {
    opacity: 1;
    transform: translateY(0);
}

.bento-hover-indicator span {
    font-size: 0.75rem;
    color: #22d3ee;
    font-weight: 500;
}

.bento-hover-indicator svg {
    width: 16px;
    height: 16px;
    color: #22d3ee;
}