:root {
    --primary: #e67e22; /* Hixor Orange */
    --dark: #2c3e50;    /* Hixor Dark */
    --light: #f8f9fa;
    --white: #ffffff;
    --shadow: 0 10px 30px rgba(0,0,0,0.08);
}

* { margin: 0; padding: 0; box-sizing: border-box; }
body { font-family: 'Poppins', sans-serif; background: var(--white); color: var(--dark); overflow-x: hidden; }

/* 1. NAV */
.navbar {
    display: flex; justify-content: space-between; align-items: center;
    padding: 15px 5%; position: fixed; width: 100%; top: 0; z-index: 1000;
    background: rgba(255,255,255,0.98); backdrop-filter: blur(10px);
    border-bottom: 1px solid rgba(0,0,0,0.05);
    height: 70px;
}
.logo { font-weight: 800; font-size: 1.5rem; letter-spacing: 1px; }

/* Desktop Menu */
.nav-links a { text-decoration: none; color: var(--dark); margin-left: 20px; font-weight: 500; font-size: 0.9rem; }
.btn-nav { background: var(--dark); color: white !important; padding: 10px 20px; border-radius: 50px; transition: 0.3s; }
.btn-nav:hover { background: var(--primary); }

/* Mobile Menu Elements */
.mobile-toggle { display: none; cursor: pointer; color: var(--dark); }
.mobile-menu {
    position: fixed; top: 70px; left: 0; width: 100%; background: white;
    border-bottom: 1px solid #eee; padding: 20px; display: none; flex-direction: column;
    gap: 15px; z-index: 999; box-shadow: 0 10px 20px rgba(0,0,0,0.05);
}
.mobile-menu a { text-decoration: none; color: var(--dark); font-weight: 600; font-size: 1.1rem; }
.mobile-menu.active { display: flex; }

/* 2. HERO */
.hero {
    display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between;
    padding: 120px 5% 60px; background: radial-gradient(circle at top right, #fff8f0, #fff);
    min-height: 90vh;
}
.hero-content { flex: 1; min-width: 300px; max-width: 600px; }
.badge-pill { 
    display: inline-flex; align-items: center; background: #fff3e0; color: var(--primary); 
    padding: 5px 15px; border-radius: 20px; font-size: 0.8rem; font-weight: 600; margin-bottom: 20px;
}
.hero h1 { font-size: 3.5rem; line-height: 1.1; margin-bottom: 20px; color: var(--dark); }
.highlight { color: var(--primary); }
.hero p { color: #7f8c8d; font-size: 1.1rem; line-height: 1.6; margin-bottom: 30px; }
.cta-group { display: flex; gap: 15px; }

.btn-primary { 
    background: var(--primary); color: white; padding: 15px 30px; border-radius: 8px; 
    text-decoration: none; font-weight: 600; display: inline-flex; align-items: center; gap: 10px; 
    box-shadow: 0 10px 20px rgba(230, 126, 34, 0.3); transition: 0.3s; 
}
.btn-outline { 
    border: 2px solid var(--dark); color: var(--dark); padding: 15px 30px; border-radius: 8px; 
    text-decoration: none; font-weight: 600; display: inline-flex; align-items: center; gap: 10px; transition: 0.3s; 
}

/* HERO VISUAL (Phone) */
.hero-visual { flex: 1; display: flex; justify-content: center; position: relative; min-width: 300px; }
.phone-mockup {
    width: 260px; height: 500px; background: var(--dark); border-radius: 30px;
    padding: 10px; box-shadow: 0 30px 60px rgba(0,0,0,0.2); position: relative; z-index: 2;
    transform: rotate(-5deg); animation: float 6s ease-in-out infinite;
}

/* ================= FLOATING COINS ================= */
.floating-coin {
    position: absolute;
    width: 60px;
    height: 60px;
    background: radial-gradient(circle at 30% 30%, #f1c40f, #d35400); /* Gold Gradient */
    border-radius: 50%;
    box-shadow: 
        0 10px 20px rgba(211, 84, 0, 0.4), /* Drop Shadow */
        inset 0 0 0 4px rgba(255, 255, 255, 0.2), /* Rim Highlight */
        inset 0 0 10px rgba(0,0,0,0.1); /* Inner Depth */
    z-index: 3; /* Sit on top of the phone */
}

/* Coin 1 - Top Left */
.c1 {
    top: 15%;
    left: -10px;
    width: 50px; 
    height: 50px;
    animation: float 4s ease-in-out infinite;
}

/* Coin 2 - Bottom Right */
.c2 {
    bottom: 20%;
    right: -10px;
    width: 70px; 
    height: 70px;
    background: radial-gradient(circle at 30% 30%, #e67e22, #c0392b); /* Darker Orange */
    animation: float 5s ease-in-out infinite reverse; /* Different speed & direction */
    z-index: 1; /* Behind the phone */
}

/* Add a Dollar/Naira Sign inside? Optional */
.floating-coin::after {
    content: '₦';
    position: absolute;
    top: 50%; left: 50%;
    transform: translate(-50%, -50%);
    color: rgba(255,255,255,0.8);
    font-weight: 800;
    font-size: 1.5rem;
    text-shadow: 0 1px 2px rgba(0,0,0,0.2);
}

.screen { background: white; width: 100%; height: 100%; border-radius: 20px; overflow: hidden; position: relative; }
.screen-header { background: var(--primary); height: 120px; padding: 30px 20px; color: white; }
.screen-body { padding: 20px; }
.bar { height: 10px; background: #eee; border-radius: 5px; margin-bottom: 10px; width: 80%; }
.bar.short { width: 50%; }
.circle { width: 40px; height: 40px; background: #eee; border-radius: 50%; margin-top: 20px; }
@keyframes float { 0%, 100% { transform: translateY(0) rotate(-5deg); } 50% { transform: translateY(-20px) rotate(-5deg); } }

/* 3. TRUST STRIP */
.trust-strip { background: #f9f9f9; padding: 20px 5%; text-align: center; border-bottom: 1px solid #eee; }
.trust-strip p { font-size: 0.7rem; letter-spacing: 2px; color: #999; margin-bottom: 10px; font-weight: bold; }
.logos { display: flex; justify-content: center; gap: 30px; flex-wrap: wrap; opacity: 0.6; }
.logos span { display: flex; align-items: center; gap: 5px; font-weight: 600; color: #555; font-size: 0.9rem;}

/* 4. CALCULATOR */
.calculator-section { padding: 80px 5%; background: white; }
.section-header { text-align: center; margin-bottom: 50px; }
.section-header h2 { font-size: 2rem; margin-bottom: 10px; }
.calc-box { 
    max-width: 900px; margin: 0 auto; background: var(--white); border-radius: 20px; 
    box-shadow: var(--shadow); display: flex; flex-wrap: wrap; overflow: hidden; border: 1px solid #eee;
}
.calc-inputs { flex: 1.2; padding: 40px; min-width: 300px; }
.input-group { margin-bottom: 30px; }
.input-group label { display: flex; align-items: center; gap: 10px; font-weight: 600; margin-bottom: 10px; }
input[type=range] { width: 100%; accent-color: var(--primary); cursor: pointer; height: 5px; }
.range-val { font-weight: 700; color: var(--primary); margin-top: 5px; }
.calc-result { 
    flex: 0.8; background: var(--dark); color: white; padding: 40px; 
    display: flex; flex-direction: column; justify-content: center; align-items: center; text-align: center;
    min-width: 250px;
}
.calc-result h3 { font-size: 3rem; color: var(--primary); margin: 10px 0; }

/* 5. COMPARISON */
.comparison-section { padding: 80px 5%; background: #f8f9fa; }
.table-responsive { overflow-x: auto; } /* Enable scroll on mobile */
.compare-table { width: 100%; max-width: 800px; margin: 0 auto; border-collapse: collapse; background: white; border-radius: 10px; box-shadow: var(--shadow); white-space: nowrap; }
.compare-table th, .compare-table td { padding: 20px; text-align: left; border-bottom: 1px solid #eee; }
.compare-table th { background: var(--dark); color: white; }
.compare-table span { color: #00e600 ; }
.compare-table .bad { color: #e60000 ; }
.hixor-col { background: #fffbf7; font-weight: bold; border-left: 2px solid var(--primary); border-right: 2px solid var(--primary); }

/* 6. FOOTER */
footer { background: #1a252f; color: #ecf0f1; padding: 60px 5% 20px; }
.footer-content { display: flex; flex-wrap: wrap; gap: 40px; justify-content: space-between; margin-bottom: 40px; }
.footer-col { flex: 1; min-width: 200px; }
.footer-col a { display: block; color: #7f8c8d; text-decoration: none; margin-bottom: 10px; }
.footer-bottom { border-top: 1px solid #34495e; padding-top: 20px; text-align: center; font-size: 0.8rem; color: #7f8c8d; }

/* =========================================
   RESPONSIVE MEDIA QUERIES
   ========================================= */

/* Tablet (iPad) - 769px to 1024px */
@media (max-width: 1024px) {
    .hero { padding-top: 100px; text-align: center; justify-content: center; }
    .hero h1 { font-size: 2.8rem; }
    .hero-content { margin-bottom: 50px; align-items: center; display: flex; flex-direction: column; }
    .hero-visual { width: 100%; justify-content: center; }
    .phone-mockup { width: 220px; height: 440px; }
    .calc-box { flex-direction: column; }
}

/* Mobile - Max 768px */
@media (max-width: 768px) {
    /* Nav */
    .desktop-menu { display: none; }
    .mobile-toggle { display: block; font-size: 1.8rem; }
    
    /* Hero */
    .hero { padding: 100px 5% 40px; text-align: center; }
    .hero h1 { font-size: 2.2rem; }
    .hero p { font-size: 1rem; }
    .cta-group { flex-direction: column; width: 100%; }
    .btn-primary, .btn-outline { width: 100%; justify-content: center; }
    
    /* Hide Phone Mockup on small screens to save space */
    .hero-visual { display: none; } 

    /* Calculator */
    .calc-box { margin: 0; width: 100%; border-radius: 10px; }
    .calc-inputs { padding: 25px; }
    .calc-result { padding: 30px; }
    .calc-result h3 { font-size: 2.2rem; }

    /* Comparison Table */
    .comparison-section { padding: 40px 5%; }
    .compare-table th, .compare-table td { padding: 15px 10px; font-size: 0.9rem; }
    
    /* Footer */
    .footer-content { gap: 30px; }
}

/* ================= PRELOADER ================= */
#preloader {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: #ffffff;
    z-index: 9999; /* Sit on top of everything */
    display: flex;
    justify-content: center;
    align-items: center;
    transition: opacity 0.5s ease, visibility 0.5s; /* Smooth fade out */
}

.loader-content {
    text-align: center;
    position: relative;
}

.loader-logo {
    font-size: 3rem;
    font-weight: 800;
    color: var(--dark);
    letter-spacing: 2px;
    animation: pulse 2s infinite ease-in-out;
}

.loader-logo span {
    color: var(--primary); /* Orange Dot */
}

.loader-line {
    width: 0;
    height: 4px;
    background: var(--primary);
    margin: 10px auto 0;
    border-radius: 2px;
    animation: loadLine 1.5s ease-in-out forwards;
}

/* Animations */
@keyframes pulse {
    0%, 100% { opacity: 1; transform: scale(1); }
    50% { opacity: 0.8; transform: scale(0.98); }
}

@keyframes loadLine {
    0% { width: 0; }
    50% { width: 50%; }
    100% { width: 100%; }
}

/* Class to hide loader via JS */
body.loaded #preloader {
    opacity: 0;
    visibility: hidden;
}