/* Clash Display (Headings) & General Sans (Body) Imports */
@import url('https://api.fontshare.com/v2/css?f[]=clash-display@400,500,600,700&display=swap');
@import url('https://api.fontshare.com/v2/css?f[]=general-sans@400,500,600,700&display=swap');

:root {
  --font-display: 'Clash Display', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  --font-body: 'General Sans', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  
  --color-cream: #F5F7FA;
  --color-forest: #0F172A;         /* Preto / Dark Slate para Títulos */
  --color-text-body: #334155;      /* Texto de corpo escuro legível */
  --color-valepay-green: #00c853;  /* Verde Destaque Principal #00c853 */
  --color-valepay-green-hover: #00E676;
  --color-valepay-darkgreen: #009624; /* Verde Escuro de acento #009624 */
  
  --color-surface-white: #FFFFFF;

  --radius-sm: 10px;
  --radius-md: 18px;
  --radius-lg: 28px;
  --radius-pill: 999px;
  
  --shadow-card-resting: 0 1px 3px rgba(15,23,42,0.03), 0 10px 30px -12px rgba(15,23,42,0.08);
  --shadow-card-hover: 0 20px 40px -14px rgba(0,200,83,0.15);
  --shadow-floating-mockup: 0 30px 70px -15px rgba(15,23,42,0.15);
}

/* Custom Reset and Styles */
* {
  box-sizing: border-box;
}

body {
  font-family: var(--font-body);
  color: var(--color-text-body);
  background-color: var(--color-cream);
  overflow-x: hidden;
  scroll-behavior: smooth;
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4, .font-display {
  font-family: var(--font-display);
  color: var(--color-forest);
}

/* Noise overlay */
.noise-overlay {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  opacity: 0.025;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noiseFilter'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.65' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noiseFilter)'/%3E%3C/svg%3E");
  pointer-events: none;
  z-index: 1;
}

/* Marquee Loop */
@keyframes marquee {
  0% { transform: translateX(0%); }
  100% { transform: translateX(-50%); }
}

.marquee-content {
  display: flex;
  width: max-content;
  animation: marquee 25s linear infinite;
}

.marquee-container:hover .marquee-content {
  animation-play-state: paused;
}

/* Scroll reveal transition classes */
.reveal-hidden {
  opacity: 0;
  transform: translateY(16px);
  transition: opacity 0.6s cubic-bezier(0.16, 1, 0.3, 1), transform 0.6s cubic-bezier(0.16, 1, 0.3, 1);
}

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

/* Custom Range Slider Styling (Simulator) */
input[type="range"]::-webkit-slider-thumb {
  -webkit-appearance: none;
  appearance: none;
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background: #00c853;
  cursor: pointer;
  border: 4px solid #FFFFFF;
  box-shadow: 0 4px 12px rgba(0, 200, 83, 0.4);
  transition: transform 0.1s ease, background 0.15s ease;
}

input[type="range"]::-webkit-slider-thumb:hover {
  transform: scale(1.15);
  background: #FFFFFF;
}

input[type="range"]::-moz-range-thumb {
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background: #00c853;
  cursor: pointer;
  border: 4px solid #FFFFFF;
  box-shadow: 0 4px 12px rgba(0, 200, 83, 0.4);
  transition: transform 0.1s ease, background 0.15s ease;
}

/* Active accordion underline */
.accordion-active-line {
  position: relative;
}
.accordion-active-line::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 2px;
  background-color: #00c853;
  transform: scaleX(1);
  transform-origin: left;
  transition: transform 0.3s ease;
}

/* Facepile overlapping images */
.facepile-img {
  margin-left: -12px;
}
.facepile-img:first-child {
  margin-left: 0;
}

/* Glow bubbles */
.glow-bubble {
  position: absolute;
  border-radius: 50%;
  filter: blur(80px);
  pointer-events: none;
  z-index: 0;
}

.glow-bubble-lime {
  background: rgba(0, 200, 83, 0.12);
}

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

.animate-float {
  animation: float 4s ease-in-out infinite;
}

.animate-float-delayed {
  animation: float 4s ease-in-out 2s infinite;
}

/* Digital Card Pattern */
.valepay-card-pattern {
  background: linear-gradient(135deg, #009624 0%, #006818 50%, #00450F 100%);
  position: relative;
  overflow: hidden;
}

.valepay-card-pattern::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at 80% 20%, rgba(0, 200, 83, 0.35) 0%, transparent 60%);
  pointer-events: none;
}

@media (prefers-reduced-motion: reduce) {
  .reveal-hidden {
    opacity: 0;
    transform: none;
    transition: opacity 0.4s ease;
  }
}
