/* RESET & BASE */
:root {
    --color-bg-deep: #05060A; /* Extremely dark tone, almost black, typical of high-end tech */
    --color-bg-card: rgba(18, 22, 33, 0.4);
    --color-border: rgba(255, 255, 255, 0.08);
    
    /* Neon / Glow Colors - Cyan/Teal (very common for fintech & matches high tech videos) */
    --color-accent: #00D2FF;
    --color-accent-dim: rgba(0, 210, 255, 0.15);
    --color-accent-gradient: linear-gradient(135deg, #3A8DFF 0%, #00D2FF 100%);
    --color-accent-hover: #3A8DFF;
    
    --color-text-main: #FFFFFF;
    --color-text-muted: #8E9BAE;
    
    /* Positive / Negative */
    --color-success: #1BCB5F;
    --color-danger: #FC5A5A;
    
    --font-heading: 'Outfit', sans-serif;
    --font-body: 'Inter', sans-serif;
    
    --transition-smooth: 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

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

html {
    scroll-behavior: smooth;
    font-size: 16px;
}

body {
    background-color: var(--color-bg-deep);
    color: var(--color-text-main);
    font-family: var(--font-body);
    line-height: 1.6;
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

a {
    text-decoration: none;
    color: inherit;
    transition: var(--transition-smooth);
}

ul {
    list-style: none;
}

img, video {
    max-width: 100%;
    display: block;
}

.container {
    max-width: 1300px;
    margin: 0 auto;
    padding: 0 5%;
}

/* TYPOGRAPHY UTILS */
h1, h2, h3, h4 {
    font-family: var(--font-heading);
    font-weight: 700;
    line-height: 1.1;
}

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

/* BUTTONS */
.btn-primary, .btn-secondary, .btn-login {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 12px 24px;
    border-radius: 100px;
    font-family: var(--font-body);
    font-weight: 600;
    font-size: 0.95rem;
    cursor: pointer;
    transition: var(--transition-smooth);
    position: relative;
    overflow: hidden;
}

.btn-large {
    padding: 16px 32px;
    font-size: 1.05rem;
}

.btn-primary {
    background: var(--color-accent-gradient);
    color: #fff;
    border: none;
    box-shadow: 0 8px 24px rgba(0, 210, 255, 0.25);
}

.btn-primary:hover {
    box-shadow: 0 12px 32px rgba(0, 210, 255, 0.4);
    transform: translateY(-2px);
    filter: brightness(1.1);
}

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

.btn-secondary:hover {
    background: rgba(255, 255, 255, 0.1);
    transform: translateY(-2px);
}

.btn-login {
    padding: 10px 20px;
}

.btn-login:hover {
    color: var(--color-accent);
}

/* NAVBAR */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    transition: var(--transition-smooth);
    padding: 24px 0;
}

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

.nav-container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 5%;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    display: flex;
    align-items: center;
    gap: 10px;
    font-family: var(--font-heading);
    font-size: 1.5rem;
    font-weight: 800;
    letter-spacing: -0.5px;
}

.logo i {
    color: var(--color-accent);
    font-size: 1.8rem;
    filter: drop-shadow(0 0 10px var(--color-accent));
}

.nav-links {
    display: flex;
    gap: 32px;
}

.nav-links a {
    font-size: 0.95rem;
    font-weight: 500;
    color: var(--color-text-muted);
    position: relative;
}

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

.nav-links a:hover {
    color: var(--color-text-main);
}

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

.nav-actions {
    display: flex;
    align-items: center;
    gap: 16px;
}

/* HERO SECTION */
.hero {
    position: relative;
    min-height: 100vh;
    display: flex;
    align-items: center;
    padding-top: 100px; /* Offset for navbar */
    overflow: hidden;
}

/* --- VIDEO BACKGROUND --- */
.video-container {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 0;
}

.hero-video {
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0.6; /* Slight dim to let text pop */
    filter: saturate(1.2) contrast(1.1);
}

.video-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    /* Gradient overlay: Dark at top/bottom, slightly clearer in middle */
    background: linear-gradient(
        to bottom,
        rgba(5, 6, 10, 0.95) 0%,
        rgba(5, 6, 10, 0.4) 50%,
        rgba(5, 6, 10, 1) 100%
    );
    z-index: 1;
}
/* ----------------------- */

.hero-content {
    position: relative;
    z-index: 2;
    max-width: 900px;
    margin: 0 auto;
    text-align: center;
    padding: 0 5%;
}

.hero-content h1 {
    font-size: clamp(3rem, 6vw, 5.5rem);
    letter-spacing: -1.5px;
    margin-bottom: 24px;
}

.hero-desc {
    font-size: clamp(1.1rem, 2vw, 1.35rem);
    color: var(--color-text-muted);
    max-width: 700px;
    margin: 0 auto 48px;
}

.hero-cta {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 20px;
    margin-bottom: 80px;
}

.hero-stats {
    display: flex;
    justify-content: center;
    gap: 64px;
    border-top: 1px solid var(--color-border);
    padding-top: 40px;
    flex-wrap: wrap;
}

.stat {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.stat-value {
    font-family: var(--font-heading);
    font-size: 2rem;
    font-weight: 700;
    color: var(--color-text-main);
}

.stat-label {
    font-size: 0.85rem;
    color: var(--color-text-muted);
    text-transform: uppercase;
    letter-spacing: 1px;
}

/* SECTION HEADERS */
.section-header {
    text-align: center;
    max-width: 700px;
    margin: 0 auto 64px;
}

.section-title {
    font-size: clamp(2.5rem, 4vw, 3.5rem);
    margin-bottom: 16px;
    letter-spacing: -1px;
}

.section-subtitle {
    font-size: 1.15rem;
    color: var(--color-text-muted);
}

/* FEATURES SECTION */
.features-section {
    padding: 120px 0;
    position: relative;
    background: radial-gradient(circle at 50% 0%, var(--color-accent-dim) 0%, transparent 50%);
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 24px;
    margin-top: 32px;
}

.feature-card {
    background: var(--color-bg-card);
    border: 1px solid var(--color-border);
    border-radius: 20px;
    padding: 40px;
    transition: var(--transition-smooth);
    position: relative;
    overflow: hidden;
    backdrop-filter: blur(10px);
}

.feature-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: radial-gradient(800px circle at var(--mouse-x, 0) var(--mouse-y, 0), rgba(255, 255, 255, 0.06), transparent 40%);
    opacity: 0;
    transition: opacity 0.3s;
    pointer-events: none;
    z-index: 1;
}

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

.feature-card:hover {
    transform: translateY(-5px);
    border-color: rgba(255, 255, 255, 0.2);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.5);
}

.card-icon {
    width: 56px;
    height: 56px;
    border-radius: 14px;
    background: rgba(255, 255, 255, 0.05);
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 24px;
    font-size: 1.8rem;
    color: var(--color-accent);
    border: 1px solid rgba(255, 255, 255, 0.08);
}

.feature-card h3 {
    font-size: 1.4rem;
    margin-bottom: 12px;
}

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

/* APP PREVIEW / TECH SECTION */
.tech-section {
    padding: 120px 0;
    overflow: hidden;
}

.tech-wrapper {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 64px;
    align-items: center;
}

.tech-list {
    margin: 32px 0 40px;
}

.tech-list li {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 16px;
    font-size: 1.05rem;
    color: var(--color-text-main);
}

.tech-list i {
    color: var(--color-accent);
    font-size: 1.4rem;
}

.link-action {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: var(--color-accent);
    font-weight: 600;
    font-size: 1.05rem;
}

.link-action:hover {
    gap: 12px;
}

.glass-dashboard {
    background: rgba(18, 22, 33, 0.5);
    border: 1px solid var(--color-border);
    border-radius: 24px;
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    box-shadow: 0 30px 60px rgba(0, 0, 0, 0.6), inset 0 1px 0 rgba(255, 255, 255, 0.1);
    position: relative;
    overflow: hidden;
    transform: perspective(1000px) rotateY(-5deg) rotateX(5deg);
    transition: var(--transition-smooth);
}

.glass-dashboard:hover {
    transform: perspective(1000px) rotateY(0) rotateX(0);
}

.dash-header {
    padding: 16px 24px;
    border-bottom: 1px solid var(--color-border);
    display: flex;
    align-items: center;
    background: rgba(0, 0, 0, 0.2);
}

.dots {
    display: flex;
    gap: 8px;
}

.dots span {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: #333;
}
.dots span:nth-child(1) { background: #FF5A5A; }
.dots span:nth-child(2) { background: #FFB340; }
.dots span:nth-child(3) { background: #1BCB5F; }

.dash-title {
    margin: 0 auto;
    transform: translateX(-24px); /* Offset the dots */
    font-size: 0.8rem;
    color: var(--color-text-muted);
    font-family: monospace;
}

.dash-body {
    padding: 32px;
}

.dash-line-chart {
    height: 120px;
    width: 100%;
    margin-bottom: 32px;
    background: linear-gradient(to top, var(--color-accent-dim), transparent);
    border-bottom: 2px solid var(--color-accent);
    position: relative;
    border-radius: 8px;
    overflow: hidden;
}

.dash-records {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.record {
    display: flex;
    align-items: center;
    background: rgba(255, 255, 255, 0.03);
    padding: 16px;
    border-radius: 12px;
    border: 1px solid transparent;
    transition: var(--transition-smooth);
}

.record:hover {
    border-color: rgba(255, 255, 255, 0.1);
    background: rgba(255, 255, 255, 0.05);
}

.r-icon {
    width: 40px;
    height: 40px;
    border-radius: 10px;
    background: rgba(252, 90, 90, 0.15);
    color: var(--color-danger);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    margin-right: 16px;
}

.r-icon.success {
    background: rgba(27, 203, 95, 0.15);
    color: var(--color-success);
}

.r-info {
    flex-grow: 1;
    display: flex;
    flex-direction: column;
}

.r-info span {
    font-weight: 500;
}

.r-info small {
    color: var(--color-text-muted);
    font-size: 0.8rem;
}

.r-amount.negative { color: var(--color-text-main); }
.r-amount.positive { color: var(--color-success); }
.r-amount.neutral { color: var(--color-accent); }

.glow-effect {
    position: absolute;
    width: 300px;
    height: 300px;
    background: var(--color-accent);
    filter: blur(150px);
    opacity: 0.15;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    pointer-events: none;
    border-radius: 50%;
}

/* CTA SECTION */
.cta-section {
    padding: 120px 0;
}

.cta-box {
    background: linear-gradient(180deg, rgba(18, 22, 33, 0.8) 0%, rgba(5, 6, 10, 0) 100%);
    border: 1px solid var(--color-border);
    border-radius: 32px;
    padding: 80px 40px;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.cta-bg-glow {
    position: absolute;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 80%;
    height: 100px;
    background: var(--color-accent);
    filter: blur(100px);
    opacity: 0.2;
    z-index: 0;
}

.cta-box h2, .cta-box p, .cta-box .cta-actions {
    position: relative;
    z-index: 1;
}

.cta-box h2 {
    font-size: clamp(2.5rem, 4vw, 3.5rem);
    margin-bottom: 24px;
}

.cta-box p {
    color: var(--color-text-muted);
    font-size: 1.2rem;
    max-width: 600px;
    margin: 0 auto 40px;
}

.cta-actions {
    display: flex;
    gap: 20px;
    justify-content: center;
}

/* FOOTER */
footer {
    border-top: 1px solid var(--color-border);
    padding: 80px 0 40px;
    background: #020305;
}

.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1fr;
    gap: 64px;
    margin-bottom: 64px;
}

.footer-brand p {
    color: var(--color-text-muted);
    margin-top: 24px;
    max-width: 300px;
}

.footer-links h4 {
    font-size: 1.1rem;
    margin-bottom: 24px;
    color: var(--color-text-main);
}

.footer-links a {
    display: block;
    color: var(--color-text-muted);
    margin-bottom: 12px;
}

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

.footer-bottom {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: 32px;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    color: var(--color-text-muted);
    font-size: 0.9rem;
}

.socials {
    display: flex;
    gap: 16px;
}

.socials a {
    font-size: 1.4rem;
    color: var(--color-text-muted);
}

.socials a:hover {
    color: var(--color-accent);
}

/* ANIMATIONS (Scroll triggered via JS) */
.reveal-text {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 1s cubic-bezier(0.16, 1, 0.3, 1), transform 1s cubic-bezier(0.16, 1, 0.3, 1);
}

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

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

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

.delay-1 { transition-delay: 0.15s; }
.delay-2 { transition-delay: 0.3s; }
.delay-3 { transition-delay: 0.45s; }

/* RESPONSIVE */
@media (max-width: 992px) {
    .tech-wrapper {
        grid-template-columns: 1fr;
    }
    
    .footer-grid {
        grid-template-columns: 1fr 1fr;
    }
}

@media (max-width: 768px) {
    .nav-links, .btn-login {
        display: none; /* simple mobile hide for now */
    }
    
    .hero-cta {
        flex-direction: column;
        width: 100%;
    }
    
    .hero-cta a {
        width: 100%;
    }
    
    .hero-stats {
        gap: 32px;
    }
    
    .cta-actions {
        flex-direction: column;
    }
    
    .footer-grid {
        grid-template-columns: 1fr;
        gap: 40px;
    }
    
    .footer-bottom {
        flex-direction: column;
        gap: 24px;
        text-align: center;
    }
}
