:root {
    --primary: #3b82f6;
    --primary-glow: rgba(59, 130, 246, 0.4);
    --secondary: #06b6d4;
    --accent: #f59e0b;
    --success: #10b981;
    --bg-dark: #020617;
    --bg-card: rgba(15, 23, 42, 0.6);
    --border-light: rgba(255, 255, 255, 0.08);
    --border-hover: rgba(255, 255, 255, 0.15);
    --text-main: #f1f5f9;
    --text-muted: #94a3b8;
    --font-sans: 'Inter', system-ui, -apple-system, sans-serif;
    --glass-shadow: 0 8px 32px 0 rgba(0, 0, 0, 0.8);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    -webkit-font-smoothing: antialiased;
}

body {
    background-color: var(--bg-dark);
    color: var(--text-main);
    font-family: var(--font-sans);
    line-height: 1.5;
    overflow-x: hidden;
    min-height: 100vh;
    background-image: 
        radial-gradient(circle at 0% 0%, rgba(59, 130, 246, 0.15) 0%, transparent 40%),
        radial-gradient(circle at 100% 100%, rgba(245, 158, 11, 0.08) 0%, transparent 40%),
        url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noiseFilter'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.65' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noiseFilter)'/%3E%3C/svg%3E");
    background-attachment: fixed;
}

/* HERO SECTION */
.hero-overlay {
    position: relative;
    height: 400px;
    width: 100%;
    background: linear-gradient(to bottom, rgba(2, 6, 23, 0.3), var(--bg-dark)), url('assets/hero-bg.jpg');
    background-size: cover;
    background-position: center;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 0 1rem;
}

/* UTILITY CLASSES */
.glass-card {
    position: relative;
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    background: var(--bg-card);
    border: 1px solid var(--border-light);
    box-shadow: var(--glass-shadow);
    border-radius: 24px;
    padding: 1.5rem;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    overflow: hidden;
}

.glass-card::before {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0; bottom: 0;
    background: linear-gradient(135deg, rgba(255,255,255,0.05) 0%, transparent 100%);
    pointer-events: none;
}

.glass-card:hover {
    border-color: var(--border-hover);
    transform: translateY(-4px);
    box-shadow: 0 12px 40px 0 rgba(0, 0, 0, 0.9);
}

.gradient-text {
    background: linear-gradient(135deg, #fff 0%, var(--primary) 50%, var(--secondary) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    font-weight: 800;
    letter-spacing: -0.02em;
}

/* LAYOUT */
.dashboard-container {
    width: 100%;
    max-width: 1280px;
    margin: -60px auto 4rem;
    padding: 0 1rem;
    display: grid;
    grid-template-columns: 1fr;
    gap: 1.5rem;
    z-index: 10;
    position: relative;
}

@media (min-width: 1024px) {
    .dashboard-container {
        grid-template-columns: 380px 1fr;
        padding: 0 2rem;
    }
}

/* FORM ELEMENTS */
.input-field {
    width: 100%;
    background: rgba(0, 0, 0, 0.3);
    border: 1px solid var(--border-light);
    border-radius: 12px;
    padding: 0.875rem 1rem;
    color: #fff;
    font-size: 1rem;
    transition: all 0.2s ease;
    font-family: inherit;
}

.input-field:focus {
    outline: none;
    border-color: var(--primary);
    background: rgba(59, 130, 246, 0.05);
    box-shadow: 0 0 0 4px rgba(59, 130, 246, 0.15);
}

label {
    display: block;
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: var(--text-muted);
    margin-bottom: 0.5rem;
    font-weight: 600;
}

/* DATA VISUALS */
.roi-value {
    font-size: 3.5rem;
    font-weight: 900;
    line-height: 1;
    margin: 0.5rem 0;
    filter: drop-shadow(0 0 12px var(--primary-glow));
}

.macrs-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
    gap: 1rem;
    margin-top: 1.5rem;
}

.tax-pill {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid var(--border-light);
    padding: 1rem;
    border-radius: 16px;
    text-align: center;
}

.tax-pill .year { font-size: 0.7rem; color: var(--text-muted); }
.tax-pill .value { font-size: 1.1rem; font-weight: 700; color: var(--success); }

/* INTERACTIVE COMPONENTS */
.btn-primary {
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    color: white;
    border: none;
    padding: 1.25rem;
    border-radius: 14px;
    font-weight: 700;
    cursor: pointer;
    width: 100%;
    transition: all 0.3s ease;
    text-transform: uppercase;
    letter-spacing: 1px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
}

.btn-primary:hover {
    box-shadow: 0 0 20px var(--primary-glow);
    transform: scale(1.02);
}

.ad-box {
    border: 1px dashed var(--border-light);
    border-radius: 16px;
    background: rgba(255, 255, 255, 0.01);
    height: 250px;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    color: var(--text-muted);
    font-size: 0.8rem;
}

.ad-tag {
    position: absolute;
    top: -10px;
    left: 20px;
    background: var(--bg-dark);
    padding: 2px 10px;
    border: 1px solid var(--border-light);
    border-radius: 4px;
    font-size: 0.6rem;
}

/* ANIMATIONS */
@keyframes fadeIn {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}

.animate-fade-in {
    animation: fadeIn 0.6s ease forwards;
}

/* CUSTOM SCROLLBAR */
::-webkit-scrollbar {
    width: 6px;
}

::-webkit-scrollbar-track {
    background: var(--bg-dark);
}

::-webkit-scrollbar-thumb {
    background: var(--border-light);
    border-radius: 10px;
}

::-webkit-scrollbar-thumb:hover {
    background: var(--primary);
}