:root {
    /* Dark Mode (Default) */
    --bg-color: #050a14;
    --text-color: #e0e6ed;
    --primary-color: #67E1C1;
    --secondary-color: #9385FF;
    --glass-bg: rgba(255, 255, 255, 0.03);
    --glass-border: rgba(255, 255, 255, 0.1);
    --font-heading: 'Be Vietnam Pro', sans-serif;
    --font-body: 'Be Vietnam Pro', sans-serif;
    --overlay-gradient: radial-gradient(circle at center, transparent 0%, var(--bg-color) 90%);
}

/* Light Mode Override */
.light-mode {
    --bg-color: #f0f4f8;
    --text-color: #1a202c;
    --primary-color: #1DAC8E;
    /* Darker teal for light mode */
    --secondary-color: #6B5DD3;
    /* Darker purple for light mode */
    --glass-bg: rgba(0, 0, 0, 0.05);
    /* Dark tint for glass */
    --glass-border: rgba(0, 0, 0, 0.1);
    --overlay-gradient: radial-gradient(circle at center, transparent 0%, rgba(255, 255, 255, 0.8) 90%);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    background-color: var(--bg-color);
    color: var(--text-color);
    font-family: var(--font-body);
    overflow-x: hidden;
    height: 100vh;
    display: flex;
    flex-direction: column;
    position: relative;
    transition: background-color 0.3s ease, color 0.3s ease;
}

#particles-canvas {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
}

/* Vignette & Soft Gradient Overlay */
.glass-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: var(--overlay-gradient);
    z-index: 2;
    pointer-events: none;
    transition: background 0.3s ease;
}

header,
main,
footer {
    position: relative;
    z-index: 10;
}

/* Header */
header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 2rem 5%;
}

.logo {
    display: flex;
    align-items: center;
    text-decoration: none;
    transition: transform 0.3s ease;
}

.logo:hover {
    transform: scale(1.05);
}

.logo img {
    height: 50px;
    width: auto;
    display: block;
}

.logo-text {
    font-family: var(--font-heading);
    font-size: 2.2rem;
    font-weight: 950;
    letter-spacing: -0.5px;
    color: var(--text-color);
    line-height: 1;
    text-shadow: 0 0 20px rgba(0, 243, 255, 0.25);
    text-decoration: none;
}

.logo .highlight {
    color: var(--primary-color);
    margin-left: -2px;
}





/* Theme Toggle */
.theme-toggle {
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    color: var(--text-color);
    width: 40px;
    height: 40px;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    transition: all 0.3s ease;
    user-select: none;
    outline: none;
    -webkit-tap-highlight-color: transparent;
}

.theme-toggle:hover {
    background: var(--primary-color);
    color: #fff;
    box-shadow: 0 0 15px var(--primary-color);
}

/* Main Hero */
main {
    flex: 1;
    display: flex;
    justify-content: center;
    align-items: center;
    text-align: center;
    padding: 0 1rem;
}

.hero-content {
    max-width: 800px;
    width: 100%;
}

.badge {
    display: inline-block;
    padding: 0.5rem 1rem;
    background: rgba(189, 0, 255, 0.1);
    border: 1px solid var(--secondary-color);
    color: var(--secondary-color);
    border-radius: 50px;
    font-size: 0.8rem;
    font-weight: 600;
    letter-spacing: 1px;
    text-transform: uppercase;
    margin-bottom: 2rem;
    box-shadow: 0 0 15px rgba(189, 0, 255, 0.2);
}

h1 {
    font-family: var(--font-heading);
    font-size: 4rem;
    line-height: 1.1;
    margin-bottom: 1.5rem;
    letter-spacing: -1px;
    color: var(--text-color);
    /* Ensure heading adapts */
}

.gradient-text {
    background: linear-gradient(135deg, var(--text-color) 0%, var(--primary-color) 50%, var(--secondary-color) 100%);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    filter: drop-shadow(0 0 20px rgba(0, 243, 255, 0.3));
}

p {
    font-size: 1.2rem;
    color: var(--text-color);
    opacity: 0.8;
    margin-bottom: 3rem;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
    line-height: 1.6;
}

/* Form */
.input-group {
    display: flex;
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    border-radius: 50px;
    padding: 0.5rem;
    backdrop-filter: blur(10px);
    max-width: 500px;
    margin: 0 auto;
    transition: transform 0.3s ease, border-color 0.3s ease;
}

.input-group:focus-within {
    border-color: var(--primary-color);
    transform: scale(1.02);
    box-shadow: 0 0 20px rgba(0, 243, 255, 0.15);
}

input[type="email"] {
    flex: 1;
    background: transparent;
    border: none;
    padding: 1rem 1.5rem;
    color: var(--text-color);
    font-size: 1rem;
    outline: none;
}

input[type="email"]::placeholder {
    color: var(--text-color);
    opacity: 0.5;
}

.btn-glow {
    background: linear-gradient(90deg, var(--secondary-color), var(--primary-color));
    border: none;
    padding: 0 2rem;
    border-radius: 50px;
    color: #fff;
    font-weight: 700;
    font-size: 1rem;
    cursor: pointer;
    transition: all 0.3s ease;
    white-space: nowrap;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.2);
}

.btn-glow:hover {
    filter: brightness(1.2);
    box-shadow: 0 0 20px rgba(0, 243, 255, 0.5);
    transform: translateY(-2px);
}

.form-message {
    margin-top: 1rem;
    font-size: 0.9rem;
    height: 1.2em;
    /* Reserve space */
    color: var(--primary-color);
    font-weight: 600;
}

/* Footer */
footer {
    padding: 3rem 1rem;
    text-align: center;
    border-top: 1px solid var(--glass-border);
    background: rgba(0, 0, 0, 0.2);
    /* Keep dark for footprint grounding? Or adaptive? */
    /* Let's make footer adaptive slightly */
    background: var(--glass-bg);
    backdrop-filter: blur(5px);
}

.social-links {
    margin-bottom: 1.5rem;
}

.social-links a {
    color: var(--text-color);
    opacity: 0.5;
    font-size: 1.5rem;
    margin: 0 1rem;
    transition: color 0.3s, transform 0.3s;
    display: inline-block;
}

.social-links a:hover {
    color: var(--primary-color);
    opacity: 1;
    transform: translateY(-3px);
}

footer p {
    font-size: 0.9rem;
    margin-bottom: 0;
    color: var(--text-color);
    opacity: 0.5;
}

/* Responsive */
@media (max-width: 768px) {
    h1 {
        font-size: 2.5rem;
    }

    header {
        padding: 1.5rem;
    }

    .logo img {
        height: 40px;
    }

    .hero-content {
        padding: 0 1rem;
    }

    .input-group {
        flex-direction: column;
        border-radius: 15px;
        background: transparent;
        border: none;
        backdrop-filter: none;
        padding: 0;
    }

    input[type="email"] {
        background: var(--glass-bg);
        border: 1px solid var(--glass-border);
        border-radius: 50px;
        margin-bottom: 1rem;
        width: 100%;
        text-align: center;
        padding: 1rem;
    }

    .btn-glow {
        padding: 1rem;
        width: 100%;
        border-radius: 50px;
    }
}