/* Base Variables & Theming */
:root {
    /* Colors */
    --bg-main: #0B0F19; /* Deep Slate */
    --bg-panel: rgba(18, 25, 41, 0.6);
    --bg-glass: rgba(255, 255, 255, 0.03);
    --bg-glass-border: rgba(255, 255, 255, 0.08);
    --text-primary: #F8FAFC;
    --text-secondary: #94A3B8;
    
    /* Gradients */
    --grad-cyan: linear-gradient(135deg, #00F0FF, #0080FF);
    --grad-purple: linear-gradient(135deg, #B055FF, #FF3366);
    --grad-orange: linear-gradient(135deg, #FF6F00, #FFD500);
    --grad-green: linear-gradient(135deg, #00FF87, #60EFFF);
    
    /* Typography */
    --font-heading: 'Outfit', sans-serif;
    --font-body: 'Inter', sans-serif;
    
    /* Spacing */
    --section-y: 6rem;
    --container-max-width: 1100px;

    /* Transitions */
    --trans-smooth: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

/* Reset & Scaffolding */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    background-color: var(--bg-main);
    color: var(--text-primary);
    font-family: var(--font-body);
    line-height: 1.6;
    overflow-x: hidden;
    position: relative;
}

/* Custom Scrollbar */
::-webkit-scrollbar {
    width: 10px;
}
::-webkit-scrollbar-track {
    background: var(--bg-main);
}
::-webkit-scrollbar-thumb {
    background: #334155;
    border-radius: 5px;
}
::-webkit-scrollbar-thumb:hover {
    background: #475569;
}

/* Dynamic Background Elements */
.background-grid {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background-image: 
        linear-gradient(rgba(255,255,255,0.02) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255,255,255,0.02) 1px, transparent 1px);
    background-size: 50px 50px;
    z-index: -2;
    pointer-events: none;
}

.gradient-blob {
    position: fixed;
    top: -20vh;
    left: -20vw;
    width: 60vw;
    height: 60vw;
    background: radial-gradient(circle, rgba(176,85,255,0.15) 0%, rgba(0,240,255,0.05) 50%, transparent 70%);
    border-radius: 50%;
    z-index: -1;
    pointer-events: none;
    animation: slowDrift 20s infinite alternate ease-in-out;
}

@keyframes slowDrift {
    0% { transform: translate(0, 0) scale(1); }
    100% { transform: translate(30vw, 20vh) scale(1.2); }
}

/* Typography Utility */
h1, h2, h3, h4 {
    font-family: var(--font-heading);
    font-weight: 800;
    line-height: 1.2;
    letter-spacing: -0.02em;
}

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

.gradient-cyan { background: var(--grad-cyan); -webkit-background-clip: text; -webkit-text-fill-color: transparent;}
.gradient-purple { background: var(--grad-purple); -webkit-background-clip: text; -webkit-text-fill-color: transparent;}
.gradient-orange { background: var(--grad-orange); -webkit-background-clip: text; -webkit-text-fill-color: transparent;}
.gradient-green { background: var(--grad-green); -webkit-background-clip: text; -webkit-text-fill-color: transparent;}

.text-white { -webkit-text-fill-color: var(--text-primary); }

.text-glow {
    text-shadow: 0 0 40px rgba(0, 240, 255, 0.4);
}

.text-center { text-align: center; }
.text-left { text-align: left; }
.w-full { width: 100%; }
.mt-4 { margin-top: 1rem; }
.mt-10 { margin-top: 2.5rem; }
.mx-auto { margin-left: auto; margin-right: auto; }

/* Layout Containers */
.container {
    max-width: var(--container-max-width);
    margin: 0 auto;
    padding: 0 2rem;
}

.section {
    padding: var(--section-y) 0;
    min-height: 80vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    position: relative;
    z-index: 1;
}

.section-alternate {
    background: linear-gradient(to bottom, transparent, rgba(15, 23, 42, 0.5), transparent);
}

.section-title {
    font-size: 3rem;
    margin-bottom: 1.5rem;
}

.section-desc {
    font-size: 1.25rem;
    color: var(--text-secondary);
    margin-bottom: 3rem;
    max-width: 800px;
}

/* Navbar */
.navbar {
    position: fixed;
    top: 0;
    width: 100%;
    background: rgba(11, 15, 25, 0.8);
    backdrop-filter: blur(12px);
    border-bottom: 1px solid var(--bg-glass-border);
    z-index: 100;
    padding: 1rem 0;
    transition: var(--trans-smooth);
}

.navbar.scrolled {
    padding: 0.8rem 0;
    background: rgba(11, 15, 25, 0.95);
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.5);
}

.nav-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    max-width: var(--container-max-width);
    margin: 0 auto;
    padding: 0 2rem;
}

.logo {
    font-family: var(--font-heading);
    font-weight: 800;
    font-size: 1.5rem;
    background: var(--grad-cyan);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.nav-links {
    display: flex;
    list-style: none;
    gap: 2rem;
}

.nav-links a {
    color: var(--text-primary);
    text-decoration: none;
    font-size: 0.9rem;
    font-weight: 500;
    transition: var(--trans-smooth);
    opacity: 0.8;
}

.nav-links a:hover {
    opacity: 1;
    color: #00F0FF;
}

/* Glassmorphism Card System */
.glass-card {
    background: var(--bg-panel);
    backdrop-filter: blur(16px);
    border: 1px solid var(--bg-glass-border);
    border-radius: 20px;
    padding: 2rem;
    transition: var(--trans-smooth);
}

.glass-card:hover {
    transform: translateY(-5px);
    border-color: rgba(255, 255, 255, 0.2);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.4);
}

/* Buttons */
.cta-button {
    display: inline-block;
    padding: 1rem 2.5rem;
    background: var(--grad-cyan);
    color: #000;
    font-weight: 600;
    font-size: 1.1rem;
    border-radius: 50px;
    text-decoration: none;
    transition: var(--trans-smooth);
    border: none;
    cursor: pointer;
    box-shadow: 0 0 20px rgba(0, 240, 255, 0.3);
}

.cta-button:hover {
    transform: translateY(-2px) scale(1.05);
    box-shadow: 0 0 30px rgba(0, 240, 255, 0.5);
}

/* Hero Section */
.hero-container {
    text-align: center;
    padding-top: 4rem;
}

.hero-container h1 {
    font-size: 5rem;
    margin-bottom: 1.5rem;
}

.hero-container .subtitle {
    font-size: 1.5rem;
    color: var(--text-secondary);
    margin-bottom: 3rem;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

.hero-icons {
    font-size: 3rem;
    margin-bottom: 1.5rem;
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 1.5rem;
}

.bracket-icon { color: #0080FF; }
.briefcase-icon { text-shadow: 0 0 20px rgba(255, 213, 0, 0.5); }
.arrow-icon { color: var(--text-secondary); font-size: 2rem;}

/* Grids & Cards */
.cards-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2rem;
}

.cols-2 { grid-template-columns: repeat(2, 1fr); }

.pillar-card h3 {
    font-size: 1.8rem;
    margin-bottom: 1rem;
}

.glow-cyan h3 { color: #00F0FF; }
.glow-purple h3 { color: #FF3366; }
.glow-orange h3 { color: #FFD500; }
.glow-green h3 { color: #00FF87; }

.pillar-card p {
    margin-bottom: 0.5rem;
    font-size: 1.1rem;
}

/* Split Layouts (Left/Right) */
.layout-split {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 4rem;
}

.reverse-split {
    flex-direction: row-reverse;
}

.split-content {
    flex: 1;
}

.split-visual {
    flex: 1;
}

.callout {
    background: rgba(0, 240, 255, 0.05);
    border-left: 4px solid #00F0FF;
    padding: 1.5rem;
    border-radius: 0 8px 8px 0;
    margin-top: 2rem;
}

.highlight-text {
    font-family: var(--font-heading);
    font-weight: 600;
    color: #fff;
    margin-top: 1rem;
}

/* Lists and Tags */
.styled-list {
    list-style: none;
}

.styled-list li {
    margin-bottom: 1.5rem;
    font-size: 1.1rem;
    display: flex;
    align-items: flex-start;
}

.styled-list .number {
    color: #00F0FF;
    font-weight: 800;
    font-family: var(--font-heading);
    margin-right: 1rem;
    font-size: 1.2rem;
}

.checklist li::before {
    content: '✓';
    color: #FF3366;
    font-weight: bold;
    margin-right: 1rem;
}

.tag-cloud {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    margin-top: 2rem;
}

.tag {
    background: rgba(176, 85, 255, 0.1);
    border: 1px solid rgba(176, 85, 255, 0.3);
    padding: 0.8rem 1.5rem;
    border-radius: 50px;
    font-size: 1rem;
}

/* Income Tables/Tiers */
.income-split {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
}

.glass-panel {
    background: rgba(255,255,255,0.02);
    border-radius: 12px;
    padding: 2rem;
}

.glass-panel h3 {
    margin-bottom: 1.5rem;
    border-bottom: 1px solid var(--bg-glass-border);
    padding-bottom: 0.5rem;
}

.glass-panel ul {
    list-style: none;
}

.glass-panel ul li {
    margin-bottom: 1rem;
}

.tier-table {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.tier-row {
    display: flex;
    justify-content: space-between;
    padding: 1rem;
    background: rgba(255, 111, 0, 0.05);
    border-left: 3px solid #FF6F00;
    border-radius: 4px;
}

.tier-label { font-weight: 600; color: #FFD500; }
.tier-value { color: var(--text-primary); }

/* T-Shaped Visual */
.t-visual {
    margin: 2rem 0;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.t-horizontal {
    width: 100%;
    background: rgba(0, 240, 255, 0.1);
    border: 1px solid #00F0FF;
    padding: 1rem;
    text-align: center;
    border-radius: 8px;
    font-weight: 600;
}

.t-vertical {
    width: 40%;
    background: rgba(176, 85, 255, 0.1);
    border: 1px solid #B055FF;
    border-top: none;
    padding: 3rem 1rem;
    text-align: center;
    border-radius: 0 0 8px 8px;
}

/* Form Styles */
.audit-wrapper {
    max-width: 600px;
    margin: 0 auto;
}

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

.form-group label {
    display: block;
    margin-bottom: 1rem;
    font-weight: 500;
    font-size: 1.1rem;
}

.slider {
    width: 80%;
    display: inline-block;
    vertical-align: middle;
}

.slider-value {
    display: inline-block;
    width: 30px;
    text-align: right;
    font-weight: bold;
    color: #00F0FF;
}

.radio-group {
    display: flex;
    gap: 1.5rem;
}

.radio-label {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    cursor: pointer;
}

.audit-result {
    margin-top: 2rem;
    padding: 1.5rem;
    background: rgba(0, 240, 255, 0.1);
    border-radius: 8px;
    text-align: center;
    font-weight: 600;
    font-size: 1.2rem;
}

.hidden { display: none !important; }

/* Interactive Custom Checkboxes */
.checklist-container {
    max-width: 500px;
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.check-item {
    display: flex;
    align-items: center;
    cursor: pointer;
    padding: 1rem;
    border-radius: 8px;
    background: rgba(255,255,255,0.02);
    transition: var(--trans-smooth);
}

.check-item:hover {
    background: rgba(255,255,255,0.05);
}

.check-item input {
    position: absolute;
    opacity: 0;
    cursor: pointer;
}

.checkmark {
    width: 25px;
    height: 25px;
    background-color: transparent;
    border: 2px solid var(--text-secondary);
    border-radius: 4px;
    margin-right: 1rem;
    position: relative;
    transition: var(--trans-smooth);
}

.check-item input:checked ~ .checkmark {
    background-color: #00F0FF;
    border-color: #00F0FF;
}

.checkmark:after {
    content: "";
    position: absolute;
    display: none;
    left: 8px;
    top: 4px;
    width: 5px;
    height: 10px;
    border: solid black;
    border-width: 0 2px 2px 0;
    transform: rotate(45deg);
}

.check-item input:checked ~ .checkmark:after {
    display: block;
}

.check-text { font-size: 1.2rem; }

/* Footer */
.footer {
    padding-bottom: 2rem;
}

.qa-block .biggest-hurdle {
    font-size: 2rem;
    margin-top: 1rem;
    font-weight: 500;
}

.cta-headline {
    font-size: 4rem;
    margin-bottom: 1rem;
}

.social-icons {
    display: flex;
    justify-content: center;
    gap: 1rem;
    margin-top: 1.5rem;
}

.social-link {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background: rgba(255,255,255,0.05);
    display: flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    color: var(--text-primary);
    font-family: var(--font-heading);
    font-weight: 800;
    font-size: 1.2rem;
    transition: var(--trans-smooth);
    border: 1px solid var(--bg-glass-border);
}

.social-link:hover {
    background: var(--grad-purple);
    color: #fff;
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(176, 85, 255, 0.4);
}

.footer-bottom {
    margin-top: 4rem;
    text-align: center;
    color: var(--text-secondary);
    font-size: 0.9rem;
}

/* Animations */
.reveal {
    opacity: 0;
    transform: translateY(50px);
    transition: all 0.8s ease-out;
}

.reveal.active {
    opacity: 1;
    transform: translateY(0);
}

/* Responsive Variables */
@media (max-width: 900px) {
    .layout-split {
        flex-direction: column;
        gap: 2rem;
    }
    
    .section-title { font-size: 2.5rem; }
    .hero-container h1 { font-size: 3.5rem; }
    .nav-links { display: none; } /* Could add hamburger in real app */
    
    .income-split {
        grid-template-columns: 1fr;
    }
    
    .cols-2 { grid-template-columns: 1fr; }
}

@media (max-width: 600px) {
    .hero-container h1 { font-size: 2.5rem; }
    .cta-headline { font-size: 2.5rem; }
    .section-title { font-size: 2rem; }
}
