/* === Base & Variables === */
:root {
    --orange: #e8a317;
    --orange-dark: #d4910f;
    --orange-light: #fdf3e0;
    --dark: #1a1a2e;
    --gray-bg: #f8f9fa;
}

body {
    font-family: 'Poppins', sans-serif;
    color: #333;
    overflow-x: hidden;
}

.text-primary-orange { color: var(--orange) !important; }
.bg-gray { background-color: var(--gray-bg); }
.text-white-75 { color: rgba(255,255,255,0.75) !important; }

/* === Social Links — Navbar === */
.social-link-nav {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: linear-gradient(135deg, #f09433, #e6683c, #dc2743, #cc2366, #bc1888);
    color: #fff;
    font-size: 14px;
    text-decoration: none;
    transition: transform 0.2s, box-shadow 0.2s;
}
.social-link-nav:nth-child(2) {
    background: #1877F2;
}
.social-link-nav:hover {
    transform: scale(1.15);
    box-shadow: 0 4px 12px rgba(0,0,0,0.2);
    color: #fff;
}
.verified-badge-nav {
    display: inline-flex;
    align-items: center;
    color: #1DA1F2;
    font-size: 16px;
    margin-left: 2px;
}
.verified-badge-nav i {
    filter: drop-shadow(0 1px 2px rgba(29,161,242,0.3));
}

/* === Social Links — Footer === */
.social-link-footer {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: rgba(255,255,255,0.1);
    border: 1px solid rgba(255,255,255,0.2);
    color: #fff;
    font-size: 18px;
    text-decoration: none;
    transition: all 0.3s;
}
.social-link-footer:first-child:hover {
    background: linear-gradient(135deg, #f09433, #e6683c, #dc2743, #cc2366, #bc1888);
    border-color: transparent;
    color: #fff;
    transform: translateY(-3px);
}
.social-link-footer:nth-child(2):hover {
    background: #1877F2;
    border-color: transparent;
    color: #fff;
    transform: translateY(-3px);
}
.verified-badge-footer {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    background: rgba(29,161,242,0.15);
    color: #1DA1F2;
    font-size: 12px;
    font-weight: 600;
    padding: 4px 10px;
    border-radius: 20px;
    letter-spacing: 0.3px;
}
.verified-badge-footer i {
    font-size: 14px;
}

/* === Buttons === */
.btn-primary-orange {
    background: var(--orange);
    border: none;
    color: #fff;
    font-weight: 600;
    border-radius: 50px;
    transition: all 0.3s ease;
}
.btn-primary-orange:hover {
    background: var(--orange-dark);
    color: #fff;
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(232,163,23,0.35);
}

/* === Navbar === */
.navbar {
    padding: 12px 0;
    transition: all 0.3s ease;
}
.navbar.scrolled {
    box-shadow: 0 2px 20px rgba(0,0,0,0.1) !important;
}
.brand-icon {
    width: 42px;
    height: 42px;
    background: var(--orange-light);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--orange);
    font-size: 1.2rem;
}
.brand-text {
    font-size: 1.4rem;
    font-weight: 700;
    color: var(--dark);
}
.nav-link {
    font-weight: 500;
    color: #555 !important;
    padding: 8px 16px !important;
    transition: color 0.3s;
}
.nav-link:hover, .nav-link.active {
    color: var(--orange) !important;
}
.btn-join-nav {
    padding: 8px 24px !important;
    font-size: 0.9rem;
}

/* === Hero === */
.hero-section {
    background: linear-gradient(135deg, rgba(26,26,46,0.85) 0%, rgba(26,26,46,0.7) 100%),
                url('https://images.unsplash.com/photo-1545324418-cc1a3fa10c00?w=1920&q=80') center/cover no-repeat;
    min-height: 100vh;
    display: flex;
    align-items: center;
    padding-top: 94px; /* clears fixed navbar (~84px logo + 2×12px padding) */
    padding-bottom: 40px;
}
.hero-content {
    padding: 40px 0;
}
@media (max-width: 767.98px) {
    .hero-section {
        align-items: flex-start;
        padding-top: 94px;
        padding-bottom: 40px;
    }
    .hero-content {
        padding: 20px 0;
    }
}
.stat-item {
    border-left: 3px solid var(--orange);
    padding-left: 15px;
}
.stat-item h3 {
    font-weight: 800;
    font-size: 1.8rem;
}

/* === Section Divider === */
.section-divider {
    width: 60px;
    height: 4px;
    background: var(--orange);
    border-radius: 2px;
    margin-top: 12px;
    margin-bottom: 20px;
}

/* === How It Works === */
.step-card {
    position: relative;
    background: #fff;
    border-radius: 16px;
    border: 1px solid #eee;
    transition: all 0.3s ease;
    height: 100%;
}
.step-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 15px 40px rgba(0,0,0,0.08);
    border-color: var(--orange);
}
.step-number {
    position: absolute;
    top: -14px;
    left: 50%;
    transform: translateX(-50%);
    width: 28px;
    height: 28px;
    background: var(--orange);
    color: #fff;
    border-radius: 50%;
    font-weight: 700;
    font-size: 0.85rem;
    display: flex;
    align-items: center;
    justify-content: center;
}
.step-icon {
    width: 70px;
    height: 70px;
    margin: 0 auto;
    background: var(--orange-light);
    border-radius: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.8rem;
    color: var(--orange);
}

/* === Benefits === */
.benefit-card {
    transition: all 0.3s ease;
    border: 1px solid transparent;
}
.benefit-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 12px 30px rgba(0,0,0,0.08);
    border-color: var(--orange);
}

/* === CTA Section === */
.cta-section {
    background: linear-gradient(135deg, var(--dark) 0%, #16213e 100%);
    padding: 80px 0;
}

/* === Modal === */
.modal-content {
    overflow: hidden;
}
.otp-box {
    width: 60px;
    height: 60px;
    font-size: 1.5rem;
    font-weight: 700;
    border: 2px solid #dee2e6;
    border-radius: 12px;
}
.otp-box:focus {
    border-color: var(--orange);
    box-shadow: 0 0 0 3px rgba(232,163,23,0.2);
}

/* === Back to Top === */
.btn-back-top {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 45px;
    height: 45px;
    background: var(--orange);
    color: #fff;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    opacity: 0;
    transform: translateY(20px);
    transition: all 0.3s ease;
    z-index: 99;
    box-shadow: 0 4px 15px rgba(232,163,23,0.3);
}
.btn-back-top.show {
    opacity: 1;
    transform: translateY(0);
}
.btn-back-top:hover {
    background: var(--orange-dark);
    color: #fff;
    transform: translateY(-3px);
}

/* === Footer === */
.brand-icon-footer {
    width: 36px;
    height: 36px;
    background: var(--orange);
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
}

/* === Responsive === */
@media (max-width: 768px) {
    .hero-section {
        text-align: center;
    }
    .hero-stats {
        justify-content: center;
    }
    .hero-content h1 {
        font-size: 2.2rem;
    }
    .stat-item h3 {
        font-size: 1.3rem;
    }
    .otp-box {
        width: 50px;
        height: 50px;
    }
    .tier-card {
        flex-wrap: nowrap;
    }
    .tier-card h6 {
        font-size: 0.85rem;
    }
    .tier-card small {
        font-size: 0.7rem;
    }
    .counter-number {
        font-size: 1.6rem;
    }
    .chart-container {
        padding: 1rem !important;
    }
}

/* === Construction Background === */
.construction-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0.04;
    pointer-events: none;
    z-index: 0;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='800' height='600' viewBox='0 0 800 600'%3E%3Cg fill='none' stroke='%231a1a2e' stroke-width='1.5'%3E%3C!-- Crane --%3E%3Cline x1='120' y1='580' x2='120' y2='100'/%3E%3Cline x1='115' y1='100' x2='300' y2='100'/%3E%3Cline x1='120' y1='100' x2='80' y2='140'/%3E%3Cline x1='300' y1='100' x2='280' y2='130'/%3E%3Cline x1='280' y1='130' x2='280' y2='200'/%3E%3Cline x1='120' y1='200' x2='120' y2='580' stroke-dasharray='8,4'/%3E%3C!-- Building 1 --%3E%3Crect x='380' y='250' width='120' height='330' rx='2'/%3E%3Cline x1='400' y1='280' x2='420' y2='280'/%3E%3Cline x1='440' y1='280' x2='460' y2='280'/%3E%3Cline x1='400' y1='320' x2='420' y2='320'/%3E%3Cline x1='440' y1='320' x2='460' y2='320'/%3E%3Cline x1='400' y1='360' x2='420' y2='360'/%3E%3Cline x1='440' y1='360' x2='460' y2='360'/%3E%3Cline x1='400' y1='400' x2='420' y2='400'/%3E%3Cline x1='440' y1='400' x2='460' y2='400'/%3E%3Cline x1='400' y1='440' x2='420' y2='440'/%3E%3Cline x1='440' y1='440' x2='460' y2='440'/%3E%3Crect x='415' y='500' width='50' height='80' rx='1'/%3E%3C!-- Building 2 --%3E%3Crect x='550' y='320' width='100' height='260' rx='2'/%3E%3Cline x1='570' y1='350' x2='590' y2='350'/%3E%3Cline x1='610' y1='350' x2='630' y2='350'/%3E%3Cline x1='570' y1='390' x2='590' y2='390'/%3E%3Cline x1='610' y1='390' x2='630' y2='390'/%3E%3Cline x1='570' y1='430' x2='590' y2='430'/%3E%3Cline x1='610' y1='430' x2='630' y2='430'/%3E%3C!-- Blueprint grid --%3E%3Cline x1='0' y1='580' x2='800' y2='580' stroke-dasharray='2,6'/%3E%3Cline x1='700' y1='380' x2='780' y2='380' stroke-dasharray='3,3'/%3E%3Cline x1='700' y1='380' x2='700' y2='580' stroke-dasharray='3,3'/%3E%3Cline x1='780' y1='380' x2='780' y2='580' stroke-dasharray='3,3'/%3E%3Ctext x='720' y='490' font-size='10' fill='%231a1a2e' font-family='monospace'%3EPLOT%3C/text%3E%3C/g%3E%3C/svg%3E");
    background-size: 800px 600px;
    background-repeat: repeat;
}

/* Apply construction bg also to other sections */
body {
    position: relative;
}
body::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0.025;
    pointer-events: none;
    z-index: -1;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='400' height='400' viewBox='0 0 400 400'%3E%3Cg fill='none' stroke='%231a1a2e' stroke-width='0.8'%3E%3Crect x='50' y='100' width='80' height='200' rx='1'/%3E%3Cline x1='65' y1='130' x2='80' y2='130'/%3E%3Cline x1='95' y1='130' x2='110' y2='130'/%3E%3Cline x1='65' y1='160' x2='80' y2='160'/%3E%3Cline x1='95' y1='160' x2='110' y2='160'/%3E%3Cline x1='65' y1='190' x2='80' y2='190'/%3E%3Cline x1='95' y1='190' x2='110' y2='190'/%3E%3Cline x1='270' y1='300' x2='270' y2='80'/%3E%3Cline x1='265' y1='80' x2='350' y2='80'/%3E%3Cline x1='350' y1='80' x2='340' y2='100'/%3E%3Cline x1='340' y1='100' x2='340' y2='150'/%3E%3Crect x='180' y='200' width='60' height='100' rx='1' stroke-dasharray='4,2'/%3E%3C/g%3E%3C/svg%3E");
    background-size: 400px 400px;
    background-repeat: repeat;
}

/* === Group Savings Section === */
#group-savings {
    background: #fff;
}

.chart-container {
    border: 1px solid #eee;
}

/* === Tier Cards === */
.tier-card {
    background: #f8f9fa;
    border: 1px solid #eee;
    transition: all 0.3s ease;
}
.tier-card:hover {
    transform: translateX(8px);
    box-shadow: 0 4px 15px rgba(0,0,0,0.06);
    border-color: var(--orange);
}
.tier-icon-wrap {
    width: 44px;
    height: 44px;
    min-width: 44px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.1rem;
    color: #fff;
}
.tier-1 .tier-icon-wrap { background: #adb5bd; }
.tier-2 .tier-icon-wrap { background: #ffc107; color: #333; }
.tier-3 .tier-icon-wrap { background: var(--orange); }
.tier-4 .tier-icon-wrap { background: #198754; }

.bg-orange {
    background-color: var(--orange) !important;
    color: #fff !important;
}

/* === Network Counter === */
.network-counter {
    margin-top: 8px;
}
.counter-number {
    font-size: 2rem;
    line-height: 1.1;
}

/* === Animations === */
@keyframes fadeInUp {
    from { opacity: 0; transform: translateY(30px); }
    to { opacity: 1; transform: translateY(0); }
}
.hero-content {
    animation: fadeInUp 0.8s ease;
}
.step-card, .benefit-card {
    animation: fadeInUp 0.6s ease backwards;
}
.step-card:nth-child(1) { animation-delay: 0.1s; }
.step-card:nth-child(2) { animation-delay: 0.2s; }
.step-card:nth-child(3) { animation-delay: 0.3s; }
.step-card:nth-child(4) { animation-delay: 0.4s; }

/* === Developer Partners === */
.developer-logo-card {
    background: #fff;
    border: 1px solid #f0f0f0;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
    min-height: 110px;
}
.developer-logo-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 24px rgba(0,0,0,0.10) !important;
}
.developer-logo {
    max-height: 60px;
    max-width: 100%;
    object-fit: contain;
}
