:root {
    --primary-color: #0066ff;
    --primary-dark: #0052cc;
    --accent-color: #7c3aed;
    --text-primary: #1a1a1a;
    --text-secondary: #6b7280;
    --text-muted: #9ca3af;
    --bg-white: #ffffff;
    --bg-light: #fafbfc;
    --bg-glass: rgba(255, 255, 255, 0.1);
    --border-light: #e5e7eb;
    --gradient-primary: linear-gradient(135deg, #0066ff 0%, #7c3aed 100%);
    --gradient-accent: linear-gradient(135deg, #7c3aed 0%, #06b6d4 100%);
    --gradient-bg: linear-gradient(135deg, #fafbfc 0%, #f1f5f9 100%);
    --shadow-sm: 0 1px 3px 0 rgb(0 0 0 / 0.1);
    --shadow-md: 0 4px 12px 0 rgb(0 0 0 / 0.1);
    --shadow-lg: 0 20px 40px 0 rgb(0 0 0 / 0.1);
    --shadow-xl: 0 25px 50px -12px rgb(0 0 0 / 0.25);
}

[data-theme="dark"] {
    --primary-color: #3b82f6;
    --primary-dark: #2563eb;
    --accent-color: #8b5cf6;
    --text-primary: #f8fafc;
    --text-secondary: #cbd5e1;
    --text-muted: #94a3b8;
    --bg-white: #0f172a;
    --bg-light: #1e293b;
    --bg-glass: rgba(15, 23, 42, 0.8);
    --border-light: #334155;
    --gradient-primary: linear-gradient(135deg, #3b82f6 0%, #8b5cf6 100%);
    --gradient-accent: linear-gradient(135deg, #8b5cf6 0%, #06b6d4 100%);
    --gradient-bg: linear-gradient(135deg, #0f172a 0%, #1e293b 100%);
    --shadow-sm: 0 1px 3px 0 rgb(0 0 0 / 0.3);
    --shadow-md: 0 4px 12px 0 rgb(0 0 0 / 0.3);
    --shadow-lg: 0 20px 40px 0 rgb(0 0 0 / 0.3);
    --shadow-xl: 0 25px 50px -12px rgb(0 0 0 / 0.5);
}

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

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    line-height: 1.6;
    color: var(--text-primary);
    background: var(--gradient-bg);
    min-height: 100vh;
    overflow-x: hidden;
    transition: background 0.3s ease, color 0.3s ease;
}

.container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 32px;
}

/* Dark Mode Toggle */
.theme-toggle {
    position: fixed;
    top: 2rem;
    right: 2rem;
    z-index: 1000;
    background: var(--bg-white);
    border: 2px solid var(--primary-color);
    border-radius: 50%;
    padding: 12px;
    cursor: pointer;
    box-shadow: var(--shadow-lg);
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 56px;
    height: 56px;
    overflow: hidden;
}

.theme-toggle:hover {
    transform: translateY(-3px) scale(1.05);
    box-shadow: var(--shadow-xl);
    border-color: var(--accent-color);
}

.theme-toggle-icon {
    width: 24px;
    height: 24px;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    position: absolute;
    stroke-width: 2.5;
}

.theme-toggle-icon.sun {
    color: #f59e0b;
    opacity: 1;
    transform: rotate(0deg) scale(1);
}

.theme-toggle-icon.moon {
    color: #3b82f6;
    opacity: 0;
    transform: rotate(180deg) scale(0.5);
}

[data-theme="dark"] .theme-toggle-icon.sun {
    opacity: 0;
    transform: rotate(-180deg) scale(0.5);
}

[data-theme="dark"] .theme-toggle-icon.moon {
    opacity: 1;
    transform: rotate(0deg) scale(1);
}

[data-theme="dark"] .theme-toggle {
    background: var(--bg-white);
    border-color: var(--accent-color);
}

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

.hero .container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 8rem;
    align-items: center;
    position: relative;
    z-index: 2;
}

.logo-section {
    margin-bottom: 3rem;
}

.logo {
    font-size: 4rem;
    font-weight: 800;
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: 0.5rem;
    letter-spacing: -0.02em;
}

.logo-subtitle {
    font-size: 1.1rem;
    color: var(--text-muted);
    font-weight: 500;
    letter-spacing: 0.05em;
    text-transform: uppercase;
}

.hero-title {
    font-size: 3.8rem;
    font-weight: 700;
    line-height: 1.05;
    margin-bottom: 2rem;
    letter-spacing: -0.02em;
}

.highlight {
    background: var(--gradient-accent);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.hero-description {
    font-size: 1.3rem;
    color: var(--text-secondary);
    margin-bottom: 3rem;
    line-height: 1.6;
    max-width: 90%;
}

.status-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: rgba(0, 102, 255, 0.1);
    backdrop-filter: blur(20px);
    border: 1px solid rgba(0, 102, 255, 0.2);
    padding: 12px 20px;
    border-radius: 50px;
    font-weight: 600;
    color: var(--primary-color);
    box-shadow: var(--shadow-md);
    opacity: 1 !important;
    transform: translateY(0) !important;
}

.status-dot {
    width: 8px;
    height: 8px;
    background: var(--gradient-primary);
    border-radius: 50%;
    animation: pulse 2s infinite;
}

/* Floating Cards */
.floating-cards {
    position: relative;
    width: 100%;
    height: 500px;
}

.card {
    position: absolute;
    background: var(--bg-white);
    border-radius: 20px;
    padding: 24px;
    box-shadow: var(--shadow-xl);
    backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.card:hover {
    transform: translateY(-8px) scale(1.02);
    box-shadow: var(--shadow-xl);
}

.card-1 {
    width: 220px;
    height: 160px;
    top: 50px;
    left: 20px;
    animation: float 6s ease-in-out infinite;
}

.card-2 {
    width: 200px;
    height: 180px;
    top: 120px;
    right: 60px;
    animation: float 6s ease-in-out infinite 2s;
}

.card-3 {
    width: 180px;
    height: 140px;
    bottom: 80px;
    left: 120px;
    animation: float 6s ease-in-out infinite 4s;
}

.card-header {
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--text-muted);
    margin-bottom: 16px;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.card-content {
    display: flex;
    align-items: center;
    justify-content: center;
    height: calc(100% - 40px);
}

.metric {
    text-align: center;
}

.metric-value {
    display: block;
    font-size: 2.5rem;
    font-weight: 700;
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: 4px;
}

.metric-label {
    font-size: 0.85rem;
    color: var(--text-muted);
    font-weight: 500;
}

.chart-mini {
    display: flex;
    align-items: end;
    gap: 8px;
    height: 60px;
    width: 100%;
}

.chart-bar {
    width: 16px;
    background: var(--gradient-primary);
    border-radius: 8px 8px 0 0;
    transition: all 0.3s ease;
    animation: growUp 1s ease-out;
}

.transaction-list {
    width: 100%;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.transaction-item {
    height: 12px;
    background: linear-gradient(90deg, var(--primary-color), transparent);
    border-radius: 6px;
    animation: slideIn 0.8s ease-out;
}

.transaction-item:nth-child(1) { width: 80%; }
.transaction-item:nth-child(2) { width: 65%; }
.transaction-item:nth-child(3) { width: 90%; }

/* Background Elements */
.background-elements {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    overflow: hidden;
}

.bg-circle {
    position: absolute;
    border-radius: 50%;
    background: var(--gradient-primary);
    opacity: 0.03;
    animation: rotate 20s linear infinite;
}

.bg-circle-1 {
    width: 400px;
    height: 400px;
    top: -200px;
    right: -200px;
}

.bg-circle-2 {
    width: 600px;
    height: 600px;
    bottom: -300px;
    left: -300px;
    animation-direction: reverse;
    animation-duration: 30s;
}

.bg-grid {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: 
        linear-gradient(rgba(0, 102, 255, 0.03) 1px, transparent 1px),
        linear-gradient(90deg, rgba(0, 102, 255, 0.03) 1px, transparent 1px);
    background-size: 50px 50px;
    animation: gridMove 20s linear infinite;
}

/* Footer */
.footer {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 2rem 0;
    text-align: center;
    z-index: 2;
}

.footer p {
    color: var(--text-muted);
    font-size: 0.9rem;
}

/* Responsive Design */
@media (max-width: 1200px) {
    .hero .container {
        gap: 4rem;
    }
    
    .floating-cards {
        height: 400px;
    }
    
    .card {
        transform: scale(0.9);
    }
}

@media (max-width: 768px) {
    .container {
        padding: 0 20px;
    }
    
    .hero {
        padding: 4rem 0;
        min-height: auto;
    }
    
    .hero .container {
        grid-template-columns: 1fr;
        gap: 3rem;
        text-align: center;
    }
    
    .logo {
        font-size: 3rem;
    }
    
    .hero-title {
        font-size: 2.8rem;
    }
    
    .hero-description {
        font-size: 1.1rem;
        max-width: 100%;
    }
    
    .floating-cards {
        height: 300px;
        margin-top: 2rem;
    }
    
    .card {
        transform: scale(0.8);
    }
    
    .card-1, .card-2, .card-3 {
        position: relative;
        top: auto;
        left: auto;
        right: auto;
        bottom: auto;
        margin: 1rem auto;
        display: block;
        animation: none;
    }
}

@media (max-width: 480px) {
    .logo {
        font-size: 2.5rem;
    }
    
    .hero-title {
        font-size: 2.2rem;
    }
    
    .hero-description {
        font-size: 1rem;
    }
    
    .floating-cards {
        display: none;
    }
    
    .status-badge {
        padding: 10px 16px;
        font-size: 0.9rem;
    }
    
    .theme-toggle {
        top: 1rem;
        right: 1rem;
        width: 48px;
        height: 48px;
        padding: 10px;
    }
    
    .theme-toggle-icon {
        width: 20px;
        height: 20px;
        stroke-width: 2.5;
    }
}

/* Animations */
@keyframes float {
    0%, 100% { transform: translateY(0px); }
    50% { transform: translateY(-20px); }
}

@keyframes pulse {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.5; }
}

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

@keyframes gridMove {
    0% { transform: translate(0, 0); }
    100% { transform: translate(50px, 50px); }
}

@keyframes growUp {
    from { height: 0; }
    to { height: var(--height); }
}

@keyframes slideIn {
    from { 
        opacity: 0;
        transform: translateX(-20px); 
    }
    to { 
        opacity: 1;
        transform: translateX(0); 
    }
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.hero-content {
    animation: fadeInUp 1s ease-out;
}

.floating-cards {
    animation: fadeInUp 1s ease-out 0.3s both;
}