@import url('https://fonts.googleapis.com/css2?family=Encode+Sans:wght@300;400;500;600;700;800&display=swap');

:root {
    --primary-gray: #333333;
    --secondary-gray: #666666;
    --light-gray: #f2f4f6;
    --bg-color: #fafbfc;
    --accent-color: #e74c3c;
    /* Reddish/Orange accent as per content hint or just vibrant */
    --accent-blue: #3498db;
    --accent-green: #2ecc71;
    --text-color: #2c3e50;
    --card-bg: #ffffff;
    --shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
    --radius: 16px;
}

* {
    box-sizing: border-box;
}

body {
    margin: 0;
    padding: 0;
    font-family: 'Encode Sans', sans-serif;
    background-color: var(--bg-color);
    color: var(--text-color);
    line-height: 1.6;
    overflow-x: hidden;
}

/* Typography */
h1,
h2,
h3,
h4,
h5,
h6 {
    font-weight: 700;
    color: var(--primary-gray);
    margin-top: 0;
}

p {
    color: var(--secondary-gray);
    font-size: 1.1rem;
}

/* Container */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Header */
header {
    padding: 80px 0 60px;
    text-align: center;
    position: relative;
    overflow: hidden;
}

header::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(231, 76, 60, 0.05) 0%, rgba(255, 255, 255, 0) 70%);
    animation: rotateBg 20s linear infinite;
    z-index: -1;
}

@keyframes rotateBg {
    0% {
        transform: rotate(0deg);
    }

    100% {
        transform: rotate(360deg);
    }
}

header h1 {
    font-size: 3rem;
    margin-bottom: 1.5rem;
    background: linear-gradient(135deg, var(--primary-gray) 0%, var(--accent-color) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    line-height: 1.2;
}

header p {
    max-width: 800px;
    margin: 0 auto;
    font-size: 1.25rem;
    color: var(--secondary-gray);
}

/* Sections */
section {
    padding: 60px 0;
    position: relative;
}

.section-title {
    font-size: 2.5rem;
    margin-bottom: 2rem;
    position: relative;
    display: inline-block;
    padding-bottom: 10px;
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 60px;
    height: 4px;
    background: var(--accent-color);
    border-radius: 2px;
}

/* Cards Grid */
.grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    margin-top: 40px;
}

.card {
    background: var(--card-bg);
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    padding: 30px;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    position: relative;
    overflow: visible;
    /* Allow badge to pop out if needed, or hidden for containment */
    border: 1px solid rgba(0, 0, 0, 0.05);
}

.card:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.12);
}

.badge {
    position: absolute;
    top: 20px;
    right: 20px;
    background: var(--accent-color);
    color: #fff;
    padding: 6px 14px;
    border-radius: 50px;
    font-size: 0.85rem;
    font-weight: 600;
    box-shadow: 0 4px 10px rgba(231, 76, 60, 0.3);
    z-index: 2;
}

/* Images with Fancy Border Radius (Responsive Stylization) */
.img-wrapper {
    width: 100%;
    height: 250px;
    position: relative;
    margin-bottom: 20px;
    overflow: hidden;
    /* Default Fancy Radius */
    border-radius: 40% 60% 70% 30% / 40% 50% 60% 50%;
    transition: border-radius 0.5s ease;
    filter: drop-shadow(0 10px 15px rgba(0, 0, 0, 0.1));
}

.img-wrapper img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

/* Hover Effect: shape shift and zoom */
.card:hover .img-wrapper {
    border-radius: 20px;
    /* Returns to rounded rectangle on hover for focus */
}

.card:hover .img-wrapper img {
    transform: scale(1.1);
}

/* Alternating shapes for variety */
.card:nth-child(even) .img-wrapper {
    border-radius: 60% 40% 30% 70% / 60% 30% 70% 40%;
}

.card h3 {
    font-size: 1.5rem;
    margin-bottom: 15px;
    color: var(--primary-gray);
}

.card ul {
    padding-left: 20px;
    margin: 0;
    color: var(--secondary-gray);
}

.card ul li {
    margin-bottom: 8px;
    position: relative;
}

/* Icons */
.icon-box {
    width: 50px;
    height: 50px;
    background: rgba(231, 76, 60, 0.1);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 15px;
}

.icon-box svg {
    width: 24px;
    height: 24px;
    stroke: var(--accent-color);
    stroke-width: 2;
}

/* Comparison Chart */
.chart-container {
    background: #fff;
    padding: 40px;
    border-radius: var(--radius);
    box-shadow: var(--shadow);
}

.bar-item {
    margin-bottom: 25px;
}

.bar-label {
    display: flex;
    justify-content: space-between;
    margin-bottom: 8px;
    font-weight: 600;
    color: var(--primary-gray);
}

.bar-track {
    width: 100%;
    height: 24px;
    background-color: #edf2f7;
    border-radius: 12px;
    overflow: hidden;
    position: relative;
}

.bar-fill {
    height: 100%;
    background: linear-gradient(90deg, var(--accent-color), #fab1a0);
    border-radius: 12px;
    width: 0;
    /* Animated by JS */
    transition: width 1.5s cubic-bezier(0.22, 1, 0.36, 1);
    position: relative;
}

.bar-fill::after {
    content: '';
    position: absolute;
    top: 0;
    right: 0;
    bottom: 0;
    width: 100%;
    background: linear-gradient(90deg,
            rgba(255, 255, 255, 0) 0%,
            rgba(255, 255, 255, 0.3) 50%,
            rgba(255, 255, 255, 0) 100%);
    animation: shred 2s infinite linear;
}

@keyframes shred {
    from {
        transform: translateX(-100%);
    }

    to {
        transform: translateX(100%);
    }
}

/* Comparison Table */
.table-container {
    overflow-x: auto;
    border-radius: var(--radius);
    box-shadow: var(--shadow);
}

table {
    width: 100%;
    border-collapse: collapse;
    background: #fff;
    min-width: 600px;
    /* Force scroll on small screens */
}

th,
td {
    padding: 18px 24px;
    text-align: left;
    border-bottom: 1px solid #edf2f7;
}

th {
    background-color: var(--primary-gray);
    color: #fff;
    font-weight: 600;
    text-transform: uppercase;
    font-size: 0.9rem;
    letter-spacing: 1px;
}

tr:last-child td {
    border-bottom: none;
}

tr:nth-child(even) {
    background-color: #f8fafc;
}

tr:hover {
    background-color: #f1f5f9;
}

/* Conclusion */
.conclusion {
    background: linear-gradient(135deg, #e9ecef 0%, #dee2e6 100%);
    padding: 50px;
    border-radius: var(--radius);
    text-align: center;
    position: relative;
    overflow: hidden;
}

.conclusion svg.bg-icon {
    position: absolute;
    top: -20px;
    right: -20px;
    width: 150px;
    height: 150px;
    opacity: 0.1;
    fill: var(--primary-gray);
    transform: rotate(15deg);
}

.conclusion h2 {
    margin-bottom: 20px;
}

/* Footer */
footer {
    text-align: center;
    padding: 40px 0;
    border-top: 1px solid #eee;
    color: #999;
    font-size: 0.9rem;
}

/* Responsive */
@media (max-width: 768px) {
    header h1 {
        font-size: 2rem;
    }

    .section-title {
        font-size: 2rem;
    }

    .img-wrapper {
        height: 200px;
    }
}