
/* ── VARIÁVEIS ── */
:root {
  --white:        #ffffff;
  --cream:        #f5f0e8;
  --cream-dark:   #ede7d9;
  --blue:         #1a4fd6;
  --blue-dark:    #0f3299;
  --blue-light:   #e8f0fe;
  --accent:       #2d7fff;
  --text:         #2c3e50;
  --text-muted:   #6b7a8d;
  --border:       rgba(26,79,214,0.12);
  --shadow:       0 8px 40px rgba(26,79,214,0.1);
  --shadow-hover: 0 20px 60px rgba(26,79,214,0.18);
}

/* ── RESET & BASE ── */
*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }

body {
  font-family: 'DM Sans', sans-serif;
  background: var(--white);
  color: var(--text);
  overflow-x: hidden;
}

/* ── TIPOGRAFIA GERAL ── */
h1, h2, h3, h4 { font-family: 'Syne', sans-serif; }
p { line-height: 1.75; color: var(--text-muted); }
strong { color: var(--blue); font-weight: 700; }
em { color: var(--accent); font-style: normal; }

/* ── NAVBAR ── */
.navbar {
  background: rgba(255,255,255,0.92) !important;
  backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--border);
  padding: 14px 0;
  position: sticky;
  top: 0;
  z-index: 1000;
}
.navbar-brand img { width: 100px;
  height: auto;
  max-width: 100%;
  transition: filter .3s;
  border-radius: 25px;
 }

.navbar-brand img:hover { filter: drop-shadow(0 2px 8px rgba(26,79,214,.35)); }
.navbar-toggler { border-color: var(--border); }
.navbar-toggler-icon { filter: invert(0.3) sepia(1) saturate(3) hue-rotate(200deg); }

.nav-link {
  font-family: 'Syne', sans-serif;
  font-weight: 600;
  font-size: .85rem;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--text) !important;
  padding: 6px 18px !important;
  position: relative;
  transition: color .3s;
}
.nav-link::after {
  content: '';
  position: absolute;
  bottom: 0; left: 18px;
  width: 0; height: 2px;
  background: linear-gradient(90deg, var(--blue), var(--accent));
  border-radius: 2px;
  transition: width .3s;
}
.nav-link:hover { color: var(--blue) !important; }
.nav-link:hover::after { width: calc(100% - 36px); }

/* ── HERO ── */
#inicio {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 120px 20px 80px;
  background: linear-gradient(160deg, var(--white) 0%, var(--cream) 50%, var(--blue-light) 100%);
  position: relative;
  overflow: hidden;
}
#inicio::before, #inicio::after {
  content: '';
  position: absolute;
  border-radius: 50%;
  filter: blur(80px);
  pointer-events: none;
}
#inicio::before {
  width: 500px; height: 500px;
  background: radial-gradient(circle, rgba(26,79,214,.12) 0%, transparent 70%);
  top: -100px; left: -100px;
  animation: drift1 12s ease-in-out infinite alternate;
}
#inicio::after {
  width: 400px; height: 400px;
  background: radial-gradient(circle, rgba(45,127,255,.1) 0%, transparent 70%);
  bottom: 0; right: -80px;
  animation: drift2 10s ease-in-out infinite alternate;
}
@keyframes drift1 { to { transform: translate(50px, 30px); } }
@keyframes drift2 { to { transform: translate(-30px, -50px); } }
@keyframes shimmer {
  0%   { background-position: 0% center; }
  100% { background-position: 200% center; }
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: 100px;
  padding: 6px 18px;
  font-family: 'Syne', sans-serif;
  font-weight: 600;
  font-size: .78rem;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--blue);
  margin-bottom: 28px;
  position: relative;
  z-index: 1;
  box-shadow: 0 2px 12px rgba(26,79,214,.1);
}
.hero-badge .dot {
  width: 7px; height: 7px;
  background: var(--accent);
  border-radius: 50%;
  animation: pulse 2s infinite;
}
@keyframes pulse {
  0%,100% { box-shadow: 0 0 0 0 rgba(45,127,255,.6); }
  50%      { box-shadow: 0 0 0 6px rgba(45,127,255,0); }
}

.hero-title {
  font-weight: 800;
  font-size: clamp(2.8rem, 7vw, 5.5rem);
  line-height: 1.05;
  color: var(--text);
  position: relative;
  z-index: 1;
  margin-bottom: 24px;
}
.hero-title .grad {
  font-family: 'Rajdhani', sans-serif;
  font-weight: 700;
  font-size: clamp(4rem, 11vw, 9rem);
  letter-spacing: .08em;
  line-height: 1;
  background: linear-gradient(135deg, #1a4fd6 0%, #2d7fff 45%, #00c6ff 70%, #1a4fd6 100%);
  background-size: 200% auto;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  animation: shimmer 4s linear infinite;
  filter: drop-shadow(0 0 24px rgba(45,127,255,.35));
}

.hero-title .hero-sub {
  font-family: 'Rajdhani', sans-serif;
  font-weight: 700;
  font-size: clamp(2.6rem, 7vw, 6rem);
  letter-spacing: .22em;
  line-height: 1;
  color: transparent;
  -webkit-text-stroke: 1.5px var(--blue);
  opacity: .55;
  text-transform: uppercase;
}

.hero-para {
  max-width: 560px;
  font-size: 1.1rem;
  color: var(--text-muted);
  position: relative;
  z-index: 1;
  margin-bottom: 40px;
}

/* ── BOTÕES ── */
.btn-cta {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  background: linear-gradient(135deg, var(--blue) 0%, var(--accent) 100%);
  color: var(--white);
  font-family: 'Syne', sans-serif;
  font-weight: 700;
  font-size: .95rem;
  letter-spacing: .04em;
  padding: 15px 36px;
  border-radius: 100px;
  border: none;
  cursor: pointer;
  text-decoration: none;
  position: relative;
  z-index: 1;
  overflow: hidden;
  box-shadow: 0 6px 24px rgba(26,79,214,.3);
  transition: transform .25s, box-shadow .25s;
}
.btn-cta::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, var(--blue-dark), var(--blue));
  opacity: 0;
  transition: opacity .3s;
  border-radius: 100px;
}
.btn-cta:hover { color: var(--white); transform: translateY(-3px); box-shadow: 0 12px 36px rgba(26,79,214,.35); }
.btn-cta:hover::before { opacity: 1; }
.btn-cta span { position: relative; z-index: 1; }

.btn-outline {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: transparent;
  color: var(--blue);
  font-family: 'Syne', sans-serif;
  font-weight: 700;
  font-size: .95rem;
  padding: 15px 36px;
  border-radius: 100px;
  border: 2px solid var(--blue);
  cursor: pointer;
  text-decoration: none;
  transition: background .3s, color .3s, transform .25s;
}
.btn-outline:hover { background: var(--blue); color: var(--white); transform: translateY(-3px); }

/* ── TEMPLATE IMAGE SECTION ── */
#template-section {
  padding: 60px 0 80px;
  background: var(--cream);
}
.template-wrapper {
  position: relative;
  display: inline-block;
  border-radius: 20px;
  overflow: hidden;
  max-width: 860px;
  width: 100%;
  cursor: pointer;
  box-shadow: var(--shadow);
  transition: transform .4s cubic-bezier(.23,1,.32,1), box-shadow .4s;
}
.template-wrapper:hover { transform: translateY(-10px) scale(1.012); box-shadow: var(--shadow-hover); }
.template-wrapper img { width: 100%; display: block; border-radius: 20px; }
.template-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(26,79,214,.75), rgba(45,127,255,.6));
  opacity: 0;
  transition: opacity .4s;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 20px;
}
.template-wrapper:hover .template-overlay { opacity: 1; }
.template-overlay-text {
  font-family: 'Syne', sans-serif;
  font-weight: 700;
  font-size: 1.4rem;
  color: #fff;
  letter-spacing: .05em;
}

/* ── SEÇÕES GENÉRICAS ── */
.section-label {
  font-family: 'Syne', sans-serif;
  font-size: .75rem;
  font-weight: 700;
  letter-spacing: .18em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 12px;
  display: block;
}
.section-title {
  font-weight: 800;
  font-size: clamp(1.8rem, 4vw, 3rem);
  color: var(--text);
  line-height: 1.15;
}
section { padding: 100px 0; }
section + section { border-top: 1px solid var(--border); }

/* ── COMO FUNCIONA ── */
#como-funciona { background: var(--white); }
.how-left p { font-size: 1.05rem; margin-bottom: 14px; }

.feature-item { display: flex; align-items: flex-start; gap: 14px; margin-bottom: 20px; }
.feature-icon {
  width: 42px; height: 42px;
  background: var(--blue-light);
  border: 1px solid var(--border);
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.1rem;
  flex-shrink: 0;
}
.feature-text strong { display: block; font-size: .95rem; color: var(--text); margin-bottom: 3px; }
.feature-text span { font-size: .9rem; color: var(--text-muted); }

/* ── N8N MOCKUP ── */
.n8n-mockup {
  background: #1e2a44;
  border-radius: 18px;
  border: 1px solid rgba(255,255,255,.08);
  box-shadow: var(--shadow-hover);
  overflow: hidden;
  transition: transform .4s, box-shadow .4s;
}
.n8n-mockup:hover { transform: translateY(-8px); box-shadow: 0 30px 80px rgba(26,79,214,.25); }
.n8n-topbar {
  background: #111827;
  padding: 10px 16px;
  display: flex;
  align-items: center;
  gap: 8px;
  border-bottom: 1px solid rgba(255,255,255,.05);
}
.n8n-dot { width: 11px; height: 11px; border-radius: 50%; }
.n8n-title-bar { flex: 1; text-align: center; font-family: 'Syne', sans-serif; font-size: .72rem; color: rgba(255,255,255,.3); }
.n8n-canvas {
  padding: 36px 20px;
  background: radial-gradient(ellipse at 50% 50%, #1e2a44 0%, #0d1520 100%);
  min-height: 300px;
  position: relative;
  overflow: hidden;
}
.n8n-canvas::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image: radial-gradient(circle, rgba(255,255,255,.05) 1px, transparent 1px);
  background-size: 28px 28px;
}

.flow-container { position: relative; z-index: 1; display: flex; flex-wrap: wrap; row-gap: 24px; justify-content: center; }
.flow-row { display: flex; align-items: center; justify-content: center; gap: 0; width: 100%; }

.n8n-node { display: flex; flex-direction: column; align-items: center; gap: 8px; }
.n8n-node-box {
  width: 56px; height: 56px;
  border-radius: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.3rem;
  border: 1px solid rgba(255,255,255,.1);
  box-shadow: 0 4px 16px rgba(0,0,0,.3);
  animation: nodePop .5s ease backwards;
}
.n8n-node:nth-child(1) .n8n-node-box { animation-delay: .1s; }
.n8n-node:nth-child(3) .n8n-node-box { animation-delay: .3s; }
.n8n-node:nth-child(5) .n8n-node-box { animation-delay: .5s; }
@keyframes nodePop { from { opacity: 0; transform: scale(.7); } to { opacity: 1; transform: scale(1); } }

.n8n-node-box.trigger { background: linear-gradient(135deg, #e65c00, #f9d423); }
.n8n-node-box.ai      { background: linear-gradient(135deg, #6a11cb, #2575fc); border: 2px solid rgba(100,200,255,.5); }
.n8n-node-box.http    { background: linear-gradient(135deg, #1a4fd6, #2d7fff); }
.n8n-node-box.db      { background: linear-gradient(135deg, #1565c0, #0288d1); }
.n8n-node-box.code    { background: linear-gradient(135deg, #0f9b58, #00bf8f); }
.n8n-node-box.email   { background: linear-gradient(135deg, #c0392b, #f64f59); }
.n8n-node-label { font-size: .65rem; color: rgba(255,255,255,.5); text-align: center; }

.n8n-connector {
  width: 34px; height: 2px;
  background: linear-gradient(90deg, #2d7fff, #00c6ff);
  position: relative;
  align-self: center;
  margin-bottom: 24px;
}
.n8n-connector::after {
  content: '';
  position: absolute;
  right: -4px; top: -4px;
  border: 5px solid transparent;
  border-left: 8px solid #00c6ff;
}
.n8n-status {
  position: absolute;
  bottom: 14px; left: 50%;
  transform: translateX(-50%);
  background: rgba(45,127,255,.12);
  border: 1px solid rgba(45,127,255,.3);
  border-radius: 100px;
  padding: 5px 16px;
  font-family: 'Syne', sans-serif;
  font-size: .7rem;
  font-weight: 600;
  color: #00c6ff;
  letter-spacing: .06em;
  display: flex;
  align-items: center;
  gap: 6px;
  white-space: nowrap;
}
.n8n-status .blink { width: 6px; height: 6px; background: #00c6ff; border-radius: 50%; animation: pulse 1.5s infinite; }

/* ── CARDS (SOBRE & SERVIÇOS) ── */
#sobre { background: var(--cream); }
#servicos { background: var(--white); }

.card-light, .service-card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: 20px;
  padding: 36px 30px;
  height: 100%;
  transition: transform .3s, box-shadow .3s, border-color .3s;
}
.card-light:hover, .service-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-hover);
  border-color: rgba(26,79,214,.3);
}
.card-icon { font-size: 2rem; margin-bottom: 16px; }
.card-light h4, .service-card h4 {
  font-weight: 700;
  font-size: 1.05rem;
  color: var(--text);
  margin-bottom: 10px;
}

.service-card { position: relative; overflow: hidden; }
.service-card::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--blue), var(--accent));
  transform: scaleX(0);
  transform-origin: left;
  transition: transform .4s;
}
.service-card:hover::before { transform: scaleX(1); }
.service-number {
  font-family: 'Syne', sans-serif;
  font-size: 3rem;
  font-weight: 800;
  color: rgba(26,79,214,.1);
  line-height: 1;
  margin-bottom: 14px;
}

/* ── CONTATO ── */
#contato { background: var(--blue-light); }
.contact-box {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: 24px;
  padding: 60px 48px;
  text-align: center;
  box-shadow: var(--shadow);
}
.contact-box h2 { font-weight: 800; font-size: clamp(1.8rem, 4vw, 2.8rem); color: var(--text); margin-bottom: 14px; }
.contact-box > p { max-width: 460px; margin: 0 auto 36px; }

/* ── FOOTER ── */
footer {
  background: var(--cream-dark);
  border-top: 1px solid var(--border);
  padding: 36px 0;
  text-align: center;
}
footer img { height: 32px; margin-bottom: 12px; opacity: .75; }
footer p { font-size: .85rem; }

/* ── SCROLL REVEAL ── */
.reveal { opacity: 0; transform: translateY(28px); transition: opacity .7s ease, transform .7s ease; }
.reveal.visible { opacity: 1; transform: translateY(0); }

/* ── RESPONSIVO ── */
@media (max-width: 991px) {
  .how-left { padding-right: 0; }
  .contact-box { padding: 40px 24px; }
}
@media (max-width: 576px) {
  section { padding: 70px 0; }
  .hero-title { font-size: 2.6rem; }
}
