:root {
    --green: #1db954;
    --green-glow: rgba(29, 185, 84, 0.45);
    --dark: #040a08;
    --deep-black: #000000;
    --card-gradient: linear-gradient(145deg, #0d251a, #06110a);
    --text: #eafff4;
    --border: rgba(255, 255, 255, 0.07);
    --nav-bg: rgba(4, 10, 8, 0.85);
    --transition: all 0.5s cubic-bezier(0.19, 1, 0.22, 1);
}

body {
    font-family: 'Inter', 'Space Grotesk', sans-serif;
    padding-top: 38px;

}

/* --- LIGHT MODE OVERRIDES --- */
body.light-mode {
    --dark: #f4fcf7;
    --deep-black: #e8f5ed;
    --card-gradient: linear-gradient(145deg, #ffffff, #f0fdf4);
    --text: #040a08;
    --border: rgba(0, 0, 0, 0.1);
    --nav-bg: rgba(244, 252, 247, 0.85);
}

body.light-mode .nav-links a,
body.light-mode .logo,
body.light-mode .btn-ghost,
body.light-mode .section-header h2,
body.light-mode .feature-card h3,
body.light-mode .plan h3,
body.light-mode .price,
body.light-mode .footer-col h4,
body.light-mode .footer-bottom p {
    color: #040a08;
}

body.light-mode .hero p,
body.light-mode .section-header p,
body.light-mode .lang-link,
body.light-mode .trust-divider,
body.light-mode .feature-card p {
    color: #2d4a3e;
}

body.light-mode .plan,
body.light-mode .stats-grid,
body.light-mode .workflow-box,
body.light-mode .node {
    background: #ffffff;
}

/* --- THEME TOGGLE BUTTON STYLE --- */
.theme-toggle {
    background: transparent;
    border: 1px solid var(--border);
    color: var(--green);
    width: 40px;
    height: 40px;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--transition);
}

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

html {
    scroll-behavior: smooth;
}

body {
    background-color: var(--dark);
    color: var(--text);
    overflow-x: hidden;
    /* padding-top: 60px; */
    -webkit-font-smoothing: antialiased;
    transition: background-color 0.3s ease, color 0.3s ease;
}

/* Top-of-page reset */
body::before {
    content: "";
    display: block;
    height: 1px;
}

h1,
h2,
h3,
h4,
.logo {
    font-family: 'Space Grotesk', sans-serif;
}

canvas {
    position: fixed;
    inset: 0;
    z-index: 0;
    pointer-events: none;
}

/* If you have a specific hero section, ensure it doesn't overlap */
.hero {
    height: auto;
    min-height: calc(100vh - 80px);
    padding-top: 40px;
    padding-bottom: 60px;
    justify-content: flex-start;
    /* Prevents awkward centering on small screens */
}

/* Reset that manual margin you had earlier if it's still there */
.badge-new {
    margin-top: 80px !important;
}

/* --- NAVIGATION (REWORKED) --- */
nav {
    position: fixed;
    top: 0;
    width: 100%;
    height: 90px;
    padding: 0 6%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: var(--nav-bg);
    backdrop-filter: blur(25px);
    border-bottom: 1px solid var(--border);
    z-index: 2000;
}

.logo {
    font-size: 26px;
    font-weight: 800;
    color: #fff;
    text-decoration: none;
    letter-spacing: -1.5px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.logo i {
    color: var(--green);
    font-size: 20px;
}

.logo span {
    color: var(--green);
}

.nav-right {
    display: flex;
    align-items: center;
    gap: 50px;
}

.nav-links {
    display: flex;
    gap: 35px;
    align-items: center;
}

.nav-links a {
    color: #fff;
    text-decoration: none;
    font-size: 14px;
    font-weight: 600;
    opacity: 0.6;
    transition: var(--transition);
    letter-spacing: 0.5px;
}

.nav-links a:hover {
    opacity: 1;
    color: var(--green);
}

.nav-btns {
    display: flex;
    gap: 15px;
    align-items: center;
}

/* --- BUTTONS --- */
.btn {
    padding: 14px 32px;
    border-radius: 12px;
    font-size: 14px;
    font-weight: 700;
    text-decoration: none;
    transition: var(--transition);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    cursor: pointer;
    border: none;
    white-space: nowrap;
}

.btn-primary {
    background: var(--green);
    color: #000;
    box-shadow: 0 10px 30px -10px var(--green-glow);
}

.btn-primary:hover {
    transform: translateY(-4px);
    box-shadow: 0 20px 40px -10px var(--green-glow);
}

.btn-outline {
    border: 1.5px solid var(--green);
    color: var(--green);
    background: transparent;
}

.btn-outline:hover {
    background: rgba(29, 185, 84, 0.1);
    transform: translateY(-2px);
}

.btn-ghost {
    background: transparent;
    color: #fff;
    opacity: 0.8;
    background: rgba(255, 255, 255, 0.05);

}

.btn-ghost:hover {
    opacity: 1;
}

/* --- HERO SECTION --- */
.hero {
    height: 100vh;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 0 5%;
    position: relative;
    z-index: 1;
    background: radial-gradient(circle at 50% 40%, rgba(29, 185, 84, 0.12), transparent 70%);
}

.badge-new {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid var(--border);
    padding: 8px 16px;
    border-radius: 30px;
    font-size: 12px;
    margin-bottom: 30px;
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.badge-new span {
    color: var(--green);
    font-weight: 800;
}

.hero h1 {
    font-size: 78px;
    line-height: 1;
    margin-bottom: 25px;
    font-weight: 800;
    letter-spacing: -3px;
}

.hero h1 em {
    font-style: normal;
    color: var(--green);
}

.hero p {
    font-size: 22px;
    max-width: 800px;
    margin: 0 auto 50px;
    color: #b0d8c1;
    opacity: 0.9;
    line-height: 1.5;
    font-weight: 300;
}

/* --- STATS DISPLAY --- */
.stats-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    width: 100%;
    max-width: 1100px;
    margin: 38px auto 0;
    padding: 40px;
    border-radius: 30px;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid var(--border);
    backdrop-filter: blur(10px);
}

.stat-card h4 {
    font-size: 36px;
    color: var(--green);
    margin-bottom: 5px;
}

.stat-card p {
    font-size: 12px;
    text-transform: uppercase;
    letter-spacing: 2px;
    opacity: 0.5;
}

/* --- SECTION COMMONS --- */
section {
    padding: 140px 10%;
    position: relative;
    z-index: 1;
}

.section-tag {
    color: var(--green);
    text-transform: uppercase;
    font-size: 12px;
    font-weight: 800;
    letter-spacing: 3px;
    margin-bottom: 20px;
    display: block;
    text-align: center;
}

.section-header {
    text-align: center;
    margin-bottom: 90px;
}

.section-header h2 {
    font-size: 48px;
    margin-bottom: 20px;
    letter-spacing: -1px;
}

.section-header p {
    color: #88bc9e;
    font-size: 18px;
    max-width: 600px;
    margin: 0 auto;
}

/* --- FEATURES GRID --- */
.features-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 40px;
}

.feature-card {
    background: var(--card-gradient);
    border: 1px solid var(--border);
    border-radius: 32px;
    padding: 50px;
    transition: var(--transition);
    position: relative;
    overflow: hidden;
}

.feature-card::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle at top right, rgba(29, 185, 84, 0.1), transparent 60%);
    opacity: 0;
    transition: var(--transition);
}

.feature-card:hover {
    transform: translateY(-15px);
    border-color: var(--green);
}

.feature-card:hover::before {
    opacity: 1;
}

.feature-card i {
    font-size: 32px;
    color: var(--green);
    margin-bottom: 30px;
    display: block;
}

.feature-card h3 {
    font-size: 24px;
    margin-bottom: 20px;
}

.feature-card p {
    opacity: 0.6;
    line-height: 1.7;
    font-size: 15px;
}

/* --- WORKFLOW VISUAL --- */
.workflow-box {
    background: #000;
    border: 1px solid var(--border);
    border-radius: 40px;
    padding: 80px;
    text-align: center;
    margin-top: 60px;
}

.workflow-nodes {
    display: flex;
    justify-content: space-around;
    align-items: center;
    position: relative;
}

.node {
    z-index: 2;
    background: #0d251a;
    padding: 25px;
    border-radius: 20px;
    border: 1px solid var(--border);
    width: 180px;
}

.node i {
    font-size: 24px;
    color: var(--green);
    margin-bottom: 15px;
}

.connector {
    height: 2px;
    background: linear-gradient(90deg, transparent, var(--green), transparent);
    flex-grow: 1;
    margin: 0 20px;
    opacity: 0.3;
}

/* --- PRICING SECTION --- */
.pricing-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 35px;
    margin-top: 50px;
}

.plan {
    background: #08110c;
    border: 1px solid var(--border);
    border-radius: 40px;
    padding: 60px 45px;
    transition: var(--transition);
    display: flex;
    flex-direction: column;
}

.plan.featured {
    border-color: var(--green);
    background: #0a1b13;
    transform: scale(1.05);
    z-index: 10;
    box-shadow: 0 30px 60px -20px rgba(0, 0, 0, 0.8);
}

.plan h3 {
    font-size: 28px;
    margin-bottom: 10px;
}

.plan .user-cap {
    font-size: 12px;
    color: var(--green);
    font-weight: 800;
    margin-bottom: 30px;
    opacity: 0.8;
}

.price {
    font-size: 48px;
    font-weight: 800;
    margin-bottom: 40px;
}

.price span {
    font-size: 18px;
    opacity: 0.4;
}

.plan-features {
    list-style: none;
    margin-bottom: 50px;
    flex-grow: 1;
}

.plan-features li {
    padding: 15px 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    display: flex;
    align-items: center;
    gap: 15px;
    font-size: 14px;
}

.plan-features li:last-child {
    border-bottom: none;
}

.plan-features i {
    color: var(--green);
    font-size: 14px;
}

/* --- SEPARATED FOOTER (HEAVIER) --- */
footer {
    background: var(--deep-black);
    padding: 120px 10% 60px;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    position: relative;
    z-index: 10;
}

.footer-main {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1.2fr;
    gap: 80px;
    margin-bottom: 80px;
}

.footer-info .logo {
    margin-bottom: 30px;
}

.footer-info p {
    opacity: 0.5;
    font-size: 15px;
    line-height: 1.8;
    max-width: 320px;
}

.footer-col h4 {
    font-size: 16px;
    margin-bottom: 35px;
    color: #fff;
    text-transform: uppercase;
    letter-spacing: 1.5px;
}

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

.footer-col ul li {
    margin-bottom: 18px;
}

.footer-col ul a {
    color: var(--text);
    opacity: 0.4;
    text-decoration: none;
    font-size: 14px;
    transition: 0.3s;
}

.footer-col ul a:hover {
    opacity: 1;
    color: var(--green);
    padding-left: 8px;
}

.footer-newsletter h4 {
    margin-bottom: 20px;
}

.input-group {
    display: flex;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid var(--border);
    border-radius: 12px;
    padding: 6px;
}

.input-group input {
    background: transparent;
    border: none;
    padding: 12px;
    color: #fff;
    flex-grow: 1;
    outline: none;
    font-size: 14px;
}

.footer-bottom {
    padding-top: 60px;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.trust-badges {
    display: flex;
    gap: 30px;
    opacity: 0.3;
    filter: grayscale(1);
}

.trust-badges i {
    font-size: 24px;
}

.socials {
    margin-top: 12px;
    display: flex;
    gap: 20px;
}

.socials a {
    color: #bbbbbb;
    opacity: 0.5;
    font-size: 20px;
    transition: 0.3s;
}

.socials a:hover {
    opacity: 1;
    color: var(--green);
    transform: translateY(-3px);
}


/* Footer Bottom Container */
.footer-bottom {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 25px 0;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    margin-top: 40px;
}

.footer-bottom-right {
    display: flex;
    align-items: center;
    gap: 25px;
}

/* Minimalist Language Link */
.lang-link {
    background: transparent;
    border: none;
    color: rgba(255, 255, 255, 0.6);
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 0;
    font-family: inherit;
    transition: all 0.3s ease;
}

.lang-icon {
    font-size: 10px;
    font-weight: 800;
    border: 1px solid rgba(77, 170, 40, 0.2);
    padding: 2px 6px;
    border-radius: 4px;
    letter-spacing: 1px;
}

.lang-text {
    font-size: 12px;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.lang-link:hover {
    color: #fff;
}

.lang-link:hover .lang-icon {
    border-color: #00d4ff;
    color: #00d4ff;
}

/* Divider Line */
.trust-divider {
    width: 1px;
    height: 20px;
    border: 1px solid rgba(77, 170, 40, 0.2);


}

/* Trust Badges */
.trust-badges {
    display: flex;
    gap: 15px;
    font-size: 16px;
    opacity: 0.3;
}

.copyright {
    opacity: 0.4;
    font-size: 11px;
    letter-spacing: 0.5px;
}

/* Mobile responsive */
@media (max-width: 991px) {


    /* Create space for the fixed nav */
    body {
        padding-top: 60px;
        /* Matches your mobile nav height */
    }

    /* If you have a specific hero section, ensure it doesn't overlap */
    .hero {
        height: auto;
        min-height: calc(100vh - 80px);
        padding-top: 40px;
        padding-bottom: 60px;
        justify-content: flex-start;
        /* Prevents awkward centering on small screens */
    }

    /* Reset that manual margin you had earlier if it's still there */
    .badge-new {
        margin-top: 20px !important;
    }

    .footer-bottom {
        flex-direction: column;
        gap: 20px;
        text-align: center;
    }

    .footer-bottom-right {
        flex-direction: column;
        gap: 15px;
    }

    .trust-divider {
        display: none;
    }
}

/* --- RESPONSIVE --- */
@media (max-width: 1200px) {
    .hero h1 {
        font-size: 60px;
    }

    .features-grid,
    .pricing-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .workflow-nodes {
        flex-wrap: wrap;
        gap: 40px;
    }

    .connector {
        display: none;
    }
}

@media (max-width: 768px) {

    /* Create space for the fixed nav */
    body {
        padding-top: 60px;
        /* Matches your mobile nav height */
    }

    /* If you have a specific hero section, ensure it doesn't overlap */
    .hero {
        height: auto;
        min-height: calc(100vh - 80px);
        padding-top: 40px;
        padding-bottom: 60px;
        justify-content: flex-start;
        /* Prevents awkward centering on small screens */
    }

    /* Hide the navigation links text */
    .nav-links {
        display: none;
    }

    /* Hide the 'Sign in' button if it's too crowded */
    .btn-ghost {
        display: none;
    }

    /* Ensure the buttons container and the Trial button stay visible */
    .nav-right,
    .nav-btns {
        display: flex !important;
        align-items: center;
        gap: 10px;
    }

    /* Optional: Make the button smaller on mobile */
    .btn-primary {
        /* padding: 8px 15px; */
        font-size: 14px;
    }

    /* Reset that manual margin you had earlier if it's still there */
    .badge-new {
        margin-top: 20px !important;
    }

    nav {
        height: 80px;
        padding: 0 5%;
    }

    .nav-right {
        display: none;
    }

    /* Hide desktop nav */
    .hero h1 {
        font-size: 42px;
        letter-spacing: -1px;
    }

    .stats-grid {
        grid-template-columns: 1fr 1fr;
        gap: 20px;
    }

    .features-grid,
    .pricing-grid {
        grid-template-columns: 1fr;
    }

    .footer-main {
        grid-template-columns: 1fr;
        gap: 50px;
        text-align: center;
    }

    .footer-info p {
        max-width: 100%;
    }

    .footer-bottom {
        flex-direction: column;
        gap: 30px;
        text-align: center;
    }

    .input-group {
        max-width: 400px;
        margin: 0 auto;
    }


    /* ***************** 2nd PLAN *************** */


    /* The Container Grid */
    .pricing-grid {
        display: flex;
        flex-direction: column;
        align-items: center;
        gap: 30px;
    }

    .plan {
        width: 100%;
        max-width: 400px;
        flex: none;
        margin: 0 auto;
    }

    /* Adjust the featured plan for mobile stacking */
    .plan.featured {
        transform: scale(1);
        margin-top: 10px;
        margin-bottom: 10px;
    }

    .plan-badge {
        position: absolute;
        top: -12px;
        left: 50%;
        transform: translateX(-50%);
        background: #00d4ff;
        color: #000;
        padding: 4px 12px;
        font-size: 10px;
        font-weight: 800;
        text-transform: uppercase;
        border-radius: 4px;
    }

    /* THE SHINING BUTTON */
    .btn-featured-shine {
        display: block;
        width: 100%;
        background: #00d4ff;
        color: #000 !important;
        padding: 15px;
        text-align: center;
        font-weight: 800;
        border-radius: 8px;
        text-decoration: none;
        position: relative;
        overflow: hidden;
        /* Clips the shine */
        border: none;
        transition: 0.3s;
    }

    /* The Animated Shine Effect */
    .btn-featured-shine::before {
        content: '';
        position: absolute;
        top: 0;
        left: -150%;
        width: 50%;
        height: 100%;
        background: linear-gradient(90deg,
                transparent,
                rgba(255, 255, 255, 0.6),
                transparent);
        transform: skewX(-20deg);
        animation: shine-sweep 3s infinite;
    }

    @keyframes shine-sweep {
        0% {
            left: -150%;
        }

        20% {
            left: 150%;
        }

        100% {
            left: 150%;
        }
    }

    .btn-featured-shine:hover {
        box-shadow: 0 0 20px #00d4ff;
        transform: scale(1.02);
    }

    /* The Other Buttons */
    .btn-outline {
        display: block;
        width: 100%;
        padding: 14px;
        text-align: center;
        color: var(--green);
        border: 1px solid rgba(255, 255, 255, 0.2);
        border-radius: 8px;
        text-decoration: none;
    }
}



/* ************************************ Modal Base Overlay */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(4, 10, 8, 0.9);
    /* Dark cyber background */
    backdrop-filter: blur(12px);
    display: none;
    /* Hidden by default */
    align-items: center;
    justify-content: center;
    z-index: 10000;
    transition: all 0.3s ease;
}

/* Show Modal when .active class is added via JS */
.modal-overlay.active {
    display: flex;
}

/* Futuristic Modal Box */
.modal-content {
    background: #0a110e;
    border: 1px solid rgba(29, 185, 84, 0.3);
    border-radius: 24px;
    padding: 40px;
    position: relative;
    box-shadow: 0 0 50px rgba(0, 0, 0, 0.5), 0 0 20px rgba(29, 185, 84, 0.1);
    color: white;
}

.modal-close {
    position: absolute;
    top: 20px;
    right: 25px;
    font-size: 28px;
    color: #1db954;
    cursor: pointer;
    transition: 0.2s;
}

.modal-close:hover {
    transform: rotate(90deg);
    color: #fff;
}

/* Layout Grid */
.modal-body-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 30px;
    margin-top: 20px;
}

@media (max-width: 768px) {
    .modal-body-grid {
        grid-template-columns: 1fr;
    }
}

/* Form & Logic Styles */
.modal-config-box {
    background: rgba(255, 255, 255, 0.03);
    padding: 25px;
    border-radius: 15px;
    border-left: 4px solid #1db954;
}

.futuristic-select {
    width: 100%;
    background: #111;
    border: 1px solid #333;
    color: white;
    padding: 12px;
    border-radius: 8px;
    margin-top: 10px;
}

.calc-row {
    display: flex;
    justify-content: space-between;
    margin-bottom: 10px;
    font-family: 'Space Grotesk', sans-serif;
}

.text-green {
    color: #1db954;
}

.total-row {
    font-size: 1.5rem;
    font-weight: bold;
    margin-top: 15px;
    border-top: 1px solid #222;
    padding-top: 15px;
}

.scanning-bar {
    height: 2px;
    background: #1db954;
    width: 100%;
    margin-top: 20px;
    box-shadow: 0 0 10px #1db954;
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0% {
        opacity: 0.3;
    }

    50% {
        opacity: 1;
    }

    100% {
        opacity: 0.3;
    }
}


/* Styling for the disabled state of the button */
#modal-submit-btn:disabled {
    background: #222 !important;
    /* Dark gray background */
    border-color: #333 !important;
    color: #555 !important;
    /* Muted text color */
    cursor: not-allowed;
    /* Shows the 'block' icon on hover */
    opacity: 0.6;
    transform: none !important;
    /* Remove any hover lift effects */
    box-shadow: none !important;
    /* Remove glow */
}

/* Optional: styling for the select when it's waiting for input */
.futuristic-select:invalid {
    border-color: rgba(29, 185, 84, 0.1);
}
