/* Revenue Tracking Page Styles */

:root {
    --primary-color: #ec4899;
    --secondary-color: #f472b6;
    --accent-color: #f97316;
    --text-primary: #1f2937;
    --text-secondary: #6b7280;
    --bg-primary: #ffffff;
    --bg-secondary: #fdf2f8;
    --border-color: #f3e8ff;
    --shadow-sm: 0 1px 2px rgba(236, 72, 153, 0.05);
    --shadow-md: 0 4px 6px rgba(236, 72, 153, 0.1);
    --shadow-lg: 0 10px 15px rgba(236, 72, 153, 0.1);
    --shadow-xl: 0 20px 25px rgba(236, 72, 153, 0.15);
    --gradient-primary: linear-gradient(135deg, #ec4899 0%, #f472b6 100%);
    --gradient-secondary: linear-gradient(135deg, #f472b6 0%, #f97316 100%);
    --gradient-glossy: linear-gradient(135deg, #ec4899 0%, #f472b6 50%, #f97316 100%);
}

/* Hero Section */
.hero {
    background: linear-gradient(135deg, #fdf2f8 0%, #fce7f3 100%);
    padding: 8rem 0 6rem;
    position: relative;
    overflow: hidden;
}

.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><circle cx="20" cy="20" r="2" fill="%23ec4899" opacity="0.1"/><circle cx="80" cy="40" r="1.5" fill="%23ec4899" opacity="0.1"/><circle cx="40" cy="80" r="1" fill="%23ec4899" opacity="0.1"/></svg>');
    pointer-events: none;
}

.hero-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
}

.hero-title {
    font-size: 3.5rem;
    font-weight: 900;
    line-height: 1.1;
    margin-bottom: 1.5rem;
}

.title-line {
    display: block;
    color: var(--text-primary);
}

.title-highlight {
    display: block;
    background: var(--gradient-glossy);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.hero-description {
    font-size: 1.25rem;
    color: var(--text-secondary);
    line-height: 1.6;
    margin-bottom: 2rem;
}

.hero-actions {
    display: flex;
    gap: 1rem;
    margin-bottom: 2rem;
}

.hero-badge {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-top: 2rem;
    padding: 0.75rem 1.5rem;
    background: var(--gradient-glossy);
    border: 1px solid var(--primary-color);
    border-radius: 50px;
    color: white;
    font-weight: 600;
    font-size: 0.9rem;
    max-width: fit-content;
    box-shadow: var(--shadow-md);
}

.hero-badge i {
    font-size: 1rem;
}

/* Bank Account Demo */
.bank-account-demo {
    background: white;
    border-radius: 20px;
    box-shadow: var(--shadow-xl);
    overflow: hidden;
    transform: perspective(1000px) rotateY(-5deg) rotateX(5deg);
    max-width: 450px;
    margin: 0 auto;
    position: relative;
    pointer-events: none;
    user-select: none;
}

.bank-account-demo:hover {
    transform: perspective(1000px) rotateY(0deg) rotateX(0deg) scale(1.02);
}

.account-header {
    background: var(--gradient-glossy);
    padding: 1.5rem 2rem;
    color: white;
    text-align: center;
    min-width: 100%;
}

.account-info h3 {
    font-size: 1.25rem;
    font-weight: 700;
    margin: 0 0 0.5rem 0;
}

.account-status {
    font-size: 0.9rem;
    opacity: 0.9;
    font-weight: 500;
    white-space: nowrap;
    overflow: visible;
    text-overflow: unset;
    display: block;
    width: 100%;
}

.account-content {
    padding: 2rem;
    background: #f8fafc;
    height: 400px;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    z-index: 1;
}

/* Analytics Features Section */
.analytics-features {
    padding: 6rem 0;
    background: white;
}

.section-header {
    text-align: center;
    margin-bottom: 4rem;
}

.section-header h2 {
    font-size: 2.5rem;
    font-weight: 800;
    margin-bottom: 1rem;
    color: var(--text-primary);
}

.section-header p {
    font-size: 1.125rem;
    color: var(--text-secondary);
    max-width: 600px;
    margin: 0 auto;
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
}

.feature-card {
    background: white;
    padding: 2.5rem;
    border-radius: 16px;
    border: 1px solid var(--border-color);
    text-align: center;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
    box-shadow: var(--shadow-lg);
}

.feature-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 4px;
    background: var(--gradient-glossy);
    transform: scaleX(1);
    transition: transform 0.3s ease;
}

.feature-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-xl);
    border-color: var(--primary-color);
    box-shadow: 0 20px 40px rgba(236, 72, 153, 0.3);
}

.feature-icon {
    width: 80px;
    height: 80px;
    background: var(--gradient-glossy);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1.5rem;
    transition: all 0.3s ease;
}

.feature-card:hover .feature-icon {
    transform: scale(1.1) rotate(5deg);
}

.feature-icon i {
    font-size: 2rem;
    color: white;
}

.feature-card h4 {
    font-size: 1.25rem;
    font-weight: 700;
    margin-bottom: 1rem;
    color: var(--text-primary);
}

.feature-card p {
    color: var(--text-secondary);
    line-height: 1.6;
}

/* Revenue Journey Section */
.revenue-journey {
    padding: 6rem 0;
    background: var(--bg-secondary);
}

.journey-header {
    text-align: center;
    margin-bottom: 4rem;
}

.journey-header h2 {
    font-size: 2.5rem;
    font-weight: 800;
    margin-bottom: 1rem;
    color: var(--text-primary);
}

.journey-header p {
    font-size: 1.125rem;
    color: var(--text-secondary);
    max-width: 600px;
    margin: 0 auto;
}

.journey-step {
    margin-bottom: 6rem;
    max-width: 1200px;
    margin-left: auto;
    margin-right: auto;
    padding: 0 2rem;
    position: relative;
}

.journey-step:last-child {
    margin-bottom: 4rem;
}

.journey-step.reverse .step-content {
    grid-template-columns: 1fr 1fr;
}

.journey-step.reverse .step-text {
    order: 2;
}

.journey-step.reverse .step-visual {
    order: 1;
}

.journey-step.reverse .step-number {
    left: auto;
    right: -1rem;
}

.step-number {
    font-size: 4rem;
    font-weight: 900;
    color: var(--primary-color);
    opacity: 0.1;
    position: absolute;
    top: -2rem;
    left: -1rem;
    z-index: 0;
}

.step-content {
    position: relative;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
    width: 100%;
    z-index: 1;
}

.step-text h3 {
    font-size: 2.5rem;
    font-weight: 800;
    margin-bottom: 1.5rem;
    color: var(--text-primary);
    position: relative;
    z-index: 1;
    white-space: nowrap;
}

.step-text p {
    font-size: 1.25rem;
    color: var(--text-secondary);
    line-height: 1.7;
    margin-bottom: 2.5rem;
}

.step-features {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.step-features li {
    display: flex;
    align-items: center;
    gap: 1rem;
    color: var(--text-secondary);
    font-size: 1.125rem;
    font-weight: 500;
}

.step-features i {
    color: var(--primary-color);
    font-size: 0.875rem;
    font-weight: 600;
}

.step-visual {
    display: flex;
    justify-content: center;
}

/* Feature Cards */
.card-icon {
    width: 100px;
    height: 100px;
    background: var(--gradient-glossy);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 2rem;
    transition: all 0.3s ease;
}

.card-icon i {
    font-size: 2.5rem;
    color: white;
}

/* Metrics Section */
.metrics-section {
    padding: 6rem 0;
    background: white;
}

.metrics-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 3rem;
    max-width: 1000px;
    margin: 0 auto;
    padding: 0 2rem;
}

.metric-card {
    display: flex;
    align-items: center;
    gap: 2rem;
    padding: 2rem;
    background: white;
    border: 2px solid var(--border-color);
    border-radius: 16px;
    transition: all 0.3s ease;
    box-shadow: var(--shadow-lg);
}

.metric-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-xl);
    border-color: var(--primary-color);
}

.metric-icon {
    width: 80px;
    height: 80px;
    background: var(--gradient-glossy);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.metric-icon i {
    font-size: 2rem;
    color: white;
}

.metric-content h3 {
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
    color: var(--text-primary);
}

.metric-content p {
    color: var(--text-secondary);
    line-height: 1.6;
}

/* Report Section */
.report-section {
    padding: 6rem 0;
    background: var(--bg-secondary);
}

.report-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
}

.report-text h2 {
    font-size: 2.5rem;
    font-weight: 800;
    margin-bottom: 1.5rem;
    color: var(--text-primary);
}

.report-text p {
    font-size: 1.125rem;
    color: var(--text-secondary);
    line-height: 1.6;
    margin-bottom: 2rem;
}

.report-features {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.report-features li {
    display: flex;
    align-items: center;
    gap: 1rem;
    color: var(--text-secondary);
    font-size: 1.125rem;
}

.report-features i {
    color: var(--primary-color);
    font-size: 1.25rem;
    width: 24px;
}

.report-visual {
    display: flex;
    justify-content: center;
}

.report-preview {
    background: white;
    border-radius: 20px;
    padding: 2rem;
    box-shadow: var(--shadow-xl);
    max-width: 400px;
    width: 100%;
}

.report-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 2rem;
    padding-bottom: 1rem;
    border-bottom: 1px solid var(--border-color);
}

.report-header h3 {
    font-size: 1.5rem;
    font-weight: 700;
    margin: 0;
    color: var(--text-primary);
}

.report-date {
    font-size: 0.9rem;
    color: var(--text-secondary);
}

.report-summary {
    margin-bottom: 2rem;
}

.summary-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.75rem 0;
    border-bottom: 1px solid var(--border-color);
}

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

.summary-item span:first-child {
    color: var(--text-secondary);
    font-weight: 500;
}

.summary-item span:last-child {
    color: var(--text-primary);
    font-weight: 700;
}

.summary-item .positive {
    color: #10b981;
}

.pull-report-btn {
    width: 100%;
    background: var(--gradient-glossy);
    color: white;
    border: none;
    padding: 1rem 2rem;
    border-radius: 12px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    transition: all 0.3s ease;
    box-shadow: var(--shadow-md);
}

.pull-report-btn:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-lg);
}

.pull-report-btn i {
    font-size: 0.9rem;
}

/* CTA Section */
.cta-section {
    padding: 6rem 0;
    background: white;
}

.cta-content {
    text-align: center;
    max-width: 800px;
    margin: 0 auto;
    padding: 0 2rem;
}

.cta-content h2 {
    font-size: 2.5rem;
    font-weight: 800;
    margin-bottom: 1rem;
    color: var(--text-primary);
}

.cta-content p {
    font-size: 1.125rem;
    color: var(--text-secondary);
    margin-bottom: 2rem;
}

.cta-actions {
    display: flex;
    gap: 1rem;
    justify-content: center;
}

/* Responsive Design */
@media (max-width: 1024px) {
    .hero-content {
        grid-template-columns: 1fr;
        gap: 3rem;
    }
    
    .features-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 2rem;
    }
    
    .journey-step {
        grid-template-columns: 1fr;
        gap: 3rem;
    }
    
    .metrics-grid {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
    
    .report-content {
        grid-template-columns: 1fr;
        gap: 3rem;
    }
}

@media (max-width: 768px) {
    .hero-title {
        font-size: 2.5rem;
    }
    
    .hero-actions {
        flex-direction: column;
    }
    
    .features-grid {
        grid-template-columns: 1fr;
    }
    
    .cta-actions {
        flex-direction: column;
    }
    
    .section-header h2 {
        font-size: 2rem;
    }
    
    .journey-step {
        padding: 0 1rem;
    }
}

@media (max-width: 480px) {
    .hero {
        padding: 6rem 0 4rem;
    }
    
    .hero-content {
        padding: 0 1rem;
    }
    
    .hero-title {
        font-size: 2rem;
    }
    
    .features-grid {
        padding: 0 1rem;
    }
    
    .analytics-features,
    .revenue-journey,
    .metrics-section,
    .report-section,
    .cta-section {
        padding: 4rem 0;
    }
}

/* Comprehensive Mobile Responsiveness Fixes */
@media (max-width: 768px) {
    /* Hide graphics on mobile for cleaner experience */
    .revenue-demo,
    .demo-revenue,
    .demo-revenue-content {
        display: none !important;
    }
    
    /* Hide demo content on mobile */
    .demo-revenue-header,
    .demo-revenue-balance,
    .demo-revenue-transactions,
    .demo-transaction,
    .demo-transaction-description,
    .demo-transaction-time,
    .demo-transaction-amount {
        display: none !important;
    }
    
    /* Hero section mobile adjustments */
    .hero-content {
        grid-template-columns: 1fr !important;
        gap: 2rem !important;
        text-align: center !important;
    }
    
    .hero-title {
        font-size: 2.2rem !important;
        line-height: 1.2 !important;
    }
    
    .hero-description {
        font-size: 1rem !important;
        line-height: 1.6 !important;
    }
    
    .hero-actions {
        flex-direction: column !important;
        align-items: center !important;
        gap: 1rem !important;
    }
    
    .cta-primary {
        width: 100% !important;
        max-width: 280px !important;
        padding: 0.875rem 1.5rem !important;
        font-size: 0.95rem !important;
    }
    
    /* Feature cards mobile adjustments */
    .feature-card {
        padding: 1.5rem !important;
    }
    
    .feature-card h4 {
        font-size: 1.2rem !important;
    }
    
    .feature-card p {
        font-size: 0.9rem !important;
    }
    
    /* Journey steps mobile adjustments */
    .journey-step {
        margin-bottom: 3rem !important;
        padding: 0 1rem !important;
    }
    
    .journey-step .step-content {
        grid-template-columns: 1fr !important;
        gap: 2rem !important;
        text-align: center !important;
    }
    
    .journey-step.reverse .step-content {
        grid-template-columns: 1fr !important;
    }
    
    .journey-step.reverse .step-text {
        order: 1 !important;
    }
    
    .journey-step.reverse .step-visual {
        order: 2 !important;
    }
    
    .step-number {
        font-size: 2.5rem !important;
        top: -1rem !important;
        left: 50% !important;
        transform: translateX(-50%) !important;
        right: auto !important;
    }
    
    .journey-step.reverse .step-number {
        left: 50% !important;
        right: auto !important;
        transform: translateX(-50%) !important;
    }
    
    .step-text h3 {
        font-size: 1.8rem !important;
        line-height: 1.2 !important;
    }
    
    .step-text p {
        font-size: 0.95rem !important;
        line-height: 1.6 !important;
        margin-bottom: 1.5rem !important;
    }
    
    .step-features {
        text-align: left !important;
        gap: 0.75rem !important;
    }
    
    .step-features li {
        font-size: 0.9rem !important;
        line-height: 1.4 !important;
        gap: 0.5rem !important;
    }
    
    .step-features i {
        font-size: 0.75rem !important;
        min-width: 16px !important;
    }
    
    .step-visual .feature-card {
        padding: 1.25rem !important;
        text-align: center !important;
    }
    
    .step-visual .feature-card h4 {
        font-size: 1.1rem !important;
        margin-bottom: 0.5rem !important;
    }
    
    .step-visual .feature-card p {
        font-size: 0.85rem !important;
        line-height: 1.4 !important;
    }
    
    /* Metrics grid mobile adjustments */
    .metrics-grid {
        grid-template-columns: 1fr !important;
        gap: 1.5rem !important;
    }
    
    .metric-card {
        padding: 1.5rem !important;
    }
    
    .metric-card h4 {
        font-size: 1.2rem !important;
    }
    
    .metric-card p {
        font-size: 0.9rem !important;
    }
    
    /* Report section mobile adjustments */
    .report-content {
        grid-template-columns: 1fr !important;
        gap: 2rem !important;
        text-align: center !important;
    }
    
    .report-text h3 {
        font-size: 1.8rem !important;
        line-height: 1.2 !important;
    }
    
    .report-text p {
        font-size: 0.95rem !important;
        line-height: 1.6 !important;
    }
    
    /* CTA section mobile adjustments */
    .cta-content h2 {
        font-size: 2rem !important;
    }
    
    .cta-content p {
        font-size: 1rem !important;
    }
    
    .cta-actions {
        flex-direction: column !important;
        align-items: center !important;
        gap: 1rem !important;
    }
    
    .cta-actions .cta-primary {
        width: 100% !important;
        max-width: 280px !important;
        padding: 0.875rem 1.5rem !important;
        font-size: 0.95rem !important;
    }
}

@media (max-width: 480px) {
    .hero {
        padding: 4rem 0 !important;
    }
    
    .hero-title {
        font-size: 1.8rem !important;
    }
    
    .hero-description {
        font-size: 0.9rem !important;
    }
    
    .revenue-demo {
        height: 250px !important;
    }
    
    .demo-revenue {
        height: 240px !important;
    }
    
    .step-text h3 {
        font-size: 1.6rem !important;
    }
    
    .step-text p {
        font-size: 0.9rem !important;
    }
    
    .feature-card {
        padding: 1.25rem !important;
    }
    
    .feature-card h4 {
        font-size: 1.1rem !important;
    }
    
    .feature-card p {
        font-size: 0.85rem !important;
    }
    
    .metric-card {
        padding: 1.25rem !important;
    }
    
    .metric-card h4 {
        font-size: 1.1rem !important;
    }
    
    .metric-card p {
        font-size: 0.85rem !important;
    }
    
    .report-text h3 {
        font-size: 1.6rem !important;
    }
    
    .report-text p {
        font-size: 0.9rem !important;
    }
    
    .cta-content h2 {
        font-size: 1.8rem !important;
    }
    
    .cta-content p {
        font-size: 0.9rem !important;
    }
}

/* Touch device optimizations */
@media (hover: none) and (pointer: coarse) {
    .cta-primary:hover,
    .feature-card:hover,
    .metric-card:hover,
    .revenue-demo:hover {
        transform: none !important;
    }
    
    .cta-primary,
    .feature-card,
    .metric-card {
        min-height: 44px !important;
        display: flex !important;
        align-items: center !important;
        justify-content: center !important;
    }
}

/* Performance optimizations for mobile */
@media (max-width: 768px) {
    .feature-card,
    .metric-card {
        box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1) !important;
    }
    
    /* Prevent horizontal scroll */
    body {
        overflow-x: hidden !important;
        width: 100% !important;
    }
    
    .container {
        overflow-x: hidden !important;
        padding: 0 1rem !important;
        max-width: 100% !important;
    }
    
    /* Optimize form elements */
    input,
    textarea,
    select {
        font-size: 16px !important; /* Prevents zoom on iOS */
        padding: 12px !important;
    }
    
    /* Fix text overflow issues */
    .hero-title,
    .hero-description,
    .section-header h2,
    .section-header p,
    .step-text h3,
    .step-text p,
    .report-text h3,
    .report-text p,
    .cta-content h2,
    .cta-content p,
    .feature-card h4,
    .feature-card p,
    .metric-card h4,
    .metric-card p {
        word-wrap: break-word !important;
        overflow-wrap: break-word !important;
        hyphens: auto !important;
    }
    
    /* Ensure proper text sizing */
    .hero-title {
        font-size: 1.8rem !important;
        line-height: 1.2 !important;
    }
    
    .hero-description {
        font-size: 0.9rem !important;
        line-height: 1.5 !important;
    }
    
    .section-header h2 {
        font-size: 1.6rem !important;
        line-height: 1.3 !important;
    }
    
    .section-header p {
        font-size: 0.9rem !important;
        line-height: 1.5 !important;
    }
    
    /* Fix layout issues */
    .hero-content {
        grid-template-columns: 1fr !important;
        gap: 1.5rem !important;
        text-align: center !important;
    }
    
    .journey-step {
        grid-template-columns: 1fr !important;
        gap: 1.5rem !important;
        text-align: center !important;
    }
    
    .report-content {
        grid-template-columns: 1fr !important;
        gap: 1.5rem !important;
        text-align: center !important;
    }
    
    .features-grid {
        grid-template-columns: 1fr !important;
        gap: 1.5rem !important;
    }
    
    .metrics-grid {
        grid-template-columns: 1fr !important;
        gap: 1.5rem !important;
    }
    
    /* Fix button sizing */
    .cta-primary {
        width: 100% !important;
        max-width: 280px !important;
        padding: 0.8rem 1.5rem !important;
        font-size: 0.9rem !important;
    }
    
    .hero-actions {
        flex-direction: column !important;
        align-items: center !important;
        gap: 1rem !important;
    }
}
