/* ============================================
   RSD - Robson Software Developer
   ============================================ */

:root {
  --bg-dark: #0b0f19;
  --card-bg: #131a2a;
  --cyan: #00e5ff;
  --purple: #8a2be2;
  --text: #e2e8f0;
  --text-muted: #94a3b8;
  --gradient: linear-gradient(135deg, #00e5ff 0%, #8a2be2 100%);
}

*,
*::before,
*::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
  background-color: var(--bg-dark);
  color: var(--text);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

a {
  text-decoration: none;
}

/* ===== HEADER ===== */
header {
  background: rgba(19, 26, 42, 0.95);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  position: sticky;
  top: 0;
  z-index: 100;
  border-bottom: 1px solid rgba(0, 229, 255, 0.2);
  padding: 0.6rem 5%;
}

.header-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 2rem;
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  flex-wrap: wrap;
}

.logo {
  display: flex;
  align-items: center;
  flex-shrink: 0;
  text-decoration: none;
}

.logo img {
  height: 64px;
  width: auto;
  display: block;
  object-fit: contain;
}

nav {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
}

nav a {
  color: var(--text);
  margin-left: 1.6rem;
  font-size: 0.95rem;
  transition: color 0.3s;
}

nav a:hover {
  color: var(--cyan);
}

nav a.nav-linkedin {
  color: var(--cyan);
  font-weight: 700;
}

/* ===== HERO ===== */
.hero {
  padding: 5rem 6% 4rem;
  text-align: center;
  background: radial-gradient(circle at center, rgba(0, 229, 255, 0.08) 0%, transparent 70%);
}

.eyebrow {
  text-transform: uppercase;
  letter-spacing: 2px;
  font-size: 0.78rem;
  color: var(--cyan);
  margin-bottom: 1rem;
}

.hero h1 {
  font-size: clamp(1.8rem, 4vw, 2.8rem);
  line-height: 1.2;
  margin-bottom: 1rem;
  color: #fff;
}

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

.hero p {
  font-size: 1.1rem;
  color: var(--text-muted);
  max-width: 780px;
  margin: 0 auto 2rem;
}

.hero p strong {
  color: var(--text);
}

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

/* ===== BOTÕES ===== */
.btn {
  display: inline-block;
  padding: 0.8rem 1.8rem;
  background: var(--gradient);
  color: #fff;
  font-weight: 700;
  border-radius: 6px;
  border: none;
  cursor: pointer;
  box-shadow: 0 0 15px rgba(0, 229, 255, 0.35);
  transition: transform 0.25s, box-shadow 0.25s;
  text-align: center;
  font-size: 0.95rem;
  font-family: inherit;
}

.btn:hover {
  transform: translateY(-3px);
  box-shadow: 0 0 25px rgba(0, 229, 255, 0.7);
  color: #fff;
}

.btn-outline {
  background: transparent;
  border: 1px solid var(--cyan);
  color: var(--cyan);
  box-shadow: none;
}

.btn-outline:hover {
  background: rgba(0, 229, 255, 0.1);
  color: var(--cyan);
  box-shadow: none;
}

.btn-full {
  width: 100%;
}

/* ===== HERO STATS ===== */
.hero-stats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1rem;
  list-style: none;
  padding: 0;
  margin: 0 auto;
  max-width: 900px;
}

.hero-stats li {
  background: var(--card-bg);
  border: 1px solid rgba(0, 229, 255, 0.15);
  border-radius: 10px;
  padding: 1rem;
  text-align: center;
  list-style: none;
}

.hero-stats strong {
  display: block;
  font-size: 1.15rem;
  color: var(--cyan);
  margin-bottom: 0.2rem;
}

.hero-stats span {
  font-size: 0.85rem;
  color: var(--text-muted);
}

/* ===== SOBRE ===== */
.about-section {
  display: grid;
  grid-template-columns: 2fr 1fr;
  gap: 2.5rem;
  padding: 4rem 6%;
  max-width: 1300px;
  margin: 0 auto;
}

.about-text h2 {
  color: var(--cyan);
  font-size: 1.9rem;
  margin-bottom: 1rem;
}

.about-text h3 {
  color: #fff;
  font-size: 1.1rem;
  margin: 1.8rem 0 0.8rem;
}

.about-text p {
  color: var(--text-muted);
  margin-bottom: 1rem;
}

.about-text p strong {
  color: var(--text);
}

.about-list {
  list-style: none;
  padding: 0;
  margin: 0;
}

.about-list li {
  margin-bottom: 0.5rem;
  color: var(--text);
  list-style: none;
}

.about-list li strong {
  color: var(--cyan);
}

.about-card {
  background: var(--card-bg);
  border: 1px solid rgba(0, 229, 255, 0.25);
  border-radius: 12px;
  padding: 1.5rem;
  align-self: start;
}

.about-card h4 {
  color: var(--cyan);
  margin-bottom: 1rem;
  font-size: 1.05rem;
}

.about-card p {
  color: var(--text-muted);
  margin-bottom: 0.8rem;
  font-size: 0.95rem;
}

.about-card p strong {
  color: var(--text);
}

.about-photo {
  width: 100%;
  border-radius: 12px;
  margin-bottom: 1rem;
  border: 1px solid rgba(0, 229, 255, 0.3);
}

/* ===== SEÇÕES GENÉRICAS ===== */
.section-title {
  text-align: center;
  color: var(--cyan);
  font-size: 1.9rem;
  margin-bottom: 0.5rem;
}

.section-sub {
  text-align: center;
  color: var(--text-muted);
  max-width: 720px;
  margin: 0 auto 2rem;
  font-size: 1rem;
}

/* ===== CASES ===== */
.cases-section {
  padding: 4rem 6%;
  max-width: 1300px;
  margin: 0 auto;
}

.cases-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
}

.case-card {
  background: var(--card-bg);
  border: 1px solid rgba(0, 229, 255, 0.2);
  border-radius: 12px;
  padding: 1.6rem;
  position: relative;
  display: flex;
  flex-direction: column;
  transition: transform 0.25s, border-color 0.25s, box-shadow 0.25s;
}

.case-card:hover {
  transform: translateY(-4px);
  border-color: var(--cyan);
  box-shadow: 0 8px 24px rgba(0, 229, 255, 0.15);
}

.case-tag {
  display: inline-block;
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 1.2px;
  color: var(--cyan);
  font-weight: 700;
  background: rgba(0, 229, 255, 0.1);
  border: 1px solid rgba(0, 229, 255, 0.3);
  padding: 0.25rem 0.6rem;
  border-radius: 999px;
  margin-bottom: 0.8rem;
  align-self: flex-start;
}

.case-card h3 {
  color: #fff;
  font-size: 1.1rem;
  margin-bottom: 0.5rem;
}

.case-context {
  color: var(--text-muted);
  font-size: 0.85rem;
  margin-bottom: 0.9rem;
  padding-bottom: 0.9rem;
  border-bottom: 1px dashed rgba(148, 163, 184, 0.2);
}

.case-context a {
  color: var(--cyan);
}

.case-context a:hover {
  text-decoration: underline;
}

.case-results {
  list-style: none;
  padding: 0;
  margin: 0 0 1rem 0;
}

.case-results li {
  color: var(--text);
  font-size: 0.9rem;
  margin-bottom: 0.4rem;
  padding-left: 1.1rem;
  position: relative;
}

.case-results li::before {
  content: "▸";
  color: var(--cyan);
  position: absolute;
  left: 0;
}

.case-outcome {
  color: var(--text-muted);
  font-size: 0.88rem;
  margin-top: auto;
  padding-top: 0.8rem;
  border-top: 1px dashed rgba(148, 163, 184, 0.2);
}

.case-outcome strong {
  color: var(--cyan);
}

/* ===== PROCESSO ===== */
.process-section {
  padding: 4rem 6%;
  background: var(--card-bg);
  margin: 2rem auto;
  max-width: 1300px;
  border-radius: 12px;
  border: 1px solid rgba(0, 229, 255, 0.15);
}

.process-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.5rem;
  margin-top: 2rem;
}

.process-step {
  background: var(--bg-dark);
  border-radius: 10px;
  padding: 1.5rem;
  border-top: 3px solid var(--cyan);
  position: relative;
}

.step-num {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: var(--gradient);
  color: #fff;
  font-weight: 800;
  font-size: 0.95rem;
  margin-bottom: 0.8rem;
}

.process-step h3 {
  color: #fff;
  font-size: 1.05rem;
  margin-bottom: 0.4rem;
}

.process-step p {
  color: var(--text-muted);
  font-size: 0.9rem;
}

/* ===== CTA DIAGNÓSTICO ===== */
.cta-diagnostico {
  padding: 4rem 6%;
  max-width: 1000px;
  margin: 0 auto;
}

.cta-box {
  background: linear-gradient(135deg, rgba(0, 229, 255, 0.08) 0%, rgba(138, 43, 226, 0.08) 100%);
  border: 1px solid rgba(0, 229, 255, 0.3);
  border-radius: 16px;
  padding: 2.8rem 2rem;
  text-align: center;
  box-shadow: 0 8px 40px rgba(0, 229, 255, 0.1);
}

.cta-box h2 {
  color: #fff;
  font-size: 1.8rem;
  margin-bottom: 1rem;
}

.cta-box>p {
  color: var(--text-muted);
  max-width: 640px;
  margin: 0 auto 1.5rem;
}

.cta-list {
  list-style: none;
  padding: 0;
  margin: 0 auto 2rem;
  display: inline-flex;
  flex-direction: column;
  gap: 0.4rem;
  text-align: left;
}

.cta-list li {
  color: var(--text);
  font-size: 0.95rem;
}

/* ===== SEI HIGHLIGHT ===== */
.sei-highlight {
  padding: 4rem 6%;
  background-color: var(--card-bg);
  margin: 2rem auto;
  max-width: 1300px;
  border-radius: 12px;
  border: 1px solid rgba(0, 229, 255, 0.3);
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
}

.sei-highlight h2 {
  color: var(--cyan);
  font-size: 1.9rem;
  margin-bottom: 1rem;
}

.sei-highlight>p {
  color: var(--text-muted);
  max-width: 800px;
}

/* ===== GRID DE CARDS ===== */
.services-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
  margin-top: 2rem;
}

.card {
  background: var(--bg-dark);
  padding: 1.5rem;
  border-radius: 8px;
  border-left: 4px solid var(--cyan);
  transition: transform 0.25s, border-color 0.25s;
}

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

.card h3 {
  color: #fff;
  font-size: 1.05rem;
  margin-bottom: 0.5rem;
}

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

/* ===== CONTATO ===== */
.contact-section {
  padding: 4rem 6%;
  max-width: 1300px;
  margin: 0 auto;
}

.contact-form {
  max-width: 620px;
  margin: 0 auto;
  background: var(--card-bg);
  padding: 2.2rem;
  border-radius: 12px;
  border: 1px solid rgba(138, 43, 226, 0.3);
}

.form-title {
  text-align: center;
  color: #fff;
  margin-bottom: 0.5rem;
}

.form-sub {
  text-align: center;
  color: var(--text-muted);
  font-size: 0.92rem;
  margin-bottom: 1.5rem;
}

.form-success {
  color: var(--cyan);
  text-align: center;
  background: rgba(0, 229, 255, 0.08);
  padding: 0.7rem;
  border-radius: 6px;
  margin-bottom: 1rem;
}

.form-group {
  margin-bottom: 1.1rem;
}

.form-group label {
  display: block;
  color: var(--text-muted);
  font-size: 0.9rem;
  margin-bottom: 0.45rem;
}

.form-group input,
.form-group textarea,
.form-group select {
  width: 100%;
  padding: 0.8rem;
  background: var(--bg-dark);
  border: 1px solid rgba(0, 229, 255, 0.2);
  color: var(--text);
  border-radius: 6px;
  font-size: 0.95rem;
  font-family: inherit;
}

.form-group input:focus,
.form-group textarea:focus,
.form-group select:focus {
  outline: none;
  border-color: var(--cyan);
}

.form-alt {
  text-align: center;
  color: var(--text-muted);
  font-size: 0.88rem;
  margin-top: 1.2rem;
  padding-top: 1.2rem;
  border-top: 1px dashed rgba(148, 163, 184, 0.2);
}

.form-alt a {
  color: var(--cyan);
}

.form-alt a:hover {
  text-decoration: underline;
}

/* ===== FOOTER ===== */
footer {
  text-align: center;
  padding: 2rem 6%;
  background: var(--card-bg);
  color: var(--text-muted);
  border-top: 1px solid rgba(0, 229, 255, 0.1);
  font-size: 0.9rem;
}

footer a {
  color: var(--cyan);
}

footer a:hover {
  text-decoration: underline;
}

footer p+p {
  margin-top: 0.5rem;
}

/* ===== WHATSAPP FLUTUANTE ===== */
.whatsapp-float {
  position: fixed;
  bottom: 24px;
  right: 24px;
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: #25D366;
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 6px 20px rgba(37, 211, 102, 0.45);
  z-index: 999;
  transition: transform 0.25s, box-shadow 0.25s;
}

.whatsapp-float:hover {
  transform: scale(1.08);
  box-shadow: 0 8px 28px rgba(37, 211, 102, 0.65);
}

/* ===== FAQ ===== */
.faq-section {
  padding: 4rem 6%;
  max-width: 900px;
  margin: 0 auto;
}

.faq-list {
  margin-top: 2rem;
  display: flex;
  flex-direction: column;
  gap: 0.8rem;
}

.faq-item {
  background: var(--card-bg);
  border: 1px solid rgba(0, 229, 255, 0.15);
  border-radius: 10px;
  overflow: hidden;
  transition: border-color 0.25s, box-shadow 0.25s;
}

.faq-item:hover {
  border-color: rgba(0, 229, 255, 0.4);
}

.faq-item[open] {
  border-color: rgba(0, 229, 255, 0.5);
  box-shadow: 0 8px 24px rgba(0, 229, 255, 0.1);
}

.faq-item summary {
  padding: 1.1rem 1.4rem;
  cursor: pointer;
  font-weight: 600;
  color: #fff;
  font-size: 1rem;
  list-style: none;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
  transition: color 0.2s;
  position: relative;
}

.faq-item summary::-webkit-details-marker {
  display: none;
}

.faq-item summary::after {
  content: "+";
  font-size: 1.6rem;
  color: var(--cyan);
  font-weight: 300;
  line-height: 1;
  transition: transform 0.25s;
  flex-shrink: 0;
}

.faq-item[open] summary::after {
  content: "−";
  transform: rotate(180deg);
}

.faq-item summary:hover {
  color: var(--cyan);
}

.faq-answer {
  padding: 0 1.4rem 1.2rem;
  color: var(--text-muted);
  font-size: 0.95rem;
  line-height: 1.7;
  border-top: 1px solid rgba(0, 229, 255, 0.1);
  padding-top: 1rem;
  margin-top: 0;
}

.faq-answer p {
  margin: 0;
}

.faq-answer strong {
  color: var(--text);
}

.faq-answer a {
  color: var(--cyan);
}

.faq-answer a:hover {
  text-decoration: underline;
}

/* ===== PÁGINA LEGAL (Privacidade) ===== */
.legal-page {
  padding: 4rem 6%;
  max-width: 900px;
  margin: 0 auto;
}

.legal-container {
  background: var(--card-bg);
  border: 1px solid rgba(0,229,255,0.15);
  border-radius: 12px;
  padding: 3rem 2.5rem;
}

.legal-container h1 {
  color: #fff;
  font-size: 2rem;
  margin-bottom: 0.5rem;
  line-height: 1.2;
}

.legal-updated {
  color: var(--text-muted);
  font-size: 0.9rem;
  margin-bottom: 2rem;
  padding-bottom: 1.5rem;
  border-bottom: 1px solid rgba(0,229,255,0.1);
}

.legal-container h2 {
  color: var(--cyan);
  font-size: 1.25rem;
  margin: 2.2rem 0 0.8rem;
}

.legal-container h3 {
  color: #fff;
  font-size: 1rem;
  margin: 1.4rem 0 0.6rem;
}

.legal-container p {
  color: var(--text-muted);
  margin-bottom: 1rem;
  line-height: 1.7;
}

.legal-container ul {
  list-style: none;
  padding: 0;
  margin: 0 0 1.2rem;
}

.legal-container ul li {
  color: var(--text-muted);
  padding-left: 1.4rem;
  position: relative;
  margin-bottom: 0.5rem;
  line-height: 1.6;
}

.legal-container ul li::before {
  content: "▸";
  color: var(--cyan);
  position: absolute;
  left: 0;
  font-weight: bold;
}

.legal-container strong { color: var(--text); }
.legal-container a { color: var(--cyan); }
.legal-container a:hover { text-decoration: underline; }

.legal-hr {
  border: none;
  border-top: 1px solid rgba(0,229,255,0.1);
  margin: 2.5rem 0 1.5rem;
}

.legal-back { text-align: center; }

@media (max-width: 640px) {
  .legal-page { padding-left: 4%; padding-right: 4%; }
  .legal-container { padding: 2rem 1.2rem; }
  .legal-container h1 { font-size: 1.5rem; }
  .legal-container h2 { font-size: 1.1rem; }
}

/* ===== RESPONSIVO ===== */
@media (max-width: 1024px) {
  .services-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .hero-stats {
    grid-template-columns: repeat(2, 1fr);
  }

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

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

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

@media (max-width: 768px) {
  header {
    padding: 0.6rem 4%;
  }

  .logo img {
    height: 48px;
  }

  nav a {
    margin-left: 1rem;
    font-size: 0.85rem;
  }
}

@media (max-width: 640px) {
  .header-inner {
    justify-content: center;
    text-align: center;
  }

  nav {
    justify-content: center;
  }

  .services-grid,
  .cases-grid,
  .process-grid {
    grid-template-columns: 1fr;
  }

  .hero-stats {
    grid-template-columns: 1fr 1fr;
  }

  .hero {
    padding: 3rem 5% 2.5rem;
  }

  .about-section,
  .sei-highlight,
  .contact-section,
  .cases-section,
  .process-section,
  .cta-diagnostico {
    padding-left: 5%;
    padding-right: 5%;
  }

  .sei-highlight,
  .process-section {
    margin: 1rem 5%;
  }

  .whatsapp-float {
    bottom: 16px;
    right: 16px;
    width: 50px;
    height: 50px;
  }

  .cta-box {
    padding: 2rem 1.2rem;
  }

  .cta-box h2 {
    font-size: 1.4rem;
  }

  .faq-section {
    padding-left: 5%;
    padding-right: 5%;
  }

  .faq-item summary {
    padding: 1rem 1.1rem;
    font-size: 0.95rem;
  }

  .faq-answer {
    padding: 0 1.1rem 1rem;
  }
}