/* ==========================================================================
   1. VARIABLES & RESET
   ========================================================================== */
:root {
  --primary: #0066cc;       /* Secure, trust-oriented fintech blue */
  --primary-hover: #0052a3;
  --secondary: #f0f6ff;
  --secondary-hover: #e1edff;
  --dark: #0f172a;          /* Slate 900 - deep corporate dark */
  --light: #ffffff;
  --gray-bg: #f8fafc;       /* Slate 50 - clean layout background */
  --text-muted: #64748b;    /* Slate 500 - optimized readability contrast */
  --border-color: #e2e8f0;
  --radius: 12px;
  --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  --font: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
}

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

body {
  font-family: var(--font);
  color: var(--dark);
  background-color: var(--light);
  line-height: 1.6;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

/* ==========================================================================
   2. REUSABLE COMPONENTS
   ========================================================================== */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 14px 28px;
  font-size: 1rem;
  font-weight: 600;
  border-radius: var(--radius);
  text-decoration: none;
  transition: var(--transition);
  cursor: pointer;
  border: none;
  white-space: nowrap;
}

.btn.primary {
  background-color: var(--primary);
  color: var(--light);
}

.btn.primary:hover {
  background-color: var(--primary-hover);
  transform: translateY(-1px);
}

.btn.secondary {
  background-color: var(--secondary);
  color: var(--primary);
}

.btn.secondary:hover {
  background-color: var(--secondary-hover);
  transform: translateY(-1px);
}

/* ==========================================================================
   3. NAVIGATION HEADER
   ========================================================================== */
.nav {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px 5%;
  max-width: 1400px;
  margin: 0 auto;
  border-bottom: 1px solid var(--border-color);
}

.logo a {
  font-size: 1.5rem;
  font-weight: 800;
  color: var(--dark);
  text-decoration: none;
  letter-spacing: -0.5px;
}

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

.nav-link {
  color: var(--text-muted);
  text-decoration: none;
  font-weight: 500;
  transition: var(--transition);
}

.nav-link:hover {
  color: var(--dark);
}

/* ==========================================================================
   4. HERO SECTION
   ========================================================================== */
.hero {
  display: grid;
  grid-template-columns: 1fr 1fr;
  align-items: center;
  gap: 60px;
  max-width: 1400px;
  margin: 0 auto;
  padding: 80px 5%;
}

.hero-content h1 {
  font-size: 3.5rem;
  line-height: 1.15;
  font-weight: 800;
  letter-spacing: -1.5px;
  margin-bottom: 24px;
}

.hero-content p {
  font-size: 1.25rem;
  color: var(--text-muted);
  margin-bottom: 40px;
  max-width: 540px;
}

.hero-buttons {
  display: flex;
  gap: 16px;
}

/* Overlapping Responsive Cards */
.hero-visual {
  position: relative;
  height: 400px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.card {
  width: 320px;
  height: 200px;
  border-radius: 16px;
  position: absolute;
  box-shadow: 0 20px 40px rgba(15, 23, 42, 0.15);
  transition: var(--transition);
  padding: 24px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.card.physical {
  background: linear-gradient(135deg, #1e293b 0%, #0f172a 100%);
  transform: rotate(-8deg) translateX(-30px);
  z-index: 2;
  border: 1px solid rgba(255, 255, 255, 0.1);
}

.card.virtual {
  background: linear-gradient(135deg, var(--primary) 0%, #004488 100%);
  transform: rotate(4deg) translateX(40px) translateY(20px);
  z-index: 1;
  opacity: 0.85;
}

.card-brand {
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--light);
  letter-spacing: -0.5px;
}

/* Card Payment Network Identifier Styles */
.card-network {
  font-size: 1.125rem;
  font-weight: 600;
  color: rgba(255, 255, 255, 0.9);
  text-align: right;
  font-style: italic;
  letter-spacing: 0.5px;
}

/* Card Hover Interactions */
.hero-visual:hover .card.physical {
  transform: rotate(-4deg) translateX(-15px) translateY(-10px);
}

.hero-visual:hover .card.virtual {
  transform: rotate(8deg) translateX(55px) translateY(10px);
  opacity: 1;
}

/* ==========================================================================
   5. FEATURES GRID (4 Columns Optimized)
   ========================================================================== */
.features {
  background-color: var(--gray-bg);
  padding: 100px 5%;
  border-top: 1px solid var(--border-color);
  border-bottom: 1px solid var(--border-color);
}

.features h2 {
  text-align: center;
  font-size: 2.5rem;
  font-weight: 800;
  letter-spacing: -0.5px;
  margin-bottom: 60px;
}

.grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr); 
  gap: 24px;
  max-width: 1400px;
  margin: 0 auto;
}

.feature {
  background-color: var(--light);
  padding: 40px;
  border-radius: var(--radius);
  border: 1px solid var(--border-color);
  transition: var(--transition);
}

.feature:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 30px rgba(15, 23, 42, 0.04);
}

.feature h3 {
  font-size: 1.5rem;
  font-weight: 700;
  margin-bottom: 16px;
}

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

/* ==========================================================================
   6. WALLET DASHBOARD PREVIEW SECTION
   ========================================================================== */
.wallet {
  padding: 100px 5%;
  text-align: center;
  max-width: 1400px;
  margin: 0 auto;
}

.wallet-content h2 {
  font-size: 2.5rem;
  font-weight: 800;
  margin-bottom: 16px;
}

.wallet-content p {
  color: var(--text-muted);
  font-size: 1.125rem;
  margin-bottom: 48px;
  max-width: 700px;
  margin-left: auto;
  margin-right: auto;
}

.wallet-actions {
  display: flex;
  justify-content: center;
  gap: 16px;
  flex-wrap: wrap;
}

.wallet-btn {
  display: inline-block;
  padding: 16px 32px;
  background-color: var(--light);
  color: var(--dark);
  text-decoration: none;
  font-weight: 600;
  border-radius: var(--radius);
  border: 1px solid var(--border-color);
  transition: var(--transition);
}

.wallet-btn:hover {
  border-color: var(--primary);
  color: var(--primary);
  background-color: var(--secondary);
}

/* ==========================================================================
   7. CTA SECTION
   ========================================================================== */
.cta {
  background-color: var(--dark);
  color: var(--light);
  padding: 100px 5%;
  text-align: center;
}

.cta-content {
  max-width: 600px;
  margin: 0 auto;
}

.cta-content h2 {
  font-size: 2.75rem;
  font-weight: 800;
  margin-bottom: 16px;
  letter-spacing: -1px;
}

.cta-content p {
  color: #94a3b8; 
  font-size: 1.125rem;
  margin-bottom: 40px;
}

/* ==========================================================================
   8. FOOTER WITH WHITE-LABEL COMPLIANCE STYLING
   ========================================================================== */
footer {
  background-color: var(--light);
  border-top: 1px solid var(--border-color);
  padding: 60px 5% 40px 5%;
}

.footer-container {
  max-width: 1400px;
  margin: 0 auto;
}

.footer-links {
  display: flex;
  justify-content: center;
  gap: 32px;
  margin-bottom: 40px;
  flex-wrap: wrap;
}

.footer-links a {
  color: var(--text-muted);
  text-decoration: none;
  font-size: 0.9rem;
  font-weight: 500;
  transition: var(--transition);
}

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

.footer-compliance {
  border-top: 1px solid var(--border-color);
  padding-top: 30px;
  text-align: center;
}

.footer-compliance p:first-of-type {
  font-weight: 600;
  font-size: 0.95rem;
  margin-bottom: 16px;
  color: var(--dark);
}

.compliance-text {
  font-size: 0.775rem; /* Legal small-print standard */
  color: var(--text-muted);
  line-height: 1.7;
  max-width: 1000px;
  margin: 0 auto 16px auto;
  text-align: justify;
  text-justify: inter-word;
}

/* ==========================================================================
   9. RESPONSIVE BREAKPOINTS (Mobile Optimized)
   ========================================================================== */
@media (max-width: 1200px) {
  .grid {
    grid-template-columns: repeat(2, 1fr); /* Clean 2x2 grid on medium viewports */
  }
}

@media (max-width: 1024px) {
  .hero {
    grid-template-columns: 1fr;
    text-align: center;
    gap: 40px;
    padding: 60px 5%;
  }

  .hero-content p {
    margin: 0 auto 40px auto;
  }

  .hero-buttons {
    justify-content: center;
  }
}

@media (max-width: 768px) {
  .nav {
    padding: 16px 5%;
  }
  
  .hero-content h1 {
    font-size: 2.5rem;
  }

  .grid {
    grid-template-columns: 1fr; /* Single column stack on phones */
  }

  .hero-visual {
    height: 320px;
  }

  .card {
    width: 260px;
    height: 165px;
  }

  .footer-links {
    flex-direction: column;
    align-items: center;
    gap: 16px;
  }
  
  .compliance-text {
    text-align: left;
  }
}