/* ==========================================
   CSS VARIABLES (exact HEX values)
   ========================================== */
:root {
    --page-bg: #F3F5F7;
    --card-bg: #FFFFFF;
    
    --text-900: #0F172A;
    --text-800: #1F2937;
    --text-700: #334155;
    --text-600: #475569;
    --text-500: #64748B;
    --text-400: #94A3B8;
    --border-200: #E2E8F0;
    
    --hero-overlay-top: rgba(11, 26, 51, 0.92);
    --hero-overlay-bottom: rgba(17, 27, 46, 0.92);
    
    --teal-strip: #71C7C6;
    --teal-check: #3AAFA9;
    --btn-red: #D81E2A;
    --btn-red-hover: #BF1822;
    
    --star-gold: #F5B301;
    --star-empty: #E2E8F0;
    
    --winner-orange: #F5A623;
    --score-green: #2CC38A;
    
    --shadow-1: 0 10px 30px rgba(15, 23, 42, 0.08);
    --shadow-2: 0 6px 18px rgba(15, 23, 42, 0.10);
    
    --radius-card: 6px;
    --radius-btn: 3px;
}

/* ==========================================
   RESET & BASE
   ========================================== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    font-size: 16px;
    line-height: 1.5;
    color: var(--text-700);
    background-color: var(--page-bg);
}

/* ==========================================
   CONTAINER
   ========================================== */
.container {
    max-width: 1120px;
    margin-left: auto;
    margin-right: auto;
    padding-left: 24px;
    padding-right: 24px;
}

/* ==========================================
   TOP NAVIGATION
   ========================================== */
.top-nav {
    position: relative;
    background: #000000;
    padding: 8px 0;
    z-index: 10;
}

.header-left {
    display: flex;
    align-items: center;
    gap: 20px;
}

.header-logo {
    height: 22px;
    width: auto;
    object-fit: contain;
    transform: translateY(-7%);
}

.nav-content {
    display: flex;
    justify-content: flex-start;
    align-items: center;
    gap: 24px;
    min-height: auto;
}

.nav-link {
    font-family: 'Montserrat', sans-serif;
    font-size: 14px;
    font-weight: 400;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: rgba(255, 255, 255, 0.85);
    text-decoration: none;
    transition: color 0.2s;
    padding: 4px 0;
}

.nav-link:hover {
    color: rgba(255, 255, 255, 0.6);
    text-decoration: underline;
    text-decoration-thickness: 1px;
}

.nav-caret {
    margin-left: 2px;
}

/* ==========================================
   HERO SECTION
   ========================================== */
.hero {
    position: relative;
    width: 100%;
    padding-top: 54px;
    padding-bottom: 100px;
    margin-top: 0;
    min-height: 500px;
    background-color: var(--page-bg);
    overflow: hidden;
}

.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-image: url("/Untitled.webp");
    background-size: 100% auto;
    background-position: center top;
    background-repeat: no-repeat;
    mask-image: linear-gradient(to bottom, black 0%, black 50%, transparent 100%);
    -webkit-mask-image: linear-gradient(to bottom, black 0%, black 50%, transparent 100%);
    z-index: 1;
    pointer-events: none;
}

.hero::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 200px;
    background: linear-gradient(to bottom, transparent 0%, var(--page-bg) 100%);
    pointer-events: none;
    z-index: 1;
}

.hero .container {
    position: relative;
    z-index: 2;
}

.hero-content {
    max-width: 520px;
    text-align: left;
    position: relative;
    z-index: 2;
}

.hero-avatrade-card {
    margin-top: 75px;
    position: relative;
    z-index: 20;
}

.hero-avatrade-card .ranking-card {
    position: relative;
    z-index: 20;
}

.hero-avatrade-card .ranking-card {
    min-height: 320px;
    height: auto;
}

.hero-title {
    font-size: 34.5px;
    line-height: 41px;
    font-weight: 600;
    letter-spacing: 0.05em;
    color: #FFFFFF;
    margin-bottom: 10px;
}

.hero-subheadline {
    font-size: 16.1px;
    line-height: 25px;
    letter-spacing: 0;
    color: rgba(255, 255, 255, 0.85);
    margin-top: 20px;
    margin-bottom: 20px;
    font-weight: 600;
}

.hero-additional-text {
    font-size: 12px;
    line-height: 18px;
    color: rgba(255, 255, 255, 0.5);
    margin-top: 8px;
    margin-bottom: 0;
}

.hero-risk-disclaimer {
    font-size: 10px;
    line-height: 14px;
    color: rgba(255, 255, 255, 0.45);
    margin-top: 10px;
}

/* ==========================================
   RANKING SECTION
   ========================================== */
.ranking-section {
    margin-top: -66px;
    padding-top: 56px;
    padding-bottom: 0;
}

.ranking-card {
    display: grid;
    grid-template-columns: 34px 216px 0.86fr 205px;
    min-height: 290px;
    height: auto;
    background: var(--card-bg);
    border-radius: 0;
    box-shadow: var(--shadow-1);
    margin-bottom: 22px;
    overflow: visible;
}

.ranking-stripe {
    width: 34px;
    background: var(--teal-strip);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 23px;
    font-weight: 700;
    color: #FFFFFF;
}

.ranking-logo {
    padding-left: 8px;
    padding-right: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
}

.ranking-logo::after {
    content: '';
    position: absolute;
    right: 7%;
    top: 20%;
    bottom: 20%;
    width: 1px;
    background: #EEF2F6;
}

.ranking-logo img {
    max-width: 140px;
    max-height: 40px;
    object-fit: contain;
}

.ranking-content {
    padding-top: 36px;
    padding-bottom: 28px;
    padding-left: 20px;
    padding-right: 20px;
    position: relative;
}

.ranking-content::after {
    content: '';
    position: absolute;
    right: -8px;
    top: 20%;
    bottom: 20%;
    width: 1px;
    background: #EEF2F6;
}

.ranking-description {
    font-size: 14px;
    line-height: 23px;
    color: var(--text-700);
    margin-bottom: 28px;
    font-weight: 500;
    word-spacing: 0.2em;
}

.ranking-bullets {
    display: grid;
    grid-template-columns: 1fr 1fr;
    column-gap: 30px;
    row-gap: 12px;
}

.bullet-item {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 13px;
    line-height: 22px;
    color: var(--text-500);
    font-weight: 600;
}

.bullet-icon {
    width: 14px;
    height: 14px;
    color: var(--teal-check);
    flex-shrink: 0;
}

.ranking-cta {
    padding-top: 36px;
    padding-bottom: 28px;
    padding-left: 63px;
    padding-right: 5px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-start;
    text-align: center;
}

.cta-button {
    width: 185px;
    height: 54px;
    background: var(--btn-red);
    border-radius: 0;
    color: #FFFFFF;
    font-size: 15px;
    font-weight: 800;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    text-decoration: none;
    transition: background 0.2s;
    margin: 0 auto 0 -9px;
}

.cta-button:hover {
    background: var(--btn-red-hover);
}

.rating-text {
    margin-top: 16px;
    font-size: 14px;
    line-height: 21px;
    color: var(--text-500);
    text-align: center;
    width: 185px;
    margin-left: auto;
    margin-right: auto;
    transform: translateX(-9px);
}

.risk-notice {
    font-size: 10px;
    line-height: 14px;
    color: var(--text-400);
    margin-top: 6px;
    margin-bottom: 0;
    text-align: center;
    width: 185px;
    margin-left: auto;
    margin-right: auto;
    transform: translateX(-9px);
}

.risk-notice::before {
    content: '🔒 ';
    color: var(--star-gold);
    display: inline;
}

.stars {
    margin-top: 0.4px;
    display: flex;
    gap: 2px;
    justify-content: center;
    width: 185px;
    margin-left: auto;
    margin-right: auto;
    transform: translateX(-9px);
}

.star {
    font-size: 24px;
    color: var(--star-empty);
    position: relative;
    display: inline-block;
}

.star.filled {
    color: var(--star-gold);
}

.star.partial {
    color: var(--star-empty);
}

.star.partial::before {
    content: '★';
    position: absolute;
    left: 0;
    top: 0;
    color: var(--star-gold);
    overflow: hidden;
    white-space: nowrap;
}

.star.partial-10::before { clip-path: inset(0 90% 0 0); }
.star.partial-30::before { clip-path: inset(0 70% 0 0); }
.star.partial-40::before { clip-path: inset(0 60% 0 0); }
.star.partial-50::before { clip-path: inset(0 50% 0 0); }
.star.partial-80::before { clip-path: inset(0 20% 0 0); }
.star.partial-90::before { clip-path: inset(0 10% 0 0); }

/* ==========================================
   PREMIUM SECTION
   ========================================== */
.premium-section {
    margin-top: 80px;
    padding-bottom: 60px;
}

.premium-title {
    font-size: 32px;
    font-weight: 800;
    color: var(--text-900);
    margin-bottom: 40px;
    text-align: center;
}

.premium-grid {
    display: grid;
    grid-template-columns: 1fr 1fr 1fr;
    gap: 22px;
}

.premium-card {
    position: relative;
    background: var(--card-bg);
    border-radius: 0;
    box-shadow: var(--shadow-1);
    min-height: 420px;
    padding: 20px 22px 36px 22px;
}

.premium-winner {
    border: 3px solid var(--winner-orange);
    box-shadow: var(--shadow-2);
    transform: translateY(-6px);
    z-index: 1;
    min-height: 488px;
    padding-bottom: 59px;
}

.premium-badge {
    position: absolute;
    top: 12px;
    left: 12px;
    background: var(--winner-orange);
    color: #FFFFFF;
    font-size: 11px;
    font-weight: 800;
    padding: 12px 4px;
    border-radius: 2px;
}

.premium-logo {
    margin-top: 26px;
    text-align: center;
    height: 42px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.premium-logo img {
    max-height: 42px;
    object-fit: contain;
}

.premium-score {
    margin-top: 14px;
    font-size: 22px;
    font-weight: 800;
    color: var(--text-900);
    text-align: center;
}

.premium-score-bar {
    margin-top: 10px;
    margin-left: auto;
    margin-right: auto;
    width: 55%;
    height: 12px;
    border-radius: 999px;
    background: #E2E8F0;
    overflow: hidden;
}

.score-bar-fill {
    height: 12px;
    border-radius: 999px;
    background: var(--score-green);
}

.score-bar-orange {
    background: var(--winner-orange);
}

.premium-body-title {
    margin-top: 48px;
    font-size: 13px;
    font-weight: 800;
    color: var(--text-700);
    position: relative;
    padding-top: 30px;
}

.premium-body-title::before {
    content: '';
    position: absolute;
    left: -22px;
    right: -22px;
    top: 0;
    height: 1px;
    background: #EEF2F6;
}

.premium-body-title::after {
    content: '';
    position: absolute;
    left: -22px;
    right: -22px;
    top: -18px;
    bottom: 0;
    background: rgba(255, 255, 255, 0.6);
    z-index: -1;
}

.premium-body-text {
    font-size: 12px;
    line-height: 2;
    color: var(--text-600);
    margin-top: 10px;
    position: relative;
    font-style: italic;
}

.premium-body-text::before {
    content: '';
    position: absolute;
    left: -22px;
    right: -22px;
    top: 0;
    bottom: 0;
    background: rgba(255, 255, 255, 0.6);
    z-index: -1;
}

.premium-bullets {
    margin-top: 14px;
    display: flex;
    flex-direction: column;
    gap: 8px;
    position: relative;
}

.premium-bullets::before {
    content: '';
    position: absolute;
    left: -22px;
    right: -22px;
    top: 0;
    bottom: 0;
    background: rgba(255, 255, 255, 0.6);
    z-index: -1;
}

.premium-bullet {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 12px;
    color: var(--text-500);
}

.premium-cta {
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    bottom: -17px;
    width: 128px;
    height: 34px;
    background: var(--btn-red);
    border-radius: 0;
    color: #FFFFFF;
    font-size: 12px;
    font-weight: 800;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    transition: background 0.2s;
}

.premium-cta:hover {
    background: var(--btn-red-hover);
}

/* ==========================================
   FAQ SECTION
   ========================================== */
.faq-section {
    padding-top: 56px;
    padding-bottom: 60px;
}

.faq-titlebox {
    width: 100%;
    background: var(--card-bg);
    border-radius: 0;
    box-shadow: var(--shadow-1);
    padding: 14px 18px;
    text-align: center;
}

.faq-titlebox h2 {
    font-size: 22.4px;
    font-weight: 800;
    color: var(--text-900);
}

.faq-grid {
    margin-top: 26px;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 24px;
    align-items: start;
}

.faq-card {
    background: var(--card-bg);
    border-radius: 0;
    box-shadow: var(--shadow-1);
    padding: 22px;
    min-height: 280px;
}


.faq-heading {
    font-size: 25.2px;
    line-height: 33.6px;
    font-weight: 800;
    color: var(--text-900);
    margin-bottom: 16px;
    margin-top: 24px;
}

.faq-heading:first-child {
    margin-top: 0;
}

.faq-subheading {
    font-size: 22.4px;
    line-height: 30.8px;
    font-weight: 700;
    color: var(--text-700);
    margin-top: 24px;
    margin-bottom: 16px;
}

.faq-text {
    font-size: 16.8px;
    line-height: 1.5;
    color: var(--text-500);
    margin-bottom: 16px;
}

/* ==========================================
   FOOTER
   ========================================== */
.footer {
    background: #0A0A0A;
    color: rgba(255, 255, 255, 0.75);
    padding-top: 46px;
    padding-bottom: 28px;
    margin-top: 60px;
}

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

.footer-brand {
    font-size: 12px;
    font-weight: 800;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: #FFFFFF;
    margin-bottom: 10px;
}

.footer-description {
    font-size: 11px;
    line-height: 16px;
    color: rgba(255, 255, 255, 0.55);
}

.footer-heading {
    color: #FFFFFF;
    font-size: 12px;
    font-weight: 800;
    margin-bottom: 12px;
}

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

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

.footer-links a {
    font-size: 11px;
    color: rgba(255, 255, 255, 0.6);
    text-decoration: none;
    transition: color 0.2s;
}

.footer-links a:hover {
    color: rgba(255, 255, 255, 0.85);
}

.footer-contact {
    font-size: 11px;
    color: rgba(255, 255, 255, 0.6);
    margin-bottom: 8px;
}

.footer-social {
    display: flex;
    gap: 10px;
    margin-top: 12px;
}

.social-icon {
    width: 18px;
    height: 18px;
    color: rgba(255, 255, 255, 0.65);
}

.footer-divider {
    margin-top: 18px;
    height: 1px;
    background: rgba(255, 255, 255, 0.08);
}

.footer-disclaimer {
    margin-top: 18px;
}

.footer-disclaimer p {
    font-size: 10px;
    line-height: 14px;
    color: rgba(255, 255, 255, 0.45);
    margin-bottom: 12px;
}

.footer-disclaimer strong {
    color: rgba(255, 255, 255, 0.75);
}

.footer-copyright {
    margin-top: 16px;
    text-align: center;
}

.footer-copyright p {
    font-size: 10px;
    color: rgba(255, 255, 255, 0.35);
}

/* ==========================================
   RESPONSIVE (optional, Desktop-first)
   ========================================== */
@media (max-width: 1024px) {
    .ranking-card {
        grid-template-columns: 1fr;
        height: auto;
        min-height: auto;
    }
    
    .ranking-stripe {
        width: 100%;
        height: 40px;
    }
    
    .premium-grid {
        grid-template-columns: 1fr;
    }
    
    .faq-grid {
        grid-template-columns: 1fr;
    }
    
    .footer-grid {
        grid-template-columns: 1fr;
    }
}

/* ==========================================
   POPUP STYLES
   ========================================== */
.popup-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.75);
    z-index: 1000;
    align-items: center;
    justify-content: center;
    padding: 20px;
    overflow-y: auto;
}

.popup-content {
    background: var(--card-bg);
    border-radius: 8px;
    max-width: 700px;
    width: 100%;
    max-height: 90vh;
    overflow-y: auto;
    padding: 40px;
    position: relative;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
}

.popup-close {
    position: absolute;
    top: 15px;
    right: 20px;
    background: none;
    border: none;
    font-size: 32px;
    color: var(--text-500);
    cursor: pointer;
    line-height: 1;
    padding: 0;
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: color 0.2s;
}

.popup-close:hover {
    color: var(--text-900);
}

.popup-content h2 {
    font-size: 28px;
    font-weight: 800;
    color: var(--text-900);
    margin-bottom: 20px;
    margin-top: 0;
}

.popup-content h3 {
    font-size: 20px;
    font-weight: 700;
    color: var(--text-800);
    margin-top: 24px;
    margin-bottom: 12px;
}

.popup-content p {
    font-size: 16px;
    line-height: 1.6;
    color: var(--text-600);
    margin-bottom: 16px;
}

.popup-content ul {
    margin: 16px 0;
    padding-left: 24px;
}

.popup-content li {
    font-size: 16px;
    line-height: 1.6;
    color: var(--text-600);
    margin-bottom: 12px;
}

.popup-content strong {
    color: var(--text-900);
    font-weight: 700;
}

/* ==========================================
   EXIT INTENT MODAL
   ========================================== */

.exit-intent-modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 10000;
    align-items: center;
    justify-content: center;
    padding: 20px;
    font-family: 'Inter', sans-serif;
}

.exit-intent-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(15, 15, 16, 0.55);
    backdrop-filter: blur(2px);
}

.exit-intent-content {
    position: relative;
    background: linear-gradient(135deg, #0a0a0a 0%, #1a1a1a 50%, #0f0f0f 100%);
    border-radius: 16px;
    width: 100%;
    max-width: 576px;
    max-height: 90vh;
    overflow-y: auto;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
    padding: 32px 24px;
    z-index: 10001;
}

.exit-intent-close {
    position: absolute;
    top: 16px;
    right: 16px;
    background: none;
    border: none;
    color: #FFFFFF;
    font-size: 14px;
    cursor: pointer;
    padding: 8px;
    line-height: 1;
    transition: color 0.2s;
    z-index: 10002;
}

.exit-intent-close:hover {
    color: rgba(255, 255, 255, 0.7);
}

.exit-intent-header {
    text-align: center;
    margin-bottom: 28px;
    margin-top: 20px;
}

.exit-intent-title {
    font-size: 24px;
    font-weight: 600;
    color: #FFFFFF;
    margin: 0 0 8px 0;
    line-height: 1.3;
}

.exit-intent-subtitle {
    font-size: 14px;
    color: rgba(255, 255, 255, 0.8);
    margin: 0;
    line-height: 1.5;
}

.exit-intent-cards {
    display: grid;
    grid-template-columns: 1fr;
    gap: 16px;
    margin-bottom: 24px;
}

.exit-decision-card {
    background: linear-gradient(135deg, #0f0f0f 0%, #1a1a1a 50%, #0f0f0f 100%);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 12px;
    padding: 20px 20px 20px 20px;
    padding-top: 10px;
    transition: all 0.2s;
    display: flex;
    flex-direction: column;
}

.exit-decision-card:hover {
    border-color: rgba(255, 255, 255, 0.4);
    box-shadow: 0 4px 12px rgba(255, 255, 255, 0.1);
}

.exit-card-logo-top {
    width: 160px;
    height: 160px;
    object-fit: contain;
    margin: 0 auto 8px;
    display: block;
    filter: brightness(0) invert(1);
}

.exit-card-header {
    margin-bottom: 16px;
    text-align: center;
}

.exit-card-title {
    font-size: 20px;
    font-weight: 600;
    color: #FFFFFF;
    margin: 0;
    line-height: 1.3;
}

.exit-card-bullets {
    list-style: none;
    padding: 0;
    margin: 0 0 auto 0;
    flex: 1;
    min-height: 0;
}

.exit-card-bullets li {
    font-size: 14px;
    color: rgba(255, 255, 255, 0.5);
    padding: 8px 0 8px 24px;
    position: relative;
    line-height: 1.5;
}

.exit-card-bullets li::before {
    content: '✓';
    position: absolute;
    left: 0;
    color: #FFFFFF;
    font-weight: 600;
    font-size: 16px;
}

.exit-card-cta {
    display: block;
    width: 100%;
    padding: 12px 20px;
    background: var(--btn-red);
    color: #FFFFFF;
    text-align: center;
    text-decoration: none;
    border-radius: 8px;
    font-size: 15px;
    font-weight: 600;
    transition: background 0.2s;
    margin-top: auto;
}

.exit-card-cta:hover {
    background: var(--btn-red-hover);
}

.exit-intent-trust {
    text-align: center;
    padding-top: 20px;
    border-top: 1px solid rgba(255, 255, 255, 0.2);
}

.exit-intent-trust p {
    font-size: 12px;
    color: rgba(255, 255, 255, 0.7);
    margin: 0;
    line-height: 1.5;
}

/* Mobile: Bottom Sheet */
@media (max-width: 767px) {
    .exit-intent-modal {
        align-items: flex-end;
        padding: 0;
    }
    
    .exit-intent-content {
        max-width: 100%;
        max-height: 50vh;
        border-radius: 20px 20px 0 0;
        padding: 24px 20px;
    }
    
    .exit-intent-title {
        font-size: 20px;
    }
    
    .exit-intent-cards {
        grid-template-columns: 1fr;
    }
    
    .exit-decision-card {
        padding: 16px;
    }
}

/* Desktop: 2 columns if space allows */
@media (min-width: 768px) and (max-width: 1023px) {
    .exit-intent-cards {
        grid-template-columns: 1fr;
    }
}

@media (min-width: 1024px) {
    .exit-intent-cards {
        grid-template-columns: 1fr 1fr;
    }
}
