/* ====================================================
   Gateway Essentials — Landing Page
   Design: Dark Techy / Sharp Geometry / Emerald Accent
   ==================================================== */

/* ---------- Reset & Base ---------- */
*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }

:root {
  --bg-primary: #030712;
  --bg-card: rgba(255,255,255,0.03);
  --bg-card-hover: rgba(255,255,255,0.06);
  --accent: #10B981;
  --accent-glow: rgba(16, 185, 129, 0.25);
  --accent-subtle: rgba(16, 185, 129, 0.08);
  --text-primary: #f1f5f9;
  --text-secondary: #94a3b8;
  --text-muted: #64748b;
  --border: rgba(255,255,255,0.06);
  --border-accent: rgba(16, 185, 129, 0.3);
  --radius-sm: 2px;
  --radius-md: 6px;
  --radius-lg: 12px;
  --radius-xl: 20px;
  --font-display: 'Space Grotesk', sans-serif;
  --font-body: 'Inter', sans-serif;
}

html { scroll-behavior: smooth; }

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

img { max-width: 100%; height: auto; display: block; }
a { text-decoration: none; color: inherit; }
button { cursor: pointer; border: none; background: none; font-family: inherit; }

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
}

/* ---------- Typography ---------- */
h1, h2, h3, h4 { font-family: var(--font-display); font-weight: 700; letter-spacing: -0.02em; }

.text-accent { color: var(--accent); }
.text-secondary { color: var(--text-secondary); }
.text-muted { color: var(--text-muted); }

.highlight {
  background: var(--accent-subtle);
  padding: 2px 8px;
  border-radius: var(--radius-sm);
  font-weight: 700;
  color: var(--accent);
}

/* ---------- Buttons ---------- */
.btn-primary {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  padding: 18px 40px;
  background: var(--accent);
  color: #000;
  font-weight: 800;
  font-size: 1.1rem;
  border-radius: var(--radius-sm);
  transition: transform 0.2s ease, box-shadow 0.3s ease;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 12px 40px var(--accent-glow);
}

.btn-primary:active { transform: scale(0.98); }

.btn-secondary {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 14px 32px;
  border: 1px solid var(--border-accent);
  color: var(--accent);
  font-weight: 700;
  font-size: 0.95rem;
  border-radius: var(--radius-sm);
  transition: all 0.2s ease;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.btn-secondary:hover {
  background: var(--accent-subtle);
  border-color: var(--accent);
}

/* Pulse animation for CTA */
@keyframes pulse-ring {
  0% { box-shadow: 0 0 0 0 var(--accent-glow); }
  70% { box-shadow: 0 0 0 20px rgba(16,185,129,0); }
  100% { box-shadow: 0 0 0 0 rgba(16,185,129,0); }
}
.btn-pulse { animation: pulse-ring 2.5s cubic-bezier(0.66,0,0,1) infinite; }

/* ---------- Navbar ---------- */
.navbar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  padding: 16px 0;
  transition: background 0.3s ease, backdrop-filter 0.3s ease;
}

.navbar.scrolled {
  background: rgba(3, 7, 18, 0.85);
  backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--border);
}

.navbar-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.logo {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 1.4rem;
  letter-spacing: -0.03em;
  display: flex;
  align-items: center;
  gap: 10px;
}

.logo-icon {
  width: 36px;
  height: 36px;
  background: var(--accent);
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
}

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

.nav-links { display: flex; gap: 32px; align-items: center; }
.nav-links a {
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--text-secondary);
  transition: color 0.2s ease;
}
.nav-links a:hover { color: var(--accent); }

.nav-cta {
  padding: 10px 24px;
  background: var(--accent);
  color: #000;
  font-weight: 700;
  font-size: 0.85rem;
  border-radius: var(--radius-sm);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  transition: opacity 0.2s;
}
.nav-cta:hover { opacity: 0.9; }

.mobile-menu-btn { display: none; color: var(--text-primary); }

/* ---------- Hero ---------- */
.hero {
  padding-top: 140px;
  padding-bottom: 80px;
  position: relative;
  overflow: hidden;
}

.hero::before {
  content: '';
  position: absolute;
  top: -200px;
  left: 50%;
  transform: translateX(-50%);
  width: 800px;
  height: 600px;
  background: radial-gradient(ellipse, var(--accent-glow), transparent 70%);
  pointer-events: none;
  z-index: 0;
}

.hero-content {
  position: relative;
  z-index: 1;
  text-align: center;
  max-width: 900px;
  margin: 0 auto;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 20px;
  background: var(--accent-subtle);
  border: 1px solid var(--border-accent);
  color: var(--accent);
  font-size: 0.8rem;
  font-weight: 700;
  border-radius: var(--radius-sm);
  margin-bottom: 32px;
  text-transform: uppercase;
  letter-spacing: 0.1em;
}

.hero h1 {
  font-size: clamp(2.5rem, 6vw, 4.5rem);
  line-height: 1.08;
  margin-bottom: 24px;
}

.hero p {
  font-size: 1.15rem;
  color: var(--text-secondary);
  max-width: 640px;
  margin: 0 auto 40px;
  line-height: 1.7;
}

.hero-cta {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 16px;
  margin-bottom: 56px;
}

.hero-video {
  position: relative;
  max-width: 960px;
  margin: 0 auto;
  border-radius: var(--radius-lg);
  overflow: hidden;
  border: 1px solid var(--border);
  box-shadow: 0 40px 100px rgba(0,0,0,0.5);
}

.hero-video::before {
  content: '🔊 Clique para ver a apresentação do Gateway';
  display: block;
  text-align: center;
  padding: 10px;
  background: var(--accent-subtle);
  border: 1px solid var(--border-accent);
  color: var(--accent);
  font-weight: 600;
  font-size: 0.85rem;
  border-radius: var(--radius-md);
  margin-bottom: 12px;
  animation: pulse-opacity 2s ease-in-out infinite;
}

@keyframes pulse-opacity {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.6; }
}

.hero-video iframe {
  width: 100%;
  aspect-ratio: 16 / 9;
  display: block;
  border: none;
}

/* ---------- Marquee ---------- */
.marquee-section {
  padding: 28px 0;
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  overflow: hidden;
}

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

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

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

.marquee-item {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 0 28px;
  white-space: nowrap;
  color: var(--text-muted);
  font-weight: 700;
  font-size: 0.9rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  transition: color 0.3s;
}

.marquee-item:hover { color: var(--accent); }

.marquee-item svg {
  width: 18px;
  height: 18px;
  color: var(--accent);
  flex-shrink: 0;
}

/* ---------- Acquirers Section ---------- */
.acquirers {
  padding: 80px 0;
  border-bottom: 1px solid var(--border);
  overflow: hidden;
}

.acquirers-title {
  text-align: center;
  margin-bottom: 48px;
}

.acquirers-title h2 { font-size: 2rem; margin-bottom: 8px; }

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

.acquirer-chip {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 0 32px;
  white-space: nowrap;
}

.acquirer-chip span {
  font-size: 1.5rem;
  font-weight: 800;
  color: var(--text-primary);
  font-family: var(--font-display);
}

.acquirer-dot {
  width: 10px;
  height: 10px;
  background: var(--accent);
  border-radius: 50%;
  flex-shrink: 0;
}

/* ---------- Features Grid ---------- */
.features {
  padding: 100px 0;
}

.section-header {
  text-align: center;
  margin-bottom: 64px;
}

.section-header h2 {
  font-size: clamp(1.8rem, 4vw, 2.5rem);
  margin-bottom: 12px;
}

.section-header p {
  color: var(--text-secondary);
  max-width: 560px;
  margin: 0 auto;
  font-size: 1rem;
}

.features-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}

.feature-card {
  padding: 32px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  transition: all 0.3s ease;
}

.feature-card:hover {
  background: var(--bg-card-hover);
  border-color: var(--border-accent);
  transform: translateY(-4px);
}

.feature-icon {
  width: 48px;
  height: 48px;
  background: var(--accent-subtle);
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 20px;
  color: var(--accent);
  transition: transform 0.3s ease;
}

.feature-card:hover .feature-icon { transform: scale(1.1); }
.feature-icon svg { width: 22px; height: 22px; }

.feature-card h3 {
  font-size: 1.1rem;
  margin-bottom: 8px;
  font-family: var(--font-display);
}

.feature-card p {
  color: var(--text-secondary);
  font-size: 0.9rem;
  line-height: 1.6;
}

/* ---------- Pricing / Taxes ---------- */
.pricing-section { padding: 100px 0; }

.pricing-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  align-items: stretch;
}

.price-card {
  padding: 40px 32px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  transition: all 0.3s;
}

.price-card:hover {
  border-color: var(--border-accent);
  transform: translateY(-4px);
}

.price-card.featured {
  background: var(--accent);
  color: #000;
  border-color: transparent;
  transform: scale(1.05);
  box-shadow: 0 20px 60px var(--accent-glow);
}

.price-card.featured:hover { transform: scale(1.07); }

.price-icon {
  width: 56px;
  height: 56px;
  background: var(--accent-subtle);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 20px;
  color: var(--accent);
}

.price-card.featured .price-icon {
  background: rgba(0,0,0,0.15);
  color: #000;
}

.price-card h3 { font-size: 1.3rem; margin-bottom: 8px; }
.price-value { font-size: 3rem; font-weight: 900; margin-bottom: 8px; font-family: var(--font-display); }
.price-card.featured .price-value { color: #000; }

.price-desc {
  color: var(--text-secondary);
  font-size: 0.9rem;
  margin-bottom: 20px;
}

.price-card.featured .price-desc { color: rgba(0,0,0,0.7); }

.price-tag {
  margin-top: auto;
  padding-top: 20px;
  border-top: 1px solid var(--border);
  width: 100%;
}

.price-card.featured .price-tag { border-color: rgba(0,0,0,0.15); }

.price-badge {
  display: inline-block;
  padding: 6px 16px;
  border-radius: 999px;
  font-size: 0.75rem;
  font-weight: 700;
  background: var(--accent-subtle);
  color: var(--accent);
}

.price-card.featured .price-badge {
  background: rgba(0,0,0,0.15);
  color: #000;
}

/* ---------- Dashboard Showcase ---------- */
.showcase {
  padding: 100px 0;
}

.showcase-container {
  max-width: 1100px;
  margin: 0 auto;
}

.showcase-image-wrapper {
  width: 100%;
  border-radius: var(--radius-lg);
  overflow: hidden;
  border: 1px solid var(--border);
  box-shadow: 0 40px 100px rgba(0,0,0,0.4);
  cursor: pointer;
  transition: transform 0.5s ease;
}

.showcase-image-wrapper:hover { transform: scale(1.02); }

.showcase-image-wrapper img {
  width: 100%;
  display: block;
}

/* ---------- Tech Stack ---------- */
.tech-stack { padding: 100px 0; }

.tech-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
}

.tech-item {
  padding: 28px 20px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  text-align: center;
  transition: all 0.3s;
}

.tech-item:hover {
  border-color: var(--border-accent);
  background: var(--bg-card-hover);
}

.tech-item-icon {
  font-size: 2rem;
  margin-bottom: 10px;
}

.tech-item h4 {
  font-size: 0.95rem;
  margin-bottom: 4px;
  font-family: var(--font-display);
}

.tech-item p {
  color: var(--text-muted);
  font-size: 0.75rem;
}

/* ---------- CTA / Offer ---------- */
.offer {
  padding: 100px 0;
}

.offer-card {
  max-width: 720px;
  margin: 0 auto;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 64px 48px;
  position: relative;
  text-align: center;
}

.offer-overline {
  position: absolute;
  top: -18px;
  left: 50%;
  transform: translateX(-50%);
  background: var(--accent);
  color: #000;
  font-weight: 800;
  padding: 8px 28px;
  border-radius: var(--radius-sm);
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  white-space: nowrap;
}

.offer-price {
  display: flex;
  align-items: baseline;
  justify-content: center;
  gap: 4px;
  margin: 24px 0 8px;
}

.offer-price .currency {
  font-size: 1.5rem;
  font-weight: 700;
  font-family: var(--font-display);
}

.offer-price .amount {
  font-size: 5rem;
  font-weight: 900;
  font-family: var(--font-display);
  color: var(--accent);
  line-height: 1;
}

.offer-price .cents {
  font-size: 1.5rem;
  font-weight: 700;
  font-family: var(--font-display);
  align-self: flex-end;
  margin-bottom: 14px;
}

.offer-label {
  color: var(--accent);
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  margin-bottom: 32px;
  font-size: 0.9rem;
}

.offer-features {
  text-align: left;
  margin-bottom: 40px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.offer-feature {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 0.9rem;
  color: var(--text-secondary);
  font-weight: 500;
}

.offer-feature-check {
  width: 22px;
  height: 22px;
  background: var(--accent-subtle);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  color: var(--accent);
}

.offer-feature-check svg { width: 12px; height: 12px; }

.offer-secure {
  margin-top: 20px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  color: var(--text-muted);
  font-size: 0.8rem;
}

/* ---------- Support ---------- */
.support { padding: 80px 0; }

.support-card {
  background: linear-gradient(135deg, var(--accent-subtle), var(--bg-card));
  border: 1px solid var(--border-accent);
  border-radius: var(--radius-sm);
  padding: 64px;
  text-align: center;
}

.support-card h2 { font-size: 2rem; margin-bottom: 16px; }
.support-card p {
  color: var(--text-secondary);
  max-width: 560px;
  margin: 0 auto 40px;
  font-size: 1.05rem;
  line-height: 1.7;
}

.support-features {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  margin-top: 40px;
}

.support-feature {
  padding: 28px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
}

.support-feature h4 {
  color: var(--accent);
  margin-bottom: 8px;
  font-size: 1rem;
}

.support-feature p {
  color: var(--text-secondary);
  font-size: 0.85rem;
  margin: 0;
}

/* ---------- FAQ ---------- */
.faq { padding: 100px 0; }

.faq-list {
  max-width: 720px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.faq-item {
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  overflow: hidden;
  transition: border-color 0.3s;
}

.faq-item:hover { border-color: var(--border-accent); }

.faq-question {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 20px 24px;
  font-weight: 600;
  font-size: 0.95rem;
  color: var(--text-primary);
  text-align: left;
  background: transparent;
  cursor: pointer;
  transition: background 0.2s;
}

.faq-question:hover { background: var(--bg-card-hover); }

.faq-chevron {
  width: 20px;
  height: 20px;
  color: var(--text-muted);
  transition: transform 0.3s;
  flex-shrink: 0;
}

.faq-item.open .faq-chevron { transform: rotate(180deg); }

.faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.4s ease, padding 0.3s ease;
}

.faq-item.open .faq-answer {
  max-height: 300px;
  padding: 0 24px 20px;
}

.faq-answer p {
  color: var(--text-secondary);
  font-size: 0.9rem;
  line-height: 1.7;
}

/* ---------- Final CTA ---------- */
.final-cta {
  padding: 100px 0;
  background: var(--accent);
  text-align: center;
}

.final-cta h2 {
  font-size: clamp(2rem, 5vw, 3.5rem);
  color: #000;
  margin-bottom: 16px;
  line-height: 1.1;
}

.final-cta p {
  color: rgba(0,0,0,0.7);
  font-size: 1.15rem;
  max-width: 560px;
  margin: 0 auto 40px;
}

.btn-dark {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  padding: 18px 48px;
  background: #000;
  color: var(--accent);
  font-weight: 800;
  font-size: 1.15rem;
  border-radius: var(--radius-sm);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  transition: transform 0.2s, box-shadow 0.3s;
}

.btn-dark:hover {
  transform: translateY(-2px);
  box-shadow: 0 12px 40px rgba(0,0,0,0.4);
}

/* ---------- Footer ---------- */
.footer {
  padding: 48px 0;
  border-top: 1px solid var(--border);
}

.footer-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

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

/* ---------- Scroll Animations ---------- */
.reveal {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}

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

/* Stagger delays */
.reveal-delay-1 { transition-delay: 0.1s; }
.reveal-delay-2 { transition-delay: 0.2s; }
.reveal-delay-3 { transition-delay: 0.3s; }
.reveal-delay-4 { transition-delay: 0.4s; }
.reveal-delay-5 { transition-delay: 0.5s; }

/* ---------- WhatsApp Float ---------- */
.whatsapp-float {
  position: fixed;
  bottom: 24px;
  right: 24px;
  z-index: 999;
  width: 60px;
  height: 60px;
  background: #25D366;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 20px rgba(37, 211, 102, 0.4);
  transition: transform 0.2s;
}

.whatsapp-float:hover { transform: scale(1.1); }
.whatsapp-float svg { width: 30px; height: 30px; color: #fff; }

/* ---------- Mobile Menu ---------- */
.mobile-nav {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(3, 7, 18, 0.97);
  z-index: 200;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 32px;
}

.mobile-nav.active { display: flex; }

.mobile-nav a {
  font-size: 1.5rem;
  font-weight: 600;
  color: var(--text-primary);
  transition: color 0.2s;
}

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

.mobile-nav-close {
  position: absolute;
  top: 20px;
  right: 24px;
  color: var(--text-primary);
  cursor: pointer;
}

/* ---------- Responsive ---------- */
@media (max-width: 1024px) {
  .features-grid { grid-template-columns: repeat(2, 1fr); }
  .pricing-grid { grid-template-columns: repeat(2, 1fr); }
  .tech-grid { grid-template-columns: repeat(3, 1fr); }
  .support-features { grid-template-columns: 1fr; }
  .nav-links { display: none; }
  .mobile-menu-btn { display: block; }
}

@media (max-width: 768px) {
  .hero { padding-top: 120px; padding-bottom: 60px; }
  .hero h1 { font-size: 2.2rem; }
  .hero p { font-size: 1rem; }
  .features-grid { grid-template-columns: 1fr; }
  .pricing-grid { grid-template-columns: 1fr; }
  .price-card.featured { transform: none; }
  .price-card.featured:hover { transform: translateY(-4px); }
  .tech-grid { grid-template-columns: repeat(2, 1fr); }
  .offer-card { padding: 48px 24px; }
  .offer-price .amount { font-size: 3.5rem; }
  .support-card { padding: 40px 24px; }
  .footer-inner { flex-direction: column; gap: 16px; text-align: center; }
  .btn-primary { width: 100%; justify-content: center; padding: 16px 24px; font-size: 1rem; }
  .btn-dark { width: 90%; justify-content: center; }
}

/* ---------- Reduced Motion ---------- */
@media (prefers-reduced-motion: reduce) {
  .reveal { transition: none; opacity: 1; transform: none; }
  .marquee-track, .acquirers-grid { animation: none; }
  .btn-pulse { animation: none; }
  .hero-video::before { animation: none; }
}
