/* Global Styles */
:root {
    --primary: #4F46E5;
    --primary-dark: #4338ca;
    --primary-light: #818cf8;
    --secondary: #10b981;
    --text-main: #111827;
    --text-muted: #6b7280;
    --bg-light: #f9fafb;
    --bg-white: #ffffff;
    --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
    --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
    --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
    --shadow-xl: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
    --radius-md: 0.75rem;
    --radius-lg: 1rem;
    --radius-full: 9999px;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, sans-serif;
    background: var(--bg-white);
    color: var(--text-main);
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
    overflow-x: hidden;
}

/* Layout Utilities */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 24px;
}

/* Navigation */
nav {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    height: 80px;
    background: rgba(255, 255, 255, 0.8);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    z-index: 1000;
    border-bottom: 1px solid rgba(0,0,0,0.05);
    transition: all 0.3s ease;
}

.nav-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 100%;
}

.logo {
    display: flex;
    align-items: center;
    text-decoration: none;
    gap: 12px;
    font-weight: 800;
    font-size: 24px;
    color: var(--text-main);
    letter-spacing: -0.5px;
}

.logo img {
    height: 40px;
    width: auto;
}

.nav-links {
    display: flex;
    gap: 40px;
    list-style: none;
    align-items: center;
}

.nav-links a {
    color: var(--text-muted);
    text-decoration: none;
    font-size: 15px;
    font-weight: 600;
    transition: all 0.2s;
    position: relative;
}

.nav-links a:hover,
.nav-links a.active {
    color: var(--primary);
}

.nav-btn {
    padding: 10px 20px;
    background: var(--text-main);
    color: white !important;
    border-radius: var(--radius-full);
    transition: transform 0.2s, background-color 0.2s;
}

.nav-btn:hover {
    transform: translateY(-1px);
    background: #000;
}

/* Hero Section Common */
.hero {
    padding-top: 140px;
    padding-bottom: 100px;
    background: radial-gradient(circle at 50% 0%, #f0f9ff 0%, #ffffff 100%);
    overflow: hidden;
    position: relative;
}

.hero::before {
    content: '';
    position: absolute;
    top: -100px;
    right: -100px;
    width: 500px;
    height: 500px;
    background: linear-gradient(135deg, #e0e7ff 0%, #f3e8ff 100%);
    filter: blur(80px);
    border-radius: 50%;
    z-index: 0;
    opacity: 0.6;
}

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

.hero-text h1 {
    font-size: 56px;
    font-weight: 800;
    line-height: 1.1;
    margin-bottom: 24px;
    letter-spacing: -1px;
    background: linear-gradient(135deg, #111827 0%, #4F46E5 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.hero-text p {
    font-size: 18px;
    color: var(--text-muted);
    margin-bottom: 40px;
    max-width: 500px;
}

/* Hero Centered Variant (for Features/Pricing) */
.hero.hero-centered {
    text-align: center;
    padding-bottom: 60px;
}

.hero-centered .hero-content-wrapper {
    grid-template-columns: 1fr;
    gap: 40px;
    justify-items: center;
}

.hero-centered .hero-text h1 {
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
}

.hero-centered .hero-text p {
    margin-left: auto;
    margin-right: auto;
    max-width: 700px;
}

/* Buttons */
.hero-buttons {
    display: flex;
    gap: 16px;
}

.hero-centered .hero-buttons {
    justify-content: center;
}

.btn {
    padding: 16px 32px;
    border-radius: var(--radius-md);
    font-weight: 600;
    font-size: 16px;
    text-decoration: none;
    transition: all 0.3s ease;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    border: none;
    cursor: pointer;
}

.btn-primary {
    background: var(--primary);
    color: white;
    box-shadow: 0 4px 14px 0 rgba(79, 70, 229, 0.3);
}

.btn-primary:hover {
    background: var(--primary-dark);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px 0 rgba(79, 70, 229, 0.4);
}

.btn-secondary {
    background: white;
    color: var(--text-main);
    border: 1px solid #e5e7eb;
}

.btn-secondary:hover {
    border-color: var(--text-muted);
    background: #f9fafb;
}

.hero-image-wrapper {
    position: relative;
}

/* Comparison Slider Styles */
.comparison-slider {
    position: relative;
    width: 100%;
    max-width: 600px;
    border-radius: 24px;
    overflow: hidden;
    box-shadow: var(--shadow-xl);
    user-select: none;
}

.comparison-slider-container {
    position: relative;
    width: 100%;
    padding-bottom: 75%; /* 4:3 aspect ratio */
    overflow: hidden;
    background: #f0f0f0;
}

/* Background Image (AFTER) - Always fully visible */
.comparison-after {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* Foreground Image (BEFORE) - Clipped based on slider position */
.comparison-before-container {
    position: absolute;
    top: 0;
    left: 0;
    height: 100%;
    width: 50%;
    overflow: hidden;
}

.comparison-before {
    position: absolute;
    top: 0;
    left: 0;
    height: 100%;
    object-fit: cover;
    /* Width will be set dynamically via JavaScript to match container */
}

.comparison-slider-handle {
    position: absolute;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 4px;
    height: 100%;
    cursor: col-resize;
    z-index: 10;
}

.handle-line {
    position: absolute;
    width: 4px;
    height: 100%;
    background: white;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.3);
}

.handle-circle {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 40px;
    height: 40px;
    background: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
    transition: transform 0.2s ease;
}

.handle-circle i {
    color: #4f46e5;
    font-size: 18px;
}

.comparison-slider-handle:hover .handle-circle {
    transform: translate(-50%, -50%) scale(1.1);
}

.comparison-labels {
    position: absolute;
    top: 20px;
    left: 20px;
    right: 20px;
    display: flex;
    justify-content: space-between;
    pointer-events: none;
    z-index: 5;
}

.label-before,
.label-after {
    background: rgba(255, 255, 255, 0.9);
    color: #1f2937;
    padding: 8px 16px;
    border-radius: 8px;
    font-weight: 600;
    font-size: 14px;
    backdrop-filter: blur(10px);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.hero-image {
    width: 100%;
    border-radius: 24px;
    box-shadow: var(--shadow-xl);
    transition: transform 0.4s ease;
    position: relative;
    z-index: 2;
}

.hero-image:hover {
    transform: translateY(-5px) scale(1.01);
}

.hero-badge {
    position: absolute;
    bottom: 30px;
    left: -30px;
    background: white;
    padding: 16px 24px;
    border-radius: 16px;
    box-shadow: var(--shadow-lg);
    display: flex;
    align-items: center;
    gap: 16px;
    z-index: 3;
    animation: float 4s ease-in-out infinite;
}

@keyframes float {
    0% { transform: translateY(0); }
    50% { transform: translateY(-10px); }
    100% { transform: translateY(0); }
}

.hero-badge-icon {
    width: 48px;
    height: 48px;
    background: #ecfdf5;
    color: #10b981;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
}

/* Section Styles */
section {
    padding: 100px 0;
}

.section-header {
    text-align: center;
    max-width: 700px;
    margin: 0 auto 60px;
}

.section-header h2 {
    font-size: 36px;
    font-weight: 800;
    margin-bottom: 16px;
    letter-spacing: -0.5px;
}

.section-header p {
    color: var(--text-muted);
    font-size: 18px;
}

/* Features Grid */
.features-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 32px;
}

.feature-card {
    background: white;
    padding: 32px;
    border-radius: 20px;
    border: 1px solid rgba(0,0,0,0.05);
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

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

.feature-icon {
    width: 56px;
    height: 56px;
    background: #eff6ff;
    color: var(--primary);
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
    margin-bottom: 24px;
}

.feature-card h3 {
    font-size: 20px;
    font-weight: 700;
    margin-bottom: 12px;
}

.feature-card p {
    color: var(--text-muted);
    font-size: 15px;
    line-height: 1.6;
}

/* Features Page Specific */
.feature-category {
    margin-bottom: 80px;
}

.category-title {
    font-size: 28px;
    font-weight: 700;
    margin-bottom: 40px;
    text-align: center;
    position: relative;
    display: inline-block;
    left: 50%;
    transform: translateX(-50%);
}

.category-title::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 0;
    width: 100%;
    height: 4px;
    background: var(--primary-light);
    opacity: 0.3;
    border-radius: 2px;
}

.feature-tag {
    display: inline-block;
    background: #e0e7ff;
    color: var(--primary);
    padding: 6px 14px;
    border-radius: 20px;
    font-size: 12px;
    margin-top: 20px;
    font-weight: 700;
}

/* Pricing Page Specific */
.pricing-toggle {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 20px;
    margin: 30px 0 60px;
}

.toggle-label {
    font-size: 16px;
    color: var(--text-muted);
    font-weight: 600;
}

.toggle-switch {
    position: relative;
    width: 60px;
    height: 32px;
    background: #e5e7eb;
    border-radius: 32px;
    cursor: pointer;
    transition: background 0.3s;
}

.toggle-switch.active {
    background: var(--primary);
}

.toggle-slider {
    position: absolute;
    top: 4px;
    left: 4px;
    width: 24px;
    height: 24px;
    background: white;
    border-radius: 50%;
    transition: transform 0.3s cubic-bezier(0.4, 0.0, 0.2, 1);
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.toggle-switch.active .toggle-slider {
    transform: translateX(28px);
}

.save-badge {
    background: #10b981;
    color: white;
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 700;
    box-shadow: 0 2px 6px rgba(16, 185, 129, 0.2);
}

.pricing-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    margin-bottom: 80px;
}

.pricing-card {
    background: white;
    border: 1px solid rgba(0,0,0,0.05);
    border-radius: 24px;
    padding: 40px;
    position: relative;
    transition: all 0.3s ease;
    display: flex;
    flex-direction: column;
}

.pricing-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-xl);
}

.pricing-card.popular {
    border: 2px solid var(--primary);
    background: #fff;
    box-shadow: var(--shadow-lg);
    z-index: 1;
}

.popular-badge {
    position: absolute;
    top: -16px;
    left: 50%;
    transform: translateX(-50%);
    background: var(--primary);
    color: white;
    padding: 8px 20px;
    border-radius: 20px;
    font-size: 14px;
    font-weight: 700;
    box-shadow: 0 4px 10px rgba(79, 70, 229, 0.3);
}

.plan-name {
    font-size: 22px;
    font-weight: 700;
    color: var(--text-main);
    margin-bottom: 8px;
}

.plan-description {
    font-size: 15px;
    color: var(--text-muted);
    margin-bottom: 32px;
    height: 48px; /* Fixed height for alignment */
}

.plan-price {
    font-size: 48px;
    font-weight: 800;
    color: var(--text-main);
    margin-bottom: 4px;
    letter-spacing: -1px;
}

.plan-price span {
    font-size: 18px;
    color: var(--text-muted);
    font-weight: 500;
}

.price-note {
    font-size: 14px;
    color: var(--text-muted);
    margin-bottom: 32px;
    font-style: italic;
}

.plan-features {
    list-style: none;
    margin-bottom: 40px;
    flex-grow: 1;
}

.plan-features li {
    padding: 12px 0;
    font-size: 15px;
    color: var(--text-muted);
    display: flex;
    align-items: flex-start;
    gap: 12px;
}

.feature-check {
    color: var(--secondary);
    font-size: 16px;
    margin-top: 2px;
    background: #d1fae5;
    width: 20px;
    height: 20px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.feature-check i {
    font-size: 10px;
}

.plan-button {
    width: 100%;
    text-align: center;
    margin-top: auto;
}

/* FAQ */
.faq-container {
    max-width: 800px;
    margin: 0 auto;
}

.faq-item {
    background: white;
    border: 1px solid #e5e7eb;
    border-radius: 16px;
    margin-bottom: 16px;
    overflow: hidden;
    transition: all 0.2s ease;
}

.faq-item:hover {
    border-color: var(--primary-light);
}

.faq-question {
    padding: 24px;
    font-size: 18px;
    font-weight: 600;
    color: var(--text-main);
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: white;
}

.faq-answer {
    padding: 0 24px 24px;
    font-size: 15px;
    color: var(--text-muted);
    line-height: 1.6;
    display: none;
}

/* Steps Section */
.steps-section {
    background: #f8fafc;
}

.steps-container {
    display: flex;
    justify-content: space-between;
    position: relative;
    gap: 40px;
}

.step-item {
    flex: 1;
    text-align: center;
    position: relative;
    z-index: 2;
}

.step-number {
    width: 48px;
    height: 48px;
    background: var(--primary);
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 18px;
    margin: 0 auto 24px;
    box-shadow: 0 0 0 8px #e0e7ff;
}

.step-item h3 {
    font-size: 20px;
    font-weight: 700;
    margin-bottom: 12px;
}

.step-item p {
    color: var(--text-muted);
    font-size: 15px;
}

/* Testimonials */
.testimonials-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 32px;
    max-width: 1000px;
    margin: 0 auto;
}

.testimonial-card {
    background: white;
    padding: 40px;
    border-radius: 24px;
    box-shadow: var(--shadow-md);
    border: 1px solid rgba(0,0,0,0.03);
}

.stars {
    color: #fbbf24;
    margin-bottom: 20px;
    font-size: 14px;
}

.quote {
    font-size: 18px;
    color: var(--text-main);
    font-weight: 500;
    margin-bottom: 24px;
    line-height: 1.6;
}

.author {
    display: flex;
    align-items: center;
    gap: 16px;
}

.author img {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    object-fit: cover;
}

.author-info h4 {
    font-weight: 700;
    font-size: 16px;
    color: var(--text-main);
}

.author-info p {
    color: var(--text-muted);
    font-size: 13px;
}

/* CTA Section */
.cta-section {
    margin: 100px 24px;
    background: var(--primary);
    border-radius: 32px;
    padding: 80px 24px;
    text-align: center;
    color: white;
    position: relative;
    overflow: hidden;
}

.cta-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(45deg, transparent 0%, rgba(255,255,255,0.1) 100%);
}

.cta-content {
    position: relative;
    z-index: 2;
    max-width: 700px;
    margin: 0 auto;
}

.cta-section h2 {
    font-size: 42px;
    font-weight: 800;
    margin-bottom: 24px;
    letter-spacing: -1px;
}

.cta-section p {
    font-size: 18px;
    margin-bottom: 40px;
    opacity: 0.9;
}

.btn-white {
    background: white;
    color: var(--primary);
    padding: 18px 40px;
    border-radius: var(--radius-full);
    font-weight: 700;
    font-size: 18px;
    text-decoration: none;
    display: inline-block;
    transition: transform 0.2s, box-shadow 0.2s;
}

.btn-white:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 25px -5px rgba(0,0,0,0.2);
}

/* Footer */
footer {
    background: #111827;
    color: white;
    padding: 80px 0 40px;
}

.footer-grid {
    display: grid;
    grid-template-columns: 1.5fr 1fr 1fr 1fr;
    gap: 40px;
    margin-bottom: 60px;
}

.footer-brand h3 {
    font-size: 24px;
    font-weight: 800;
    margin-bottom: 20px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.footer-brand p {
    color: #9ca3af;
    font-size: 15px;
    max-width: 300px;
}

.footer-col h4 {
    font-size: 16px;
    font-weight: 700;
    margin-bottom: 24px;
    color: white;
}

.footer-links {
    list-style: none;
}

.footer-links li {
    margin-bottom: 12px;
}

.footer-links a {
    color: #9ca3af;
    text-decoration: none;
    font-size: 14px;
    transition: color 0.2s;
}

.footer-links a:hover {
    color: white;
}

.footer-bottom {
    border-top: 1px solid #1f2937;
    padding-top: 40px;
    text-align: center;
    color: #6b7280;
    font-size: 14px;
}

/* Form Styles */
.form-group {
    margin-bottom: 24px;
}

.form-label {
    display: block;
    font-size: 14px;
    font-weight: 600;
    color: var(--text-main);
    margin-bottom: 8px;
}

.form-input,
.form-textarea,
.form-select {
    width: 100%;
    padding: 12px 16px;
    border: 1px solid #e5e7eb;
    border-radius: 8px;
    font-size: 15px;
    transition: all 0.3s ease;
    font-family: inherit;
    background: #f9fafb;
}

.form-input:focus,
.form-textarea:focus,
.form-select:focus {
    outline: none;
    border-color: var(--primary);
    background: white;
    box-shadow: 0 0 0 3px rgba(79, 70, 229, 0.1);
}

.form-textarea {
    min-height: 120px;
    resize: vertical;
}

.form-button {
    width: 100%;
    padding: 16px;
    background: var(--primary);
    color: white;
    border: none;
    border-radius: 8px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
}

.form-button:hover {
    background: var(--primary-dark);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(79, 70, 229, 0.3);
}

/* Contact Specific */
.contact-container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    padding-bottom: 80px;
}

.contact-form-section {
    background: white;
    border: 1px solid rgba(0,0,0,0.05);
    border-radius: 24px;
    padding: 40px;
    box-shadow: var(--shadow-lg);
}

.info-card {
    background: white;
    border-radius: 16px;
    padding: 24px;
    margin-bottom: 20px;
    border: 1px solid #e5e7eb;
    transition: transform 0.2s;
    display: flex;
    align-items: flex-start;
    gap: 16px;
}

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

.info-icon {
    width: 40px;
    height: 40px;
    background: #eff6ff;
    color: var(--primary);
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
    flex-shrink: 0;
}

.info-title {
    font-size: 18px;
    font-weight: 700;
    color: var(--text-main);
    margin-bottom: 4px;
}

.info-content {
    font-size: 15px;
    color: var(--text-muted);
    line-height: 1.6;
}

.info-content a {
    color: var(--primary);
    text-decoration: none;
    font-weight: 500;
}

.support-hours {
    background: linear-gradient(135deg, #111827 0%, #1f2937 100%);
    color: white;
    border-radius: 16px;
    padding: 30px;
    margin-top: 30px;
}

.hours-list li {
    display: flex;
    justify-content: space-between;
    padding: 12px 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    font-size: 14px;
    color: #d1d5db;
}

/* Responsive */
@media (max-width: 1024px) {
    .hero-content-wrapper {
        grid-template-columns: 1fr;
        text-align: center;
        gap: 60px;
    }

    .hero-text {
        margin: 0 auto;
    }

    .hero-buttons {
        justify-content: center;
    }

    .hero-badge {
        left: 50%;
        transform: translateX(-50%);
        bottom: -20px;
    }
}

@media (max-width: 768px) {
    .nav-links {
        display: none;
    }

    .features-grid, .testimonials-grid, .steps-container, .pricing-grid {
        grid-template-columns: 1fr;
        gap: 40px;
    }

    .footer-grid {
        grid-template-columns: 1fr;
        gap: 40px;
    }

    .hero-text h1 {
        font-size: 40px;
    }
    
    .pricing-card.popular {
        transform: scale(1);
    }
    
    .contact-container {
        grid-template-columns: 1fr;
    }
}
