:root {
  --bg-dark: #f8fafc; /* Changed to an off-white background */
  --bg-card: rgba(255, 255, 255, 0.85); /* White cards */
  --border-color: rgba(0, 0, 0, 0.08); /* Darkened borders for light bg */
  --text-primary: #0f172a; /* Slate 900 for high readability */
  --text-secondary: #64748b; /* Slate 500 */
  --accent-blue: #2563eb; /* Deeper blue for contrast on light */
  --accent-green: #0ea5e9; 
  --accent-emerald: #059669; /* Darker emerald */
  --glow-color: rgba(37, 99, 235, 0.1);

  --font-heading: "Outfit", sans-serif;
  --font-body: "Inter", sans-serif;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  background-color: var(--bg-dark);
  color: var(--text-primary);
  font-family: var(--font-body);
  line-height: 1.6;
  overflow-x: hidden;
}

/* Typography elements */
h1,
h2,
h3,
h4,
h5,
h6 {
  font-family: var(--font-heading);
  font-weight: 700;
  line-height: 1.2;
}

.text-gradient {
  background: linear-gradient(
    135deg,
    var(--accent-blue),
    var(--accent-green),
    var(--accent-emerald)
  );
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.text-accent {
  color: var(--accent-emerald);
}

.text-center {
  text-align: center;
}

.container {
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 24px;
}

/* Background Effects */
.glow-orb {
  position: absolute;
  width: 600px;
  height: 600px;
  background: radial-gradient(
    circle,
    var(--glow-color) 0%,
    rgba(5, 5, 5, 0) 70%
  );
  border-radius: 50%;
  filter: blur(80px);
  z-index: -1;
  pointer-events: none;
}

.glow-orb.top-left {
  top: -200px;
  left: -200px;
}

.glow-orb.bottom-right {
  bottom: -200px;
  right: -200px;
}

/* Buttons */
.btn {
  display: inline-block;
  padding: 12px 24px;
  border-radius: 8px;
  font-weight: 600;
  font-size: 0.95rem;
  cursor: pointer;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  text-decoration: none;
  text-align: center;
}

.btn-primary {
  background: linear-gradient(
    135deg,
    var(--accent-blue) 0%,
    var(--accent-green) 100%
  );
  color: #000;
  border: none;
  box-shadow: 0 4px 14px rgba(0, 242, 254, 0.4);
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(0, 242, 254, 0.6);
}

.btn-outline {
  background: transparent;
  color: var(--text-primary);
  border: 1px solid var(--border-color);
}

.btn-outline:hover {
  background: rgba(255, 255, 255, 0.05);
  border-color: rgba(255, 255, 255, 0.2);
}

.btn-large {
  padding: 16px 36px;
  font-size: 1.1rem;
}

/* Navigation */
.navbar {
  position: fixed;
  top: 0;
  width: 100%;
  z-index: 100;
  padding: 20px 0;
  background: rgba(255, 255, 255, 0.8);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border-color);
  transition: all 0.3s ease;
}

.nav-container {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.brand-logo {
  height: 40px;
  width: auto;
  object-fit: contain;
}

.nav-links {
  display: flex;
  gap: 32px;
}

.nav-links a {
  color: var(--text-secondary);
  text-decoration: none;
  font-size: 0.95rem;
  font-weight: 500;
  transition: color 0.3s ease;
}

.nav-links a:hover {
  color: var(--text-primary);
}

.nav-actions {
  display: flex;
  gap: 16px;
}

.mobile-menu-btn {
  display: none;
  flex-direction: column;
  gap: 6px;
  cursor: pointer;
}

.mobile-menu-btn span {
  width: 24px;
  height: 2px;
  background: var(--text-primary);
  transition: 0.3s;
}

/* Hero Section */
.hero {
  padding: 180px 0 100px;
  min-height: 100vh;
  display: flex;
  align-items: center;
}

.hero-container {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 64px;
  align-items: center;
}

.badge {
  display: inline-block;
  padding: 6px 12px;
  background: rgba(16, 185, 129, 0.1);
  border: 1px solid rgba(16, 185, 129, 0.2);
  color: var(--accent-emerald);
  border-radius: 20px;
  font-size: 0.85rem;
  font-weight: 600;
  margin-bottom: 24px;
  text-transform: uppercase;
  letter-spacing: 1px;
}

.hero-title {
  font-size: 4rem;
  margin-bottom: 24px;
  letter-spacing: -1.5px;
}

.hero-subtitle {
  font-size: 1.25rem;
  color: var(--text-secondary);
  margin-bottom: 40px;
  max-width: 540px;
}

.hero-actions {
  display: flex;
  gap: 20px;
}

/* Glass Cards & Mocks */
.glass-card {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: 24px;
  padding: 32px;
  backdrop-filter: blur(20px);
  box-shadow: 0 24px 80px rgba(0, 0, 0, 0.4);
}

.main-dashboard-mock {
  position: relative;
  transform: perspective(1000px) rotateY(-5deg) rotateX(5deg);
  transition: transform 0.5s ease;
}

.main-dashboard-mock:hover {
  transform: perspective(1000px) rotateY(0deg) rotateX(0deg);
}

.mock-header {
  display: flex;
  align-items: center;
  margin-bottom: 32px;
  padding-bottom: 16px;
  border-bottom: 1px solid var(--border-color);
}

.mock-dots {
  display: flex;
  gap: 8px;
  margin-right: 16px;
}

.mock-dots span {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: var(--border-color);
}

.mock-dots span:nth-child(1) {
  background: #ef4444;
}
.mock-dots span:nth-child(2) {
  background: #f59e0b;
}
.mock-dots span:nth-child(3) {
  background: #10b981;
}

.mock-title {
  color: var(--text-secondary);
  font-family: monospace;
  font-size: 0.9rem;
}

.stat-row {
  display: flex;
  justify-content: space-between;
  margin-bottom: 16px;
  font-size: 1.1rem;
  font-weight: 600;
}

.progress-bar-container {
  height: 6px;
  background: rgba(255, 255, 255, 0.1);
  border-radius: 3px;
  margin-bottom: 32px;
  overflow: hidden;
}

.progress-bar {
  height: 100%;
  background: linear-gradient(90deg, var(--accent-blue), var(--accent-emerald));
  border-radius: 3px;
}

.wallet-pills {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}

.pill {
  padding: 6px 14px;
  border-radius: 20px;
  font-size: 0.85rem;
  font-weight: 600;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--border-color);
}

.pill.bkash-pill {
  color: #e2136e;
  border-color: rgba(226, 19, 110, 0.3);
}
.pill.nagad-pill {
  color: #f26522;
  border-color: rgba(242, 101, 34, 0.3);
}

/* Wallets Section */
.wallets-section {
  padding: 100px 0;
  position: relative;
}

.section-title {
  font-size: 2.5rem;
  margin-bottom: 16px;
}

.section-subtitle {
  color: var(--text-secondary);
  font-size: 1.1rem;
  max-width: 600px;
  margin: 0 auto 64px;
}

.wallets-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 32px;
}

.wallet-card {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: 16px;
  padding: 40px 32px;
  text-align: center;
  transition: all 0.4s ease;
  cursor: pointer;
}

.wallet-card:hover {
  transform: translateY(-10px);
  border-color: rgba(255, 255, 255, 0.2);
  background: rgba(30, 30, 35, 0.8);
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.3);
}

.wallet-logo-wrapper {
  height: 80px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 24px;
  background: white; /* Logos look best on white, giving them a container */
  border-radius: 12px;
  padding: 16px;
}

.wallet-logo {
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
}

.wallet-card h3 {
  margin-bottom: 12px;
  font-size: 1.25rem;
}

.wallet-card p {
  color: var(--text-secondary);
  font-size: 0.95rem;
}

/* Features Section */
.features-section {
  padding: 100px 0;
}

.features-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 80px;
  align-items: center;
}

.feature-list {
  list-style: none;
  margin-top: 40px;
}

.feature-list li {
  display: flex;
  align-items: flex-start;
  gap: 20px;
  margin-bottom: 32px;
}

.icon-box {
  width: 48px;
  height: 48px;
  background: rgba(0, 242, 254, 0.1);
  color: var(--accent-blue);
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.feature-list h4 {
  font-size: 1.2rem;
  margin-bottom: 8px;
}

.feature-list p {
  color: var(--text-secondary);
}

.glass-panel {
  background: linear-gradient(
    145deg,
    rgba(20, 20, 22, 0.8),
    rgba(10, 10, 12, 0.9)
  );
  border: 1px solid var(--border-color);
  border-radius: 20px;
  padding: 32px;
}

.panel-header {
  font-family: var(--font-heading);
  font-weight: 600;
  margin-bottom: 24px;
  border-bottom: 1px solid var(--border-color);
  padding-bottom: 16px;
}

.chart-bars {
  display: flex;
  align-items: flex-end;
  gap: 16px;
  height: 150px;
  margin-bottom: 24px;
}

.bar {
  flex: 1;
  background: rgba(255, 255, 255, 0.1);
  border-radius: 4px 4px 0 0;
  transition: height 1s ease;
}

.bar.text-accent {
  background: var(--accent-emerald);
  box-shadow: 0 0 15px rgba(16, 185, 129, 0.4);
}

.panel-footer {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.9rem;
  color: var(--text-secondary);
}

.status-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--accent-emerald);
  box-shadow: 0 0 10px var(--accent-emerald);
}

/* Footer */
.footer {
  border-top: 1px solid var(--border-color);
  padding: 80px 0 24px;
  background: white;
}

.footer-container {
  display: grid;
  grid-template-columns: 2fr 3fr;
  gap: 64px;
  margin-bottom: 64px;
}

.footer-img {
  margin-bottom: 24px;
  filter: grayscale(1) brightness(2);
  opacity: 0.8;
}

.footer-brand p {
  color: var(--text-secondary);
  max-width: 300px;
}

.footer-links {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 32px;
}

.link-col h4 {
  margin-bottom: 24px;
  font-size: 1.1rem;
}

.link-col a {
  display: block;
  color: var(--text-secondary);
  text-decoration: none;
  margin-bottom: 12px;
  transition: color 0.3s;
}

.link-col a:hover {
  color: var(--text-primary);
}

.footer-bottom {
  border-top: 1px solid var(--border-color);
  padding-top: 24px;
  text-align: center;
  color: var(--text-secondary);
  font-size: 0.9rem;
}

/* Animations & Utilities */
.fade-up {
  opacity: 0;
  transform: translateY(30px);
  transition:
    opacity 0.8s ease,
    transform 0.8s ease;
}

.fade-up.visible {
  opacity: 1;
  transform: translateY(0);
}

.delay-1 {
  transition-delay: 0.1s;
}
.delay-2 {
  transition-delay: 0.2s;
}
.delay-3 {
  transition-delay: 0.3s;
}
.delay-4 {
  transition-delay: 0.4s;
}

/* Responsive */
@media (max-width: 992px) {
  .hero-container,
  .features-grid,
  .footer-container {
    grid-template-columns: 1fr;
  }
  .hero-title {
    font-size: 3rem;
  }
  .main-dashboard-mock {
    transform: none;
  }
}

@media (max-width: 768px) {
  .nav-links,
  .nav-actions .btn-outline {
    display: none;
  }
  .mobile-menu-btn {
    display: flex;
  }
  .hero-title {
    font-size: 2.5rem;
  }
  .footer-links {
    grid-template-columns: 1fr 1fr;
  }
}

/* App Download Section */
.app-download-section {
    padding: 100px 0;
    background: linear-gradient(180deg, var(--bg-dark) 0%, #08080a 100%);
    position: relative;
    overflow: hidden;
}

.download-card {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 32px;
    padding: 64px;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 64px;
    align-items: center;
    position: relative;
    z-index: 1;
    box-shadow: 0 30px 60px rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(20px);
}

.download-card::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    border-radius: 32px;
    background: radial-gradient(circle at 80% 50%, rgba(16, 185, 129, 0.08) 0%, transparent 60%);
    z-index: -1;
    pointer-events: none;
}

.download-content .section-title {
    margin-bottom: 24px;
    font-size: 2.8rem;
}

.download-content .section-subtitle {
    margin-bottom: 40px;
}

.download-actions {
    display: flex;
    flex-direction: column;
    gap: 16px;
    align-items: flex-start;
}

.download-btn {
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 1.15rem;
    padding: 18px 32px;
}

.download-note {
    font-size: 0.85rem;
    color: var(--text-secondary);
    margin-left: 8px;
}

/* Phone Mockup */
.phone-mockup {
    width: 320px;
    height: 640px;
    background: #111;
    border-radius: 48px;
    border: 8px solid #333;
    box-shadow: 
        inset 0 0 0 2px #000,
        0 24px 60px rgba(0, 0, 0, 0.6),
        0 0 0 1px rgba(255, 255, 255, 0.1);
    position: relative;
    margin: 0 auto;
    overflow: hidden;
    transform: perspective(800px) rotateY(-10deg) rotateX(5deg);
    transition: transform 0.5s ease;
}

.phone-mockup:hover {
    transform: perspective(800px) rotateY(0) rotateX(0);
}

.phone-screen {
    background: var(--bg-dark);
    height: 100%;
    padding: 40px 24px;
    display: flex;
    flex-direction: column;
}

.phone-screen .mock-header {
    text-align: center;
    margin-bottom: 32px;
    padding-bottom: 16px;
    border-bottom: 1px solid var(--border-color);
}

.phone-screen .brand-name-small {
    font-weight: 700;
    font-size: 1.2rem;
    font-family: var(--font-heading);
    background: linear-gradient(135deg, var(--accent-blue), var(--accent-emerald));
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

.phone-screen .mock-balance {
    background: linear-gradient(145deg, rgba(20, 20, 22, 0.9), rgba(10, 10, 12, 1));
    border: 1px solid var(--border-color);
    border-radius: 16px;
    padding: 24px;
    text-align: center;
    margin-bottom: 32px;
}

.phone-screen .mock-balance .label {
    display: block;
    color: var(--text-secondary);
    font-size: 0.9rem;
    margin-bottom: 8px;
}

.phone-screen .mock-balance .amount {
    display: block;
    font-size: 2rem;
    font-weight: 700;
    color: var(--text-primary);
}

.phone-screen .mock-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
}

.phone-screen .mock-btn {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    padding: 16px 0;
    text-align: center;
    font-weight: 600;
    font-size: 0.9rem;
}

.phone-screen .mock-btn.bkash { color: #e2136e; }
.phone-screen .mock-btn.nagad { color: #f26522; }
.phone-screen .mock-btn.rocket { color: #8c1d77; border-color: rgba(140, 29, 119, 0.3); }
.phone-screen .mock-btn.upay { color: #006eb7; border-color: rgba(0, 110, 183, 0.3); }

/* Updated Logo Styling */
.logo-link {
    display: flex;
    align-items: center;
    gap: 12px;
    text-decoration: none;
}

.brand-logo {
    height: 60px; /* Increased from 40px */
    width: auto;
    object-fit: contain;
}

.brand-name {
    font-family: var(--font-heading);
    font-weight: 800;
    font-size: 1.7rem;
    color: var(--text-primary);
    letter-spacing: -0.5px;
}

.footer-logo-wrapper {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 24px;
}

.footer-logo-wrapper .brand-logo {
    height: 50px; /* Increased for footer as well */
    filter: none; /* Removed the grayscale entirely as requested for premium look */
    opacity: 1; /* Made fully opaque */
}

/* Responsive updates for the new section */
@media (max-width: 992px) {
    .download-card {
        grid-template-columns: 1fr;
        padding: 40px 24px;
        text-align: center;
    }
    
    .download-actions {
        align-items: center;
    }
    
    .download-content .section-title {
        font-size: 2.2rem;
    }
}

/* Modals */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.8);
    backdrop-filter: blur(8px);
    z-index: 1000;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
}

.modal-overlay.active {
    opacity: 1;
    visibility: visible;
}

.modal-content {
    width: 100%;
    max-width: 450px;
    padding: 48px;
    position: relative;
    transform: translateY(20px);
    transition: all 0.3s ease;
}

.modal-overlay.active .modal-content {
    transform: translateY(0);
}

.close-modal {
    position: absolute;
    top: 24px;
    right: 24px;
    background: transparent;
    border: none;
    color: var(--text-secondary);
    font-size: 1.5rem;
    cursor: pointer;
    transition: color 0.3s ease;
}

.close-modal:hover {
    color: var(--text-primary);
}

.modal-title {
    font-size: 2rem;
    margin-bottom: 8px;
}

.modal-subtitle {
    color: var(--text-secondary);
    margin-bottom: 32px;
}

.modal-form {
    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: 500;
}

.form-group input, 
.form-group select {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    padding: 12px 16px;
    color: var(--text-primary);
    font-family: inherit;
    font-size: 1rem;
    outline: none;
    transition: all 0.3s ease;
}

.form-group input:focus,
.form-group select:focus {
    border-color: var(--accent-emerald);
    background: rgba(255, 255, 255, 0.1);
    box-shadow: 0 0 0 4px rgba(16, 185, 129, 0.1);
}

.form-group select option {
    background: var(--bg-dark);
}

.btn-full {
    width: 100%;
    margin-top: 16px;
    padding: 14px;
}

/* Toast Notification */
.toast {
    position: fixed;
    bottom: 32px;
    left: 50%;
    transform: translateX(-50%) translateY(100px);
    background: rgba(20, 20, 22, 0.9);
    border: 1px solid var(--border-color);
    border-left: 4px solid var(--accent-blue);
    color: var(--text-primary);
    padding: 16px 24px;
    border-radius: 8px;
    font-weight: 500;
    z-index: 1001;
    opacity: 0;
    transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    backdrop-filter: blur(10px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
}

.toast.show {
    transform: translateX(-50%) translateY(0);
    opacity: 1;
}

/* UI Enhancements */
.toggle-pulse {
    animation: pulseGlow 2s infinite;
}

@keyframes pulseGlow {
    0% { box-shadow: 0 0 0 0 rgba(0, 242, 254, 0.4); }
    70% { box-shadow: 0 0 0 15px rgba(0, 242, 254, 0); }
    100% { box-shadow: 0 0 0 0 rgba(0, 242, 254, 0); }
}

.wallet-card::before {
    content: "";
    position: absolute;
    top: 0; left: 0; right: 0; bottom: 0;
    border-radius: 16px;
    background: linear-gradient(135deg, rgba(0,242,254,0.1) 0%, transparent 100%);
    opacity: 0;
    transition: opacity 0.4s ease;
    z-index: -1;
}

.wallet-card:hover::before {
    opacity: 1;
}


/* Google Auth Button */
.btn-google {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    width: 100%;
    background: white;
    color: var(--text-primary);
    border: 1px solid var(--border-color);
    padding: 14px;
    font-weight: 500;
    font-family: var(--font-body);
    font-size: 1rem;
    box-shadow: 0 2px 4px rgba(0,0,0,0.02);
    margin-bottom: 24px;
}

.btn-google:hover {
    background: #f8fafc;
    box-shadow: 0 4px 6px rgba(0,0,0,0.04);
    transform: translateY(-1px);
}

.google-icon {
    width: 20px;
    height: 20px;
}

/* Modal Dividers */
.modal-divider {
    display: flex;
    align-items: center;
    text-align: center;
    color: var(--text-secondary);
    font-size: 0.9rem;
    margin-bottom: 24px;
}

.modal-divider::before,
.modal-divider::after {
    content: "";
    flex: 1;
    border-bottom: 1px solid var(--border-color);
}

.modal-divider span {
    padding: 0 16px;
}

/* Modal Footer */
.modal-footer {
    text-align: center;
    margin-top: 24px;
    padding-top: 24px;
    border-top: 1px solid var(--border-color);
    font-size: 0.95rem;
    color: var(--text-secondary);
}

.modal-footer a {
    color: var(--accent-blue);
    text-decoration: none;
    font-weight: 600;
}

.modal-footer a:hover {
    text-decoration: underline;
}

/* Light Theme Specific Adjustments */
.glass-card, .glass-panel, .download-card {
    background: var(--bg-card);
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.04); /* Soft rounded shadows */
    border-color: rgba(0,0,0,0.06);
}

.wallet-card:hover {
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.08); /* Sophisticated hover shadow */
    border-color: rgba(0,0,0,0.1);
    background: white;
}

.form-group input, 
.form-group select {
    background: white; /* Clean white inputs */
}

.form-group input:focus,
.form-group select:focus {
    background: white;
    box-shadow: 0 0 0 4px rgba(37, 99, 235, 0.1); /* Blue focus ring */
}

.app-download-section {
    background: linear-gradient(180deg, var(--bg-dark) 0%, #f1f5f9 100%); /* Light section bg */
}

.footer {
    background: white; /* Clean white footer */
}

.toast {
    background: white;
    color: var(--text-primary);
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.1);
}

.brand-name-small {
    -webkit-background-clip: text;
    background-clip: text;
}

