@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;600;700&display=swap');

:root {
    --bg-dark: #050f09;
    --bg-light: #0a1910;
    --primary-gradient: linear-gradient(135deg, #0d381e 0%, #17b35d 100%);
    --text-main: #e8f5ed;
    --text-muted: #8ab39b;
    --glass-bg: rgba(13, 56, 30, 0.25);
    --glass-border: rgba(23, 179, 93, 0.2);
}

* { margin: 0; padding: 0; box-sizing: border-box; font-family: 'Inter', sans-serif; }
body {
    background-color: var(--bg-dark); color: var(--text-main);
    min-height: 100vh; overflow-x: hidden; position: relative;
    background-image: radial-gradient(circle at top right, rgba(23, 179, 93, 0.15), transparent 40%),
                      radial-gradient(circle at bottom left, rgba(13, 56, 30, 0.3), transparent 40%);
}

/* LOADER CSS - PERFECTED ORBITAL RINGS */
#page-loader {
    position: fixed; top: 0; left: 0; width: 100vw; height: 100vh;
    background-color: rgba(5, 15, 9, 0.8); backdrop-filter: blur(15px); -webkit-backdrop-filter: blur(15px);
    display: flex; justify-content: center; align-items: center; z-index: 9999;
    transition: opacity 0.6s ease, visibility 0.6s ease;
}
#page-loader.hidden { opacity: 0; visibility: hidden; pointer-events: none; }
.loader-content { display: flex; flex-direction: column; align-items: center; }
.loader-rings { position: relative; width: 120px; height: 120px; margin-bottom: 30px; }
.center-dot { position: absolute; top: 50%; left: 50%; transform: translate(-50%, -50%); width: 14px; height: 14px; background-color: #17b35d; border-radius: 50%; box-shadow: 0 0 20px #17b35d; }
.ring { position: absolute; border-radius: 50%; border: 1px solid rgba(23, 179, 93, 0.4); top: 50%; left: 50%; transform: translate(-50%, -50%); }
.outer-ring { width: 120px; height: 120px; animation: spinOrbit 4s linear infinite; }
.inner-ring { width: 80px; height: 80px; animation: spinOrbitReverse 2.5s linear infinite; }
.ring .dot { position: absolute; width: 10px; height: 10px; background-color: #17b35d; border-radius: 50%; top: -5px; left: 50%; margin-left: -5px; box-shadow: 0 0 10px #17b35d; }
.loader-title { font-family: 'Playfair Display', serif; font-size: 2.5rem; color: #17b35d; margin-bottom: 10px; font-weight: 700; letter-spacing: 2px; text-shadow: 0 0 20px rgba(23, 179, 93, 0.4); }
.loader-subtitle { font-size: 0.8rem; color: var(--text-muted); letter-spacing: 3px; text-transform: uppercase; font-weight: 600; }
@keyframes spinOrbit { 0% { transform: translate(-50%, -50%) rotate(0deg); } 100% { transform: translate(-50%, -50%) rotate(360deg); } }
@keyframes spinOrbitReverse { 0% { transform: translate(-50%, -50%) rotate(360deg); } 100% { transform: translate(-50%, -50%) rotate(0deg); } }

/* NAVBAR CSS - EXACTLY LIKE Z TRUST BANK */
.navbar { position: fixed; top: 0; width: 100%; background: var(--bg-dark); border-bottom: 1px solid var(--glass-border); z-index: 1000; height: 80px; display: flex; align-items: center; box-shadow: 0 4px 30px rgba(0, 0, 0, 0.3); }
.nav-container { max-width: 1400px; width: 100%; margin: 0 auto; display: flex; justify-content: space-between; align-items: center; padding: 0 30px; }
.nav-left { flex: 1; display: flex; align-items: center; }
.nav-logo { color: #fff; font-size: 1.8rem; font-weight: 700; text-decoration: none; display: flex; align-items: center; gap: 10px; letter-spacing: 1px; }
.nav-center { flex: 2; display: flex; justify-content: center; gap: 40px; }
.nav-center a { color: var(--text-muted); text-decoration: none; font-weight: 600; font-size: 1.05rem; transition: color 0.3s; }
.nav-center a:hover { color: #17b35d; }
.nav-right { flex: 1; display: flex; justify-content: flex-end; align-items: center; gap: 20px; }
.nav-login { color: #17b35d; text-decoration: none; font-weight: 600; font-size: 1.05rem; transition: color 0.3s; }
.nav-login:hover { color: #fff; }
.dark-mode-toggle { color: var(--text-muted); font-size: 1.2rem; text-decoration: none; display: flex; align-items: center; justify-content: center; width: 45px; height: 45px; border-radius: 50%; background: var(--glass-bg); transition: all 0.3s; border: 1px solid var(--glass-border); }
.dark-mode-toggle:hover { color: #fff; background: rgba(23, 179, 93, 0.2); border-color: #17b35d; }

/* Mobile Menu Styles */
.hamburger-menu { display: none; font-size: 1.8rem; color: var(--text-main); cursor: pointer; margin-left: 15px; }
.mobile-nav-overlay { position: fixed; top: 0; left: 0; width: 100vw; height: 100vh; background: rgba(5,15,9,0.95); backdrop-filter: blur(15px); -webkit-backdrop-filter: blur(15px); z-index: 10000; display: flex; flex-direction: column; justify-content: center; align-items: center; opacity: 0; visibility: hidden; transition: all 0.4s ease; transform: translateY(-20px); }
.mobile-nav-overlay.active { opacity: 1; visibility: visible; transform: translateY(0); }
.mobile-nav-close { position: absolute; top: 30px; right: 30px; font-size: 2.5rem; color: #fff; cursor: pointer; transition: color 0.3s; }
.mobile-nav-close:hover { color: #17b35d; }
.mobile-nav-links { display: flex; flex-direction: column; align-items: center; gap: 20px; width: 100%; max-width: 300px; }
.mobile-nav-links a { color: #fff; text-decoration: none; font-size: 1.5rem; font-weight: 600; transition: color 0.3s; }
.mobile-nav-links a:hover { color: #17b35d; }
.mobile-nav-btn { background: var(--primary-gradient); padding: 15px 30px; border-radius: 50px; margin-top: 10px; font-size: 1.2rem !important; }

/* GLOBALS AND COMPONENTS */
section { padding: 100px 20px; }
.hero { min-height: 100vh; display: flex; align-items: center; padding-top: 120px; text-align: center; }
.hero-content { max-width: 800px; margin: 0 auto; width: 100%; }
.hero h1 { font-size: 4rem; line-height: 1.1; margin-bottom: 20px; background: linear-gradient(135deg, #0e6b36 0%, #17b35d 100%); -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent; font-weight: 800; letter-spacing: -1px; text-shadow: none; }
.hero-image { margin-top: 50px; border-radius: 20px; box-shadow: 0 20px 50px rgba(23, 179, 93, 0.2); border: 1px solid var(--glass-border); max-width: 100%; height: auto; }

.stats-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 30px; margin-top: 50px; }
.stat-card { text-align: center; padding: 40px; }
.stat-number { font-size: 3rem; font-weight: 700; color: #17b35d; margin-bottom: 10px; }

.features-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 30px; margin-top: 50px; }
.feature-card { padding: 40px; text-align: left; }
.feature-icon { font-size: 2.5rem; color: #17b35d; margin-bottom: 20px; }

.ticker-wrap { width: 100%; overflow: hidden; background: rgba(13, 56, 30, 0.5); padding: 15px 0; border-top: 1px solid var(--glass-border); border-bottom: 1px solid var(--glass-border); }
.ticker-move { display: flex; animation: ticker 15s linear infinite; white-space: nowrap; }
.ticker-item { padding: 0 40px; color: #fff; font-weight: 600; }
.ticker-item span { color: #17b35d; }
@keyframes ticker { 0% { transform: translateX(10%); } 100% { transform: translateX(-100%); } }

footer { background: #020804; padding: 50px 20px; text-align: center; border-top: 1px solid var(--glass-border); margin-top: 50px;}
footer a { color: #17b35d; text-decoration: none; margin: 0 10px; }

.glass-panel { background: var(--glass-bg); backdrop-filter: blur(16px); -webkit-backdrop-filter: blur(16px); border: 1px solid var(--glass-border); border-radius: 20px; padding: 40px; box-shadow: 0 25px 45px rgba(0,0,0,0.5); transition: transform 0.3s ease, box-shadow 0.3s ease; }
.glass-panel:hover { transform: translateY(-5px); box-shadow: 0 30px 60px rgba(23, 179, 93, 0.15); }

h2 { font-size: 2rem; margin-bottom: 20px; color: var(--text-main); }
p { color: var(--text-muted); line-height: 1.6; margin-bottom: 30px; }

.btn-primary { display: inline-flex; align-items: center; justify-content: center; padding: 12px 30px; border-radius: 50px; background: var(--primary-gradient); color: #fff; text-decoration: none; font-weight: 600; border: none; cursor: pointer; transition: all 0.3s ease; box-shadow: 0 10px 20px rgba(23, 179, 93, 0.3); }
.btn-primary:hover { transform: scale(1.05); box-shadow: 0 15px 30px rgba(23, 179, 93, 0.5); }
.btn-secondary { display: inline-flex; align-items: center; justify-content: center; padding: 12px 30px; border-radius: 50px; background: transparent; color: var(--text-main); text-decoration: none; font-weight: 600; border: 1px solid #17b35d; cursor: pointer; transition: all 0.3s ease; }
.btn-secondary:hover { background: rgba(23, 179, 93, 0.1); }

.form-group { margin-bottom: 25px; text-align: left; }
.form-group label { display: block; margin-bottom: 10px; color: var(--text-muted); font-size: 0.9rem; text-transform: uppercase; letter-spacing: 1px; }
.form-control { width: 100%; padding: 15px 20px; background: rgba(0,0,0,0.3); border: 1px solid var(--glass-border); border-radius: 12px; color: var(--text-main); font-size: 1rem; transition: all 0.3s ease; }
.form-control:focus { outline: none; border-color: #17b35d; box-shadow: 0 0 15px rgba(23, 179, 93, 0.2); }

.container { max-width: 1200px; margin: 0 auto; padding: 0 20px; }
.auth-wrapper { display: flex; justify-content: center; align-items: center; min-height: 100vh; padding-top: 80px; }
.auth-box { width: 100%; max-width: 450px; text-align: center; }
.auth-links { margin-top: 20px; display: flex; justify-content: space-between; font-size: 0.9rem; }
.auth-links a { color: #17b35d; text-decoration: none; transition: color 0.3s; }
.auth-links a:hover { color: #fff; }

.fade-in-up { opacity: 0; transform: translateY(30px); animation: fadeInUp 0.8s ease forwards; }
.delay-1 { animation-delay: 0.2s; }
.delay-2 { animation-delay: 0.4s; }
.delay-3 { animation-delay: 0.6s; }
@keyframes fadeInUp { to { opacity: 1; transform: translateY(0); } }

/* Responsiveness Fixes */
@media (max-width: 992px) {
    .nav-center { display: none; } /* Hide links on tablet/mobile */
    .nav-login, .nav-right .btn-primary { display: none; }
    .hamburger-menu { display: block; }
    .stats-grid { grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); }
    .features-grid { grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); }
    .hero h1 { font-size: 2.8rem; }
}
@media (max-width: 768px) {
    .nav-auth { display: none; }
    .nav-right { justify-content: flex-end; }
    .hero h1 { font-size: 2.2rem; }
    .stats-grid { grid-template-columns: 1fr; gap: 15px; }
    .features-grid { grid-template-columns: 1fr; gap: 15px; }
    .stat-card { padding: 20px; }
    .feature-card { padding: 20px; }
    .hero { padding-top: 80px; }
}

/* Light Mode Theme */
body.light-mode {
    --bg-dark: #f8fbf9;
    --bg-light: #ffffff;
    --text-main: #0a1910;
    --text-muted: #4a6b57;
    --glass-bg: rgba(255, 255, 255, 0.9);
    --glass-border: rgba(23, 179, 93, 0.3);
    background-image: radial-gradient(circle at top right, rgba(23, 179, 93, 0.1), transparent 40%),
                      radial-gradient(circle at bottom left, rgba(13, 56, 30, 0.1), transparent 40%);
}
body.light-mode .navbar { background: var(--bg-light); border-bottom: 1px solid var(--glass-border); }
body.light-mode .nav-logo { color: var(--text-main); }
body.light-mode footer { background: var(--bg-light); border-top: 1px solid var(--glass-border); }
body.light-mode footer h3 { color: var(--text-main) !important; }
body.light-mode .form-control { background: #ffffff; color: var(--text-main); border: 1px solid var(--glass-border); }
body.light-mode .nav-login { color: #17b35d; }
body.light-mode .nav-login:hover { color: #0a1910; }
body.light-mode .dark-mode-toggle { color: #0a1910; border-color: #0a1910; }
body.light-mode .dark-mode-toggle:hover { color: #fff; background: #0a1910; border-color: #0a1910; }
body.light-mode .ticker-wrap { background: rgba(23, 179, 93, 0.1); color: #0a1910; }
body.light-mode .ticker-item { color: #0a1910; }
body.light-mode .glass-panel { background: #ffffff; box-shadow: 0 10px 30px rgba(0,0,0,0.05); }
body.light-mode #templates-showcase, body.light-mode #multi-showcase { background: rgba(23, 179, 93, 0.03) !important; }
body.light-mode #crypto-showcase { background: transparent !important; }

body.light-mode .mobile-nav-overlay { background: rgba(255,255,255,0.95); }
body.light-mode .mobile-nav-close { color: #0a1910; }
body.light-mode .mobile-nav-links a { color: #0a1910; }
body.light-mode .hamburger-menu { color: #0a1910; }

/* Feature Modal Styles */
.feature-modal { position: fixed; top: 0; left: 0; width: 100vw; height: 100vh; background: rgba(5, 15, 9, 0.85); backdrop-filter: blur(10px); display: flex; justify-content: center; align-items: center; z-index: 99999; opacity: 0; visibility: hidden; transition: all 0.3s ease; }
.feature-modal:not(.hidden) { opacity: 1; visibility: visible; }
.feature-modal-content { width: 90%; max-width: 600px; padding: 50px; position: relative; transform: scale(0.8); transition: transform 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275); text-align: center; }
.feature-modal:not(.hidden) .feature-modal-content { transform: scale(1); }
.close-modal { position: absolute; top: 15px; right: 25px; font-size: 2.5rem; color: var(--text-muted); cursor: pointer; transition: color 0.3s; line-height: 1; }
.close-modal:hover { color: #17b35d; }
.feature-card { cursor: pointer; transition: all 0.3s ease; }
.feature-card:hover { transform: translateY(-10px) scale(1.02); border-color: #17b35d; box-shadow: 0 15px 40px rgba(23,179,93,0.15); }
body.light-mode .feature-modal { background: rgba(255, 255, 255, 0.85); }
body.light-mode .close-modal:hover { color: #0a1910; }
body.light-mode .feature-modal-content p { color: #0a1910 !important; }

/* iPhone Mockup Styles */
.iphone-mockup { width: 300px; height: auto; border: 14px solid #111; border-radius: 45px; position: relative; box-shadow: 0 30px 60px rgba(23, 179, 93, 0.15), inset 0 0 0 2px #333; background: #050f09; transition: transform 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275); }
.iphone-mockup:hover { transform: translateY(-15px) rotate(-2deg); }
.iphone-notch { position: absolute; top: -2px; left: 50%; transform: translateX(-50%); width: 140px; height: 28px; background: #111; border-bottom-left-radius: 20px; border-bottom-right-radius: 20px; z-index: 10; }
.iphone-display { width: 100%; height: auto; display: block; object-fit: contain; object-position: top center; border-radius: 30px; }

/* Light mode overrides for mockup */
body.light-mode .iphone-mockup { border-color: #f0f2f5; background: #ffffff; box-shadow: 0 30px 60px rgba(0,0,0,0.1), inset 0 0 0 2px #e0e0e0; }
body.light-mode .iphone-notch { background: #f0f2f5; }
