:root {
    --bg-dark: #0f172a;
    --bg-card: rgba(30, 41, 59, 0.7);
    --primary: #6366f1;
    --primary-hover: #4f46e5;
    --secondary: #ec4899;
    --text-main: #f8fafc;
    --text-muted: #94a3b8;
    --glass-border: rgba(255, 255, 255, 0.1);
    --glass-shadow: 0 8px 32px 0 rgba(0, 0, 0, 0.3);
}

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

body {
    font-family: 'Inter', sans-serif;
    background-color: var(--bg-dark);
    color: var(--text-main);
    line-height: 1.6;
    overflow-x: hidden;
    background-image: 
        radial-gradient(circle at 15% 50%, rgba(99, 102, 241, 0.15), transparent 25%),
        radial-gradient(circle at 85% 30%, rgba(236, 72, 153, 0.15), transparent 25%);
}

/* NAVBAR */
.navbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1.5rem 5%;
    position: sticky;
    top: 0;
    z-index: 100;
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-bottom: 1px solid var(--glass-border);
}

.logo {
    display: flex;
    align-items: center;
    font-weight: 800;
    font-size: 1.5rem;
    gap: 0.5rem;
    background: linear-gradient(to right, #fff, #94a3b8);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.logo-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    border-radius: 10px;
    color: white;
    font-size: 1.2rem;
    -webkit-text-fill-color: white; /* Override gradient text */
}

.nav-links {
    display: flex;
    align-items: center;
    gap: 2rem;
}

.nav-links a {
    color: var(--text-main);
    text-decoration: none;
    font-weight: 500;
    transition: color 0.3s;
}

.nav-links a:hover:not(.btn-primary) {
    color: var(--primary);
}

.btn-primary {
    background: linear-gradient(135deg, var(--primary), #818cf8);
    color: white !important;
    padding: 0.75rem 1.5rem;
    border-radius: 50px;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    transition: transform 0.2s, box-shadow 0.2s;
    box-shadow: 0 4px 15px rgba(99, 102, 241, 0.4);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(99, 102, 241, 0.6);
}

.btn-secondary {
    background: rgba(255, 255, 255, 0.1);
    color: white;
    padding: 0.75rem 1.5rem;
    border-radius: 50px;
    font-weight: 600;
    text-decoration: none;
    border: 1px solid var(--glass-border);
    transition: background 0.2s;
}

.btn-secondary:hover {
    background: rgba(255, 255, 255, 0.2);
}

/* HERO SECTION */
.hero {
    display: flex;
    align-items: center;
    justify-content: space-between;
    min-height: calc(100vh - 80px);
    padding: 2rem 5%;
    gap: 2rem;
}

.hero-content {
    flex: 1;
    max-width: 600px;
}

.badge {
    display: inline-block;
    padding: 0.5rem 1rem;
    background: rgba(99, 102, 241, 0.1);
    border: 1px solid rgba(99, 102, 241, 0.3);
    border-radius: 50px;
    color: #a5b4fc;
    font-size: 0.875rem;
    font-weight: 600;
    margin-bottom: 1.5rem;
}

.hero h1 {
    font-size: 3.5rem;
    font-weight: 800;
    line-height: 1.1;
    margin-bottom: 1.5rem;
}

.hero h1 span {
    background: linear-gradient(to right, var(--primary), var(--secondary));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

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

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

.stats-row {
    display: flex;
    gap: 2rem;
}

.stat-item {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: var(--text-muted);
    font-weight: 500;
}

.stat-item ion-icon {
    color: #34d399;
    font-size: 1.25rem;
}

/* HERO VISUAL (CSS MOCKUP) */
.hero-visual {
    flex: 1;
    position: relative;
    display: flex;
    justify-content: center;
    perspective: 1000px;
}

.glass-card {
    background: var(--bg-card);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border: 1px solid var(--glass-border);
    border-radius: 24px;
    box-shadow: var(--glass-shadow);
}

.mockup-card {
    width: 380px;
    padding: 1.5rem;
    transform: rotateY(-10deg) rotateX(5deg);
    transition: transform 0.5s ease;
    animation: float 6s ease-in-out infinite;
}

.mockup-card:hover {
    transform: rotateY(0deg) rotateX(0deg);
}

.mockup-header {
    display: flex;
    align-items: center;
    margin-bottom: 1.5rem;
}

.dots {
    display: flex;
    gap: 6px;
    margin-right: 1rem;
}

.dots span {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: #475569;
}
.dots span:nth-child(1) { background: #ef4444; }
.dots span:nth-child(2) { background: #eab308; }
.dots span:nth-child(3) { background: #22c55e; }

.mockup-title {
    font-size: 0.875rem;
    color: var(--text-muted);
    font-weight: 500;
}

.balance-text {
    font-size: 2.5rem;
    font-weight: 800;
    margin-bottom: 0.5rem;
}

.trend {
    display: flex;
    align-items: center;
    gap: 0.25rem;
    font-size: 0.875rem;
    font-weight: 600;
    margin-bottom: 2rem;
}
.trend.positive { color: #34d399; }

.chart-bars {
    display: flex;
    align-items: flex-end;
    gap: 12px;
    height: 100px;
    margin-bottom: 2rem;
}

.bar-col {
    flex: 1;
    background: rgba(255,255,255,0.05);
    border-radius: 6px;
    height: 100%;
    display: flex;
    align-items: flex-end;
}

.bar {
    width: 100%;
    background: linear-gradient(to top, var(--primary), #818cf8);
    border-radius: 6px;
}
.val-1 { height: 40%; }
.val-2 { height: 60%; }
.val-3 { height: 30%; }
.val-4 { height: 80%; background: linear-gradient(to top, var(--secondary), #f472b6); }
.val-5 { height: 50%; }
.val-6 { height: 90%; }

.list-item {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1rem;
    background: rgba(255,255,255,0.03);
    border-radius: 12px;
    margin-bottom: 0.75rem;
}

.item-icon {
    width: 40px;
    height: 40px;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.25rem;
}
.bg-blue { background: rgba(59, 130, 246, 0.2); color: #60a5fa; }
.bg-purple { background: rgba(168, 85, 247, 0.2); color: #c084fc; }

.item-details {
    flex: 1;
    display: flex;
    flex-direction: column;
}

.item-name { font-weight: 600; font-size: 0.9rem; }
.item-sub { font-size: 0.75rem; color: var(--text-muted); }
.item-val { font-weight: 700; }

.float-elem {
    position: absolute;
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1rem;
    border-radius: 16px;
    animation: float-delayed 7s ease-in-out infinite;
}

.float-1 {
    bottom: 20%;
    left: 0;
    transform: translateZ(50px);
}

.float-2 {
    top: 20%;
    right: 0;
    transform: translateZ(30px);
    animation-delay: 2s;
}

.icon-green { color: #34d399; font-size: 2rem; }
.icon-orange { color: #fb923c; font-size: 2rem; }

.float-text {
    display: flex;
    flex-direction: column;
}

.float-text span { font-size: 0.75rem; color: var(--text-muted); }
.float-text strong { font-size: 1rem; }

/* FEATURES SECTION */
.features-section {
    padding: 5rem 5%;
}

.section-header {
    text-align: center;
    margin-bottom: 4rem;
}

.section-header h2 {
    font-size: 2.5rem;
    margin-bottom: 1rem;
}

.section-header p {
    color: var(--text-muted);
    font-size: 1.125rem;
    max-width: 600px;
    margin: 0 auto;
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
}

.feature-card {
    background: var(--bg-card);
    border: 1px solid var(--glass-border);
    padding: 2.5rem;
    border-radius: 24px;
    transition: transform 0.3s, background 0.3s;
}

.feature-card:hover {
    transform: translateY(-5px);
    background: rgba(30, 41, 59, 0.9);
}

.feature-icon {
    width: 60px;
    height: 60px;
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.75rem;
    color: white;
    margin-bottom: 1.5rem;
}

.bg-gradient-1 { background: linear-gradient(135deg, #3b82f6, #8b5cf6); }
.bg-gradient-2 { background: linear-gradient(135deg, #10b981, #3b82f6); }
.bg-gradient-3 { background: linear-gradient(135deg, #f59e0b, #ef4444); }

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

.feature-card p {
    color: var(--text-muted);
    font-size: 0.95rem;
}

/* FOOTER */
footer {
    padding: 3rem 5%;
    border-top: 1px solid var(--glass-border);
    margin-top: 4rem;
}

.footer-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.social-links {
    display: flex;
    gap: 1rem;
}

.social-links a {
    color: var(--text-muted);
    font-size: 1.5rem;
    transition: color 0.3s;
}

.social-links a:hover {
    color: white;
}

/* ANIMATIONS */
@keyframes float {
    0% { transform: rotateY(-10deg) rotateX(5deg) translateY(0px); }
    50% { transform: rotateY(-10deg) rotateX(5deg) translateY(-20px); }
    100% { transform: rotateY(-10deg) rotateX(5deg) translateY(0px); }
}

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

/* RESPONSIVE */
@media (max-width: 992px) {
    .hero {
        flex-direction: column;
        text-align: center;
        padding-top: 4rem;
    }
    
    .hero-actions {
        justify-content: center;
    }
    
    .stats-row {
        justify-content: center;
        margin-bottom: 4rem;
    }
    
    .mockup-card {
        transform: none;
        animation: float-delayed 6s ease-in-out infinite;
    }
    .mockup-card:hover { transform: none; }
}

@media (max-width: 768px) {
    .hero h1 { font-size: 2.5rem; }
    .nav-links { display: none; }
    .footer-content {
        flex-direction: column;
        gap: 1.5rem;
        text-align: center;
    }
}
