/* --- Global Variables & Resets --- */
:root {
    --dark-bg: #101218; /* Even darker, more modern */
    --card-bg: #1a1d24; /* Slightly lighter for cards */
    --primary-text: #e0e7ff; /* Light, slightly cool text */
    --secondary-text: #a0a8c0;
    --accent-blue: #007bff; /* From your logo */
    --accent-blue-darker: #0056b3;
    --accent-glow: rgba(0, 123, 255, 0.6);
    --gain-green: #2ecc71; /* A vibrant green for "gains" */
    --border-color: #2a2f3a;
    --font-main: 'Poppins', sans-serif;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: var(--font-main);
    line-height: 1.7;
    color: var(--primary-text);
    background-color: var(--dark-bg);
    overflow-x: hidden; /* Prevent horizontal scroll from animations */
}

.container {
    width: 90%;
    max-width: 1100px;
    margin: auto;
    padding: 0 20px;
}

h1, h2, h3, h4 {
    margin-bottom: 1.2rem;
    font-weight: 700;
    line-height: 1.3;
}

h1 {
    font-size: clamp(2.5rem, 5vw, 3.8rem); /* Responsive font size */
    font-weight: 800;
    text-shadow: 0 0 15px rgba(0, 123, 255, 0.3);
}

h2 {
    font-size: clamp(2rem, 4vw, 2.8rem);
    text-align: center;
    margin-bottom: 2.5rem;
    font-weight: 700;
}

p {
    margin-bottom: 1rem;
    color: var(--secondary-text);
}

a {
    text-decoration: none;
    color: var(--accent-blue);
    transition: color 0.3s ease;
}
a:hover {
    color: #3aa0ff; /* Lighter blue on hover */
}

.highlight-blue {
    color: var(--accent-blue);
}
.text-gain {
    color: var(--gain-green);
    font-weight: 700;
}

/* --- Animations --- */
@keyframes float {
    0% { transform: translateY(0px); }
    50% { transform: translateY(-10px); }
    100% { transform: translateY(0px); }
}
.floating-text {
    animation: float 3.5s ease-in-out infinite;
}
@keyframes floatSubtle {
    0% { transform: translateY(0px); }
    50% { transform: translateY(-5px); }
    100% { transform: translateY(0px); }
}
.floating-text-subtle {
    animation: floatSubtle 4s ease-in-out infinite;
}

@keyframes glow {
    0% { box-shadow: 0 0 5px var(--accent-glow), 0 0 10px var(--accent-glow); }
    50% { box-shadow: 0 0 15px var(--accent-glow), 0 0 25px var(--accent-glow); }
    100% { box-shadow: 0 0 5px var(--accent-glow), 0 0 10px var(--accent-glow); }
}

@keyframes pulseBorder {
    0% { border-color: var(--accent-blue); }
    50% { border-color: var(--accent-glow); }
    100% { border-color: var(--accent-blue); }
}


/* --- Header --- */
header {
    background: rgba(16, 18, 24, 0.8); /* Semi-transparent dark */
    backdrop-filter: blur(10px);
    padding: 1rem 0;
    border-bottom: 1px solid var(--border-color);
    position: sticky;
    top: 0;
    z-index: 1000;
}

header .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}
#logo-3d-container {
    width: 220px;
    height: 100px;
    position: relative;

}
/* Optionally, also for its parent: */
header .logo {

    padding: 5px; /* Give it some visual space */
}

header nav ul {
    list-style: none;
    display: flex;
    align-items: center;
}

header nav ul li {
    margin-left: 25px;
}

header nav ul li a {
    color: var(--primary-text);
    font-weight: 600;
    font-size: 0.95rem;
    transition: color 0.3s ease, text-shadow 0.3s ease;
}

header nav ul li a:hover {
    color: var(--accent-blue);
    text-shadow: 0 0 8px var(--accent-glow);
}

.btn-nav {
    background: var(--accent-blue);
    color: #fff !important;
    padding: 10px 20px;
    border-radius: 50px; /* Pill shape */
    font-weight: 700;
    transition: background 0.3s ease, transform 0.2s ease, box-shadow 0.3s ease;
    box-shadow: 0 4px 15px rgba(0, 123, 255, 0.3);
}

.btn-nav:hover {
    background: var(--accent-blue-darker);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(0, 123, 255, 0.5);
}


/* --- Hero Section --- */
#hero {
    /* background: linear-gradient(135deg, var(--dark-bg) 0%, #1f232e 100%); */
    background-color: var(--dark-bg); /* Fallback if particles don't work or are too much */
    color: #fff;
    padding: 80px 0;
    text-align: center;
    position: relative; /* For particles */
    min-height: 80vh;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Simple CSS Particle Background (Optional - can be performance intensive) */
.particles-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    overflow: hidden;
    z-index: -1; /* Behind content */
}
/* This particle effect needs more JS for true randomness. For CSS only, it's limited.
   A better approach would be a subtle animated gradient or a static abstract image.
   For simplicity, I'll remove the CSS particles for now and rely on a gradient or solid color.
   You can add a JS particle library like particles.js if desired.
*/
#hero {
     background: radial-gradient(ellipse at bottom, #1b2735 0%, #090a0f 100%); /* Spacey gradient */
}


#hero .sub-headline {
    font-size: 1.4rem;
    margin-bottom: 2.5rem;
    max-width: 750px;
    margin-left: auto;
    margin-right: auto;
    color: var(--primary-text);
    opacity: 0.9;
    font-weight: 400;
}

.btn {
    display: inline-block;
    padding: 15px 35px;
    border: none;
    border-radius: 50px; /* Pill shape */
    cursor: pointer;
    font-size: 1.1rem;
    font-weight: 700;
    transition: all 0.3s ease;
    letter-spacing: 0.5px;
    text-transform: uppercase;
}

.btn-primary {
    background: var(--accent-blue);
    color: #fff;
    box-shadow: 0 5px 20px rgba(0, 123, 255, 0.4);
}

.btn-primary:hover {
    background: var(--accent-blue-darker);
    transform: translateY(-3px) scale(1.05);
    box-shadow: 0 8px 25px rgba(0, 123, 255, 0.6);
}

.btn-glow {
    animation: glow 2.5s ease-in-out infinite alternate;
}
.btn i {
    margin-left: 8px;
}

#hero .small-text {
    font-size: 0.9rem;
    margin-top: 1.5rem;
    color: var(--secondary-text);
    opacity: 0.7;
}

/* --- Sections General Styling --- */
section {
    padding: 70px 0;
}
#problem-opportunity, #features {
    background-color: var(--dark-bg); /* Keep consistent dark bg */
}
#how-it-works {
    background-color: var(--card-bg); /* Slightly different dark for variety */
}

/* Problem/Opportunity Section */
.opportunity-items {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 30px;
    text-align: center;
    margin-top: 3rem;
}

.opportunity-items .item {
    background: var(--card-bg);
    padding: 30px 25px;
    border-radius: 12px;
    border: 1px solid var(--border-color);
    box-shadow: 0 5px 15px rgba(0,0,0,0.2);
    transition: transform 0.3s ease, box-shadow 0.3s ease, border-color 0.3s ease;
}

.opportunity-items .item:hover {
    transform: translateY(-10px);
    box-shadow: 0 10px 30px rgba(0, 123, 255, 0.2);
    border-color: var(--accent-blue);
}

.opportunity-items .item .icon {
    font-size: 2.8rem;
    margin-bottom: 1rem;
    color: var(--accent-blue);
    transition: transform 0.3s ease;
}
.opportunity-items .item:hover .icon {
    transform: scale(1.1);
}
.opportunity-items .item h3 {
    color: var(--primary-text);
    font-size: 1.4rem;
    margin-bottom: 0.7rem;
}

/* How It Works Section (Steps Grid) */
.steps-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 25px;
    margin-top: 2rem;
}

.step-card {
    background: var(--dark-bg); /* Darker than section bg for contrast */
    padding: 25px;
    border-radius: 10px;
    border-left: 5px solid var(--accent-blue);
    box-shadow: 0 4px 12px rgba(0,0,0,0.15);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    position: relative;
}

.step-card:hover {
    transform: scale(1.03);
    box-shadow: 0 8px 25px rgba(0, 123, 255, 0.15);
}

.step-number {
    position: absolute;
    top: -15px;
    left: 20px;
    background-color: var(--accent-blue);
    color: white;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 1.1rem;
    box-shadow: 0 0 10px var(--accent-glow);
}

.step-card h3 {
    margin-top: 20px; /* Space for number */
    color: var(--accent-blue);
    font-size: 1.3rem;
}

/* Features Section */
.feature-blocks {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 25px;
}

.feature-block {
    background: var(--card-bg);
    padding: 30px 20px;
    border-radius: 10px;
    text-align: center;
    border: 1px solid transparent; /* For hover effect */
    transition: transform 0.3s ease, border-color 0.3s ease, box-shadow 0.3s ease;
}
.feature-block:hover {
    transform: translateY(-8px);
    border-color: var(--accent-blue);
    box-shadow: 0 0 20px var(--accent-glow);
}

.feature-icon {
    font-size: 2.5rem;
    color: var(--accent-blue);
    margin-bottom: 1rem;
    display: block; /* Center it */
    margin-left: auto;
    margin-right: auto;
}

.feature-block h4 {
    color: var(--primary-text);
    font-size: 1.25rem;
    margin-bottom: 0.5rem;
}

/* CTA Section */
.cta-section {
    background: linear-gradient(to right, var(--accent-blue), var(--accent-blue-darker));
    color: #fff;
    padding: 70px 0;
    text-align: center;
    border-radius: 20px; /* Rounded section */
    margin: 40px auto; /* Give it some space */
    max-width: 95%;
    box-shadow: 0 10px 30px rgba(0, 123, 255, 0.4);
}

.cta-section h2 {
    color: #fff;
    text-shadow: 0 2px 5px rgba(0,0,0,0.2);
}

.cta-section p {
    max-width: 650px;
    margin: 0 auto 2.5rem auto;
    font-size: 1.15rem;
    color: #e0e7ff;
    opacity: 0.95;
}

.cta-section form {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 15px;
    flex-wrap: wrap;
}

.cta-section input[type="email"] {
    padding: 15px 20px;
    font-size: 1rem;
    border: 2px solid transparent;
    border-radius: 50px;
    min-width: 300px;
    background-color: rgba(255,255,255,0.15);
    color: #fff;
    font-weight: 500;
    transition: background-color 0.3s ease, border-color 0.3s ease;
}
.cta-section input[type="email"]::placeholder {
    color: #c0d0ff;
}
.cta-section input[type="email"]:focus {
    outline: none;
    background-color: rgba(255,255,255,0.2);
    border-color: #fff;
}

.cta-section .btn-primary {
    background-color: #fff;
    color: var(--accent-blue);
    box-shadow: 0 5px 15px rgba(0,0,0,0.2);
}
.cta-section .btn-primary:hover {
    background-color: #f0f0f0;
    color: var(--accent-blue-darker);
    transform: translateY(-3px) scale(1.03);
    box-shadow: 0 8px 20px rgba(0,0,0,0.3);
}

/* Footer */
footer {
    background: var(--dark-bg);
    color: var(--secondary-text);
    text-align: center;
    padding: 2.5rem 0;
    font-size: 0.9rem;
    border-top: 1px solid var(--border-color);
}

footer a {
    color: var(--accent-blue);
    font-weight: 500;
}
footer a:hover {
    color: #3aa0ff;
}

/* --- Responsive Design --- */
@media (max-width: 768px) {
    header .container {
        flex-direction: column;
    }
    header nav ul {
        margin-top: 1rem;
        flex-direction: column;
    }
    header nav ul li {
        margin: 8px 0;
    }

    #hero {
        padding: 60px 0;
        min-height: 60vh;
    }
    #hero h1 { font-size: 2.2rem; }
    #hero .sub-headline { font-size: 1.1rem; }

    .opportunity-items, .steps-grid, .feature-blocks {
        grid-template-columns: 1fr; /* Stack on mobile */
    }
    
    .cta-section form {
        flex-direction: column;
    }
    .cta-section input[type="email"] {
        width: 100%;
        min-width: auto;
    }
    .cta-section .btn {
        width: 100%;
    }
}