:root {
    --bg-primary: #0a0a0f;
    --bg-secondary: #12121a;
    --bg-tertiary: #1c1c28;
    --text-primary: #ffffff;
    --text-secondary: #a0a0b0;
    --accent-primary: #4ECDC4;
    --accent-secondary: #FF6B6B;
    --glass-bg: rgba(18, 18, 26, 0.7);
    --glass-border: rgba(255, 255, 255, 0.08);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
}

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

/* Typography */
h1 {
    font-size: 4rem;
    font-weight: 800;
    line-height: 1.1;
    margin-bottom: 1.5rem;
    background: linear-gradient(135deg, #fff 0%, #a0a0b0 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    letter-spacing: -0.02em;
}

p {
    font-size: 1.125rem;
    color: var(--text-secondary);
    margin-bottom: 2rem;
}

/* Layout */
#app {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 2rem;
}

/* Header */
.glass-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 2rem;
    position: sticky;
    top: 1rem;
    z-index: 100;
    background: var(--glass-bg);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid var(--glass-border);
    border-radius: 100px;
    margin-top: 1rem;
    transition: all 0.3s ease;
}

.logo {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    font-weight: 700;
    font-size: 1.25rem;
    letter-spacing: -0.02em;
}

nav {
    display: flex;
    gap: 2rem;
}

.nav-link {
    color: var(--text-secondary);
    text-decoration: none;
    font-weight: 500;
    transition: color 0.2s ease;
    position: relative;
}

.nav-link:hover {
    color: var(--text-primary);
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--accent-primary);
    transition: width 0.3s ease;
}

.nav-link:hover::after {
    width: 100%;
}

/* Buttons */
button {
    cursor: pointer;
    border: none;
    font-weight: 600;
    border-radius: 8px;
    transition: all 0.2s ease;
}

.cta-btn {
    background: transparent;
    color: var(--text-primary);
    border: 1px solid var(--glass-border);
    padding: 0.5rem 1.25rem;
}

.cta-btn:hover {
    background: var(--bg-tertiary);
    border-color: var(--text-secondary);
}

.primary-btn {
    background: var(--accent-primary);
    color: var(--bg-primary);
    padding: 1rem 2rem;
    font-size: 1.1rem;
    box-shadow: 0 4px 14px rgba(78, 205, 196, 0.3);
}

.primary-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(78, 205, 196, 0.4);
}

.secondary-btn {
    background: var(--bg-secondary);
    color: var(--text-primary);
    border: 1px solid var(--glass-border);
    padding: 1rem 2rem;
    font-size: 1.1rem;
}

.secondary-btn:hover {
    background: var(--bg-tertiary);
}

/* Hero Section */
.hero {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
    padding: 8rem 0 4rem;
    min-height: 85vh;
}

.badge {
    display: inline-block;
    padding: 0.35rem 1rem;
    background: rgba(78, 205, 196, 0.1);
    color: var(--accent-primary);
    border-radius: 100px;
    font-size: 0.875rem;
    font-weight: 600;
    margin-bottom: 1.5rem;
    border: 1px solid rgba(78, 205, 196, 0.2);
}

.hero-actions {
    display: flex;
    gap: 1rem;
}

/* Mockup */
.dashboard-mockup {
    background: var(--bg-secondary);
    border-radius: 16px;
    border: 1px solid var(--glass-border);
    padding: 1.5rem;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.4);
    position: relative;
    overflow: hidden;
}

.dashboard-mockup::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle at center, rgba(78, 205, 196, 0.1) 0%, transparent 50%);
    pointer-events: none;
}

.mockup-header {
    display: flex;
    gap: 0.5rem;
    margin-bottom: 2rem;
}

.dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
}

.dot.red { background: #FF5F56; }
.dot.yellow { background: #FFBD2E; }
.dot.green { background: #27C93F; }

.skeleton-chart {
    display: flex;
    align-items: flex-end;
    gap: 1rem;
    height: 150px;
    margin-bottom: 2rem;
}

.bar {
    flex: 1;
    background: var(--bg-tertiary);
    border-radius: 4px 4px 0 0;
    transition: height 1s ease-out;
}

.skeleton-text {
    height: 12px;
    background: var(--bg-tertiary);
    border-radius: 6px;
    margin-bottom: 1rem;
    width: 100%;
}

.skeleton-text.short {
    width: 60%;
}

/* Features */
.features-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
    padding: 4rem 0;
}

.feature-card {
    background: var(--bg-secondary);
    border: 1px solid var(--glass-border);
    border-radius: 16px;
    padding: 2rem;
    transition: all 0.3s ease;
}

.feature-card:hover {
    transform: translateY(-5px);
    border-color: rgba(255, 255, 255, 0.15);
    background: var(--bg-tertiary);
}

.feature-icon {
    font-size: 2.5rem;
    margin-bottom: 1.5rem;
}

.feature-card h3 {
    font-size: 1.5rem;
    margin-bottom: 1rem;
}

/* Footer */
footer {
    padding: 4rem 0 2rem;
    text-align: center;
    border-top: 1px solid var(--glass-border);
    color: var(--text-secondary);
}

#auth-status {
    margin-top: 1rem;
    font-size: 0.875rem;
    color: var(--accent-primary);
}

/* Animations */
@keyframes slideUp {
    from { opacity: 0; transform: translateY(30px); }
    to { opacity: 1; transform: translateY(0); }
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

@keyframes float {
    0% { transform: translateY(0px); }
    50% { transform: translateY(-15px); }
    100% { transform: translateY(0px); }
}

@keyframes pulse {
    0% { box-shadow: 0 0 0 0 rgba(78, 205, 196, 0.4); }
    70% { box-shadow: 0 0 0 10px rgba(78, 205, 196, 0); }
    100% { box-shadow: 0 0 0 0 rgba(78, 205, 196, 0); }
}

.slide-up { animation: slideUp 0.8s cubic-bezier(0.16, 1, 0.3, 1) forwards; }
.fade-in { animation: fadeIn 1s ease forwards; }
.float { animation: float 6s ease-in-out infinite; }
.pulse:hover { animation: pulse 1.5s infinite; }

.reveal {
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.8s cubic-bezier(0.16, 1, 0.3, 1);
}

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

/* Micro-interactions */
.bar:hover {
    background: var(--accent-primary);
    cursor: pointer;
}

@media (max-width: 968px) {
    .hero {
        grid-template-columns: 1fr;
        text-align: center;
        padding-top: 4rem;
    }
    
    .hero-actions {
        justify-content: center;
    }

    .features-grid {
        grid-template-columns: 1fr;
    }
    
    h1 {
        font-size: 3rem;
    }
    
    nav {
        display: none;
    }
}
