/* Modern CSS Reset & Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', system-ui, sans-serif;
    background: #ffffff;
    color: #0a0a0a;
    overflow-x: hidden;
    scroll-behavior: smooth;
}

.features-page {
    position: relative;
    overflow-x: hidden;
}

/* Modern Container */
.container-modern {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 32px;
}

@media (max-width: 768px) {
    .container-modern {
        padding: 0 24px;
    }
}

@media (max-width: 480px) {
    .container-modern {
        padding: 0 20px;
    }
}

/* Hero Section - Modern Redesign */
.hero-modern {
    padding: 80px 0 60px;
    position: relative;
    overflow: hidden;
}

.hero-modern::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(124, 58, 237, 0.03) 0%, transparent 70%);
    pointer-events: none;
}

.hero-badge-modern {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: linear-gradient(135deg, #f3f0ff 0%, #ede9fe 100%);
    padding: 8px 20px;
    border-radius: 100px;
    font-size: 14px;
    font-weight: 600;
    color: #7c3aed;
    margin-bottom: 28px;
    border: 1px solid rgba(124, 58, 237, 0.1);
}

.hero-title-modern {
    font-size: clamp(44px, 7vw, 80px);
    line-height: 1.1;
    font-weight: 800;
    letter-spacing: -0.02em;
    max-width: 900px;
    margin: 0 auto 24px;
    background: linear-gradient(135deg, #0a0a0a 0%, #3a3a3a 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.hero-title-modern span {
    background: linear-gradient(135deg, #7c3aed 0%, #a855f7 50%, #d946ef 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.hero-description-modern {
    font-size: 18px;
    line-height: 1.6;
    color: #6b7280;
    max-width: 700px;
    margin: 0 auto 40px;
}

/* Modern Stats Grid */
.stats-grid-modern {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 24px;
    margin-top: 80px;
    max-width: 1000px;
    margin-left: auto;
    margin-right: auto;
}

.stat-card-modern {
    background: #ffffff;
    border-radius: 28px;
    padding: 32px 24px;
    text-align: center;
    border: 1px solid rgba(0, 0, 0, 0.05);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
}

.stat-card-modern::before {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, #7c3aed, #a855f7, #d946ef);
    transform: scaleX(0);
    transition: transform 0.4s ease;
}

.stat-card-modern:hover::before {
    transform: scaleX(1);
}

.stat-card-modern:hover {
    transform: translateY(-8px);
    box-shadow: 0 20px 40px rgba(124, 58, 237, 0.1);
    border-color: rgba(124, 58, 237, 0.2);
}

.stat-number-modern {
    font-size: 52px;
    font-weight: 800;
    background: linear-gradient(135deg, #7c3aed 0%, #a855f7 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: 8px;
}

.stat-label-modern {
    color: #6b7280;
    font-weight: 500;
    font-size: 15px;
}

/* Feature Section Layout - Professional */
.features-wrapper {
    margin: 100px 0;
}

.feature-block {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 80px;
    align-items: center;
    margin-bottom: 120px;
    position: relative;
}

.feature-block.reverse {
    direction: rtl;
}

.feature-block.reverse .feature-content {
    direction: ltr;
}

.feature-block.reverse .feature-visual {
    direction: ltr;
}

.feature-tag {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: #f5f3ff;
    padding: 6px 14px;
    border-radius: 100px;
    font-size: 13px;
    font-weight: 600;
    color: #7c3aed;
    margin-bottom: 24px;
    letter-spacing: 0.3px;
}

.feature-title {
    font-size: clamp(32px, 4vw, 44px);
    line-height: 1.25;
    font-weight: 700;
    letter-spacing: -0.01em;
    margin-bottom: 20px;
    color: #0a0a0a;
}

.feature-description {
    font-size: 16px;
    line-height: 1.7;
    color: #6b7280;
    margin-bottom: 32px;
}

.feature-list-modern {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 14px;
}

.feature-list-modern li {
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 15px;
    color: #374151;
}

.feature-list-modern li::before {
    content: '✓';
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 22px;
    height: 22px;
    background: linear-gradient(135deg, #10b981 0%, #059669 100%);
    color: white;
    border-radius: 50%;
    font-size: 12px;
    font-weight: bold;
    flex-shrink: 0;
}

/* Professional Visual Cards */
.visual-card {
    background: #ffffff;
    border-radius: 36px;
    padding: 40px;
    border: 1px solid rgba(0, 0, 0, 0.06);
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.15);
    transition: all 0.4s ease;
    position: relative;
    overflow: hidden;
}

.visual-card::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, #7c3aed, #a855f7, #d946ef);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.visual-card:hover::after {
    opacity: 1;
}

.visual-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 30px 60px -12px rgba(124, 58, 237, 0.2);
    border-color: rgba(124, 58, 237, 0.1);
}

/* Reminder Timeline */
.reminder-timeline {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.timeline-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 16px 20px;
    background: #fafafa;
    border-radius: 16px;
    transition: all 0.3s ease;
}

.timeline-item:hover {
    background: #f5f3ff;
    transform: translateX(5px);
}

.timeline-label {
    display: flex;
    align-items: center;
    gap: 12px;
    font-weight: 500;
}

.timeline-status {
    padding: 6px 14px;
    border-radius: 100px;
    font-size: 12px;
    font-weight: 600;
}

.status-scheduled {
    background: #eff6ff;
    color: #2563eb;
}

.status-sent {
    background: #f0fdf4;
    color: #16a34a;
}

.status-escalated {
    background: #fff7ed;
    color: #ea580c;
}

/* Activity Feed */
.activity-feed {
    display: flex;
    flex-direction: column;
    gap: 0;
}

.activity-item-modern {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 18px 0;
    border-bottom: 1px solid #f0f0f0;
}

.activity-item-modern:last-child {
    border-bottom: none;
}

.activity-info {
    display: flex;
    align-items: center;
    gap: 12px;
}

.activity-icon {
    width: 40px;
    height: 40px;
    background: #f5f3ff;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
}

.activity-time {
    color: #9ca3af;
    font-size: 13px;
}

/* Payment Methods Grid */
.payment-methods {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.payment-method-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 16px 20px;
    background: #fafafa;
    border-radius: 20px;
    transition: all 0.3s ease;
}

.payment-method-item:hover {
    background: #f5f3ff;
}

.toggle-modern {
    width: 52px;
    height: 28px;
    background: linear-gradient(135deg, #7c3aed 0%, #a855f7 100%);
    border-radius: 100px;
    position: relative;
    cursor: pointer;
}

.toggle-modern::after {
    content: '';
    width: 22px;
    height: 22px;
    background: white;
    border-radius: 50%;
    position: absolute;
    top: 3px;
    right: 4px;
    transition: transform 0.3s ease;
}

/* Calendar Modern */
.calendar-modern {
    text-align: center;
}

.calendar-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 24px;
    padding: 0 8px;
}

.calendar-month {
    font-weight: 700;
    font-size: 18px;
}

.calendar-badge {
    background: #f5f3ff;
    padding: 6px 14px;
    border-radius: 100px;
    font-size: 13px;
    font-weight: 600;
    color: #7c3aed;
}

.calendar-days {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    gap: 10px;
    margin-bottom: 20px;
}

.calendar-day {
    padding: 12px;
    text-align: center;
    font-size: 14px;
    font-weight: 500;
    border-radius: 14px;
    transition: all 0.2s ease;
    cursor: pointer;
}

.calendar-day:hover {
    background: #f5f3ff;
}

.calendar-day.active {
    background: linear-gradient(135deg, #7c3aed 0%, #a855f7 100%);
    color: white;
}

.calendar-note {
    font-size: 13px;
    color: #6b7280;
    margin-top: 16px;
}

/* Invoice Preview */
.invoice-preview {
    background: linear-gradient(135deg, #fafafa 0%, #ffffff 100%);
    border-radius: 24px;
    padding: 8px;
}

.invoice-row {
    display: flex;
    justify-content: space-between;
    padding: 16px;
    border-bottom: 1px solid #f0f0f0;
}

.invoice-row.total {
    border-top: 2px solid #e5e7eb;
    border-bottom: none;
    margin-top: 8px;
    font-weight: 700;
    font-size: 18px;
}

/* Progress Tracker */
.progress-tracker {
    text-align: center;
}

.progress-amount {
    font-size: 48px;
    font-weight: 800;
    background: linear-gradient(135deg, #7c3aed 0%, #a855f7 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: 20px;
}

.progress-bar-modern {
    width: 100%;
    height: 10px;
    background: #f0f0f0;
    border-radius: 100px;
    overflow: hidden;
    margin: 24px 0;
}

.progress-fill-modern {
    width: 60%;
    height: 100%;
    background: linear-gradient(90deg, #10b981 0%, #059669 100%);
    border-radius: 100px;
    position: relative;
    animation: slideIn 1s ease;
}

@keyframes slideIn {
    from {
        width: 0;
    }

    to {
        width: 60%;
    }
}

.payment-breakdown {
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin-top: 24px;
}

.breakdown-item {
    display: flex;
    justify-content: space-between;
    padding: 10px 0;
}

/* Extra Features Grid Modern */
.extra-grid-modern {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 32px;
    margin: 80px 0;
}

.extra-card-modern {
    text-align: center;
    padding: 48px 32px;
    background: #ffffff;
    border-radius: 32px;
    border: 1px solid rgba(0, 0, 0, 0.05);
    transition: all 0.4s ease;
}

.extra-card-modern:hover {
    transform: translateY(-8px);
    border-color: rgba(124, 58, 237, 0.2);
    box-shadow: 0 20px 40px rgba(124, 58, 237, 0.08);
}

.extra-icon {
    font-size: 56px;
    margin-bottom: 24px;
    display: inline-block;
}

.extra-title {
    font-size: 22px;
    font-weight: 700;
    margin-bottom: 12px;
}

.extra-description {
    color: #6b7280;
    line-height: 1.6;
    font-size: 15px;
}

/* CTA Modern */
.cta-modern {
    background: linear-gradient(135deg, #faf9ff 0%, #f3f0ff 100%);
    border-radius: 56px;
    padding: 80px 48px;
    text-align: center;
    margin: 80px 0 60px;
    position: relative;
    overflow: hidden;
}

.cta-modern::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(124, 58, 237, 0.05) 0%, transparent 70%);
    animation: rotate 30s linear infinite;
}

@keyframes rotate {
    from {
        transform: rotate(0deg);
    }

    to {
        transform: rotate(360deg);
    }
}

.cta-title {
    font-size: clamp(36px, 5vw, 52px);
    font-weight: 800;
    margin-bottom: 20px;
    position: relative;
    z-index: 1;
}

.cta-description {
    font-size: 18px;
    color: #6b7280;
    max-width: 600px;
    margin: 0 auto 32px;
    position: relative;
    z-index: 1;
}

.cta-buttons {
    display: flex;
    gap: 20px;
    justify-content: center;
    flex-wrap: wrap;
    position: relative;
    z-index: 1;
}

.btn-primary-modern {
    background: linear-gradient(135deg, #0a0a0a 0%, #1a1a1a 100%);
    color: white;
    padding: 14px 32px;
    border-radius: 100px;
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s ease;
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.btn-primary-modern:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
}

.btn-secondary-modern {
    background: white;
    color: #0a0a0a;
    padding: 14px 32px;
    border-radius: 100px;
    text-decoration: none;
    font-weight: 600;
    border: 1px solid #e5e7eb;
    transition: all 0.3s ease;
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.btn-secondary-modern:hover {
    transform: translateY(-2px);
    border-color: #7c3aed;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.05);
}

/* Responsive Design */
@media (max-width: 1024px) {
    .feature-block {
        gap: 50px;
        margin-bottom: 80px;
    }

    .visual-card {
        padding: 30px;
    }

    .extra-grid-modern {
        gap: 24px;
    }
}

@media (max-width: 768px) {
    .stats-grid-modern {
        grid-template-columns: repeat(2, 1fr);
        gap: 16px;
    }

    .feature-block {
        grid-template-columns: 1fr;
        gap: 40px;
        margin-bottom: 70px;
    }

    .feature-block.reverse {
        direction: ltr;
    }

    .feature-title {
        font-size: 32px;
    }

    .visual-card {
        padding: 28px;
    }

    .extra-grid-modern {
        grid-template-columns: 1fr;
        max-width: 400px;
        margin-left: auto;
        margin-right: auto;
    }

    .cta-modern {
        padding: 60px 32px;
        border-radius: 40px;
    }

    .cta-title {
        font-size: 32px;
    }

    .timeline-item {
        flex-direction: column;
        align-items: flex-start;
        gap: 10px;
    }

    .activity-item-modern {
        flex-direction: column;
        align-items: flex-start;
        gap: 8px;
    }

    .calendar-days {
        gap: 6px;
    }

    .calendar-day {
        padding: 8px;
        font-size: 12px;
    }
}

@media (max-width: 640px) {
    .stats-grid-modern {
        grid-template-columns: 1fr;
    }

    .hero-title-modern {
        font-size: 36px;
    }

    .hero-description-modern {
        font-size: 16px;
        padding: 0 16px;
    }

    .cta-buttons {
        flex-direction: column;
        align-items: center;
    }

    .btn-primary-modern,
    .btn-secondary-modern {
        width: 100%;
        max-width: 280px;
        justify-content: center;
    }

    .visual-card {
        padding: 20px;
        border-radius: 28px;
    }

    .feature-list-modern li {
        font-size: 14px;
    }
}

@media (max-width: 480px) {
    .container-modern {
        padding: 0 16px;
    }

    .hero-modern {
        padding: 40px 0;
    }

    .hero-badge-modern {
        font-size: 12px;
        padding: 6px 16px;
    }

    .hero-title-modern {
        font-size: 32px;
    }

    .feature-title {
        font-size: 28px;
    }

    .calendar-days {
        gap: 4px;
    }

    .calendar-day {
        padding: 6px;
        font-size: 11px;
    }

    .cta-modern {
        padding: 40px 20px;
        border-radius: 32px;
    }

    .cta-title {
        font-size: 28px;
    }
}