/* ===== Reset & Base ===== */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

:root {
  --primary: #1a1ab0;
  --primary-dark: #12128a;
  --primary-light: #3d3dd4;
  --accent: #6c63ff;
  --text: #1a1a2e;
  --text-muted: #64748b;
  --bg: #ffffff;
  --bg-alt: #f8f9ff;
  --border: #e2e8f0;
  --shadow: 0 4px 24px rgba(26, 26, 176, 0.08);
  --shadow-lg: 0 12px 48px rgba(26, 26, 176, 0.15);
  --radius: 16px;
  --radius-sm: 10px;
  --transition: 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  color: var(--text);
  background: var(--bg);
  line-height: 1.6;
  overflow-x: hidden;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

a {
  text-decoration: none;
  color: inherit;
}

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
}

/* ===== Buttons ===== */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px 24px;
  border-radius: 50px;
  font-weight: 600;
  font-size: 0.95rem;
  border: 2px solid transparent;
  cursor: pointer;
  transition: var(--transition);
  white-space: nowrap;
}

.btn--primary {
  background: var(--primary);
  color: #fff;
}

.btn--primary:hover {
  background: var(--primary-dark);
  transform: translateY(-2px);
  box-shadow: var(--shadow-lg);
}

.btn--outline {
  background: transparent;
  color: var(--primary);
  border-color: var(--primary);
}

.btn--outline:hover {
  background: var(--primary);
  color: #fff;
}

.btn--white {
  background: #fff;
  color: var(--primary);
}

.btn--white:hover {
  background: #f0f0ff;
  transform: translateY(-2px);
  box-shadow: var(--shadow-lg);
}

.btn--lg {
  padding: 16px 32px;
  font-size: 1.05rem;
}

.btn--full {
  width: 100%;
}

/* ===== Header ===== */
.header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
  transition: var(--transition);
}

.header--scrolled {
  box-shadow: var(--shadow);
}

.header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 72px;
  gap: 24px;
}

.header__logo img {
  height: 36px;
  width: auto;
}

.nav {
  display: flex;
  gap: 32px;
}

.nav__link {
  font-weight: 500;
  font-size: 0.95rem;
  color: var(--text-muted);
  transition: var(--transition);
  position: relative;
}

.nav__link::after {
  content: '';
  position: absolute;
  bottom: -4px;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--primary);
  transition: var(--transition);
}

.nav__link:hover {
  color: var(--primary);
}

.nav__link:hover::after {
  width: 100%;
}

.header__cta {
  display: none;
}

.menu-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 4px;
}

.menu-toggle span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--text);
  transition: var(--transition);
  border-radius: 2px;
}

/* ===== Hero ===== */
.hero {
  position: relative;
  padding: 140px 0 80px;
  overflow: hidden;
}

.hero__bg {
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, #f0f0ff 0%, #ffffff 50%, #e8f4ff 100%);
  z-index: -1;
}

.hero__bg::before {
  content: '';
  position: absolute;
  top: -200px;
  right: -200px;
  width: 600px;
  height: 600px;
  background: radial-gradient(circle, rgba(26, 26, 176, 0.08) 0%, transparent 70%);
  border-radius: 50%;
}

.hero__inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: center;
}

.hero__badge {
  display: inline-block;
  padding: 6px 16px;
  background: rgba(26, 26, 176, 0.1);
  color: var(--primary);
  border-radius: 50px;
  font-size: 0.85rem;
  font-weight: 600;
  margin-bottom: 20px;
}

.hero__title {
  font-size: clamp(2rem, 5vw, 3.2rem);
  font-weight: 800;
  line-height: 1.15;
  margin-bottom: 20px;
  letter-spacing: -0.02em;
}

.text-gradient {
  background: linear-gradient(135deg, var(--primary) 0%, var(--accent) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.hero__subtitle {
  font-size: 1.15rem;
  color: var(--text-muted);
  margin-bottom: 32px;
  max-width: 520px;
}

.hero__actions {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
  margin-bottom: 40px;
}

.hero__stats {
  display: flex;
  gap: 40px;
}

.hero__stat {
  display: flex;
  flex-direction: column;
}

.hero__stat strong {
  font-size: 1.8rem;
  font-weight: 800;
  color: var(--primary);
  line-height: 1;
}

.hero__stat span {
  font-size: 0.85rem;
  color: var(--text-muted);
  margin-top: 4px;
}

.hero__visual {
  position: relative;
  display: flex;
  justify-content: center;
}

.phone-mockup {
  position: relative;
  width: 280px;
  border-radius: 32px;
  overflow: hidden;
  box-shadow: var(--shadow-lg);
  border: 4px solid #1a1a2e;
}

.phone-mockup__img {
  width: 100%;
  border-radius: 28px;
}

.hero__float {
  position: absolute;
  border-radius: 20px;
  overflow: hidden;
  box-shadow: var(--shadow-lg);
  border: 3px solid #fff;
}

.hero__float--1 {
  bottom: -20px;
  left: -40px;
  width: 140px;
}

.hero__float-img {
  width: 100%;
}

/* ===== Section Common ===== */
.section-header {
  text-align: center;
  margin-bottom: 56px;
}

.section-header--light .section-title,
.section-header--light .section-desc {
  color: #fff;
}

.section-header--light .section-desc {
  opacity: 0.85;
}

.section-tag {
  display: inline-block;
  padding: 6px 16px;
  background: rgba(26, 26, 176, 0.1);
  color: var(--primary);
  border-radius: 50px;
  font-size: 0.8rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: 16px;
}

.section-tag--light {
  background: rgba(255, 255, 255, 0.15);
  color: #fff;
}

.section-title {
  font-size: clamp(1.8rem, 4vw, 2.5rem);
  font-weight: 800;
  margin-bottom: 16px;
  letter-spacing: -0.02em;
}

.section-desc {
  font-size: 1.1rem;
  color: var(--text-muted);
  max-width: 600px;
  margin: 0 auto;
}

/* ===== Features ===== */
.features {
  padding: 100px 0;
  background: var(--bg);
}

.features__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.feature-card {
  padding: 32px;
  background: var(--bg-alt);
  border-radius: var(--radius);
  border: 1px solid var(--border);
  transition: var(--transition);
}

.feature-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
  border-color: transparent;
}

.feature-card__icon {
  width: 56px;
  height: 56px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--primary);
  color: #fff;
  border-radius: 14px;
  margin-bottom: 20px;
}

.feature-card h3 {
  font-size: 1.2rem;
  font-weight: 700;
  margin-bottom: 10px;
}

.feature-card p {
  color: var(--text-muted);
  font-size: 0.95rem;
  line-height: 1.7;
}

/* ===== App Showcase ===== */
.app-showcase {
  padding: 100px 0;
  background: var(--bg-alt);
}

.showcase__grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
}

.showcase__item {
  background: #fff;
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
  transition: var(--transition);
}

.showcase__item:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-lg);
}

.showcase__item img {
  width: 100%;
  aspect-ratio: 9/16;
  object-fit: cover;
  object-position: top;
}

.showcase__caption {
  padding: 20px;
}

.showcase__caption h4 {
  font-size: 1rem;
  font-weight: 700;
  margin-bottom: 4px;
}

.showcase__caption p {
  font-size: 0.85rem;
  color: var(--text-muted);
}

/* ===== Homologação ===== */
.homologacao {
  padding: 100px 0;
  background: linear-gradient(180deg, var(--primary-dark) 0%, var(--primary) 100%);
}

.homologacao__banner {
  margin-bottom: 48px;
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow-lg);
  background: #fff;
  padding: 16px;
}

.homologacao__full-img {
  width: 100%;
  border-radius: calc(var(--radius) - 8px);
}

.acquirers__grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 20px;
}

.acquirer-card {
  background: rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(8px);
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: var(--radius);
  overflow: hidden;
  transition: var(--transition);
}

.acquirer-card:hover {
  transform: translateY(-4px);
  background: rgba(255, 255, 255, 0.18);
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.2);
}

.acquirer-card__img-wrap {
  background: #fff;
  padding: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 120px;
}

.acquirer-card__img {
  max-height: 48px;
  width: auto;
  max-width: 160px;
  object-fit: contain;
}

.acquirer-card__img--full {
  max-height: none;
  max-width: 100%;
  width: 100%;
  height: auto;
  object-fit: contain;
}

.acquirer-card__body {
  padding: 16px 20px 20px;
}

.acquirer-card__badge {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 4px 10px;
  background: rgba(34, 197, 94, 0.2);
  color: #86efac;
  border-radius: 50px;
  font-size: 0.7rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  margin-bottom: 10px;
}

.acquirer-card__badge svg {
  width: 12px;
  height: 12px;
}

.acquirer-card__devices {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.acquirer-card__device {
  padding: 3px 8px;
  background: rgba(255, 255, 255, 0.12);
  color: rgba(255, 255, 255, 0.85);
  border-radius: 6px;
  font-size: 0.72rem;
  font-weight: 500;
}

/* ===== CTA ===== */
.cta {
  padding: 80px 0;
  background: var(--bg-alt);
}

.cta__inner {
  text-align: center;
  padding: 64px 40px;
  background: linear-gradient(135deg, var(--primary) 0%, var(--accent) 100%);
  border-radius: 24px;
  color: #fff;
}

.cta__inner h2 {
  font-size: clamp(1.6rem, 3vw, 2.2rem);
  font-weight: 800;
  margin-bottom: 12px;
}

.cta__inner p {
  font-size: 1.1rem;
  opacity: 0.9;
  margin-bottom: 28px;
}

/* ===== Contact ===== */
.contact {
  padding: 100px 0;
}

.contact__grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: start;
}

.contact__logo {
  margin-bottom: 20px;
}

.contact__desc {
  color: var(--text-muted);
  margin-bottom: 28px;
  line-height: 1.7;
}

.contact__details {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.contact__item {
  display: flex;
  align-items: center;
  gap: 12px;
  font-weight: 500;
  color: var(--text);
  transition: var(--transition);
}

.contact__item:hover {
  color: var(--primary);
}

.contact__card {
  background: var(--bg-alt);
  padding: 40px;
  border-radius: var(--radius);
  border: 1px solid var(--border);
}

.contact__card h3 {
  font-size: 1.4rem;
  font-weight: 700;
  margin-bottom: 8px;
}

.contact__card > p {
  color: var(--text-muted);
  margin-bottom: 24px;
}

.contact__form {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.contact__form input,
.contact__form textarea {
  padding: 14px 18px;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  font-family: inherit;
  font-size: 0.95rem;
  transition: var(--transition);
  background: #fff;
}

.contact__form input:focus,
.contact__form textarea:focus {
  outline: none;
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(26, 26, 176, 0.1);
}

.contact__form textarea {
  resize: vertical;
}

/* ===== Footer ===== */
.footer {
  padding: 32px 0;
  background: var(--text);
  color: rgba(255, 255, 255, 0.6);
}

.footer__inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.9rem;
}

/* ===== WhatsApp Float ===== */
.whatsapp-float {
  position: fixed;
  bottom: 28px;
  right: 28px;
  width: 60px;
  height: 60px;
  background: #25d366;
  color: #fff;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 20px rgba(37, 211, 102, 0.4);
  z-index: 999;
  transition: var(--transition);
}

.whatsapp-float:hover {
  transform: scale(1.1);
  box-shadow: 0 6px 28px rgba(37, 211, 102, 0.5);
}

/* ===== Animations ===== */
.fade-in {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

.fade-in.visible {
  opacity: 1;
  transform: translateY(0);
}

/* ===== Responsive ===== */
@media (min-width: 769px) {
  .header__cta {
    display: inline-flex;
  }
}

@media (max-width: 1024px) {
  .features__grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .showcase__grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .hero__inner {
    grid-template-columns: 1fr;
    text-align: center;
  }

  .hero__subtitle {
    margin-left: auto;
    margin-right: auto;
  }

  .hero__actions {
    justify-content: center;
  }

  .hero__stats {
    justify-content: center;
  }

  .hero__visual {
    margin-top: 20px;
  }

  .hero__float--1 {
    left: 10%;
  }
}

@media (max-width: 768px) {
  .nav {
    position: fixed;
    top: 72px;
    left: 0;
    right: 0;
    background: #fff;
    flex-direction: column;
    padding: 24px;
    gap: 16px;
    border-bottom: 1px solid var(--border);
    transform: translateY(-120%);
    opacity: 0;
    transition: var(--transition);
    pointer-events: none;
  }

  .nav--open {
    transform: translateY(0);
    opacity: 1;
    pointer-events: all;
  }

  .menu-toggle {
    display: flex;
  }

  .menu-toggle--active span:nth-child(1) {
    transform: rotate(45deg) translate(5px, 5px);
  }

  .menu-toggle--active span:nth-child(2) {
    opacity: 0;
  }

  .menu-toggle--active span:nth-child(3) {
    transform: rotate(-45deg) translate(5px, -5px);
  }

  .features__grid {
    grid-template-columns: 1fr;
  }

  .showcase__grid {
    grid-template-columns: 1fr 1fr;
    gap: 16px;
  }

  .contact__grid {
    grid-template-columns: 1fr;
    gap: 40px;
  }

  .hero {
    padding: 120px 0 60px;
  }

  .hero__float--1 {
    display: none;
  }

  .footer__inner {
    flex-direction: column;
    gap: 8px;
    text-align: center;
  }

  .acquirers__grid {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 480px) {
  .showcase__grid {
    grid-template-columns: 1fr;
  }

  .acquirers__grid {
    grid-template-columns: 1fr;
  }

  .hero__actions {
    flex-direction: column;
  }

  .hero__actions .btn {
    width: 100%;
  }

  .cta__inner {
    padding: 40px 24px;
  }
}
