/* Ferreira Tech — Design System (azul-marinho e ciano) */
:root {
  --navy-900: #0a1530;
  --navy-800: #0e1d40;
  --navy-700: #122351;
  --cyan: #00C0D2;
  --cyan-400: #33d0de;
  --text: #e8f4f6;
  --text-muted: #a9b8cc;
  --bg: #0a1530;
  --surface: #0e1d40;
  --surface-2: #122351;
  --border: rgba(0, 192, 210, 0.18);
  --radius: 16px;
  --radius-sm: 10px;
  --shadow-glow: 0 0 40px rgba(0, 192, 210, 0.12);
  --font-heading: 'Sora', system-ui, sans-serif;
  --font-body: 'Inter', system-ui, sans-serif;
  --max-width: 1180px;
  --header-height: 74px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--font-body);
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

.skip-link {
  position: absolute;
  left: -9999px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}
.skip-link:focus {
  position: fixed;
  left: 1rem;
  top: 1rem;
  width: auto;
  height: auto;
  padding: .75rem 1rem;
  background: var(--cyan);
  color: var(--navy-900);
  z-index: 10000;
  border-radius: var(--radius-sm);
}

a { color: var(--cyan); text-decoration: none; }
a:hover { text-decoration: underline; }
img { max-width: 100%; height: auto; display: block; }

.container {
  width: min(92%, var(--max-width));
  margin-inline: auto;
}

/* Header */
.site-header {
  position: sticky;
  top: 0;
  z-index: 1000;
  background: rgba(10, 21, 48, 0.85);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--border);
  transition: background .25s ease, box-shadow .25s ease;
}
.site-header.scrolled {
  background: rgba(10, 21, 48, 0.96);
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.25);
}
.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: var(--header-height);
}
.logo {
  display: inline-flex;
  align-items: center;
  gap: .6rem;
  font-family: var(--font-heading);
  font-weight: 800;
  color: var(--text);
  text-decoration: none;
  font-size: 1.25rem;
}
.logo:hover { text-decoration: none; }
.logo-mark {
  width: 36px;
  height: 36px;
  display: grid;
  place-items: center;
  background: linear-gradient(135deg, var(--cyan), var(--cyan-400));
  color: var(--navy-900);
  border-radius: 9px;
  font-size: .85rem;
}
.logo-text { letter-spacing: -0.02em; }

.main-nav { display: flex; align-items: center; }
.nav-menu {
  display: flex;
  align-items: center;
  gap: .25rem;
  list-style: none;
  margin: 0;
  padding: 0;
}
.nav-menu a {
  display: block;
  padding: .55rem .9rem;
  color: var(--text-muted);
  font-weight: 500;
  font-size: .94rem;
  border-radius: var(--radius-sm);
  transition: color .2s, background .2s;
}
.nav-menu a:hover, .nav-menu a.current {
  color: var(--text);
  background: rgba(0, 192, 210, 0.08);
  text-decoration: none;
}
.nav-menu .btn-sm { margin-left: .5rem; }
.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  width: 42px;
  height: 42px;
  background: transparent;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  cursor: pointer;
  padding: 9px;
}
.nav-toggle span {
  display: block;
  height: 2px;
  background: var(--text);
  border-radius: 2px;
  transition: transform .25s, opacity .25s;
}
.nav-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.nav-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

@media (max-width: 920px) {
  .nav-toggle { display: flex; }
  .nav-menu {
    position: fixed;
    inset: var(--header-height) 0 auto 0;
    flex-direction: column;
    align-items: stretch;
    background: var(--navy-900);
    border-bottom: 1px solid var(--border);
    padding: 1rem;
    gap: .25rem;
    transform: translateY(-150%);
    opacity: 0;
    pointer-events: none;
    transition: transform .35s ease, opacity .25s ease;
  }
  .nav-menu.open {
    transform: translateY(0);
    opacity: 1;
    pointer-events: auto;
  }
  .nav-menu .btn-sm { margin: .5rem 0 0; text-align: center; }
}

/* Botões */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: .5rem;
  padding: .85rem 1.5rem;
  border-radius: var(--radius-sm);
  font-weight: 600;
  font-size: .95rem;
  border: 1px solid transparent;
  cursor: pointer;
  transition: transform .15s, box-shadow .2s, background .2s;
  text-decoration: none;
}
.btn:hover { transform: translateY(-1px); text-decoration: none; }
.btn-primary {
  background: linear-gradient(135deg, var(--cyan), var(--cyan-400));
  color: var(--navy-900);
  box-shadow: 0 8px 22px rgba(0, 192, 210, 0.25);
}
.btn-primary:hover { box-shadow: 0 12px 28px rgba(0, 192, 210, 0.35); }
.btn-secondary {
  background: transparent;
  color: var(--text);
  border-color: var(--border);
}
.btn-secondary:hover { background: rgba(0, 192, 210, 0.08); }
.btn-sm { padding: .55rem 1rem; font-size: .88rem; }
.btn-full { width: 100%; }

/* Hero */
.hero {
  position: relative;
  padding: 6rem 0 5rem;
  overflow: hidden;
}
.hero-bg {
  position: absolute;
  inset: 0;
  z-index: -1;
  opacity: .22;
  object-fit: cover;
  width: 100%;
  height: 100%;
  -webkit-mask-image: linear-gradient(to bottom, black 40%, transparent 95%);
  mask-image: linear-gradient(to bottom, black 40%, transparent 95%);
}
.hero-grid {
  display: grid;
  grid-template-columns: 1.1fr .9fr;
  gap: 3rem;
  align-items: center;
}
.hero-eyebrow {
  display: inline-block;
  padding: .35rem .85rem;
  border: 1px solid var(--border);
  border-radius: 999px;
  color: var(--cyan);
  font-size: .82rem;
  font-weight: 600;
  margin-bottom: 1.25rem;
}
.hero h1 {
  font-family: var(--font-heading);
  font-size: clamp(2.2rem, 5vw, 3.6rem);
  line-height: 1.08;
  letter-spacing: -0.03em;
  margin: 0 0 1.25rem;
}
.hero p.lead {
  font-size: 1.15rem;
  color: var(--text-muted);
  max-width: 540px;
  margin: 0 0 2rem;
}
.hero-actions { display: flex; gap: 1rem; flex-wrap: wrap; }
.hero-visual {
  position: relative;
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow-glow);
  border: 1px solid var(--border);
}
.hero-visual img {
  width: 100%;
  aspect-ratio: 4/3;
  object-fit: cover;
}

@media (max-width: 860px) {
  .hero-grid { grid-template-columns: 1fr; }
  .hero { padding: 4rem 0; }
}

/* Seções */
.section { padding: 5rem 0; }
.section-heading {
  max-width: 680px;
  margin: 0 auto 3rem;
  text-align: center;
}
.eyebrow {
  display: inline-block;
  color: var(--cyan);
  font-weight: 700;
  font-size: .8rem;
  text-transform: uppercase;
  letter-spacing: .12em;
  margin-bottom: .75rem;
}
.section-heading h2 {
  font-family: var(--font-heading);
  font-size: clamp(1.7rem, 3.5vw, 2.4rem);
  line-height: 1.15;
  margin: 0 0 1rem;
}
.section-heading p {
  color: var(--text-muted);
  font-size: 1.05rem;
  margin: 0;
}

/* Cards */
.card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 1.5rem;
}
.card {
  display: block;
  color: var(--text);
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.75rem;
  transition: transform .2s, box-shadow .2s, border-color .2s;
  text-decoration: none;
}
.card:hover {
  text-decoration: none;
  transform: translateY(-4px);
  border-color: rgba(0, 192, 210, 0.35);
  box-shadow: var(--shadow-glow);
}
.card-icon {
  width: 48px;
  height: 48px;
  border-radius: 12px;
  background: rgba(0, 192, 210, 0.1);
  display: grid;
  place-items: center;
  font-size: 1.5rem;
  margin-bottom: 1rem;
}
.card h3 {
  font-family: var(--font-heading);
  font-size: 1.15rem;
  margin: 0 0 .5rem;
}
.card p {
  color: var(--text-muted);
  font-size: .95rem;
  margin: 0;
}

/* Ecossistema */
.section-eco { background: var(--surface); }
.eco-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
}
.eco-card {
  background: var(--surface-2);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 2rem;
  position: relative;
}
.eco-number {
  position: absolute;
  top: 1.25rem;
  right: 1.5rem;
  font-family: var(--font-heading);
  font-size: 1.6rem;
  font-weight: 800;
  color: rgba(0, 192, 210, 0.25);
}
.eco-card h3 {
  font-family: var(--font-heading);
  font-size: 1.3rem;
  margin: 0 0 .75rem;
}
.eco-card p { color: var(--text-muted); margin: 0; }
@media (max-width: 800px) {
  .eco-grid { grid-template-columns: 1fr; }
}

/* Processo */
.process-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1.5rem;
}
.process-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.75rem;
}
.process-card .step {
  font-family: var(--font-heading);
  font-size: 2rem;
  font-weight: 800;
  color: var(--cyan);
  margin-bottom: .5rem;
}
.process-card h3 {
  font-family: var(--font-heading);
  font-size: 1.15rem;
  margin: 0 0 .5rem;
}
.process-card p { color: var(--text-muted); margin: 0; font-size: .95rem; }

/* Formulário */
.section-lead { background: var(--surface); }
.lead-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
  align-items: start;
}
.lead-benefits {
  list-style: none;
  padding: 0;
  margin: 1.5rem 0 0;
}
.lead-benefits li {
  position: relative;
  padding-left: 1.6rem;
  margin-bottom: .75rem;
  color: var(--text-muted);
}
.lead-benefits li::before {
  content: '✓';
  position: absolute;
  left: 0;
  color: var(--cyan);
  font-weight: 700;
}
.lead-form-wrap {
  background: var(--surface-2);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 2rem;
}
.lead-form {
  display: grid;
  gap: 1.1rem;
}
.form-field { display: grid; gap: .35rem; }
.form-field label {
  font-size: .88rem;
  font-weight: 600;
  color: var(--text-muted);
}
.form-field input,
.form-field textarea,
.form-field select {
  width: 100%;
  padding: .85rem 1rem;
  background: rgba(10, 21, 48, 0.5);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  color: var(--text);
  font-family: inherit;
  font-size: .95rem;
  outline: none;
  transition: border-color .2s, box-shadow .2s;
}
.form-field input:focus,
.form-field textarea:focus,
.form-field select:focus {
  border-color: var(--cyan);
  box-shadow: 0 0 0 3px rgba(0, 192, 210, 0.12);
}
.form-field input::placeholder,
.form-field textarea::placeholder { color: rgba(169, 184, 204, .5); }
.honeypot { position: absolute; left: -9999px; }
.form-note {
  font-size: .82rem;
  color: var(--text-muted);
  text-align: center;
  margin: .25rem 0 0;
}
.alert {
  padding: .9rem 1rem;
  border-radius: var(--radius-sm);
  margin-bottom: 1rem;
  font-size: .95rem;
}
.alert-success { background: rgba(0, 192, 210, 0.12); border: 1px solid var(--cyan); color: var(--text); }
.alert-error { background: rgba(255, 90, 90, 0.12); border: 1px solid #ff5a5a; color: #ffcece; }

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

/* Footer */
.site-footer {
  background: var(--navy-900);
  border-top: 1px solid var(--border);
  padding: 4rem 0 1.5rem;
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr 1fr;
  gap: 2.5rem;
  margin-bottom: 3rem;
}
.footer-tagline {
  color: var(--cyan);
  font-weight: 600;
  margin: .5rem 0 0;
}
.footer-mission { color: var(--text-muted); margin: .5rem 0 0; max-width: 260px; }
.footer-grid h3 {
  font-family: var(--font-heading);
  font-size: 1rem;
  margin: 0 0 1rem;
}
.footer-links {
  list-style: none;
  padding: 0;
  margin: 0;
}
.footer-links li { margin-bottom: .5rem; }
.footer-links a { color: var(--text-muted); font-size: .92rem; }
.footer-links a:hover { color: var(--text); }
.footer-bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-top: 1px solid var(--border);
  padding-top: 1.5rem;
  font-size: .85rem;
  color: var(--text-muted);
}
@media (max-width: 860px) {
  .footer-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 520px) {
  .footer-grid { grid-template-columns: 1fr; }
  .footer-bottom { flex-direction: column; gap: .5rem; text-align: center; }
}

/* WhatsApp flutuante */
.whatsapp-float {
  position: fixed;
  right: 1.25rem;
  bottom: 1.25rem;
  z-index: 999;
}
.whatsapp-float a {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: #25D366;
  color: #fff;
  display: grid;
  place-items: center;
  box-shadow: 0 8px 24px rgba(37, 211, 102, 0.35);
  transition: transform .2s;
}
.whatsapp-float a:hover { transform: scale(1.08); }
.whatsapp-float svg { width: 28px; height: 28px; }

/* Página de serviço */
.service-hero {
  padding: 4rem 0 3rem;
  text-align: center;
}
.service-hero h1 {
  font-family: var(--font-heading);
  font-size: clamp(1.9rem, 4vw, 2.8rem);
  line-height: 1.1;
  max-width: 780px;
  margin: 0 auto 1rem;
}
.service-hero p {
  color: var(--text-muted);
  font-size: 1.1rem;
  max-width: 720px;
  margin: 0 auto 2rem;
}
.service-section { padding: 3rem 0; }
.service-section h2 {
  font-family: var(--font-heading);
  font-size: 1.6rem;
  margin-bottom: 1.5rem;
  text-align: center;
}
.signals-list,
.deliverables-list {
  max-width: 720px;
  margin: 0 auto;
  list-style: none;
  padding: 0;
}
.signals-list li,
.deliverables-list li {
  position: relative;
  padding: 1rem 1rem 1rem 3rem;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  margin-bottom: .75rem;
}
.signals-list li::before {
  content: '→';
  position: absolute;
  left: 1.1rem;
  color: var(--cyan);
  font-weight: 700;
}
.deliverables-list li::before {
  content: '✓';
  position: absolute;
  left: 1.1rem;
  color: var(--cyan);
  font-weight: 700;
}

/* FAQ */
.faq-item {
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  margin-bottom: .75rem;
  overflow: hidden;
}
.faq-question {
  width: 100%;
  text-align: left;
  background: var(--surface);
  color: var(--text);
  border: none;
  padding: 1rem 1.25rem;
  font-family: var(--font-heading);
  font-size: 1rem;
  font-weight: 600;
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.faq-question::after {
  content: '+';
  color: var(--cyan);
  font-size: 1.4rem;
  font-weight: 400;
}
.faq-item.open .faq-question::after { content: '−'; }
.faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height .3s ease;
}
.faq-answer-inner {
  padding: 0 1.25rem 1.25rem;
  color: var(--text-muted);
}
.faq-item.open .faq-answer { max-height: 300px; }

/* Página de soluções e listagens */
.solutions-hero {
  padding: 4rem 0 2rem;
  text-align: center;
}
.solutions-hero h1 {
  font-family: var(--font-heading);
  font-size: clamp(1.9rem, 4vw, 2.8rem);
  margin-bottom: 1rem;
}
.solutions-hero p {
  color: var(--text-muted);
  max-width: 680px;
  margin: 0 auto;
}

.listing-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 1.5rem;
}
.listing-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.75rem;
  display: flex;
  flex-direction: column;
}
.listing-card .meta {
  font-size: .78rem;
  color: var(--cyan);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .08em;
  margin-bottom: .5rem;
}
.listing-card h3 {
  font-family: var(--font-heading);
  font-size: 1.2rem;
  margin: 0 0 .75rem;
}
.listing-card p { color: var(--text-muted); font-size: .95rem; margin: 0 0 1.25rem; flex: 1; }
.listing-card .link { font-weight: 600; }

/* Tecnologias */
.tech-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 1.25rem;
}
.tech-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.5rem;
}
.tech-card h3 {
  font-family: var(--font-heading);
  font-size: 1.1rem;
  margin: 0 0 .4rem;
}
.tech-card p { color: var(--text-muted); font-size: .92rem; margin: 0; }

/* Empresa */
.company-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
  align-items: center;
}
.company-text h2 {
  font-family: var(--font-heading);
  font-size: 1.8rem;
  margin-bottom: 1rem;
}
.company-text p { color: var(--text-muted); }
.company-image {
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid var(--border);
}
@media (max-width: 800px) {
  .company-grid { grid-template-columns: 1fr; }
}

/* Contato */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
  align-items: start;
}
.contact-info h2 {
  font-family: var(--font-heading);
  font-size: 1.8rem;
  margin-bottom: 1rem;
}
.contact-info p { color: var(--text-muted); margin-bottom: 1.5rem; }
.contact-channel {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 1rem;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  margin-bottom: .75rem;
}
.contact-channel strong { display: block; color: var(--text); }
.contact-channel span { color: var(--text-muted); font-size: .9rem; }
@media (max-width: 860px) {
  .contact-grid { grid-template-columns: 1fr; }
}

/* 404 */
.page-404 {
  text-align: center;
  padding: 6rem 0;
}
.page-404 h1 {
  font-family: var(--font-heading);
  font-size: 5rem;
  color: var(--cyan);
  margin: 0;
}
.page-404 h2 { font-family: var(--font-heading); margin: 1rem 0 .5rem; }
.page-404 p { color: var(--text-muted); margin-bottom: 2rem; }

/* Animação de entrada */
.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity .6s ease, transform .6s ease;
}
.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

/* Utilidades */
.text-center { text-align: center; }
.mt-1 { margin-top: 1rem; }
.mt-2 { margin-top: 2rem; }
.mb-2 { margin-bottom: 2rem; }
.lead { color: var(--text-muted); font-size: 1.1rem; }
code {
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
  background: rgba(0, 192, 210, 0.08);
  padding: .15rem .35rem;
  border-radius: 5px;
  font-size: .9em;
}
