/* ============================================
   Features Page Styles
   Nordic-inspired design
   ============================================ */

/* Hero */
.features-hero {
    padding: 80px 24px;
    text-align: center;
    background: linear-gradient(180deg, var(--color-bg-light) 0%, var(--color-bg-white) 100%);
    position: relative;
}

.features-hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 100%;
    background: radial-gradient(circle at 30% 30%, rgba(13, 79, 79, 0.03) 0%, transparent 50%);
    pointer-events: none;
}

.features-hero h1 {
    margin-bottom: 16px;
    position: relative;
}

.features-hero p {
    font-size: 1.15rem;
    color: var(--color-text-secondary);
    max-width: 600px;
    margin: 0 auto;
    position: relative;
}

/* Feature Sections */
.feature-section {
    padding: 100px 24px;
}

.feature-section.alt {
    background: var(--color-bg-light);
}

.feature-content {
    display: flex;
    align-items: center;
    gap: 72px;
    max-width: 1200px;
    margin: 0 auto;
}

.feature-content.reverse {
    flex-direction: row-reverse;
}

.feature-text {
    flex: 1;
    min-width: 300px;
}

.feature-label {
    display: inline-block;
    background: var(--color-primary-light);
    color: var(--color-primary);
    padding: 6px 14px;
    border-radius: 20px;
    font-family: var(--font-display);
    font-size: 0.8rem;
    font-weight: 700;
    margin-bottom: 20px;
    letter-spacing: -0.01em;
}

.feature-text h2 {
    margin-bottom: 20px;
    font-size: 2rem;
    letter-spacing: -0.02em;
}

.feature-text p {
    margin-bottom: 24px;
    font-size: 1.05rem;
    line-height: 1.75;
    color: var(--color-text-secondary);
}

.feature-list {
    list-style: none;
}

.feature-list li {
    position: relative;
    padding-left: 28px;
    margin-bottom: 14px;
    font-size: 1rem;
    color: var(--color-text-secondary);
    line-height: 1.6;
}

.feature-list li::before {
    content: "✓";
    position: absolute;
    left: 0;
    color: var(--color-success);
    font-weight: 700;
}

.feature-note {
    margin-top: 24px;
    padding: 16px 20px;
    background: var(--color-bg-light);
    border-radius: var(--radius-md);
    font-size: 0.9rem;
    color: var(--color-text-secondary);
    border-left: 3px solid var(--color-primary);
}

.feature-image {
    flex: 1;
    min-width: 300px;
    max-width: 520px;
}

/* Mockups */
.feature-mockup {
    background: var(--color-bg-white);
    border-radius: var(--radius-xl);
    border: 1px solid var(--color-gray-200);
    box-shadow: var(--shadow-lg);
    overflow: hidden;
}

.mockup-header {
    padding: 14px 18px;
    background: var(--color-bg-light);
    border-bottom: 1px solid var(--color-gray-200);
    display: flex;
    gap: 8px;
}

.mockup-dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
}

.mockup-dot.red { background: #ff5f57; }
.mockup-dot.yellow { background: #febc2e; }
.mockup-dot.green { background: #28c840; }

.mockup-content {
    padding: 28px;
}

/* Insights Mockup */
.mockup-card {
    padding: 18px;
    border-radius: var(--radius-md);
    margin-bottom: 14px;
    transition: transform var(--transition-fast);
}

.mockup-card:last-child {
    margin-bottom: 0;
}

.mockup-card:hover {
    transform: translateX(4px);
}

.mockup-card.important {
    background: linear-gradient(135deg, #fef2f2 0%, #fee2e2 100%);
    border-left: 4px solid #dc2626;
}

.mockup-card.watch {
    background: linear-gradient(135deg, #fefce8 0%, #fef3c7 100%);
    border-left: 4px solid #f59e0b;
}

.mockup-card.noise {
    background: var(--color-bg-light);
    border-left: 4px solid var(--color-gray-400);
}

.mockup-card .badge {
    display: inline-block;
    font-family: var(--font-display);
    font-size: 0.7rem;
    font-weight: 700;
    padding: 3px 10px;
    border-radius: 4px;
    margin-bottom: 8px;
    text-transform: uppercase;
    letter-spacing: 0.03em;
}

.mockup-card.important .badge {
    background: #dc2626;
    color: white;
}

.mockup-card.watch .badge {
    background: #f59e0b;
    color: white;
}

.mockup-card.noise .badge {
    background: var(--color-gray-400);
    color: white;
}

.mockup-card p {
    font-size: 0.9rem;
    color: var(--color-text);
    line-height: 1.5;
}

/* Context Mockup */
.page-type {
    padding: 18px;
    border-radius: var(--radius-md);
    margin-bottom: 14px;
    background: var(--color-bg-light);
    border: 1px solid var(--color-gray-200);
    transition: all var(--transition-fast);
}

.page-type:last-child {
    margin-bottom: 0;
}

.page-type:hover {
    border-color: var(--color-gray-300);
    box-shadow: var(--shadow-sm);
}

.type-badge {
    display: inline-block;
    font-family: var(--font-display);
    font-size: 0.7rem;
    font-weight: 700;
    padding: 3px 10px;
    border-radius: 4px;
    margin-bottom: 8px;
    text-transform: uppercase;
    letter-spacing: 0.03em;
}

.page-type.authority .type-badge {
    background: #3b82f6;
    color: white;
}

.page-type.sales .type-badge {
    background: var(--color-success);
    color: white;
}

.page-type p {
    font-size: 0.9rem;
    color: var(--color-text);
    margin-bottom: 4px;
    font-weight: 500;
}

.page-type small {
    font-size: 0.8rem;
    color: var(--color-text-secondary);
}

/* CMS Flow Mockup */
.cms-flow {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 14px;
    padding: 24px 0;
}

.flow-step {
    text-align: center;
    padding: 18px;
    background: var(--color-bg-light);
    border-radius: var(--radius-md);
    min-width: 90px;
    transition: all var(--transition-fast);
}

.flow-step:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-sm);
}

.flow-step.done {
    background: linear-gradient(135deg, #d1fae5 0%, #a7f3d0 100%);
}

.step-num {
    display: block;
    width: 32px;
    height: 32px;
    background: linear-gradient(180deg, var(--color-primary) 0%, #083a3a 100%);
    color: white;
    border-radius: 50%;
    line-height: 32px;
    font-family: var(--font-display);
    font-weight: 700;
    font-size: 0.9rem;
    margin: 0 auto 10px;
}

.flow-step.done .step-num {
    background: linear-gradient(180deg, var(--color-success) 0%, #166534 100%);
}

.flow-step p {
    font-size: 0.8rem;
    color: var(--color-text-secondary);
    font-weight: 500;
}

.flow-arrow {
    color: var(--color-gray-400);
    font-size: 1.5rem;
}

/* Cluster Mockup */
.cluster-item {
    padding: 16px 18px;
    border-radius: var(--radius-md);
    margin-bottom: 12px;
    background: var(--color-bg-light);
    border: 1px solid var(--color-gray-200);
    display: flex;
    align-items: center;
    gap: 14px;
    transition: all var(--transition-fast);
}

.cluster-item:last-child {
    margin-bottom: 0;
}

.cluster-item:hover {
    border-color: var(--color-gray-300);
    box-shadow: var(--shadow-sm);
}

.cluster-badge {
    font-family: var(--font-display);
    font-size: 0.65rem;
    font-weight: 700;
    padding: 3px 10px;
    border-radius: 4px;
    white-space: nowrap;
    text-transform: uppercase;
    letter-spacing: 0.03em;
}

.cluster-item.high .cluster-badge {
    background: linear-gradient(180deg, var(--color-success) 0%, #166534 100%);
    color: white;
}

.cluster-item.medium .cluster-badge {
    background: linear-gradient(180deg, #3b82f6 0%, #1d4ed8 100%);
    color: white;
}

.cluster-item.traffic .cluster-badge {
    background: var(--color-gray-400);
    color: white;
}

.cluster-item p {
    flex: 1;
    font-size: 0.9rem;
    color: var(--color-text);
    font-weight: 500;
}

.cluster-item small {
    font-size: 0.8rem;
    color: var(--color-text-secondary);
}

/* All Features Grid */
.all-features {
    padding: 100px 24px;
    background: var(--color-bg-light);
}

.all-features h2 {
    text-align: center;
    margin-bottom: 56px;
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 24px;
    max-width: 1100px;
    margin: 0 auto;
}

.feature-item {
    padding: 28px;
    background: var(--color-bg-white);
    border-radius: var(--radius-lg);
    border: 1px solid var(--color-gray-200);
    transition: all var(--transition-fast);
}

.feature-item:hover {
    border-color: var(--color-gray-300);
    box-shadow: var(--shadow-md);
    transform: translateY(-2px);
}

.feature-item svg {
    color: var(--color-primary);
    margin-bottom: 16px;
}

.feature-item h4 {
    font-family: var(--font-display);
    margin-bottom: 10px;
    font-size: 1.05rem;
    font-weight: 700;
    letter-spacing: -0.01em;
}

.feature-item p {
    font-size: 0.9rem;
    color: var(--color-text-secondary);
    line-height: 1.6;
}

/* CTA */
.features-cta {
    padding: 100px 24px;
    text-align: center;
}

.features-cta h2 {
    margin-bottom: 16px;
}

.features-cta p {
    color: var(--color-text-secondary);
    margin-bottom: 32px;
    font-size: 1.1rem;
}

.cta-buttons {
    display: flex;
    gap: 16px;
    justify-content: center;
    flex-wrap: wrap;
}

/* Responsive */
@media (max-width: 900px) {
    .feature-content {
        flex-direction: column;
    }

    .feature-content.reverse {
        flex-direction: column;
    }

    .feature-image {
        max-width: 100%;
    }

    .feature-text h2 {
        font-size: 1.5rem;
    }
}

@media (max-width: 600px) {
    .cms-flow {
        flex-direction: column;
    }

    .flow-arrow {
        transform: rotate(90deg);
    }

    .cluster-item {
        flex-wrap: wrap;
    }
}
