:root {
    --bg-dark: #07070a;
    --bg-card: rgba(18, 18, 25, 0.6);
    --text-primary: #ffffff;
    --text-secondary: #9ca3af;
    --primary-color: #8b5cf6;
    --primary-hover: #7c3aed;
    --accent-color: #06b6d4;
    --border-color: rgba(255, 255, 255, 0.08);
    
    --success: #10b981;
    --success-bg: rgba(16, 185, 129, 0.1);
    --danger: #ef4444;
    --danger-bg: rgba(239, 68, 68, 0.1);
    --warning: #f59e0b;
    --warning-bg: rgba(245, 158, 11, 0.1);
    --info: #3b82f6;
    --info-bg: rgba(59, 130, 246, 0.1);

    --font-heading: 'Outfit', sans-serif;
    --font-body: 'Inter', sans-serif;
}

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

html, body {
    background-color: var(--bg-dark);
    color: var(--text-primary);
    font-family: var(--font-body);
    line-height: 1.6;
    overflow-x: hidden;
    min-height: 100vh;
    scroll-behavior: smooth;
}

/* Animated Background Orbs */
.bg-shape {
    position: absolute;
    border-radius: 50%;
    filter: blur(120px);
    z-index: -1;
    opacity: 0.6;
    animation: floatOrb 12s infinite ease-in-out alternate;
}

.shape-1 {
    top: -5%;
    left: -10%;
    width: 60vw;
    height: 60vw;
    max-width: 600px;
    max-height: 600px;
    background: radial-gradient(circle, var(--primary-color), transparent 60%);
}

.shape-2 {
    top: 30%;
    right: -10%;
    width: 50vw;
    height: 50vw;
    max-width: 500px;
    max-height: 500px;
    background: radial-gradient(circle, var(--accent-color), transparent 60%);
    animation-delay: -5s;
    animation-duration: 15s;
}

.shape-3 {
    bottom: -10%;
    left: 10%;
    width: 40vw;
    height: 40vw;
    max-width: 400px;
    max-height: 400px;
    background: radial-gradient(circle, #e81cff, transparent 60%);
    animation-duration: 18s;
}

@keyframes floatOrb {
    0% { transform: translate(0, 0) scale(1); }
    100% { transform: translate(50px, -50px) scale(1.1); }
}

/* Typography */
h1, h2, h3, h4, .logo span {
    font-family: var(--font-heading);
}

h1 {
    font-size: clamp(2.5rem, 6vw, 5rem);
    font-weight: 800;
    line-height: 1.1;
    margin-bottom: 1.5rem;
    letter-spacing: -0.02em;
}

h2 {
    font-size: clamp(2rem, 4vw, 3.5rem);
    font-weight: 700;
    margin-bottom: 1rem;
    letter-spacing: -0.01em;
}

h3 {
    font-size: 1.5rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
}

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

.text-gradient {
    background: linear-gradient(to right, var(--accent-color), var(--primary-color), #e81cff);
    background-size: 200% auto;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    animation: shine 4s linear infinite;
}

@keyframes shine {
    to { background-position: 200% center; }
}

/* Container */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1.5rem;
}

/* Glassmorphism Classes */
.glass-panel {
    background: var(--bg-card);
    backdrop-filter: blur(24px);
    -webkit-backdrop-filter: blur(24px);
    border: 1px solid var(--border-color);
    box-shadow: 0 30px 60px -12px rgba(0, 0, 0, 0.6);
}

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 0.75rem 1.5rem;
    border-radius: 9999px;
    font-weight: 500;
    text-decoration: none;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    cursor: pointer;
    font-family: var(--font-body);
    border: none;
}

.btn-primary {
    background: linear-gradient(135deg, var(--primary-color), #a855f7);
    color: white;
    box-shadow: 0 4px 15px rgba(139, 92, 246, 0.4);
    position: relative;
    overflow: hidden;
}

.btn-primary::before {
    content: '';
    position: absolute;
    top: 0; left: -100%;
    width: 100%; height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.2), transparent);
    transition: left 0.5s ease;
}

.btn-primary:hover::before {
    left: 100%;
}

.btn-primary:hover {
    box-shadow: 0 8px 25px rgba(139, 92, 246, 0.6);
    transform: translateY(-2px);
}

.btn-outline {
    background: rgba(255, 255, 255, 0.03);
    color: white;
    border: 1px solid var(--border-color);
    backdrop-filter: blur(10px);
}

.btn-outline:hover {
    background: rgba(255, 255, 255, 0.1);
    border-color: rgba(255, 255, 255, 0.2);
}

.btn-lang {
    background: rgba(255, 255, 255, 0.1);
    color: white;
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 20px;
    padding: 0.4rem 1rem;
    font-size: 0.85rem;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 5px;
}
.btn-lang:hover {
    background: rgba(255, 255, 255, 0.2);
    transform: scale(1.05);
}

/* Navigation */
.navbar {
    padding: 1.5rem 0;
    position: fixed;
    top: 0;
    width: 100%;
    z-index: 100;
    transition: all 0.4s ease;
    border-bottom: 1px solid transparent;
}

.navbar.scrolled {
    background: rgba(7, 7, 10, 0.85);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-bottom: 1px solid var(--border-color);
    padding: 1rem 0;
}

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

.logo {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    text-decoration: none;
    color: white;
}

.logo-img {
    width: 44px;
    height: 44px;
    object-fit: contain;
    border-radius: 12px;
    box-shadow: 0 4px 10px rgba(139, 92, 246, 0.4);
    background: rgba(255, 255, 255, 0.05);
    padding: 2px;
}

.logo span {
    font-size: 1.5rem;
    font-weight: 700;
    letter-spacing: -0.02em;
}

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

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

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

.nav-links a:hover { color: white; }
.nav-links a:hover::after { width: 100%; }

.nav-actions {
    display: flex;
    align-items: center;
    gap: 1rem;
}

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

.hero-container {
    display: grid;
    grid-template-columns: 1.1fr 0.9fr;
    gap: 4rem;
    align-items: center;
}

.badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 0.5rem 1rem;
    background: rgba(139, 92, 246, 0.1);
    border: 1px solid rgba(139, 92, 246, 0.3);
    border-radius: 9999px;
    font-size: 0.875rem;
    font-weight: 500;
    color: #c4b5fd;
    margin-bottom: 1.5rem;
    animation: slideDown 0.8s ease-out;
}

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

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

.hero-stats {
    display: flex;
    gap: 3rem;
    border-top: 1px solid var(--border-color);
    padding-top: 2rem;
}

.stat-number {
    font-family: var(--font-heading);
    font-size: 2.2rem;
    font-weight: 700;
    color: white;
}

/* Glassmorphism Cards & Animations */
.hero-visual {
    position: relative;
    height: 600px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.main-card {
    width: 100%;
    max-width: 420px;
    z-index: 2;
    border-radius: 24px;
    padding: 1.5rem;
    animation: floatCard 8s ease-in-out infinite;
    transform-style: preserve-3d;
}

@keyframes floatCard {
    0%, 100% { transform: translateY(0) rotateX(0deg); }
    50% { transform: translateY(-20px) rotateX(2deg); }
}

.card-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1.5rem;
    padding-bottom: 1rem;
    border-bottom: 1px solid var(--border-color);
}

.transaction-list {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.transaction-item {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1rem;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid transparent;
    border-radius: 16px;
    transition: all 0.3s ease;
}

.transaction-item:hover {
    transform: translateX(8px);
    background: rgba(255, 255, 255, 0.05);
    border-color: rgba(255, 255, 255, 0.1);
}

.t-icon {
    width: 44px; height: 44px;
    border-radius: 12px;
    display: flex; align-items: center; justify-content: center;
    font-size: 1.1rem;
}

.bg-green { background: var(--success-bg); color: var(--success); }
.bg-red { background: var(--danger-bg); color: var(--danger); }
.bg-blue { background: var(--info-bg); color: var(--info); }

.t-details { flex: 1; }
.t-name { font-weight: 600; font-size: 0.95rem; }
.t-date { font-size: 0.75rem; color: var(--text-secondary); margin-top: 0.25rem; }
.t-amount { font-weight: 700; font-family: var(--font-heading); }
.positive { color: var(--success); }
.negative { color: var(--text-primary); }
.neutral { color: var(--text-secondary); }

/* Floating Badges */
.float-card-1 {
    position: absolute;
    top: 10%; right: -5%;
    display: flex; align-items: center; gap: 1rem;
    padding: 1rem 1.5rem;
    border-radius: 16px;
    z-index: 3;
    animation: floatFast 6s ease-in-out infinite alternate;
}

.float-card-2 {
    position: absolute;
    bottom: 15%; left: -10%;
    display: flex; align-items: center; gap: 1rem;
    padding: 1rem 1.5rem;
    border-radius: 16px;
    z-index: 3;
    animation: floatFast 7s ease-in-out infinite alternate-reverse;
}

@keyframes floatFast {
    0% { transform: translateY(0) rotate(0); }
    100% { transform: translateY(-15px) rotate(3deg); }
}

.icon-wrap {
    width: 36px; height: 36px;
    background: var(--success-bg);
    color: var(--success);
    border-radius: 10px;
    display: flex; align-items: center; justify-content: center;
}

/* Features Section */
.features {
    padding: 8rem 0;
    position: relative;
    z-index: 10;
}

.section-header {
    text-align: center;
    max-width: 650px;
    margin: 0 auto 4rem;
}

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

.feature-card {
    background: rgba(255, 255, 255, 0.015);
    border: 1px solid var(--border-color);
    border-radius: 20px;
    padding: 2.5rem 2rem;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    position: relative;
    overflow: hidden;
}

.feature-card::before {
    content: '';
    position: absolute;
    top: -50px; right: -50px;
    width: 100px; height: 100px;
    background: var(--primary-color);
    filter: blur(50px);
    opacity: 0;
    transition: opacity 0.4s ease;
}

.feature-card:hover {
    transform: translateY(-15px);
    background: rgba(255, 255, 255, 0.03);
    border-color: rgba(255, 255, 255, 0.15);
    box-shadow: 0 20px 40px rgba(0,0,0,0.4);
}

.feature-card:hover::before { opacity: 0.3; }

.f-icon {
    width: 60px; height: 60px;
    border-radius: 16px;
    display: flex; align-items: center; justify-content: center;
    font-size: 1.75rem;
    margin-bottom: 1.5rem;
    background: rgba(255,255,255,0.05);
}

.f-icon.purple { color: #a855f7; }
.f-icon.blue { color: #38bdf8; }
.f-icon.orange { color: #fb923c; }
.f-icon.green { color: #34d399; }

/* CTA Section */
.cta-section { padding: 4rem 0 8rem; }

.cta-card {
    text-align: center;
    padding: 5rem 2rem;
    background: linear-gradient(135deg, rgba(20, 20, 30, 0.8), rgba(30, 30, 45, 0.8));
    position: relative;
    overflow: hidden;
    border-radius: 30px;
    border: 1px solid var(--border-color);
}

.cta-card::after {
    content: '';
    position: absolute;
    top: 50%; left: 50%;
    transform: translate(-50%, -50%);
    width: 80%; height: 80%;
    background: radial-gradient(ellipse, var(--primary-color) 0%, transparent 70%);
    opacity: 0.15;
    z-index: 0;
    filter: blur(40px);
}

.cta-card * { position: relative; z-index: 1; }

/* Footer - Fixing Bottom Space */
footer {
    border-top: 1px solid var(--border-color);
    padding: 4rem 0 0 0;
    background: rgba(5, 5, 8, 0.9);
    position: relative;
}

.footer-container {
    display: grid;
    grid-template-columns: 2fr 3fr;
    gap: 4rem;
    margin-bottom: 3rem;
}

.footer-brand p { margin-top: 1rem; max-width: 300px; }

.footer-links {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
}

.link-column h4 { margin-bottom: 1.5rem; font-size: 1.125rem; color: white;}
.link-column a {
    display: block;
    color: var(--text-secondary);
    text-decoration: none;
    margin-bottom: 0.75rem;
    transition: color 0.3s ease;
}
.link-column a:hover { color: var(--primary-color); }

.footer-bottom {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1.5rem 0;
    border-top: 1px solid var(--border-color);
    margin: 0;
}

/* Ensure no gap below footer */
body {
    display: flex;
    flex-direction: column;
}
main {
    flex: 1;
}

.social-links { display: flex; gap: 1rem; }
.social-links a {
    color: var(--text-secondary);
    font-size: 1.25rem;
    transition: all 0.3s ease;
    width: 40px; height: 40px;
    border-radius: 50%;
    background: rgba(255,255,255,0.05);
    display: flex; align-items: center; justify-content: center;
}
.social-links a:hover { color: white; background: var(--primary-color); transform: translateY(-3px);}

/* Animations */
.reveal {
    opacity: 0;
    transform: translateY(40px);
    transition: all 0.8s cubic-bezier(0.5, 0, 0, 1);
}
.reveal.active {
    opacity: 1;
    transform: translateY(0);
}

/* Responsive */
@media (max-width: 992px) {
    .hero-container {
        grid-template-columns: 1fr;
        text-align: center;
        gap: 4rem;
    }
    .hero-buttons { justify-content: center; }
    .hero-stats { justify-content: center; }
    .footer-container { grid-template-columns: 1fr; gap: 3rem; }
}

@media (max-width: 768px) {
    .nav-links { display: none; }
    h1 { font-size: 2.5rem; }
    .hero-buttons { flex-direction: column; }
    .float-card-1, .float-card-2 { display: none; }
    .footer-links { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 480px) {
    .footer-links { grid-template-columns: 1fr; }
    .footer-bottom { flex-direction: column; gap: 1rem; text-align: center; }
}
