/* Features Page Specific Styles */

/* Reuse variables from main.css */

.features-hero {
    padding: calc(var(--header-offset) + 4rem) 0 6rem;
    margin-top: calc(-1 * var(--header-offset));
    text-align: center;
    background: radial-gradient(circle at 50% 0%, rgba(0, 131, 255, 0.08) 0%, rgba(255, 255, 255, 0) 60%), #ffffff;
}

.features-hero h1 {
    font-size: clamp(3rem, 6vw, 4.5rem);
    /* Increased size to match Home */
    line-height: 1.05;
    letter-spacing: -0.02em;
    margin-bottom: 1.5rem;
    max-width: 900px;
    margin-left: auto;
    margin-right: auto;
    color: #000c2a;
}

.features-hero p {
    font-size: 1.25rem;
    color: var(--color-muted);
    max-width: 700px;
    margin: 0 auto 2rem;
}

/* Feature Sections */
.feature-section {
    padding: clamp(6rem, 8vw, 8rem) 0;
    /* More spacing */
    background: #ffffff;
    /* Bright background for all */
}

/* Remove alternating background to keep it bright */
.feature-section:nth-child(even) {
    background: #ffffff;
}

.feature-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: clamp(2rem, 5vw, 4rem);
    align-items: center;
}

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

.feature-grid--reverse .feature-content {
    order: 2;
}

.feature-grid--reverse .feature-visual {
    order: 1;
}

@media (max-width: 768px) {
    .feature-grid--reverse .feature-content {
        order: 0;
    }

    .feature-grid--reverse .feature-visual {
        order: 0;
    }
}

.feature-content h2 {
    font-size: clamp(2rem, 3vw, 2.5rem);
    margin-bottom: 1rem;
}

.feature-content p {
    font-size: 1.1rem;
    color: var(--color-muted);
    margin-bottom: 1.5rem;
}

.feature-visual {
    background: #ffffff;
    border-radius: var(--radius-lg);
    padding: 2rem;
    box-shadow: var(--shadow-lg);
    border: 1px solid rgba(0, 131, 255, 0.12);
    /* Match Home page media-frame border */
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 300px;
}

.feature-visual img {
    max-width: 100%;
    height: auto;
    border-radius: var(--radius-sm);
}

/* Specific Feature Visuals */
.compatibility-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 2rem;
    width: 100%;
    padding: 2rem;
}

.compatibility-item {
    display: flex;
    justify-content: center;
    align-items: center;
    aspect-ratio: 1;
    transition: transform 0.2s ease;
}

.compatibility-item:hover {
    transform: scale(1.1);
}

.compatibility-item img {
    width: 68px;
    /* Reduced from 80px as requested */
    height: 68px;
    object-fit: contain;
    filter: drop-shadow(0 4px 6px rgba(0, 0, 0, 0.05));
}

/* Modes Grid */
.modes-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1rem;
    width: 100%;
}

.mode-card {
    padding: 1.5rem;
    background: #ffffff;
    border-radius: var(--radius-sm);
    text-align: center;
    border: 1px solid var(--color-border);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
    /* Subtle shadow */
    transition: all 0.2s ease;
}

.mode-card:hover {
    border-color: var(--color-primary);
    transform: translateY(-2px);
}

.mode-icon {
    font-size: 2rem;
    margin-bottom: 0.5rem;
    display: block;
}

.mode-name {
    font-weight: 600;
    display: block;
}

/* Call to Action */
.features-cta {
    text-align: center;
    padding: 6rem 0;
    background: var(--color-primary-soft);
}

.features-cta h2 {
    font-size: 2.5rem;
    margin-bottom: 1rem;
}

.features-cta p {
    margin-bottom: 2rem;
    color: var(--color-muted);
    font-size: 1.2rem;
}