:root {
    --primary: #00D1FF;
    --primary-gradient: linear-gradient(135deg, #00A3FF, #0057FF);
    --bg-dark: #000000;
    --bg-card: rgba(255, 255, 255, 0.02);
    --shine-color: rgba(255, 255, 255, 0.8);
    --text-white: #FFFFFF;
    --text-gray: #B0B0B0;
    --accent-blue: rgba(0, 163, 255, 0.3);
}

/* Brand Styling Utilities */
.brand-nex {
    color: #ffffff !important;
}

.brand-serve {
    color: var(--primary) !important;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Inter', sans-serif;
}

html {
    scroll-snap-type: y mandatory;
    scroll-behavior: smooth;
}

body {
    background: var(--bg-dark);
    color: var(--text-white);
    overflow-x: hidden;
    line-height: 1.6;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    width: 100%;
    position: relative;
    z-index: 50; /* High z-index to stay forward */
}

.hero-container {
    width: 100%;
    margin: 0;
    max-width: 100%;
}

.badge {
    display: inline-block;
    padding: 4px 12px;
    border-radius: 100px;
    background: rgba(0, 209, 255, 0.1);
    color: var(--primary);
    font-size: 13px;
    font-weight: 600;
    letter-spacing: 1px;
    text-transform: uppercase;
    margin-bottom: 15px;
    border: 1px solid rgba(0, 209, 255, 0.2);
}

.badge.accent {
    background: rgba(0, 87, 255, 0.1);
    border-color: rgba(0, 87, 255, 0.2);
}

.navbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 10%;
    position: fixed;
    width: 100%;
    background: rgba(0, 0, 0, 0.7);
    backdrop-filter: blur(20px);
    z-index: 1000;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    transition: all 0.3s ease;
}

@media (max-width: 1400px) {
    .navbar {
        padding: 10px 5%;
    }
}

@media (max-width: 1250px) {
    .navbar {
        padding: 15px 3%;
    }
    .navbar nav {
        gap: 8px;
    }
    .navbar .logo {
        gap: 10px;
    }
}

.navbar .logo {
    display: flex;
    flex-direction: row;
    align-items: flex-end;
    /* Align tagline and contact to the bottom of the logo */
    gap: 12px;
    padding-bottom: 8px;
    /* Visual adjustment to match logo baseline */
}

.navbar nav {
    display: flex;
    align-items: center;
    gap: 8px;
    /* Consistent gap between all buttons */
}

/* Branding Info Horizontal Stack */
.branding-info {
    display: flex;
    flex-direction: row;
    align-items: center;
    gap: 8px;
}

.logo-link {
    display: contents;
    text-decoration: none;
}

.header-logo {
    height: 55px;
    width: auto;
    display: block;
    mix-blend-mode: screen;
    filter: brightness(1.3) contrast(1.8);
    transition: transform 0.3s ease;
}

.logo-link:hover .header-logo {
    transform: scale(1.05);
}

.powered-by {
    font-size: 11px;
    font-weight: 600;
    color: #ffffff;
    letter-spacing: 0.5px;
    opacity: 1;
    text-transform: none;
    white-space: nowrap;
    align-self: flex-end;
    /* Align specifically to bottom of logo */
    margin-bottom: 3px;
    /* Fine-tune baseline alignment */
}

.blue-text {
    color: #00A3FF;
}

.navbar a {
    color: var(--text-gray);
    text-decoration: none;
    font-weight: 500;
    transition: 0.3s;
}

.navbar nav a {
    margin-left: 0;
    /* Remove inherited margin for nav items */
}

.navbar a.white {
    color: #ffffff !important;
}

.navbar a.nav-btn {
    background: var(--primary-gradient);
    color: white !important;
    padding: 6px 16px;
    border-radius: 100px;
    font-weight: 700;
    font-size: 12px;
    box-shadow: 0 4px 15px rgba(0, 163, 255, 0.3);
}

.navbar a.nav-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(0, 163, 255, 0.5);
    color: white !important;
}

.navbar a:hover {
    color: var(--primary);
}

/* Nav Link Buttons (Secondary Glass Style) */
.nav-link-btn {
    color: #ffffff !important;
    text-decoration: none;
    font-weight: 600;
    font-size: 13px;
    padding: 6px 12px;
    border-radius: 50px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    transition: all 0.3s ease;
    backdrop-filter: blur(10px);
}

.nav-link-btn:hover {
    background: rgba(255, 255, 255, 0.1);
    border-color: var(--primary);
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(0, 209, 255, 0.2);
}

/* Header Contact Number - Static Branding Style */
.header-contact {
    display: flex;
    align-items: center;
    gap: 3px;
    margin-left: 10px;
    padding: 2px 8px;
    background: rgba(0, 209, 255, 0.03);
    border: 1px solid rgba(0, 209, 255, 0.08);
    border-radius: 50px;
    text-decoration: none;
    cursor: default;
    position: relative;
    overflow: hidden;
}

.header-contact::after {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
    animation: shine-contact 6s infinite;
}

@keyframes shine-contact {
    0% {
        left: -100%;
    }

    20% {
        left: 100%;
    }

    100% {
        left: 100%;
    }
}

.contact-svg {
    width: 15px;
    height: 15px;
    color: var(--primary);
    animation: phone-shake 5s infinite;
}

@keyframes phone-shake {

    0%,
    90%,
    100% {
        transform: rotate(0);
    }

    92% {
        transform: rotate(15deg);
    }

    94% {
        transform: rotate(-15deg);
    }

    96% {
        transform: rotate(15deg);
    }

    98% {
        transform: rotate(-15deg);
    }
}

.contact-num {
    color: var(--primary);
    font-weight: 600;
    font-size: 10px;
    letter-spacing: 0.3px;
}

/* Hover effect removed as requested */

.hero {
    min-height: 100vh;
    scroll-snap-align: start;
    display: flex;
    flex-direction: column;
    justify-content: center;
    background: var(--bg-dark);
    padding: 120px 10% 60px;
    position: relative;
    overflow: hidden;
}

.hero-smoke-video {
    position: absolute;
    bottom: -5vh;
    left: -15vw;
    height: 80%;
    width: auto;
    z-index: 0;
    pointer-events: none;
    mix-blend-mode: screen;
    opacity: 0.35;
    object-fit: cover;
    -webkit-mask-image: radial-gradient(ellipse at 50% 60%, rgba(0, 0, 0, 1) 40%, rgba(0, 0, 0, 0) 70%);
    mask-image: radial-gradient(ellipse at 50% 60%, rgba(0, 0, 0, 1) 40%, rgba(0, 0, 0, 0) 70%);
}

/* === HERO MAIN: 2-column grid, 2 implicit rows (Web View) === */
.hero-main {
    position: relative;
    z-index: 2;
    display: grid;
    grid-template-columns: auto 1fr;
    grid-template-rows: auto auto;
    gap: 20px 60px;
    width: 100%;
    max-width: none;
    margin: 0 auto;
    align-items: start;
}

/* Col 1, Row 1: Headline + Subtitle */
.hero-text-top {
    grid-column: 1;
    grid-row: 1;
}

/* Col 1, Row 2: Benefit tiles */
.hero-main > .benefit-grid {
    grid-column: 1;
    grid-row: 2;
}

/* Col 2, Rows 1+2: Spans both rows via CSS Subgrid.
   Subrow 1 = buttons (bottom-aligned inside headline row).
   Subrow 2 = video (exactly aligned with the tiles row). */
.hero-video-bottom {
    grid-column: 2;
    grid-row: 1 / 3;         /* span both rows */
    align-self: start;
    display: flex;
    flex-direction: column;
    width: 100%;
}

/* Buttons: sit inside subrow 1, aligned to the bottom edge */
.hero-video-bottom .hero-actions {
    align-self: end;         /* bottom of headline row = just above the video */
    padding-bottom: 16px;
    display: flex;
    justify-content: flex-end;
    width: 100%;
}

/* Video wrapper: fills subrow 2 = same height as benefit-grid */
.hero-video-frame-wrap {
    align-self: stretch;
    display: flex;
    flex-direction: column;
}

/* Video frame fills the container height */
.hero-video-bottom .video-frame {
    width: 100%;
    aspect-ratio: 16 / 9;
    max-width: none;
    height: auto;
}


.video-frame {
    width: 100%;
    max-width: none;
    aspect-ratio: 16 / 9;
    background: #000;
    border-radius: 24px;
    overflow: hidden;
    /* Dark tablet bezel */
    border: 16px solid #222;
    box-shadow: 0 40px 100px rgba(0, 0, 0, 0.7),
        inset 0 0 20px rgba(255, 255, 255, 0.5);
    position: relative;
    z-index: 2;
    transition: all 0.5s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

/* Screen reflection sweep */
.video-frame::after {
    content: "";
    position: absolute;
    top: 0;
    left: -150%;
    width: 100%;
    height: 100%;
    background: linear-gradient(105deg,
            rgba(255, 255, 255, 0) 0%,
            rgba(255, 255, 255, 0.05) 50%,
            rgba(255, 255, 255, 0) 100%);
    transform: skewX(-20deg);
    animation: screen-glide 8s infinite ease-in-out;
    pointer-events: none;
    z-index: 3;
}

@keyframes screen-glide {
    0% {
        left: -150%;
    }

    20% {
        left: 150%;
    }

    100% {
        left: 150%;
    }
}

/* Power LED Removed for tablet look */
.video-frame::before {
    display: none;
}

@keyframes led-pulse {

    0%,
    100% {
        opacity: 0.4;
        transform: scale(0.9);
    }

    50% {
        opacity: 1;
        transform: scale(1.1);
    }
}

/* Monitor Stand Base Removed */
.hero-video-wrap {
    position: relative;
    padding-bottom: 0px;
}


.video-frame iframe,
.hero-local-video {
    width: 100%;
    height: 100%;
    border: none;
    object-fit: cover;
    border-radius: 12px;
    /* Inner rounding for the screen surface */
}

/* Screenshot Gallery Under Video */
.hero-gallery {
    display: flex;
    gap: 15px;
    margin-top: 25px;
    justify-content: center;
    /* Center thumbnails */
}

.gallery-item {
    width: 216px;
    aspect-ratio: 16 / 9;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    overflow: hidden;
    cursor: pointer;
    position: relative;
    transition: all 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
}

.gallery-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 1;
    /* Changed from 0.7 for maximum clarity */
    transition: 0.4s;
}

.gallery-item:hover {
    transform: translateY(-8px) scale(1.05);
    border-color: var(--primary);
    box-shadow: 0 10px 30px rgba(0, 209, 255, 0.3);
}

.gallery-item:hover img {
    opacity: 1;
}

.magnify-icon {
    position: absolute;
    bottom: 8px;
    right: 8px;
    font-size: 14px;
    opacity: 0;
    transition: 0.3s;
    background: rgba(0, 209, 255, 0.8);
    color: white;
    width: 24px;
    height: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
}

.gallery-item:hover .magnify-icon {
    opacity: 1;
}

/* Lightbox / Maximize View */
.lightbox {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.95);
    backdrop-filter: blur(10px);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 9999;
    opacity: 0;
    pointer-events: none;
    transition: 0.4s ease;
}

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

.lightbox img {
    max-width: 90%;
    max-height: 85%;
    border-radius: 20px;
    box-shadow: 0 0 100px rgba(0, 209, 255, 0.2);
    transform: scale(0.9);
    transition: 0.5s cubic-bezier(0.165, 0.84, 0.44, 1);
}

.lightbox.active img {
    transform: scale(1);
}

.close-lightbox {
    position: absolute;
    top: 40px;
    right: 40px;
    color: white;
    font-size: 40px;
    cursor: pointer;
    font-weight: 300;
}


.video-glow {
    display: none;
}


@keyframes float-slow {

    0%,
    100% {
        transform: translateY(0) rotate(0deg);
    }

    50% {
        transform: translateY(-20px) rotate(2deg);
    }
}

@keyframes pulse-glow {

    0%,
    100% {
        transform: scale(1);
        opacity: 0.5;
    }

    50% {
        transform: scale(1.1);
        opacity: 0.8;
    }
}

.hero h1 {
    font-size: clamp(40px, 8vw, 66px);
    margin-bottom: clamp(12px, 3vh, 24px);
    font-weight: 800;
    line-height: 1.1;
    color: var(--text-white);
}

.hero h1 .accent {
    color: #00A3FF;
    position: relative;
    display: inline-block;
    vertical-align: bottom;
}





/* Ensure NexServe tagline uses the same blue */
.hero p .accent {
    color: #00A3FF;
    background: none;
    -webkit-text-fill-color: initial;
}

.hero p {
    font-size: clamp(18px, 4vw, 24px);
    color: var(--text-gray);
    margin-bottom: 0;
    max-width: 550px;
    font-weight: 400;
    text-align: left;
}


.section {
    min-height: 100vh;
    scroll-snap-align: start;
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: 30px 10% 20px;
    text-align: center;
}

.section.dark {
    background: #050505;
}

.section h2 {
    font-size: clamp(32px, 6vw, 52px);
    margin-bottom: clamp(15px, 4vh, 40px);
    color: var(--text-white);
    font-weight: 700;
    line-height: 1.2;
}

.grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 30px;
    margin-top: 40px;
}

.card {
    background: var(--bg-card);
    padding: 50px 40px;
    border-radius: 24px;
    border: 1px solid rgba(255, 255, 255, 0.05);
    transition: 0.5s cubic-bezier(0.165, 0.84, 0.44, 1);
    position: relative;
    overflow: hidden;
    text-align: left;
}

.feat-card .icon {
    font-size: 40px;
    margin-bottom: 24px;
}

.card h3 {
    font-size: 24px;
    margin-bottom: 16px;
    color: var(--text-white);
}

.card p {
    color: var(--text-gray);
    font-size: 16px;
}

.card:hover {
    transform: translateY(-12px);
    background: rgba(0, 209, 255, 0.05);
    border-color: var(--primary);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.4);
}

.logo .accent,
.hero p .accent {
    background: var(--primary-gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    font-weight: 700;
}

.icon-small {
    font-size: 20px;
}

.tile-header {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 8px;
}

.benefit-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    /* Changed from 3 to 2 in a row */
    gap: 15px;
    max-width: 576px;
    /* Increased by 20% from 480px */
    margin-right: auto;
}


@keyframes ladder-collapse {
    0% {
        opacity: 0;
        transform: translateY(-120px) rotateX(-50deg);
    }

    30% {
        opacity: 1;
        transform: translateY(35px) rotateX(20deg);
    }

    45% {
        transform: translateY(-25px) rotateX(-15deg);
    }

    60% {
        transform: translateY(15px) rotateX(10deg);
    }

    75% {
        transform: translateY(-8px) rotateX(-5deg);
    }

    85% {
        transform: translateY(4px) rotateX(2deg);
    }

    93% {
        transform: translateY(-2px) rotateX(-1deg);
    }

    100% {
        opacity: 1;
        transform: translateY(0) rotateX(0);
    }
}

.benefit-grid {
    perspective: 1000px;
    margin-top: 5px;
}

.benefit-card {
    padding: 20px 15px;
    background: linear-gradient(rgba(255, 255, 255, 0.03), rgba(255, 255, 255, 0.01));
    opacity: 0;
    animation: ladder-collapse 1.5s linear forwards;
}

.benefit-card:nth-child(1) {
    animation-delay: 0.2s;
}

.benefit-card:nth-child(2) {
    animation-delay: 0.4s;
}

.benefit-card:nth-child(3) {
    animation-delay: 0.6s;
}

.benefit-card:nth-child(4) {
    animation-delay: 0.8s;
}

.benefit-card:nth-child(5) {
    animation-delay: 1.0s;
}

.benefit-card:nth-child(6) {
    animation-delay: 1.2s;
}

.benefit-card h3 {
    font-size: 16px;
    margin-bottom: 0;
}

.benefit-card p {
    font-size: 13px;
    line-height: 1.3;
    color: var(--text-gray);
}

.benefit-card .glow-bg {
    position: absolute;
    top: 50%;
    left: 50%;
    width: 200px;
    height: 200px;
    background: radial-gradient(circle, var(--accent-blue) 0%, transparent 70%);
    transform: translate(-50%, -50%);
    opacity: 0;
    transition: 0.5s;
    pointer-events: none;
}

.benefit-card:hover .glow-bg {
    opacity: 1;
}

.white {
    color: #ffffff;
    font-weight: 700;
}

#roi {
    position: relative;
    overflow: hidden;
    z-index: 1;
    isolation: isolate;
    background: var(--bg-dark);
}

/* Garlic Image in ROI Section */
.roi-garlic-img {
    position: absolute;
    bottom: -150px;
    left: -450px;
    width: 800px;
    max-width: none;
    height: auto;
    z-index: -10 !important;
    opacity: 0.4;
    pointer-events: none;
    object-fit: contain;
    mix-blend-mode: screen;
    -webkit-mask-image: radial-gradient(ellipse at 50% 50%, rgba(0, 0, 0, 1) 40%, rgba(0, 0, 0, 0) 75%);
    mask-image: radial-gradient(ellipse at 50% 50%, rgba(0, 0, 0, 1) 40%, rgba(0, 0, 0, 0) 75%);
}

/* Chili Image in ROI Section */
.roi-chili-img {
    position: absolute;
    bottom: -120px;
    right: -400px;
    width: 850px;
    max-width: none;
    height: auto;
    z-index: -10 !important;
    opacity: 0.4;
    pointer-events: none;
    object-fit: contain;
    mix-blend-mode: screen;
    -webkit-mask-image: radial-gradient(ellipse at 50% 50%, rgba(0, 0, 0, 1) 40%, rgba(0, 0, 0, 0) 75%);
    mask-image: radial-gradient(ellipse at 50% 50%, rgba(0, 0, 0, 1) 40%, rgba(0, 0, 0, 0) 75%);
}

/* ROI Redesign */
.roi-container {
    max-width: 1000px;
    margin: 0 auto;
}

.roi-subtext {
    color: var(--text-gray);
    margin: -15px 0 20px;
    font-size: clamp(14px, 2vw, 16px);
    opacity: 0.8;
}

.roi-device {
    display: grid;
    grid-template-columns: 0.9fr 1.1fr;
    background: #0a1219;
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 40px 100px rgba(0, 0, 0, 0.8);
    max-width: 100%;
    position: relative;
    z-index: 2;
}

.roi-inputs {
    padding: 25px;
    background: rgba(255, 255, 255, 0.01);
    border-right: 1px solid rgba(255, 255, 255, 0.05);
    text-align: left;
    box-sizing: border-box;
    width: 100%;
}

.roi-inputs-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    /* Added logic to wrap components like titles and toggles */
    gap: 15px;
    /* Adds space if elements are wrapped */
    margin-bottom: 20px;
}

.roi-inputs h3 {
    font-size: 20px;
    font-weight: 700;
}

.currency-select {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: white;
    padding: 6px 10px;
    border-radius: 8px;
    font-size: 13px;
    cursor: pointer;
    outline: none;
}

.input-grid {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.input-group {
    display: flex;
    flex-direction: column;
    gap: 5px;
}

.input-group label {
    font-size: 13px;
    color: var(--text-gray);
    font-weight: 500;
}

.input-group input {
    background: rgba(0, 0, 0, 0.3);
    border: 1px solid rgba(255, 255, 255, 0.1);
    padding: 8px 12px;
    border-radius: 10px;
    color: white;
    font-size: 15px;
    width: 100%;
    transition: 0.3s;
}

.roi-results-pane {
    padding: 25px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    background: radial-gradient(circle at top right, rgba(0, 209, 255, 0.05), transparent 70%);
}

.results-header h3 {
    font-size: 16px;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: var(--text-gray);
    margin-bottom: 15px;
    display: flex;
    align-items: center;
    justify-content: center;
    /* Center Benefit heading */
    gap: 10px;
}

.profit-arrow {
    color: #00ff88;
}

.comparison-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 15px;
    margin-bottom: 20px;
}

.comp-box {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.05);
    padding: 15px;
    border-radius: 16px;
    text-align: center;
    transition: 0.3s;
}

.comp-box.highlight {
    background: rgba(0, 209, 255, 0.05);
    border-color: rgba(0, 209, 255, 0.2);
}

.comp-label {
    display: block;
    font-size: 11px;
    text-transform: uppercase;
    color: rgba(255, 255, 255, 0.5);
    margin-bottom: 8px;
    letter-spacing: 0.5px;
}

.comp-value {
    font-size: 24px;
    font-weight: 800;
    color: white;
}

.comp-value.glow-text {
    color: var(--primary);
    text-shadow: 0 0 15px rgba(0, 209, 255, 0.3);
}

.profit-growth-accent {
    padding: 15px;
    background: linear-gradient(135deg, rgba(0, 209, 255, 0.1), rgba(0, 209, 255, 0.02));
    border-radius: 16px;
    border: 1px solid rgba(0, 209, 255, 0.2);
    text-align: center;
}

.growth-label {
    display: block;
    font-size: 12px;
    color: var(--primary);
    text-transform: uppercase;
    letter-spacing: 1.5px;
    font-weight: 700;
    margin-bottom: 5px;
}

.growth-value {
    display: block;
    font-size: 42px;
    font-weight: 900;
    color: white;
    text-shadow: 0 0 20px rgba(0, 209, 255, 0.4);
}

.roi-explanation {
    margin-top: 25px;
    text-align: left;
    padding: 0 5px;
}

.roi-explanation .roi-desc {
    font-size: 13px;
    color: var(--text-gray);
    line-height: 1.5;
    margin-bottom: 12px;
}

.roi-explanation .roi-desc strong {
    color: var(--text-white);
    font-weight: 600;
}

.roi-divider {
    border: none;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    margin: 15px 0;
}

.roi-explanation .roi-disclaimer {
    font-size: 11px;
    color: rgba(255, 255, 255, 0.5);
    line-height: 1.4;
    font-style: italic;
}

.roi-explanation .roi-disclaimer strong {
    color: rgba(255, 255, 255, 0.7);
    font-weight: 600;
}


button {
    padding: 18px 40px;
    border: none;
    border-radius: 100px;
    cursor: pointer;
    font-weight: 700;
    font-size: 16px;
    transition: 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    letter-spacing: 0.5px;
}

.primary {
    background: var(--primary-gradient);
    color: white;
    box-shadow: 0 10px 20px rgba(0, 163, 255, 0.3);
}

.secondary {
    background: rgba(255, 255, 255, 0.05);
    color: white;
    border: 1px solid rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
}

.primary:hover {
    transform: translateY(-5px) scale(1.02);
    box-shadow: 0 15px 30px rgba(0, 163, 255, 0.5);
}

.secondary:hover {
    background: rgba(255, 255, 255, 0.1);
    transform: translateY(-5px);
}

.fade-in {
    opacity: 0;
    animation: fade 1s forwards;
}

.delay {
    animation-delay: 0.5s;
}

.delay2 {
    animation-delay: 1s;
}

@keyframes fade {
    to {
        opacity: 1;
    }
}

/* Footer */
footer {
    padding: 60px 10%;
    background: #000;
    text-align: center;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
}

footer p {
    color: var(--text-gray);
    font-size: 14px;
}

/* --- PRODUCT TOUR UI --- */

.tour-trigger-wrap {
    position: relative;
    display: flex;
    justify-content: flex-end;
    align-items: center;
    gap: 15px;
    width: 100%;
    margin-bottom: 20px;
    z-index: 10;

    /* Cinematic Delayed Reveal - 1s Fade */
    opacity: 0;
    pointer-events: none;
    transition: opacity 1s ease-out;
}

.tour-trigger-wrap.reveal {
    opacity: 1;
    pointer-events: auto;
}

.tour-btn,
.contact-btn,
.contact-us-btn {
    width: auto;
    min-width: 160px;
    background: var(--primary-gradient);
    color: white !important;
    border: none;
    padding: 10px 20px;
    /* Vertical padding reduced slightly and added horizontal padding */
    border-radius: 50px;
    font-size: 13px;
    /* Font size slightly reduced for proportion */
    font-weight: 700;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    transition: 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    box-shadow: 0 10px 20px rgba(0, 163, 255, 0.2);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    animation: pulse-glow-btn 3s infinite;
}

.contact-btn {
    backdrop-filter: none;
    border: none;
}

.tour-btn:hover,
.contact-btn:hover,
.contact-us-btn:hover {
    transform: translateY(-5px) scale(1.02);
    box-shadow: 0 30px 60px rgba(0, 163, 255, 0.4);
    background: var(--primary-gradient);
    color: white !important;
}

.tour-btn .play-icon {
    font-size: 14px;
    background: white;
    color: #0057FF;
    width: 28px;
    height: 28px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
}

/* Global Modal Styles */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.85);
    backdrop-filter: blur(8px);
    z-index: 10000;
    display: none;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.5s ease;
}

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

.tour-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: #000;
    z-index: 10000;
    display: none;
    flex-direction: column;
    opacity: 0;
    transition: opacity 0.5s ease;
}

.tour-modal.active {
    display: flex;
    opacity: 1;
}

.tour-close {
    position: absolute;
    top: 30px;
    right: 40px;
    font-size: 44px;
    color: white;
    cursor: pointer;
    z-index: 10002;
    transition: 0.3s;
    line-height: 1;
}

.tour-close:hover {
    color: var(--primary);
    transform: rotate(90deg);
}

/* Viewport & Track */
.tour-viewport {
    flex: 1;
    width: 100%;
    overflow: hidden;
    position: relative;
    background: #050505;
}

.tour-track {
    display: flex;
    height: 100%;
    transition: transform 0.8s cubic-bezier(0.65, 0, 0.35, 1);
}

.tour-slide {
    min-width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    padding: 40px;
    box-sizing: border-box;
}

.tour-img-wrapper {
    position: relative;
    display: flex;
    flex-direction: column-reverse;
    align-items: center;
    justify-content: center;
    gap: 30px;
    max-width: 95%;
    max-height: 90%;
    perspective: 1000px;
}

.tour-img-wrapper img {
    width: auto;
    max-width: 100%;
    max-height: 60vh;
    object-fit: contain;
    border-radius: 16px;
    box-shadow: 0 40px 100px rgba(0, 0, 0, 0.8), 0 0 40px rgba(0, 209, 255, 0.15);
    border: 1px solid rgba(255, 255, 255, 0.08);
    opacity: 0;
    transform: scale(0.95) translateY(20px) rotateX(5deg);
    transition: all 0.8s cubic-bezier(0.25, 1, 0.5, 1);
}

.active .tour-slide.current .tour-img-wrapper img {
    opacity: 1;
    transform: scale(1) translateY(0) rotateX(0deg);
}

/* Tooltips */
.tour-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
}

.tour-tooltip {
    position: relative;
    background: rgba(5, 10, 15, 0.75);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid rgba(0, 209, 255, 0.3);
    border-top: 1px solid rgba(255, 255, 255, 0.2);
    border-left: 1px solid rgba(255, 255, 255, 0.2);
    padding: 20px 32px;
    border-radius: 20px;
    width: 100%;
    max-width: 600px;
    text-align: center;
    flex-shrink: 0;
    color: white;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.5), 0 0 20px rgba(0, 209, 255, 0.15);
    z-index: 100;
    opacity: 0;
    transform: translateY(-20px) scale(0.95);
    transition: all 0.7s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    pointer-events: none;
}

.active .tour-slide.current .tour-tooltip {
    opacity: 1;
    transform: translateY(0) scale(1);
    transition-delay: 0.6s;
}

.tour-tooltip h3 {
    font-size: 18px;
    color: var(--primary);
    margin-bottom: 8px;
    font-weight: 700;
}

.tour-tooltip p {
    font-size: 14px;
    line-height: 1.6;
    color: rgba(255, 255, 255, 0.9);
    text-align: center;
}

/* Arrows */
.tour-arrow {
    display: none;
}

.tour-arrow::after {
    content: '';
    position: absolute;
    right: 0;
    top: -4px;
    border-left: 8px solid var(--primary);
    border-top: 5px solid transparent;
    border-bottom: 5px solid transparent;
}

.tour-arrow.up {
    top: -10px;
    left: 50%;
    border-width: 0 10px 10px 10px;
    border-color: transparent transparent var(--primary) transparent;
}

.tour-arrow.left {
    left: -10px;
    top: 50%;
    transform: translateY(-50%);
    border-width: 10px 10px 10px 0;
    border-color: transparent var(--primary) transparent transparent;
}

.tour-arrow.right {
    right: -10px;
    top: 50%;
    transform: translateY(-50%);
    border-width: 10px 0 10px 10px;
    border-color: transparent transparent transparent var(--primary);
}

/* Controls */
.tour-controls {
    height: 100px;
    background: #000;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 40px;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
}

.tour-controls button {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: white;
    padding: 12px 24px;
    border-radius: 8px;
    cursor: pointer;
    font-weight: 600;
    transition: 0.3s;
}

.tour-controls button:hover {
    background: var(--primary);
    border-color: var(--primary);
}

.tour-step-indicator {
    font-size: 18px;
    font-weight: 600;
    color: var(--text-gray);
}

#current-step {
    color: var(--primary);
}

/* Progress Bar */
.tour-progress {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 4px;
    background: rgba(255, 255, 255, 0.1);
    z-index: 10001;
}

.progress-bar {
    height: 100%;
    background: var(--primary);
    width: 0%;
    transition: width 0.3s ease;
    box-shadow: 0 0 15px var(--primary);
}

/* Animation for tooltips floating */
@keyframes float-tooltip {

    0%,
    100% {
        transform: translateY(0);
    }

    50% {
        transform: translateY(-10px);
    }
}

.active .tour-slide.current .tour-tooltip {
    animation: float-tooltip 3s ease-in-out infinite;
    animation-delay: 1.4s;
}

/* --- CONTACT MODAL --- */
.contact-modal-content {
    max-width: 500px !important;
    width: 90%;
    background: rgba(10, 15, 25, 0.95) !important;
    backdrop-filter: blur(25px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    padding: 60px 40px 40px;
    /* More top padding for close button */
    border-radius: 24px;
    position: relative;
    box-shadow: 0 25px 50px rgba(0, 0, 0, 0.8),
        0 0 30px rgba(0, 163, 255, 0.1);
    animation: modalSlideUp 0.6s cubic-bezier(0.165, 0.84, 0.44, 1) forwards;
}

.stylish-close {
    position: absolute;
    top: 15px;
    right: 25px;
    font-size: 32px;
    font-weight: 300;
    color: rgba(255, 255, 255, 0.5);
    background: none;
    border: none;
    cursor: pointer;
    transition: all 0.3s ease;
    line-height: 1;
    z-index: 10;
}

.stylish-close:hover {
    color: var(--primary);
    transform: scale(1.2);
}

/* Ladder Collapse for Content */
.animation-step {
    opacity: 0;
}

.active .animation-step {
    animation: ladder-collapse 1.2s cubic-bezier(0.34, 1.56, 0.64, 1) forwards;
}

.active .animation-step:nth-child(1) {
    animation-delay: 0.1s;
}

.active .animation-step:nth-child(2) {
    animation-delay: 0.2s;
}

.active #contact-form .animation-step:nth-child(1) {
    animation-delay: 0.3s;
}

.active #contact-form .animation-step:nth-child(2) {
    animation-delay: 0.4s;
}

.active #contact-form .animation-step:nth-child(3) {
    animation-delay: 0.5s;
}

.active #contact-form .animation-step:nth-child(4) {
    animation-delay: 0.6s;
}

.active #contact-form .animation-step:nth-child(5) {
    animation-delay: 0.7s;
}

.active #contact-form .animation-step:nth-child(6) {
    animation-delay: 0.8s;
}

@keyframes modalSlideUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }

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

.contact-modal-content h2 {
    font-size: 32px;
    margin-bottom: 10px;
    background: var(--primary-gradient);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    font-weight: 700;
}

.contact-modal-content p {
    color: var(--text-gray);
    margin-bottom: 30px;
    font-size: 16px;
    line-height: 1.5;
}

.contact-modal-content .input-group {
    margin-bottom: 20px;
    text-align: left;
}

.contact-modal-content label {
    display: block;
    margin-bottom: 8px;
    font-size: 14px;
    font-weight: 600;
    color: rgba(255, 255, 255, 0.8);
}

.contact-modal-content input,
.contact-modal-content textarea {
    width: 100%;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    padding: 14px 18px;
    border-radius: 12px;
    color: white;
    font-family: inherit;
    font-size: 16px;
    transition: all 0.3s ease;
}

.contact-modal-content textarea {
    height: 100px;
    resize: none;
}

.contact-modal-content input:focus,
.contact-modal-content textarea:focus {
    outline: none;
    border-color: var(--primary);
    background: rgba(255, 255, 255, 0.08);
    box-shadow: 0 0 15px rgba(0, 163, 255, 0.2);
}

.contact-modal-content .submit-btn {
    width: 100%;
    margin-top: 10px;
    padding: 16px;
    font-size: 18px;
    border-radius: 12px;
    cursor: pointer;
    border: none;
    font-weight: 700;
    background: var(--primary-gradient);
    color: white;
    transition: 0.3s;
}

.contact-modal-content .submit-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 20px rgba(0, 163, 255, 0.3);
}

/* Success Message Styles */
#contact-success {
    text-align: center;
    padding: 20px 0;
    animation: fadeInScale 0.5s ease forwards;
}

.success-icon {
    width: 80px;
    height: 80px;
    background: rgba(0, 255, 157, 0.1);
    color: #00ff9d;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 40px;
    margin: 0 auto 20px;
    border: 2px solid rgba(0, 255, 157, 0.2);
    box-shadow: 0 0 20px rgba(0, 255, 157, 0.1);
}

@keyframes fadeInScale {
    from {
        opacity: 0;
        transform: scale(0.9);
    }

    to {
        opacity: 1;
        transform: scale(1);
    }
}

/* --- PRICING SECTION --- */
.pricing-section {
    min-height: 100vh;
    scroll-snap-align: start;
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: 60px 5% 40px;
    background: #000;
    position: relative;
    overflow: hidden;
    color: white;
    perspective: 1500px;
    z-index: 1;
    isolation: isolate;
}


/* Cinnamon Promo Image */
.pricing-cinnamon-img {
    position: absolute;
    bottom: -80px;
    right: -250px;
    width: 514px;
    max-width: none;
    height: auto;
    z-index: -1 !important;
    opacity: 0.8;
    pointer-events: none;
    object-fit: contain;
    -webkit-mask-image: radial-gradient(ellipse at 50% 50%, rgba(0, 0, 0, 1) 40%, rgba(0, 0, 0, 0) 75%);
    mask-image: radial-gradient(ellipse at 50% 50%, rgba(0, 0, 0, 1) 40%, rgba(0, 0, 0, 0) 75%);
    mix-blend-mode: screen;
}

/* Turmeric Promo Image */
.pricing-turmeric-img {
    position: absolute;
    bottom: -140px;
    left: -400px;
    width: 936px;
    max-width: none;
    height: auto;
    z-index: -1 !important;
    opacity: 0.3;
    pointer-events: none;
    object-fit: contain;
    -webkit-mask-image: radial-gradient(ellipse at 50% 50%, rgba(0, 0, 0, 1) 40%, rgba(0, 0, 0, 0) 75%);
    mask-image: radial-gradient(ellipse at 50% 50%, rgba(0, 0, 0, 1) 40%, rgba(0, 0, 0, 0) 75%);
    mix-blend-mode: screen;
}

.pricing-container {
    max-width: 1200px;
    margin: 0 auto;
    text-align: center;
    position: relative;
    z-index: 50; /* High z-index to stay forward */
}

.pricing-container h2 {
    font-size: clamp(28px, 5vw, 42px);
    margin-bottom: 12px;
    font-weight: 700;
    color: white;
}

.pricing-container h2 .accent {
    color: var(--primary);
}

.pricing-container p.delay {
    font-size: clamp(14px, 3vw, 16px);
    color: var(--text-gray);
    margin-bottom: clamp(15px, 3vh, 30px);
}

.currency-toggle-wrapper {
    margin-bottom: clamp(20px, 4vh, 40px);
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 15px;
}

.currency-label {
    font-size: 14px;
    color: var(--text-gray);
    text-transform: uppercase;
    letter-spacing: 1px;
}

.currency-toggle-segmented {
    display: flex;
    position: relative;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    padding: 4px;
    width: 240px;
    max-width: 100%;
    /* Prevents the toggle bar from overflowing its container */
    height: 44px;
    backdrop-filter: blur(10px);
}

.currency-toggle-segmented input[type="radio"] {
    display: none;
}

.currency-toggle-segmented label {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    z-index: 2;
    cursor: pointer;
    font-size: 14px;
    font-weight: 600;
    color: var(--text-gray);
    transition: color 0.3s ease;
}

.currency-toggle-segmented input[type="radio"]:checked+label {
    color: white;
}

.toggle-slider {
    position: absolute;
    top: 4px;
    left: 4px;
    width: calc(33.33% - 5.33px);
    height: calc(100% - 8px);
    background: var(--primary);
    border-radius: 9px;
    transition: transform 0.3s cubic-bezier(0.645, 0.045, 0.355, 1);
    box-shadow: 0 4px 15px rgba(0, 209, 255, 0.3);
}

/* ROI Specific Slide positions */
#roi-lkr:checked~.toggle-slider,
#pr-lkr:checked~.toggle-slider {
    transform: translateX(0);
}

#roi-usd:checked~.toggle-slider,
#pr-usd:checked~.toggle-slider {
    transform: translateX(100%);
}

#roi-aud:checked~.toggle-slider,
#pr-aud:checked~.toggle-slider {
    transform: translateX(200%);
}

#roi-usd:checked~.toggle-slider,
#pr-usd:checked~.toggle-slider {
    transform: translateX(calc(100% + 4px));
}

#roi-aud:checked~.toggle-slider,
#pr-aud:checked~.toggle-slider {
    transform: translateX(calc(200% + 8px));
}

.pricing-grid {
    display: grid;
    grid-template-columns: 1.1fr 1.8fr 1.1fr;
    gap: 20px;
    margin-bottom: clamp(30px, 6vh, 80px);
}

.pricing-card {
    background: var(--bg-card);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 20px;
    padding: 35px 28px;
    position: relative;
    z-index: 2;
    backdrop-filter: blur(20px);
    transition: 0.5s cubic-bezier(0.165, 0.84, 0.44, 1);
    display: flex;
    flex-direction: column;
    text-align: left;

    /* Initial state for Intersection Observer */
    opacity: 0;
    pointer-events: none;
}

.pricing-card.animate {
    pointer-events: auto;
    animation: ladder-collapse 1.2s cubic-bezier(0.34, 1.56, 0.64, 1) forwards;
}

.pricing-card:nth-child(1).animate {
    animation-delay: 0.1s;
}

.pricing-card:nth-child(2).animate {
    animation-delay: 0.3s;
}

.pricing-card:nth-child(3).animate {
    animation-delay: 0.5s;
}

.pricing-card:hover {
    transform: translateY(-10px) scale(1.02);
    border-color: rgba(0, 209, 255, 0.4);
    background: rgba(255, 255, 255, 0.05);
}

.pricing-card .glow-bg {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    border-radius: inherit;
    overflow: hidden;
    pointer-events: none;
}

.pricing-card .glow-bg::before {
    content: "";
    position: absolute;
    top: 50%;
    left: 50%;
    width: 300px;
    height: 300px;
    background: radial-gradient(circle, var(--accent-blue) 0%, transparent 70%);
    transform: translate(-50%, -50%);
    opacity: 0.4;
}

.pricing-card h3 {
    font-size: 16px;
    margin-bottom: 15px;
    color: var(--primary);
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.price-value {
    font-size: 32px;
    font-weight: 800;
    margin-bottom: 6px;
    color: var(--primary);
    text-shadow: 0 0 15px rgba(0, 209, 255, 0.2);
}

.savings-amount {
    color: #00ff88;
    font-size: 14px;
    font-weight: 600;
    margin-top: 8px;
    background: rgba(0, 255, 136, 0.1);
    padding: 4px 12px;
    border-radius: 20px;
    display: inline-block;
}

.discount-badge {
    color: #00ff88;
    background: rgba(0, 255, 136, 0.1);
    padding: 2px 8px;
    border-radius: 12px;
    font-weight: 700;
    margin-left: 5px;
}

.hardware-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    gap: 20px;
    /* Prevent text and controls from overlapping */
}

.hardware-info {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.unit-price {
    font-size: 14px;
    opacity: 0.6;
    font-weight: 500;
}

.hardware-total-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: 20px;
    margin-top: 10px;
    font-weight: 700;
    color: var(--primary);
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.hardware-total-row span:last-child {
    font-size: 1.1em;
}

.quantity-control {
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(255, 255, 255, 0.06);
    border-radius: 8px;
    border: 1px solid rgba(255, 255, 255, 0.12);
    height: 26px;
    width: 60px;
    /* Fixed total width to prevent stretching */
    min-width: 60px;
    overflow: hidden;
    flex-shrink: 0;
}

.quantity-control button {
    background: transparent;
    border: none;
    color: white;
    width: 18px;
    /* Fixed width */
    flex: 0 0 18px;
    height: 100%;
    cursor: pointer;
    font-size: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: 0.2s;
    padding: 0;
}

.quantity-control button:hover {
    color: var(--primary);
    background: rgba(255, 255, 255, 0.05);
}

.quantity-control input {
    width: 24px;
    flex: 0 0 24px;
    height: 100%;
    text-align: center;
    background: transparent;
    border: none;
    color: white;
    font-weight: 700;
    font-size: 13px;
    padding: 0;
    margin: 0;
    -moz-appearance: textfield;
    appearance: textfield;
    /* Hide spin buttons Firefox */
}

/* Hide spin buttons Chrome/Safari */
.quantity-control input::-webkit-outer-spin-button,
.quantity-control input::-webkit-inner-spin-button {
    -webkit-appearance: none;
    margin: 0;
}

.billing-selectors {
    margin: 25px 0;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.billing-radio {
    display: flex;
    align-items: center;
    gap: 12px;
    cursor: pointer;
    padding: 10px;
    border-radius: 8px;
    transition: 0.2s;
}

.billing-radio:hover {
    background: rgba(255, 255, 255, 0.04);
}

.pricing-summary {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(0, 209, 255, 0.2);
    border-radius: 20px;
    padding: 25px 40px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 20px;
    backdrop-filter: blur(30px);
    margin-top: 15px;
    width: fit-content;
    margin-left: auto;
    margin-right: auto;
    min-width: 450px;
    text-align: center;

    /* Initial state set to visible for immediate load */
    opacity: 1;
    pointer-events: auto;
}

.summary-item {
    display: flex;
    flex-direction: row;
    gap: 10px;
    width: 100%;
    align-items: center;
    justify-content: center;
}

.summary-label {
    text-align: center;
    font-size: 14px;
    color: var(--text-gray);
    font-weight: 500;
}

.summary-value {
    text-align: center;
    font-size: 24px;
    font-weight: 800;
    color: var(--primary);
    display: block;
}

/* Duplicate rule removed */

.summary-value.highlight {
    font-size: 28px;
    color: var(--primary);
    font-weight: 800;
    text-shadow: 0 0 20px rgba(0, 209, 255, 0.3);
}

.animation-step {
    opacity: 0;
    pointer-events: none;
}

.animation-step.animate {
    opacity: 1;
    pointer-events: auto;
    animation: ladder-collapse 1s cubic-bezier(0.34, 1.56, 0.64, 1) forwards;
}

/* --- RESPONSIVE OVERRIDES --- */
/* --- MOBILE MENU STYLES --- */
.mobile-menu-toggle {
    display: none;
    flex-direction: column;
    gap: 5px;
    cursor: pointer;
    z-index: 1001;
    padding: 10px;
}

.mobile-menu-toggle span {
    width: 25px;
    height: 2px;
    background: white;
    transition: 0.3s;
}

.mobile-nav-overlay {
    position: fixed;
    top: 0;
    right: -100%;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.95);
    backdrop-filter: blur(20px);
    z-index: 10000;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: 0.5s cubic-bezier(0.165, 0.84, 0.44, 1);
}

.mobile-nav-overlay.active {
    right: 0;
}

.mobile-nav-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 30px;
}

.mobile-nav-content a {
    font-size: 24px;
    color: white;
    text-decoration: none;
    font-weight: 700;
    transition: 0.3s;
}

.mobile-nav-content a:hover {
    color: var(--primary);
}

.close-mobile-nav {
    position: absolute;
    top: 30px;
    right: 40px;
    background: none;
    border: none;
    color: white;
    font-size: 40px;
    cursor: pointer;
}

/* --- RESPONSIVE OVERRIDES --- */
@media (max-width: 1024px) {
    .pricing-grid {
        grid-template-columns: 1fr;
        max-width: 600px;
        margin: 0 auto clamp(20px, 4vh, 40px);
    }

    .roi-device {
        grid-template-columns: 1fr;
    }

    .roi-inputs {
        padding: 15px;
        border-right: none;
        border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    }

    .input-grid {
        display: grid;
        grid-template-columns: 1fr 1fr;
        gap: 15px;
    }

    .roi-results-pane {
        padding: 25px;
    }

    /* Hero: stack into single column on mobile */
    .hero-main {
        display: flex;
        flex-direction: column;
        text-align: center;
        gap: 30px;
    }

    .hero-text-top {
        display: flex;
        flex-direction: column;
        align-items: center;
        text-align: center;
    }

    .benefit-grid {
        margin: 0 auto;
        grid-template-columns: repeat(2, 1fr);
    }

    /* Reset subgrid for mobile — stack buttons then video vertically */
    .hero-video-bottom {
        display: flex;
        flex-direction: column;
        width: 100%;
        gap: 20px;
    }

    .hero-video-bottom .hero-actions {
        justify-content: center;
        padding-bottom: 0;
        align-self: auto;
    }

    .hero-video-frame-wrap {
        width: 100%;
    }

    .hero-video-bottom .video-frame {
        aspect-ratio: 16 / 9;
        height: auto;
        flex: none;
    }

    .hero h1 {
        text-align: center;
        margin-bottom: 20px;
    }

    .hero p {
        margin: 0 auto 30px;
        text-align: center;
    }
}


.hero h1 {
    font-size: clamp(32px, 10vw, 48px);
}

.hero-video-bottom {
    width: 100%;
}

.video-frame {
    border-width: 8px;
}

.tour-slide {
    padding: 20px 10px;
}

.tour-img-wrapper {
    display: flex;
    flex-direction: column-reverse;
    gap: 15px;
    max-width: 95%;
}

.tour-tooltip {
    position: relative;
    width: 100%;
    max-width: 500px;
    margin: 0 auto;
    transform: scale(0.95) translateY(-10px);
    padding: 20px;
}

.tour-arrow {
    display: none;
}

.active .tour-slide.current .tour-tooltip {
    transform: scale(1) translateY(0);
}

.pricing-summary {
    flex-direction: column;
    gap: 15px;
    padding: 20px;
    min-width: 100%;
}

.summary-item {
    grid-template-columns: 1fr;
    text-align: center;
}

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

.summary-value {
    text-align: center;
    min-width: auto;
}

.hero {
    padding-top: 100px;
}

.section,
.pricing-section {
    padding: 60px 5% 40px;
}

.section h2 {
    font-size: clamp(28px, 8vw, 36px);
}

@media (max-width: 480px) {
    .input-grid {
        grid-template-columns: 1fr;
    }

    .comparison-grid {
        grid-template-columns: 1fr;
    }

    .comp-box {
        padding: 20px;
    }

    .tour-controls {
        padding: 0 20px 20px;
    }

    /* Target the hero section buttons */
    .mobile-stack-container {
        display: flex !important;
        flex-direction: column !important;
        align-items: stretch !important;
        gap: 15px !important;
        width: 100% !important;
        max-width: 300px !important;
        margin: 0 auto !important;
    }

    .mobile-stack-container .tour-btn {
        width: 100% !important;
        justify-content: center !important;
        margin: 0 !important;
    }

    /* Make feature tiles outlines more visible */
    .card {
        border: 2px solid rgba(0, 209, 255, 0.4);
        /* Brighter cyan border */
        box-shadow: 0 8px 30px rgba(0, 0, 0, 0.5), inset 0 0 20px rgba(0, 209, 255, 0.05);
    }
}

/* Landscape Mobile / Short Screens */
@media (max-height: 700px) {

    .hero,
    .section,
    .pricing-section {
        padding-top: 70px;
        padding-bottom: 30px;
    }

    .section h2,
    .pricing-container h2 {
        margin-bottom: 15px;
    }

    .pricing-grid {
        gap: 15px;
        margin-bottom: 20px;
    }
}

.card-total-row {
    margin-top: auto;
    padding-top: 15px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 14px;
    font-weight: 600;
}

.card-total-row span:last-child {
    color: var(--primary);
    font-size: 16px;
}

/* --- SECTION NAVIGATION ARROWS --- */
.section-nav-inline {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 15px;
    margin-bottom: 20px;
    z-index: 100;
}

.nav-arrow {
    width: 44px;
    height: 44px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: var(--primary);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    font-size: 20px;
    transition: all 0.3s ease;
    backdrop-filter: blur(10px);
    cursor: pointer;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
}

.nav-arrow:hover {
    background: var(--primary-gradient);
    color: white !important;
    transform: translateY(-5px) scale(1.1);
    border-color: transparent;
    box-shadow: 0 10px 20px rgba(0, 163, 255, 0.4);
}

.nav-arrow.down {
    animation: bounceDown 2s infinite;
}

.nav-arrow.up {
    animation: bounceUp 2s infinite;
}

@keyframes bounceDown {

    0%,
    20%,
    50%,
    80%,
    100% {
        transform: translateY(0);
    }

    40% {
        transform: translateY(10px);
    }

    60% {
        transform: translateY(5px);
    }
}

@keyframes bounceUp {

    0%,
    20%,
    50%,
    80%,
    100% {
        transform: translateY(0);
    }

    40% {
        transform: translateY(-10px);
    }

    60% {
        transform: translateY(-5px);
    }
}

@media (max-height: 650px) {
    .section-nav {
        display: none;
    }
}

/* --- CONTACT SECTION OVERRIDES --- */
#contact {
    min-height: auto;
    padding: 60px 10%;
    scroll-snap-align: center;
}

#contact h2 {
    font-size: clamp(28px, 5vw, 42px);
    margin-bottom: 25px;
}

/* --- FINAL AGGRESSIVE SPACING OVERRIDES FOR ZERO-SCROLL --- */
@media (min-width: 768px) {
    .pricing-section {
        padding: 15px 5% 10px;
    }

    .pricing-grid {
        gap: 10px;
        margin-bottom: 10px;
    }

    .pricing-card {
        padding: 15px;
    }

    .price-value {
        font-size: 24px;
        margin: 5px 0 2px;
    }

    .main-card .price-value {
        font-size: 28px;
    }

    .price-type {
        margin-bottom: 5px;
        font-size: 11px;
    }

    .billing-selectors {
        margin: 10px 0;
        gap: 5px;
    }

    .billing-radio {
        padding: 5px;
        font-size: 13px;
    }

    .hardware-item {
        padding: 5px 10px;
        margin-bottom: 5px;
    }

    .pricing-summary {
        padding: 10px 20px;
        margin-top: 5px;
        gap: 20px;
    }

    .summary-value {
        font-size: 20px;
    }

    .summary-value.highlight {
        font-size: 24px;
    }

    /* CTA Overrides */
    #contact {
        padding: 30px 10%;
    }

    #contact h2 {
        font-size: 24px;
        margin-bottom: 15px;
    }

    #contact .primary {
        padding: 10px 25px;
        font-size: 14px;
    }
}

/* Make sure the hero arrow is centered at the bottom */
#hero .section-nav.bottom {
    bottom: 20px;
    /* Reduced from 30px */
}


#contact .primary,
#contact button.primary {
    padding: 12px 30px !important;
    font-size: 16px !important;
    max-width: fit-content !important;
    min-width: 250px !important;
    margin: 0 auto !important;
    display: block !important;
    /* Ensure margin auto centers it */
    border-radius: 50px !important;
    /* Adding pill shape explicitly just in case */
}

.section-nav {
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 15px;
    z-index: 100;
}

.section-nav.bottom {
    bottom: 30px;
}

.section-nav.top {
    top: 20px;
}

/* --- FINAL ROBUST MOBILE NAVIGATION FIX --- */
@media screen and (max-width: 1150px) {

    /* Hide ALL desktop nav elements with high specificity */
    header.navbar nav,
    header.navbar .desktop-nav,
    header.navbar .nav-link-btn,
    header.navbar .nav-btn,
    header.navbar .header-contact {
        display: none !important;
    }

    /* Show mobile toggle */
    header.navbar .mobile-menu-toggle {
        display: flex !important;
    }

    /* Adjust navbar padding and logo for mobile */
    header.navbar {
        padding: 5px 5% !important;
    }

    .header-logo {
        height: 40px !important;
    }

    .powered-by {
        font-size: 8px !important;
    }

    .hero {
        padding-top: 140px !important;
    }

    .hero-main {
        margin-top: 0 !important;
    }

    .hero h1 {
        font-size: clamp(32px, 10vw, 48px) !important;
    }

    /* Disable text animation for Serves Better text in mobile view */
    .hero h1 .accent::before {
        display: none !important;
    }

    .benefit-grid {
        grid-template-columns: 1fr !important;
        width: 100% !important;
        max-width: 100% !important;
    }

    /* Specific fixes for mobile alignment and size */
    .roi-device {
        grid-template-columns: 1fr !important;
    }

    .roi-inputs-header {
        flex-direction: column !important;
        align-items: flex-start !important;
        gap: 15px !important;
    }

    .currency-toggle-segmented {
        width: 100% !important;
        max-width: 300px !important;
    }

    .roi-garlic-img,
    .roi-chili-img,
    .pricing-cinnamon-img,
    .pricing-turmeric-img {
        display: none !important;
        /* Hide decorative images to prevent overlap on small screens */
    }

    .pricing-grid {
        padding: 0;
    }

    .tour-tooltip {
        position: relative !important;
        transform: none !important;
        margin-top: 15px;
    }

    .tour-img-wrapper img {
        max-height: 45vh;
    }

    .contact-modal-content {
        padding: 50px 24px 30px !important;
        margin-top: 20px;
        margin-bottom: 20px;
        width: 95% !important;
        max-width: none !important;
        box-sizing: border-box !important;
    }

    .contact-modal-content h2 {
        font-size: 24px !important;
        padding-right: 30px;
        /* Space for the close button */
    }

    .stylish-close {
        top: 10px !important;
        right: 15px !important;
    }

    /* Ensure modal overlay allows scrolling */
    .modal-overlay {
        align-items: flex-start !important;
        padding: 40px 10px !important;
        overflow-y: auto !important;
        -webkit-overflow-scrolling: touch;
    }
}

/* END OF MOBILE MEDIA QUERY (max-width: 768px) */

/* --- UTILITY CLASSES (GLOBAL & MOBILE OVERRIDES) --- */

/* Default Desktop State */
.desktop-only {
    display: flex !important;
}

.mobile-only {
    display: none !important;
}

/* Mobile State Override */
@media screen and (max-width: 768px) {
    .desktop-only {
        display: none !important;
    }

    .mobile-only {
        display: block !important;
    }

    /* Mobile Dropdown Styling (Only needed on mobile where it's visible) */
    .currency-dropdown-wrapper {
        width: 100%;
        max-width: 300px;
        margin-top: 10px;
    }

    select.currency-select {
        width: 100%;
        padding: 12px 15px;
        background: rgba(255, 255, 255, 0.05);
        border: 1px solid rgba(255, 255, 255, 0.1);
        color: white;
        border-radius: 12px;
        font-size: 16px;
        font-family: inherit;
        font-weight: 500;
        cursor: pointer;
        appearance: none;
        -webkit-appearance: none;
        background-image: url("data:image/svg+xml;charset=UTF-8,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3e%3cpolyline points='6 9 12 15 18 9'%3e%3c/polyline%3e%3c/svg%3e");
        background-repeat: no-repeat;
        background-position: right 15px center;
        background-size: 16px;
        backdrop-filter: blur(10px);
    }

    select.currency-select option {
        background: #0a1219;
        color: white;
        padding: 10px;
    }
}

/* Final closing for the large mobile block */

/* --- MOBILE ICON REMOVAL (1024px) --- */
@media screen and (max-width: 1024px) {

    /* Hide Hero Button Icons with high specificity */
    .tour-trigger-wrap .tour-btn .play-icon,
    .tour-trigger-wrap .tour-btn .btn-icon,
    .tour-trigger-wrap .tour-btn svg,
    .tour-btn>span.play-icon,
    .tour-btn>svg.btn-icon {
        display: none !important;
    }

    /* Keep buttons compact without icons */
    .tour-btn {
        padding: 10px 18px !important;
        gap: 0 !important;
        justify-content: center !important;
    }
}

/* --- MOBILE ARROW & TOGGLE OVERRIDES (768px) --- */
@media screen and (max-width: 768px) {

    /* Right-align hero arrow to avoid video overlap */
    #hero .section-nav.bottom {
        left: auto !important;
        right: 20px !important;
        transform: none !important;
    }

    #roi-currency-toggle,
    #pricing-currency-toggle {
        display: none !important;
    }

    .currency-dropdown-wrapper,
    .currency-dropdown-wrapper.mobile-only {
        display: block !important;
    }
}

/* Language Toggle Switch Styles */
.lang-switch-wrapper {
    display: inline-flex;
    align-items: center;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 20px;
    padding: 3px;
    position: relative;
    cursor: pointer;
    width: 140px;
    height: 32px;
    margin-left: 15px;
}

.lang-switch-wrapper.mobile {
    margin: 20px auto 0;
}

.lang-switch-option {
    flex: 1;
    text-align: center;
    font-size: 11px;
    font-weight: 700;
    color: var(--text-gray);
    z-index: 2;
    transition: color 0.3s ease;
    user-select: none;
    line-height: 1;
}

.lang-switch-option.active {
    color: white;
}

.lang-switch-slider {
    position: absolute;
    top: 3px;
    left: 3px;
    width: 65px;
    height: 24px;
    background: var(--primary-gradient);
    border-radius: 16px;
    z-index: 1;
    transition: transform 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.lang-switch-wrapper.lang-sin .lang-switch-slider {
    transform: translateX(100%);
}

/* BYOD Toggle Styling */
.hardware-byod-container {
    margin-bottom: 20px;
    display: flex;
    align-items: center;
}

.byod-toggle-label {
    display: flex;
    align-items: center;
    cursor: pointer;
    font-size: 14px;
    color: var(--text-white);
}

.byod-toggle-label input {
    display: none;
}

.byod-toggle-switch {
    width: 44px;
    height: 24px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    position: relative;
    margin-right: 12px;
    transition: background 0.3s;
}

.byod-toggle-switch::after {
    content: '';
    position: absolute;
    top: 3px;
    left: 3px;
    width: 18px;
    height: 18px;
    background: white;
    border-radius: 50%;
    transition: transform 0.3s;
}

.byod-toggle-label input:checked+.byod-toggle-switch {
    background: var(--primary);
}

.byod-toggle-label input:checked+.byod-toggle-switch::after {
    transform: translateX(20px);
}

.disabled-hardware {
    opacity: 0.4;
    pointer-events: none;
}

/* --- TOOLTIP STYLES --- */
.tooltip-container {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
}

.tooltip-container .tooltip-text {
    visibility: hidden;
    width: 260px;
    background-color: #1a1a1a;
    color: #fff;
    text-align: center;
    border-radius: 8px;
    padding: 10px 14px;
    position: absolute;
    z-index: 200;
    bottom: 150%;
    left: 50%;
    transform: translateX(-50%);
    opacity: 0;
    transition: opacity 0.3s;
    font-size: 13px;
    line-height: 1.4;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.6);
    border: 1px solid rgba(255, 255, 255, 0.1);
    pointer-events: none;
    font-weight: normal;
    text-transform: none;
}

.tooltip-container .tooltip-text::after {
    content: "";
    position: absolute;
    top: 100%;
    left: 50%;
    transform: translateX(-50%);
    border-width: 6px;
    border-style: solid;
    border-color: rgba(255, 255, 255, 0.1) transparent transparent transparent;
}

.tooltip-container:hover .tooltip-text {
    visibility: visible;
    opacity: 1;
}