/* ==========================================================================
   Paisa Tracker - Modern Fintech Design System & Stylesheet
   ========================================================================== */

@import url('https://fonts.googleapis.com/css2?family=Outfit:wght@300;400;500;600;700;800&family=Plus+Jakarta+Sans:wght@400;500;600;700&display=swap');

:root {
  /* Color Tokens */
  --bg-dark: #090D16;
  --bg-card: rgba(16, 24, 38, 0.65);
  --bg-card-hover: rgba(22, 33, 52, 0.85);
  --border-card: rgba(255, 255, 255, 0.08);
  --border-card-hover: rgba(6, 182, 212, 0.3);
  
  --primary-teal: #0D9373;
  --primary-cyan: #06B6D4;
  --accent-glow: rgba(13, 147, 115, 0.25);
  --accent-glow-cyan: rgba(6, 182, 212, 0.25);
  
  --text-main: #F9FAFB;
  --text-secondary: #9CA3AF;
  --text-dim: #6B7280;
  
  --gradient-main: linear-gradient(135deg, #0D9373 0%, #06B6D4 100%);
  --gradient-text: linear-gradient(135deg, #2DD4BF 0%, #38BDF8 100%);
  --gradient-card: linear-gradient(180deg, rgba(255,255,255,0.04) 0%, rgba(255,255,255,0.01) 100%);
  
  --font-heading: 'Outfit', -apple-system, BlinkMacSystemFont, sans-serif;
  --font-body: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, sans-serif;
  
  --radius-sm: 8px;
  --radius-md: 16px;
  --radius-lg: 24px;
  --radius-xl: 32px;

  --shadow-sm: 0 4px 20px rgba(0, 0, 0, 0.25);
  --shadow-glow: 0 12px 40px rgba(13, 147, 115, 0.3);

  --transition-fast: 0.2s cubic-bezier(0.4, 0, 0.2, 1);
  --transition-normal: 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Light theme overrides */
[data-theme="light"] {
  --bg-dark: #F4F8FA;
  --bg-card: rgba(255, 255, 255, 0.85);
  --bg-card-hover: rgba(255, 255, 255, 0.98);
  --border-card: rgba(13, 147, 115, 0.12);
  --border-card-hover: rgba(6, 182, 212, 0.4);
  --text-main: #0F172A;
  --text-secondary: #475569;
  --text-dim: #64748B;
  --gradient-card: linear-gradient(180deg, rgba(255,255,255,1) 0%, rgba(240,253,250,0.5) 100%);
}

/* Reset & Global Base */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

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

body {
  background-color: var(--bg-dark);
  color: var(--text-main);
  font-family: var(--font-body);
  line-height: 1.6;
  overflow-x: hidden;
  transition: background-color var(--transition-normal), color var(--transition-normal);
  position: relative;
}

/* Atmospheric Ambient Glow Backgrounds */
.ambient-glow {
  position: absolute;
  border-radius: 50%;
  filter: blur(120px);
  pointer-events: none;
  z-index: 0;
}

.glow-1 {
  width: 550px;
  height: 550px;
  background: var(--accent-glow);
  top: -100px;
  left: -150px;
}

.glow-2 {
  width: 600px;
  height: 600px;
  background: var(--accent-glow-cyan);
  top: 600px;
  right: -200px;
}

.glow-3 {
  width: 500px;
  height: 500px;
  background: rgba(13, 147, 115, 0.15);
  bottom: 200px;
  left: 20%;
}

/* Typography */
h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-heading);
  font-weight: 700;
  line-height: 1.15;
  color: var(--text-main);
}

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

/* Navigation Header */
.navbar {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 1000;
  padding: 18px 0;
  transition: all var(--transition-fast);
}

.navbar.scrolled {
  padding: 12px 0;
  background: rgba(9, 13, 22, 0.85);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--border-card);
}

.container {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
  position: relative;
  z-index: 1;
}

.nav-content {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.brand-logo {
  display: flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
}

.brand-icon {
  width: 42px;
  height: 42px;
  border-radius: 12px;
  box-shadow: 0 4px 15px var(--accent-glow);
  transition: transform var(--transition-fast);
}

.brand-logo:hover .brand-icon {
  transform: scale(1.06) rotate(-3deg);
}

.brand-name {
  font-size: 1.4rem;
  font-weight: 800;
  letter-spacing: -0.02em;
  color: var(--text-main);
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 32px;
  list-style: none;
}

.nav-links a {
  color: var(--text-secondary);
  text-decoration: none;
  font-weight: 500;
  font-size: 0.95rem;
  transition: color var(--transition-fast);
}

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

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

/* Theme Toggle Button */
.theme-btn {
  background: var(--bg-card);
  border: 1px solid var(--border-card);
  color: var(--text-main);
  width: 40px;
  height: 40px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all var(--transition-fast);
}

.theme-btn:hover {
  border-color: var(--primary-cyan);
  transform: translateY(-2px);
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 14px 28px;
  border-radius: 50px;
  font-weight: 600;
  font-size: 1rem;
  text-decoration: none;
  cursor: pointer;
  transition: all var(--transition-normal);
  border: none;
}

.btn-primary {
  background: var(--gradient-main);
  color: #FFFFFF;
  box-shadow: var(--shadow-glow);
}

.btn-primary:hover {
  transform: translateY(-3px) scale(1.02);
  box-shadow: 0 16px 45px rgba(6, 182, 212, 0.4);
}

.btn-secondary {
  background: var(--bg-card);
  color: var(--text-main);
  border: 1px solid var(--border-card);
  backdrop-filter: blur(12px);
}

.btn-secondary:hover {
  border-color: var(--primary-cyan);
  background: var(--bg-card-hover);
  transform: translateY(-3px);
}

/* Hero Section */
.hero {
  padding: 160px 0 90px;
  position: relative;
}

.hero-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: center;
}

.badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 16px;
  border-radius: 30px;
  background: rgba(13, 147, 115, 0.12);
  border: 1px solid rgba(13, 147, 115, 0.3);
  color: #2DD4BF;
  font-size: 0.88rem;
  font-weight: 600;
  margin-bottom: 24px;
}

.badge-pulse {
  width: 8px;
  height: 8px;
  background-color: #2DD4BF;
  border-radius: 50%;
  box-shadow: 0 0 10px #2DD4BF;
  animation: pulse 2s infinite;
}

@keyframes pulse {
  0% { transform: scale(0.95); opacity: 0.7; }
  50% { transform: scale(1.3); opacity: 1; }
  100% { transform: scale(0.95); opacity: 0.7; }
}

.hero-title {
  font-size: 3.8rem;
  letter-spacing: -0.03em;
  margin-bottom: 24px;
}

.hero-subtitle {
  font-size: 1.2rem;
  color: var(--text-secondary);
  margin-bottom: 36px;
  max-width: 520px;
  font-weight: 400;
}

.hero-cta {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  margin-bottom: 40px;
}

.hero-stats {
  display: flex;
  align-items: center;
  gap: 36px;
  padding-top: 24px;
  border-top: 1px solid var(--border-card);
}

.stat-item h4 {
  font-size: 1.8rem;
  font-weight: 800;
  color: var(--text-main);
}

.stat-item p {
  font-size: 0.85rem;
  color: var(--text-dim);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  font-weight: 600;
}

/* Hero App Mockup / Visual Card */
.hero-visual {
  position: relative;
  display: flex;
  justify-content: center;
}

.phone-mockup-container {
  position: relative;
  width: 320px;
  height: 640px;
  background: #000;
  border-radius: 48px;
  border: 4px solid rgba(255, 255, 255, 0.15);
  box-shadow: 0 25px 60px rgba(0, 0, 0, 0.6), 0 0 50px var(--accent-glow);
  padding: 12px;
  overflow: hidden;
}

.phone-screen {
  width: 100%;
  height: 100%;
  background: #0B132B;
  border-radius: 38px;
  display: flex;
  flex-direction: column;
  padding: 20px 16px;
  overflow: hidden;
  position: relative;
}

.phone-notch {
  width: 120px;
  height: 22px;
  background: #000;
  border-radius: 0 0 14px 14px;
  margin: -20px auto 16px;
}

.app-header-preview {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 20px;
}

.app-user-info {
  display: flex;
  align-items: center;
  gap: 10px;
}

.app-user-avatar {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: var(--gradient-main);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  color: #fff;
  font-size: 0.9rem;
}

.app-balance-card {
  background: linear-gradient(135deg, rgba(13, 147, 115, 0.8), rgba(6, 182, 212, 0.8));
  border-radius: 20px;
  padding: 20px;
  color: #fff;
  margin-bottom: 20px;
  box-shadow: 0 10px 25px rgba(6, 182, 212, 0.25);
}

.balance-label {
  font-size: 0.75rem;
  opacity: 0.85;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.balance-amount {
  font-size: 1.8rem;
  font-weight: 800;
  margin: 4px 0;
}

.balance-pills {
  display: flex;
  gap: 10px;
  margin-top: 12px;
}

.pill {
  font-size: 0.7rem;
  padding: 4px 10px;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.2);
  backdrop-filter: blur(5px);
}

.app-txn-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.txn-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: rgba(255, 255, 255, 0.05);
  padding: 12px;
  border-radius: 14px;
  font-size: 0.85rem;
}

.txn-icon {
  width: 32px;
  height: 32px;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1rem;
}

.txn-icon.grocery { background: rgba(16, 185, 129, 0.2); color: #10B981; }
.txn-icon.coffee { background: rgba(245, 158, 11, 0.2); color: #F59E0B; }
.txn-icon.travel { background: rgba(59, 130, 246, 0.2); color: #3B82F6; }

.txn-details h5 {
  font-size: 0.85rem;
  font-weight: 600;
}

.txn-details span {
  font-size: 0.7rem;
  color: var(--text-dim);
}

.txn-amount {
  font-weight: 700;
  font-size: 0.85rem;
}

.txn-amount.negative { color: #F87171; }
.txn-amount.positive { color: #34D399; }

/* Floating Floating Icon Badges */
.floating-badge {
  position: absolute;
  background: rgba(16, 24, 38, 0.85);
  backdrop-filter: blur(16px);
  border: 1px solid var(--border-card-hover);
  padding: 12px 18px;
  border-radius: 18px;
  display: flex;
  align-items: center;
  gap: 12px;
  box-shadow: 0 15px 35px rgba(0,0,0,0.4);
  z-index: 10;
  animation: float 4s ease-in-out infinite;
}

.badge-owl {
  top: 40px;
  left: -40px;
}

.badge-privacy {
  bottom: 60px;
  right: -30px;
  animation-delay: 2s;
}

.floating-badge img {
  width: 40px;
  height: 40px;
  border-radius: 10px;
}

@keyframes float {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-10px); }
}

/* Feature Grid Section */
.features {
  padding: 100px 0;
  position: relative;
}

.section-header {
  text-align: center;
  max-width: 650px;
  margin: 0 auto 60px;
}

.section-tag {
  color: var(--primary-cyan);
  font-size: 0.9rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  margin-bottom: 12px;
  display: block;
}

.section-title {
  font-size: 2.8rem;
  margin-bottom: 16px;
  letter-spacing: -0.02em;
}

.section-desc {
  color: var(--text-secondary);
  font-size: 1.1rem;
}

.grid-3 {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
}

.card {
  background: var(--bg-card);
  border: 1px solid var(--border-card);
  border-radius: var(--radius-lg);
  padding: 36px 28px;
  position: relative;
  transition: all var(--transition-normal);
  backdrop-filter: blur(12px);
}

.card:hover {
  transform: translateY(-8px);
  border-color: var(--border-card-hover);
  background: var(--bg-card-hover);
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.4), 0 0 30px var(--accent-glow);
}

.card-icon {
  width: 56px;
  height: 56px;
  border-radius: var(--radius-md);
  background: rgba(13, 147, 115, 0.15);
  color: #2DD4BF;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.6rem;
  margin-bottom: 24px;
}

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

.card-desc {
  color: var(--text-secondary);
  font-size: 0.95rem;
  line-height: 1.6;
}

/* Interactive Calculator Section */
.calculator-section {
  padding: 90px 0;
  position: relative;
}

.calc-box {
  background: var(--bg-card);
  border: 1px solid var(--border-card);
  border-radius: var(--radius-xl);
  padding: 48px;
  backdrop-filter: blur(16px);
  box-shadow: var(--shadow-sm);
}

.calc-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
  align-items: center;
}

.calc-inputs {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.form-group {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.form-group label {
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--text-secondary);
}

.input-wrapper {
  position: relative;
  display: flex;
  align-items: center;
}

.currency-symbol {
  position: absolute;
  left: 16px;
  font-weight: 700;
  color: var(--primary-cyan);
}

.form-input {
  width: 100%;
  padding: 14px 16px 14px 40px;
  border-radius: var(--radius-md);
  background: rgba(0, 0, 0, 0.3);
  border: 1px solid var(--border-card);
  color: var(--text-main);
  font-family: var(--font-body);
  font-size: 1rem;
  outline: none;
  transition: border-color var(--transition-fast);
}

.form-input:focus {
  border-color: var(--primary-cyan);
  box-shadow: 0 0 15px rgba(6, 182, 212, 0.2);
}

.calc-result-card {
  background: var(--gradient-card);
  border: 1px solid var(--border-card-hover);
  border-radius: var(--radius-lg);
  padding: 36px;
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.result-header {
  font-size: 1rem;
  color: var(--text-secondary);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  font-weight: 600;
}

.result-amount {
  font-size: 3rem;
  font-weight: 800;
}

.breakdown-bar {
  width: 100%;
  height: 12px;
  background: rgba(255, 255, 255, 0.1);
  border-radius: 6px;
  overflow: hidden;
  display: flex;
}

.bar-spent {
  height: 100%;
  background: #F87171;
  width: 45%;
  transition: width 0.4s ease;
}

.bar-saved {
  height: 100%;
  background: #34D399;
  width: 55%;
  transition: width 0.4s ease;
}

.breakdown-legend {
  display: flex;
  justify-content: space-between;
  font-size: 0.88rem;
}

/* FAQ Section */
.faq-section {
  padding: 90px 0;
}

.faq-list {
  max-width: 800px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.faq-item {
  background: var(--bg-card);
  border: 1px solid var(--border-card);
  border-radius: var(--radius-md);
  overflow: hidden;
  transition: border-color var(--transition-fast);
}

.faq-question {
  padding: 20px 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  cursor: pointer;
  font-weight: 600;
  font-size: 1.1rem;
}

.faq-icon {
  font-size: 1.4rem;
  transition: transform var(--transition-fast);
}

.faq-item.active .faq-icon {
  transform: rotate(45deg);
}

.faq-answer {
  max-height: 0;
  overflow: hidden;
  padding: 0 24px;
  color: var(--text-secondary);
  font-size: 0.98rem;
  transition: max-height 0.3s ease, padding 0.3s ease;
}

.faq-item.active .faq-answer {
  max-height: 200px;
  padding: 0 24px 20px;
}

/* CTA Download Banner */
.cta-banner {
  padding: 100px 0;
}

.cta-box {
  background: var(--gradient-main);
  border-radius: var(--radius-xl);
  padding: 60px;
  text-align: center;
  position: relative;
  overflow: hidden;
  box-shadow: 0 25px 60px rgba(13, 147, 115, 0.4);
}

.cta-title {
  font-size: 3rem;
  color: #FFFFFF;
  margin-bottom: 16px;
}

.cta-desc {
  font-size: 1.2rem;
  color: rgba(255, 255, 255, 0.9);
  max-width: 580px;
  margin: 0 auto 36px;
}

/* Footer */
footer {
  padding: 60px 0 30px;
  border-top: 1px solid var(--border-card);
  position: relative;
  z-index: 10;
}

.footer-content {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 40px;
}

.footer-text {
  color: var(--text-dim);
  font-size: 0.9rem;
}

/* Responsive Breakpoints */
@media (max-width: 992px) {
  .hero-grid {
    grid-template-columns: 1fr;
    text-align: center;
  }
  .hero-subtitle {
    margin: 0 auto 36px;
  }
  .hero-cta {
    justify-content: center;
  }
  .hero-stats {
    justify-content: center;
  }
  .grid-3 {
    grid-template-columns: 1fr;
  }
  .calc-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 768px) {
  .hero-title {
    font-size: 2.8rem;
  }
  .nav-links {
    display: none;
  }
  .floating-badge {
    display: none;
  }
}
