:root {
    /* Dark Mode Core Palette */
    --bg-body: #020617;       
    --bg-surface: #0f172a;    
    --bg-surface-alt: #1e293b; 
    
    /* Accents */
    --accent: #10b981;        
    --accent-hover: #059669;
    --info: #3b82f6;          
    --warning: #fbbf24;       
    --danger: #ef4444;        
    --purple: #8b5cf6;        
    --store: #6366f1;         
    
    /* Slates (Inverted for Dark Mode) */
    --slate-50: #020617;      
    --slate-100: #0f172a;     
    --slate-200: #334155;     /* Borders */
    --slate-300: #475569;     
    --slate-400: #64748b;     
    --slate-500: #94a3b8;     /* Muted Text */
    --slate-600: #cbd5e1;     /* Secondary Text */
    --slate-700: #e2e8f0;     
    --slate-800: #f1f5f9;
    --slate-900: #f8fafc;     /* Primary Text */
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; scroll-padding-top: 90px; }

body {
    font-family: 'Inter', sans-serif;
    line-height: 1.6;
    color: var(--slate-900);
    background-color: var(--bg-body);
    -webkit-font-smoothing: antialiased;
    overflow-x: hidden;
}

body.modal-open { overflow: hidden; }
.container { max-width: 1200px; margin: 0 auto; padding: 0 24px; }
section { padding: 120px 0; }

/* Typography */
.text-gradient {
    background: linear-gradient(135deg, var(--slate-900) 0%, var(--slate-400) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}
.subtitle { font-size: 1.25rem; color: var(--slate-500); line-height: 1.6; }

/* Navigation */
nav { 
    background: rgba(15, 23, 42, 0.85); 
    padding: 16px 0; 
    border-bottom: 1px solid rgba(51, 65, 85, 0.5); 
    position: fixed; 
    width: 100%; 
    top: 0; 
    z-index: 1000; 
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    transition: all 0.3s ease;
}
nav .container { display: flex; justify-content: space-between; align-items: center; }
.logo { font-size: 1.5rem; font-weight: 900; color: var(--slate-900); text-decoration: none; display: flex; align-items: center; gap: 8px; letter-spacing: -0.5px; }
.logo span { color: var(--accent); }
.nav-links { display: flex; align-items: center; gap: 32px; }
.nav-links a { text-decoration: none; color: var(--slate-500); font-weight: 600; font-size: 0.95rem; transition: color 0.2s; cursor: pointer; }
.nav-links a:hover { color: var(--slate-900); }

/* Buttons */
.btn { 
    display: inline-flex; align-items: center; justify-content: center; 
    padding: 14px 28px; border-radius: 99px; text-decoration: none; 
    font-weight: 700; font-size: 1rem; transition: all 0.3s ease; 
    border: none; cursor: pointer; 
}
.btn-accent { 
    background: var(--accent); color: #ffffff !important; 
    box-shadow: 0 4px 14px 0 rgba(16, 185, 129, 0.3); 
}
.btn-accent:hover { 
    background: var(--accent-hover); transform: translateY(-2px); 
    box-shadow: 0 6px 20px rgba(16, 185, 129, 0.4); 
}
.btn-outline { 
    background: transparent; border: 2px solid var(--slate-200); 
    color: var(--slate-900) !important; 
}
.btn-outline:hover { 
    border-color: var(--slate-500); background: var(--bg-surface); 
}

/* Hero Section */
.hero { 
    padding: 160px 0 100px; 
    background: radial-gradient(100% 100% at 50% 0%, rgba(30, 41, 59, 0.6) 0%, rgba(2, 6, 23, 0) 100%);
    position: relative;
    overflow: hidden;
}
.hero::before {
    content: ''; position: absolute; top: -10%; left: -10%; width: 400px; height: 400px;
    background: radial-gradient(circle, rgba(16, 185, 129, 0.1) 0%, transparent 70%);
    border-radius: 50%; z-index: -1;
}
.hero-grid { display: grid; grid-template-columns: 1.1fr 0.9fr; gap: 60px; align-items: center; }
.hero-text h1 { font-size: 4rem; line-height: 1.05; margin-bottom: 24px; letter-spacing: -1.5px; font-weight: 900; }
.hero-text p { margin-bottom: 40px; max-width: 520px; }
.hero-buttons { display: flex; gap: 16px; }

/* App Mockup UI */
.app-wrapper {
    position: relative;
    perspective: 1000px;
}
.app-mockup { 
    background: var(--bg-surface); border-radius: 32px; padding: 24px; 
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.5), 0 0 0 8px var(--slate-50); 
    border: 1px solid var(--slate-200); 
    transform: rotateY(-5deg) rotateX(5deg) translateZ(0); 
    transition: all 0.6s cubic-bezier(0.16, 1, 0.3, 1); 
}
.app-mockup:hover { transform: rotateY(0deg) rotateX(0deg) translateZ(20px); box-shadow: 0 30px 60px -12px rgba(0, 0, 0, 0.6), 0 0 0 8px var(--slate-50); }
.mockup-header { display: flex; justify-content: space-between; margin-bottom: 24px; align-items: flex-start; }
.mockup-bal { font-size: 3rem; font-weight: 900; color: var(--slate-900); line-height: 1; letter-spacing: -1px; }
.mockup-card { 
    background: var(--bg-surface-alt); border: 1px solid var(--slate-200); border-radius: 16px; 
    padding: 16px; margin-bottom: 12px; display: flex; justify-content: space-between; 
    align-items: center; box-shadow: 0 4px 6px rgba(0,0,0,0.1);
    transition: transform 0.2s;
}
.mockup-card:hover { transform: translateX(4px); }
.mockup-icon { width: 44px; height: 44px; border-radius: 12px; display: flex; align-items: center; justify-content: center; font-size: 1.25rem; }

/* Badges */
.badge {
    padding: 4px 12px; border-radius: 20px; font-size: 0.75rem; font-weight: 800; 
    text-transform: uppercase; letter-spacing: 0.5px; display: inline-block; margin-bottom: 16px;
}
.badge-purple { background: rgba(139, 92, 246, 0.15); color: var(--purple); }
.badge-store { background: rgba(99, 102, 241, 0.15); color: var(--store); }
.badge-warning { background: rgba(245, 158, 11, 0.15); color: var(--warning); }

/* Grids & Cards */
.section-header { text-align: center; margin-bottom: 64px; max-width: 700px; margin-left: auto; margin-right: auto; }
.section-header h2 { font-size: 3rem; font-weight: 900; margin-bottom: 20px; letter-spacing: -1px; }
.feature-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); gap: 32px; }

.feature-card { 
    padding: 40px 32px; border-radius: 24px; background: var(--bg-surface); 
    border: 1px solid var(--slate-200); transition: all 0.3s ease; 
    text-align: center;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.2);
}
.feature-card:hover { transform: translateY(-8px); box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.4); border-color: var(--slate-300); }

.feature-icon { 
    width: 56px; height: 56px; border-radius: 16px; display: flex; 
    align-items: center; justify-content: center; font-size: 1.5rem; 
    margin: 0 auto 24px auto;
}

.feature-card h3 { font-size: 1.25rem; margin-bottom: 12px; font-weight: 800; color: var(--slate-900); }
.feature-card p { color: var(--slate-500); font-size: 0.95rem; line-height: 1.6; }

/* About Fiscus Section */
.about-box { 
    background: var(--bg-surface); 
    border: 1px solid var(--slate-200); 
    border-radius: 32px; 
    padding: 40px; 
    box-shadow: 0 10px 30px -10px rgba(0,0,0,0.5); 
    display: grid; 
    grid-template-columns: 1fr 1fr; 
    gap: 40px; 
    align-items: center; 
}
.about-text { text-align: left; }

/* Split Sections */
.split-section { display: grid; grid-template-columns: 1fr 1fr; gap: 80px; align-items: center; margin-bottom: 140px; }
.split-section:nth-child(even) { direction: rtl; }
.split-section:nth-child(even) > * { direction: ltr; }
.split-content h3 { font-size: 2.5rem; margin-bottom: 20px; letter-spacing: -1px; line-height: 1.15; font-weight: 900; }
.check-list { list-style: none; margin-top: 24px; }
.check-list li { display: flex; align-items: flex-start; gap: 16px; margin-bottom: 20px; font-size: 1.05rem; color: var(--slate-900); font-weight: 700; }
.check-list li span { color: var(--slate-500); display: block; font-size: 0.95rem; font-weight: 400; margin-top: 4px; line-height: 1.5; }
.check-icon { color: var(--accent); font-size: 1.1rem; background: var(--bg-surface); border-radius: 50%; width: 32px; height: 32px; display: flex; align-items: center; justify-content: center; flex-shrink: 0; border: 1px solid var(--slate-200); }

.visual-box { background: var(--bg-surface); border-radius: 32px; padding: 48px; border: 1px solid var(--slate-200); position: relative; }

/* Banner */
.ledger-banner { 
    background: linear-gradient(135deg, var(--bg-surface-alt) 0%, #020617 100%); 
    color: var(--slate-900); border-radius: 32px; padding: 80px 40px; text-align: center; 
    margin: 80px auto; box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.5); 
    position: relative; overflow: hidden; border: 1px solid var(--slate-200);
}
.ledger-banner::before {
    content: ''; position: absolute; top: -50%; left: -50%; width: 200%; height: 200%;
    background: radial-gradient(circle, rgba(255,255,255,0.02) 0%, transparent 60%);
}
.ledger-banner h2 { font-size: 3rem; margin-bottom: 24px; font-weight: 900; letter-spacing: -1px; position: relative; z-index: 1;}
.ledger-banner p { font-size: 1.15rem; color: var(--slate-400); max-width: 600px; margin: 0 auto 32px; position: relative; z-index: 1;}

/* FAQ */
.faq-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; }
.faq-item { background: var(--bg-surface); padding: 32px; border-radius: 20px; border: 1px solid var(--slate-200); box-shadow: 0 4px 6px -1px rgba(0,0,0,0.2); }
.faq-item h4 { font-size: 1.15rem; margin-bottom: 12px; color: var(--slate-900); font-weight: 800; }
.faq-item p { color: var(--slate-500); font-size: 1rem; }

footer { background: var(--bg-surface); padding: 80px 0 40px; border-top: 1px solid var(--slate-200); text-align: center; }
.footer-logo { font-size: 1.5rem; font-weight: 900; color: var(--slate-900); display: inline-block; margin-bottom: 16px; text-decoration: none; }

/* Auth Modal Enhancements */
.modal-overlay { 
    display: none; position: fixed; top: 0; left: 0; width: 100%; height: 100%; 
    background: rgba(2, 6, 23, 0.8); backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px);
    z-index: 2000; justify-content: center; align-items: center; 
    opacity: 0; transition: opacity 0.3s ease; padding: 20px; 
}
.modal-overlay.active { display: flex; opacity: 1; }
.auth-card { 
    background: var(--bg-surface); padding: 48px; border-radius: 24px; 
    box-shadow: 0 25px 50px -12px rgba(0,0,0,0.8); width: 100%; max-width: 440px; 
    position: relative; transform: translateY(20px) scale(0.95); 
    transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1); 
    max-height: 90vh; overflow-y: auto; border: 1px solid var(--slate-200); 
}
.modal-overlay.active .auth-card { transform: translateY(0) scale(1); }
.modal-close { 
    position: absolute; top: 24px; right: 24px; background: var(--bg-surface-alt); 
    border: none; width: 32px; height: 32px; border-radius: 50%;
    display: flex; align-items: center; justify-content: center;
    font-size: 1.2rem; color: var(--slate-500); cursor: pointer; transition: 0.2s; 
}
.modal-close:hover { background: var(--slate-200); color: var(--slate-900); }
.auth-card h2 { font-size: 1.8rem; color: var(--slate-900); margin-bottom: 8px; font-weight: 900; letter-spacing: -0.5px; }
.auth-card p { color: var(--slate-500); margin-bottom: 32px; font-size: 0.95rem; }
.auth-card label { display: block; font-weight: 700; font-size: 0.85rem; margin-bottom: 8px; color: var(--slate-400); text-align: left; }
.auth-card input { 
    width: 100%; padding: 14px 16px; border: 1px solid var(--slate-200); 
    background: var(--bg-body); color: var(--slate-900); border-radius: 12px; 
    margin-bottom: 24px; outline: none; transition: all 0.2s; font-size: 1rem; 
    font-family: 'Inter', sans-serif; 
}
.auth-card input:focus { border-color: var(--info); box-shadow: 0 0 0 4px rgba(59, 130, 246, 0.15); background: var(--bg-surface-alt); }
.auth-card button[type="submit"] { 
    width: 100%; padding: 14px; background: var(--info); color: #ffffff; 
    border: none; border-radius: 12px; font-weight: 700; font-size: 1rem; 
    cursor: pointer; transition: all 0.2s; box-shadow: 0 4px 14px rgba(59, 130, 246, 0.3);
}
.auth-card button[type="submit"]:hover { background: #2563eb; transform: translateY(-1px); box-shadow: 0 6px 20px rgba(59, 130, 246, 0.4); }
.auth-toggle { color: var(--info); font-size: 0.9rem; font-weight: 700; cursor: pointer; transition: 0.2s; }
.auth-toggle:hover { color: #2563eb; }
.auth-divider { height: 1px; background: var(--slate-200); margin: 32px 0; }

.error-msg { background: rgba(239, 68, 68, 0.1); color: #fca5a5; padding: 16px; border-radius: 12px; margin-bottom: 24px; font-size: 0.9rem; border: 1px solid rgba(239, 68, 68, 0.3); font-weight: 500; }
.info-callout { background: rgba(59, 130, 246, 0.1); border: 1px solid rgba(59, 130, 246, 0.3); color: #93c5fd; padding: 16px; border-radius: 12px; font-size: 0.9rem; margin-bottom: 24px; display: flex; gap: 12px; align-items: flex-start; }

/* Utilities */
.reveal { opacity: 0; transform: translateY(30px); transition: all 0.8s ease-out; }
.reveal.active { opacity: 1; transform: translateY(0); }
.text-center { text-align: center; }

@media (max-width: 992px) {
    .hero-grid { grid-template-columns: 1fr; text-align: center; gap: 48px; }
    .hero-text h1 { font-size: 3.2rem; }
    .hero-text p { margin: 0 auto 32px; }
    .hero-buttons { justify-content: center; }
    .split-section { grid-template-columns: 1fr; gap: 48px; margin-bottom: 100px; }
    .split-section:nth-child(even) { direction: ltr; }
    .ledger-banner { padding: 60px 30px; }
    .faq-grid { grid-template-columns: 1fr; }
    .nav-links a[href^="#"] { display: none; } 
    
    /* Add these two lines for the Fiscus box */
    .about-box { grid-template-columns: 1fr; padding: 32px 24px; gap: 32px; }
    .about-text { text-align: center !important; }
}

@media (max-width: 600px) {
    .hero-text h1 { font-size: 2.5rem; }
    .section-header h2 { font-size: 2.2rem; }
    .split-content h3 { font-size: 2rem; }
    .visual-box { padding: 24px; }
    .auth-card { padding: 32px 24px; }
}