/* ==========================================================================
   RJ Sistema — Landing Page
   Direção estética: tech/enterprise de alta confiança — navy profundo,
   luz elétrica azul→ciano, precisão geométrica, vidro e circuito.
   ========================================================================== */

@import url('https://fonts.googleapis.com/css2?family=Unbounded:wght@400;600;700;800;900&family=Manrope:wght@400;500;600;700;800&display=swap');

:root {
  /* paleta extraída da logo */
  --navy-950: #061530;
  --navy-900: #0A2A5E;
  --navy-800: #0E3672;
  --blue-600: #155DC7;
  --blue-500: #1E88E5;
  --cyan-400: #3FC6F5;
  --cyan-300: #7FDBFF;
  --silver-400: #9AA5B1;
  --silver-300: #C4CCD4;
  --ink-900: #101826;
  --white: #FFFFFF;
  --off-white: #F4F7FB;

  --grad-brand: linear-gradient(120deg, var(--blue-600) 0%, var(--blue-500) 45%, var(--cyan-400) 100%);
  --grad-hero: radial-gradient(120% 120% at 15% 10%, #10327a 0%, var(--navy-900) 45%, var(--navy-950) 100%);

  --font-display: 'Unbounded', 'Segoe UI', sans-serif;
  --font-body: 'Manrope', 'Segoe UI', sans-serif;

  --shadow-lg: 0 30px 60px -20px rgba(6, 21, 48, 0.45);
  --shadow-glow: 0 0 0 1px rgba(63, 198, 245, 0.15), 0 20px 45px -15px rgba(21, 93, 199, 0.55);

  --radius-lg: 28px;
  --radius-md: 18px;
  --radius-sm: 10px;

  --container: 1180px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: var(--font-body);
  color: var(--ink-900);
  background: var(--off-white);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

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

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

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

h1, h2, h3, h4 {
  font-family: var(--font-display);
  margin: 0;
  line-height: 1.08;
  letter-spacing: -0.01em;
  overflow-wrap: break-word;
}

p { margin: 0; }

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-body);
  font-weight: 800;
  font-size: 0.72rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--cyan-400);
}
.eyebrow::before {
  content: "";
  width: 26px;
  height: 2px;
  background: var(--grad-brand);
  display: inline-block;
  border-radius: 2px;
}
.section-light .eyebrow { color: var(--blue-600); }

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  font-family: var(--font-body);
  font-weight: 700;
  font-size: 0.95rem;
  padding: 15px 30px;
  border-radius: 999px;
  border: none;
  cursor: pointer;
  transition: transform 0.35s cubic-bezier(.2,.8,.2,1), box-shadow 0.35s ease, background 0.3s ease;
  white-space: nowrap;
}
.btn-primary {
  background: var(--grad-brand);
  color: var(--white);
  box-shadow: var(--shadow-glow);
}
.btn-primary:hover { transform: translateY(-3px); box-shadow: 0 25px 50px -15px rgba(63,198,245,0.55); }
.btn-ghost {
  background: rgba(255,255,255,0.06);
  color: var(--white);
  border: 1px solid rgba(255,255,255,0.28);
  backdrop-filter: blur(6px);
}
.btn-ghost:hover { background: rgba(255,255,255,0.14); transform: translateY(-3px); }
.btn-dark {
  background: var(--navy-900);
  color: var(--white);
}
.btn-dark:hover { transform: translateY(-3px); box-shadow: var(--shadow-lg); }
.btn-block { width: 100%; }
.btn svg { width: 18px; height: 18px; }

/* ---------------------------------- HEADER --------------------------------- */
.site-header {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 200;
  padding: 22px 0;
  transition: padding 0.35s ease, background 0.35s ease, box-shadow 0.35s ease;
}
.site-header .container { display: flex; align-items: center; justify-content: space-between; }
.site-header.is-scrolled {
  padding: 12px 0;
  background: rgba(6, 21, 48, 0.82);
  backdrop-filter: blur(14px);
  box-shadow: 0 12px 30px -18px rgba(0,0,0,0.6);
}
.brand { display: flex; align-items: center; gap: 12px; }
.brand img { height: 40px; width: auto; }

.nav-links {
  display: flex;
  align-items: center;
  gap: 38px;
  list-style: none;
  margin: 0; padding: 0;
}
.nav-links a {
  color: var(--white);
  font-weight: 600;
  font-size: 0.92rem;
  position: relative;
  padding: 6px 0;
}
.nav-links a::after {
  content: "";
  position: absolute;
  left: 0; bottom: 0;
  width: 0%; height: 2px;
  background: var(--grad-brand);
  transition: width 0.3s ease;
}
.nav-links a:hover::after { width: 100%; }

.header-actions { display: flex; align-items: center; gap: 20px; }
.nav-toggle {
  display: none;
  width: 44px; height: 44px;
  border-radius: 12px;
  border: 1px solid rgba(255,255,255,0.25);
  background: rgba(255,255,255,0.05);
  align-items: center; justify-content: center;
  cursor: pointer;
}
.nav-toggle span, .nav-toggle span::before, .nav-toggle span::after {
  content: ""; display: block; width: 20px; height: 2px; background: var(--white);
  position: relative; transition: transform 0.3s ease, opacity 0.3s ease;
}
.nav-toggle span::before { position: absolute; top: -6px; }
.nav-toggle span::after { position: absolute; top: 6px; }
.nav-toggle.is-active span { background: transparent; }
.nav-toggle.is-active span::before { transform: translateY(6px) rotate(45deg); }
.nav-toggle.is-active span::after { transform: translateY(-6px) rotate(-45deg); }

/* ---------------------------------- HERO --------------------------------- */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  background: var(--grad-hero);
  overflow: hidden;
  padding-top: 140px;
  padding-bottom: 90px;
}
.hero > .container { min-width: 0; }
.hero-grid {
  position: absolute; inset: 0;
  background-image:
    linear-gradient(rgba(255,255,255,0.05) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,0.05) 1px, transparent 1px);
  background-size: 64px 64px;
  mask-image: radial-gradient(ellipse 80% 60% at 50% 30%, black 40%, transparent 100%);
  pointer-events: none;
}
.hero-orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(70px);
  opacity: 0.55;
  pointer-events: none;
}
.hero-orb--1 { width: 460px; height: 460px; top: -120px; right: -80px; background: var(--cyan-400); animation: float-orb 12s ease-in-out infinite; }
.hero-orb--2 { width: 360px; height: 360px; bottom: -140px; left: -60px; background: var(--blue-600); animation: float-orb 15s ease-in-out infinite reverse; }
@keyframes float-orb {
  0%, 100% { transform: translate(0,0) scale(1); }
  50% { transform: translate(30px,-24px) scale(1.08); }
}

.hero-content {
  position: relative;
  z-index: 2;
  max-width: 760px;
  min-width: 0;
}
.hero .eyebrow { color: var(--cyan-300); }
.hero h1 {
  font-size: clamp(2rem, 7.6vw, 4.4rem);
  color: var(--white);
  margin-top: 20px;
  font-weight: 800;
}
.hero h1 .grad {
  background: linear-gradient(120deg, var(--cyan-300), var(--blue-500) 60%, var(--white));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.hero-sub {
  margin-top: 26px;
  font-size: 1.15rem;
  line-height: 1.7;
  color: var(--silver-300);
  max-width: 560px;
}
.hero-cta { display: flex; flex-wrap: wrap; gap: 16px; margin-top: 42px; }

.hero-stats {
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, auto));
  gap: 40px;
  margin-top: 76px;
  padding-top: 34px;
  border-top: 1px solid rgba(255,255,255,0.14);
  max-width: 640px;
}
.hero-stats strong {
  display: block;
  font-family: var(--font-display);
  font-size: 2rem;
  color: var(--white);
}
.hero-stats span { color: var(--silver-400); font-size: 0.85rem; }

.scroll-cue {
  position: absolute;
  bottom: 34px; left: 50%;
  transform: translateX(-50%);
  z-index: 2;
  display: flex; flex-direction: column; align-items: center; gap: 10px;
  color: var(--silver-400);
  font-size: 0.72rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}
.scroll-cue i {
  width: 1px; height: 34px;
  background: linear-gradient(var(--cyan-400), transparent);
  display: block;
  animation: scroll-pulse 1.8s ease-in-out infinite;
}
@keyframes scroll-pulse { 0%,100%{ opacity: 0.3;} 50%{ opacity:1;} }

/* ---------------------------------- REVEAL --------------------------------- */
[data-reveal] {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 0.8s cubic-bezier(.2,.7,.2,1), transform 0.8s cubic-bezier(.2,.7,.2,1);
}
[data-reveal].is-visible { opacity: 1; transform: translateY(0); }

/* ---------------------------------- SOBRE --------------------------------- */
.section { padding: 130px 0; position: relative; }
.section-light { background: var(--off-white); }
.section-dark { background: var(--navy-950); color: var(--white); }

.about-grid {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: 90px;
  align-items: center;
}
.about-visual {
  position: relative;
  aspect-ratio: 1 / 1;
  border-radius: var(--radius-lg);
  background: var(--grad-hero);
  overflow: hidden;
  box-shadow: var(--shadow-lg);
}
.about-visual svg { position: absolute; inset: 0; width: 100%; height: 100%; }
.about-visual .ring {
  position: absolute; border: 1px solid rgba(255,255,255,0.18); border-radius: 50%;
}
.about-visual .ring--1 { inset: 14%; animation: spin-slow 40s linear infinite; }
.about-visual .ring--2 { inset: 30%; border-style: dashed; animation: spin-slow 60s linear infinite reverse; }
@keyframes spin-slow { to { transform: rotate(360deg); } }
.about-visual .core {
  position: absolute; inset: 42%;
  border-radius: 50%;
  background: var(--grad-brand);
  filter: blur(2px);
  box-shadow: 0 0 60px 10px rgba(63,198,245,0.6);
}

.about-copy h2 { font-size: clamp(2rem, 3.4vw, 2.7rem); color: var(--navy-950); margin-top: 18px; }
.about-copy p { margin-top: 22px; font-size: 1.05rem; line-height: 1.8; color: #47526b; max-width: 560px; }

.about-stats {
  margin-top: 46px;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}
.about-stats .stat {
  border-left: 2px solid var(--blue-500);
  padding-left: 16px;
}
.about-stats strong { font-family: var(--font-display); font-size: 1.9rem; color: var(--navy-900); display:block; }
.about-stats span { color: var(--silver-400); font-size: 0.82rem; }

/* ---------------------------------- SERVIÇOS --------------------------------- */
.services-head { max-width: 640px; margin: 0 auto 64px; text-align: center; }
.services-head h2 { font-size: clamp(2rem, 3.6vw, 2.8rem); margin-top: 18px; color: var(--white); }
.services-head p { margin-top: 20px; color: var(--silver-300); font-size: 1.05rem; line-height: 1.7; }
.section-dark .eyebrow { justify-content: center; }
.services-head .eyebrow { justify-content: center; }

.services-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 26px;
}
.service-card {
  position: relative;
  padding: 38px 30px;
  border-radius: var(--radius-md);
  background: linear-gradient(180deg, rgba(255,255,255,0.05), rgba(255,255,255,0.02));
  border: 1px solid rgba(255,255,255,0.09);
  overflow: hidden;
  transition: transform 0.4s cubic-bezier(.2,.8,.2,1), border-color 0.4s ease, background 0.4s ease;
}
.service-card::before {
  content: "";
  position: absolute; inset: -1px;
  border-radius: inherit;
  padding: 1px;
  background: var(--grad-brand);
  opacity: 0;
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  -webkit-mask-composite: xor;
  mask-composite: exclude;
  transition: opacity 0.4s ease;
  pointer-events: none;
}
.service-card:hover { transform: translateY(-8px); background: linear-gradient(180deg, rgba(255,255,255,0.08), rgba(255,255,255,0.02)); }
.service-card:hover::before { opacity: 1; }
.service-card .num {
  position: absolute; top: 24px; right: 28px;
  font-family: var(--font-display);
  font-size: 0.75rem;
  color: rgba(255,255,255,0.28);
  letter-spacing: 0.1em;
}
.service-icon {
  width: 56px; height: 56px;
  border-radius: 16px;
  display: flex; align-items: center; justify-content: center;
  background: var(--grad-brand);
  box-shadow: 0 12px 24px -8px rgba(63,198,245,0.5);
  margin-bottom: 24px;
}
.service-icon svg { width: 28px; height: 28px; stroke: var(--white); fill: none; }
.service-card h3 { color: var(--white); font-size: 1.18rem; font-family: var(--font-body); font-weight: 800; }
.service-card p { margin-top: 14px; color: var(--silver-300); font-size: 0.95rem; line-height: 1.7; }
.service-card--wide { grid-column: span 1; }

/* ---------------------------------- CONTATO --------------------------------- */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1.15fr;
  gap: 60px;
  align-items: flex-start;
}
.contact-info h2 { font-size: clamp(2rem, 3.4vw, 2.6rem); color: var(--navy-950); margin-top: 18px; }
.contact-info > p { margin-top: 20px; color: #47526b; font-size: 1.02rem; line-height: 1.75; max-width: 460px; }

.info-cards { margin-top: 40px; display: flex; flex-direction: column; gap: 14px; }
.info-card {
  display: flex; align-items: center; gap: 16px;
  padding: 18px 20px;
  background: var(--white);
  border-radius: var(--radius-sm);
  border: 1px solid #E4E9F1;
  transition: transform 0.3s ease, box-shadow 0.3s ease, border-color 0.3s ease;
}
.info-card:hover { transform: translateX(6px); box-shadow: var(--shadow-lg); border-color: transparent; }
.info-card .ic {
  width: 44px; height: 44px; border-radius: 12px;
  background: var(--grad-brand);
  display: flex; align-items: center; justify-content: center; flex-shrink: 0;
}
.info-card .ic svg { width: 20px; height: 20px; stroke: var(--white); fill: none; }
.info-card strong { display: block; font-size: 0.78rem; letter-spacing: 0.05em; text-transform: uppercase; color: var(--silver-400); }
.info-card span, .info-card a { font-weight: 700; color: var(--navy-950); font-size: 0.98rem; }

.contact-form {
  background: var(--white);
  border-radius: var(--radius-lg);
  padding: 46px;
  box-shadow: var(--shadow-lg);
  border: 1px solid #E9EEF5;
}
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.field { margin-bottom: 20px; }
.field label {
  display: block; font-size: 0.8rem; font-weight: 700;
  color: var(--navy-900); margin-bottom: 8px;
}
.field input, .field select, .field textarea {
  width: 100%;
  border: 1.5px solid #DEE4EC;
  border-radius: 12px;
  padding: 14px 16px;
  font-family: var(--font-body);
  font-size: 0.95rem;
  color: var(--ink-900);
  background: #FBFCFE;
  transition: border-color 0.25s ease, box-shadow 0.25s ease;
}
.field input:focus, .field select:focus, .field textarea:focus {
  outline: none;
  border-color: var(--blue-500);
  box-shadow: 0 0 0 4px rgba(30,136,229,0.14);
}
.field textarea { resize: vertical; min-height: 120px; }
.hp-field { position: absolute; left: -9999px; opacity: 0; }

.form-alert {
  padding: 14px 18px;
  border-radius: 12px;
  font-weight: 700;
  font-size: 0.92rem;
  margin-bottom: 24px;
}
.form-alert.success { background: #E4F8ED; color: #17794A; border: 1px solid #B4EAC8; }
.form-alert.error { background: #FDEBEC; color: #B3261E; border: 1px solid #F6C6C6; }

/* ---------------------------------- FOOTER --------------------------------- */
.site-footer {
  background: var(--navy-950);
  color: var(--silver-300);
  padding: 70px 0 30px;
}
.footer-top {
  display: grid;
  grid-template-columns: 1.3fr 1fr 1fr 1fr;
  gap: 40px;
  padding-bottom: 50px;
  border-bottom: 1px solid rgba(255,255,255,0.09);
}
.footer-brand img { height: 38px; margin-bottom: 18px; }
.footer-brand p { font-size: 0.92rem; line-height: 1.7; color: var(--silver-400); max-width: 280px; }
.footer-col h4 { color: var(--white); font-size: 0.85rem; letter-spacing: 0.05em; text-transform: uppercase; margin-bottom: 20px; font-family: var(--font-body); font-weight: 800;}
.footer-col ul { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 12px; }
.footer-col a { font-size: 0.92rem; color: var(--silver-300); transition: color 0.25s ease; }
.footer-col a:hover { color: var(--cyan-400); }
.social-row { display: flex; gap: 10px; margin-top: 20px; }
.social-row a {
  width: 38px; height: 38px; border-radius: 10px;
  border: 1px solid rgba(255,255,255,0.16);
  display: flex; align-items: center; justify-content: center;
  transition: border-color 0.25s ease, background 0.25s ease, transform 0.25s ease;
}
.social-row a:hover { background: rgba(255,255,255,0.08); border-color: var(--cyan-400); transform: translateY(-3px); }
.social-row svg { width: 16px; height: 16px; stroke: var(--white); fill: none; }
.footer-bottom {
  display: flex; justify-content: space-between; align-items: center;
  padding-top: 26px; font-size: 0.82rem; color: var(--silver-400); flex-wrap: wrap; gap: 12px;
}

.back-to-top {
  width: 44px; height: 44px; border-radius: 12px;
  border: 1px solid rgba(255,255,255,0.16);
  display: flex; align-items: center; justify-content: center;
}
.back-to-top svg { width: 18px; height: 18px; stroke: var(--white); fill: none; }

/* ---------------------------------- RESPONSIVE --------------------------------- */
@media (max-width: 1024px) {
  .about-grid { grid-template-columns: 1fr; gap: 50px; }
  .about-visual { max-width: 420px; margin: 0 auto; }
  .services-grid { grid-template-columns: repeat(2, 1fr); }
  .contact-grid { grid-template-columns: 1fr; }
  .footer-top { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 860px) {
  .nav-links { display: none; }
  .nav-toggle { display: flex; }
  .header-actions .btn-primary { display: none; }
  .site-header.nav-open .nav-links {
    display: flex;
    flex-direction: column;
    position: fixed;
    top: 76px; left: 20px; right: 20px;
    background: rgba(6,21,48,0.97);
    border-radius: var(--radius-md);
    padding: 26px;
    gap: 20px;
    box-shadow: var(--shadow-lg);
  }
  .hero-stats { grid-template-columns: repeat(3, 1fr); gap: 20px; }
}

@media (max-width: 640px) {
  .section { padding: 90px 0; }
  .hero { padding-top: 120px; }
  .form-row { grid-template-columns: 1fr; }
  .services-grid { grid-template-columns: 1fr; }
  .about-stats { grid-template-columns: 1fr 1fr; }
  .hero-stats { grid-template-columns: 1fr; }
  .contact-form { padding: 30px 24px; }
  .footer-top { grid-template-columns: 1fr; }
  .footer-bottom { flex-direction: column; align-items: flex-start; }
}
