/* Reset and Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}
body {
    background: radial-gradient(circle at center, #1a0033, #000000 70%);
    color: #ffffff;
    font-family: 'Montserrat', sans-serif;
    line-height: 1.6;
    overflow-x: hidden;
    position: relative;
}
body.steps-page {
    background: radial-gradient(circle at top left, #2a0044, #000000 70%); /* Slightly different gradient */
}
h1, h2, h3 {
    font-weight: 900;
    text-transform: uppercase;
    text-align: center;
    word-wrap: break-word;
    overflow-wrap: break-word;
}
/* Smooth Scroll */
html {
    scroll-behavior: smooth;
}
/* Navigation */
nav {
    position: fixed;
    top: 0;
    width: 100%;
    background: rgba(0, 0, 0, 0.9);
    z-index: 50;
    backdrop-filter: blur(10px);
    animation: slideDown 0.5s ease-out;
    padding: 1rem; /* Added top/bottom padding */
    display: flex;
    align-items: center;
    overflow: hidden;
}
@keyframes slideDown {
    from { transform: translateY(-100%); }
    to { transform: translateY(0); }
}
nav .container {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    flex-direction: row;
    justify-content: space-between;
    align-items: center;
    width: 100%;
    flex-wrap: nowrap;
}
nav .logo {
    height: 40px;
    width: auto;
    max-width: 50%;
    flex-shrink: 0;
    object-fit: contain; /* Prevent deformation */
}
nav a.join-btn {
    background: linear-gradient(135deg, #4b0082, #00b7eb);
    color: #000000;
    padding: 0.5rem 1rem;
    border-radius: 50px;
    text-decoration: none;
    font-weight: 700;
    font-size: 1rem;
    text-transform: uppercase;
    transition: all 0.3s ease;
    box-shadow: 0 0 15px rgba(0, 183, 235, 0.5);
    white-space: nowrap;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}
nav a.join-btn:hover {
    color: #ffffff;
    transform: scale(1.05);
    box-shadow: 0 0 25px rgba(0, 183, 235, 0.8);
    animation: pulse 1s infinite;
}
@keyframes pulse {
    0% { box-shadow: 0 0 15px rgba(0, 183, 235, 0.5); }
    50% { box-shadow: 0 0 25px rgba(0, 183, 235, 0.8); }
    100% { box-shadow: 0 0 15px rgba(0, 183, 235, 0.5); }
}
/* Media Queries for Mobile */
@media (max-width: 768px) {
    nav {
        padding: 0.75rem;
    }
    nav .container {
        flex-direction: row;
        justify-content: space-between;
        align-items: center;
    }
    nav .logo {
        height: 30px;
        max-width: 40%;
    }
    nav a.join-btn {
        padding: 0.3rem 0.8rem;
        height: 30px;
        font-size: 0.9rem;
    }
}
@media (max-width: 480px) {
    nav {
        padding: 0.5rem;
    }
    nav .logo {
        height: 25px;
        max-width: 35%;
    }
    nav a.join-btn {
        padding: 0.2rem 0.6rem;
        height: 25px;
        font-size: 0.8rem;
    }
}
/* Hero Section */
.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 2rem;
    position: relative;
    overflow: hidden;
    background: url('data:image/svg+xml,%3Csvg xmlns="http://www.w3.org/2000/svg" width="100" height="100" viewBox="0 0 100 100"%3E%3Ccircle cx="50" cy="50" r="40" fill="none" stroke="%2300b7eb" stroke-width="1" opacity="0.1"/%3E%3C/svg%3E') repeat;
}
.hero.steps-hero {
    min-height: 80vh; /* Slightly shorter for steps page */
    background: none; /* No SVG pattern */
}
.hero .container {
    display: flex;
    flex-direction: column;
    align-items: center;
    max-width: 800px;
    width: 100%;
    padding: 0 1rem;
}
.hero h1 {
    font-size: 4rem;
    font-weight: 400;
    letter-spacing: 4px;
    line-height: 1.2;
    margin-bottom: 1.5rem;
    animation: fadeIn 1s ease-out forwards;
}
.hero h1 span {
    color: #00b7eb;
}
.hero p {
    font-size: 1.5rem;
    margin: 0 auto 2rem;
    max-width: 100%;
}
.hero .btn {
    animation: fadeIn 1s ease-out forwards;
    white-space: nowrap;
}
@media (max-width: 768px) {
    .hero h1 {
        font-size: 2.5rem;
    }
    .hero p {
        font-size: 1.2rem;
    }
    .hero .btn {
        padding: 0.75rem 1.5rem;
        font-size: 1rem;
    }
}
@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}
.btn {
    background: linear-gradient(135deg, #4b0082, #00b7eb);
    color: #000000;
    padding: 1rem 2rem;
    border-radius: 50px;
    text-decoration: none;
    font-weight: 700;
    font-size: 1.25rem;
    text-transform: uppercase;
    transition: all 0.3s ease;
    box-shadow: 0 0 15px rgba(0, 183, 235, 0.5);
    cursor: pointer;
}
.btn:hover {
    color: #ffffff;
    transform: scale(1.05);
    box-shadow: 0 0 25px rgba(0, 183, 235, 0.8);
    animation: pulse 1s infinite;
}
/* Particle Background with Parallax */
#particles-js {
    position: absolute;
    width: 100%;
    height: 100%;
    top: 0;
    left: 0;
    z-index: -1;
    transform: translateZ(0);
}
/* Section Styles */
section {
    padding: 6rem 2rem;
    position: relative;
    animation: fadeInSection 0.8s ease-out forwards;
}
@keyframes fadeInSection {
    from { opacity: 0; transform: translateY(30px); }
    to { opacity: 1; transform: translateY(0); }
}
.container {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    align-items: center;
}
h2 {
    font-size: 3rem;
    margin-bottom: 3rem;
    text-shadow: 0 0 10px rgba(0, 183, 235, 0.5);
    max-width: 90%;
}
@media (max-width: 768px) {
    h2 {
        font-size: 2rem;
    }
}
@media (max-width: 480px) {
    h2 {
        font-size: 1.5rem;
    }
}
/* Modern Dividers */
.divider {
    height: 2px;
    background: linear-gradient(to right, transparent, #ffd700, transparent);
    margin: 4rem auto;
    width: 50%;
    box-shadow: 0 0 20px rgba(255, 215, 0, 0.7);
    transform: skew(-20deg);
    animation: fadeInDivider 1s ease-out forwards;
}
@keyframes fadeInDivider {
    from { opacity: 0; width: 0; }
    to { opacity: 1; width: 50%; }
}
/* Pain Points Section */
.pain-points {
    background: rgba(0, 0, 0, 0.3);
    text-align: center;
}
.pain-points p {
    font-size: 1.25rem;
    max-width: 800px;
    margin: 0 auto 1.5rem;
}
/* Formula Section */
.formula-grid {
    display: flex;
    justify-content: center;
    gap: 1.5rem;
    margin-top: 2rem;
    flex-wrap: wrap;
}
.formula-grid.steps-grid {
    gap: 2rem; /* Slightly larger gap for steps page */
}
.formula-card {
    background: linear-gradient(135deg, rgba(255, 215, 0, 0.2), rgba(192, 192, 192, 0.2));
    padding: 2rem;
    border-radius: 15px;
    text-align: center;
    min-width: 180px;
    border: 1px solid #ffd700;
    box-shadow: 0 0 20px rgba(255, 215, 0, 0.3);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    animation: cardPop 0.5s ease-out forwards;
    position: relative;
}
.formula-card:nth-child(1) { animation-delay: 0.1s; }
.formula-card:nth-child(2) { animation-delay: 0.2s; }
.formula-card:nth-child(3) { animation-delay: 0.3s; }
.formula-card:nth-child(4) { animation-delay: 0.4s; }
@keyframes cardPop {
    from { opacity: 0; transform: scale(0.9); }
    to { opacity: 1; transform: scale(1); }
}
.formula-card:hover {
    transform: scale(1.1) translateY(-10px);
    box-shadow: 0 0 30px rgba(192, 192, 192, 0.7);
}
.formula-card h3 {
    color: #ffd700;
    font-size: 1.8rem;
    margin-bottom: 1rem;
    text-shadow: 0 0 10px rgba(255, 215, 0, 0.5);
}
.formula-card p {
    font-size: 1rem;
    color: #ffffff;
}
.formula-card i {
    font-size: 2rem;
    color: #ffd700;
    margin-bottom: 1rem;
    display: block;
}
.formula-equation {
    font-size: 2rem;
    font-weight: 900;
    color: #c0c0c0;
    text-shadow: 0 0 15px rgba(192, 192, 192, 0.7);
    margin-bottom: 2rem;
}
/* Final CTA */
.final-cta {
    padding: 6rem 2rem;
    text-align: center;
}
.final-cta .container {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}
.final-cta p {
    font-size: 1.5rem;
    max-width: 800px;
    margin: 0 auto 2rem;
}
/* Footer */
footer {
    background: #1a1a1a;
    padding: 2rem;
    text-align: center;
    font-size: 0.9rem;
    animation: fadeInSection 0.8s ease-out forwards;
}
footer em {
    color: #00b7eb;
}
/* Popup Form */
.popup {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.8);
    z-index: 100;
    justify-content: center;
    align-items: center;
}
.popup-content {
    background: linear-gradient(135deg, #1a0033, #000000);
    padding: 2rem;
    border-radius: 15px;
    width: 90%;
    max-width: 600px;
    box-shadow: 0 0 30px rgba(0, 183, 235, 0.5);
    position: relative;
    animation: popupFadeIn 0.5s ease-out;
}
@keyframes popupFadeIn {
    from { opacity: 0; transform: scale(0.9); }
    to { opacity: 1; transform: scale(1); }
}
.popup-content h3 {
    font-size: 1.5rem;
    color: #00b7eb;
    margin-bottom: 1.5rem;
}
.popup-content input[type="text"],
.popup-content input[type="email"] {
    width: 80%; /* Reduced width to fit container better */
    max-width: 400px; /* Cap width */
    padding: 0.75rem 1rem;
    margin: 0 auto 1rem; /* Centered with margin */
    display: block; /* Ensure block-level for centering */
    border: 1px solid #00b7eb;
    border-radius: 5px;
    background: rgba(255, 255, 255, 0.1);
    color: #ffffff;
    font-size: 1rem;
    box-sizing: border-box;
}
.popup-content button {
    background: linear-gradient(135deg, #4b0082, #00b7eb);
    color: #000000;
    padding: 0.75rem 1.5rem;
    border: none;
    border-radius: 50px;
    font-weight: 700;
    text-transform: uppercase;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 0 15px rgba(0, 183, 235, 0.5);
}
.popup-content button:hover {
    color: #ffffff;
    transform: scale(1.05);
    box-shadow: 0 0 25px rgba(0, 183, 235, 0.8);
}
.popup-content .close-btn {
    position: absolute;
    top: 10px;
    right: 10px;
    font-size: 1.5rem;
    color: #00b7eb;
    cursor: pointer;
}
/* Cursor Trail */
.cursor-trail {
    position: absolute;
    width: 10px;
    height: 10px;
    background: rgba(0, 183, 235, 0.5);
    border-radius: 50%;
    pointer-events: none;
    z-index: 1000;
    transition: transform 0.1s ease, opacity 0.2s ease;
    opacity: 0;
}