/*
   Landing Page - Proteção do Cartão
   Clean App Store / Play Store Visual Identity Style Sheet
   Designed for Maximum Credibility, Security and Trust
*/

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

:root {
  /* Color Palette - Google Play / App Store Inspired */
  --bg-body: #f8fafc;
  --bg-card: #ffffff;
  --bg-alt: #f1f5f9;
  
  --primary: #0b57d0; /* Unified App Store / Play Store Blue */
  --primary-hover: #0842a0;
  --primary-light: #e8f0fe;
  
  --success: #0b57d0; /* Unified Blue for maximum credibility */
  --success-hover: #0842a0;
  --success-light: #e8f0fe;
  
  --border-light: #e2e8f0;
  --border-hover: #cbd5e1;
  
  /* Text Colors */
  --text-main: #1e293b;
  --text-secondary: #475569;
  --text-muted: #64748b;
  --text-light: #94a3b8;
  
  /* Fonts */
  --font-headings: 'Outfit', 'Inter', sans-serif;
  --font-body: 'Inter', sans-serif;
  
  /* Radii & Shadows */
  --radius-xl: 18px;
  --radius-lg: 12px;
  --radius-md: 8px;
  --radius-sm: 6px;
  
  --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
  --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.05), 0 2px 4px -2px rgba(0, 0, 0, 0.05);
  --shadow-premium: 0 20px 25px -5px rgba(0, 0, 0, 0.05), 0 8px 10px -6px rgba(0, 0, 0, 0.05);
  
  --transition-smooth: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Base resets & styles */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: 90px;
}

body {
  background-color: var(--bg-body);
  color: var(--text-main);
  font-family: var(--font-body);
  line-height: 1.5;
  overflow-x: hidden;
  position: relative;
  -webkit-font-smoothing: antialiased;
}

/* Container */
.container {
  width: 100%;
  max-width: 1140px;
  margin: 0 auto;
  padding: 0 20px;
}

/* Buttons styling - Clean Google/Apple Style */
.btn-primary, .btn-secondary, .btn-download {
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 15px;
  padding: 12px 24px;
  border-radius: var(--radius-md);
  border: none;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  transition: var(--transition-smooth);
  text-decoration: none;
}

.btn-primary {
  background-color: var(--success);
  color: #ffffff;
  box-shadow: var(--shadow-sm);
}

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

.btn-secondary {
  background-color: #ffffff;
  color: var(--primary);
  border: 1px solid var(--border-light);
  box-shadow: var(--shadow-sm);
}

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

.btn-download {
  background-color: var(--primary-light);
  color: var(--primary);
  font-size: 14px;
  padding: 8px 18px;
  border-radius: 30px;
}

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

/* Header */
.header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 1000;
  background-color: rgba(255, 255, 255, 0.9);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border-light);
  transition: var(--transition-smooth);
}

.header.scrolled {
  box-shadow: var(--shadow-md);
}

.header-container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  height: 80px;
  transition: var(--transition-smooth);
}

.header.scrolled .header-container {
  height: 64px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  color: var(--text-main);
}

.brand-icon {
  width: 32px;
  height: 32px;
  color: var(--primary);
}

.brand-name {
  font-family: var(--font-headings);
  font-weight: 700;
  font-size: 20px;
  letter-spacing: -0.02em;
}

.nav {
  display: flex;
  gap: 28px;
}

.nav a {
  color: var(--text-secondary);
  text-decoration: none;
  font-weight: 500;
  font-size: 15px;
  transition: var(--transition-smooth);
  position: relative;
  padding: 6px 0;
}

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

/* Sections general */
section {
  padding: 80px 0;
  position: relative;
}

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

.section-header h2 {
  font-size: clamp(26px, 3.5vw, 32px);
  font-weight: 700;
  color: var(--text-main);
  margin-bottom: 12px;
  font-family: var(--font-headings);
}

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

/* Hero Section - Clean store layout */
.hero-section {
  padding-top: 140px;
  padding-bottom: 70px;
  background-color: #ffffff;
  border-bottom: 1px solid var(--border-light);
}

.hero-container {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  align-items: center;
  gap: 48px;
}

.hero-content {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
}

.rating-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background-color: var(--bg-body);
  border: 1px solid var(--border-light);
  padding: 6px 12px;
  border-radius: 30px;
  margin-bottom: 20px;
  font-size: 13px;
  color: var(--text-secondary);
  font-weight: 500;
}

.rating-badge .stars {
  color: #fbbf24;
  display: flex;
  gap: 2px;
}

.rating-score {
  font-weight: 700;
  color: var(--text-main);
}

.rating-badge .divider {
  color: var(--border-light);
}

.hero-content h1 {
  font-size: clamp(34px, 4.8vw, 48px);
  line-height: 1.15;
  font-weight: 700;
  margin-bottom: 16px;
  letter-spacing: -0.02em;
  color: var(--text-main);
  font-family: var(--font-headings);
}

.hero-subtitle {
  font-size: 16px;
  color: var(--text-secondary);
  margin-bottom: 30px;
  line-height: 1.6;
}

.hero-actions {
  display: flex;
  gap: 14px;
  margin-bottom: 32px;
}

.hero-actions .btn-primary {
  padding: 12px 28px;
}

.hero-actions .btn-secondary {
  padding: 12px 28px;
}

.card-brands {
  font-size: 13px;
  color: var(--text-muted);
  border-left: 2px solid var(--primary);
  padding-left: 10px;
}

/* 3D Stacked Credit Cards Mockup - Styled for clean mode */
.hero-mockup {
  position: relative;
  display: flex;
  justify-content: center;
  align-items: center;
  height: 340px;
}

.cards-stack {
  position: relative;
  width: 320px;
  height: 200px;
  perspective: 1200px;
}

.card-visual {
  position: absolute;
  width: 290px;
  height: 183px;
  border-radius: var(--radius-lg);
  padding: 20px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.08), inset 0 1px 1px rgba(255, 255, 255, 0.2);
  transition: transform 0.8s cubic-bezier(0.25, 1, 0.5, 1);
  transform-style: preserve-3d;
  overflow: hidden;
}

.card-glow {
  position: absolute;
  top: -50%;
  left: -50%;
  width: 200%;
  height: 200%;
  background: radial-gradient(circle, rgba(255, 255, 255, 0.05) 0%, transparent 60%);
  pointer-events: none;
  transform: rotate(-30deg);
}

.card-visa {
  background: linear-gradient(135deg, #1e3a8a 0%, #0f172a 100%);
  border: 1px solid rgba(255, 255, 255, 0.08);
  transform: rotateY(-15deg) rotateX(10deg) rotateZ(-4deg) translateZ(30px);
  z-index: 5;
}

.card-mastercard {
  background: linear-gradient(135deg, #3b0764 0%, #1e1b4b 100%);
  border: 1px solid rgba(255, 255, 255, 0.05);
  transform: rotateY(-20deg) rotateX(10deg) rotateZ(6deg) translateZ(-40px) translateX(60px) translateY(-10px);
  z-index: 2;
  opacity: 0.85;
}

/* Hover separation effect */
.hero-mockup:hover .card-visa {
  transform: rotateY(-5deg) rotateX(5deg) rotateZ(-2deg) translateZ(80px) translateY(-10px) translateX(-10px);
}

.hero-mockup:hover .card-mastercard {
  transform: rotateY(-15deg) rotateX(8deg) rotateZ(10deg) translateZ(0px) translateX(90px) translateY(15px);
  opacity: 0.98;
}

/* Credit Card Sub-elements */
.card-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.chip {
  width: 38px;
  height: 28px;
  background: linear-gradient(135deg, #f59e0b 0%, #d97706 100%);
  border-radius: 5px;
  position: relative;
}

.chip::before {
  content: '';
  position: absolute;
  top: 4px;
  left: 4px;
  right: 4px;
  bottom: 4px;
  border: 1px solid rgba(0, 0, 0, 0.1);
  border-radius: 3px;
}

.contactless {
  width: 20px;
  height: 20px;
  color: rgba(255, 255, 255, 0.6);
}

.card-number {
  font-family: 'Courier New', monospace;
  font-size: 18px;
  font-weight: 700;
  letter-spacing: 1.5px;
  color: #ffffff;
  text-shadow: 0 1px 3px rgba(0, 0, 0, 0.4);
}

.card-footer {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
}

.card-holder {
  display: flex;
  flex-direction: column;
}

.card-holder .label {
  font-size: 8px;
  color: rgba(255, 255, 255, 0.5);
  letter-spacing: 0.5px;
  text-transform: uppercase;
}

.card-holder .name {
  font-size: 12px;
  font-weight: 600;
  color: #ffffff;
  letter-spacing: 0.5px;
}

.card-holder .status {
  font-size: 8px;
  color: var(--accent-light);
  font-weight: 700;
  margin-top: 1px;
}

.brand-logo {
  font-family: var(--font-headings);
  font-weight: 800;
  font-style: italic;
  font-size: 20px;
  color: #ffffff;
}

.mastercard-logo {
  display: flex;
  align-items: center;
}

.mastercard-logo .circle-red, .mastercard-logo .circle-orange {
  width: 16px;
  height: 16px;
  border-radius: 50%;
  display: inline-block;
}

.mastercard-logo .circle-red {
  background: #eb001b;
  margin-right: -6px;
}

.mastercard-logo .circle-orange {
  background: #ff5f00;
}

/* Brands Bar - Styled cleanly */
.brands-bar {
  background-color: #ffffff;
  border-bottom: 1px solid var(--border-light);
}

.brand-item {
  box-shadow: var(--shadow-sm);
  background-color: var(--bg-body);
}

/* Recursos / Features Section */
.features-section {
  background-color: #ffffff;
  border-bottom: 1px solid var(--border-light);
}

.features-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 24px;
}

.feature-card {
  background-color: var(--bg-body);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-lg);
  padding: 30px 24px;
  transition: var(--transition-smooth);
}

.feature-card:hover {
  transform: translateY(-4px);
  background-color: #ffffff;
  border-color: var(--primary-light);
  box-shadow: var(--shadow-md);
}

.feature-icon {
  width: 44px;
  height: 44px;
  border-radius: var(--radius-md);
  background-color: var(--primary-light);
  color: var(--primary);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 20px;
  transition: var(--transition-smooth);
}

.feature-card:hover .feature-icon {
  background-color: var(--primary);
  color: #ffffff;
}

.feature-icon svg {
  width: 22px;
  height: 22px;
}

.feature-card h3 {
  font-size: 18px;
  font-weight: 700;
  margin-bottom: 10px;
  color: var(--text-main);
}

.feature-card p {
  font-size: 14px;
  color: var(--text-secondary);
  line-height: 1.5;
}

/* Reviews / Avaliações Section - Google Play Style */
.reviews-section {
  background-color: var(--bg-body);
  border-bottom: 1px solid var(--border-light);
}

.rating-summary {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  margin-top: 10px;
}

.big-rating {
  font-size: 42px;
  font-weight: 700;
  color: var(--text-main);
}

.rating-meta {
  display: flex;
  flex-direction: column;
}

.stars-gold {
  color: #fbbf24;
  font-size: 16px;
  letter-spacing: 1px;
}

.rating-sub {
  font-size: 13px;
  color: var(--text-secondary);
}

.reviews-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 24px;
}

.review-card {
  background-color: #ffffff;
  border: 1px solid var(--border-light);
  border-radius: var(--radius-lg);
  padding: 24px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  box-shadow: var(--shadow-sm);
  transition: var(--transition-smooth);
}

.review-card:hover {
  border-color: var(--border-hover);
  box-shadow: var(--shadow-md);
}

.review-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  margin-bottom: 16px;
}

.reviewer-info h4 {
  font-size: 15px;
  font-weight: 600;
  color: var(--text-main);
}

.review-date {
  font-size: 12px;
  color: var(--text-muted);
}

.review-text {
  font-size: 13.5px;
  color: var(--text-secondary);
  line-height: 1.5;
  margin-bottom: 16px;
}

.review-footer {
  border-top: 1px solid var(--border-light);
  padding-top: 12px;
}

.helpful-badge {
  font-size: 12px;
  color: var(--text-muted);
  display: flex;
  align-items: center;
  gap: 6px;
}

.helpful-badge svg {
  width: 12px;
  height: 12px;
}

/* Segurança dos Dados Section - Google Play Security Panel inspired */
.security-section {
  background-color: #ffffff;
  border-bottom: 1px solid var(--border-light);
}

.security-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 24px;
}

.security-card {
  background-color: var(--bg-body);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-lg);
  padding: 30px 24px;
  text-align: center;
  transition: var(--transition-smooth);
}

.security-card:hover {
  background-color: #ffffff;
  border-color: var(--success-light);
  box-shadow: var(--shadow-md);
}

.security-icon {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background-color: var(--success-light);
  color: var(--success);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 20px;
  transition: var(--transition-smooth);
}

.security-card:hover .security-icon {
  background-color: var(--success);
  color: #ffffff;
}

.security-icon svg {
  width: 20px;
  height: 20px;
}

.security-card h3 {
  font-size: 17px;
  font-weight: 700;
  margin-bottom: 10px;
  color: var(--text-main);
}

.security-card p {
  font-size: 13.5px;
  color: var(--text-secondary);
}

/* CTA Section - Clean trust block */
.cta-section {
  text-align: center;
  padding: 90px 0;
  background-color: var(--bg-body);
}

.cta-container {
  display: flex;
  flex-direction: column;
  align-items: center;
  max-width: 600px;
}

.cta-section h2 {
  font-size: clamp(26px, 4vw, 36px);
  font-weight: 700;
  margin-bottom: 12px;
  color: var(--text-main);
  font-family: var(--font-headings);
}

.cta-section p {
  font-size: 16px;
  color: var(--text-secondary);
  margin-bottom: 30px;
}

.btn-large {
  padding: 14px 36px;
  font-size: 17px;
}

/* Footer Section - Clean Gray */
.footer {
  background-color: #ffffff;
  border-top: 1px solid var(--border-light);
  padding: 60px 0 30px 0;
}

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

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

.footer-desc {
  color: var(--text-secondary);
  font-size: 14px;
  max-width: 280px;
}

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

.footer-col {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.footer-col h5 {
  font-size: 13px;
  font-weight: 700;
  color: var(--text-main);
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin-bottom: 6px;
}

.footer-col a {
  color: var(--text-secondary);
  text-decoration: none;
  font-size: 13.5px;
  transition: var(--transition-smooth);
}

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

.footer-bottom {
  border-top: 1px solid var(--border-light);
  padding-top: 30px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  color: var(--text-muted);
  font-size: 13px;
  flex-wrap: wrap;
  gap: 12px;
}

/* Responsive media queries */
@media (max-width: 992px) {
  .hero-container {
    grid-template-columns: 1fr;
    text-align: center;
    gap: 32px;
  }
  
  .hero-content {
    align-items: center;
  }
  
  .rating-badge {
    margin-bottom: 16px;
  }
  
  .hero-subtitle {
    max-width: 550px;
  }
  
  .card-brands {
    border-left: none;
    border-top: 2px solid var(--primary);
    padding-left: 0;
    padding-top: 10px;
  }
  
  .footer-grid {
    grid-template-columns: 1fr;
    gap: 30px;
  }
}

@media (max-width: 768px) {
  section {
    padding: 60px 0;
  }
  
  .header-container {
    height: 70px;
  }
  
  .nav {
    display: none;
  }
  
  .hero-section {
    padding-top: 110px;
    padding-bottom: 60px;
  }
  
  .hero-mockup {
    height: 280px;
  }
  
  .cards-stack {
    width: 260px;
    height: 160px;
  }
  
  .card-visual {
    width: 230px;
    height: 145px;
    padding: 14px;
  }
  
  .card-number {
    font-size: 14px;
  }
  
  .brand-logo {
    font-size: 16px;
  }
  
  .mastercard-logo .circle-red, .mastercard-logo .circle-orange {
    width: 14px;
    height: 14px;
  }
  
  .hero-actions {
    width: 100%;
    flex-direction: column;
    gap: 10px;
  }
  
  .hero-actions button, .hero-actions a {
    width: 100%;
  }
  
  .footer-links {
    grid-template-columns: 1fr;
    gap: 20px;
  }
  
  .footer-bottom {
    flex-direction: column;
    text-align: center;
  }
}

/* Otimizações Mobile Ultra Premium */
@media (max-width: 600px) {
  .play-store-metrics {
    overflow-x: auto !important;
    justify-content: flex-start !important;
    gap: 16px !important;
    padding: 14px 10px !important;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none !important; /* Firefox */
  }
  
  .play-store-metrics::-webkit-scrollbar {
    display: none !important; /* Chrome/Safari */
  }
  
  .play-store-metrics .metric-item {
    flex: 0 0 100px !important; /* Tamanho fixo confortável para rolagem lateral */
    border-right: 1px solid var(--border-light) !important;
  }
  
  .play-store-metrics .metric-item:last-child {
    border-right: none !important;
  }
}

@media (max-width: 480px) {
  /* Cabeçalho do App no Hero */
  .app-store-header {
    gap: 14px !important;
    margin-bottom: 20px !important;
  }
  
  .app-icon-container {
    width: 68px !important;
    height: 68px !important;
    border-radius: 14px !important;
  }
  
  .app-icon-container svg {
    width: 38px !important;
    height: 38px !important;
  }
  
  .app-meta-header h2 {
    font-size: 20px !important;
  }
  
  .app-meta-header p {
    font-size: 13px !important;
  }
  
  /* Cabeçalho de Navegação Superior */
  .header-container {
    height: 60px !important;
  }
  
  .brand-name {
    font-size: 16px !important;
  }
  
  .brand-icon {
    width: 24px !important;
    height: 24px !important;
  }
  
  .btn-download {
    padding: 6px 12px !important;
    font-size: 13px !important;
  }
}
