/* ==========================================
   SMART BAHI KHATA - CLEAN FINTECH DESIGN
   ========================================== */

/* Typography & Core Variables */
:root {
  --primary: #0EA5A4;
  --primary-dark: #0B7C7B;
  --primary-light: #E6F6F6;
  
  --bg-color: #F8FAFC; /* Slate 50 */
  --surface: #FFFFFF;
  --surface-alt: #F1F5F9; /* Slate 100 */
  
  --text-main: #0F172A; /* Slate 900 */
  --text-muted: #475569; /* Slate 600 */
  --border: #E2E8F0; /* Slate 200 */
  
  --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
  --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
  --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
  --shadow-hover: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
  
  --radius-sm: 8px;
  --radius-md: 12px;
  --radius-lg: 20px;
  
  --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

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

html {
  scroll-behavior: smooth;
}

body {
  font-family: 'Inter', sans-serif;
  background-color: var(--bg-color);
  color: var(--text-main);
  overflow-x: hidden;
  line-height: 1.6;
}

.container {
  width: 90%;
  max-width: 1200px;
  margin: auto;
}

section {
  padding: 90px 0;
  position: relative;
}

h1, h2, h3, h4 {
  font-family: 'Outfit', sans-serif;
  font-weight: 800;
  line-height: 1.2;
  color: var(--text-main);
  letter-spacing: -0.5px;
}

a {
  text-decoration: none;
  color: inherit;
  transition: var(--transition);
}

/* Scroll Animation classes */
.reveal {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.6s ease-out, transform 0.6s ease-out;
}

.reveal.active {
  opacity: 1;
  transform: translateY(0);
}

/* NAVBAR */
nav {
  width: 100%;
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  position: fixed;
  top: 0;
  z-index: 1000;
  border-bottom: 1px solid transparent;
  transition: var(--transition);
  padding: 8px 0;
}

nav.scrolled {
  border-bottom: 1px solid var(--border);
  box-shadow: var(--shadow-sm);
  padding: 4px 0;
}

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

.logo {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 22px;
  font-weight: 800;
  font-family: 'Outfit', sans-serif;
  color: var(--text-main);
}

.logo i {
  font-size: 28px;
  color: var(--primary);
}

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

.nav-links a {
  color: var(--text-muted);
  font-weight: 500;
  font-size: 15px;
  position: relative;
  padding: 6px 0;
}

.nav-links a::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--primary);
  transition: var(--transition);
}

.nav-links a:hover::after,
.nav-links a.active::after {
  width: 100%;
}

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

.download-btn {
  background: var(--primary);
  color: var(--surface) !important;
  padding: 12px 24px;
  border-radius: var(--radius-sm);
  font-weight: 600;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  border: none;
  cursor: pointer;
  transition: var(--transition);
}

.download-btn:hover {
  background: var(--primary-dark);
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}

.mobile-toggle {
  display: none;
  font-size: 24px;
  cursor: pointer;
  color: var(--text-main);
}

/* HERO SECTION */
.hero {
  padding-top: 160px;
  padding-bottom: 100px;
  min-height: 90vh;
  display: flex;
  align-items: center;
  background: linear-gradient(135deg, #ffffff 0%, #f1f5f9 100%);
  position: relative;
  overflow: hidden;
}

.hero::before {
  content: '';
  position: absolute;
  width: 800px;
  height: 800px;
  background: radial-gradient(circle, var(--primary-light) 0%, transparent 60%);
  top: -200px;
  right: -200px;
  opacity: 0.6;
  z-index: 0;
}

.hero-wrapper {
  display: grid;
  grid-template-columns: 1fr 1fr;
  align-items: center;
  gap: 60px;
  position: relative;
  z-index: 1;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 16px;
  border-radius: 999px;
  background: var(--primary-light);
  color: var(--primary-dark);
  font-weight: 600;
  font-size: 13px;
  margin-bottom: 24px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.hero h1 {
  font-size: 56px;
  font-weight: 800;
  margin-bottom: 20px;
  line-height: 1.15;
}

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

.hero p {
  color: var(--text-muted);
  font-size: 18px;
  line-height: 1.6;
  margin-bottom: 32px;
  max-width: 540px;
}

.hero-features {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  margin-bottom: 32px;
}

.mini-box {
  border: 1px solid var(--border);
  background: var(--surface);
  padding: 10px 16px;
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--text-main);
  font-size: 14px;
  font-weight: 500;
  box-shadow: var(--shadow-sm);
}

.mini-box i {
  color: var(--primary);
  font-size: 16px;
}

.store-buttons {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
  margin-bottom: 32px;
}

.store-btn {
  background: #111827;
  color: white;
  padding: 12px 24px;
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  gap: 12px;
  transition: var(--transition);
}

.store-btn:hover {
  transform: translateY(-2px);
  background: #1F2937;
  box-shadow: var(--shadow-md);
}

.store-btn i {
  font-size: 28px;
  color: #fff;
}

.store-btn small {
  font-size: 10px;
  text-transform: uppercase;
  color: #9CA3AF;
  letter-spacing: 0.5px;
}

.store-btn div {
  font-weight: 600;
  font-size: 15px;
  font-family: 'Inter', sans-serif;
}

.trust-line {
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--text-muted);
  font-size: 14px;
  font-weight: 500;
}

.trust-line i {
  color: #10B981; /* Green for trust */
  font-size: 16px;
}

/* SMART PHONE MOCKUP */
.phone-area {
  display: flex;
  justify-content: center;
  position: relative;
}

.phone {
  width: 320px;
  background: #1E293B; /* Slate 800 for the bezel */
  border-radius: 40px;
  padding: 10px;
  box-shadow: var(--shadow-lg);
  border: 2px solid #CBD5E1;
  position: relative;
  z-index: 2;
  animation: float 6s infinite ease-in-out;
}

.screen {
  background: #F8FAFC;
  border-radius: 32px;
  height: 640px;
  overflow-y: auto;
  padding: 20px;
  color: var(--text-main);
  position: relative;
  scrollbar-width: none;
}

.screen::-webkit-scrollbar {
  display: none;
}

.top-bar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 20px;
}

.balance-card {
  background: var(--surface);
  border-radius: 16px;
  padding: 20px;
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--border);
  margin-bottom: 20px;
}

.balance-card small {
  color: var(--text-muted);
  font-weight: 600;
  text-transform: uppercase;
  font-size: 11px;
  letter-spacing: 0.5px;
}

.balance-card h2 {
  color: var(--primary);
  margin-top: 6px;
  font-size: 28px;
  font-weight: 800;
}

.action-box {
  background: var(--surface);
  border-radius: 16px;
  padding: 16px;
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--border);
  margin-bottom: 20px;
}

.action-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 10px 0;
  border-bottom: 1px dashed var(--border);
  font-size: 12px;
  font-weight: 500;
}

.action-item:last-child {
  border-bottom: none;
  padding-bottom: 0;
}

.quick-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 10px;
  text-align: center;
  margin-top: 12px;
}

.quick-item {
  font-size: 10px;
  color: var(--text-muted);
  font-weight: 600;
  cursor: pointer;
  transition: var(--transition);
}

.quick-item i {
  font-size: 18px;
  width: 40px;
  height: 40px;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 6px;
  transition: var(--transition);
}

.quick-item.active i {
  background: var(--primary) !important;
  color: white !important;
  box-shadow: var(--shadow-md);
}

/* SECTION TITLES */
.section-title {
  text-align: center;
  font-size: 40px;
  margin-bottom: 16px;
}

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

.section-subtitle {
  text-align: center;
  max-width: 600px;
  margin: auto;
  color: var(--text-muted);
  font-size: 16px;
}

/* MODULES SECTION */
.modules-grid {
  margin-top: 60px;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.module-card {
  background: var(--surface);
  border-radius: var(--radius-lg);
  padding: 32px 24px;
  border: 1px solid var(--border);
  box-shadow: var(--shadow-sm);
  text-align: center;
  transition: var(--transition);
}

.module-card:hover {
  border-color: var(--primary);
  box-shadow: var(--shadow-hover);
  transform: translateY(-4px);
}

.module-icon {
  width: 64px;
  height: 64px;
  border-radius: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 20px;
  color: white;
  font-size: 24px;
}

.module-card h3 {
  font-size: 20px;
  margin-bottom: 12px;
}

.module-card p {
  color: var(--text-muted);
  font-size: 14px;
}

/* FEATURE BAR */
.feature-bar {
  margin-top: 60px;
  background: var(--surface);
  border-radius: var(--radius-lg);
  padding: 32px;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
  border: 1px solid var(--border);
  box-shadow: var(--shadow-sm);
}

.feature {
  display: flex;
  gap: 14px;
  align-items: flex-start;
}

.feature i {
  color: var(--primary);
  font-size: 24px;
  background: var(--primary-light);
  width: 48px;
  height: 48px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.feature h4 {
  margin-bottom: 6px;
  font-size: 15px;
}

.feature p {
  color: var(--text-muted);
  font-size: 13px;
}

/* STATS */
.stats {
  margin-top: 60px;
  background: var(--surface);
  border-radius: var(--radius-lg);
  padding: 40px;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  text-align: center;
  border: 1px solid var(--border);
  box-shadow: var(--shadow-md);
}

.stats h2 {
  font-size: 40px;
  margin-bottom: 8px;
  color: var(--primary);
}

.stats p {
  color: var(--text-muted);
  font-weight: 600;
  font-size: 13px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

/* CTA SECTION */
.cta {
  background: var(--surface);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}

.cta-wrapper {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  align-items: center;
  gap: 40px;
}

.cta h2 {
  font-size: 40px;
  margin-bottom: 16px;
}

.cta p {
  color: var(--text-muted);
  margin-bottom: 32px;
  font-size: 16px;
}

.cta-logo {
  text-align: center;
}

.cta-logo i {
  font-size: 140px;
  color: var(--primary-light);
}

/* FAQ ACCORDION PAGE */
.faq-header {
  text-align: center;
  padding: 120px 0 40px;
  background: var(--surface);
  border-bottom: 1px solid var(--border);
}

.faq-header h1 {
  font-size: 44px;
  margin-bottom: 12px;
}

.faq-header p {
  color: var(--text-muted);
  font-size: 16px;
}

.faq-wrapper {
  max-width: 800px;
  margin: 40px auto 0;
}

.faq-item {
  background: var(--surface);
  border-radius: var(--radius-sm);
  margin-bottom: 12px;
  border: 1px solid var(--border);
  overflow: hidden;
  transition: var(--transition);
}

.faq-item:hover, .faq-item.active {
  border-color: var(--primary);
  box-shadow: var(--shadow-sm);
}

.faq-question {
  padding: 20px 24px;
  font-weight: 600;
  font-size: 16px;
  color: var(--text-main);
  display: flex;
  justify-content: space-between;
  align-items: center;
  cursor: pointer;
  user-select: none;
}

.faq-question i {
  font-size: 16px;
  color: var(--primary);
  transition: transform 0.3s;
}

.faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.3s ease-out;
  background: var(--bg-color);
}

.faq-answer-inner {
  padding: 20px 24px;
  border-top: 1px solid var(--border);
  color: var(--text-muted);
  font-size: 14px;
}

.faq-item.active .faq-answer {
  max-height: 500px;
}

.faq-item.active .faq-question i {
  transform: rotate(180deg);
}

/* LEGAL PAGES (TERMS & PRIVACY) */
.legal-header {
  padding: 120px 0 40px;
  background: var(--surface);
  border-bottom: 1px solid var(--border);
  text-align: center;
}

.legal-header h1 {
  font-size: 44px;
  margin-bottom: 12px;
}

.legal-meta {
  color: var(--text-muted);
  font-weight: 500;
  font-size: 13px;
}

.legal-grid {
  display: grid;
  grid-template-columns: 280px 1fr;
  gap: 40px;
  margin-top: 40px;
  align-items: start;
}

.legal-sidebar {
  position: sticky;
  top: 100px;
  background: var(--surface);
  border-radius: var(--radius-md);
  padding: 24px;
  border: 1px solid var(--border);
}

.legal-sidebar h4 {
  margin-bottom: 16px;
  font-size: 14px;
  text-transform: uppercase;
  color: var(--text-muted);
  border-bottom: 1px solid var(--border);
  padding-bottom: 12px;
}

.legal-menu {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.legal-menu a {
  font-size: 14px;
  font-weight: 500;
  color: var(--text-muted);
}

.legal-menu a:hover,
.legal-menu a.active {
  color: var(--primary);
  padding-left: 4px;
}

.legal-content {
  background: var(--surface);
  border-radius: var(--radius-md);
  padding: 40px;
  border: 1px solid var(--border);
}

.legal-section {
  margin-bottom: 32px;
  border-bottom: 1px solid var(--border);
  padding-bottom: 32px;
}

.legal-section:last-child {
  margin-bottom: 0;
  border-bottom: none;
  padding-bottom: 0;
}

.legal-section h2 {
  font-size: 20px;
  margin-bottom: 16px;
}

.legal-section p, .legal-section ul {
  color: var(--text-muted);
  font-size: 15px;
  margin-bottom: 12px;
}

.legal-section ul {
  margin-left: 20px;
}

/* CONTACT PAGE */
.contact-header {
  padding: 120px 0 40px;
  background: var(--surface);
  border-bottom: 1px solid var(--border);
  text-align: center;
}

.contact-header h1 {
  font-size: 44px;
  margin-bottom: 12px;
}

.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
  margin-top: 40px;
}

.contact-info {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.contact-card {
  background: var(--surface);
  border-radius: var(--radius-md);
  padding: 24px;
  border: 1px solid var(--border);
  display: flex;
  gap: 16px;
  transition: var(--transition);
}

.contact-card:hover {
  border-color: var(--primary);
  box-shadow: var(--shadow-sm);
}

.contact-card-icon {
  width: 48px;
  height: 48px;
  border-radius: 12px;
  background: var(--primary-light);
  color: var(--primary);
  font-size: 20px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.contact-card-details h3 {
  font-size: 16px;
  margin-bottom: 4px;
}

.contact-card-details p {
  color: var(--text-muted);
  font-size: 13px;
}

.contact-form-container {
  background: var(--surface);
  border-radius: var(--radius-md);
  padding: 32px;
  border: 1px solid var(--border);
  box-shadow: var(--shadow-sm);
}

.form-group {
  margin-bottom: 20px;
}

.form-group label {
  display: block;
  font-size: 13px;
  font-weight: 600;
  margin-bottom: 8px;
}

.form-control {
  width: 100%;
  padding: 12px 16px;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  font-size: 14px;
  font-family: 'Inter', sans-serif;
  color: var(--text-main);
  background: var(--surface);
  outline: none;
  transition: var(--transition);
}

.form-control:focus {
  border-color: var(--primary);
  box-shadow: 0 0 0 3px var(--primary-light);
}

textarea.form-control {
  height: 120px;
  resize: none;
}

.submit-btn {
  width: 100%;
  background: var(--primary);
  color: white;
  border: none;
  padding: 14px;
  border-radius: var(--radius-sm);
  font-size: 15px;
  font-weight: 600;
  cursor: pointer;
  transition: var(--transition);
}

.submit-btn:hover {
  background: var(--primary-dark);
}

.alert {
  padding: 16px;
  border-radius: var(--radius-sm);
  margin-bottom: 20px;
  font-size: 13px;
  font-weight: 500;
  display: flex;
  align-items: center;
  gap: 10px;
}

.alert-success {
  background: #F0FDF4;
  border: 1px solid #BBF7D0;
  color: #15803D;
}

.alert-danger {
  background: #FEF2F2;
  border: 1px solid #FEE2E2;
  color: #B91C1C;
}

/* FOOTER */
footer {
  background: var(--surface);
  border-top: 1px solid var(--border);
  padding: 60px 0 30px;
}

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

.footer-col p {
  color: var(--text-muted);
  margin-top: 16px;
  font-size: 13px;
}

.footer-col h4 {
  font-size: 14px;
  margin-bottom: 20px;
}

.footer-links {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.footer-links a {
  color: var(--text-muted);
  font-size: 13px;
}

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

.socials {
  display: flex;
  gap: 12px;
  margin-top: 20px;
}

.socials i {
  width: 36px;
  height: 36px;
  background: var(--surface-alt);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-muted);
  font-size: 14px;
  transition: var(--transition);
}

.socials i:hover {
  background: var(--primary);
  color: white;
}

.newsletter {
  display: flex;
  margin-top: 16px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border);
  overflow: hidden;
}

.newsletter input {
  flex: 1;
  background: var(--surface);
  border: none;
  outline: none;
  padding: 12px;
  font-size: 13px;
}

.newsletter button {
  background: var(--surface-alt);
  border: none;
  border-left: 1px solid var(--border);
  color: var(--text-muted);
  width: 48px;
  cursor: pointer;
  transition: var(--transition);
}

.newsletter button:hover {
  background: var(--primary);
  color: white;
}

.copyright {
  border-top: 1px solid var(--border);
  padding-top: 20px;
  text-align: center;
  color: var(--text-muted);
  font-size: 13px;
}

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

/* RESPONSIVE DESIGNS */
@media (max-width: 1024px) {
  .hero-wrapper {
    grid-template-columns: 1fr;
    text-align: center;
    gap: 40px;
  }
  
  .hero p {
    margin: 0 auto 32px;
  }
  
  .hero-features, .store-buttons, .trust-line {
    justify-content: center;
  }
  
  .modules-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  
  .feature-bar {
    grid-template-columns: repeat(2, 1fr);
  }
  
  .stats {
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
  }
  
  .footer-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 768px) {
  section {
    padding: 60px 0;
  }
  
  .nav-links {
    position: fixed;
    top: 80px;
    left: -100%;
    width: 100%;
    height: calc(100vh - 80px);
    background: var(--surface);
    flex-direction: column;
    align-items: center;
    padding-top: 40px;
    gap: 24px;
    box-shadow: var(--shadow-md);
    transition: var(--transition);
  }
  
  .nav-links.active {
    left: 0;
  }
  
  .mobile-toggle {
    display: block;
  }
  
  .hero {
    padding-top: 120px;
  }
  
  .hero h1 {
    font-size: 36px;
  }
  
  .modules-grid, .feature-bar, .stats, .contact-grid {
    grid-template-columns: 1fr;
  }
  
  .legal-grid {
    display: flex;
    flex-direction: column;
    gap: 24px;
  }
  
  .legal-sidebar {
    position: static;
  }
  
  .legal-content {
    padding: 24px;
    word-break: break-word;
  }
  
  .footer-grid {
    grid-template-columns: 1fr;
  }
  
  .cta-wrapper {
    grid-template-columns: 1fr;
    text-align: center;
  }
  
  .cta-logo {
    display: none;
  }
}

/* Coming Soon Badges & Toast Notifications */
.badge-soon {
  display: inline-block;
  background: var(--primary);
  color: white;
  font-size: 9px;
  font-weight: 700;
  text-transform: uppercase;
  padding: 2px 6px;
  border-radius: 4px;
  margin-left: 6px;
  letter-spacing: 0.5px;
  vertical-align: middle;
}

.coming-soon-btn {
  position: relative;
  overflow: hidden;
  transition: var(--transition);
}

.coming-soon-btn:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
  background: #111827;
}

.toast-container {
  position: fixed;
  bottom: 24px;
  right: 24px;
  z-index: 9999;
  display: flex;
  flex-direction: column;
  gap: 12px;
  max-width: 380px;
  width: calc(100% - 48px);
}

.toast {
  background: #0b192c;
  color: white;
  padding: 16px 20px;
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-lg);
  display: flex;
  align-items: center;
  gap: 14px;
  transform: translateY(20px);
  opacity: 0;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  border-left: 4px solid var(--primary);
}

.toast.show {
  transform: translateY(0);
  opacity: 1;
}

.toast i {
  color: var(--primary);
  font-size: 22px;
  flex-shrink: 0;
}

.toast div {
  font-family: 'Inter', sans-serif;
  line-height: 1.4;
}

@media (max-width: 480px) {
  .toast-container {
    bottom: 16px;
    right: 16px;
    width: calc(100% - 32px);
  }
}

