:root {
    --bg-light: #ffffff;
    --text-main: #111827;
    --text-muted: #6b7280;
    --primary-blue: #7341ff;
    --primary-hover: #5a30d6;
    --accent-blue: #8a63ff;
    --dark-surface: #140d36;
    --glass-bg: rgba(255, 255, 255, 0.2);
    --glass-border: rgba(255, 255, 255, 0.3);
}

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

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Outfit', sans-serif;
    color: var(--text-main);
    line-height: 1.6;
    overflow-x: hidden;
    background-color: var(--bg-light);
}

/* Gradient Hero Background */
.hero-wrapper {
    position: relative;
    background: radial-gradient(circle at 50% 50%, rgba(115, 65, 255, 0.2) 0%, rgba(20, 13, 54, 0.1) 40%, rgba(20, 184, 166, 0.05) 80%, #ffffff 100%);
    min-height: 100vh;
    padding-bottom: 60px;
    overflow: hidden;
}

/* Top blurred mesh effect overlays */
.hero-wrapper::before, .hero-wrapper::after {
    content: '';
    position: absolute;
    width: 600px;
    height: 600px;
    border-radius: 50%;
    filter: blur(120px);
    z-index: -1;
    animation: pulse 8s infinite alternate ease-in-out;
}

.hero-wrapper::before {
    top: -10%;
    left: -10%;
    background: rgba(139, 92, 246, 0.5); /* Purple tint */
}

.hero-wrapper::after {
    bottom: -10%;
    right: -10%;
    background: rgba(59, 130, 246, 0.5); /* Blue tint */
    animation-delay: -4s;
}

@keyframes pulse {
    0% { transform: scale(1); opacity: 0.7; }
    100% { transform: scale(1.2); opacity: 1; }
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Navbar */
.navbar {
    padding: 20px 0;
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 100;
}

.nav-container {
    display: grid;
    grid-template-columns: 1fr auto 1fr;
    align-items: center;
}

.logo {
    font-size: 1.8rem;
    font-weight: 800;
    color: var(--text-main);
    text-decoration: none;
    display: flex;
    align-items: center;
    gap: 10px;
}

.nav-links {
    display: flex;
    list-style: none;
    background: var(--glass-bg);
    backdrop-filter: blur(20px);
    border: 1px solid var(--glass-border);
    padding: 8px 12px;
    border-radius: 30px;
    gap: 5px;
}

.nav-links a {
    color: var(--text-main);
    text-decoration: none;
    font-weight: 600;
    font-size: 0.9rem;
    padding: 8px 16px;
    border-radius: 20px;
    transition: all 0.3s ease;
}

.nav-links a:hover, .nav-links a.active {
    background: #ffffff;
    box-shadow: 0 2px 10px rgba(0,0,0,0.05);
}

.nav-actions {
    display: flex;
    justify-content: flex-end;
    gap: 15px;
    align-items: center;
}

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 12px 24px;
    border-radius: 30px;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.3s ease;
    border: none;
    cursor: pointer;
    font-family: 'Outfit', sans-serif;
    gap: 8px;
}

.btn-sm {
    padding: 8px 20px;
    font-size: 0.9rem;
}

.btn-primary {
    background: var(--primary-blue);
    color: white;
}

.btn-primary:hover {
    background: var(--primary-hover);
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(37, 99, 235, 0.4);
}

.btn-dark {
    background: var(--dark-surface);
    color: white;
}

.btn-dark:hover {
    background: #111827;
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

.btn-light {
    background: white;
    color: var(--text-main);
    box-shadow: 0 2px 10px rgba(0,0,0,0.05);
}

.btn-light:hover {
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
}

.btn-text {
    background: transparent;
    color: var(--text-main);
}

.btn-text:hover {
    color: var(--primary-blue);
}

/* Hamburger */
.hamburger {
    display: none;
    cursor: pointer;
}
.hamburger span {
    display: block;
    width: 25px;
    height: 3px;
    background-color: var(--text-main);
    margin: 5px 0;
}

/* Hero Section */
.hero {
    padding-top: 150px;
    text-align: center;
    position: relative;
}

.hero h1 {
    font-size: 4.5rem;
    font-weight: 900;
    line-height: 1.1;
    margin-bottom: 20px;
    color: var(--text-main);
    text-transform: uppercase;
}

.hero h1 .highlight-blue {
    color: var(--primary-blue);
    display: block;
}

.hero p {
    font-size: 1.2rem;
    color: var(--text-main);
    max-width: 600px;
    margin: 0 auto 40px;
    font-weight: 400;
}

.hero-cta {
    display: flex;
    justify-content: center;
    gap: 20px;
    margin-bottom: 60px;
    position: relative;
    z-index: 10;
}

/* Mockup Display */
.hero-mockup-container {
    position: relative;
    max-width: 800px;
    margin: 0 auto;
    display: flex;
    justify-content: center;
}

.main-mockup {
    width: 300px;
    border-radius: 40px;
    box-shadow: 0 20px 60px rgba(115, 65, 255, 0.4);
    position: relative;
    z-index: 5;
    border: 8px solid var(--dark-surface);
}

/* Floating images behind the main mockup */
.float-img {
    position: absolute;
    z-index: 2; /* Keeps them behind the main mockup (z-index: 5) */
    width: 220px;
    border-radius: 24px;
    box-shadow: 0 15px 35px rgba(0,0,0,0.2);
    animation: float-y 6s infinite alternate ease-in-out;
}

.img-left {
    top: 15%;
    left: 2%;
    transform: rotate(-12deg);
}

.img-right {
    bottom: 15%;
    right: 2%;
    transform: rotate(12deg);
    animation-delay: -3s;
}

@keyframes float-y {
    0% { transform: translateY(0) rotate(var(--rot, 0deg)); }
    100% { transform: translateY(-20px) rotate(var(--rot, 0deg)); }
}

/* Trusted By Section */
.trusted-by {
    text-align: center;
    margin-top: 80px;
    padding-bottom: 40px;
}

.trusted-by p {
    color: var(--text-main);
    font-weight: 600;
    margin-bottom: 20px;
    font-size: 0.9rem;
}

.logo-strip {
    display: flex;
    justify-content: center;
    gap: 40px;
    flex-wrap: wrap;
    opacity: 0.7;
}

.logo-strip img {
    height: 30px;
    filter: grayscale(100%) brightness(0);
}

/* White Features Section */
.features-section {
    background: var(--bg-light);
    padding: 100px 0;
    text-align: center;
}

.features-header {
    margin-bottom: 60px;
}

.features-header h2 {
    font-size: 2.8rem;
    font-weight: 800;
    margin-bottom: 15px;
}

.features-header p {
    color: var(--text-muted);
    font-size: 1.1rem;
    max-width: 600px;
    margin: 0 auto;
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
}

.feature-panel {
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    border-radius: 20px;
    padding: 40px 30px;
    display: flex;
    flex-direction: column;
    align-items: center;
    transition: transform 0.3s ease;
}

.feature-panel:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(0,0,0,0.05);
}

.panel-graphic {
    background: white;
    width: 100%;
    height: 150px;
    border-radius: 15px;
    margin-bottom: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 15px rgba(0,0,0,0.03);
    font-size: 3rem;
}

.feature-panel h3 {
    font-size: 1.3rem;
    margin-bottom: 10px;
}

.feature-panel p {
    color: var(--text-muted);
    font-size: 0.95rem;
}

/* Footer */
footer {
    background: #f1f5f9;
    padding: 60px 0 20px;
    border-top: 1px solid #e2e8f0;
}

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

.footer-logo p {
    color: var(--text-muted);
    margin-top: 15px;
    font-size: 0.9rem;
}

.footer-links h4 {
    margin-bottom: 20px;
    font-size: 1.1rem;
}

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

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

.footer-links a {
    color: var(--text-muted);
    text-decoration: none;
    transition: color 0.3s ease;
    font-size: 0.95rem;
}

.footer-links a:hover {
    color: var(--primary-blue);
}

.footer-bottom {
    text-align: center;
    color: var(--text-muted);
    border-top: 1px solid #e2e8f0;
    padding-top: 20px;
    font-size: 0.9rem;
}

/* Animations */
.fade-in-up {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.8s ease-out, transform 0.8s ease-out;
}
.fade-in-up.appear {
    opacity: 1;
    transform: translateY(0);
}

/* Responsive */
@media (max-width: 900px) {
    .nav-container {
        grid-template-columns: 1fr auto;
    }
    .nav-links, .nav-actions {
        display: none;
    }
    .hamburger {
        display: block;
    }
    .hero h1 {
        font-size: 3rem;
    }
    .card-left, .card-right, .img-left, .img-right {
        display: none; /* Hide floating elements on smaller screens to prevent overlap */
    }
    .footer-content {
        grid-template-columns: 1fr 1fr; /* Switch to 2 columns on tablet */
    }
}

@media (max-width: 600px) {
    .hero h1 {
        font-size: 2.2rem;
    }
    .hero p {
        font-size: 1.05rem;
    }
    .hero-cta {
        flex-direction: column;
        gap: 15px;
    }
    .main-mockup {
        width: 85%;
        max-width: 250px;
    }
    .features-grid {
        grid-template-columns: 1fr; /* Force 1 column on mobile */
    }
    .footer-content {
        grid-template-columns: 1fr; /* Force 1 column on mobile */
        text-align: center;
    }
    .footer-logo .logo {
        justify-content: center;
    }
}
/* Airtime Modal */
.modal-overlay {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(17, 24, 39, 0.55);
    backdrop-filter: blur(4px);
    z-index: 1000;
    align-items: center;
    justify-content: center;
    padding: 20px;
}

.modal-overlay.active {
    display: flex;
}

.modal-box {
    background: #ffffff;
    border-radius: 20px;
    padding: 35px;
    width: 100%;
    max-width: 420px;
    position: relative;
    box-shadow: 0 20px 60px rgba(0,0,0,0.25);
    animation: modalPop 0.25s ease-out;
}

@keyframes modalPop {
    from { opacity: 0; transform: translateY(15px) scale(0.98); }
    to { opacity: 1; transform: translateY(0) scale(1); }
}

.modal-box h3 {
    font-size: 1.5rem;
    font-weight: 800;
    margin-bottom: 6px;
}

.modal-subtext {
    color: var(--text-muted);
    font-size: 0.9rem;
    margin-bottom: 25px;
}

.modal-close {
    position: absolute;
    top: 18px;
    right: 18px;
    background: #f1f5f9;
    border: none;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    font-size: 1.2rem;
    line-height: 1;
    cursor: pointer;
    color: var(--text-muted);
    transition: all 0.2s ease;
}

.modal-close:hover {
    background: #e2e8f0;
    color: var(--text-main);
}

.form-group {
    margin-bottom: 18px;
}

.form-group label {
    display: block;
    font-size: 0.85rem;
    font-weight: 600;
    margin-bottom: 6px;
    color: var(--text-main);
}

.form-group input {
    width: 100%;
    padding: 12px 14px;
    border: 1px solid #e2e8f0;
    border-radius: 10px;
    font-family: 'Outfit', sans-serif;
    font-size: 0.95rem;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.form-group input:focus {
    outline: none;
    border-color: var(--primary-blue);
    box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.15);
}

.form-feedback {
    font-size: 0.85rem;
    min-height: 18px;
    margin-top: -6px;
    margin-bottom: 8px;
}

.form-feedback.success { color: #16a34a; }
.form-feedback.error { color: #dc2626; }

#airtimeSubmitBtn:disabled {
    opacity: 0.7;
    cursor: not-allowed;
    transform: none !important;
}

/* Block UI */
.block-ui {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(255, 255, 255, 0.85);
    backdrop-filter: blur(4px);
    z-index: 10;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    border-radius: 20px;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s ease;
}

.block-ui.active {
    opacity: 1;
    pointer-events: all;
}

.block-ui p {
    font-weight: 700;
    color: var(--primary-blue);
    margin-top: 15px;
    font-size: 1.1rem;
}

.spinner {
    width: 45px;
    height: 45px;
    border: 4px solid rgba(115, 65, 255, 0.2);
    border-top-color: var(--primary-blue);
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}