/*
Theme Name: n8n Library Pure
Author: VWM Tecnologias
Description: Tema Dark Tech puro (HTML/CSS/PHP) para n8n.
Version: 1.0
*/

:root {
	--bg-color: #121212;
	--primary-color: #FF6D5A;
	--secondary-color: #00C55E;
	--text-white: #ffffff;
	--text-gray: #a0a0a0;
	--glass-bg: rgba(255, 255, 255, 0.05);
	--glass-border: rgba(255, 255, 255, 0.1);
}

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

a{
	text-decoration: none;
}

a:hover{
	color: initial;
}

body {
	background-color: var(--bg-color);
	color: var(--text-white);
	font-family: 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
	line-height: 1.6;
	overflow-x: hidden;
}

.wrapper{
	padding: 3rem 0;
}

/* HEADER */
header {
	background: transparent;
	position: fixed;
	top: 0;
	right: 0;
	left: 0;
	z-index: 1030;
	transition: 0.5s;
}

header.scrolled {
	background: var(--glass-bg);
	backdrop-filter: blur(12px);
	-webkit-backdrop-filter: blur(12px);
	border-bottom: 1px solid var(--glass-border);
}

.logo {
	display: flex;
	align-items: center;
	gap: 10px;
	font-weight: bold;
	font-size: 1.2rem;
}

.logo-icon {
	background: var(--primary-color);
	padding: 0.4rem;
	display: flex;
	align-items: center;
	justify-content: center;
	border-radius: 6px;
}

/* BUTTONS DEFAULT */
.badge {
	transition: 0.5s;
	display: inline-flex;
	align-items: center;
	gap: 8px;
	background: var(--glass-bg);
	border: 1px solid var(--glass-border);
	padding: 8px 20px;
	border-radius: 50px;
	font-size: 0.9rem;
	margin-bottom: 30px;
	backdrop-filter: blur(5px);
	color: var(--text-white);
}

.badge i{
	color: var(--primary-color);
}

.badge:hover{
	color: var(--text-white);
	background-color: rgb(255 255 255 / 0.1);
}

.btn.btn-n8n {
	background-color: var(--primary-color);
	color: white;
	border: none;
	padding: 1.2rem 2.5rem;
	border-radius: 12px;
	font-weight: 700;
	font-size: 1.25rem;
	transition: all 0.3s ease;
	box-shadow: 0 0 40px rgba(255, 109, 90, 0.3);
}

.btn.btn-n8n.white {
	background: var(--text-white);
	color: var(--primary-color);
	font-size: 2rem;
}

.btn.btn-n8n:hover {
	background: var(--primary-color);
	transform: scale(1.05);
	color: white;
}

.btn.btn-n8n.white:hover {
	background: var(--text-white);
	color: var(--primary-color);
}

/* HERO SECTION */
#hero {
	text-align: center;
	position: relative;
	height: 100vh;
	display: flex;
	flex-direction: column;
	align-items: center;
	justify-content: center;
}

#hero::before {
	content: "";
	position: absolute;
	top: 0;
	left: 50%;
	transform: translateX(-50%);
	width: 100%;
	height: 600px;
	background: radial-gradient(circle, rgba(255,109,90,0.15) 0%, transparent 70%);
	pointer-events: none;
}

#hero h1 {
	font-size: clamp(2.5rem, 8vw, 4.5rem);
	line-height: 1.1;
	margin-bottom: 25px;
	font-weight: 900;
}

.text-gradient {
	background: linear-gradient(90deg, var(--primary-color), #ff9b8f);
	-webkit-background-clip: text;
	-webkit-text-fill-color: transparent;
}

#hero p {
	font-size: 1.5rem;
	line-height: 2rem;
	color: var(--text-gray);
	max-width: 800px;
	margin: 0 auto 40px;
}

.atualizacao {
	color: var(--text-gray);
}

.atualizacao i{
	color: var(--secondary-color);
}

@media(max-width: 568px){
	.atualizacao {
		margin-top: 1rem;
	}
}

/* ANIMATION BOX */
.animation-box {
	position: relative;
	display: flex;
	justify-content: center;
}

.animate-bounce{
	top: -25px; 
	right: -25px;
	position: absolute; 
	padding: 1rem; 
	border-radius: 10px;
	background-color: var(--primary-color);
	display: flex;
	justify-content: center;
	align-items: center;
	animation: quicar 2s infinite;
}

.animate-bounce i{
	font-size: 1.5rem;
	color: var(--text-white);
}

@keyframes quicar {
	from, 20%, 53%, 80%, to {
		/* Quando está no chão (ou quase), usa essa curva para subir suavemente */
		animation-timing-function: cubic-bezier(0.215, 0.610, 0.355, 1.000);
		transform: translate3d(0,0,0);
	}

	40%, 43% {
		/* Quando está no alto, usa essa curva para começar a cair acelerando */
		animation-timing-function: cubic-bezier(0.755, 0.050, 0.855, 0.060);
		transform: translate3d(0, -30px, 0); /* Pulo mais alto */
	}

	70% {
		animation-timing-function: cubic-bezier(0.755, 0.050, 0.855, 0.060);
		transform: translate3d(0, -15px, 0); /* Segundo pulinho */
	}

	90% {
		transform: translate3d(0,-4px,0); /* Último pulinho sutil */
	}
}

/* BOX */
.box-gradient {
	width: 30%;
	margin: 0 auto;
	position: absolute;
	inset: -1rem;
	filter: blur(40px);
	background-color: rgb(255 109 90 / 0.2);
}

.box-fluxos{
	position: relative;
	transition: transform 0.5s;
	border-radius: 1.5rem;
	box-shadow: 0 1rem 3rem rgba(0, 0, 0, .175);
	padding: 3rem;
	border: 1px solid rgb(255 255 255 / 0.1);
	border-radius: 1.5rem;
	background-color: rgb(255 255 255 / 0.05);
	transform: rotate(3deg);
}

.wrapper-fluxos{
	position: relative;
	width: 300px;
}

.fluxo-single{
	aspect-ratio: 1 / 1;
	display: flex;
	align-items: center;
	justify-content: center;
	border-radius: 0.5rem;
	background-color: rgba(255, 255, 255, 0.1);
}

.bg-fluxo { 
	background-color: var(--primary-color); 
	width: 24px;
	height: 24px;
	border-radius: 0.25rem;
	opacity: 0.5;
}

.rounded-3xl { border-radius: 1.5rem !important; }
.rounded-40 { border-radius: 40px !important; }
.rounded-50 { border-radius: 50px !important; }

/* SEÇÃO MAIS */
#mais{
	background: rgba(255, 255, 255, 0.02);
}

#mais .danger{
	border-radius: 1rem;
	background-color:  rgba(220, 53, 69, 0.1);
	padding: 1.5rem;
	border: 1px solid rgba(220, 53, 69, 0.5);
}

#mais p{
	color: var(--text-gray);
}

.glass {
	background: var(--glass-bg);
	backdrop-filter: blur(12px);
	-webkit-backdrop-filter: blur(12px);
	border: 1px solid var(--glass-border);
	border-radius: 1.5rem;
	padding: 1.5rem;
}

.glass i{
	font-size: 2rem;
	color: var(--primary-color);
	margin-bottom: 1rem;
}

/* CONTADOR */
#counter-trigger h2 {
	font-size: 3rem;
	line-height: 1;
	font-weight: 800;
}

#counter-trigger #main-counter.title-card {
	color: var(--primary-color);
}

#counter-trigger .title-card {
	text-transform: uppercase;
	color: var(--text-white);
	font-weight: 900;
	font-size: 4rem;
	display: block;
}

#counter-trigger .text-card {
	text-transform: uppercase;
	font-weight: 700;
	color: var(--text-gray);
}

#counter-trigger .tracking-widest {
	letter-spacing: 0.1em;
}

/* SEÇÃO CATEGORIAS */
.categories-grid {
	margin-top: 50px;
}

.cat-card {
	background-image: linear-gradient(to bottom, rgb(255 255 255 / 0.1), transparent);
	padding: 3rem;
	border-radius: 40px;
	border: 1px solid var(--glass-border);
	text-align: center;
}

.animation-card{
	transition: 0.5s;
}

.animation-card:hover {
	transition: 0.3s;
	border-color: var(--primary-color);
	transform: translateY(-5px);
}

.cat-card i{
	font-size: 2rem;
	fill: var(--primary-color);
	margin-bottom: 15px;
}

/* SEÇÃO GARANTIA */
.guarantee-box{
	background: linear-gradient(135deg, #FF6D5A 0%, #ff4e3a 100%);
	padding: 4rem;
	border-radius: 50px;
	position: relative;
	overflow: hidden;
}

.guarantee-box h2{
	font-size: 3.75rem;
	line-height: 1;
	font-weight: 900;
}

.guarantee-box p{
	font-size: 1.5rem;
	line-height: 1;
	font-weight: 500;
	color: var(--text-white);
	line-height: 1.75rem;
}

.shield-check{
	position: absolute;
	color: var(--text-white);
	opacity: 0.8;
	width: 300px; 
	height: 300px; 
	top: -50px; 
	right: -50px;
}

.shield-check img{
	position: absolute;
	width: 100%; 
	height: 100%; 
	object-fit: contain;
	opacity: 0.5;
}

@media(max-width: 586px){
	.guarantee-box {
		padding: 2rem;
	}

	.guarantee-box h2 {
		font-size: 2.725rem;
	}

	.btn.btn-n8n.white {
		font-size: 1.5rem;
	}

}

/* SEÇÃO CONTEÚDO */
#content{
	background: rgba(255, 255, 255, 0.02);
}

#content h2{
	font-style: italic;
	font-weight: 700;
	font-size: 3rem;
	line-height: 1.2;
	margin-bottom: 1rem;
}

#content p {
	color: var(--text-gray);
}

#content .tag{
	background: var(--primary-color);
	color: var(--primary-color);
	opacity: 1;
	font-weight: 700;
	padding: 0.5rem 1rem;
	background-color: rgb(255 109 90 / 0.1);
	border-radius: 0.5rem;
}

#content .content-icon{
	display: flex;
	align-items: center; 
	justify-content: center;
	background: var(--primary-color);
	border-radius: 0.75rem;
	padding: 1rem;
	width: 48px; 
	height: 48px;
	flex-shrink: 0;
}

#content .content-box{
	display: flex;
	align-items: center; 
	gap: 1.5rem;
	border-radius: 1rem;
	padding: 1.5rem;
}

#content .content-icon i{
	color: var(--text-white);
}

/* FOOTER */
footer {
	padding: 60px 0;
	border-top: 1px solid var(--glass-border);
	text-align: center;
}

.footer-content {
	display: flex;
	justify-content: space-between;
	align-items: center;
	flex-wrap: wrap;
	gap: 20px;
}

@media (max-width: 768px) {
	.footer-content {
		flex-direction: column;
	}
}