:root {
    --emerald: #16A34A;
    --deepGreen: #0F3D2E;
    --forestText: #064E3B;
    --mint: #BBF7D0;
    --softBg: #F7FFF9;
}

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    overflow-x: hidden;
    width: 100%;
}

body {
    margin: 0;
    padding: 0;
    font-family: 'Plus Jakarta Sans', sans-serif;
    background-color: #ffffff;
    color: var(--forestText);
    -webkit-font-smoothing: antialiased;
    overflow-x: hidden;
    width: 100%;
    position: relative;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1.5rem;
    width: 100%;
}

/* --- Navigation & Capsule Logo --- */
nav {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    padding: 0.75rem 1rem;
    transition: all 0.3s ease;
    box-sizing: border-box;
}

.nav-inner {
    max-width: 1200px;
    margin: 0 auto;
    width: 100%;
    background: transparent;
    border: 1px solid transparent;
    border-radius: 0px;
    padding: 0.5rem 1.5rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    backdrop-filter: blur(0px);
    -webkit-backdrop-filter: blur(0px);
}

.nav-inner-scrolled {
    max-width: 850px;
    background: rgba(255, 255, 255, 0.75);
    border: 1px solid rgba(226, 232, 240, 0.8);
    border-radius: 24px;
    padding: 0.5rem 1.5rem;
    box-shadow: 0 15px 35px rgba(15, 61, 46, 0.06);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
}

nav.nav-scrolled {
    padding: 0.5rem 1rem;
}

/* LOGO SIZE — compact for larger logo file */
.logo-container {
    height: 70px;
    display: flex;
    align-items: center;
}

@media (max-width: 768px) {
    .logo-container {
        height: 50px;
    }
}

.logo-container img {
    height: 100%;
    width: auto;
    display: block;
}

.nav-links {
    display: flex;
    align-items: center;
    gap: 2.5rem;
}

/* --- Mobile Navigation --- */
.mobile-menu-toggle {
    display: none;
    border: none;
    background: none;
    cursor: pointer;
    color: var(--deepGreen);
    padding: 0.5rem;
    align-items: center;
    justify-content: center;
    z-index: 1001;
    transition: transform 0.2s;
}

.mobile-menu-toggle:active {
    transform: scale(0.9);
}

.mobile-menu-dropdown {
    position: absolute;
    top: 100%;
    left: 1rem;
    right: 1rem;
    background: white;
    border: 1px solid rgba(226, 232, 240, 0.8);
    border-radius: 24px;
    padding: 1.75rem;
    display: flex;
    flex-direction: column;
    gap: 1.1rem;
    box-shadow: 0 20px 45px rgba(15, 61, 46, 0.1);
    margin-top: 0.5rem;
    z-index: 999;
}

.mobile-menu-dropdown a {
    text-decoration: none;
    color: var(--forestText);
    font-size: 1.1rem;
    font-weight: 700;
    padding: 0.6rem 0;
    border-bottom: 1px solid #f1f5f9;
    transition: color 0.2s;
}

.mobile-menu-dropdown a:hover {
    color: var(--emerald);
}

.mobile-menu-dropdown a:last-child {
    border-bottom: none;
}

@media (max-width: 1024px) {
    .mobile-menu-toggle {
        display: flex;
    }

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

/* --- Buttons --- */
.btn-primary {
    background-color: var(--emerald) !important;
    color: white !important;
    padding: 1.1rem 2.5rem;
    border-radius: 16px;
    text-decoration: none;
    font-weight: 800;
    font-size: 1rem;
    border: none;
    border-bottom: 4px solid rgba(0, 0, 0, 0.2);
    transition: 0.2s;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    cursor: pointer;
}

.btn-primary:hover {
    transform: translateY(-2px);
    border-bottom-width: 6px;
    box-shadow: 0 10px 25px rgba(22, 163, 74, 0.3);
}

.btn-outline {
    background: white;
    border: 2px solid #cbd5e1;
    padding: 1.1rem 2.5rem;
    border-radius: 16px;
    text-decoration: none;
    color: var(--deepGreen) !important;
    font-weight: 800;
    font-size: 1rem;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
}

.btn-outline:hover {
    border-color: var(--emerald);
    color: var(--emerald) !important;
}

.btn-secondary {
    background-color: rgba(22, 163, 74, 0.08) !important;
    color: var(--emerald) !important;
    padding: 1.1rem 2.5rem;
    border-radius: 16px;
    text-decoration: none;
    font-weight: 800;
    font-size: 1rem;
    border: 1px solid rgba(22, 163, 74, 0.2);
    transition: 0.2s;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    cursor: pointer;
}

.btn-secondary:hover {
    background-color: rgba(22, 163, 74, 0.15) !important;
    transform: translateY(-2px);
    border-color: rgba(22, 163, 74, 0.4);
}

/* --- Hero Section --- */
.hero {
    padding: 120px 0 100px 0;
    min-height: 100vh;
    display: flex;
    align-items: center;
    background-color: var(--softBg);
    background-image: radial-gradient(at 0% 0%, rgba(22, 163, 74, 0.12) 0px, transparent 50%),
        radial-gradient(at 100% 100%, rgba(15, 61, 46, 0.12) 0px, transparent 50%);
}

.grid-2 {
    display: grid;
    grid-template-columns: 1.1fr 0.9fr;
    gap: 4rem;
    align-items: center;
}

.hero h1 {
    font-size: clamp(1.8rem, 7vw, 4.5rem);
    line-height: 1.05;
    font-weight: 800;
    color: var(--deepGreen);
    margin: 1.5rem 0;
}

.hero p {
    font-size: 1.25rem;
    opacity: 0.95;
    line-height: 1.6;
    max-width: 600px;
    margin-bottom: 2.5rem;
}

.hero-cta {
    display: flex;
    gap: 1.25rem;
}

@media (max-width: 1024px) {
    .grid-2 {
        grid-template-columns: 1fr;
        text-align: center;
    }

    .hero-cta {
        justify-content: center;
    }

    .hero p {
        margin-left: auto;
        margin-right: auto;
    }
}

@media (max-width: 640px) {
    .hero-cta {
        flex-direction: column;
        width: 100%;
        align-items: center;
    }

    .hero-cta a,
    .hero-cta button {
        width: 100%;
        max-width: 400px;
    }
}

/* --- Global Sections --- */
.section-padding {
    padding: 100px 0;
}

.bg-soft {
    background-color: var(--softBg);
}

.section-tag {
    display: inline-block;
    padding: 0.6rem 1.2rem;
    background: rgba(22, 163, 74, 0.1);
    border-radius: 100px;
    color: var(--emerald);
    font-weight: 800;
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 2px;
    margin-bottom: 1.5rem;
}

/* --- Pricing Section & 3D Spatial Tilts --- */
.pricing-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2.5rem;
    margin-top: 4rem;
    perspective: 1200px;
    /* Enable 3D coordinate space for the grid container */
}

@media (max-width: 1024px) {
    .pricing-grid {
        grid-template-columns: 1fr;
        max-width: 480px;
        margin: 4rem auto 0;
        perspective: none;
        /* Disable perspective on stacked mobile layout */
    }
}

.pricing-card {
    background: white;
    padding: 3.5rem 2.5rem;
    border-radius: 40px;
    border: 1px solid #e2e8f0;
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    cursor: pointer;
    transition: transform 0.6s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.6s cubic-bezier(0.16, 1, 0.3, 1), border-color 0.3s ease, background-color 0.3s ease;
    transform-style: preserve-3d;
    will-change: transform, box-shadow;
}

/* Initial 3D Spatial Angles */
.pricing-card:nth-child(1) {
    transform: perspective(1200px) rotateY(8deg) translateZ(-10px) scale(0.98);
    z-index: 5;
}

.pricing-card.featured {
    background: var(--deepGreen);
    color: white !important;
    transform: perspective(1200px) rotateY(0deg) translateZ(15px) scale(1.03);
    border: none;
    box-shadow: 0 25px 60px rgba(15, 61, 46, 0.15);
    z-index: 10;
}

.pricing-card:nth-child(3) {
    transform: perspective(1200px) rotateY(-8deg) translateZ(-10px) scale(0.98);
    z-index: 5;
}

/* Premium Hover Effects - Straightening and Lifting in 3D */
.pricing-card:hover {
    transform: perspective(1200px) rotateY(0deg) translateZ(30px) translateY(-12px) scale(1.04) !important;
    box-shadow: 0 35px 70px rgba(15, 61, 46, 0.12);
    border-color: rgba(22, 163, 74, 0.4);
    z-index: 20;
}

.pricing-card.featured:hover {
    transform: perspective(1200px) rotateY(0deg) translateZ(45px) translateY(-16px) scale(1.07) !important;
    box-shadow: 0 40px 90px rgba(15, 61, 46, 0.35);
    z-index: 20;
}

/* Adjustments on Mobile to ignore angles but keep lift */
@media (max-width: 1024px) {

    .pricing-card:nth-child(1),
    .pricing-card:nth-child(3) {
        transform: none;
    }

    .pricing-card.featured {
        transform: scale(1.02);
    }
}

.popular-tag {
    position: absolute;
    top: 0;
    left: 50%;
    transform: translate(-50%, -50%);
    background: var(--emerald);
    color: white;
    padding: 0.75rem 2rem;
    border-radius: 100px;
    font-size: 0.75rem;
    font-weight: 900;
    text-transform: uppercase;
    letter-spacing: 2px;
    white-space: nowrap;
}

/* --- Pricing Card Elements --- */
.price {
    font-size: 3rem;
    font-weight: 800;
    margin-bottom: 0.5rem;
    letter-spacing: -1px;
    display: flex;
    align-items: baseline;
    justify-content: center;
    gap: 2px;
}

.price span {
    font-size: 1.1rem;
    font-weight: 500;
    opacity: 0.7;
}

.pricing-card h3 {
    font-size: 1.5rem;
    font-weight: 800;
    margin: 0.25rem 0;
}

.pricing-card .plan-desc {
    font-size: 0.9rem;
    opacity: 0.65;
    margin-bottom: 2rem;
    line-height: 1.4;
    max-width: 240px;
}

.pricing-card ul {
    list-style: none;
    padding: 0;
    margin: 0 0 2.5rem 0;
    text-align: left;
    line-height: 2.2;
    font-weight: 700;
    font-size: 0.95rem;
    width: 100%;
}

.pricing-card:not(.featured) ul {
    color: #475569;
}

/* --- Pricing List Icon Alignment --- */
.pricing-card ul li {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 0.5rem;
}

.pricing-card ul li svg.lucide {
    width: 18px;
    height: 18px;
    min-width: 18px;
    flex-shrink: 0;
}


footer {
    background: #081a14;
    color: #94a3b8;
    padding: 6rem 0 3rem 0;
}

.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1fr;
    gap: 4rem;
}

@media (max-width: 768px) {
    .footer-grid {
        grid-template-columns: 1fr;
        text-align: center;
    }
}





/* --- Plan Recommendation & Custom Calculator Animations --- */
.pricing-card.recommended {
    border: 3px solid var(--emerald);
    box-shadow: 0 25px 60px rgba(22, 163, 74, 0.22);
    transform: translateY(-8px);
}

.calculator-grid {
    display: grid;
    grid-template-columns: 1.2fr 0.8fr;
    gap: 4rem;
    align-items: start;
}

@keyframes pulse {
    0% {
        transform: scale(0.95);
        box-shadow: 0 0 0 0 rgba(22, 163, 74, 0.7);
    }

    70% {
        transform: scale(1);
        box-shadow: 0 0 0 10px rgba(22, 163, 74, 0);
    }

    100% {
        transform: scale(0.95);
        box-shadow: 0 0 0 0 rgba(22, 163, 74, 0);
    }
}

@media (max-width: 900px) {
    .calculator-grid {
        grid-template-columns: 1fr;
        gap: 2.5rem;
    }
}

/* --- Premium Frosted Glass Pricing Panel --- */
.pricing-control-panel {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 2.5rem;
    max-width: 680px;
    margin: 0 auto 4.5rem auto;
    background: rgba(255, 255, 255, 0.7);
    border: 1px solid rgba(22, 163, 74, 0.15);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border-radius: 28px;
    padding: 0.8rem 1.5rem;
    box-shadow: 0 20px 40px rgba(15, 61, 46, 0.04);
    transition: all 0.3s ease;
}

.pricing-control-panel:hover {
    box-shadow: 0 25px 50px rgba(15, 61, 46, 0.06);
    border-color: rgba(22, 163, 74, 0.25);
}

@media (max-width: 768px) {
    .pricing-control-panel {
        flex-direction: column;
        padding: 1.5rem;
        gap: 1.25rem;
        border-radius: 24px;
        max-width: 320px;
    }
}

/* --- Billing Toggle --- */
.billing-toggle-track {
    position: relative;
    display: flex;
    align-items: center;
    background: rgba(15, 61, 46, 0.05);
    padding: 4px;
    border-radius: 100px;
    width: 290px;
    height: 48px;
    border: 1px solid rgba(15, 61, 46, 0.02);
}

.billing-toggle-slider {
    position: absolute;
    top: 4px;
    width: calc(50% - 4px);
    height: calc(100% - 8px);
    background: var(--emerald);
    border-radius: 100px;
    box-shadow: 0 4px 15px rgba(22, 163, 74, 0.3);
    transition: left 0.35s cubic-bezier(0.16, 1, 0.3, 1);
    z-index: 1;
}

.billing-toggle-btn {
    position: relative;
    flex: 1;
    height: 100%;
    background: transparent;
    border: none;
    border-radius: 100px;
    font-weight: 800;
    font-size: 0.9rem;
    color: var(--forestText);
    cursor: pointer;
    transition: color 0.3s ease;
    z-index: 2;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    outline: none;
}

.billing-toggle-btn:hover {
    color: var(--emerald);
}

.billing-toggle-btn.active {
    color: white !important;
}

.discount-pill {
    background: var(--mint);
    color: var(--forestText);
    font-size: 0.7rem;
    font-weight: 800;
    padding: 0.15rem 0.45rem;
    border-radius: 100px;
    text-transform: uppercase;
    transition: all 0.3s ease;
}

.billing-toggle-btn.active .discount-pill {
    background: rgba(255, 255, 255, 0.25);
    color: white;
}

/* --- Currency Selector --- */
.currency-selector-wrapper {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    background: rgba(255, 255, 255, 0.85);
    border: 2px solid #cbd5e1;
    border-radius: 20px;
    padding: 0.35rem 0.5rem 0.35rem 1rem;
    transition: all 0.3s ease;
    height: 48px;
    width: 220px;
}

.currency-selector-wrapper:hover,
.currency-selector-wrapper:focus-within {
    border-color: var(--emerald);
    box-shadow: 0 4px 15px rgba(22, 163, 74, 0.15);
}

.currency-icon-badge {
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.currency-select-container {
    position: relative;
    flex-grow: 1;
    height: 100%;
    display: flex;
    align-items: center;
}

.currency-select {
    appearance: none;
    -webkit-appearance: none;
    width: 100%;
    height: 100%;
    background: transparent;
    border: none;
    outline: none;
    font-family: inherit;
    font-weight: 800;
    font-size: 0.95rem;
    color: var(--deepGreen);
    cursor: pointer;
    padding-right: 1.5rem;
}

.currency-select-arrow {
    position: absolute;
    right: 4px;
    pointer-events: none;
    display: flex;
    align-items: center;
}