:root {
    --primary-blue: #00A8E8;
    --primary-green: #00E8A8;
    --primary-gold: #F59E0B;
    --primary-purple: #b567e6;
    --dark-bg: #0f172a;
    --card-bg: #1e293b;
    --section-bg: #172033;
    --text-light: #f8fafc;
    --text-gray: #94a3b8;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

body {
    background-color: var(--dark-bg);
    color: var(--text-light);
    line-height: 1.6;
    overflow-x: hidden;
}

/* --- Navigation --- */
header {
    background: rgba(15, 23, 42, 0.95);
    padding: 15px 0;
    position: sticky;
    top: 0;
    z-index: 1000;
    border-bottom: 1px solid rgba(255, 255, 255, 0.2);
    backdrop-filter: blur(10px);
    overflow: hidden;
}

header::before {
    content: '';
    position: absolute;
    bottom: 0;
    left: -30%;
    width: 30%;
    height: 1px;
    background: linear-gradient(90deg,
            transparent 0%,
            rgba(0, 168, 232, 0.6) 20%,
            rgba(255, 255, 255, 1) 50%,
            rgba(0, 232, 168, 0.6) 80%,
            transparent 100%);
    animation: borderSweep 5s ease-in-out infinite alternate;
    pointer-events: none;
}

@keyframes borderSweep {
    0% {
        left: -30%;
    }

    100% {
        left: 100%;
    }
}



header::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 200%;
    height: 100%;
    background: linear-gradient(90deg,
            transparent 0%,
            transparent 30%,
            rgba(0, 168, 232, 0.07) 45%,
            rgba(0, 232, 168, 0.05) 50%,
            rgba(0, 168, 232, 0.07) 55%,
            transparent 70%,
            transparent 100%);
    animation: headerSweep 6s linear infinite;
    pointer-events: none;
}

@keyframes headerSweep {
    0% {
        transform: translateX(0%);
    }

    100% {
        transform: translateX(-50%);
    }
}


.nav-container {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0 20px;
}

/* Fixed Logo CSS */
.logo-container {
    cursor: pointer;
    display: flex;
    align-items: center;
    transition: transform 0.2s ease, opacity 0.2s ease;
}

.logo-container:hover {
    transform: scale(1.08) translateY(-2px);
    opacity: 1;
}

.logo-img {
    height: 70px;
    width: auto;
    object-fit: contain;
    filter: drop-shadow(0 0 6px rgba(0, 168, 232, 0.5));
    animation: logoPulse 3s ease-in-out infinite;
}

@keyframes logoPulse {

    0%,
    100% {
        filter: drop-shadow(0 0 6px rgba(0, 168, 232, 0.4));
    }

    50% {
        filter: drop-shadow(0 0 14px rgba(0, 232, 168, 0.7));
    }
}

.nav-links {
    display: flex;
    align-items: center;
}

.nav-links button {
    background: none;
    border: none;
    color: var(--text-gray);
    font-size: 1rem;
    margin-left: 20px;
    cursor: pointer;
    transition: color 0.3s;
}

.nav-links button:hover {
    color: var(--primary-blue);
}

.nav-links button.active-nav {
    color: var(--primary-blue);
    border-bottom: 2px solid var(--primary-blue);
    padding-bottom: 2px;
    text-shadow: 0 0 8px rgba(0, 168, 232, 0.5);
}

/* New CTA Button in Header */
.nav-cta {
    background: linear-gradient(90deg, var(--primary-blue), var(--primary-green)) !important;
    color: #fff !important;
    padding: 8px 20px;
    border-radius: 20px;
    font-weight: bold;
    text-transform: uppercase;
    font-size: 0.85rem !important;
    margin-left: 25px !important;
    transition: transform 0.2s ease !important;
}

.nav-cta:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 168, 232, 0.4);
}

/* --- View Management --- */
.view-section {
    display: none;
    animation: fadeIn 0.5s ease-in-out;
    min-height: 100vh;
}

.view-section.active-view {
    display: block;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(10px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* --- PAGE HERO (sub-page banner) --- */
.page-hero {
    min-height: 280px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    padding: 60px 20px;
    background-size: cover;
    background-position: center;
}

.page-hero .subtitle {
    font-size: 0.8rem;
    letter-spacing: 3px;
    text-transform: uppercase;
    color: var(--primary-blue);
    margin-bottom: 12px;
    font-weight: 600;
}

.page-hero h1 {
    font-size: 3rem;
    margin-bottom: 16px;
    color: #fff;
}

.page-hero p {
    font-size: 1.1rem;
    color: var(--text-gray);
    max-width: 700px;
}

/* --- CONTENT CONTAINER (sub-page body) --- */
.content-container {
    max-width: 1100px;
    margin: 0 auto;
    padding: 60px 40px;
    color: #fff;
}


.hero {
    height: 60vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    background: linear-gradient(rgba(15, 23, 42, 0.7), rgba(15, 23, 42, 0.9)),
        url('main_background.png');
    background-size: cover;
    background-attachment: fixed;
    padding: 0 20px;
    position: relative;
    overflow: hidden;
}

.hero h1 {
    font-size: 3.5rem;
    margin-bottom: 20px;
}

.hero p {
    font-size: 1.25rem;
    max-width: 800px;
    color: var(--text-gray);
    margin-bottom: 40px;
}

/* --- HERO ANIMATIONS --- */
/* Horizontal scan line sweeping top to bottom */
.hero-scan-line {
    position: absolute;
    top: -2px;
    left: 0;
    width: 100%;
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(0, 232, 168, 0.25), rgba(0, 168, 232, 0.35), rgba(0, 232, 168, 0.25), transparent);
    animation: heroScan 6s ease-in-out infinite;
    pointer-events: none;
    z-index: 1;
    box-shadow: 0 0 6px rgba(0, 232, 168, 0.2);
}

@keyframes heroScan {
    0% {
        top: 0;
        opacity: 0;
    }

    5% {
        opacity: 1;
    }

    95% {
        opacity: 0.6;
    }

    100% {
        top: 100%;
        opacity: 0;
    }
}

/* Corner glow orbs */
.hero-glow {
    position: absolute;
    border-radius: 50%;
    filter: blur(60px);
    pointer-events: none;
    z-index: 1;
    animation: heroGlowPulse 5s ease-in-out infinite alternate;
}

.hero-glow-tl {
    width: 400px;
    height: 400px;
    background: rgba(0, 168, 232, 0.18);
    top: -150px;
    left: -100px;
    animation-delay: 0s;
}

.hero-glow-br {
    width: 500px;
    height: 500px;
    background: rgba(0, 201, 167, 0.12);
    bottom: -200px;
    right: -100px;
    animation-delay: 2.5s;
}

@keyframes heroGlowPulse {
    0% {
        opacity: 0.6;
        transform: scale(1);
    }

    100% {
        opacity: 1;
        transform: scale(1.15);
    }
}

/* Subtle grid  */
.hero-grid-overlay {
    position: absolute;
    inset: 0;
    background-image:
        linear-gradient(rgba(0, 168, 232, 0.04) 1px, transparent 1px),
        linear-gradient(90deg, rgba(0, 168, 232, 0.04) 1px, transparent 1px);
    background-size: 60px 60px;
    pointer-events: none;
    z-index: 1;
    animation: heroGridFade 8s ease-in-out infinite alternate;
}

@keyframes heroGridFade {
    0% {
        opacity: 0.4;
    }

    100% {
        opacity: 1;
    }
}


/* --- GRID SECTIONS --- */
.grid-section {
    padding: 60px 20px;
    max-width: 1200px;
    margin: 0 auto;
}

.grid-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 30px;
    margin-top: -100px;
    max-width: 1200px;
    margin-left: auto;
    margin-right: auto;
}

.business-card {
    background-color: var(--card-bg);
    border-radius: 15px;
    overflow: hidden;
    transition: all 0.4s ease;
    position: relative;
    border: 1px solid rgba(255, 255, 255, 0.05);
    cursor: pointer;
    display: flex;
    flex-direction: column;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
}

.business-card:hover {
    transform: translateY(-15px);
    box-shadow: 0 25px 50px rgba(0, 0, 0, 0.5);
    border-color: var(--primary-blue);
}

.card-image {
    height: 220px;
    width: 100%;
    object-fit: cover;
    opacity: 0.9;
}

.card-content {
    padding: 30px;
    flex-grow: 1;
    text-align: left;
    display: flex;
    flex-direction: column;
}

.card-title {
    font-size: 1.8rem;
    margin-bottom: 10px;
    color: #fff;
}

.card-role {
    text-transform: uppercase;
    font-size: 0.8rem;
    letter-spacing: 1px;
    color: var(--primary-blue);
    margin-bottom: 15px;
    font-weight: bold;
}

.card-text {
    color: var(--text-gray);
    font-size: 0.95rem;
    margin-bottom: 20px;
}

.card-btn {
    display: inline-block;
    color: var(--primary-green);
    font-weight: bold;
    text-transform: uppercase;
    font-size: 0.9rem;
    letter-spacing: 1px;
    margin-top: auto;
}

/* --- CONTACT & MODAL FORMS --- */
.contact-hub {
    background: linear-gradient(to bottom, #0f172a, #172033);
    padding: 80px 20px;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
}

.contact-container {
    max-width: 800px;
    margin: 0 auto;
    text-align: center;
}

.contact-form {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
    background: rgba(255, 255, 255, 0.03);
    padding: 40px;
    border-radius: 15px;
    margin-top: 40px;
    text-align: left;
    border: 1px solid rgba(255, 255, 255, 0.05);
}

.form-group {
    display: flex;
    flex-direction: column;
}

.form-group.full-width {
    grid-column: span 2;
}

.form-group label {
    margin-bottom: 8px;
    font-size: 0.9rem;
    color: var(--primary-blue);
}

.form-group input,
.form-group select,
.form-group textarea {
    background: rgba(0, 0, 0, 0.3);
    border: 1px solid rgba(255, 255, 255, 0.1);
    padding: 12px;
    border-radius: 8px;
    color: #fff;
    outline: none;
    transition: border 0.3s;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    border-color: var(--primary-green);
}

.submit-btn {
    grid-column: span 2;
    background: linear-gradient(90deg, var(--primary-blue), var(--primary-green));
    color: #fff;
    border: none;
    padding: 15px;
    font-size: 1rem;
    font-weight: bold;
    text-transform: uppercase;
    border-radius: 8px;
    cursor: pointer;
    transition: transform 0.2s;
    margin-top: 10px;
}

.submit-btn:hover {
    transform: scale(1.02);
    box-shadow: 0 0 15px rgba(0, 168, 232, 0.4);
}

/* --- MODAL STYLES --- */
.modal {
    display: none;
    position: fixed;
    z-index: 2000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    overflow: hidden;
    background-color: rgba(0, 0, 0, 0.8);
    backdrop-filter: blur(5px);
    animation: fadeIn 0.3s;
    display: none;
    align-items: center;
    justify-content: center;
    padding: 20px;
    box-sizing: border-box;
}

.modal-content {
    background-color: var(--card-bg);
    margin: 0 auto;
    padding: 40px;
    border: 1px solid var(--primary-blue);
    width: 100%;
    max-width: 780px;
    max-height: calc(100vh - 40px);
    overflow-y: auto;
    border-radius: 15px;
    position: relative;
    box-shadow: 0 0 50px rgba(0, 168, 232, 0.2);
}

.close-modal {
    color: #aaa;
    float: right;
    font-size: 28px;
    font-weight: bold;
    cursor: pointer;
    position: absolute;
    top: 15px;
    right: 25px;
}

.close-modal:hover {
    color: var(--primary-blue);
}

/* --- STATS SECTION --- */
.advantage-section {
    background: linear-gradient(rgba(15, 23, 42, 0.95), rgba(15, 23, 42, 0.95)),
        url('bg_stats.jpg');
    background-size: cover;
    background-attachment: fixed;
    padding: 80px 20px;
    text-align: center;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
}

.stats-container {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 50px;
    max-width: 1200px;
    margin: 0 auto 60px auto;
}

.stat-item {
    text-align: center;
    min-width: 200px;
}

.stat-number {
    font-size: 3.5rem;
    font-weight: 700;
    color: var(--primary-blue);
    margin-bottom: 5px;
    display: block;
}

.stat-label {
    color: var(--text-gray);
    font-size: 1.1rem;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.value-props {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 30px;
    max-width: 1200px;
    margin: 0 auto;
}

.prop-card {
    background: rgba(255, 255, 255, 0.03);
    padding: 30px;
    border-radius: 15px;
    flex: 1 1 300px;
    border: 1px solid rgba(255, 255, 255, 0.05);
    transition: transform 0.3s;
}

.prop-card:hover {
    transform: translateY(-5px);
    border-color: var(--primary-green);
}

.prop-icon {
    font-size: 2rem;
    margin-bottom: 15px;
    display: block;
}

/* --- SUB-PAGE STYLES --- */
.page-hero {
    padding: 100px 20px;
    text-align: center;
    background: var(--section-bg);
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.page-hero h1 {
    font-size: 3rem;
    margin-bottom: 10px;
}

.page-hero .subtitle {
    color: var(--primary-blue);
    font-size: 1.2rem;
    text-transform: uppercase;
    letter-spacing: 2px;
}

.content-container {
    max-width: 1000px;
    margin: 0 auto;
    padding: 60px 20px;
}

.feature-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 40px;
    margin-top: 50px;
}

.feature-item {
    background: rgba(255, 255, 255, 0.03);
    padding: 30px;
    border-radius: 10px;
    border-left: 3px solid var(--primary-green);
}

.feature-item h3 {
    margin-bottom: 15px;
    font-size: 1.4rem;
    color: #fff;
}

.feature-item p {
    color: var(--text-gray);
    font-size: 0.95rem;
}

.feature-item ul {
    list-style: none;
    margin-top: 15px;
}

.feature-item li {
    margin-bottom: 8px;
    color: #cbd5e1;
    font-size: 0.9rem;
}

.feature-item li::before {
    content: "•";
    color: var(--primary-blue);
    font-weight: bold;
    display: inline-block;
    width: 1em;
}

.cta-section {
    background: linear-gradient(to right, #1e293b, #0f172a);
    padding: 60px 20px;
    text-align: center;
    margin-top: 60px;
    border-radius: 20px;
    border: 1px solid rgba(255, 255, 255, 0.05);
}

/* Back Button */
.back-btn {
    position: fixed;
    bottom: 30px;
    right: 30px;
    background-color: var(--primary-blue);
    color: white;
    border: none;
    padding: 15px 25px;
    border-radius: 50px;
    cursor: pointer;
    box-shadow: 0 4px 15px rgba(0, 168, 232, 0.4);
    z-index: 1000;
    display: none;
    font-weight: bold;
    transition: transform 0.2s;
}

.back-btn:hover {
    transform: scale(1.05);
}

/* Footer */
footer {
    background-color: #020617;
    padding: 40px 20px;
    text-align: center;
    color: var(--text-gray);
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    margin-top: auto;
}

footer a {
    color: var(--primary-blue);
    text-decoration: none;
    font-weight: bold;
    transition: color 0.3s;
}

footer a:hover {
    color: var(--primary-green);
}

/* ============================================================
   RESPONSIVE — MOBILE & TABLET
   ============================================================ */

/* Hamburger button (hidden on desktop) */
.nav-toggle {
    display: none;
    background: none;
    border: none;
    cursor: pointer;
    flex-direction: column;
    gap: 5px;
    padding: 4px;
    z-index: 1100;
}

.nav-toggle span {
    display: block;
    width: 24px;
    height: 2px;
    background: var(--text-light);
    border-radius: 2px;
    transition: transform 0.3s, opacity 0.3s;
}

.nav-toggle.open span:nth-child(1) {
    transform: translateY(7px) rotate(45deg);
}

.nav-toggle.open span:nth-child(2) {
    opacity: 0;
}

.nav-toggle.open span:nth-child(3) {
    transform: translateY(-7px) rotate(-45deg);
}

/* ---- Tablet (≤ 900px) ---- */
@media (max-width: 900px) {
    .hero h1 {
        font-size: 2.8rem;
    }

    .grid-container {
        grid-template-columns: 1fr 1fr;
        margin-top: -60px;
    }

    .stats-container {
        gap: 30px;
    }

    .stat-number {
        font-size: 2.8rem;
    }
}

/* ---- Mobile (≤ 768px) ---- */
@media (max-width: 768px) {

    /* NAV — hamburger */
    .nav-toggle {
        display: flex;
    }

    header {
        overflow: visible;
    }

    .nav-links {
        display: none;
        flex-direction: column;
        align-items: flex-start;
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        background: rgba(15, 23, 42, 0.98);
        backdrop-filter: blur(12px);
        padding: 16px 20px 24px;
        border-top: 1px solid rgba(255, 255, 255, 0.08);
        border-bottom: 1px solid rgba(255, 255, 255, 0.08);
        z-index: 1050;
        gap: 4px;
    }

    .nav-links.open {
        display: flex;
    }

    .nav-links button {
        margin-left: 0;
        width: 100%;
        text-align: left;
        padding: 10px 8px;
        font-size: 1rem;
        border-bottom: 1px solid rgba(255, 255, 255, 0.06);
    }

    .nav-links button:last-child {
        border-bottom: none;
    }

    .nav-cta {
        margin-left: 0 !important;
        margin-top: 8px !important;
        width: 100%;
        text-align: center !important;
        padding: 10px 20px !important;
        font-size: 0.9rem !important;
        border-radius: 8px;
    }

    /* HERO */
    .hero {
        height: auto;
        min-height: 55vh;
        padding: 60px 20px 50px;
        /* iOS doesn't support background-attachment:fixed well */
        background-attachment: scroll;
    }

    .hero h1 {
        font-size: 2.2rem;
        line-height: 1.2;
        margin-bottom: 16px;
    }

    .hero p {
        font-size: 1rem;
        margin-bottom: 28px;
    }

    /* CARDS */
    .grid-container {
        grid-template-columns: 1fr;
        margin-top: 0;
        padding: 0 16px;
    }

    .grid-section {
        padding: 40px 0;
    }

    /* STATS / ADVANTAGE */
    .advantage-section {
        background-attachment: scroll;
        padding: 60px 20px;
    }

    .stats-container {
        gap: 24px;
        flex-direction: column;
        align-items: center;
    }

    .stat-item {
        min-width: unset;
    }

    .stat-number {
        font-size: 2.6rem;
    }

    .stat-label {
        font-size: 0.95rem;
    }

    /* VALUE PROPS */
    .prop-card {
        flex: 1 1 100%;
    }

    /* PAGE HERO (sub-pages) */
    .page-hero h1 {
        font-size: 2rem;
    }

    .page-hero {
        padding: 60px 20px;
    }

    /* CONTENT CONTAINER */
    .content-container {
        padding: 40px 16px;
    }

    /* AFFILIATE LOGOS */
    .logo-row {
        gap: 30px;
    }

    /* CONTACT FORM */
    .contact-form {
        grid-template-columns: 1fr;
        padding: 24px 16px;
    }

    .form-group.full-width {
        grid-column: span 1;
    }

    .submit-btn {
        grid-column: span 1;
    }

    /* SECTION HEADINGS */
    .advantage-section h2 {
        font-size: 1.9rem !important;
    }

    /* CONTACT HUB */
    .contact-hub h2 {
        font-size: 1.7rem !important;
    }

    .contact-note {
        grid-column: span 1;
    }

    /* FOOTER */
    footer {
        font-size: 0.85rem;
        word-break: break-word;
    }
}

/* ---- Small phones (≤ 480px) ---- */
@media (max-width: 480px) {
    .logo-img {
        height: 52px;
    }

    .hero h1 {
        font-size: 1.85rem;
    }

    .hero p {
        font-size: 0.95rem;
    }

    .stat-number {
        font-size: 2.2rem;
    }

    .card-title {
        font-size: 1.5rem;
    }

    .page-hero h1 {
        font-size: 1.75rem;
    }
}


/* --- OPSADMIN SPECIFIC --- */
.module-section {
    margin-top: 60px;
    background: rgba(0, 0, 0, 0.2);
    padding: 40px;
    border-radius: 15px;
    border: 1px solid rgba(255, 255, 255, 0.05);
}

.module-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 40px;
}

.module-column h4 {
    color: var(--primary-green);
    font-size: 1.2rem;
    text-transform: uppercase;
    margin-bottom: 20px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    padding-bottom: 10px;
}

.check-list {
    list-style: none;
}

.check-list li {
    margin-bottom: 12px;
    font-size: 0.9rem;
    color: #cbd5e1;
    display: flex;
    align-items: flex-start;
}

.check-list li::before {
    content: "✓";
    color: var(--primary-green);
    font-weight: bold;
    margin-right: 10px;
    min-width: 15px;
}

.highlight-box {
    background: linear-gradient(135deg, rgba(0, 232, 168, 0.1), rgba(0, 168, 232, 0.05));
    border-left: 4px solid var(--primary-green);
    padding: 20px;
    margin-bottom: 30px;
    border-radius: 0 10px 10px 0;
}

/* --- AFFILIATE LOGOS SECTION --- */
.affiliates-section {
    padding: 60px 20px;
    background-color: var(--dark-bg);
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    text-align: center;
}

.logo-row {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 60px;
    /* Space between logos */
    flex-wrap: wrap;
    /* Wraps to next line on mobile */
    margin-top: 30px;
}

.affiliate-logo {
    height: 50px;
    width: auto;
    max-width: 140px;
    object-fit: contain;
    opacity: 50.0;
    filter: grayscale(100%);
    transition: all 0.3s ease;
    cursor: pointer;
}

.affiliate-logo:hover {
    opacity: 1;
    filter: grayscale(0%);
    transform: scale(1.1);
}

/* Demo evaluation form radio/checkbox labels */
.note-check {
    display: flex;
    align-items: center;
    gap: 10px;
    color: #fff;
    font-size: 0.95rem;
    cursor: pointer;
    padding: 6px 10px;
    border-radius: 6px;
    transition: background 0.2s;
}

.note-check:hover {
    background: rgba(255, 255, 255, 0.05);
    color: #fff;
}


/* Contact form disclaimer */
.contact-note {
    grid-column: span 2;
    font-size: 0.8rem;
    margin-top: 10px;
    color: var(--text-gray);
}

.note-check input[type="radio"],
.note-check input[type="checkbox"] {
    accent-color: var(--primary-green);
    width: 16px;
    height: 16px;
    flex-shrink: 0;
}