:root {
    --primary: #1d676a;
    --accent: #9bc567;
    --bg-light: #f6faf8;
    --card-gradient-start: #1d676a;
    --card-gradient-end: #9bc567;
}

* { box-sizing: border-box; }
body {
    font-family: 'Inter', sans-serif;
    background: var(--bg-light);
    color: #222;
    padding-top: 76px;
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
}

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

/* ================= INTRO ================= */
#intro {
    position: fixed;
    inset: 0;
    background: #fff;
    z-index: 9999;
    display: flex;
    align-items: center;
    justify-content: center;
}
/* Default for all devices */
#intro img {
    width: 220px;
}

/* Desktop only (screens 1024px and wider) */
@media (min-width: 1024px) {
    #intro img {
        width: 400px; /* increase size for desktop */
    }
}


/* ================= NAVBAR ================= */
.navbar {
    background: #fff;
    transition: all 0.4s ease;
    animation: navDrop 0.8s ease forwards;
}
@keyframes navDrop {
    from { transform: translateY(-100%); opacity: 0; }
    to { transform: translateY(0); opacity: 1; }
}
.navbar.scrolled {
    background: rgba(255,255,255,0.85);
    backdrop-filter: blur(12px);
    box-shadow: 0 10px 30px rgba(0,0,0,0.08);
    padding-top: 6px;
    padding-bottom: 6px;
}
.navbar-brand { display: flex; align-items: center; }
.navbar-logo { height: 56px; animation: logoFloat 3s ease-in-out infinite; }
@keyframes logoFloat { 0%,100% { transform: translateY(0); } 50% { transform: translateY(-3px); } }
.navbar .nav-link {
    font-weight: 500; color: #333; position: relative; padding-bottom: 6px;
}
.navbar .nav-link::after {
    content: ""; position: absolute; left: 0; bottom: 0; width: 0%; height: 2px; background: var(--primary);
    transition: width 0.3s ease;
}
.navbar .nav-link:hover::after { width: 100%; }

/* ================= BUTTONS ================= */
.btn-primary {
    background: var(--primary);
    border-color: var(--primary);
    position: relative;
    overflow: hidden;
    color: #fff;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}
.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(0,0,0,0.2);
}
.btn-outline-light {
    background: transparent;
    border: 2px solid #fff;
    color: #fff;
    transition: all 0.3s ease;
}
.btn-outline-light:hover {
    background: rgba(255,255,255,0.15);
    transform: translateY(-2px);
}

/* ================= HERO ================= */
.hero {
    position: relative;
    padding: 100px 20px;
    background: linear-gradient(135deg, var(--primary), var(--accent));
    color: #fff;
    text-align: center;
    overflow: hidden;
}
.hero-title { font-size: 2.5rem; font-weight: 700; }
.hero-title span { color: #eaffd6; }
.hero-subtitle { font-size: 1.1rem; margin: 15px 0 25px; line-height: 1.5; color: rgba(255,255,255,0.9); }
.hero-buttons a { margin: 0 8px; padding: 12px 28px; border-radius: 8px; font-weight: 600; text-decoration: none; }
.hero-features { font-size: 0.95rem; margin-top: 20px; padding: 0; list-style: none; }
.hero-features li { display: inline-block; margin: 0 10px; padding: 6px 14px; border-radius: 12px; background: rgba(255,255,255,0.15); }

/* Floating circles animation */
.hero-animations span.circle {
    position: absolute;
    border-radius: 50%;
    background: rgba(255,255,255,0.1);
    animation: floatCircle 6s ease-in-out infinite;
}
.hero-animations .c1 { width: 120px; height:120px; top:10%; left:5%; }
.hero-animations .c2 { width: 80px; height:80px; top:50%; left:85%; }
.hero-animations .c3 { width: 150px; height:150px; top:70%; left:30%; }
@keyframes floatCircle { 0%,100% { transform: translateY(0); } 50% { transform: translateY(-20px); } }

@media (max-width:768px) {
    .hero-title { font-size: 1.8rem; }
    .hero-subtitle { font-size: 1rem; }
    .hero-features li { display: block; margin: 6px auto; }
}

/* ================= CARDS ================= */
.card-hover {
    border-radius: 20px;
    transition: transform 0.4s ease, box-shadow 0.4s ease;
}
.card-hover:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 60px rgba(0,0,0,0.15);
}
.bg-gradient-to-r {
    background: linear-gradient(135deg, var(--card-gradient-start), var(--card-gradient-end));
}

/* ================= STATS ================= */
.stat-card h2 { font-size: 2.2rem; font-weight: 700; }
.stat-card p { font-weight: 600; }

/* ================= TABLE ================= */
table {
    border-collapse: separate;
    border-spacing: 0 10px;
}
table tbody tr {
    transition: transform 0.3s, box-shadow 0.3s;
}
table tbody tr:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 20px rgba(0,0,0,0.3);
}
table thead th:first-child { border-top-left-radius: 10px; }
table thead th:last-child { border-top-right-radius: 10px; }

@media (max-width:768px) {
    table thead { display: none; }
    table tbody tr {
        display: block; margin-bottom: 15px; border: 1px solid #444; border-radius: 10px; padding:10px;
    }
    table tbody td {
        display: flex; justify-content: space-between; padding:5px 10px;
    }
    table tbody td::before { content: attr(data-label); font-weight: bold; }
}

/* ================= FAQ ================= */
.accordion-button { font-weight: 600; color: var(--primary); }
.accordion-body { font-size: 0.95rem; color: #555; }

/* ================= FOOTER ================= */
footer { background: var(--primary); color: #e9f7f1; }
footer a { text-decoration: none; }
footer a:hover { text-decoration: underline; }

/* ================= MODAL ================= */
.modal-header { border-bottom:none; }
.modal-footer { border-top:none; justify-content: flex-start; }
#quiz-step p { font-weight:600; }
.quiz-option label { cursor:pointer; }

.stat-number {
    display: flex;
    align-items: baseline;
    justify-content: center;
    gap: 4px;
}

.stat-number h2 {
    font-size: 2.4rem;
    font-weight: 700;
    color: #1d676a;
    margin: 0;
}

.stat-number .plus {
    font-size: 2rem;
    font-weight: 700;
    color: #1d676a;
}

.compare-card {
    background: linear-gradient(135deg, #1d676a, #9bc567);
    border-radius: 18px;
    padding: 28px;
    text-align: center;
    color: #fff;
    box-shadow: 0 12px 30px rgba(0,0,0,.15);
    transition: transform .3s ease;
}

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

.compare-card h5 {
    font-weight: 700;
    margin-bottom: 20px;
}

.compare-card ul {
    list-style: none;
    padding: 0;
    margin-bottom: 25px;
}

.compare-card ul li {
    display: flex;
    justify-content: space-between;
    margin-bottom: 10px;
    font-size: 15px;
}

.compare-card ul li span {
    opacity: .85;
}

.compare-card ul li strong {
    font-weight: 600;
}

/* Add hover effect on table rows */
table tbody tr {
    transition: transform 0.2s, box-shadow 0.2s;
}
table tbody tr:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 20px rgba(0,0,0,0.3);
}

/* Rounded corners for table */
table thead th:first-child {
    border-top-left-radius: 10px;
}
table thead th:last-child {
    border-top-right-radius: 10px;
}

/* Responsive improvements */
@media (max-width: 768px) {
    table thead {
        display: none;
    }
    table tbody tr {
        display: block;
        margin-bottom: 15px;
        border: 1px solid #444;
        border-radius: 10px;
        padding: 10px;
    }
    table tbody td {
        display: flex;
        justify-content: space-between;
        padding: 5px 10px;
    }
    table tbody td::before {
        content: attr(data-label);
        font-weight: bold;
    }
}

/* Broker column fix */
.broker-wrap {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
}

.broker-wrap img {
    height: 36px;
    flex-shrink: 0;
}

.broker-wrap span {
    font-weight: 600;
    white-space: normal;
}

/* Mobile perfection */
@media (max-width: 768px) {

    td.broker-cell {
        flex-direction: column;
        align-items: center !important;
        text-align: center;
    }

    td.broker-cell::before {
        display: none;
    }

    .broker-wrap {
        justify-content: center;
    }
}

.broker-wrap img {
    width: 30px;
    height: 40px;
    object-fit: contain;
}

@media (max-width: 768px) {
    .broker-wrap img {
        width: 32px;
        height: 32px;
    }
}

.modal-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0.55);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 10000;
}

.modal-box {
    background: #fff;
    width: 92%;
    max-width: 420px;
    border-radius: 16px;
    padding: 24px;
    position: relative;
}

.close-btn {
    position: absolute;
    top: 12px;
    right: 14px;
    font-size: 24px;
    cursor: pointer;
}
