/* ==========================================================================
   CF Tecnologia — estilos
   ========================================================================== */

:root {
  /* Paleta */
  --color-primary: #2A3E5F;
  --color-primary-dark: #1E2E47;
  --color-primary-light: #3E5680;
  --color-secondary: #4B2E5E;
  --color-secondary-light: #6B4380;
  --color-bg: #E0E0E0;
  --color-bg-soft: #F2F2F2;
  --color-text: #333333;
  --color-text-muted: #5C5C5C;
  --color-white: #FFFFFF;
  --color-whatsapp: #25D366;

  /* Tipografia */
  --font-heading: "Poppins", "Segoe UI", sans-serif;
  --font-body: "Inter", "Segoe UI", sans-serif;

  /* Layout */
  --container-width: 1160px;
  --radius-sm: 8px;
  --radius-md: 14px;
  --radius-lg: 24px;
  --shadow-sm: 0 2px 10px rgba(42, 62, 95, 0.08);
  --shadow-md: 0 10px 30px rgba(42, 62, 95, 0.14);
  --header-height: 76px;
}

/* ---------- Reset ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: var(--font-body);
  color: var(--color-text);
  background: var(--color-white);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

img, svg { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
ul { list-style: none; margin: 0; padding: 0; }
h1, h2, h3, h4 {
  font-family: var(--font-heading);
  color: var(--color-secondary);
  line-height: 1.2;
  margin: 0 0 .6em;
}
p { margin: 0 0 1em; color: var(--color-text-muted); }
button { font-family: inherit; }

.skip-link {
  position: absolute;
  left: -999px;
  top: 0;
  background: var(--color-primary);
  color: #fff;
  padding: .75rem 1.25rem;
  z-index: 1000;
  border-radius: 0 0 var(--radius-sm) 0;
}
.skip-link:focus { left: 0; }

:focus-visible {
  outline: 2px solid var(--color-secondary-light);
  outline-offset: 3px;
}

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

/* ---------- Botões ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: .5rem;
  padding: .95rem 1.75rem;
  border-radius: 999px;
  font-weight: 600;
  font-size: .95rem;
  border: 2px solid transparent;
  cursor: pointer;
  transition: transform .18s ease, box-shadow .18s ease, background-color .18s ease, color .18s ease;
  white-space: nowrap;
}
.btn:hover { transform: translateY(-2px); }
.btn svg { width: 20px; height: 20px; }

.btn-primary {
  background: var(--color-primary);
  color: #fff;
  box-shadow: var(--shadow-sm);
}
.btn-primary:hover { background: var(--color-primary-dark); box-shadow: var(--shadow-md); }

.btn-outline {
  background: transparent;
  border-color: rgba(255,255,255,.55);
  color: #fff;
}
.btn-outline:hover { background: rgba(255,255,255,.12); border-color: #fff; }

.btn-outline-dark {
  background: transparent;
  border-color: rgba(42,62,95,.3);
  color: var(--color-primary);
}
.btn-outline-dark:hover { background: rgba(42,62,95,.08); border-color: var(--color-primary); }

.btn-whatsapp {
  background: var(--color-whatsapp);
  color: #fff;
}
.btn-whatsapp:hover { background: #1eb958; }

.btn-sm { padding: .65rem 1.3rem; font-size: .875rem; }

/* ---------- Header ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 500;
  height: var(--header-height);
  display: flex;
  align-items: center;
  background: rgba(255, 255, 255, .85);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid rgba(42, 62, 95, .08);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
}

.logo {
  display: inline-flex;
  align-items: center;
  gap: .6rem;
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 1.05rem;
  color: var(--color-secondary);
}
.logo-mark {
  display: block;
  width: auto;
  height: 40px;
}

.nav-list {
  display: flex;
  gap: 2rem;
}
.nav-link {
  position: relative;
  font-weight: 500;
  font-size: .95rem;
  color: var(--color-text);
  padding: .4rem 0;
}
.nav-link::after {
  content: "";
  position: absolute;
  left: 0; right: 0; bottom: -2px;
  height: 2px;
  background: var(--color-primary);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform .2s ease;
}
.nav-link:hover::after,
.nav-link.active::after { transform: scaleX(1); }

.header-actions { display: flex; align-items: center; gap: 1rem; }

.nav-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 38px;
  height: 38px;
  background: none;
  border: none;
  cursor: pointer;
}
.nav-toggle span {
  display: block;
  height: 2px;
  background: var(--color-secondary);
  border-radius: 2px;
  transition: transform .25s ease, opacity .25s ease;
}

/* ---------- Hero ---------- */
.hero {
  position: relative;
  overflow: hidden;
  padding: 7.5rem 0 6rem;
  background:
    radial-gradient(circle at 12% 18%, rgba(255,255,255,.06), transparent 45%),
    radial-gradient(circle at 85% 80%, rgba(255,255,255,.05), transparent 50%),
    repeating-linear-gradient(115deg, rgba(255,255,255,.035) 0 2px, transparent 2px 6px),
    linear-gradient(135deg, var(--color-primary-dark) 0%, var(--color-primary) 45%, var(--color-secondary) 100%);
  color: #fff;
  text-align: center;
}

.hero-bg { position: absolute; inset: 0; pointer-events: none; }
.hero-icon {
  position: absolute;
  color: rgba(255,255,255,.16);
}
.hero-icon svg { width: 100%; height: 100%; }
.hero-icon--chip { width: 90px; height: 90px; top: 14%; left: 8%; }
.hero-icon--cloud { width: 110px; height: 110px; top: 62%; left: 12%; }
.hero-icon--network { width: 100px; height: 100px; top: 20%; right: 9%; }
.hero-icon--code { width: 80px; height: 80px; bottom: 12%; right: 14%; }

@keyframes floaty {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-14px); }
}
.icon-float { animation: floaty 6s ease-in-out infinite; }
.hero-icon--cloud { animation-delay: 1.2s; }
.hero-icon--network { animation-delay: 2.1s; }
.hero-icon--code { animation-delay: .6s; }

.hero-inner { position: relative; max-width: 780px; }

.eyebrow {
  display: inline-block;
  font-weight: 600;
  font-size: .8rem;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: rgba(255,255,255,.85);
  margin-bottom: 1rem;
}
.eyebrow--dark { color: var(--color-primary); }

.hero h1 {
  color: #fff;
  font-size: clamp(2rem, 4.4vw, 3.1rem);
  margin-bottom: .7em;
}

.hero-subtext {
  color: rgba(255,255,255,.85);
  font-size: 1.1rem;
  max-width: 560px;
  margin: 0 auto 2.2rem;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  justify-content: center;
}

/* ---------- Sections ---------- */
.section { padding: 6rem 0; }
.section-alt { background: var(--color-bg-soft); }

.section-head { max-width: 680px; margin: 0 auto 3rem; text-align: center; }
.section-lead { font-size: 1.05rem; }

.section-cta {
  text-align: center;
  font-family: var(--font-heading);
  font-weight: 600;
  font-size: 1.3rem;
  color: var(--color-secondary);
  margin-top: 3.5rem;
}

/* ---------- Grid / Cards ---------- */
.grid { display: grid; gap: 1.75rem; }
.grid-4 { grid-template-columns: repeat(4, 1fr); }
.grid-3 { grid-template-columns: repeat(3, 1fr); }

.card {
  background: #fff;
  border-radius: var(--radius-md);
  padding: 2rem 1.6rem;
  box-shadow: var(--shadow-sm);
  border: 1px solid rgba(42,62,95,.06);
  transition: transform .25s ease, box-shadow .25s ease;
}
.card:hover { transform: translateY(-6px); box-shadow: var(--shadow-md); }

.card-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 52px;
  height: 52px;
  border-radius: 14px;
  margin-bottom: 1.1rem;
  background: linear-gradient(135deg, rgba(42,62,95,.1), rgba(75,46,94,.1));
  color: var(--color-secondary);
}
.card-icon svg { width: 26px; height: 26px; }

.card h3 {
  font-size: 1.05rem;
  margin-bottom: .5em;
}
.card p { font-size: .92rem; margin: 0; }

.card--highlight {
  background: linear-gradient(150deg, rgba(42,62,95,.05), rgba(75,46,94,.05));
  border-color: rgba(75,46,94,.15);
}
.card--highlight .card-icon {
  background: linear-gradient(135deg, var(--color-primary), var(--color-secondary));
  color: #fff;
}

/* ---------- Tag ---------- */
.tag {
  display: inline-block;
  background: rgba(75,46,94,.1);
  color: var(--color-secondary);
  font-size: .78rem;
  font-weight: 700;
  letter-spacing: .04em;
  text-transform: uppercase;
  padding: .35rem .8rem;
  border-radius: 999px;
  margin-bottom: .9rem;
}
.tag--soon { background: rgba(42,62,95,.08); color: var(--color-text-muted); }

.saas-audience { font-size: .92rem; margin-bottom: 1.8rem; }
.saas-audience strong { color: var(--color-secondary); }

/* ---------- Cards de produto (vitrine + listagem) ---------- */
.products-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.75rem;
}

.product-card {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  background: #fff;
  border-radius: var(--radius-lg);
  padding: 2.4rem;
  box-shadow: var(--shadow-sm);
  border: 1px solid rgba(42,62,95,.06);
  transition: transform .25s ease, box-shadow .25s ease;
}
a.product-card:hover { transform: translateY(-6px); box-shadow: var(--shadow-md); }

.product-card h3 { font-size: 1.4rem; margin-bottom: .5em; }
.product-card p { font-size: .95rem; margin-bottom: 1.4rem; }

.product-card-link {
  display: inline-flex;
  align-items: center;
  gap: .5rem;
  margin-top: auto;
  font-weight: 600;
  font-size: .92rem;
  color: var(--color-primary);
}
.product-card-link svg { width: 18px; height: 18px; transition: transform .2s ease; }
a.product-card:hover .product-card-link svg { transform: translateX(4px); }

.product-card--soon {
  background: transparent;
  border: 1.5px dashed rgba(42,62,95,.25);
  box-shadow: none;
}
.product-card--soon p { margin-bottom: 0; }

/* ---------- Hero de página interna ---------- */
.page-hero { padding-top: 4.5rem; padding-bottom: 2.5rem; text-align: center; }
.page-hero .section-lead { max-width: 680px; margin-inline: auto; }

.product-hero {
  background: linear-gradient(135deg, var(--color-primary-dark) 0%, var(--color-primary) 45%, var(--color-secondary) 100%);
  padding: 5.5rem 0 4rem;
  color: #fff;
}
.product-hero .eyebrow--dark { color: rgba(255,255,255,.85); }
.product-hero h1 { color: #fff; font-size: clamp(2rem, 4vw, 2.6rem); }
.product-hero .section-lead { color: rgba(255,255,255,.85); }

.hero-actions--light { justify-content: center; }

/* ---------- Galeria de screenshots ---------- */
.screenshot-row {
  display: grid;
  gap: 1.5rem;
}
.screenshot-row--mobile { grid-template-columns: repeat(auto-fit, minmax(170px, 1fr)); }
.screenshot-row--web { grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); }

.screenshot-card {
  margin: 0;
  background: #fff;
  border-radius: var(--radius-md);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  border: 1px solid rgba(42,62,95,.06);
}
.screenshot-card img {
  width: 100%;
  height: auto;
  display: block;
  background: var(--color-bg-soft);
}
.screenshot-card figcaption {
  padding: .85rem 1rem;
  font-size: .85rem;
  font-weight: 500;
  color: var(--color-text);
}

.product-cta { text-align: center; }
.product-cta .hero-actions { justify-content: center; margin-top: 1.5rem; }

/* ---------- Vídeo do produto ---------- */
.video-embed {
  max-width: 860px;
  margin: 0 auto;
  aspect-ratio: 16 / 9;
  border-radius: var(--radius-md);
  overflow: hidden;
  box-shadow: var(--shadow-md);
  background: #000;
}
.video-embed iframe {
  width: 100%;
  height: 100%;
  border: 0;
  display: block;
}

/* ---------- Sobre ---------- */
.about-inner {
  display: grid;
  grid-template-columns: 1fr .8fr;
  gap: 3.5rem;
  align-items: center;
}
.about-text p { font-size: 1.05rem; color: var(--color-text); }
.about-text p:first-of-type { font-weight: 600; color: var(--color-secondary); font-size: 1.2rem; }

.about-visual {
  position: relative;
  aspect-ratio: 1 / 1;
  display: flex;
  align-items: center;
  justify-content: center;
}
.about-shape {
  position: absolute;
  border-radius: 50%;
  filter: blur(2px);
}
.about-shape--1 {
  width: 78%; height: 78%;
  background: linear-gradient(135deg, var(--color-primary), var(--color-secondary));
  opacity: .12;
}
.about-shape--2 {
  width: 50%; height: 50%;
  border: 2px dashed rgba(75,46,94,.25);
  filter: none;
}
.about-icon {
  position: relative;
  width: 34%;
  color: var(--color-secondary);
}

/* ---------- Contato ---------- */
.contact-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr;
  gap: 2.5rem;
  align-items: start;
}

.contact-form {
  background: #fff;
  border-radius: var(--radius-lg);
  padding: 2.5rem;
  box-shadow: var(--shadow-md);
}

.form-field { margin-bottom: 1.4rem; }
.form-field label {
  display: block;
  font-weight: 600;
  font-size: .9rem;
  color: var(--color-secondary);
  margin-bottom: .4rem;
}
.form-field input,
.form-field textarea {
  width: 100%;
  padding: .8rem 1rem;
  border-radius: var(--radius-sm);
  border: 1.5px solid #D7D7D7;
  font-family: var(--font-body);
  font-size: .95rem;
  color: var(--color-text);
  background: var(--color-bg-soft);
  transition: border-color .18s ease, background-color .18s ease;
  resize: vertical;
}
.form-field input:focus,
.form-field textarea:focus {
  outline: none;
  border-color: var(--color-primary);
  background: #fff;
}

.form-status {
  min-height: 1.2em;
  font-size: .9rem;
  font-weight: 600;
  color: var(--color-primary);
}
.form-status.is-error { color: #B3261E; }

.form-actions { display: flex; flex-wrap: wrap; gap: 1rem; margin-top: .5rem; }

.contact-side {
  background: linear-gradient(150deg, var(--color-primary-dark), var(--color-secondary));
  color: #fff;
  border-radius: var(--radius-lg);
  padding: 2.5rem;
  height: 100%;
}
.contact-side h3 { color: #fff; font-size: 1.3rem; }
.contact-side p { color: rgba(255,255,255,.8); }

.contact-info-list { display: flex; flex-direction: column; gap: 1rem; margin-top: 1.5rem; }
.contact-info-list li {
  display: flex;
  align-items: center;
  gap: .8rem;
  font-size: .92rem;
  font-weight: 500;
}
.contact-info-list svg { width: 20px; height: 20px; flex-shrink: 0; color: rgba(255,255,255,.85); }

/* ---------- Footer ---------- */
.site-footer {
  background: var(--color-primary-dark);
  color: rgba(255,255,255,.75);
  padding: 2.5rem 0;
}
.footer-inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
}
.logo--footer { color: #fff; }
.logo--footer .logo-mark { filter: drop-shadow(0 0 6px rgba(255,255,255,.45)); }
.footer-links { display: flex; gap: 1.5rem; flex-wrap: wrap; }
.footer-links a { font-size: .9rem; color: rgba(255,255,255,.75); }
.footer-links a:hover { color: #fff; }
.footer-copy { font-size: .82rem; margin: 0; color: rgba(255,255,255,.55); }

/* ---------- WhatsApp flutuante ---------- */
.whatsapp-float {
  position: fixed;
  right: 22px;
  bottom: 22px;
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: var(--color-whatsapp);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 8px 22px rgba(37, 211, 102, .4);
  z-index: 400;
  transition: transform .2s ease;
}
.whatsapp-float:hover { transform: scale(1.08); }
.whatsapp-float svg { width: 28px; height: 28px; }

/* ---------- Reveal on scroll ---------- */
.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity .6s ease, transform .6s ease;
}
.reveal.is-visible { opacity: 1; transform: translateY(0); }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .reveal { opacity: 1; transform: none; transition: none; }
  .icon-float { animation: none; }
}

/* ---------- Responsivo ---------- */
@media (max-width: 980px) {
  .grid-4 { grid-template-columns: repeat(2, 1fr); }
  .grid-3 { grid-template-columns: repeat(2, 1fr); }
  .products-grid { grid-template-columns: 1fr; }
  .about-inner { grid-template-columns: 1fr; text-align: center; }
  .about-text p:first-of-type { font-size: 1.1rem; }
  .about-visual { max-width: 260px; margin-inline: auto; }
  .contact-grid { grid-template-columns: 1fr; }
}

@media (max-width: 760px) {
  :root { --header-height: 68px; }

  .nav {
    position: fixed;
    top: var(--header-height);
    left: 0;
    right: 0;
    height: calc(100vh - var(--header-height));
    background: #fff;
    padding: 2rem 1.5rem;
    transform: translateX(100%);
    transition: transform .3s ease;
    overflow-y: auto;
  }
  .nav.is-open { transform: translateX(0); }
  .nav-list { flex-direction: column; gap: 1.5rem; font-size: 1.1rem; }

  .header-actions .btn-sm { display: none; }
  .nav-toggle { display: flex; }
  .nav-toggle.is-open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
  .nav-toggle.is-open span:nth-child(2) { opacity: 0; }
  .nav-toggle.is-open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

  .hero { padding: 6rem 0 4.5rem; }
  .grid-4 { grid-template-columns: 1fr; }
  .grid-3 { grid-template-columns: 1fr; }
  .section { padding: 4.5rem 0; }

  .footer-inner { flex-direction: column; text-align: center; }
}
