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

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
    line-height: 1.6;
    color: #333;
    background-color: #fff;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Typography */
h1, h2, h3, h4, h5, h6 {
    font-weight: 700;
    line-height: 1.2;
    margin-bottom: 1rem;
    color: #2a4b76;
}

h1 {
    font-size: 2.5rem;
}

h2 {
    font-size: 2rem;
    margin-top: 3rem;
}

h3 {
    font-size: 1.5rem;
}

h4 {
    font-size: 1.25rem;
    margin-top: 2rem;
}

p {
    margin-bottom: 1rem;
    color: #555;
}

/* Header */
.header {
    background: #fff;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    position: sticky;
    top: 0;
    z-index: 1000;
}

.header .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 20px;
}

.logo {
    font-size: 1.5rem;
    font-weight: bold;
    color: #2a4b76;
    text-decoration: none;
}

.nav {
    display: flex;
    gap: 2rem;
}

.nav a {
    text-decoration: none;
    color: #555;
    font-weight: 500;
    transition: color 0.3s ease;
}

.nav a:hover {
    color: #4a90e6;
}

/* Hero Section */
.hero {
    background: linear-gradient(135deg, #f5f7fa 0%, #c3cfe2 100%);
    padding: 4rem 0;
}

.hero-content {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 3rem;
    align-items: center;
}

.hero h1 {
    font-size: 3rem;
    margin-bottom: 1.5rem;
    color: #2a4b76;
}

.hero p {
    font-size: 1.1rem;
    margin-bottom: 1.5rem;
    color: #666;
}

.hero-image img {
    width: 100%;
    height: auto;
    border-radius: 15px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
}

/* Content Sections */
.content {
    padding: 4rem 0;
}

.tools-section {
    margin-bottom: 4rem;
}

/* Tool Cards */
.tool-card {
    background: #fff;
    border-radius: 15px;
    padding: 2.5rem;
    margin-bottom: 3rem;
    box-shadow: 0 5px 25px rgba(0,0,0,0.08);
    border: 1px solid #e5e5e5;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.tool-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 40px rgba(0,0,0,0.15);
}

.tool-card.featured {
    border: 3px solid #4a90e6;
    background: linear-gradient(135deg, #fff 0%, #f8fcff 100%);
    position: relative;
}

.tool-header {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 1.5rem;
}

.rank {
    background: #4a90e6;
    color: white;
    padding: 0.5rem 1rem;
    border-radius: 25px;
    font-weight: bold;
    font-size: 1.1rem;
}

.featured .rank {
    background: linear-gradient(135deg, #4a90e6 0%, #357abd 100%);
}

.badge {
    background: #ff8066;
    color: white;
    padding: 0.3rem 0.8rem;
    border-radius: 15px;
    font-size: 0.9rem;
    font-weight: 600;
}

.featured-badge {
    background: linear-gradient(135deg, #ff8066 0%, #ff4a33 100%);
}

/* Features List */
.features-list {
    list-style: none;
    margin: 1.5rem 0;
}

.features-list li {
    padding: 0.75rem 0;
    border-bottom: 1px solid #f0f0f0;
    display: flex;
    align-items: flex-start;
    gap: 0.75rem;
}

.features-list li:last-child {
    border-bottom: none;
}

.features-list i {
    color: #4a90e6;
    margin-top: 0.2rem;
    flex-shrink: 0;
}

/* Pros and Cons */
.pros-cons {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
    margin: 2rem 0;
    padding: 2rem;
    background: #f8f9fa;
    border-radius: 10px;
}

.pros h5, .cons h5 {
    margin-bottom: 1rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.pros h5 {
    color: #28a745;
}

.cons h5 {
    color: #dc3545;
}

.pros ul, .cons ul {
    list-style: none;
}

.pros li, .cons li {
    padding: 0.3rem 0;
    position: relative;
    padding-left: 1.5rem;
}

.pros li::before {
    content: "✓";
    position: absolute;
    left: 0;
    color: #28a745;
    font-weight: bold;
}

.cons li::before {
    content: "✗";
    position: absolute;
    left: 0;
    color: #dc3545;
    font-weight: bold;
}

/* Who For and Verdict */
.who-for, .verdict {
    margin: 2rem 0;
    padding: 1.5rem;
    border-left: 4px solid #4a90e6;
    background: #f8fcff;
    border-radius: 0 10px 10px 0;
}

.verdict {
    border-left-color: #28a745;
    background: #f8fff9;
}

/* Comparison Table */
.comparison-section {
    margin: 4rem 0;
}

.table-wrapper {
    overflow-x: auto;
    margin: 2rem 0;
    border-radius: 15px;
    box-shadow: 0 5px 25px rgba(0,0,0,0.1);
}

.comparison-table {
    width: 100%;
    border-collapse: collapse;
    background: white;
    font-size: 0.95rem;
}

.comparison-table th {
    background: linear-gradient(135deg, #2a4b76 0%, #4a90e6 100%);
    color: white;
    padding: 1rem;
    text-align: left;
    font-weight: 600;
}

.comparison-table td {
    padding: 1rem;
    border-bottom: 1px solid #e5e5e5;
    vertical-align: top;
}

.comparison-table tr:hover {
    background: #f8f9fa;
}

.featured-row {
    background: linear-gradient(135deg, #fff 0%, #f8fcff 100%);
    border-left: 4px solid #4a90e6;
}

.featured-row:hover {
    background: linear-gradient(135deg, #f8fcff 0%, #e6f3ff 100%);
}

/* Factors Grid */
.factors-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    margin: 3rem 0;
}

.factor-card {
    background: white;
    padding: 2rem;
    border-radius: 15px;
    box-shadow: 0 5px 20px rgba(0,0,0,0.08);
    text-align: center;
    border: 1px solid #e5e5e5;
    transition: transform 0.3s ease;
}

.factor-card:hover {
    transform: translateY(-5px);
}

.factor-card i {
    font-size: 3rem;
    color: #4a90e6;
    margin-bottom: 1rem;
}

/* Standout Features */
.standout-features {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    margin: 3rem 0;
}

.standout-card {
    background: linear-gradient(135deg, #f8fcff 0%, #e6f3ff 100%);
    padding: 2rem;
    border-radius: 15px;
    text-align: center;
    border: 2px solid #4a90e6;
}

.standout-card i {
    font-size: 3rem;
    color: #4a90e6;
    margin-bottom: 1rem;
}

/* Testimonial */
.testimonial {
    background: #f8f9fa;
    padding: 2rem;
    border-radius: 15px;
    margin: 3rem 0;
    border-left: 5px solid #4a90e6;
}

.testimonial blockquote {
    font-style: italic;
    font-size: 1.1rem;
    margin: 0;
}

.testimonial cite {
    display: block;
    margin-top: 1rem;
    font-weight: 600;
    color: #4a90e6;
}

/* FAQ Section */
.faq-section {
    margin: 4rem 0;
}

.faq-container {
    max-width: 800px;
    margin: 2rem 0;
}

.faq-item {
    background: white;
    border-radius: 10px;
    margin-bottom: 1rem;
    box-shadow: 0 2px 10px rgba(0,0,0,0.08);
    overflow: hidden;
}

.faq-question {
    width: 100%;
    background: none;
    border: none;
    padding: 1.5rem;
    text-align: left;
    font-size: 1.1rem;
    font-weight: 600;
    color: #2a4b76;
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    transition: background-color 0.3s ease;
}

.faq-question:hover {
    background: #f8f9fa;
}

.faq-question i {
    transition: transform 0.3s ease;
    color: #4a90e6;
}

.faq-question[aria-expanded="true"] i {
    transform: rotate(180deg);
}

.faq-answer {
    padding: 0 1.5rem;
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease, padding 0.3s ease;
}

.faq-answer.active {
    padding: 1.5rem;
    max-height: 300px;
}

/* CTA Box */
.cta-box {
    background: linear-gradient(135deg, #4a90e6 0%, #357abd 100%);
    color: white;
    padding: 3rem;
    border-radius: 20px;
    text-align: center;
    margin: 3rem 0;
}

.cta-box h3 {
    color: white;
    margin-bottom: 1rem;
}

.cta-box p {
    color: rgba(255,255,255,0.9);
    margin-bottom: 2rem;
}

.cta-button {
    display: inline-block;
    background: white;
    color: #4a90e6;
    padding: 1rem 2rem;
    border-radius: 50px;
    text-decoration: none;
    font-weight: 600;
    font-size: 1.1rem;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.cta-button:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 25px rgba(0,0,0,0.2);
}

/* Footer */
.footer {
    background: #8db4e8;
    color: white;
    padding: 3rem 0 1rem;
    margin-top: 4rem;
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    margin-bottom: 2rem;
}

.footer-section h4 {
    color: white;
    margin-bottom: 1rem;
}

.footer-section ul {
    list-style: none;
}

.footer-section ul li {
    margin-bottom: 0.5rem;
}

.footer-section a {
    color: rgba(255,255,255,0.8);
    text-decoration: none;
    transition: color 0.3s ease;
}

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

.footer-bottom {
    border-top: 1px solid rgba(255,255,255,0.2);
    padding-top: 1rem;
    text-align: center;
    color: rgba(255,255,255,0.7);
}

.footer-bottom a {
    color: rgba(255,255,255,0.8);
    text-decoration: none;
}

/* Responsive Design */
@media (max-width: 968px) {
    .hero-content {
        grid-template-columns: 1fr;
        text-align: center;
    }
    
    .hero h1 {
        font-size: 2.5rem;
    }
    
    .factors-grid,
    .standout-features {
        grid-template-columns: 1fr;
    }
    
    .pros-cons {
        grid-template-columns: 1fr;
        gap: 1rem;
    }
}

@media (max-width: 768px) {
    .container {
        padding: 0 15px;
    }
    
    .hero {
        padding: 2rem 0;
    }
    
    .hero h1 {
        font-size: 2rem;
    }
    
    .tool-card {
        padding: 1.5rem;
    }
    
    .tool-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 0.5rem;
    }
    
    .nav {
        display: none;
    }
    
    .comparison-table {
        font-size: 0.85rem;
    }
    
    .comparison-table th,
    .comparison-table td {
        padding: 0.75rem 0.5rem;
    }
    
    h2 {
        font-size: 1.75rem;
    }
    
    .cta-box {
        padding: 2rem 1.5rem;
    }
}

@media (max-width: 480px) {
    .hero h1 {
        font-size: 1.75rem;
    }
    
    .tool-card {
        padding: 1rem;
    }
    
    .factors-grid,
    .standout-features {
        gap: 1rem;
    }
    
    .factor-card,
    .standout-card {
        padding: 1.5rem;
    }
    
    .faq-question {
        padding: 1rem;
        font-size: 1rem;
    }
    
    .faq-answer.active {
        padding: 1rem;
    }
}

/* Print Styles */
@media print {
    .header,
    .footer,
    .cta-box {
        display: none;
    }
    
    .tool-card {
        break-inside: avoid;
        box-shadow: none;
        border: 1px solid #ddd;
    }
    
    .hero {
        background: none;
    }
    
    a {
        color: #333 !important;
    }
}

/* Accessibility Improvements */
@media (prefers-reduced-motion: reduce) {
    * {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
}

/* Focus States */
.faq-question:focus,
.cta-button:focus,
.nav a:focus {
    outline: 2px solid #4a90e6;
    outline-offset: 2px;
}

/* High Contrast Mode */
@media (prefers-contrast: high) {
    .tool-card {
        border: 2px solid #333;
    }
    
    .featured {
        border-color: #000;
    }
}
