:root {
    /* Color Palette */
    --bg-dark: #07090F; /* Slightly darker for cleaner contrast */
    --bg-sidebar: #0B0F1A;
    --purple: #7B2DFF;
    --blue: #2D8CFF;
    --cyan: #00F0C8;
    --lime: #C6FF00;
    --pink: #FF4D9D;
    
    --text-main: #FFFFFF;
    --text-muted: #A0AABF;
    --card-bg: #111625; /* Solid color instead of high blur for cleaner look */
    --card-border: rgba(255, 255, 255, 0.05);
    --input-bg: #0B0F1A;

    --gradient: linear-gradient(135deg, var(--purple), var(--cyan));
    --font-family: 'Outfit', sans-serif;
    
    --sidebar-width: 280px;
}

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

body {
    font-family: var(--font-family);
    background-color: var(--bg-dark);
    color: var(--text-main);
    overflow-x: hidden;
    display: flex;
    min-height: 100vh;
}

/* Background Elements (Subtle now) */
.glow-orb {
    position: fixed;
    border-radius: 50%;
    filter: blur(150px);
    z-index: -1;
    opacity: 0.15;
}

.orb-1 {
    width: 500px;
    height: 500px;
    background: var(--purple);
    top: -200px;
    right: -100px;
}

.orb-2 {
    width: 400px;
    height: 400px;
    background: var(--cyan);
    bottom: -100px;
    left: 20%;
}

/* --- SIDEBAR --- */
.sidebar {
    width: var(--sidebar-width);
    background-color: var(--bg-sidebar);
    border-right: 1px solid var(--card-border);
    position: fixed;
    height: 100vh;
    left: 0;
    top: 0;
    display: flex;
    flex-direction: column;
    z-index: 100;
    transition: transform 0.3s ease;
}

.sidebar-header {
    padding: 2rem 1.5rem;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1.5rem;
}

.logo {
    font-size: 1.5rem;
    font-weight: 800;
    letter-spacing: 2px;
    line-height: 1.2;
    mix-blend-mode: screen;
    filter: brightness(0.9) contrast(1.1);
}

.logo-quark {
    color: var(--text-main);
}

.logo-investments {
    background: var(--gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    font-weight: 400;
    font-size: 1rem;
    letter-spacing: 4px;
}

.sidebar-nav {
    flex: 1;
    padding: 0 1.5rem;
}

.sidebar-nav ul {
    list-style: none;
}

.sidebar-nav li {
    margin-bottom: 0.5rem;
}

.sidebar-nav a {
    display: flex;
    align-items: center;
    padding: 1rem 1.5rem;
    color: var(--text-muted);
    text-decoration: none;
    border-radius: 12px;
    font-weight: 500;
    transition: all 0.2s ease;
}

.sidebar-nav a i {
    width: 24px;
    margin-right: 12px;
    font-size: 1.1rem;
}

.sidebar-nav a:hover {
    color: var(--text-main);
    background: rgba(255,255,255,0.03);
}

.sidebar-nav a.active {
    color: var(--cyan);
    background: rgba(0, 240, 200, 0.05);
    border: 1px solid rgba(0, 240, 200, 0.1);
}

.sidebar-footer {
    padding: 2rem;
    font-size: 0.8rem;
    color: rgba(160, 170, 191, 0.5);
}

/* Mobile Toggles */
.mobile-header {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    padding: 1rem 1.5rem;
    background: var(--bg-sidebar);
    border-bottom: 1px solid var(--card-border);
    justify-content: flex-end;
    align-items: center;
    z-index: 99;
}

.mobile-logo {
    height: 35px;
    width: auto;
}

.mobile-menu-toggle {
    background: var(--card-bg);
    border: 1px solid var(--card-border);
    color: white;
    width: 40px;
    height: 40px;
    border-radius: 8px;
    cursor: pointer;
    font-size: 1.1rem;
    display: flex;
    justify-content: center;
    align-items: center;
}

.mobile-close {
    display: none;
    background: none;
    border: none;
    color: var(--text-muted);
    font-size: 1.5rem;
    cursor: pointer;
}

/* --- MAIN CONTENT --- */
.main-content {
    flex: 1;
    margin-left: var(--sidebar-width);
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

/* Typography Page Styles (Philosophy) */
.page-container {
    padding: 4rem 10%;
    max-width: 1000px;
    margin: 0 auto;
}

.page-title {
    font-size: 3rem;
    font-weight: 700;
    margin-bottom: 3rem;
    background: var(--gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    display: inline-block;
}

.content-body p {
    font-size: 1.15rem;
    line-height: 1.8;
    color: var(--text-muted);
    margin-bottom: 2rem;
    font-weight: 300;
}

.content-body p.highlight {
    font-size: 1.3rem;
    color: var(--cyan);
    font-weight: 500;
    border-left: 4px solid var(--cyan);
    padding-left: 1.5rem;
    margin: 3rem 0;
}

.content-body p.bold-closing {
    font-size: 1.5rem;
    color: var(--text-main);
    font-weight: 600;
    margin-top: 4rem;
}

/* Hero Section (Home) */
.hero {
    flex: 1;
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 4rem 5%;
}

.hero-content {
    max-width: 700px;
    width: 100%;
    display: flex;
    flex-direction: column;
}

.hero-logo-container {
    margin-bottom: 2.5rem;
}

.hero-logo {
    max-width: 320px;
    width: 100%;
    height: auto;
    display: block;
    mix-blend-mode: screen;
    filter: brightness(0.9) contrast(1.1);
}

.tagline {
    font-size: clamp(2rem, 4vw, 3.5rem);
    line-height: 1.2;
    margin-bottom: 1rem;
    font-weight: 700;
    letter-spacing: -0.5px;
}

.gradient-text {
    background: var(--gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    display: inline-block;
}

.subtitle {
    font-size: 1.1rem;
    color: var(--text-muted);
    margin-bottom: 2.5rem;
    font-weight: 300;
    line-height: 1.6;
}

/* Form Card */
.form-card {
    background: var(--card-bg);
    border: 1px solid var(--card-border);
    border-radius: 16px;
    padding: 2.5rem;
    box-shadow: 0 10px 30px rgba(0,0,0,0.2);
}

.form-card h2 {
    font-size: 1.5rem;
    margin-bottom: 2rem;
    font-weight: 600;
}

.input-group {
    margin-bottom: 2rem;
}

.input-group label {
    display: block;
    margin-bottom: 0.6rem;
    font-weight: 500;
    color: var(--text-muted);
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.input-group input {
    width: 100%;
    padding: 1rem 1.2rem;
    border-radius: 8px;
    background: var(--input-bg);
    border: 1px solid var(--card-border);
    color: var(--text-main);
    font-family: var(--font-family);
    font-size: 1rem;
    transition: all 0.2s ease;
}

.input-group input:focus {
    outline: none;
    border-color: var(--cyan);
    background: rgba(0, 240, 200, 0.02);
}

/* Sector Selection */
.sector-selection h3 {
    font-weight: 500;
    color: var(--text-muted);
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 1.2rem;
}

.sector-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 0.8rem;
    margin-bottom: 2rem;
}

/* Cleaner Checkboxes */
.checkbox-container {
    display: flex;
    align-items: center;
    position: relative;
    cursor: pointer;
    font-size: 0.95rem;
    user-select: none;
    color: var(--text-muted);
    transition: color 0.2s ease;
    background: var(--input-bg);
    border: 1px solid var(--card-border);
    padding: 0.8rem 1rem;
    border-radius: 8px;
}

.checkbox-container:hover {
    color: var(--text-main);
    border-color: rgba(255,255,255,0.1);
}

.checkbox-container input {
    position: absolute;
    opacity: 0;
    cursor: pointer;
    height: 0;
    width: 0;
}

.checkmark {
    height: 18px;
    width: 18px;
    background-color: transparent;
    border: 1px solid rgba(255, 255, 255, 0.3);
    border-radius: 4px;
    margin-right: 12px;
    display: flex;
    justify-content: center;
    align-items: center;
    transition: all 0.2s ease;
    flex-shrink: 0;
}

.checkbox-container input:checked ~ .checkmark {
    background-color: var(--cyan);
    border-color: var(--cyan);
}

.checkmark:after {
    content: "\f00c"; /* FontAwesome check */
    font-family: "Font Awesome 6 Free";
    font-weight: 900;
    font-size: 10px;
    color: #000;
    display: none;
}

.checkbox-container input:checked ~ .checkmark:after {
    display: block;
}

.checkbox-container input:checked ~ .cb-label {
    color: var(--text-main);
}

.send-all-container {
    display: inline-flex;
    margin-bottom: 1.2rem;
    background: rgba(0, 240, 200, 0.05);
    border-color: rgba(0, 240, 200, 0.2);
    color: var(--cyan);
    font-weight: 500;
}

.send-all-container:hover {
    background: rgba(0, 240, 200, 0.1);
    color: var(--cyan);
    border-color: rgba(0, 240, 200, 0.3);
}

.send-all-container input:checked ~ .checkmark {
    background-color: var(--cyan);
    border-color: var(--cyan);
}

/* Submit Button */
.submit-btn {
    width: 100%;
    padding: 1.2rem;
    border: none;
    border-radius: 8px;
    background: var(--text-main);
    color: var(--bg-dark);
    font-family: var(--font-family);
    font-size: 1.1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
    display: flex;
    justify-content: center;
    align-items: center;
}

.submit-btn:hover {
    background: var(--cyan);
    color: #000;
}

.submit-btn:disabled {
    opacity: 0.7;
    cursor: not-allowed;
}

.spinner {
    display: none;
    width: 20px;
    height: 20px;
    border: 3px solid rgba(0,0,0,0.1);
    border-radius: 50%;
    border-top-color: var(--bg-dark);
    animation: spin 1s ease-in-out infinite;
    margin-left: 10px;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

.disclaimer {
    margin-top: 1.5rem;
    font-size: 0.8rem;
    color: rgba(160, 170, 191, 0.6);
    text-align: center;
}

/* Messages */
.message {
    margin-top: 1.5rem;
    padding: 1rem;
    border-radius: 8px;
    text-align: center;
    font-weight: 500;
    font-size: 0.9rem;
}

.message.hidden {
    display: none;
}

.message.success {
    background: rgba(198, 255, 0, 0.1);
    color: var(--lime);
    border: 1px solid rgba(198, 255, 0, 0.2);
}

.message.error {
    background: rgba(255, 77, 157, 0.1);
    color: var(--pink);
    border: 1px solid rgba(255, 77, 157, 0.2);
}

/* Archive Grid */
.archive-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 1.5rem;
    margin-bottom: 3rem;
}

.archive-card {
    background: var(--card-bg);
    border: 1px solid var(--card-border);
    border-radius: 12px;
    padding: 1.5rem;
    transition: all 0.2s ease;
    text-decoration: none;
    color: inherit;
    display: flex;
    flex-direction: column;
}

.archive-card:hover {
    border-color: var(--cyan);
    background: rgba(255,255,255,0.02);
}

.archive-card h3 {
    font-size: 1.2rem;
    margin-bottom: 0.5rem;
    color: var(--text-main);
}

.archive-card p {
    color: var(--text-muted);
    font-size: 0.9rem;
    font-weight: 300;
}

/* Responsive */
@media (max-width: 992px) {
    .sidebar {
        transform: translateX(-100%);
    }
    
    .sidebar.open {
        transform: translateX(0);
    }
    
    .main-content {
        margin-left: 0;
    }
    
    .mobile-header {
        display: flex;
    }
    
    .mobile-close {
        display: block;
    }
    
    .hero {
        padding-top: 6rem;
    }
}

@media (max-width: 768px) {
    .form-card {
        padding: 1.5rem;
    }
    
    .sector-grid {
        grid-template-columns: 1fr;
    }
    
    .page-container {
        padding: 6rem 5% 4rem;
    }
}

/* Enhanced Mobile Adjustments */
@media (max-width: 480px) {
    .hero {
        padding-top: 5rem;
        align-items: flex-start;
    }
    .tagline {
        font-size: 2.2rem;
    }
    .subtitle {
        font-size: 1rem;
    }
    .form-card {
        padding: 1.2rem;
        border-radius: 12px;
    }
    .input-group input {
        font-size: 16px; /* Prevents iOS zoom */
        padding: 0.8rem 1rem;
    }
    .submit-btn {
        padding: 1rem;
    }
}
