/* ==========================================================================
   PaySolution — estilos globais
   ========================================================================== */

:root {
  --bg: #05070a;
  --bg-elevated: #0b0f16;
  --bg-card: #10151d;
  --border: rgba(255, 255, 255, 0.08);
  --border-strong: rgba(255, 255, 255, 0.16);

  --text: #eef2f6;
  --text-muted: #9aa7b4;
  --text-faint: #667485;

  --blue: #1e6feb;
  --blue-light: #4c8dff;
  --green: #00d084;
  --green-light: #2fe3a0;

  --gradient: linear-gradient(90deg, var(--blue) 0%, var(--green) 100%);
  --gradient-soft: linear-gradient(135deg, rgba(30, 111, 235, 0.14), rgba(0, 208, 132, 0.14));

  --radius-sm: 8px;
  --radius-md: 14px;
  --radius-lg: 22px;

  --shadow-glow: 0 0 0 1px rgba(255, 255, 255, 0.04), 0 20px 60px -20px rgba(0, 0, 0, 0.6);

  --container: 1180px;
  --nav-height: 76px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

h1, h2, h3, h4 {
  font-family: "Sora", "Inter", sans-serif;
  line-height: 1.2;
  margin: 0 0 0.5em;
  letter-spacing: -0.01em;
}

p {
  margin: 0 0 1em;
  color: var(--text-muted);
}

a {
  color: inherit;
  text-decoration: none;
}

img, svg {
  display: block;
  max-width: 100%;
}

ul {
  margin: 0;
  padding: 0;
  list-style: none;
}

.container {
  width: 100%;
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 24px;
}

section {
  position: relative;
  padding: 64px 0;
}

@media (max-width: 720px) {
  section { padding: 44px 0; }
}

.eyebrow {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 10px;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--green-light);
  margin-bottom: 16px;
}

.eyebrow::before {
  content: "";
  width: 32px;
  height: 3px;
  background: var(--gradient);
  border-radius: 2px;
}

.section-head {
  max-width: 640px;
  margin-bottom: 40px;
}

.section-head h2 {
  font-size: clamp(28px, 3.4vw, 40px);
}

.section-head p {
  font-size: 17px;
}

.text-gradient {
  background: var(--gradient);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

/* ---------- Buttons ---------- */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 14px 26px;
  border-radius: 999px;
  font-weight: 600;
  font-size: 15px;
  border: 1px solid transparent;
  cursor: pointer;
  transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease, background 0.2s ease;
  white-space: nowrap;
}

.btn-primary {
  background: var(--gradient);
  color: #04060a;
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 12px 30px -10px rgba(0, 208, 132, 0.45);
}

.btn-ghost {
  background: transparent;
  color: var(--text);
  border-color: var(--border-strong);
}

.btn-ghost:hover {
  border-color: var(--green);
  color: var(--green-light);
}

.btn-block {
  width: 100%;
}

/* ---------- Navbar ---------- */

.navbar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  height: var(--nav-height);
  display: flex;
  align-items: center;
  z-index: 100;
  background: rgba(5, 7, 10, 0.7);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid transparent;
  transition: border-color 0.3s ease, background 0.3s ease;
}

.navbar.is-scrolled {
  border-bottom-color: var(--border);
  background: rgba(5, 7, 10, 0.92);
}

.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  font-family: "Sora", sans-serif;
  font-weight: 700;
  font-size: 19px;
}

.brand img {
  width: 36px;
  height: 36px;
}

.brand .pay { color: var(--text); }
.brand .solution { color: var(--green-light); }

.nav-links {
  display: flex;
  align-items: center;
  gap: 36px;
}

.nav-links a {
  font-size: 15px;
  color: var(--text-muted);
  font-weight: 500;
  transition: color 0.2s ease;
  position: relative;
}

.nav-links a:hover,
.nav-links a.active {
  color: var(--text);
}

.nav-links a.active::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: -20px;
  height: 2px;
  background: var(--gradient);
  border-radius: 2px;
}

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

.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  width: 26px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 6px 0;
}

.nav-toggle span {
  height: 2px;
  background: var(--text);
  border-radius: 2px;
  transition: transform 0.25s ease, opacity 0.25s ease;
}

@media (max-width: 900px) {
  .nav-links { display: none; }
  .nav-actions .btn-primary { display: none; }
  .nav-toggle { display: flex; }

  body.nav-open .nav-links {
    display: flex;
    flex-direction: column;
    position: fixed;
    top: var(--nav-height);
    left: 0;
    right: 0;
    background: rgba(5, 7, 10, 0.98);
    border-bottom: 1px solid var(--border);
    padding: 24px;
    gap: 20px;
  }

  body.nav-open .nav-actions .btn-primary {
    display: inline-flex;
  }

  body.nav-open .nav-toggle span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
  body.nav-open .nav-toggle span:nth-child(2) { opacity: 0; }
  body.nav-open .nav-toggle span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }
}

/* ---------- Hero ---------- */

.hero {
  padding-top: calc(var(--nav-height) + 56px);
  padding-bottom: 64px;
  position: relative;
}

.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(600px 400px at 15% 0%, rgba(30, 111, 235, 0.22), transparent 60%),
    radial-gradient(600px 400px at 85% 20%, rgba(0, 208, 132, 0.18), transparent 60%);
  pointer-events: none;
  z-index: -1;
}

.hero h1 {
  font-size: clamp(28px, 4.4vw, 48px);
  max-width: 980px;
}

.hero .lead {
  font-size: 19px;
  max-width: 620px;
  margin-bottom: 32px;
}

.hero-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 22px;
  margin: 32px 0 40px;
  padding-top: 28px;
  border-top: 1px solid var(--border);
}

.hero-tags span {
  font-size: 14px;
  color: var(--text-faint);
  font-weight: 500;
}

.hero-tags span::before {
  content: "";
  display: inline-block;
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--green);
  margin-right: 8px;
  vertical-align: middle;
}

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

/* ---------- Cards / Grid ---------- */

.grid {
  display: grid;
  gap: 24px;
}

.grid-2 { grid-template-columns: repeat(2, 1fr); }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-4 { grid-template-columns: repeat(4, 1fr); }
.grid-6 { grid-template-columns: repeat(6, 1fr); }

@media (max-width: 980px) {
  .grid-3, .grid-4 { grid-template-columns: repeat(2, 1fr); }
  .grid-6 { grid-template-columns: repeat(3, 1fr); }
}

@media (max-width: 620px) {
  .grid-2, .grid-3, .grid-4, .grid-6 { grid-template-columns: 1fr; }
}

.card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 32px;
  transition: border-color 0.25s ease, transform 0.25s ease, background 0.25s ease;
}

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

.card-icon {
  width: 52px;
  height: 52px;
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--gradient-soft);
  border: 1px solid var(--border);
  margin-bottom: 20px;
}

.card-icon svg {
  width: 26px;
  height: 26px;
}

.card h3 {
  font-size: 20px;
  margin-bottom: 10px;
}

.card p {
  font-size: 15px;
  margin-bottom: 16px;
}

.card ul {
  display: flex;
  flex-direction: column;
  gap: 9px;
}

.card ul li {
  font-size: 14.5px;
  color: var(--text-muted);
  padding-left: 20px;
  position: relative;
}

.card ul li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 8px;
  width: 8px;
  height: 8px;
  border-radius: 2px;
  background: var(--gradient);
}

.card-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 14px;
  font-weight: 600;
  color: var(--green-light);
  margin-top: 4px;
}

.card-link svg {
  width: 14px;
  height: 14px;
  transition: transform 0.2s ease;
}

.card:hover .card-link svg {
  transform: translateX(3px);
}

/* alternating section background */
.section-alt {
  background: linear-gradient(180deg, transparent, rgba(255, 255, 255, 0.015) 20%, rgba(255, 255, 255, 0.015) 80%, transparent);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}

/* ---------- Segmentos (para quem) ---------- */

.segment {
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 26px 24px;
  background: var(--bg-elevated);
}

.segment h3 {
  font-size: 17px;
  margin-bottom: 8px;
  display: flex;
  align-items: center;
  gap: 10px;
}

.segment h3::before {
  content: "";
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--gradient);
  flex-shrink: 0;
}

.segment p {
  font-size: 14.5px;
  margin: 0;
}

/* ---------- Diferenciais ---------- */

.diff-item {
  display: flex;
  gap: 20px;
  padding: 28px 0;
  border-bottom: 1px solid var(--border);
}

.diff-item:last-child { border-bottom: none; }

.diff-num {
  font-family: "Sora", sans-serif;
  font-weight: 700;
  font-size: 15px;
  color: var(--bg);
  background: var(--gradient);
  width: 40px;
  height: 40px;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.diff-body h3 {
  font-size: 18px;
  margin-bottom: 6px;
}

.diff-body p {
  margin: 0;
  font-size: 15px;
}

/* ---------- Timeline (Como trabalhamos) ---------- */

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

@media (max-width: 900px) {
  .timeline { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 620px) {
  .timeline { grid-template-columns: 1fr; }
}

.timeline-item {
  position: relative;
  padding: 28px 22px;
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  background: var(--bg-card);
}

.timeline-step {
  font-family: "Sora", sans-serif;
  font-weight: 700;
  font-size: 13px;
  letter-spacing: 0.04em;
  color: var(--green-light);
  margin-bottom: 12px;
}

.timeline-item h3 {
  font-size: 17px;
  margin-bottom: 8px;
}

.timeline-item p {
  font-size: 14.5px;
  margin: 0;
}

/* ---------- Badges (tecnologia) ---------- */

.badge-row {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
}

.badge {
  padding: 12px 22px;
  border-radius: 999px;
  border: 1px solid var(--border-strong);
  font-weight: 600;
  font-size: 14.5px;
  color: var(--text);
  background: var(--bg-elevated);
}

.badge span {
  background: var(--gradient);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  margin-right: 6px;
}

/* ---------- CTA Banner ---------- */

.cta-banner {
  border-radius: var(--radius-lg);
  padding: 64px 56px;
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  position: relative;
  overflow: hidden;
  text-align: center;
}

.cta-banner::before {
  content: "";
  position: absolute;
  inset: -40% -10%;
  background: radial-gradient(closest-side, rgba(0, 208, 132, 0.16), transparent),
              radial-gradient(closest-side, rgba(30, 111, 235, 0.16), transparent);
  background-position: 10% 10%, 90% 90%;
  background-repeat: no-repeat;
  background-size: 55% 100%, 55% 100%;
  z-index: 0;
}

.cta-banner > * {
  position: relative;
  z-index: 1;
}

.cta-banner h2 {
  font-size: clamp(26px, 3.6vw, 38px);
  max-width: 640px;
  margin: 0 auto 16px;
}

.cta-banner p {
  max-width: 560px;
  margin: 0 auto 32px;
  font-size: 16.5px;
}

@media (max-width: 620px) {
  .cta-banner { padding: 48px 24px; }
}

/* ---------- Footer ---------- */

footer {
  border-top: 1px solid var(--border);
  padding: 72px 0 28px;
  background: var(--bg-elevated);
}

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

@media (max-width: 900px) {
  .footer-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 560px) {
  .footer-grid { grid-template-columns: 1fr; }
}

.footer-brand p {
  font-size: 14.5px;
  max-width: 280px;
  margin: 16px 0 24px;
}

.social-row {
  display: flex;
  gap: 12px;
}

.social-row a {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  border: 1px solid var(--border-strong);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: border-color 0.2s ease, background 0.2s ease;
}

.social-row a:hover {
  border-color: var(--green);
  background: rgba(0, 208, 132, 0.08);
}

.social-row svg {
  width: 17px;
  height: 17px;
  fill: var(--text-muted);
}

.social-row a:hover svg {
  fill: var(--green-light);
}

.footer-col h4 {
  font-size: 13px;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--text-faint);
  margin-bottom: 18px;
}

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

.footer-col a {
  font-size: 14.5px;
  color: var(--text-muted);
  transition: color 0.2s ease;
}

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

.footer-contact li {
  font-size: 14.5px;
  color: var(--text-muted);
  display: flex;
  gap: 10px;
  align-items: flex-start;
}

.footer-contact svg {
  width: 17px;
  height: 17px;
  flex-shrink: 0;
  margin-top: 2px;
  fill: none;
  stroke: var(--green-light);
  stroke-width: 1.8;
}

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

/* ---------- Page hero (páginas internas) ---------- */

.page-hero {
  padding-top: calc(var(--nav-height) + 44px);
  padding-bottom: 36px;
}

.page-hero h1 {
  font-size: clamp(30px, 4.4vw, 46px);
  max-width: 760px;
}

.page-hero p {
  font-size: 17px;
  max-width: 620px;
}

/* ---------- Reveal animation ---------- */

[data-reveal] {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

[data-reveal].is-visible {
  opacity: 1;
  transform: translateY(0);
}

/* ---------- Contact page ---------- */

.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
  align-items: start;
}

@media (max-width: 860px) {
  .contact-grid { grid-template-columns: 1fr; }
}

.contact-info-list {
  display: flex;
  flex-direction: column;
  gap: 22px;
  margin: 28px 0 32px;
}

.contact-info-item {
  display: flex;
  gap: 16px;
  align-items: flex-start;
}

.contact-info-item .icon-box {
  width: 44px;
  height: 44px;
  border-radius: 12px;
  background: var(--gradient-soft);
  border: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.contact-info-item .icon-box svg {
  width: 20px;
  height: 20px;
  stroke: var(--green-light);
  fill: none;
  stroke-width: 1.8;
}

.contact-info-item h4 {
  font-size: 15px;
  margin-bottom: 3px;
}

.contact-info-item a,
.contact-info-item span {
  font-size: 14.5px;
  color: var(--text-muted);
}

.contact-info-item a:hover {
  color: var(--green-light);
}

.form-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 36px;
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}

@media (max-width: 480px) {
  .form-row { grid-template-columns: 1fr; }
}

.field {
  margin-bottom: 18px;
}

.field label {
  display: block;
  font-size: 13.5px;
  font-weight: 600;
  color: var(--text-muted);
  margin-bottom: 8px;
}

.field input,
.field textarea,
.field select {
  width: 100%;
  padding: 13px 16px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border-strong);
  background: var(--bg-elevated);
  color: var(--text);
  font-family: inherit;
  font-size: 14.5px;
  transition: border-color 0.2s ease;
}

.field textarea {
  resize: vertical;
  min-height: 120px;
}

.field input:focus,
.field textarea:focus,
.field select:focus {
  outline: none;
  border-color: var(--green);
}

.form-note {
  font-size: 13px;
  color: var(--text-faint);
  margin-top: 14px;
  text-align: center;
}

.map-embed {
  border-radius: var(--radius-lg);
  overflow: hidden;
  border: 1px solid var(--border);
  margin-top: 40px;
}

.map-embed iframe {
  width: 100%;
  height: 320px;
  border: 0;
  display: block;
}
