/* ========= GLOBAL STYLES & VARIABLES ========= */
:root {
    --bg-main: #F7F5F2;
    --accent-primary: #4A9B89;
    /* Muted Teal */
    --accent-secondary: #E8A07A;
    /* Warm Peach */
    --text-dark: #3D3D3D;
    --text-light: #FFFFFF;
    --border-light: #ddd;
    --font-heading: 'Poppins', sans-serif;
    --font-body: 'Lato', sans-serif;
}

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

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-body);
    background-color: var(--bg-main);
    color: var(--text-dark);
    line-height: 1.6;
    /* Removed cursor: none; */
}

.container {
    max-width: 1100px;
    margin: 0 auto;
    padding: 0 20px;
}

h1,
h2,
h3 {
    font-family: var(--font-heading);
    font-weight: 700;
    line-height: 1.2;
    margin-bottom: 20px;
}

h1 {
    font-size: 3.5rem;
}

h2 {
    font-size: 2.5rem;
    text-align: center;
}

h3 {
    font-size: 1.5rem;
}

p {
    margin-bottom: 20px;
}

ul {
    list-style: none;
}

a {
    text-decoration: none;
    color: var(--accent-primary);
    /* Removed cursor: none; */
}

section {
    padding: 80px 0;
    overflow-x: hidden;
    /* Prevent horizontal scroll from animations */
}

/* ========= CUSTOM CURSOR ========= */
/* Removed .custom-cursor styles to revert to default cursor */


/* ========= ANIMATIONS ========= */
.fade-in {
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.6s ease-out, transform 0.6s ease-out;
}

.fade-in.is-visible {
    opacity: 1;
    transform: translateY(0);
}

@keyframes pulse {
    0% {
        box-shadow: 0 0 0 0 rgba(74, 155, 137, 0.7);
    }

    70% {
        box-shadow: 0 0 0 15px rgba(74, 155, 137, 0);
    }

    100% {
        box-shadow: 0 0 0 0 rgba(74, 155, 137, 0);
    }
}


/* ========= BUTTONS ========= */
.btn {
    display: inline-block;
    padding: 12px 28px;
    border-radius: 50px;
    font-weight: 700;
    font-family: var(--font-heading);
    border: none;
    cursor: pointer;
    /* Changed to pointer */
    transition: all 0.3s ease;
}

.btn-primary {
    background-color: var(--accent-primary);
    color: var(--text-light);
    animation: pulse 2s infinite;
}

.btn-primary:hover {
    background-color: #3a7a6c;
    animation: none;
}

.btn-secondary-outline {
    background-color: transparent;
    color: var(--accent-primary);
    border: 2px solid var(--accent-primary);
}

.btn-secondary-outline:hover {
    background-color: var(--accent-primary);
    color: var(--text-light);
}


/* ========= HEADER & NAVIGATION ========= */
header {
    position: fixed;
    width: 100%;
    top: 0;
    left: 0;
    z-index: 100;
    padding: 20px 0;
    transition: background-color 0.3s ease, box-shadow 0.3s ease;
    background-color: var(--bg-main);
}

header.scrolled {
    background-color: rgba(247, 245, 242, 0.9);
    backdrop-filter: blur(5px);
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

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

.logo {
    font-family: var(--font-heading);
    font-size: 1.8rem;
    font-weight: 700;
    color: var(--text-dark);
}

.nav-links {
    display: flex;
    gap: 30px;
}

.nav-links a {
    color: var(--text-dark);
    font-weight: 700;
    transition: color 0.3s ease;
}

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

.hamburger-menu {
    display: none;
    cursor: pointer;
    /* Changed to pointer */
}

.hamburger-menu span {
    display: block;
    width: 25px;
    height: 3px;
    margin: 5px 0;
    background-color: var(--text-dark);
    transition: all 0.3s ease-in-out;
}


/* ========= HERO SECTION (UPDATED) ========= */
#hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    text-align: center;
    position: relative;
    /* This is essential for the overlay to work */
    color: var(--text-light);
    /* Sets the default text color in this section to white */

    /* 1. Add your background image */
    /*    IMPORTANT: Replace 'hero-background.jpg' with the actual name of your image file. */
    background-image: url('hero-background.jpg');

    /* 2. Make the background image cover the section nicely */
    background-size: cover;
    background-position: center center;
    background-repeat: no-repeat;
}

/* 3. This creates the dark, semi-transparent overlay */
#hero::before {
    content: '';
    /* Pseudo-elements must have a content property */
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;

    /* The overlay color. A dark layer makes white text pop.
       You can adjust the last value (0.6) to make it darker or lighter.
       A value of 0.7 is darker, 0.4 is lighter. */
    background-color: rgba(0, 0, 0, 0.6);
}

/* We need to make sure the content sits ON TOP of the overlay */
.hero-content {
    position: relative;
    /* This raises the content above the ::before pseudo-element */
    z-index: 2;
    /* A z-index of 2 ensures it's above the overlay */
    max-width: 800px;
    margin: 0 auto;
}

.hero-content h1 {
    /* The h1 color is now inherited from #hero (white) */
    min-height: 140px;
    /* Adjust based on font size to prevent layout shift */
}

/* Typewriter Cursor: Update its color to be visible on the dark background */
#typewriter-text::after {
    content: '|';
    display: inline-block;
    animation: blink 0.7s infinite;
    color: var(--text-light);
    /* Make the blinking cursor white */
    font-weight: 300;
}

@keyframes blink {

    0%,
    100% {
        opacity: 1;
    }

    50% {
        opacity: 0;
    }
}

.hero-content p {
    font-size: 1.2rem;
    margin-bottom: 30px;
}

/* NEW: Styles for the hero CTA buttons wrapper */
.hero-cta-buttons {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 20px;
    flex-wrap: wrap;
    /* Allows buttons to wrap on smaller screens if needed */
}

.hero-content small {
    display: block;
    margin-top: 15px;
    opacity: 0.8;
    /* Slightly increased opacity for better readability on an image */
}


/* ========= HOW IT WORKS SECTION ========= */
.steps-container {
    display: flex;
    gap: 30px;
    text-align: center;
    margin-top: 60px;
}

.step-icon {
    margin: 0 auto 20px;
    color: var(--accent-secondary);
}

.step h3 {
    color: var(--accent-primary);
}


/* ========= PRICING SECTION ========= */
.pricing-toggle {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 15px;
    margin-bottom: 40px;
}

.pricing-toggle small {
    color: var(--accent-primary);
    font-weight: bold;
}

.switch {
    position: relative;
    display: inline-block;
    width: 60px;
    height: 34px;
}

.switch input {
    opacity: 0;
    width: 0;
    height: 0;
}

.slider {
    position: absolute;
    cursor: pointer;
    /* Changed to pointer */
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: #ccc;
    transition: .4s;
    border-radius: 34px;
}

.slider:before {
    position: absolute;
    content: "";
    height: 26px;
    width: 26px;
    left: 4px;
    bottom: 4px;
    background-color: white;
    transition: .4s;
    border-radius: 50%;
}

input:checked+.slider {
    background-color: var(--accent-primary);
}

input:checked+.slider:before {
    transform: translateX(26px);
}

.pricing-container {
    display: flex;
    gap: 30px;
    align-items: center;
    margin-top: 60px;
}

.pricing-plan {
    flex: 1;
    background: var(--text-light);
    padding: 40px;
    border-radius: 10px;
    text-align: center;
    border: 2px solid var(--border-light);
}

.pricing-plan.popular {
    border-color: var(--accent-primary);
    position: relative;
    transform: scale(1.05);
    /* Make popular plan slightly bigger */
}

.popular-badge {
    position: absolute;
    top: -15px;
    left: 50%;
    transform: translateX(-50%);
    background: var(--accent-primary);
    color: var(--text-light);
    padding: 5px 15px;
    border-radius: 20px;
    font-size: 0.9rem;
    font-weight: 700;
}

.price {
    font-size: 3rem;
    font-family: var(--font-heading);
    color: var(--accent-primary);
}

.price .billing-cycle {
    font-size: 1rem;
    color: var(--text-dark);
    font-family: var(--font-body);
}

.pricing-plan ul {
    margin: 30px 0;
    text-align: left;
    padding-left: 20px;
}

.pricing-plan ul li {
    margin-bottom: 15px;
}


/* ========= SAFETY SECTION ========= */
#safety {
    background-color: var(--text-dark);
    color: var(--text-light);
}

#safety h2,
#safety h3 {
    color: var(--text-light);
}

#safety ul {
    margin-top: 30px;
    list-style-type: '✓  ';
    padding-left: 20px;
}

#safety ul li {
    margin-bottom: 15px;
}


/* ========= FOOTER ========= */
footer {
    background: #e4e1dc;
    padding: 40px 0;
    text-align: center;
}

/* ========= DISCLAIMER MODAL (NEW) ========= */
.modal {
    display: none;
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    overflow: auto;
    background-color: rgba(0, 0, 0, 0.6);
    backdrop-filter: blur(3px);
}

.modal-content {
    background-color: var(--bg-main);
    margin: 5% auto;
    padding: 30px;
    border-radius: 10px;
    width: 90%;
    max-width: 700px;
    position: relative;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
    animation: slide-down 0.4s ease-out;
}

@keyframes slide-down {
    from {
        transform: translateY(-50px);
        opacity: 0;
    }

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

.close-button {
    color: #aaa;
    position: absolute;
    top: 15px;
    right: 25px;
    font-size: 28px;
    font-weight: bold;
    line-height: 1;
    cursor: pointer;
    transition: color 0.2s ease;
}

.close-button:hover,
.close-button:focus {
    color: var(--text-dark);
}

.modal-content h2 {
    text-align: left;
    margin-top: 0;
    margin-bottom: 25px;
    color: var(--accent-primary);
}

.modal-content h3 {
    margin-top: 20px;
    margin-bottom: 5px;
}

.modal-body {
    max-height: 60vh;
    overflow-y: auto;
    padding-right: 15px;
    /* for scrollbar spacing */
    margin-bottom: 25px;
}

.modal-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 20px;
    margin-top: 20px;
}

.modal-footer label {
    display: flex;
    align-items: center;
    gap: 10px;
    cursor: pointer;
}

#plan-selection-container {
    margin-bottom: 25px;
    padding: 20px;
    background-color: #e4e1dc;
    /* A slightly different background to stand out */
    border-radius: 8px;
    border: 1px solid var(--border-light);
}

#plan-selection-container h4 {
    margin-top: 0;
    margin-bottom: 15px;
    font-family: var(--font-heading);
}

.plan-options {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.plan-options label {
    display: flex;
    align-items: center;
    gap: 10px;
    cursor: pointer;
}

.plan-options input[type="radio"] {
    /* Style the radio button */
    appearance: none;
    -webkit-appearance: none;
    width: 18px;
    height: 18px;
    border: 2px solid var(--text-dark);
    border-radius: 50%;
    outline: none;
    cursor: pointer;
    position: relative;
    transition: background-color 0.2s ease-in-out;
}

.plan-options input[type="radio"]:checked {
    background-color: var(--accent-primary);
    border-color: var(--accent-primary);
}

/* Add a dot inside the checked radio button */
.plan-options input[type="radio"]:checked::before {
    content: '';
    display: block;
    width: 8px;
    height: 8px;
    background-color: var(--text-light);
    border-radius: 50%;
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
}

#proceed-btn {
    animation: none;
    /* Override pulse animation */
}

#proceed-btn:disabled {
    background-color: #ccc;
    cursor: not-allowed;
    animation: none;
}

#proceed-btn:disabled:hover {
    background-color: #ccc;
}


/* ========= RESPONSIVE DESIGN ========= */
@media (max-width: 768px) {
    body {
        cursor: auto;
        /* Revert to default cursor on touch devices */
    }

    .custom-cursor {
        display: none;
        /* Hide custom cursor on touch devices */
    }

    h1 {
        font-size: 2.5rem;
    }

    h2 {
        font-size: 2rem;
    }

    .hero-content h1 {
        min-height: 100px;
    }

    /* NEW: Stacks hero buttons on mobile */
    .hero-cta-buttons {
        flex-direction: column;
    }

    .nav-links {
        position: fixed;
        top: 0;
        right: 0;
        width: 70%;
        height: 100vh;
        background-color: var(--bg-main);
        flex-direction: column;
        justify-content: center;
        align-items: center;
        transform: translateX(100%);
        transition: transform 0.3s ease-in-out;
        box-shadow: -5px 0 15px rgba(0, 0, 0, 0.1);
        z-index: 100;
    }

    .nav-links.active {
        transform: translateX(0);
    }

    .hamburger-menu {
        display: block;
        z-index: 101;
        /* Above nav links */
        cursor: pointer;
    }

    /* Hamburger animation */
    .hamburger-menu.active span:nth-child(1) {
        transform: rotate(45deg) translate(5px, 5px);
    }

    .hamburger-menu.active span:nth-child(2) {
        opacity: 0;
    }

    .hamburger-menu.active span:nth-child(3) {
        transform: rotate(-45deg) translate(7px, -6px);
    }

    .steps-container,
    .pricing-container {
        flex-direction: column;
    }

    .pricing-plan.popular {
        transform: scale(1);
    }

    /* Modal Responsive Styles */
    .modal-content {
        margin: 10% auto;
        width: 95%;
        padding: 20px;
    }

    .modal-body {
        max-height: 65vh;
    }

    .modal-footer {
        flex-direction: column;
        align-items: stretch;
        text-align: center;
    }
}