/* ==========================================================================
   NEXTYG SISTEMAS — Stylesheet
   Design tokens: fundo grafite quase-preto, acento verde-limão elétrico,
   cartões com leve textura, motivo geométrico "diamante" derivado do
   ícone da marca (img/logo_icone.png) usado como assinatura visual.
   ========================================================================== */

@import url('https://fonts.googleapis.com/css2?family=Space+Grotesk:wght@400;500;600;700&family=Inter:wght@400;500;600;700&display=swap');

:root {
  /* Cor */
  --bg: #0a0b09;
  --bg-soft: #0e100d;
  --card: #141712;
  --card-hover: #181c15;
  --border: rgba(255, 255, 255, 0.08);
  --border-strong: rgba(255, 255, 255, 0.14);
  --lime: #c8f31d;
  --lime-soft: #d9ff5c;
  --lime-dim: rgba(200, 243, 29, 0.12);
  --text: #f5f7f2;
  --text-muted: #a2a89a;
  --text-faint: #6b7166;

  /* Tipografia */
  --font-display: 'Space Grotesk', sans-serif;
  --font-body: 'Inter', sans-serif;

  /* Layout */
  --container: 1240px;
  --radius-lg: 20px;
  --radius-md: 14px;
  --radius-sm: 9px;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
}

/* ---------- Reset ---------- */
* { margin: 0; padding: 0; box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
  position: relative;
}

img { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button { font-family: inherit; cursor: pointer; border: none; background: none; }
ul { list-style: none; }

h1, h2, h3, h4 {
  font-family: var(--font-display);
  font-weight: 600;
  letter-spacing: -0.02em;
  color: var(--text);
}

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

.accent { color: var(--lime); }

::selection { background: var(--lime); color: #0a0b09; }

:focus-visible {
  outline: 2px solid var(--lime);
  outline-offset: 3px;
  border-radius: 4px;
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
    scroll-behavior: auto !important;
  }
}

/* ---------- Fundo decorativo global (diamantes / X) ---------- */
.bg-grid {
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.025) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.025) 1px, transparent 1px);
  background-size: 64px 64px;
  mask-image: radial-gradient(ellipse 80% 60% at 50% 0%, #000 40%, transparent 90%);
}

/* Marca "X" — losango facetado usado como grafismo de assinatura em toda a página */
.brand-mark {
  position: absolute;
  display: block;
  stroke: var(--lime);
  fill: none;
  pointer-events: none;
  overflow: visible;
}

/* ---------- Eyebrow / rótulo de seção ---------- */
.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-display);
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--lime);
  margin-bottom: 18px;
}

.eyebrow::before {
  content: '\00BB';
  font-weight: 700;
}

/* ---------- Botões ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-display);
  font-size: 15px;
  font-weight: 600;
  padding: 15px 26px;
  border-radius: 10px;
  transition: transform 0.35s var(--ease), background 0.3s var(--ease), box-shadow 0.3s var(--ease), border-color 0.3s var(--ease), color .3s var(--ease);
  white-space: nowrap;
}

.btn svg { width: 16px; height: 16px; transition: transform 0.3s var(--ease); }

.btn-primary {
  background: var(--lime);
  color: #0a0b09;
  box-shadow: 0 0 0 0 rgba(200, 243, 29, 0.0);
}
.btn-primary:hover {
  background: var(--lime-soft);
  transform: translateY(-2px);
  box-shadow: 0 10px 30px -8px rgba(200, 243, 29, 0.55);
}
.btn-primary:hover svg { transform: translateX(3px); }

.btn-outline {
  background: transparent;
  color: var(--text);
  border: 1px solid var(--border-strong);
}
.btn-outline:hover {
  border-color: var(--lime);
  color: var(--lime);
  transform: translateY(-2px);
}

.btn-ghost {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 14px;
  color: var(--text);
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 10px 20px;
  border: 1px solid var(--border-strong);
  border-radius: 10px;
}
.btn-ghost:hover { border-color: var(--lime); color: var(--lime); }

/* ==========================================================================
   HEADER
   ========================================================================== */
.header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  padding: 22px 0;
  transition: padding 0.35s var(--ease), background 0.35s var(--ease), border-color .35s var(--ease);
  border-bottom: 1px solid transparent;
}

.header.is-scrolled {
  padding: 14px 0;
  background: rgba(10, 11, 9, 0.82);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--border);
}

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

.logo img { height: 34px; width: auto; }

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

.nav-link {
  position: relative;
  font-family: var(--font-display);
  font-size: 15px;
  font-weight: 500;
  color: var(--text-muted);
  padding: 6px 0;
  transition: color 0.25s var(--ease);
}
.nav-link::after {
  content: '';
  position: absolute;
  left: 0;
  bottom: -2px;
  height: 2px;
  width: 0;
  background: var(--lime);
  transition: width 0.3s var(--ease);
}
.nav-link:hover { color: var(--text); }
.nav-link:hover::after { width: 100%; }
.nav-link.is-active { color: var(--text); }
.nav-link.is-active::after { width: 100%; }

.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  padding: 8px;
  z-index: 110;
}
.nav-toggle span {
  width: 22px;
  height: 2px;
  background: var(--text);
  transition: transform 0.3s var(--ease), opacity 0.3s var(--ease);
}
.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
   ========================================================================== */
.hero {
  position: relative;
  padding: 190px 0 130px;
  overflow: hidden;
  background-image: url('../img/hero_1.webp');
  background-size: cover;
  background-position: center center;
  background-repeat: no-repeat;
  background-color: var(--bg);
}

/* Reforço de legibilidade sobre a imagem de fundo, mais forte à esquerda (texto) */
.hero::before {
  content: '';
  position: absolute;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  background:
    linear-gradient(90deg, rgba(10, 11, 9, 0.72) 0%, rgba(10, 11, 9, 0.38) 42%, rgba(10, 11, 9, 0.05) 68%),
    linear-gradient(0deg, rgba(10, 11, 9, 0.55) 0%, rgba(10, 11, 9, 0) 26%);
}

.hero .container {
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
  align-items: center;
}

.hero-title {
  font-size: clamp(2.4rem, 4vw, 3.5rem);
  line-height: 1.12;
  margin-bottom: 24px;
}

.hero-text {
  font-size: 17px;
  color: var(--text-muted);
  max-width: 460px;
  margin-bottom: 40px;
}

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

/* ----- Notebook: imagem real com efeito sutil de flutuação ----- */
.laptop-wrap {
  position: relative;
  display: flex;
  justify-content: center;
  align-items: flex-end;
  min-height: 420px;
}

.notebook-float {
  position: relative;
  width: 100%;
  max-width: 620px;
  animation: notebook-float 7s ease-in-out infinite;
  will-change: transform;
}

.notebook-img {
  width: 100%;
  height: auto;
  display: block;
  filter: drop-shadow(0 30px 40px rgba(0, 0, 0, 0.5));
}

/* Sombra de contato que "respira" em oposição ao movimento, reforçando a sensação de peso/flutuação */
.notebook-float::after {
  content: '';
  position: absolute;
  left: 50%;
  bottom: -6%;
  transform: translateX(-50%);
  width: 62%;
  height: 26px;
  background: radial-gradient(ellipse, rgba(0, 0, 0, 0.45) 0%, rgba(0, 0, 0, 0) 72%);
  animation: notebook-shadow 7s ease-in-out infinite;
  z-index: -1;
}

@keyframes notebook-float {
  0%, 100% { transform: translateY(0) rotate(0deg); }
  50% { transform: translateY(-14px) rotate(-0.6deg); }
}

@keyframes notebook-shadow {
  0%, 100% { transform: translateX(-50%) scale(1); opacity: 0.9; }
  50% { transform: translateX(-50%) scale(0.88); opacity: 0.55; }
}

@media (prefers-reduced-motion: reduce) {
  .notebook-float,
  .notebook-float::after { animation: none; }
}

/* ==========================================================================
   SOLUÇÕES
   ========================================================================== */
.section { position: relative; padding: 120px 0; z-index: 1; overflow: hidden; }

.section-head { max-width: 640px; margin: 0 auto 56px; text-align: center; position: relative; z-index: 1; }
.section-head.left { margin: 0 0 56px; text-align: left; }
.section-title { font-size: clamp(1.9rem, 3vw, 2.5rem); line-height: 1.2; }

.solutions-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 20px;
}

.solution-card {
  position: relative;
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 36px 24px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  transition: transform 0.4s var(--ease), border-color 0.4s var(--ease), background 0.4s var(--ease);
}
.solution-card::before {
  content: '';
  position: absolute;
  top: -30%; right: -30%;
  width: 140px; height: 140px;
  background: var(--lime);
  opacity: 0;
  filter: blur(50px);
  transition: opacity 0.4s var(--ease);
}
.solution-card:hover {
  transform: translateY(-6px);
  border-color: var(--border-strong);
  background: var(--card-hover);
}
.solution-card:hover::before { opacity: 0.14; }

.card-icon {
  width: 68px; height: 68px;
  display: flex; align-items: center; justify-content: center;
  border-radius: 14px;
  background: var(--lime-dim);
  color: var(--lime);
  margin-bottom: 22px;
  position: relative;
  z-index: 1;
}
.card-icon svg { width: 34px; height: 34px; }

.solution-card h3 {
  font-size: 17px;
  margin-bottom: 10px;
  position: relative; z-index: 1;
}
.solution-card p {
  font-size: 14px;
  color: var(--text-muted);
  margin-bottom: 22px;
  position: relative; z-index: 1;
}

.card-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-family: var(--font-display);
  font-size: 14px;
  font-weight: 600;
  color: var(--lime);
  position: relative; z-index: 1;
}
.card-link svg { width: 14px; height: 14px; transition: transform 0.3s var(--ease); }
.solution-card:hover .card-link svg { transform: translateX(4px); }

/* ==========================================================================
   MÉTODO
   ========================================================================== */
.method {
  background-color: var(--bg-soft);
  background-image: url('../img/fundo_2.webp');
  background-repeat: no-repeat;
  background-position: left center;
  background-size: contain;
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}
.method .container { display: grid; grid-template-columns: 0.9fr 1.4fr; gap: 60px; align-items: center; }

.method-text p { color: var(--text-muted); max-width: 400px; margin-bottom: 32px; }

.method-steps {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  position: relative;
}

.method-steps::before {
  content: '';
  position: absolute;
  top: 40px; left: 10%; right: 10%;
  height: 0;
  border-top: 2px dashed var(--border-strong);
  z-index: 0;
}

.step {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  padding: 0 10px;
  position: relative;
  z-index: 1;
}

.step-circle {
  width: 80px; height: 80px;
  border-radius: 50%;
  border: 1.5px solid var(--border-strong);
  display: flex; align-items: center; justify-content: center;
  color: var(--lime);
  background: var(--bg-soft);
  margin-bottom: 20px;
  transition: border-color 0.35s var(--ease), box-shadow 0.35s var(--ease);
}
.step-circle svg { width: 26px; height: 26px; }
.step:hover .step-circle {
  border-color: var(--lime);
  box-shadow: 0 0 0 6px var(--lime-dim);
}

.step h4 { font-size: 15px; margin-bottom: 8px; }
.step p { font-size: 13px; color: var(--text-muted); }

/* ==========================================================================
   POR QUE A NEXTYG
   ========================================================================== */
.why-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 40px;
}
.why-item { display: flex; flex-direction: column; align-items: center; text-align: center; }
.why-icon { color: var(--lime); margin-bottom: 20px; }
.why-icon svg { width: 44px; height: 44px; }
.why-item h4 { font-size: 16px; margin-bottom: 8px; }
.why-item p { font-size: 14px; color: var(--text-muted); }

/* ==========================================================================
   CTA
   ========================================================================== */
.cta-banner {
  position: relative;
  overflow: visible;
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 0;
  display: flex;
  align-items: stretch;
}

.cta-icon-wrap {
  flex-shrink: 0;
  width: 240px;
  display: flex;
  align-items: center;
  justify-content: flex-start;
  padding: 14px 0 14px 26px;
  overflow: visible;
}
.cta-icon-img {
  height: 100%;
  width: auto;
  max-width: 100%;
  object-fit: contain;
  transform-origin: center;
  animation: cta-icon-float 6s ease-in-out infinite;
  will-change: transform;
}

@keyframes cta-icon-float {
  0%, 100% { transform: scale(1.16) translateY(0); }
  50% { transform: scale(1.16) translateY(-10px); }
}

.cta-body {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 40px;
  padding: 44px 56px 44px 52px;
  position: relative;
  z-index: 1;
}

.cta-copy { flex: 1; min-width: 240px; }
.cta-copy h3 { font-size: 26px; margin-bottom: 8px; }
.cta-copy p { color: var(--text-muted); font-size: 15px; max-width: 480px; }

.cta-banner .btn { flex-shrink: 0; }

@media (prefers-reduced-motion: reduce) {
  .cta-icon-img { animation: none; }
}

/* ==========================================================================
   FOOTER
   ========================================================================== */
.footer { padding: 90px 0 34px; border-top: 1px solid var(--border); }

.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 0.9fr;
  gap: 40px;
  margin-bottom: 64px;
}

.footer-brand .logo img { height: 30px; margin-bottom: 18px; }
.footer-brand p { color: var(--text-muted); font-size: 14px; max-width: 300px; }

.footer-heading {
  font-family: var(--font-display);
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--text-faint);
  margin-bottom: 20px;
}

.footer-links { display: flex; flex-direction: column; gap: 12px; }
.footer-links a { font-size: 14px; color: var(--text-muted); transition: color 0.25s var(--ease); }
.footer-links a:hover { color: var(--lime); }

.footer-contact { display: flex; flex-direction: column; gap: 14px; }
.footer-contact li { display: flex; align-items: center; gap: 10px; font-size: 14px; color: var(--text-muted); }
.footer-contact svg { width: 16px; height: 16px; color: var(--lime); flex-shrink: 0; }
.footer-contact a { transition: color 0.25s var(--ease); }
.footer-contact a:hover { color: var(--lime); }

.social-row { display: flex; gap: 12px; }
.social-btn {
  width: 40px; height: 40px;
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  border: 1px solid var(--border-strong);
  color: var(--text);
  transition: all 0.3s var(--ease);
}
.social-btn svg { width: 17px; height: 17px; }
.social-btn:hover { background: var(--lime); border-color: var(--lime); color: #0a0b09; transform: translateY(-3px); }
.social-btn.whatsapp { background: #25D366; border-color: #25D366; color: #0a0b09; }
.social-btn.whatsapp:hover { filter: brightness(1.1); }

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

/* ==========================================================================
   REVEAL ON SCROLL
   ========================================================================== */
[data-reveal] {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 0.8s var(--ease), transform 0.8s var(--ease);
}
[data-reveal].is-visible { opacity: 1; transform: translateY(0); }

@keyframes rise-in {
  from { opacity: 0; transform: translateY(30px); }
  to { opacity: 1; transform: translateY(0); }
}

/* ==========================================================================
   RESPONSIVE
   ========================================================================== */
@media (max-width: 1080px) {
  .solutions-grid { grid-template-columns: repeat(3, 1fr); }
  .why-grid { grid-template-columns: repeat(2, 1fr); row-gap: 36px; }
  .method .container { grid-template-columns: 1fr; gap: 48px; }
  .method-text p { max-width: 100%; }
}

@media (max-width: 900px) {
  .hero .container { grid-template-columns: 1fr; }
  .hero-text { max-width: 100%; }
  .laptop-wrap { order: -1; margin-bottom: 20px; min-height: 0; }
  .notebook-float { max-width: 440px; margin: 0 auto; }
  .hero { padding: 150px 0 90px; background-position: 68% center; }
  .hero::before {
    background:
      linear-gradient(180deg, rgba(10,11,9,0.35) 0%, rgba(10,11,9,0.85) 62%, rgba(10,11,9,0.96) 100%);
  }
}

@media (max-width: 780px) {
  .nav { position: fixed; top: 0; right: 0; height: 100vh; width: min(320px, 80vw);
    background: rgba(10,11,9,0.98); backdrop-filter: blur(14px);
    flex-direction: column; align-items: flex-start; justify-content: center;
    gap: 28px; padding: 40px; transform: translateX(100%);
    transition: transform 0.4s var(--ease); border-left: 1px solid var(--border); }
  .nav.is-open { transform: translateX(0); }
  .nav .btn-ghost { margin-top: 10px; }
  .nav-toggle { display: flex; }
  .solutions-grid { grid-template-columns: 1fr 1fr; }
  .why-grid { grid-template-columns: 1fr; }
  .method-steps { grid-template-columns: 1fr 1fr; row-gap: 40px; }
  .method-steps::before { display: none; }
  .cta-banner { flex-direction: column; }
  .cta-icon-wrap { width: 100%; justify-content: center; padding: 26px 0 0; }
  .cta-icon-img { height: 84px; width: auto; }
  .cta-body { flex-direction: column; text-align: center; padding: 20px 28px 36px; }
  .cta-copy p { max-width: 100%; }
  .footer-grid { grid-template-columns: 1fr 1fr; row-gap: 40px; }
}

@media (max-width: 560px) {
  .container { padding: 0 20px; }
  .section { padding: 80px 0; }
  .solutions-grid { grid-template-columns: 1fr; }
  .method-steps { grid-template-columns: 1fr; row-gap: 32px; }
  .notebook-float { max-width: 320px; }
  .footer-grid { grid-template-columns: 1fr; }
  .footer-bottom { flex-direction: column; gap: 12px; text-align: center; }
  .hero-actions { flex-direction: column; align-items: stretch; }
  .hero-actions .btn { justify-content: center; }
}
