/* SaaS Landing Page - Modern & Professional Design */

:root {
    --primary-blue: #2563EB;
    --primary-dark: #1E40AF;
    --success-green: #10B981;
    --success-dark: #059669;
    --warning-orange: #F59E0B;
    --danger-red: #EF4444;
    --purple: #8B5CF6;
    --pink: #EC4899;
    --text-dark: #1F2937;
    --text-gray: #6B7280;
    --bg-light: #F9FAFB;
    --bg-white: #FFFFFF;
    --border-gray: #E5E7EB;
    --shadow-sm: 0 1px 3px rgba(0,0,0,0.1);
    --shadow-md: 0 4px 12px rgba(0,0,0,0.1);
    --shadow-lg: 0 20px 60px rgba(0,0,0,0.15);
    --radius-sm: 8px;
    --radius-md: 12px;
    --radius-lg: 16px;
}

/* Global Styles */
body {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
    color: var(--text-dark);
    line-height: 1.6;
}

.container {
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 24px;
}

/* Hero Section */
.saas-hero {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    padding: 120px 0 80px;
    color: white;
    position: relative;
    overflow: hidden;
}

.saas-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 1440 320"><path fill="%23ffffff" fill-opacity="0.1" d="M0,96L48,112C96,128,192,160,288,160C384,160,480,128,576,122.7C672,117,768,139,864,138.7C960,139,1056,117,1152,101.3C1248,85,1344,75,1392,69.3L1440,64L1440,320L1392,320C1344,320,1248,320,1152,320C1056,320,960,320,864,320C768,320,672,320,576,320C480,320,384,320,288,320C192,320,96,320,48,320L0,320Z"></path></svg>') bottom center no-repeat;
    background-size: cover;
}

.hero-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
    position: relative;
    z-index: 1;
}

.hero-badge {
    display: inline-block;
    background: rgba(255,255,255,0.2);
    backdrop-filter: blur(10px);
    padding: 8px 20px;
    border-radius: 20px;
    font-size: 0.9rem;
    font-weight: 600;
    margin-bottom: 24px;
    border: 1px solid rgba(255,255,255,0.3);
}

.hero-text h1 {
    font-size: 3.5rem;
    font-weight: 800;
    line-height: 1.2;
    margin-bottom: 24px;
    letter-spacing: -0.02em;
}

.subtitle {
    font-size: 1.25rem;
    opacity: 0.95;
    margin-bottom: 32px;
    line-height: 1.8;
}

.hero-cta {
    display: flex;
    gap: 16px;
    margin-bottom: 40px;
    flex-wrap: wrap;
}

.btn-primary-modern,
.btn-secondary-modern {
    display: inline-block;
    padding: 16px 32px;
    border-radius: var(--radius-sm);
    font-weight: 700;
    font-size: 1.05rem;
    text-decoration: none;
    transition: all 0.3s ease;
    cursor: pointer;
}

.btn-primary-modern {
    background: white;
    color: var(--primary-blue);
    box-shadow: 0 4px 20px rgba(255,255,255,0.3);
}

.btn-primary-modern:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 30px rgba(255,255,255,0.4);
    text-decoration: none;
    color: var(--primary-dark);
}

.btn-secondary-modern {
    background: rgba(255,255,255,0.2);
    color: white;
    border: 2px solid rgba(255,255,255,0.3);
    backdrop-filter: blur(10px);
}

.btn-secondary-modern:hover {
    background: rgba(255,255,255,0.3);
    border-color: rgba(255,255,255,0.5);
    transform: translateY(-2px);
    text-decoration: none;
    color: white;
}

.hero-stats {
    display: flex;
    gap: 40px;
    padding-top: 24px;
    border-top: 1px solid rgba(255,255,255,0.2);
}

.stat-item {
    text-align: center;
}

.stat-value {
    font-size: 2rem;
    font-weight: 800;
    display: block;
    margin-bottom: 4px;
}

.stat-label {
    font-size: 0.9rem;
    opacity: 0.8;
}

/* Hero Visual - Dashboard Mockup */
.dashboard-mockup {
    background: white;
    border-radius: var(--radius-lg);
    box-shadow: 0 40px 80px rgba(0,0,0,0.3);
    overflow: hidden;
    transform: perspective(1000px) rotateY(-5deg);
    transition: transform 0.3s ease;
}

.dashboard-mockup:hover {
    transform: perspective(1000px) rotateY(0deg);
}

.mockup-header {
    background: linear-gradient(135deg, #2563EB, #1E40AF);
    padding: 16px 20px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.mockup-dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: rgba(255,255,255,0.3);
}

.mockup-title {
    color: white;
    font-weight: 700;
    margin-left: 12px;
}

.mockup-body {
    padding: 24px;
    background: var(--bg-light);
}

.metrics-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
    margin-bottom: 20px;
}

.metric-card {
    background: white;
    padding: 16px;
    border-radius: var(--radius-md);
    display: flex;
    align-items: center;
    gap: 12px;
    box-shadow: var(--shadow-sm);
}

.metric-card.blue {
    border-left: 4px solid var(--primary-blue);
}

.metric-card.green {
    border-left: 4px solid var(--success-green);
}

.metric-card.purple {
    border-left: 4px solid var(--purple);
}

.metric-card.orange {
    border-left: 4px solid var(--warning-orange);
}

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

.metric-value {
    font-size: 1.5rem;
    font-weight: 800;
    color: var(--text-dark);
}

.metric-label {
    font-size: 0.75rem;
    color: var(--text-gray);
}

.activity-list {
    background: white;
    border-radius: var(--radius-md);
    padding: 16px;
    box-shadow: var(--shadow-sm);
}

.activity-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 0;
    border-bottom: 1px solid var(--border-gray);
}

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

.activity-icon {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.9rem;
    flex-shrink: 0;
}

.activity-icon.success {
    background: #D1FAE5;
    color: var(--success-green);
}

.activity-icon.info {
    background: #DBEAFE;
    color: var(--primary-blue);
}

.activity-icon.warning {
    background: #FEF3C7;
    color: var(--warning-orange);
}

.activity-text {
    flex: 1;
    font-size: 0.9rem;
    color: var(--text-dark);
}

.activity-time {
    font-size: 0.8rem;
    color: var(--text-gray);
}

/* Features Grid */
.features-grid {
    padding: 80px 0;
    background: var(--bg-white);
}

.section-header {
    text-align: center;
    margin-bottom: 60px;
}

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

.section-header p {
    font-size: 1.1rem;
    color: var(--text-gray);
}

.features-list {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 32px;
}

.feature-card {
    background: white;
    padding: 32px;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-md);
    transition: all 0.3s ease;
    border: 2px solid transparent;
}

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

.feature-icon {
    width: 60px;
    height: 60px;
    border-radius: var(--radius-md);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.8rem;
    margin-bottom: 20px;
}

.feature-icon.blue {
    background: linear-gradient(135deg, #DBEAFE, #BFDBFE);
}

.feature-icon.purple {
    background: linear-gradient(135deg, #EDE9FE, #DDD6FE);
}

.feature-icon.green {
    background: linear-gradient(135deg, #D1FAE5, #A7F3D0);
}

.feature-icon.orange {
    background: linear-gradient(135deg, #FEF3C7, #FDE68A);
}

.feature-icon.red {
    background: linear-gradient(135deg, #FEE2E2, #FECACA);
}

.feature-icon.pink {
    background: linear-gradient(135deg, #FCE7F3, #FBCFE8);
}

.feature-card h3 {
    font-size: 1.4rem;
    font-weight: 700;
    margin-bottom: 12px;
    color: var(--text-dark);
}

.feature-card p {
    color: var(--text-gray);
    margin-bottom: 16px;
    line-height: 1.7;
}

.feature-points {
    list-style: none;
    padding: 0;
    margin: 0;
}

.feature-points li {
    color: var(--text-gray);
    font-size: 0.95rem;
    padding: 6px 0;
}

/* Pricing Section */
.pricing-section {
    padding: 80px 0;
    background: var(--bg-light);
}

.billing-toggle {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 16px;
    margin-bottom: 48px;
}

.toggle-label {
    font-weight: 600;
    color: var(--text-gray);
    transition: color 0.3s ease;
}

#yearly-label {
    color: var(--text-dark);
}

.save-badge {
    background: var(--success-green);
    color: white;
    padding: 4px 8px;
    border-radius: 12px;
    font-size: 0.75rem;
    font-weight: 700;
    margin-left: 8px;
}

.toggle-switch {
    position: relative;
    display: inline-block;
    width: 56px;
    height: 28px;
}

.toggle-switch input {
    opacity: 0;
    width: 0;
    height: 0;
}

.toggle-slider {
    position: absolute;
    cursor: pointer;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: #CBD5E1;
    transition: 0.4s;
    border-radius: 28px;
}

.toggle-slider:before {
    position: absolute;
    content: "";
    height: 20px;
    width: 20px;
    left: 4px;
    bottom: 4px;
    background-color: white;
    transition: 0.4s;
    border-radius: 50%;
}

input:checked + .toggle-slider {
    background-color: var(--primary-blue);
}

input:checked + .toggle-slider:before {
    transform: translateX(28px);
}

.plans-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 24px;
    margin-bottom: 60px;
    max-width: 1200px;
    margin-left: auto;
    margin-right: auto;
}

.plan-card {
    background: white;
    border-radius: var(--radius-lg);
    padding: 16px;
    box-shadow: var(--shadow-md);
    transition: all 0.3s ease;
    position: relative;
    border: 2px solid transparent;
    max-width: 340px;
    margin: 0 auto;
}

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

.plan-card[data-popular="true"] {
    border-color: var(--primary-blue);
    box-shadow: 0 8px 30px rgba(37, 99, 235, 0.2);
}

.popular-badge {
    position: absolute;
    top: -10px;
    left: 50%;
    transform: translateX(-50%);
    background: linear-gradient(135deg, var(--primary-blue), var(--primary-dark));
    color: white;
    padding: 4px 16px;
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: 700;
    box-shadow: 0 4px 12px rgba(37, 99, 235, 0.3);
}

.plan-header {
    text-align: center;
    padding-bottom: 14px;
    border-bottom: 2px solid var(--border-gray);
    margin-bottom: 14px;
}

.plan-name {
    font-size: 1.2rem;
    font-weight: 800;
    color: var(--text-dark);
    margin-bottom: 8px;
}

.plan-price {
    display: flex;
    align-items: baseline;
    justify-content: center;
    margin-bottom: 6px;
}

.price-monthly,
.price-yearly {
    display: flex;
    align-items: baseline;
    gap: 4px;
}

.currency {
    font-size: 1rem;
    font-weight: 700;
    color: var(--text-gray);
}

.amount {
    font-size: 2.2rem;
    font-weight: 800;
    color: var(--text-dark);
}

.period {
    font-size: 0.85rem;
    color: var(--text-gray);
}

.price-detail {
    font-size: 0.8rem;
    color: var(--text-gray);
}

.plan-features {
    margin-bottom: 16px;
}

.feature-item {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 2px 0;
    color: var(--text-dark);
    font-size: 0.85rem;
    line-height: 1.3;
}

.feature-icon {
    color: var(--success-green);
    font-weight: 800;
    flex-shrink: 0;
    font-size: 0.9rem;
}

.feature-icon.disabled {
    color: var(--text-gray);
    opacity: 0.4;
}

.feature-item.disabled {
    color: var(--text-gray);
    opacity: 0.5;
}

.feature-item.highlight {
    background: linear-gradient(135deg, #FEF3C7, #FDE68A);
    padding: 6px 10px;
    border-radius: var(--radius-sm);
    margin-top: 4px;
}

.feature-divider {
    height: 1px;
    background: var(--border-gray);
    margin: 6px 0;
}

.plan-cta {
    text-align: center;
}

.btn-plan {
    display: block;
    width: 100%;
    padding: 12px;
    background: linear-gradient(135deg, var(--primary-blue), var(--primary-dark));
    color: white;
    border-radius: var(--radius-sm);
    font-weight: 700;
    font-size: 1.05rem;
    text-decoration: none;
    transition: all 0.3s ease;
}

.btn-plan:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(37, 99, 235, 0.4);
    text-decoration: none;
    color: white;
}

/* Price Calculator */
.price-calculator {
    background: white;
    padding: 40px;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-lg);
    border: 2px solid var(--primary-blue);
}

.price-calculator h3 {
    font-size: 1.8rem;
    font-weight: 800;
    color: var(--text-dark);
    margin-bottom: 12px;
    text-align: center;
}

.price-calculator > p {
    text-align: center;
    color: var(--text-gray);
    margin-bottom: 32px;
}

.calculator-controls {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 32px;
    margin-bottom: 32px;
}

.control-group {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.control-group label {
    font-weight: 600;
    color: var(--text-dark);
}

.control-group input[type="range"] {
    width: 100%;
    height: 8px;
    border-radius: 4px;
    background: var(--border-gray);
    outline: none;
    -webkit-appearance: none;
}

.control-group input[type="range"]::-webkit-slider-thumb {
    -webkit-appearance: none;
    width: 20px;
    height: 20px;
    border-radius: 50%;
    background: var(--primary-blue);
    cursor: pointer;
}

.control-value {
    font-size: 1.5rem;
    font-weight: 800;
    color: var(--primary-blue);
    text-align: center;
}

.calculator-result {
    background: var(--bg-light);
    padding: 24px;
    border-radius: var(--radius-md);
}

.result-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px 0;
    border-bottom: 1px solid var(--border-gray);
}

.result-row:last-child {
    border-bottom: none;
}

.result-row.highlight {
    background: linear-gradient(135deg, #D1FAE5, #A7F3D0);
    padding: 16px;
    border-radius: var(--radius-sm);
    margin-top: 12px;
}

.result-row strong {
    font-size: 1.4rem;
    font-weight: 800;
    color: var(--primary-blue);
}

.result-row.highlight strong {
    color: var(--success-green);
}

/* FAQ Section */
.faq-section {
    padding: 80px 0;
    background: white;
}

.faq-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 24px;
}

.faq-item {
    background: var(--bg-light);
    padding: 24px;
    border-radius: var(--radius-md);
    transition: all 0.3s ease;
}

.faq-item:hover {
    background: white;
    box-shadow: var(--shadow-md);
    transform: translateY(-2px);
}

.faq-item h4 {
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--text-dark);
    margin-bottom: 12px;
}

.faq-item p {
    color: var(--text-gray);
    line-height: 1.7;
    margin: 0;
}

/* Final CTA */
.final-cta {
    padding: 100px 0;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    text-align: center;
}

.final-cta h2 {
    font-size: 3rem;
    font-weight: 800;
    margin-bottom: 16px;
}

.final-cta > p {
    font-size: 1.25rem;
    opacity: 0.95;
    margin-bottom: 40px;
}

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

.btn-cta-primary,
.btn-cta-secondary {
    display: inline-block;
    padding: 18px 40px;
    border-radius: var(--radius-sm);
    font-weight: 700;
    font-size: 1.1rem;
    text-decoration: none;
    transition: all 0.3s ease;
}

.btn-cta-primary {
    background: white;
    color: var(--primary-blue);
}

.btn-cta-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 30px rgba(255,255,255,0.4);
    text-decoration: none;
    color: var(--primary-dark);
}

.btn-cta-secondary {
    background: rgba(255,255,255,0.2);
    color: white;
    border: 2px solid rgba(255,255,255,0.3);
}

.btn-cta-secondary:hover {
    background: rgba(255,255,255,0.3);
    transform: translateY(-2px);
    text-decoration: none;
    color: white;
}

.trust-badges {
    display: flex;
    gap: 32px;
    justify-content: center;
    opacity: 0.9;
    flex-wrap: wrap;
}

.trust-badges span {
    font-size: 0.95rem;
}

/* Responsive Design */
@media (max-width: 1024px) {
    .hero-content {
        grid-template-columns: 1fr;
    }

    .hero-text h1 {
        font-size: 2.5rem;
    }

    .metrics-grid {
        grid-template-columns: 1fr;
    }

    .calculator-controls {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 768px) {
    .saas-hero {
        padding: 80px 0 60px;
    }

    .hero-text h1 {
        font-size: 2rem;
    }

    .subtitle {
        font-size: 1.1rem;
    }

    .hero-cta {
        flex-direction: column;
    }

    .btn-primary-modern,
    .btn-secondary-modern {
        width: 100%;
        text-align: center;
    }

    .hero-stats {
        flex-direction: column;
        gap: 20px;
    }

    .section-header h2 {
        font-size: 2rem;
    }

    .features-list {
        grid-template-columns: 1fr;
    }

    .plans-grid {
        grid-template-columns: 1fr;
    }

    .faq-grid {
        grid-template-columns: 1fr;
    }

    .final-cta h2 {
        font-size: 2rem;
    }

    .cta-buttons {
        flex-direction: column;
    }

    .btn-cta-primary,
    .btn-cta-secondary {
        width: 100%;
    }

    .trust-badges {
        flex-direction: column;
        gap: 12px;
    }
}
