/* CSS Variables */
:root {
    --primary-blue: #2563eb;
    --primary-blue-dark: #1d4ed8;
    --primary-blue-light: #3b82f6;
    --secondary-blue: #60a5fa;
    --accent-blue: #93c5fd;
    --light-blue: #dbeafe;
    --lightest-blue: #eff6ff;
    --white: #ffffff;
    --gray-50: #f9fafb;
    --gray-100: #f3f4f6;
    --gray-200: #e5e7eb;
    --gray-300: #d1d5db;
    --gray-600: #4b5563;
    --gray-700: #374151;
    --gray-800: #1f2937;
    --gray-900: #111827;
    --success: #10b981;
    --warning: #f59e0b;
    --danger: #ef4444;
    --font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    --shadow-sm: 0 1px 2px 0 rgb(0 0 0 / 0.05);
    --shadow: 0 1px 3px 0 rgb(0 0 0 / 0.1), 0 1px 2px -1px rgb(0 0 0 / 0.1);
    --shadow-md: 0 4px 6px -1px rgb(0 0 0 / 0.1), 0 2px 4px -2px rgb(0 0 0 / 0.1);
    --shadow-lg: 0 10px 15px -3px rgb(0 0 0 / 0.1), 0 4px 6px -4px rgb(0 0 0 / 0.1);
    --shadow-xl: 0 20px 25px -5px rgb(0 0 0 / 0.1), 0 8px 10px -6px rgb(0 0 0 / 0.1);
    --radius: 8px;
    --radius-lg: 12px;
    --radius-xl: 16px;
}

/* Reset & Base */
*, *::before, *::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-family);
    font-size: 16px;
    line-height: 1.6;
    color: var(--gray-800);
    background-color: var(--white);
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

a {
    color: var(--primary-blue);
    text-decoration: none;
    transition: color 0.2s ease;
}

a:hover {
    color: var(--primary-blue-dark);
}

ul {
    list-style: none;
}

/* Container */
.container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 24px;
}

/* Typography */
h1, h2, h3, h4, h5, h6 {
    font-weight: 700;
    line-height: 1.2;
    color: var(--gray-900);
}

h1 { font-size: 3rem; }
h2 { font-size: 2.25rem; }
h3 { font-size: 1.5rem; }
h4 { font-size: 1.25rem; }

.section-title {
    text-align: center;
    margin-bottom: 16px;
}

.section-subtitle {
    text-align: center;
    color: var(--gray-600);
    font-size: 1.125rem;
    max-width: 600px;
    margin: 0 auto 48px;
}

.highlight {
    color: var(--primary-blue);
}

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 12px 24px;
    font-size: 1rem;
    font-weight: 600;
    border-radius: var(--radius);
    border: none;
    cursor: pointer;
    transition: all 0.2s ease;
    text-decoration: none;
}

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

.btn-primary:hover {
    background-color: var(--primary-blue-dark);
    color: var(--white);
    transform: translateY(-1px);
    box-shadow: var(--shadow-md);
}

.btn-secondary {
    background-color: var(--white);
    color: var(--primary-blue);
    border: 2px solid var(--primary-blue);
}

.btn-secondary:hover {
    background-color: var(--lightest-blue);
    color: var(--primary-blue);
}

.btn-lg {
    padding: 16px 32px;
    font-size: 1.125rem;
}

/* Header */
.header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    background: var(--white);
    border-bottom: 1px solid var(--gray-200);
    z-index: 1000;
}

.nav {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 72px;
}

.logo {
    display: flex;
    align-items: center;
}

.logo-img {
    height: 50px;
    width: auto;
}

.nav-links {
    display: flex;
    align-items: center;
    gap: 32px;
}

.nav-links a {
    color: var(--gray-700);
    font-weight: 500;
    transition: color 0.2s ease;
}

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

.nav-links a.btn-primary {
    color: var(--white);
}

.nav-links a.btn-primary:hover {
    color: var(--white);
}

.mobile-menu-btn {
    display: none;
    flex-direction: column;
    gap: 5px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 8px;
}

.mobile-menu-btn span {
    display: block;
    width: 24px;
    height: 2px;
    background-color: var(--gray-800);
    transition: all 0.3s ease;
}

/* Hero Section */
.hero {
    padding: 120px 0 80px;
    background: linear-gradient(180deg, var(--lightest-blue) 0%, var(--white) 100%);
}

.hero-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 64px;
    align-items: center;
}

.hero-text h1 {
    margin-bottom: 24px;
    font-size: 3.5rem;
    line-height: 1.1;
}

.hero-subtitle {
    font-size: 1.25rem;
    color: var(--gray-600);
    margin-bottom: 32px;
    line-height: 1.7;
}

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

.trust-badges {
    display: flex;
    flex-wrap: wrap;
    gap: 24px;
}

.badge {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 0.875rem;
    color: var(--gray-600);
}

.badge-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 20px;
    height: 20px;
    background-color: var(--success);
    color: var(--white);
    border-radius: 50%;
    font-size: 12px;
}

.hero-image {
    display: flex;
    justify-content: center;
    align-items: center;
}

.hero-image img {
    max-width: 400px;
    filter: drop-shadow(0 20px 40px rgba(37, 99, 235, 0.2));
}

/* Problem/Solution Section */
.problem-solution {
    padding: 80px 0;
    background-color: var(--white);
}

.problem-solution-table {
    max-width: 800px;
    margin: 0 auto;
    border: 1px solid var(--gray-200);
    border-radius: var(--radius-lg);
    overflow: hidden;
}

.table-header {
    display: grid;
    grid-template-columns: 1fr 1fr;
    background: var(--primary-blue);
    color: var(--white);
    font-weight: 600;
    font-size: 0.875rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.table-header .col-problem,
.table-header .col-solution {
    padding: 16px 24px;
}

.table-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    border-bottom: 1px solid var(--gray-200);
    transition: background-color 0.2s ease;
}

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

.table-row:hover {
    background-color: var(--lightest-blue);
}

.table-row .col-problem {
    padding: 20px 24px;
    color: var(--gray-700);
    font-style: italic;
    border-right: 1px solid var(--gray-200);
}

.table-row .col-solution {
    padding: 20px 24px;
    display: flex;
    align-items: center;
    gap: 12px;
}

.table-row .col-solution a {
    font-weight: 600;
    color: var(--primary-blue);
    text-decoration: none;
    transition: color 0.2s ease;
}

.table-row .col-solution a:hover {
    color: var(--primary-blue-dark);
    text-decoration: underline;
}

.solution-icon {
    width: 36px;
    height: 36px;
    object-fit: contain;
    margin-right: 12px;
    flex-shrink: 0;
}

/* Services Section */
.services {
    padding: 100px 0;
    background: linear-gradient(180deg, var(--white) 0%, var(--lightest-blue) 100%);
}

.services-grid {
    display: flex;
    gap: 20px;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    padding: 20px 4px 16px;
    margin: 0 -4px;
    -webkit-overflow-scrolling: touch;
}

.services-grid::-webkit-scrollbar {
    height: 8px;
}

.services-grid::-webkit-scrollbar-track {
    background: var(--gray-100);
    border-radius: 4px;
}

.services-grid::-webkit-scrollbar-thumb {
    background: var(--secondary-blue);
    border-radius: 4px;
}

.services-grid::-webkit-scrollbar-thumb:hover {
    background: var(--primary-blue);
}

.service-card {
    background: var(--white);
    border: 1px solid var(--gray-200);
    border-radius: var(--radius-lg);
    padding: 20px 16px;
    position: relative;
    transition: all 0.3s ease;
    display: flex;
    flex-direction: column;
    min-width: 200px;
    max-width: 220px;
    flex: 0 0 auto;
    scroll-snap-align: start;
}

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

.service-card.featured {
    border: 2px solid var(--primary-blue);
    box-shadow: var(--shadow-md);
}

.service-card.emergency {
    border: 2px solid var(--warning);
}

.service-badge {
    position: absolute;
    top: -10px;
    left: 50%;
    transform: translateX(-50%);
    background: var(--primary-blue);
    color: var(--white);
    padding: 4px 10px;
    border-radius: 20px;
    font-size: 0.55rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.3px;
    white-space: nowrap;
}

.service-badge.urgent {
    background: var(--warning);
}

.service-icon {
    width: 50px;
    height: 50px;
    margin: 0 auto 12px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.service-icon img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.service-card h3 {
    text-align: center;
    margin-bottom: 8px;
    color: var(--gray-900);
    font-size: 0.9rem;
    min-height: 1.2em;
}

.service-card > p {
    color: var(--gray-600);
    text-align: center;
    margin-bottom: 12px;
    font-size: 0.75rem;
    line-height: 1.4;
    min-height: 3.5em;
}

.service-features {
    border-top: 1px solid var(--gray-200);
    padding-top: 10px;
    flex-grow: 1;
    min-height: 80px;
}

.service-features li {
    display: flex;
    align-items: flex-start;
    gap: 6px;
    padding: 4px 0;
    color: var(--gray-700);
    font-size: 0.75rem;
}

.service-features li::before {
    content: "✓";
    color: var(--success);
    font-weight: 700;
    font-size: 0.7rem;
}

.service-price-btn {
    display: block;
    margin-top: auto;
    padding: 12px 10px;
    border-top: 1px solid var(--gray-200);
    text-align: center;
    font-size: 1.25rem;
    font-weight: 800;
    color: var(--white);
    background-color: var(--primary-blue);
    text-decoration: none;
    border-radius: var(--radius);
    transition: all 0.2s ease;
}

.service-price-btn:hover {
    background-color: var(--primary-blue-dark);
    color: var(--white);
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

/* How It Works */
.how-it-works {
    padding: 100px 0;
    background: var(--white);
}

.steps {
    display: flex;
    align-items: flex-start;
    justify-content: center;
    gap: 24px;
    margin-top: 48px;
}

.step {
    flex: 1;
    max-width: 300px;
    text-align: center;
    padding: 32px 24px;
}

.step-number {
    width: 60px;
    height: 60px;
    background: var(--primary-blue);
    color: var(--white);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    font-weight: 700;
    margin: 0 auto 24px;
}

.step h3 {
    margin-bottom: 12px;
}

.step p {
    color: var(--gray-600);
    font-size: 0.95rem;
}

.step-arrow {
    font-size: 2rem;
    color: var(--secondary-blue);
    padding-top: 48px;
}

/* Social Proof */
.social-proof {
    padding: 80px 0;
    background: var(--primary-blue);
    color: var(--white);
}

.social-proof .section-title {
    color: var(--white);
}

.stats {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 48px;
    margin-top: 48px;
}

.stat {
    text-align: center;
}

.stat-number {
    display: block;
    font-size: 3rem;
    font-weight: 800;
    margin-bottom: 8px;
}

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

/* Testimonials Section */
.testimonials {
    padding: 100px 0;
    background: var(--white);
}

.testimonials-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 32px;
    margin-top: 48px;
}

.testimonial-card {
    background: var(--gray-50);
    border: 1px solid var(--gray-200);
    border-radius: var(--radius-lg);
    padding: 32px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.testimonial-content p {
    color: var(--gray-700);
    font-size: 1rem;
    line-height: 1.7;
    font-style: italic;
    margin-bottom: 24px;
}

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

.author-info {
    display: flex;
    flex-direction: column;
}

.author-name {
    font-weight: 600;
    color: var(--gray-900);
}

.author-title {
    font-size: 0.875rem;
    color: var(--gray-600);
}

/* CTA Section */
.cta-section {
    padding: 100px 0;
    background: linear-gradient(180deg, var(--lightest-blue) 0%, var(--white) 100%);
}

.cta-content {
    display: flex;
    align-items: center;
    gap: 64px;
    background: var(--white);
    border-radius: var(--radius-xl);
    padding: 64px;
    box-shadow: var(--shadow-xl);
    border: 1px solid var(--gray-200);
}

.cta-image {
    flex-shrink: 0;
    width: 200px;
}

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

.cta-text p {
    color: var(--gray-600);
    margin-bottom: 24px;
    font-size: 1.125rem;
}

.cta-note {
    margin-top: 16px;
    font-size: 0.9rem;
    color: var(--gray-600);
}

/* Footer */
.footer {
    background: var(--gray-900);
    color: var(--gray-300);
    padding: 64px 0 32px;
}

.footer-content {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr;
    gap: 64px;
    margin-bottom: 48px;
}

.footer-brand {
    max-width: 300px;
}

.footer-logo {
    height: 60px;
    width: auto;
    margin-bottom: 16px;
}

.footer-brand p {
    font-size: 0.9rem;
    line-height: 1.6;
}

.footer-links h4 {
    color: var(--white);
    margin-bottom: 16px;
    font-size: 1rem;
}

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

.footer-links a {
    color: var(--gray-400);
    font-size: 0.9rem;
    transition: color 0.2s ease;
}

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

.footer-bottom {
    border-top: 1px solid var(--gray-700);
    padding-top: 32px;
    text-align: center;
    font-size: 0.875rem;
    color: var(--gray-500);
}

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

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

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

    .trust-badges {
        justify-content: center;
    }

    .hero-image {
        order: -1;
    }

    .hero-image img {
        max-width: 300px;
    }

    .services-grid {
        flex-wrap: wrap;
        overflow-x: visible;
        justify-content: center;
    }

    .service-card {
        min-width: 200px;
        flex: 1 1 calc(33% - 20px);
        max-width: 280px;
    }

    .stats {
        grid-template-columns: repeat(2, 1fr);
    }

    .testimonials-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .footer-content {
        grid-template-columns: 1fr 1fr;
    }

    .footer-brand {
        grid-column: span 2;
    }
}

@media (max-width: 768px) {
    .testimonials-grid {
        grid-template-columns: 1fr;
    }

    .table-header,
    .table-row {
        grid-template-columns: 1fr;
    }

    .table-header .col-solution {
        display: none;
    }

    .table-row .col-problem {
        border-right: none;
        border-bottom: 1px solid var(--gray-100);
        padding-bottom: 12px;
    }

    .table-row .col-solution {
        padding-top: 12px;
    }

    .solution-icon {
        width: 28px;
        height: 28px;
    }

    h1 { font-size: 2.25rem; }
    h2 { font-size: 1.75rem; }

    .nav-links {
        position: fixed;
        top: 72px;
        left: 0;
        right: 0;
        background: var(--white);
        flex-direction: column;
        padding: 24px;
        gap: 16px;
        border-bottom: 1px solid var(--gray-200);
        transform: translateY(-100%);
        opacity: 0;
        visibility: hidden;
        transition: all 0.3s ease;
    }

    .nav-links.active {
        transform: translateY(0);
        opacity: 1;
        visibility: visible;
    }

    .mobile-menu-btn {
        display: flex;
    }

    .mobile-menu-btn.active span:nth-child(1) {
        transform: rotate(45deg) translate(5px, 5px);
    }

    .mobile-menu-btn.active span:nth-child(2) {
        opacity: 0;
    }

    .mobile-menu-btn.active span:nth-child(3) {
        transform: rotate(-45deg) translate(5px, -5px);
    }

    .hero {
        padding: 100px 0 60px;
    }

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

    .hero-subtitle {
        font-size: 1rem;
    }

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

    .service-card {
        flex: 1 1 calc(50% - 20px);
        min-width: 160px;
    }

    .service-card > p {
        min-height: auto;
    }

    .service-features {
        min-height: auto;
    }

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

    .step-arrow {
        transform: rotate(90deg);
        padding: 0;
    }

    .cta-content {
        flex-direction: column;
        padding: 40px 24px;
        text-align: center;
    }

    .stats {
        grid-template-columns: repeat(2, 1fr);
        gap: 32px;
    }

    .stat-number {
        font-size: 2.25rem;
    }

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

    .footer-brand {
        grid-column: auto;
    }
}

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

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

    .btn-lg {
        padding: 14px 24px;
        font-size: 1rem;
    }

    .trust-badges {
        flex-direction: column;
        align-items: center;
    }

    .service-card {
        flex: 1 1 100%;
        min-width: 100%;
        padding: 24px 16px;
    }
}
