:root {
    --bg-dark: #050507;
    --text-main: #ffffff;
    --text-muted: #888890;
    --accent-1: #6b46c1; /* Deep Purple */
    --accent-2: #3182ce; /* Electric Blue */
    --glass-bg: rgba(255, 255, 255, 0.03);
    --glass-border: rgba(255, 255, 255, 0.08);
}

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

body {
    background-color: var(--bg-dark);
    color: var(--text-main);
    font-family: 'Outfit', sans-serif;
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
}

/* Custom Cursor */
.cursor {
    width: 8px;
    height: 8px;
    background-color: white;
    border-radius: 50%;
    position: fixed;
    top: 0;
    left: 0;
    pointer-events: none;
    z-index: 9999;
    transform: translate(-50%, -50%);
}

.cursor-follower {
    width: 40px;
    height: 40px;
    border: 1px solid rgba(255,255,255,0.3);
    border-radius: 50%;
    position: fixed;
    top: 0;
    left: 0;
    pointer-events: none;
    z-index: 9998;
    transform: translate(-50%, -50%);
    transition: width 0.3s, height 0.3s, background-color 0.3s;
}

/* Navigation */
.navbar {
    position: fixed;
    top: 0;
    width: 100%;
    padding: 2rem 4rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    z-index: 100;
    mix-blend-mode: difference;
}

.logo {
    font-size: 1.5rem;
    font-weight: 800;
    letter-spacing: 2px;
}

.logo span {
    color: var(--text-muted);
    font-weight: 300;
}

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

.nav-links a {
    color: var(--text-main);
    text-decoration: none;
    font-weight: 400;
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    transition: color 0.3s ease;
}

.nav-links a:hover { color: var(--accent-2); }

.btn-primary {
    background: transparent;
    border: 1px solid var(--text-main);
    color: var(--text-main);
    padding: 0.8rem 1.5rem;
    border-radius: 30px;
    font-family: inherit;
    font-size: 0.9rem;
    text-transform: uppercase;
    transition: all 0.3s ease;
}

.btn-primary:hover {
    background: var(--text-main);
    color: var(--bg-dark);
}

/* Hero Section */
.hero {
    height: 100vh;
    display: flex;
    align-items: center;
    padding: 0 10%;
    position: relative;
    overflow: hidden;
}

#canvas-container {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 0;
    pointer-events: none;
}

.hero-content {
    position: relative;
    z-index: 2;
}

.hero-content h1 {
    font-size: 6rem;
    line-height: 1.1;
    font-weight: 800;
    margin-bottom: 1.5rem;
    letter-spacing: -2px;
}

.hero-content h1 span {
    background: linear-gradient(90deg, var(--accent-1), var(--accent-2));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.hero-content p {
    font-size: 1.2rem;
    color: var(--text-muted);
    max-width: 500px;
    margin-bottom: 3rem;
    font-weight: 300;
}

.btn-glow {
    background: linear-gradient(90deg, var(--accent-1), var(--accent-2));
    border: none;
    color: white;
    padding: 1rem 2.5rem;
    border-radius: 30px;
    font-size: 1rem;
    font-weight: 600;
    font-family: inherit;
    box-shadow: 0 10px 30px rgba(107, 70, 193, 0.4);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.btn-glow:hover {
    transform: translateY(-3px);
    box-shadow: 0 15px 40px rgba(49, 130, 206, 0.6);
}

/* Showcase Section & 3D Dashboard */
.showcase {
    padding: 10rem 10%;
    position: relative;
    z-index: 10;
    background: linear-gradient(180deg, transparent 0%, #050507 20%);
}

.section-header { margin-bottom: 5rem; }
.section-header h2 { font-size: 3rem; font-weight: 600; margin-bottom: 1rem; }
.section-header p { color: var(--text-muted); font-size: 1.2rem; }

.dashboard-preview {
    min-height: 120vh;
}

.scene-3d {
    perspective: 2000px;
    width: 100%;
    height: 800px;
    display: flex;
    justify-content: center;
    align-items: center;
}

.close-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background: rgba(0,0,0,0.85);
    z-index: 9000; /* Covers nav and everything */
    opacity: 0;
    pointer-events: none;
    backdrop-filter: blur(10px);
}

.expansion-canvas-container {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    z-index: 9000;
    pointer-events: none;
    opacity: 0;
    transition: opacity 0.8s ease;
}

.expansion-canvas-container.is-active {
    opacity: 1;
}

.scene-3d.is-active {
    position: relative;
    z-index: 9001; /* Moves the whole 3D scene above the overlay */
}

/* Fade out the board styling when a card is active */
.ui-board {
    width: 900px;
    height: 600px;
    background: rgba(20, 20, 25, 0.4);
    border: 1px solid var(--glass-border);
    border-radius: 40px;
    transform: rotateX(40deg) rotateZ(-15deg) translateZ(-50px);
    box-shadow: 20px 20px 60px rgba(0,0,0,0.5), inset 0 0 0 1px rgba(255,255,255,0.05);
    position: relative;
    transform-style: preserve-3d;
    transition: background 0.5s, border-color 0.5s, box-shadow 0.5s;
}

.ui-board.is-active {
    background: transparent;
    border-color: transparent;
    box-shadow: none;
}

.board-flow-canvas {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border-radius: inherit;
    z-index: 0;
    pointer-events: none;
    opacity: 0.8;
    transition: opacity 0.5s ease;
}

.ui-board.is-active .board-flow-canvas {
    opacity: 0.1;
}

.floating-cards {
    position: absolute;
    top: 20%;
    left: 10%;
    width: 80%;
    height: 60%;
    transform-style: preserve-3d;
}

.f-card {
    position: absolute;
    width: 320px;
    height: 240px;
    border-radius: 16px;
    padding: 24px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    border: 1px solid rgba(255,255,255,0.1);
    box-shadow: -20px 30px 40px rgba(0,0,0,0.5);
    transform: translateZ(var(--z)) translateY(var(--y));
    transition: height 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.f-card-wide {
    width: 620px;
    height: 180px;
    flex-direction: row;
}

.f-card-header-wide {
    display: flex;
    justify-content: space-between;
    align-items: stretch;
    height: 100%;
    width: 100%;
}

.f-card-title-col {
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    padding-right: 20px;
    border-right: 1px solid rgba(255,255,255,0.1);
    min-width: 150px;
}

.f-card-wide .f-specs {
    border-top: none;
    border-left: 1px solid rgba(255,255,255,0.1);
    padding-top: 0;
    padding-left: 20px;
    margin-left: 20px;
    flex: 1;
    justify-content: center;
}

.f-card-wide .f-specs:first-of-type {
    border-left: none;
    padding-left: 0;
    margin-left: 0;
}

/* Hide inactive cards when board is active */
.ui-board.is-active .f-card:not(.is-expanded) {
    opacity: 0 !important;
    pointer-events: none;
}

/* Expanded state class */
.f-card.is-expanded {
    z-index: 9001;
    border-color: rgba(255,255,255,0.5);
    box-shadow: 0 0 100px rgba(107, 70, 193, 0.6);
}

.f-card.is-expanded:not(.f-card-wide) {
    height: 350px;
}

.f-card:not(.is-expanded):not(.f-card-wide) .f-spec-row:nth-child(n+4) {
    display: none;
}

.f-card.is-expanded:not(.f-card-wide) .f-spec-row:nth-child(n+4) {
    display: flex;
    animation: fadeSpecIn 0.6s ease forwards;
    opacity: 0;
}

@keyframes fadeSpecIn {
    to { opacity: 1; }
}

/* Text Highlights for expanded view */
.f-card .f-specs strong {
    transition: color 0.3s ease, text-shadow 0.3s ease;
}
.f-card.is-expanded .f-specs strong {
    color: #fff;
    text-shadow: 0 0 10px rgba(255,255,255,0.8);
}

.f-card-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
}

.f-card h3 {
    font-size: 1.8rem;
    font-weight: 800;
    color: white;
    margin-bottom: 0;
}

.f-dark-purple { 
    background: linear-gradient(135deg, #7c3aed, #4c1d95); 
    border: 1px solid #8b5cf6; 
    box-shadow: inset 0 0 20px rgba(139, 92, 246, 0.4);
}
.f-dark-blue { 
    background: linear-gradient(135deg, #2563eb, #1e40af); 
    border: 1px solid #3b82f6; 
    box-shadow: inset 0 0 20px rgba(59, 130, 246, 0.4);
}
.f-neon-green {
    background: linear-gradient(135deg, #064e3b, #022c22);
    border: 1px solid #10b981;
    box-shadow: inset 0 0 20px rgba(16, 185, 129, 0.4);
}

.f-icon {
    width: 40px;
    height: 40px;
    background: rgba(255,255,255,0.1);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.7rem;
    font-weight: 800;
    border: 1px solid rgba(255,255,255,0.2);
}

.f-badge {
    background: rgba(255,255,255,0.1);
    padding: 4px 8px;
    border-radius: 4px;
    font-size: 0.65rem;
    font-weight: 800;
    letter-spacing: 1px;
    color: var(--text-muted);
}

.pro-badge {
    background: rgba(49, 130, 206, 0.2);
    color: #82b2d6;
}

.f-specs {
    display: flex;
    flex-direction: column;
    gap: 8px;
    border-top: 1px solid rgba(255,255,255,0.1);
    padding-top: 12px;
}

.f-spec-row {
    display: flex;
    justify-content: space-between;
    font-size: 0.8rem;
}

.f-spec-row span { color: var(--text-muted); }
.f-spec-row strong { color: white; font-weight: 600; }

/* Enterprise Section */
.enterprise {
    height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    background: #000;
}

.enterprise-content h2 {
    font-size: 8rem;
    font-weight: 800;
    line-height: 1;
    letter-spacing: -3px;
    margin-bottom: 2rem;
    background: url('https://images.unsplash.com/photo-1618005182384-a83a8bd57fbe?q=80&w=2564&auto=format&fit=crop') center/cover;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.enterprise-content p {
    font-size: 1.5rem;
    color: var(--text-muted);
    max-width: 600px;
    margin: 0 auto;
}

/* Footer */
footer {
    padding: 4rem 10%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-top: 1px solid var(--glass-border);
}

footer p { color: var(--text-muted); }

.board-scaler {
    transition: transform 0.5s ease;
}

/* Mobile Responsiveness */
@media (max-width: 768px) {
    .board-scaler {
        transform: scale(0.4);
    }
    
    .hero-content h1 {
        font-size: 3.5rem;
    }
    
    .nav-links {
        display: none; /* Hide nav links on mobile for simplicity */
    }
    
    .navbar {
        padding: 1rem 2rem;
    }
    
    .showcase {
        padding: 5rem 5%;
    }
    
    .section-header h2 {
        font-size: 2.2rem;
    }
}
