/* ============================
   PUBLIC WEBSITE CSS
   Light / Blue marketing theme
============================ */

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

body {
    font-family: 'Poppins', 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, sans-serif;
    background-color: #F5F8FF;
    color: #333333;
    line-height: 1.6;
    overflow-x: hidden;
}

/* ============================
   UNIVERSAL HEADER
   (public + dashboard)
============================ */

header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;

    height: 75px;
    background: #ffffff;

    display: flex;
    justify-content: space-between;
    align-items: center;

    padding: 0 60px;
    border-bottom: 1px solid #eaecef;
    box-shadow: 0 1px 4px rgba(0,0,0,0.04);
}

header .logo {
    flex: 0 0 auto;
}

header .logo img {
    height: 42px;
    width: auto;
    display: block;
}

header nav {
    flex: 1 0 auto;
    display: flex;
    justify-content: flex-end;
}

header nav ul {
    list-style: none;
    display: flex;
    gap: 35px;
    align-items: center;
    margin: 0;
    padding: 0;
}

header nav ul li {
    list-style: none;
}

header nav a {
    text-decoration: none;
    color: #333;
    font-weight: 500;
    font-size: 1rem;
    padding: 10px 18px;
    border-radius: 10px;
    transition: all 0.25s ease;
}

header nav a:hover {
    background: #f5f8ff;
    color: #005EB8;
}

header nav a.active {
    border: 2px solid #000;
    padding: 8px 16px;
    color: #000;
    border-radius: 10px;
}

/* ============================
   HERO / BANNER SECTION
============================ */

.banner {
    margin-top: 95px; /* clear fixed header */
    padding: 40px 20px;
    background: #FFFFFF;
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    overflow: hidden;
}

.banner::before {
    content: '';
    position: absolute;
    inset: 0;
    background: radial-gradient(circle, rgba(0,94,184,0.15), transparent);
    z-index: 0;
}

.banner-image {
    width: 100%;
    max-width: 1100px;
    margin: 0 auto;
    z-index: 1;
}

.banner-image img {
    width: 100%;
    height: auto;
    border-radius: 10px;
    box-shadow: 0 10px 20px rgba(0,0,0,0.1);
    transition: transform 0.5s ease;
}

.banner-image img:hover {
    transform: scale(1.02);
}

/* Crypto logos row */

.crypto-logos {
    display: flex;
    justify-content: center;
    gap: 25px;
    padding: 15px 0;
    background: transparent;
    z-index: 1;
}

.crypto-logos img {
    width: 70px;
    height: 70px;
    filter: drop-shadow(0 0 8px rgba(0,94,184,0.3));
    transition: transform 0.3s ease;
}

.crypto-logos img:hover {
    transform: scale(1.1);
}

/* Trust badges */

.trust-badges {
    display: flex;
    justify-content: center;
    gap: 30px;
    padding: 20px;
    background: #F5F8FF;
    border: 1px solid #BBDEFB;
    border-radius: 10px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.08);
    margin: 20px auto 40px;
    max-width: 1200px;
}

.trust-badge {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
}

.trust-badge img {
    height: 30px;
    opacity: 0.8;
    transition: opacity 0.3s ease;
    border: 1px solid #005EB8;
    border-radius: 5px;
    padding: 2px;
}

.trust-badge img:hover {
    opacity: 1;
}

.trust-badge p {
    font-size: 0.85rem;
    color: #666666;
    text-align: center;
}

/* ============================
   MAIN CONTENT
============================ */

.content {
    background: #F5F8FF;
    padding: 40px 50px;
    display: flex;
    flex-wrap: wrap;
    gap: 30px;
    max-width: 1200px;
    margin: 0 auto;
}

.content .left,
.content .center {
    flex: 1;
    min-width: 300px;
}

.content h2 {
    font-size: 2.2rem;
    font-weight: 700;
    margin-bottom: 15px;
    color: #003087;
}

.content p {
    font-size: 0.95rem;
    line-height: 1.6;
    margin-bottom: 20px;
    color: #666666;
}

.content ul {
    list-style: none;
}

.content ul li {
    font-size: 0.95rem;
    margin-bottom: 10px;
    display: flex;
    align-items: center;
    color: #333333;
}

.content ul li::before {
    content: '✔';
    color: #005EB8;
    margin-right: 10px;
}

.cta-button {
    display: inline-block;
    padding: 12px 35px;
    background: #005EB8;
    color: #FFFFFF;
    text-decoration: none;
    border-radius: 5px;
    font-weight: 600;
    font-size: 1rem;
    transition: all 0.3s ease;
    box-shadow: 0 2px 8px rgba(0,94,184,0.2);
}

.cta-button:hover {
    background: #004494;
    transform: translateY(-3px);
    box-shadow: 0 4px 12px rgba(0,94,184,0.3);
}

/* ============================
   STATS
============================ */

.stats {
    padding: 30px 20px;
    background: #FFFFFF;
    text-align: center;
    position: relative;
}

.stats::before {
    content: '';
    position: absolute;
    inset: 0;
    background: url('https://www.transparenttextures.com/patterns/dark-mosaic.png');
    opacity: 0.02;
    z-index: 0;
}

.stats-container {
    display: flex;
    justify-content: center;
    gap: 40px;
    max-width: 1200px;
    margin: 0 auto;
    position: relative;
    z-index: 1;
}

.stat {
    flex: 1;
    min-width: 200px;
    background: #F5F8FF;
    padding: 20px;
    border-radius: 10px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.08);
    transition: transform 0.3s ease;
}

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

.stat h3 {
    font-size: 2.2rem;
    font-weight: 700;
    color: #005EB8;
    margin-bottom: 10px;
}

.stat p {
    font-size: 0.95rem;
    color: #666666;
}

/* ============================
   TESTIMONIALS
============================ */

.testimonials {
    padding: 40px 50px;
    background: #F5F8FF;
    text-align: center;
}

.testimonials h2 {
    font-size: 2.2rem;
    font-weight: 700;
    color: #003087;
    margin-bottom: 30px;
}

.testimonial-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 20px;
}

.testimonial {
    padding: 25px;
    border: 1px solid #BBDEFB;
    border-radius: 10px;
    background-color: #2A4365;
    color: #FFFFFF;
    transition: transform 0.3s ease;
    position: relative;
}

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

.testimonial::before {
    content: '“';
    position: absolute;
    top: 10px;
    left: 15px;
    font-size: 2.5rem;
    color: #90CAF9;
    opacity: 0.5;
}

.testimonial p {
    font-size: 0.9rem;
    line-height: 1.5;
    margin-bottom: 15px;
}

.testimonial .author {
    font-weight: 600;
    color: #E0F2FF;
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 0.9rem;
}

.testimonial .author::before {
    content: '';
    width: 25px;
    height: 25px;
    background: #90CAF9;
    border-radius: 50%;
    display: inline-block;
}

/* ============================
   VIDEO CARD (homepage)
============================ */

/* ============================
   VIDEO CARD – FIXED + SAFE
============================ */

.video-card {
    margin: 40px auto;
    max-width: 1200px;
    padding: 20px;
    text-align: center;
    background: #FFFFFF;
    border: 1px solid #BBDEFB;
    border-radius: 10px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.08);
}

.video-container {
    position: relative;
    width: 100%;
    max-width: 600px;
    margin: 0 auto;
}

.video-thumbnail {
    width: 100%;
    border-radius: 10px;
    cursor: pointer;
    display: block;
}

.video-overlay {
    position: absolute;
    inset: 0;
    background: rgba(0,0,0,0.5);
    display: flex;
    justify-content: center;
    align-items: center;
    border-radius: 10px;
    cursor: pointer;
}

.play-button {
    color: #FFFFFF;
    font-size: 3rem;
    font-weight: bold;
    text-shadow: 0 0 10px rgba(0,0,0,0.5);
}

/* MODAL FIXES */
.video-modal {
    display: none; /* only show when JS activates */
    position: fixed;
    inset: 0;
    justify-content: center;
    align-items: center;
    background: rgba(0,0,0,0.8);
    z-index: 999999;
}

.video-content {
    position: relative;
    background: #000;
    padding: 10px;
    border-radius: 12px;
    width: 90%;
    max-width: 600px;
}

.video-content video {
    width: 100%;
    height: auto;
    max-height: 80vh;
    display: block;
}

.close-modal {
    position: absolute;
    top: 10px;
    right: 15px;
    font-size: 2rem;
    color: #FFF;
    cursor: pointer;
}


/* ============================
   FAQ / ABOUT / LEGAL PAGES
============================ */

.faq-section,
.about,
.container.legal-container {
    max-width: 1200px;
    margin: 90px auto 40px;
    background: #FFFFFF;
    border-radius: 10px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.08);
    padding: 30px 20px;
}

.faq-section h1,
.about h1 {
    font-size: 2.2rem;
    font-weight: 700;
    color: #003087;
    margin-bottom: 20px;
    text-align: center;
}

.faq-item {
    margin-bottom: 20px;
    background: #F5F8FF;
    padding: 20px;
    border-radius: 8px;
    box-shadow: 0 2px 5px rgba(0,0,0,0.08);
}

.faq-item h2 {
    font-size: 1.3rem;
    font-weight: 600;
    color: #333333;
    margin-bottom: 10px;
}

.faq-item p {
    font-size: 0.95rem;
    line-height: 1.6;
    color: #666666;
}

/* Terms/Privacy specific container */

/* ============================
   LEGAL PAGES (Terms / Privacy)
============================ */

body.legal-page .container {
    max-width: 1100px;
    margin: 110px auto 60px;
    padding: 40px 30px;
    background: #FFFFFF;
    border-radius: 12px;
    border: 1px solid #D6E6F6;
    box-shadow: 0 2px 10px rgba(0,0,0,0.06);
}

body.legal-page h1 {
    font-size: 2.1rem;
    margin-bottom: 20px;
    text-align: center;
    color: #003087;
}

body.legal-page h2 {
    font-size: 1.4rem;
    margin-top: 25px;
    margin-bottom: 15px;
    color: #005EB8;
}

body.legal-page p {
    font-size: 1rem;
    line-height: 1.7;
    color: #555;
    margin-bottom: 18px;
}


/* Legal pages (Terms, Privacy) – card layout */
.legal-container,
.container.legal,
.container.legal-page {
    max-width: 1100px;
    margin: 100px auto;
    padding: 30px 25px;
    background: #FFFFFF;
    border-radius: 10px;
    border: 1px solid #D6E6F6;
    box-shadow: 0 2px 8px rgba(0,0,0,0.08);
}

.legal-container h1,
.container.legal h1,
.container.legal-page h1 {
    font-size: 2rem;
    text-align: center;
    color: #003087;
    margin-bottom: 20px;
}

.legal-container p,
.container.legal p,
.container.legal-page p {
    font-size: 1rem;
    color: #555;
    margin-bottom: 15px;
    line-height: 1.7;
}


/* ============================
   FOOTER
============================ */

footer {
    padding: 30px;
    text-align: center;
    background: #FFFFFF;
    color: #333333;
    font-size: 0.85rem;
    border-top: 1px solid #E3F2FD;
    margin-top: 20px;
}

footer .social-links {
    margin-top: 10px;
}

footer .social-links a {
    color: #666666;
    margin: 0 10px;
    text-decoration: none;
    transition: color 0.3s ease;
    font-size: 0.85rem;
}

footer .social-links a:hover {
    color: #005EB8;
}

/* ============================
   RESPONSIVE
============================ */

@media (max-width: 768px) {
    header {
        padding: 0 20px;
        height: auto;
        flex-direction: column;
        align-items: flex-start;
        gap: 10px;
    }

    header nav ul {
        gap: 15px;
        flex-wrap: wrap;
        justify-content: center;
    }

    .banner {
        padding: 20px 10px;
    }

    .content {
        padding: 20px;
        flex-direction: column;
    }

    .stats-container {
        flex-direction: column;
        gap: 20px;
    }

    .testimonials {
        padding: 20px;
    }

    .trust-badges {
        flex-direction: column;
        max-width: 90%;
        gap: 15px;
    }

    .faq-section,
    .about,
    .container.legal-container {
        margin-top: 80px;
        padding: 20px;
    }
}
