:root {
    /* Color Palette */
    --obsidian: #080A0C;
    --mint: #00F5D4;
    --slate: #1A1F24;
    --white: #FFFFFF;
    --gray-bg: #F5F7F9;
    /* Very light gray for backgrounds */
    --gray-line: #E1E4E8;
    --text-body: #333333;

    /* Fonts */
    --font-head: 'Space Grotesk', sans-serif;
    --font-body: 'Inter', sans-serif;
}

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

html {
    scroll-behavior: smooth;
    font-size: 16px;
    overflow-x: clip !important;
}

body {
    background-color: var(--white);
    color: var(--obsidian);
    font-family: var(--font-body);
    line-height: 1.5;
    overflow-x: clip !important;
}

/* FULL WIDTH CONTAINERS */
.fluid-container {
    width: 100%;
    padding: 0 4vw;
    /* Responsive padding from edges */
    max-width: 100%;
    /* No constraint */
}

/* LIGHT GRID BACKGROUND */
.precision-grid-light {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
    /* Subtle grey grid on white */
    background-image:
        linear-gradient(var(--gray-line) 1px, transparent 1px),
        linear-gradient(90deg, var(--gray-line) 1px, transparent 1px);
    background-size: 60px 60px;
    opacity: 0.3;
}

/* TYPOGRAPHY */
h1,
h2,
h3,
h4 {
    font-family: var(--font-head);
    font-weight: 700;
    line-height: 1.1;
    letter-spacing: -0.03em;
}

h1 {
    font-size: clamp(3rem, 5vw, 5rem);
    margin-bottom: 1.5rem;
}

h2 {
    font-size: clamp(2rem, 3vw, 3rem);
    margin-bottom: 1rem;
}

p {
    font-size: 1.125rem;
    color: var(--text-body);
    max-width: 600px;
}

.text-mint {
    color: var(--mint);
}

/* BUTTONS - Sharp & Corporate */
.btn-enterprise {
    display: inline-block;
    background: var(--obsidian);
    color: var(--white);
    padding: 1rem 2rem;
    font-weight: 600;
    text-decoration: none;
    border: 1px solid var(--obsidian);
    transition: all 0.3s ease;
    border-radius: 0;
    /* Sharp corners */
}

.btn-enterprise:hover {
    background: var(--mint);
    border-color: var(--mint);
    color: var(--obsidian);
}

.btn-ghost {
    display: inline-block;
    background: transparent;
    color: var(--obsidian);
    padding: 1rem 2rem;
    font-weight: 600;
    text-decoration: none;
    border: 1px solid var(--obsidian);
    margin-left: 1rem;
    transition: all 0.3s ease;
    border-radius: 0;
}

.btn-ghost:hover {
    background: var(--obsidian);
    color: var(--white);
}

/* TOP BAR */
.top-bar {
    background: var(--slate);
    color: rgba(255, 255, 255, 0.7);
    font-size: 0.8rem;
    padding: 8px 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.top-bar .fluid-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    /* Ensures elements are vertically centered */
}

.top-links a {
    color: inherit;
    text-decoration: none;
    margin-left: 20px;
}

/* --- MOBILE FIXES FOR TOP BAR --- */
@media (max-width: 768px) {

    /* Hide the middle promo text on mobile to save space */
    .top-bar .fluid-container span:nth-child(2) {
        display: none;
    }

    /* Prevent text breaking and slightly reduce font size */
    .top-bar span,
    .top-bar .top-links a {
        white-space: nowrap;
        font-size: 13px;
    }
}

/* NAVBAR */
.navbar {
    position: sticky;
    top: 0;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid var(--gray-line);
    height: 90px;
    z-index: 1000;
    display: flex;
    align-items: center;
}

.nav-wrapper {
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 100%;
}

.brand-logo {
    display: flex;
    align-items: center;
    gap: 12px;
    text-decoration: none;
    color: var(--obsidian);
    font-size: 2.4rem;
    font-family: var(--font-head);
}

.nexus-symbol {
    width: 30px;
    height: 30px;
    background: var(--mint);
    clip-path: polygon(50% 0%, 100% 25%, 100% 75%, 50% 100%, 0% 75%, 0% 25%);
}

.nav-menu {
    display: flex;
    list-style: none;
    gap: 2rem;
}

.nav-menu li a {
    text-decoration: none;
    color: var(--obsidian);
    font-weight: 500;
    font-size: 0.95rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    position: relative;
    padding: 30px 0;
    /* Increase hit area for dropdown */
    display: flex;
    align-items: center;
    gap: 6px;
}

/* Mega Menu Logic (Simple CSS Hover) */
.has-dropdown:hover .mega-menu {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.has-dropdown:hover .chevron {
    transform: rotate(180deg);
}

.chevron {
    display: inline-block;
    transition: transform 0.3s ease;
    font-size: 1.2em;
    line-height: 1;
    margin-top: -3px;
    /* Optical adjustment */
}

.mega-menu {
    position: absolute;
    top: 90px;
    left: 0;
    width: 100vw;
    /* Full width dropdown */
    background: var(--white);
    border-bottom: 2px solid var(--obsidian);
    padding: 40px 4vw;
    display: flex;
    gap: 80px;
    opacity: 0;
    visibility: hidden;
    transform: translateY(10px);
    transition: all 0.3s ease;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
}

.mega-col h4 {
    color: var(--slate);
    margin-bottom: 15px;
    font-size: 0.9rem;
    opacity: 0.6;
}

.mega-col a {
    display: block;
    padding: 5px 0;
    text-transform: none !important;
    font-size: 1.2rem !important;
    font-weight: 700 !important;
}

.nav-cta {
    display: flex;
    align-items: center;
    gap: 20px;
}

.login-link {
    text-decoration: none;
    color: var(--obsidian);
    font-weight: 600;
}

/* ============================================
   MOBILE NAVBAR & HAMBURGER MENU
============================================ */
/* Hide hamburger by default on desktop */
.hamburger {
    display: none;
    flex-direction: column;
    gap: 6px;
    cursor: pointer;
    z-index: 1001;
    padding: 10px;
}

.hamburger .line {
    width: 30px;
    height: 2px;
    background-color: var(--obsidian);
    transition: transform 0.3s ease;
}

/* Tablet & Mobile Breakpoint */
@media (max-width: 1024px) {

    /* Hide the desktop Book Demo button to save space */
    .nav-cta {
        display: none;
    }

    /* Show the hamburger icon */
    .hamburger {
        display: flex;
    }

    /* Turn the flex menu into a full-screen slide-out drawer */
    .nav-menu {
        position: fixed;
        top: 90px;
        /* Right below the navbar */
        left: 100%;
        /* Hidden off-screen to the right */
        width: 100%;
        height: calc(100vh - 90px);
        background-color: var(--white);
        flex-direction: column;
        justify-content: flex-start;
        gap: 0;
        padding: 20px 6vw 80px 6vw;
        /* Bottom padding for scroll room */
        transition: left 0.4s cubic-bezier(0.16, 1, 0.3, 1);
        overflow-y: auto;
    }

    /* This class is toggled by JavaScript to slide the menu in */
    .nav-menu.active {
        left: 0;
    }

    /* Adjust main links for mobile */
    .nav-menu li {
        width: 100%;
    }

    .nav-menu li a {
        padding: 20px 0;
        font-size: 1.2rem;
        border-bottom: 1px solid var(--gray-line);
        display: flex;
        justify-content: space-between;
        /* Pushes the chevron ⌄ to the right */
    }

    /* Reset the giant absolute Mega Menu into a clean mobile accordion */
    .mega-menu {
        position: relative;
        top: 0;
        left: 0;
        width: 100%;
        box-shadow: none;
        border-bottom: none;
        padding: 0 0 10px 20px;
        /* Indent the sub-items */
        opacity: 0;
        visibility: hidden;
        display: none;
        /* Hide structurally */
        flex-direction: column;
        gap: 15px;
        transform: none;
        background: #fcfcfc;
    }

    .mega-col h4 {
        margin-top: 15px;
        margin-bottom: 5px;
        color: var(--mint);
        /* Highlight mobile headers */
    }

    .mega-col a {
        padding: 8px 0 !important;
        border-bottom: none !important;
        font-size: 1.05rem !important;
        color: #555 !important;
    }

    /* Disable the desktop hover effect on touch devices */
    .has-dropdown:hover .mega-menu {
        opacity: 0;
        visibility: hidden;
        display: none;
    }

    /* Mobile active state for dropdowns (Toggled by JS) */
    .has-dropdown.mobile-open .mega-menu {
        opacity: 1;
        visibility: visible;
        display: flex;
        animation: slideDown 0.3s ease forwards;
    }

    /* Flip the chevron when open */
    .has-dropdown.mobile-open .chevron {
        transform: rotate(180deg);
    }

    /* Animate the 2 hamburger lines into an "X" when clicked */
    .hamburger.active .line:nth-child(1) {
        transform: translateY(4px) rotate(45deg);
    }

    .hamburger.active .line:nth-child(2) {
        transform: translateY(-4px) rotate(-45deg);
    }

    @keyframes slideDown {
        from {
            opacity: 0;
            transform: translateY(-10px);
        }

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


/* HERO SPLIT */
.hero-split {
    display: flex;
    min-height: 500px;
    height: 90vh;
    border-bottom: 1px solid var(--gray-line);
}

.hero-text-side {
    width: 50%;
    background: var(--white);
    display: flex;
    align-items: center;
    padding: 0 4vw;
    position: relative;
}

.hero-tagline {
    display: block;
    font-family: var(--font-body);
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 2px;
    color: var(--slate);
    margin-bottom: 20px;
    font-size: 0.85rem;
}

.hero-buttons {
    margin-top: 40px;
}

.hero-image-side {
    width: 50%;
    position: relative;
    background: var(--obsidian);
    /* Fallback */
    overflow: hidden;
}

.hero-bg-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0.8;
}

@media (max-width: 900px) {
    .hero-split {
        flex-direction: column;
        /* Stacks text on top, image on bottom */
        height: auto;
        /* Removes the strict 90vh height restriction */
    }

    .hero-text-side {
        width: 100%;
        /* Makes text container take full width */
        padding: 60px 5vw;
        /* Adds top/bottom breathing room */
        justify-content: center;
    }

    .hero-image-side {
        width: 100%;
        /* Makes image take full width */
        height: 40vh;
        /* Gives the image a nice proportion on mobile */
        min-height: 300px;
        /* Ensures it doesn't get too small */
    }

    /* Fix the overlapping buttons */
    .hero-buttons {
        display: flex;
        flex-direction: column;
        /* Stacks buttons on top of each other */
        gap: 15px;
        /* Adds clean spacing between them */
        margin-top: 30px;
    }

    .hero-buttons a {
        margin-left: 0;
        /* Removes the desktop left-margin from the ghost button */
        width: 100%;
        /* Makes buttons stretch full width (better for thumbs!) */
        text-align: center;
        /* Centers the button text */
    }
}


.image-overlay-gradient {
    position: absolute;
    inset: 0;
    background: linear-gradient(45deg, rgba(8, 10, 12, 0.6), transparent);
}

/* ============================================
   STATS BAND
============================================ */
.stats-band {
    background: var(--obsidian);
    color: var(--white);
    padding: 100px 0;
}

.stats-flex {
    display: flex;
    justify-content: space-around;
    align-items: center;
    gap: 20px;
}

.stat-block {
    text-align: center;
    flex: 1;
    /* Helps balance the width evenly on desktop */
}

.stat-num {
    display: block;
    /* Uses clamp to scale text smoothly based on screen size */
    font-size: clamp(2.5rem, 5vw, 3.5rem);
    font-family: var(--font-head);
    font-weight: 700;
    color: var(--mint);
    line-height: 1.1;
    margin-bottom: 8px;
}

.stat-label {
    font-size: 0.9rem;
    opacity: 0.8;
    text-transform: uppercase;
    letter-spacing: 1px;
    display: block;
}

.vr-line {
    width: 1px;
    height: 70px;
    background: rgba(255, 255, 255, 0.2);
}

/* --- MOBILE RESPONSIVE TWEAKS --- */
@media (max-width: 768px) {
    .stats-band {
        padding: 60px 0;
        /* Reduce huge padding for mobile */
    }

    .stats-flex {
        flex-direction: column;
        /* Stack the items vertically */
        gap: 30px;
        /* Add breathing room between stats */
    }

    .vr-line {
        /* Transform the vertical line into a sleek horizontal divider */
        width: 80px;
        height: 1px;
        background: rgba(255, 255, 255, 0.15);
    }
}


/* VALUE SECTION — BENTO GRID */
.value-section {
    padding: 100px 0;
    background: var(--white);
}

.section-header {
    margin-bottom: 56px;
    max-width: 680px;
    text-align: center;
    margin-left: auto;
    margin-right: auto;
}

.section-header h2 {
    font-size: clamp(2rem, 4vw, 3rem);
    font-weight: 700;
    line-height: 1.15;
    margin-bottom: 16px;
    color: var(--obsidian);
}

.section-header p {
    font-size: 1rem;
    color: #888;
    line-height: 1.6;
}

/* BENTO GRID WRAPPER */
.bento-grid {
    display: flex;
    flex-direction: column;
    gap: 12px;
    max-width: 1100px;
    /* ← adjust this value to taste */
    margin-left: auto;
    margin-right: auto;
}

/* ROWS */
.bento-row {
    display: grid;
    gap: 12px;
}

.bento-row--top {
    grid-template-columns: 2fr 1fr;
}

.bento-row--bottom {
    grid-template-columns: 1fr 2fr;
}

/* SHARED CELL */
.bento-cell {
    background: var(--gray-bg);
    border-radius: 20px;
    padding: 36px 36px 0 36px;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    border: none;
}

/* TEXT BLOCK */
.bento-text {
    margin-bottom: 24px;
    max-width: 360px;
    flex-shrink: 0;
}

.bento-text h3 {
    font-size: 1.05rem;
    font-weight: 700;
    color: var(--obsidian);
    margin-bottom: 8px;
    line-height: 1.3;
}

.bento-text p {
    font-size: 0.88rem;
    color: #777;
    line-height: 1.65;
}

/* VISUAL AREA */
.bento-visual {
    flex: 1;
    border-radius: 14px 14px 0 0;
    overflow: hidden;
    background: var(--white);
    box-shadow: 0 -4px 24px rgba(0, 0, 0, 0.04);
    height: 280px;
    min-height: 280px;
}

.bento-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: top;
    display: block;
    opacity: 1;
    transition: opacity 0.3s ease;
}

.bento-placeholder {
    position: absolute;
    inset: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 20px;
    background-image:
        linear-gradient(rgba(0, 0, 0, 0.04) 1px, transparent 1px),
        linear-gradient(90deg, rgba(0, 0, 0, 0.04) 1px, transparent 1px);
    background-size: 28px 28px;
}

.bento-placeholder span {
    font-size: 1.8rem;
    opacity: 0.3;
}

.bento-placeholder p {
    font-size: 0.75rem;
    color: #bbb;
    text-align: center;
    max-width: 180px;
    line-height: 1.45;
    font-style: italic;
}

/* RESPONSIVE */
@media (max-width: 900px) {

    .bento-row--top,
    .bento-row--bottom {
        grid-template-columns: 1fr 1fr;
        height: auto;
    }

    .bento-cell {
        min-height: 320px;
    }
}

@media (max-width: 600px) {

    .bento-row--top,
    .bento-row--bottom {
        grid-template-columns: 1fr;
    }

    .bento-cell {
        min-height: 280px;
        padding: 28px 24px 0 24px;
    }
}

/* ROI SECTION FULL WIDTH */
.roi-full-width {
    background: var(--obsidian);
    color: var(--white);
    padding: 0;
    display: flex;
}

.split-layout {
    display: flex;
    width: 100%;
    padding: 0 !important;
    /* Override container padding */
}

.roi-content {
    width: 50%;
    padding: 100px 4vw;
}

.roi-image {
    width: 50%;
    background: #0f1216;
    position: relative;
    display: flex;
    align-items: flex-end;
    justify-content: center;
    padding-bottom: 100px;
    /* Grid Background Pattern inside the dark box */
    background-image: radial-gradient(var(--slate) 1px, transparent 1px);
    background-size: 20px 20px;
}

.tag-mint {
    display: inline-block;
    width: fit-content;
    background: rgba(0, 245, 212, 0.1);
    color: var(--mint);
    padding: 8px 16px;
    font-size: 0.85rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin-bottom: 25px;
}

.roi-calculator-box {
    margin-top: 50px;
    background: var(--slate);
    padding: 40px;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.slider-row {
    margin-bottom: 30px;
}

.slider-row label {
    display: block;
    margin-bottom: 10px;
    font-size: 0.9rem;
    color: #aaa;
}

.range-wrapper {
    display: flex;
    align-items: center;
    gap: 20px;
}

input[type=range] {
    flex: 1;
    accent-color: var(--mint);
}

#empValue,
#timeValue {
    font-family: var(--font-head);
    font-weight: 700;
    color: var(--mint);
    width: 50px;
    text-align: right;
}

.separator {
    border: 0;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    margin: 20px 0;
}

.result-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.result-row h3 {
    margin: 0;
    font-size: 2rem;
}

/* ABSTRACT UI */
.abstract-ui {
    width: 300px;
    height: 300px;
    display: flex;
    align-items: flex-end;
    gap: 20px;
}

.ui-bar {
    width: 100%;
    background: #2a313a;
    transition: height 1s;
}

.mint-bar {
    background: var(--mint);
    box-shadow: 0 0 30px rgba(0, 245, 212, 0.3);
}

/* FOOTER */
.enterprise-footer {
    background: var(--obsidian);
    color: var(--white);
    padding: 80px 0 36px 0;
}

.footer-top {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 64px;
    flex-wrap: wrap;
    gap: 48px;
}

.footer-brand h2 {
    font-size: 1.6rem;
    font-weight: 800;
    letter-spacing: -0.5px;
    margin-bottom: 12px;
}

.footer-brand p {
    color: #666;
    font-size: 0.88rem;
    line-height: 1.7;
    margin-bottom: 24px;
}

/* SOCIAL ICONS */
.footer-socials {
    display: flex;
    gap: 10px;
}

.footer-socials a {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 38px;
    height: 38px;
    border-radius: 10px;
    background: rgba(255, 255, 255, 0.06);
    color: #888;
    border: 1px solid rgba(255, 255, 255, 0.07);
    transition: background 0.2s, color 0.2s, border-color 0.2s;
}

.footer-socials a:hover {
    background: var(--mint);
    color: var(--obsidian);
    border-color: var(--mint);
}

/* NAV COLS */
.footer-nav {
    display: flex;
    gap: 64px;
}

.col h4 {
    font-size: 0.75rem;
    font-weight: 600;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: #444;
    margin-bottom: 18px;
}

.col a {
    display: block;
    color: #888;
    text-decoration: none;
    font-size: 0.9rem;
    margin-bottom: 12px;
    transition: color 0.2s;
}

.col a:hover {
    color: var(--white);
}

/* BOTTOM BAR */
.footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.07);
    padding-top: 28px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    color: #444;
    font-size: 0.82rem;
}

.legal-links {
    display: flex;
    gap: 24px;
}

.legal-links a {
    color: #444;
    text-decoration: none;
    transition: color 0.2s;
}

.legal-links a:hover {
    color: #888;
}

/* CONTACT PAGE STYLES */

.contact-hero {
    min-height: 40vh;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    background: var(--gray-bg);
    border-bottom: 1px solid var(--gray-line);
    padding: 80px 20px;
}

.contact-hero h1 {
    font-size: clamp(2.5rem, 4vw, 4rem);
    margin-bottom: 20px;
}

.contact-hero p {
    margin: 0 auto;
    max-width: 600px;
}

.contact-section {
    padding: 80px 0;
    max-width: 800px;
    margin: 0 auto;
}

.contact-form {
    display: grid;
    gap: 30px;
}

.form-group {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.form-label {
    font-weight: 600;
    font-size: 0.9rem;
    color: var(--obsidian);
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.form-input,
.form-select,
.form-textarea {
    width: 100%;
    padding: 15px 20px;
    border: 1px solid var(--gray-line);
    background: var(--white);
    font-family: var(--font-body);
    font-size: 1rem;
    transition: all 0.3s ease;
    border-radius: 0;
    /* Sharp corners */
}

.form-input:focus,
.form-select:focus,
.form-textarea:focus {
    outline: none;
    border-color: var(--obsidian);
    box-shadow: 0 0 0 3px rgba(8, 10, 12, 0.1);
}

.form-textarea {
    min-height: 150px;
    resize: vertical;
}

.btn-submit {
    background: var(--obsidian);
    color: var(--white);
    border: none;
    padding: 20px;
    font-size: 1.1rem;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.3s ease;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin-top: 20px;
}

.btn-submit:hover {
    background: var(--mint);
    color: var(--obsidian);
}

/* Responsive adjust for contact form */
@media (max-width: 768px) {
    .contact-section {
        padding: 40px 20px;
    }
}

/* ============================================
   OVERLAP FEATURE SECTION
============================================ */
.overlap-section {
    position: relative;
    padding: 180px 0;
    margin: 60px 0;
    overflow: hidden;
}

.overlap-bg-shape {
    position: absolute;
    top: 0;
    right: 0;
    bottom: 0;
    width: 70%;
    background: var(--mint);
    z-index: -1;
}

.overlap-container {
    display: flex;
    align-items: center;
    gap: 80px;
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 4vw;
}

.overlap-img-box {
    flex: 1.3;
    position: relative;
    z-index: 1;
}

.overlap-img-box img {
    width: 100%;
    height: auto;
    display: block;
    box-shadow: 0 30px 60px rgba(0, 0, 0, 0.15);
}

.overlap-content {
    flex: 1;
    color: var(--obsidian);
}

.overlap-content h2 {
    /* Using clamp so font sizes down smoothly on smaller screens */
    font-size: clamp(2rem, 5vw, 2.5rem);
    margin-bottom: 30px;
    line-height: 1.2;
}

.overlap-content p {
    font-size: 1rem;
    line-height: 1.7;
    margin-bottom: 20px;
    opacity: 0.9;
    max-width: 100%;
}

/* --- MOBILE & TABLET IMPROVEMENTS --- */
@media (max-width: 900px) {
    .overlap-section {
        /* Drastically reduce the 180px whitespace for mobile */
        padding: 80px 0;
        margin: 40px 0;
    }

    .overlap-bg-shape {
        width: 100%;
        /* Instead of starting at the very top, push it down 15%.
           This makes the image "pop" out of the top of the background,
           preserving the beautiful overlap effect even on mobile! */
        top: 15%;
        bottom: 0;
        /* Optional: give the top a slight curve to match your pricing section */
        border-radius: 16px 16px 0 0;
    }

    .overlap-container {
        flex-direction: column;
        gap: 40px;
    }

    .overlap-img-box {
        width: 100%;
    }

    .overlap-content {
        padding-bottom: 30px;
        /* Add breathing room at the bottom before next section */
    }
}

/* --- EXTRA SMALL MOBILE TWEAKS --- */
@media (max-width: 600px) {
    .overlap-section {
        padding: 60px 0;
        margin: 20px 0;
    }

    .overlap-bg-shape {
        top: 10%;
        /* Adjust overlap start point for small phones */
    }

    .overlap-content h2 {
        font-size: 1.8rem;
        margin-bottom: 20px;
    }

    .overlap-img-box img {
        /* Softer shadow on mobile devices so it doesn't look overwhelming */
        box-shadow: 0 15px 30px rgba(0, 0, 0, 0.1);
    }
}

/* PRICING FEATURE SECTION */
.pricing-section {
    position: relative;
    padding: 100px 0;
    margin: 60px 0;
    overflow: hidden;
}

.pricing-bg-shape {
    position: absolute;
    left: 0;
    height: 80vh;
    width: 46%;
    background: var(--mint);
    z-index: -1;
    border-radius: 0 16px 16px 0;
}

.pricing-container {
    display: flex;
    align-items: center;
    gap: 60px;
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 4vw;
}

.pricing-text-content {
    flex: 1;
    color: var(--obsidian);
}

.pricing-text-content h2 {
    font-size: 2.5rem;
    margin-bottom: 30px;
    line-height: 1.2;
}

.pricing-text-content p {
    font-size: 1rem;
    line-height: 1.7;
    margin-bottom: 20px;
    opacity: 0.9;
}

/* CARDS WRAPPER */
.pricing-cards-wrapper {
    flex: 1.4;
    display: flex;
    flex-direction: column;
    gap: 20px;
    z-index: 1;
}

/* INDIVIDUAL PRICING CARD */
.pricing-card {
    background-color: #ffffff;
    border-radius: 12px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.05);
    display: flex;
    padding: 40px;
    border: 1px solid rgba(0, 0, 0, 0.05);
}

/* PREMIUM CARD (Starter) — taller with more breathing room */
.pricing-card--premium {
    background-color: var(--obsidian);
    border: 1px solid rgba(255, 255, 255, 0.08);
    box-shadow: 0 10px 50px rgba(0, 0, 0, 0.25);
    padding: 52px 40px;
    min-height: 280px;
}

.pricing-card--premium .card-left h3 {
    color: var(--white);
}

.pricing-card--premium .card-left p {
    color: rgba(255, 255, 255, 0.6);
}

.pricing-card--premium .metric {
    color: rgba(255, 255, 255, 0.75);
}

.pricing-card--premium .metric svg {
    color: var(--mint);
}

.pricing-card--premium .feature-list li {
    color: rgba(255, 255, 255, 0.75);
}

.pricing-card--premium .feature-list li svg {
    color: var(--mint);
}

/* CARD LEFT CONTENT */
.card-left {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    padding-right: 40px;
}

.pricing-badge {
    background-color: #EFEFEF;
    color: #444;
    padding: 6px 10px;
    border-radius: 4px;
    font-size: 0.75rem;
    font-weight: 700;
    letter-spacing: 0.5px;
    margin-bottom: 20px;
}

.pricing-badge--premium {
    background-color: rgba(0, 245, 212, 0.15);
    color: var(--mint);
}

.card-left h3 {
    font-size: 3rem;
    font-weight: 300;
    margin: 0 0 15px 0;
    color: var(--obsidian);
}

.card-left p {
    font-size: 1rem;
    line-height: 1.5;
    color: #555;
    margin-bottom: 30px;
}

/* BUTTON STYLING */
.btn-pricing {
    margin-top: auto;
    background-color: var(--obsidian);
    color: #ffffff;
    text-decoration: none;
    padding: 12px 24px;
    border-radius: 6px;
    font-weight: 500;
    font-size: 0.95rem;
    transition: opacity 0.2s ease;
}

.btn-pricing:hover {
    opacity: 0.85;
}

.btn-pricing--premium {
    background-color: var(--mint);
    color: var(--obsidian);
}

.btn-pricing--premium:hover {
    opacity: 0.9;
}

/* CARD RIGHT CONTENT */
.card-right {
    flex: 1.1;
    border-left: 1px solid #EFEFEF;
    padding-left: 40px;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.card-right--premium {
    border-left: 1px solid rgba(255, 255, 255, 0.1);
}

.card-metrics {
    margin-bottom: 25px;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.metric {
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 0.95rem;
    color: #444;
}

.metric svg {
    color: #666;
}

.feature-title {
    font-size: 0.75rem;
    font-weight: 700;
    letter-spacing: 0.5px;
    color: #888;
    margin-bottom: 15px;
}

.feature-title--premium {
    color: rgba(255, 255, 255, 0.4);
}

.feature-list {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.feature-list li {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 0.95rem;
    color: #444;
}

.feature-list li svg {
    flex-shrink: 0;
    color: var(--obsidian);
}

/* RESPONSIVE DESIGN */
@media (max-width: 1100px) {
    .pricing-card {
        padding: 30px;
    }

    .pricing-card--premium {
        padding: 42px 30px;
    }

    .card-left {
        padding-right: 30px;
    }

    .card-right {
        padding-left: 30px;
    }
}

@media (max-width: 900px) {
    .pricing-bg-shape {
        width: 100%;
        height: 50%;
        top: 0;
        transform: none;
        border-radius: 0;
    }

    .pricing-container {
        flex-direction: column;
        gap: 40px;
    }

    .pricing-cards-wrapper {
        width: 100%;
    }
}

@media (max-width: 650px) {
    .pricing-card {
        flex-direction: column;
    }

    .pricing-card--premium {
        padding: 42px 24px;
    }

    .card-left {
        padding-right: 0;
        padding-bottom: 30px;
    }

    .btn-pricing {
        width: 100%;
        text-align: center;
    }

    .card-right {
        border-left: none;
        border-top: 1px solid #EFEFEF;
        padding-left: 0;
        padding-top: 30px;
    }

    .card-right--premium {
        border-top: 1px solid rgba(255, 255, 255, 0.1);
    }
}

/* THE AARHUS ENGINE & CASE STYLES */
.page-hero {
    background: var(--obsidian);
    color: var(--white);
    padding: 120px 0 80px 0;
    text-align: center;
    position: relative;
    overflow: hidden;
}

/* Subtle background graphic for hero */
.page-hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-image:
        linear-gradient(rgba(255, 255, 255, 0.03) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255, 255, 255, 0.03) 1px, transparent 1px);
    background-size: 40px 40px;
    z-index: 0;
}

.page-hero .fluid-container {
    position: relative;
    z-index: 1;
}

.page-hero h1 {
    font-size: clamp(3rem, 5vw, 4.5rem);
    margin-bottom: 20px;
}

.page-hero p {
    color: rgba(255, 255, 255, 0.85);
    /* Make text readable on dark bg */
    margin: 0 auto;
    /* Center the text block */
    max-width: 700px;
}

.page-hero .subtitle {
    font-size: 1.25rem;
    color: var(--mint);
    text-transform: uppercase;
    letter-spacing: 2px;
    margin-bottom: 20px;
    display: block;
    font-weight: 600;
}

.text-content-section {
    padding: 80px 0;
    max-width: 800px;
    margin: 0 auto;
}

.text-content-section h2 {
    margin-top: 40px;
    margin-bottom: 20px;
    font-size: 2rem;
    color: var(--obsidian);
}

.text-content-section p {
    max-width: 100%;
    margin-bottom: 20px;
    line-height: 1.6;
    color: #4a5568;
}

.text-content-section ul {
    margin-left: 20px;
    margin-bottom: 20px;
}

.text-content-section li {
    margin-bottom: 10px;
    color: #4a5568;
}

.quote-block {
    border-left: 4px solid var(--mint);
    padding-left: 30px;
    margin: 40px 0;
    font-style: italic;
    font-size: 1.2rem;
    color: var(--obsidian);
}

.case-stats-row {
    display: flex;
    justify-content: space-between;
    background: var(--gray-bg);
    padding: 40px;
    margin: 40px 0;
    border: 1px solid var(--gray-line);
}

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

.case-stat .num {
    display: block;
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--obsidian);
    font-family: var(--font-head);
}

.case-stat .label {
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: #666;
}

/* ============================================
   ROI SECTION (FULL WIDTH DARK THEME)
============================================ */

/* Main Container - Uses Obsidian Background */
.roi-full-width {
    display: flex;
    width: 100vw;
    background: var(--obsidian);
    color: var(--white);
    position: relative;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    overflow: hidden;
}

/* Left Content Area */
.roi-content {
    width: 50%;
    padding: 100px 6vw;
    display: flex;
    flex-direction: column;
    justify-content: center;
    position: relative;
    z-index: 2;
}

.roi-content h2 {
    font-size: clamp(2rem, 3.5vw, 3.5rem);
    color: var(--white);
    margin-bottom: 25px;
}

.roi-content p {
    color: rgba(255, 255, 255, 0.7);
    margin-bottom: 30px;
}

/* Right Image Area */
.roi-image {
    width: 50%;
    background: #0f1216;
    position: relative;
    display: flex;
    align-items: flex-end;
    justify-content: center;
    background-image:
        linear-gradient(rgba(255, 255, 255, 0.03) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255, 255, 255, 0.03) 1px, transparent 1px);
    background-size: 40px 40px;
    border-left: 1px solid rgba(255, 255, 255, 0.1);
}

/* Abstract Chart Bars */
.abstract-chart {
    display: flex;
    align-items: flex-end;
    gap: 25px;
    height: 60%;
    margin-bottom: 0;
}

.bar {
    width: 50px;
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    transition: all 0.5s ease;
    border-top-left-radius: 4px;
    border-top-right-radius: 4px;
}

.bar-1 {
    height: 40%;
}

.bar-2 {
    height: 65%;
}

.bar-3 {
    height: 50%;
}

.bar-4 {
    height: 85%;
}

/* Active Mint Bar */
.mint-glow {
    background: var(--mint);
    border-color: var(--mint);
    box-shadow: 0 0 50px rgba(0, 245, 212, 0.4);
    position: relative;
}

.mint-glow::after {
    content: '+4%';
    position: absolute;
    top: -40px;
    left: 50%;
    transform: translateX(-50%);
    color: var(--mint);
    font-weight: 700;
    font-family: var(--font-head);
    font-size: 1.2rem;
}

/* Primary Button (Mint) */
.btn-primary-mint {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    background: var(--mint);
    color: var(--obsidian);
    border: none;
    padding: 18px 30px;
    font-size: 1.1rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    cursor: pointer;
    transition: all 0.3s ease;
    align-self: flex-start;
    text-decoration: none;
}

.btn-primary-mint:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 30px rgba(0, 245, 212, 0.3);
    background: white;
}

/* ============================================
   MODAL STYLES (Fixed Step Logic)
============================================ */

.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background: rgba(8, 10, 12, 0.9);
    backdrop-filter: blur(10px);
    z-index: 9999;
    display: none;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.modal-overlay.show {
    display: flex;
    opacity: 1;
}

.modal-container {
    background: var(--white);
    color: var(--obsidian);
    width: 90%;
    max-width: 550px;
    padding: 50px;
    position: relative;
    border-radius: 0;
    box-shadow: 0 30px 100px rgba(0, 0, 0, 0.5);
    animation: slideUp 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

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

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

/* === CRITICAL FIX: STEP LOGIC === */
.modal-step {
    display: none;
    /* Hide all steps by default */
    animation: fadeIn 0.4s ease;
}

.modal-step.active {
    display: block;
    /* Only show the one with .active class */
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(10px);
    }

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

/* ================================ */

/* Typography */
.modal-container h3 {
    font-size: 1.8rem;
    margin-bottom: 10px;
    color: var(--obsidian);
}

.modal-container .subtext {
    color: #666;
    margin-bottom: 30px;
}

/* Close Button */
.close-btn {
    position: absolute;
    top: 20px;
    right: 20px;
    background: transparent;
    border: none;
    font-size: 2rem;
    line-height: 1;
    cursor: pointer;
    color: var(--obsidian);
    transition: color 0.3s;
}

.close-btn:hover {
    color: var(--mint);
}

/* Progress Indicator */
.modal-progress {
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 40px;
}

.progress-step {
    width: 35px;
    height: 35px;
    border-radius: 50%;
    background: #f0f0f0;
    color: #999;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 0.9rem;
}

.progress-step.active {
    background: var(--mint);
    color: var(--obsidian);
}

.progress-line {
    width: 40px;
    height: 2px;
    background: #f0f0f0;
}

/* Sliders */
.slider-group {
    margin-bottom: 30px;
}

.slider-header {
    display: flex;
    justify-content: space-between;
    margin-bottom: 10px;
    font-weight: 600;
}

.slider-header span {
    color: var(--mint);
    font-weight: 700;
}

.mint-slider {
    -webkit-appearance: none;
    width: 100%;
    height: 6px;
    background: #e1e4e8;
    border-radius: 3px;
    outline: none;
}

.mint-slider::-webkit-slider-thumb {
    -webkit-appearance: none;
    appearance: none;
    width: 24px;
    height: 24px;
    background: var(--mint);
    cursor: pointer;
    border-radius: 50%;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.2);
    transition: transform 0.2s;
}

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

/* Inputs */
.email-input-group input {
    width: 100%;
    padding: 15px;
    border: 1px solid #e1e4e8;
    font-size: 1rem;
    font-family: var(--font-body);
    margin-bottom: 20px;
}

.email-input-group input:focus {
    outline: none;
    border-color: var(--obsidian);
}

/* Action Buttons */
.btn-full-width {
    width: 100%;
    background: var(--obsidian);
    color: var(--white);
    border: none;
    padding: 18px;
    font-size: 1rem;
    font-weight: 600;
    text-transform: uppercase;
    cursor: pointer;
    transition: background 0.3s;
    margin-bottom: 10px;
}

.btn-full-width:hover {
    background: var(--mint);
    color: var(--obsidian);
}

.btn-text {
    background: none;
    border: none;
    text-decoration: underline;
    cursor: pointer;
    color: #666;
    font-size: 0.9rem;
    width: 100%;
    text-align: center;
}

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

/* Result Box */
.result-box {
    text-align: center;
    margin: 20px 0;
    padding: 30px;
    background: #f9f9f9;
}

.result-box .label {
    display: block;
    color: #666;
    font-size: 0.9rem;
    text-transform: uppercase;
    margin-bottom: 10px;
}

.result-box h2 {
    font-size: 3rem;
    color: var(--mint);
    margin: 0;
}

.disclaimer {
    text-align: center;
    font-size: 0.8rem;
    color: #999;
    margin-bottom: 20px;
}

/* Responsive adjustments */
@media (max-width: 1024px) {
    .roi-full-width {
        flex-direction: column;
        height: auto;
    }

    .roi-content,
    .roi-image {
        width: 100%;
    }

    .roi-content {
        padding: 60px 5vw;
    }

    .roi-image {
        height: 400px;
        border-left: none;
        border-top: 1px solid rgba(255, 255, 255, 0.1);
    }
}