:root {
    --bg-color: #050507;
    --surface-color: #0f0f14;
    --text-primary: #ffffff;
    --text-secondary: #9ca3af;
    --accent-color: #8b5cf6;
    /* Lightened from #7c3aed for better AA contrast */
    --accent-gradient: linear-gradient(135deg, #8b5cf6 0%, #db2777 100%);
    --font-heading: 'Outfit', sans-serif;
    --font-body: 'Inter', sans-serif;
    --container-width: 1200px;
    --border-radius: 24px;
    --transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

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

body {
    background-color: var(--bg-color);
    color: var(--text-primary);
    font-family: var(--font-body);
    line-height: 1.6;
    overflow-x: hidden;
}

/* Typography */
h1,
h2,
h3,
.logo {
    font-family: var(--font-heading);
    font-weight: 700;
}

h1 {
    font-size: 4rem;
    line-height: 1.1;
    margin-bottom: 1.5rem;
    letter-spacing: -1px;
}

h2 {
    font-size: 2.5rem;
    margin-bottom: 3rem;
}

h3 {
    font-size: 1.75rem;
    margin-bottom: 0.5rem;
}

p {
    font-size: 1.1rem;
    color: var(--text-secondary);
    margin-bottom: 1rem;
}

a {
    text-decoration: none;
    color: inherit;
    transition: var(--transition);
}

.highlight {
    background: var(--accent-gradient);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

.eyebrow {
    text-transform: uppercase;
    letter-spacing: 3px;
    font-size: 0.875rem;
    font-weight: 700;
    color: var(--accent-color);
    display: block;
    margin-bottom: 1.5rem;
}

/* Utilities */
.container {
    max-width: var(--container-width);
    margin: 0 auto;
    padding: 0 2rem;
}

.text-center {
    text-align: center;
}

.btn-primary-outline {
    border: 1px solid rgba(255, 255, 255, 0.2);
    padding: 0.75rem 1.5rem;
    border-radius: 50px;
}

/* Accessibility */
.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border-width: 0;
}

.btn-primary-outline:hover {
    border-color: white;
    background: rgba(255, 255, 255, 0.1);
}

.btn-primary {
    background: var(--accent-gradient);
    color: white !important;
    padding: 0.75rem 1.5rem;
    border-radius: 50px;
    border: none;
    font-weight: 600;
    text-align: center;
    display: inline-block;
    cursor: pointer;
    box-shadow: 0 4px 15px rgba(124, 58, 237, 0.4);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(124, 58, 237, 0.6);
}

.mobile-cta {
    margin-top: 1rem;
    width: 100%;
}

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

.nav-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    font-size: 1.5rem;
    letter-spacing: -0.5px;
}

.dot {
    color: var(--accent-color);
}

.nav-links {
    display: flex;
    gap: 2rem;
}

.nav-links a:hover {
    color: var(--accent-color);
}

/* Hero Section */
.hero {
    min-height: 80vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding-top: 5rem;
    position: relative;
    overflow: hidden;
}

.hero-content {
    position: relative;
    z-index: 2;
    max-width: 800px;
}

.hero-image-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: url('images/hero_bg.png') center/cover no-repeat;
    opacity: 0.4;
    mask-image: radial-gradient(circle at center, black 0%, transparent 80%);
    -webkit-mask-image: radial-gradient(circle at center, black 0%, transparent 80%);
    z-index: -1;
}

/* Sectors Section */
.sectors {
    padding: 4rem 0 8rem 0;
}

.sectors-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 2rem;
}

.sector-card {
    background: var(--surface-color);
    border-radius: var(--border-radius);
    overflow: hidden;
    position: relative;
    border: 1px solid rgba(255, 255, 255, 0.05);
    display: block;
    height: 100%;
}

.sector-card:hover {
    transform: translateY(-10px);
    border-color: var(--accent-color);
    box-shadow: 0 20px 40px rgba(124, 58, 237, 0.15);
}

.sector-image {
    height: 300px;
    position: relative;
    overflow: hidden;
}

.sector-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s ease;
}

.sector-card:hover .sector-image img {
    transform: scale(1.1);
}

.sector-image .overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, var(--surface-color) 0%, transparent 100%);
}

.sector-info {
    padding: 2rem;
}

.btn-link {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    margin-top: 1rem;
    color: var(--accent-color);
    font-weight: 600;
}

.sector-card:hover .btn-link i {
    transform: translateX(5px);
    transition: transform 0.3s ease;
}

/* Method Section */
.method {
    padding: 6rem 0;
    background: linear-gradient(to bottom, var(--bg-color), #0a0a10);
}

.method-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 3rem;
    margin-top: 4rem;
}

.method-item {
    background: rgba(255, 255, 255, 0.03);
    padding: 2.5rem;
    border-radius: 20px;
    border: 1px solid rgba(255, 255, 255, 0.05);
    transition: var(--transition);
}

.method-item:hover {
    background: rgba(255, 255, 255, 0.05);
    transform: translateY(-5px);
}

.icon-box {
    font-size: 2rem;
    color: white;
    margin-bottom: 1.5rem;
    background: var(--accent-gradient);
    width: 60px;
    height: 60px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 12px;
    margin-left: auto;
    margin-right: auto;
}

/* Footer */
footer {
    padding: 3rem 0;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    text-align: center;
}

.footer-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 2rem;
}

.footer-links {
    display: flex;
    gap: 2rem;
}

.footer-links a:hover {
    color: white;
}

.copyright {
    font-size: 0.875rem;
    opacity: 0.5;
}

/* Navigation Dropdown */
.dropdown {
    position: relative;
    display: inline-block;
}

.dropbtn {
    background: none;
    border: none;
    color: var(--text-primary);
    font-family: var(--font-body);
    font-size: 1rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.dropdown-content {
    display: none;
    position: absolute;
    background-color: var(--surface-color);
    min-width: 200px;
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.2);
    border-radius: 12px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    z-index: 101;
    top: 100%;
    left: 50%;
    transform: translateX(-50%);
    padding: 0.5rem;
}

.dropdown-content a {
    color: var(--text-primary);
    padding: 12px 16px;
    text-decoration: none;
    display: block;
    border-radius: 8px;
    font-size: 0.9rem;
}

.dropdown-content a:hover {
    background-color: rgba(255, 255, 255, 0.05);
    color: var(--accent-color);
}

.dropdown:hover .dropdown-content {
    display: block;
}

/* Method Steps */
.method-steps {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    margin-top: 4rem;
}

.method-step-card {
    background: rgba(255, 255, 255, 0.03);
    padding: 2rem;
    border-radius: 20px;
    border: 1px solid rgba(255, 255, 255, 0.05);
    transition: var(--transition);
    text-align: left;
}

.method-step-card:hover {
    transform: translateY(-5px);
    border-color: var(--accent-color);
}

.step-icon {
    width: 40px;
    height: 40px;
    background: var(--accent-gradient);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    margin-bottom: 1.5rem;
}

.method-step-card h4 {
    margin-bottom: 0.5rem;
    font-size: 1.25rem;
}

/* Reviews */
.review-card {
    transition: var(--transition);
}

.review-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
}

/* Contact Section */
.contact-wrapper {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
}

/* Responsive */
/* Mobile Menu */
.mobile-menu-btn {
    display: none;
    background: none;
    border: none;
    color: white;
    font-size: 1.5rem;
    cursor: pointer;
    z-index: 201;
    /* Ensure button is clickbale if needed outside menu */
}

.mobile-menu {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh;
    background: var(--bg-color);
    z-index: 300;
    /* High z-index to cover everything */
    padding: 2rem;
    display: none;
    flex-direction: column;
}

.mobile-menu.active {
    display: flex;
}

.mobile-menu-links {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
    margin-top: 2rem;
    font-size: 1.25rem;
}

.mobile-menu-links a {
    color: white;
    text-decoration: none;
    font-weight: 500;
}

.mobile-menu-links a:hover {
    color: var(--accent-color);
}

.close-menu-btn {
    background: none;
    border: none;
    color: white;
    font-size: 1.5rem;
    cursor: pointer;
}

/* ROI Calculator */
.range-slider {
    -webkit-appearance: none;
    appearance: none;
    width: 100%;
    height: 8px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 5px;
    outline: none;
    transition: var(--transition);
}

.range-slider::-webkit-slider-thumb {
    -webkit-appearance: none;
    appearance: none;
    width: 24px;
    height: 24px;
    border-radius: 50%;
    background: var(--accent-color);
    cursor: pointer;
    box-shadow: 0 0 10px rgba(99, 102, 241, 0.5);
    transition: var(--transition);
}

.range-slider::-webkit-slider-thumb:hover {
    transform: scale(1.1);
}

.desktop-only {
    display: inline-block;
}

/* Responsive */
@media (max-width: 968px) {

    /* Increased breakpoint to catch tablets */
    h1 {
        font-size: 2.5rem;
    }

    .nav-links,
    .desktop-only {
        display: none !important;
    }

    .mobile-menu-btn {
        display: block;
    }

    .tech-content {
        grid-template-columns: 1fr !important;
    }

    .calculator-grid {
        grid-template-columns: 1fr !important;
        gap: 2rem !important;
    }

    .hero {
        min-height: 60vh;
    }

    .contact-wrapper {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
}

/* Exit Intent Popup */
.exit-popup-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.85);
    backdrop-filter: blur(5px);
    z-index: 9999;
    display: flex;
    justify-content: center;
    align-items: center;
    animation: fadeIn 0.3s ease;
}

.exit-popup-content {
    background: var(--surface-color);
    border: 1px solid var(--accent-color);
    padding: 3rem;
    border-radius: 24px;
    max-width: 500px;
    width: 90%;
    text-align: center;
    position: relative;
    box-shadow: 0 20px 50px rgba(124, 58, 237, 0.3);
    animation: slideUp 0.4s ease;
}

.popup-icon {
    font-size: 3rem;
    color: var(--accent-color);
    margin-bottom: 1.5rem;
}

.exit-popup-content h2 {
    font-size: 2rem;
    margin-bottom: 1rem;
    line-height: 1.1;
}

.exit-popup-content p {
    color: var(--text-secondary);
    margin-bottom: 2rem;
}

.popup-form input {
    width: 100%;
    padding: 1rem;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    color: white;
    margin-bottom: 1rem;
    font-family: inherit;
}

.popup-form input:focus {
    outline: none;
    border-color: var(--accent-color);
}

.close-popup {
    position: absolute;
    top: 1rem;
    right: 1.5rem;
    background: none;
    border: none;
    color: var(--text-secondary);
    font-size: 1.5rem;
    cursor: pointer;
    transition: 0.3s;
}

/* Premium Glow Button for Popup */
.btn-primary-glow {
    width: 100%;
    padding: 1.2rem;
    font-size: 1.1rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: white;
    background: linear-gradient(135deg, #7c3aed 0%, #3b82f6 100%);
    border: none;
    border-radius: 12px;
    cursor: pointer;
    position: relative;
    overflow: hidden;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 10px 20px rgba(124, 58, 237, 0.4),
        0 0 0 2px rgba(255, 255, 255, 0.1) inset;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.2);
    margin-top: 0.5rem;
}

.btn-primary-glow:hover {
    transform: translateY(-2px) scale(1.02);
    box-shadow: 0 15px 30px rgba(124, 58, 237, 0.6),
        0 0 0 2px rgba(255, 255, 255, 0.3) inset;
    background: linear-gradient(135deg, #8b5cf6 0%, #60a5fa 100%);
}

.btn-primary-glow:active {
    transform: translateY(1px) scale(0.98);
}

/* Add a shiny sweep animation */
.btn-primary-glow::after {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: linear-gradient(to right,
            rgba(255, 255, 255, 0) 0%,
            rgba(255, 255, 255, 0.3) 50%,
            rgba(255, 255, 255, 0) 100%);
    transform: rotate(45deg);
    transition: all 0.5s;
    opacity: 0;
}

.btn-primary-glow:hover::after {
    left: 100%;
    opacity: 1;
    transition: 0.7s;
}

.close-popup:hover {
    color: white;
    transform: rotate(90deg);
}

.popup-disclaimer {
    font-size: 0.8rem;
    margin-top: 1rem;
    margin-bottom: 0 !important;
    opacity: 0.6;
}

@keyframes slideUp {
    from {
        transform: translateY(50px);
        opacity: 0;
    }

    to {
        transform: translateY(0);
        opacity: 1;
    }
}