:root {
  --primary: #c8f060;
  --primary-dark: #a8d040;
  --secondary: #6bc8ff;
  --accent-red: #ff6b6b;
  --income-clr: #06ce2e;
  --expense-clr: #fa1010;
  --bg: #0a0a0f;
  --bg2: #111118;
  --bg3: #1a1a24;
  --border: rgba(255,255,255,0.08);
  --text: #f0eee8;
  --muted: #6b6a7a;
  --radius: 16px;
  --radius-sm: 10px;
}

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

body {
  font-family: 'DM Sans', sans-serif;
  background: var(--bg);
  color: var(--text);
  min-height: 100vh;
  overflow-x: hidden;
}

/* ── NAV ── */
nav {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0 8%;
  height: 68px;
  background: rgba(10,10,15,0.85);
  border-bottom: 1px solid var(--border);
  position: sticky;
  top: 0;
  z-index: 100;
  backdrop-filter: blur(16px);
}

.logo {
  font-family: 'Syne', sans-serif;
  font-weight: 800;
  font-size: 22px;
  letter-spacing: -0.5px;
  color: var(--text);
}

.logo span { color: var(--primary); }

.nav-right {
  display: flex;
  align-items: center;
  gap: 20px;
}

.nav-link {
  text-decoration: none;
  color: var(--muted);
  font-weight: 500;
  font-size: 14px;
  position: relative;
  padding: 5px 0;
  transition: color 0.3s;
  font-family: 'DM Mono', monospace;
  letter-spacing: 0.04em;
}

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

.nav-link:hover { color: var(--primary); }
.nav-link:hover::after { width: 100%; }

.login-btn {
  background: var(--primary);
  color: #0a1200;
  padding: 9px 22px;
  border-radius: 99px;
  border: none;
  font-family: 'Syne', sans-serif;
  font-weight: 700;
  font-size: 13px;
  cursor: pointer;
  transition: transform 0.2s, box-shadow 0.2s;
  letter-spacing: 0.02em;
}

.login-btn:hover {
  transform: translateY(-1px);
  box-shadow: 0 6px 20px rgba(200,240,96,0.3);
}

/* ── HERO ── */
.hero {
  text-align: center;
  padding: 100px 5% 80px;
  min-height: 85vh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  position: relative;
  overflow: hidden;
}

.hero::before {
  content: '';
  position: absolute;
  top: -200px; right: -200px;
  width: 600px; height: 600px;
  background: radial-gradient(circle, rgba(200,240,96,0.08) 0%, transparent 70%);
  pointer-events: none;
}

.hero::after {
  content: '';
  position: absolute;
  bottom: -100px; left: -150px;
  width: 500px; height: 500px;
  background: radial-gradient(circle, rgba(107,200,255,0.06) 0%, transparent 70%);
  pointer-events: none;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(200,240,96,0.1);
  border: 1px solid rgba(200,240,96,0.2);
  color: var(--primary);
  padding: 6px 16px;
  border-radius: 99px;
  font-family: 'DM Mono', monospace;
  font-size: 12px;
  letter-spacing: 0.06em;
  margin-bottom: 28px;
  animation: fadeUp 0.6s ease both;
}

.hero h1 {
  font-family: 'Syne', sans-serif;
  font-weight: 800;
  font-size: clamp(40px, 7vw, 72px);
  line-height: 1.08;
  margin-bottom: 20px;
  letter-spacing: -2px;
  animation: fadeUp 0.6s ease 0.1s both;
}

.gradient-text {
  background: linear-gradient(135deg, var(--primary), var(--secondary));
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

.hero p {
  font-size: 18px;
  color: var(--muted);
  max-width: 560px;
  margin-bottom: 36px;
  line-height: 1.7;
  animation: fadeUp 0.6s ease 0.2s both;
}

.cta-btn {
  background: var(--primary);
  color: #0a1200;
  padding: 16px 36px;
  border-radius: 99px;
  font-size: 16px;
  font-family: 'Syne', sans-serif;
  font-weight: 700;
  text-decoration: none;
  box-shadow: 0 10px 30px rgba(200,240,96,0.25);
  transition: transform 0.2s, box-shadow 0.2s;
  border: none;
  cursor: pointer;
  letter-spacing: 0.02em;
  animation: fadeUp 0.6s ease 0.3s both;
}

.cta-btn:hover {
  transform: translateY(-3px);
  box-shadow: 0 16px 40px rgba(200,240,96,0.35);
}

/* Hero Stats */
.hero-stats {
  display: flex;
  align-items: center;
  gap: 32px;
  margin-top: 56px;
  animation: fadeUp 0.6s ease 0.45s both;
}

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

.stat-num {
  font-family: 'Syne', sans-serif;
  font-weight: 800;
  font-size: 26px;
  color: var(--primary);
  letter-spacing: -1px;
}

.stat-label {
  font-family: 'DM Mono', monospace;
  font-size: 11px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--muted);
}

.stat-divider {
  width: 1px;
  height: 40px;
  background: var(--border);
}

/* ── FEATURES ── */
.features {
  padding: 60px 8% 100px;
}

.features-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  max-width: 960px;
  margin: 0 auto;
}

.feature-card {
  background: var(--bg3);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 28px;
  transition: transform 0.2s, border-color 0.2s;
}

.feature-card:hover {
  transform: translateY(-4px);
  border-color: rgba(200,240,96,0.25);
}

.feature-icon {
  font-size: 28px;
  margin-bottom: 14px;
}

.feature-card h3 {
  font-family: 'Syne', sans-serif;
  font-weight: 700;
  font-size: 17px;
  margin-bottom: 8px;
}

.feature-card p {
  font-size: 14px;
  color: var(--muted);
  line-height: 1.6;
}

/* ── HELP BTN ── */
.help-btn {
  position: fixed;
  bottom: 28px; right: 28px;
  width: 56px; height: 56px;
  background: var(--bg3);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 8px 24px rgba(0,0,0,0.4);
  color: var(--muted);
  text-decoration: none;
  border: 1px solid var(--border);
  transition: 0.25s;
  z-index: 50;
}

.help-btn:hover { transform: scale(1.1); color: var(--primary); border-color: rgba(200,240,96,0.3); }

.dot {
  position: absolute;
  top: 13px; right: 13px;
  width: 10px; height: 10px;
  background: var(--income-clr);
  border-radius: 50%;
  border: 2px solid var(--bg3);
  animation: pulse 2s infinite;
}

@keyframes pulse {
  0%, 100% { box-shadow: 0 0 0 0 rgba(6,206,46,0.5); }
  50% { box-shadow: 0 0 0 6px rgba(6,206,46,0); }
}

/* ── MODAL ── */
.modal {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.75);
  display: none;
  justify-content: center;
  align-items: center;
  backdrop-filter: blur(6px);
  z-index: 1000;
  padding: 24px;
}

.modal.open { display: flex; }

.modal-content {
  background: var(--bg3);
  border: 1px solid var(--border);
  padding: 40px;
  border-radius: var(--radius);
  width: 100%;
  max-width: 400px;
  text-align: center;
  box-shadow: 0 32px 80px rgba(0,0,0,0.6);
  animation: slideUp 0.25s ease;
}

.modal-logo {
  font-family: 'Syne', sans-serif;
  font-weight: 800;
  font-size: 18px;
  color: var(--primary);
  margin-bottom: 20px;
}

.modal-content h2 {
  font-family: 'Syne', sans-serif;
  font-weight: 700;
  font-size: 24px;
  margin-bottom: 6px;
}

.modal-sub {
  color: var(--muted);
  font-size: 14px;
  margin-bottom: 24px;
}

.modal-content input {
  width: 100%;
  padding: 13px 16px;
  margin: 6px 0;
  background: var(--bg2);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  font-family: 'DM Sans', sans-serif;
  font-size: 15px;
  color: var(--text);
  outline: none;
  transition: border-color 0.2s;
}

.modal-content input:focus {
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(200,240,96,0.12);
}

.modal-content input::placeholder { color: var(--muted); }

.cancel-link {
  margin-top: 16px;
  cursor: pointer;
  color: var(--muted);
  font-size: 14px;
  transition: color 0.2s;
}

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

/* ── ANIMATIONS ── */
@keyframes fadeUp {
  from { opacity: 0; transform: translateY(24px); }
  to { opacity: 1; transform: translateY(0); }
}

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

/* ── RESPONSIVE ── */
@media (max-width: 760px) {
  .features-grid { grid-template-columns: 1fr; }
  nav { padding: 0 5%; }
  .hero { padding: 70px 5% 60px; }
  .hero-stats { gap: 20px; }
  .stat-num { font-size: 20px; }
}

/* ── FOOTER STYLING ── */
.main-footer {
  background: var(--bg2);
  border-top: 1px solid var(--border);
  padding: 80px 8% 40px;
  margin-top: 80px;
  position: relative;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr 1fr;
  gap: 40px;
  margin-bottom: 60px;
}

.footer-brand p {
  color: var(--muted);
  font-size: 14px;
  line-height: 1.6;
  margin-top: 16px;
  max-width: 280px;
}

.social-links {
  display: flex;
  gap: 12px;
  margin-top: 24px;
}

.social-links a {
  width: 40px;
  height: 40px;
  background: var(--bg3);
  border: 1px solid var(--border);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
  color: var(--text);
  font-size: 14px;
  transition: all 0.3s ease;
}

.social-links a:hover {
  border-color: var(--primary);
  color: var(--primary);
  transform: translateY(-3px);
  box-shadow: 0 5px 15px rgba(200, 240, 96, 0.2);
}

.footer-links h4 {
  font-family: 'Syne', sans-serif;
  font-size: 13px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  margin-bottom: 24px;
  color: var(--text);
}

.footer-links a {
  display: block;
  text-decoration: none;
  color: var(--muted);
  font-size: 14px;
  margin-bottom: 14px;
  transition: color 0.2s;
}

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

.footer-bottom {
  border-top: 1px solid var(--border);
  padding-top: 32px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  color: var(--muted);
  font-size: 13px;
  font-family: 'DM Mono', monospace;
}

.status-indicator {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 6px 14px;
  background: rgba(6, 206, 46, 0.05);
  border-radius: 99px;
  color: var(--income-clr);
  border: 1px solid rgba(6, 206, 46, 0.1);
  font-size: 11px;
  letter-spacing: 0.02em;
}

.status-dot {
  width: 6px;
  height: 6px;
  background: var(--income-clr);
  border-radius: 50%;
  box-shadow: 0 0 10px var(--income-clr);
  animation: footerPulse 2s infinite;
}

@keyframes footerPulse {
  0% { opacity: 1; }
  50% { opacity: 0.4; }
  100% { opacity: 1; }
}

/* --- MODERN MOBILE UPDATE FOR INDEX.CSS --- */
@media (max-width: 768px) {
    nav {
        padding: 0 20px;
        height: 64px;
    }

    .nav-link { display: none; } /* Keeps it clean on small screens */

    .hero {
        padding: 60px 20px 40px;
        min-height: auto;
    }

    .hero-badge {
        font-size: 10px;
        padding: 4px 12px;
    }

    .hero h1 {
        font-size: 40px; /* Fluid scaling */
        letter-spacing: -1.5px;
        line-height: 1.1;
    }

    .hero p {
        font-size: 16px;
        line-height: 1.5;
        margin-bottom: 30px;
    }

    .cta-btn {
        width: 100%; /* Full width buttons are better for thumbs */
        padding: 18px;
        font-size: 16px;
        text-align: center;
    }

    .hero-stats {
        flex-direction: row; /* Keep them side-by-side but smaller */
        justify-content: center;
        gap: 12px;
        width: 100%;
    }

    .stat-num { font-size: 18px; }
    .stat-label { font-size: 9px; }

    .features-grid {
        grid-template-columns: 1fr;
        gap: 16px;
    }

    .footer-grid {
        grid-template-columns: 1fr; /* Stack everything */
        gap: 40px;
        text-align: center;
    }

    .footer-brand {
        display: flex;
        flex-direction: column;
        align-items: center;
    }
}