/* FinSavex Premium Design Tokens and Stylesheet */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700;800;900&display=swap');

:root {
    --primary: #0B0B0F;
    --secondary: #FFFFFF;
    --background: #F8F9FA;
    --accent: #B8FF3B;
    /* Neon Lime */
    --accent-secondary: #8EFA3C;
    --accent-text: #4C7200;
    /* High contrast green on white background */
    --success: #10B981;
    --warning: #F59E0B;
    --error: #EF4444;
    --text-primary: #0B0B0F;
    --text-secondary: #6B7280;
    --border-color: rgba(11, 11, 15, 0.08);

    --font-inter: 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;

    --shadow-soft: 0 10px 40px rgba(11, 11, 15, 0.03);
    --shadow-hover: 0 30px 60px rgba(11, 11, 15, 0.06);
}

/* Dark theme tokens */
[data-theme="dark"] {
    --primary: #FFFFFF;
    --secondary: #121218;
    --background: #0B0B0F;
    --text-primary: #F3F4F6;
    --text-secondary: #9CA3AF;
    --border-color: rgba(255, 255, 255, 0.08);
    --accent-text: #B8FF3B;
    /* Bright neon lime on dark background */
    --shadow-soft: 0 10px 40px rgba(0, 0, 0, 0.25);
    --shadow-hover: 0 30px 60px rgba(0, 0, 0, 0.35);
}

/* Force accent text color based on active theme with subtle contrast shadow */
.text-accent {
    color: var(--accent-text) !important;
    text-shadow: 0 1px 4px rgba(0, 0, 0, 0.1);
}

/* Guard readability: force neon green inside dark themed containers/sections */
#ai-assistant .text-accent,
#download .text-accent,
.bg-black .text-accent {
    color: #B8FF3B !important;
    text-shadow: 0 1px 5px rgba(0, 0, 0, 0.25) !important;
}

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

html {
    scroll-behavior: smooth;
    font-family: var(--font-inter);
    background-color: var(--background);
    color: var(--text-primary);
    overflow-x: hidden;
}

body {
    overflow-x: hidden;
    transition: background-color 0.4s cubic-bezier(0.16, 1, 0.3, 1), color 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

/* Theme Toggle Button custom styles */
.theme-btn {
    cursor: pointer;
    background: transparent;
    border: none;
    outline: none;
    color: var(--text-primary);
    transition: transform 0.2s;
}

.theme-btn:hover {
    transform: rotate(15deg);
}

/* Custom Interactive Cursor Glow */
.cursor-glow {
    position: fixed;
    width: 250px;
    height: 250px;
    background: radial-gradient(circle, rgba(184, 255, 59, 0.12) 0%, rgba(184, 255, 59, 0) 70%);
    border-radius: 50%;
    pointer-events: none;
    transform: translate(-50%, -50%);
    z-index: 9999;
    mix-blend-mode: screen;
    transition: width 0.2s, height 0.2s;
}

/* Premium Custom Scrollbar */
::-webkit-scrollbar {
    width: 10px;
}

::-webkit-scrollbar-track {
    background: var(--background);
}

::-webkit-scrollbar-thumb {
    background: rgba(107, 114, 128, 0.3);
    border-radius: 5px;
    border: 3px solid var(--background);
}

::-webkit-scrollbar-thumb:hover {
    background: rgba(184, 255, 59, 0.8);
}

/* Hero Radial Background Gradient */
.hero-gradient {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 100vw;
    height: 100vh;
    background: radial-gradient(circle, rgba(184, 255, 59, 0.04) 0%, rgba(255, 255, 255, 0) 80%);
    z-index: -1;
    pointer-events: none;
}

[data-theme="dark"] .hero-gradient {
    background: radial-gradient(circle, rgba(184, 255, 59, 0.02) 0%, rgba(8, 8, 12, 0) 80%);
}

/* Glassmorphism elements */
.glass-nav {
    background: rgba(247, 248, 250, 0.8);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    transition: background 0.3s ease, border-color 0.3s ease;
}

[data-theme="dark"] .glass-nav {
    background: rgba(8, 8, 12, 0.8);
}

/* Card Styling */
.premium-card {
    background-color: var(--secondary);
    border: 1px solid rgba(107, 114, 128, 0.08);
    box-shadow: var(--shadow-soft);
    border-radius: 28px;
    padding: 32px;
    transition: transform 0.5s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.5s cubic-bezier(0.16, 1, 0.3, 1);
}

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

/* Custom Interactive Mockup Floating Elements */
@keyframes float {

    0%,
    100% {
        transform: translateY(0px) rotate(0deg);
    }

    50% {
        transform: translateY(-15px) rotate(1deg);
    }
}

.floating-mockup {
    animation: float 6s ease-in-out infinite;
}

.floating-card-1 {
    animation: float 8s ease-in-out infinite;
    animation-delay: -2s;
}

.floating-card-2 {
    animation: float 7s ease-in-out infinite;
    animation-delay: -4s;
}

/* Neon Glow Outline */
.neon-glow-hover:hover {
    box-shadow: 0 0 25px rgba(184, 255, 59, 0.35);
}

/* Accordion Smooth Styles */
.accordion-content {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.4s cubic-bezier(0.16, 1, 0.3, 1), padding 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

.accordion-active .accordion-content {
    max-height: 500px;
    padding-top: 16px;
}

/* Text Accent Hover */
.nav-link {
    position: relative;
    color: var(--text-secondary);
    transition: color 0.2s;
}

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

.nav-link::after {
    content: '';
    position: absolute;
    width: 0;
    height: 1.5px;
    bottom: -4px;
    left: 0;
    background-color: var(--text-primary);
    transition: width 0.2s ease-in-out;
}

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

/* Neon buttons override */
.btn-neon {
    background-color: var(--accent);
    color: #0B0B0F;
    font-weight: 600;
    transition: transform 0.2s, box-shadow 0.2s;
}

.btn-neon:hover {
    transform: scale(1.03);
    box-shadow: 0 10px 25px rgba(184, 255, 59, 0.4);
}

/* Dynamic slider indicator */
.slider-toggle::before {
    content: '';
    position: absolute;
    width: 50%;
    height: calc(100% - 8px);
    top: 4px;
    left: 4px;
    background-color: var(--primary);
    border-radius: 12px;
    transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.slider-toggle.yearly::before {
    transform: translateX(100%);
}

.slider-toggle.yearly .lbl-yearly {
    color: var(--secondary);
}

.slider-toggle.monthly .lbl-monthly {
    color: var(--secondary);
}

/* Dark override support */
[data-theme="dark"] .slider-toggle::before {
    background-color: #1F2937;
}

/* Grid overlay background lines */
.grid-lines {
    position: absolute;
    inset: 0;
    background-image:
        linear-gradient(rgba(107, 114, 128, 0.05) 1px, transparent 1px),
        linear-gradient(90deg, rgba(107, 114, 128, 0.05) 1px, transparent 1px);
    background-size: 80px 80px;
    z-index: -2;
    pointer-events: none;
}