/*
	Security-first landing page helper CSS

	NOTE: This file contains CSS plus a recommended <head> snippet (below) as a commented
	HTML block. Paste the HTML into your document <head> and serve the CSP and other
	headers from the server (preferred) or via meta tags when appropriate.

	The recommendations follow OWASP best-practices: strict Content-Security-Policy,
	secure HTTP headers (HSTS, Referrer-Policy, X-Frame-Options), minimal inline
	scripts/styles, and strict resource loading rules. Always validate and escape
	user input on the server and use frameworks' safe templating to avoid XSS.

	Example <head> snippet (copy into your HTML head):

	<!-- Minimally permissive Content Security Policy: prefer sending this as an
			 HTTP header: Content-Security-Policy -->
	<!--
	<meta http-equiv="Content-Security-Policy"
				content="default-src 'self'; base-uri 'self'; form-action 'self';
								 frame-ancestors 'none'; object-src 'none'; script-src 'self' 'nonce-REPLACE_WITH_SERVER_NONCE';
								 style-src 'self' 'nonce-REPLACE_WITH_SERVER_NONCE';
								 img-src 'self' data:; connect-src 'self'; font-src 'self';">

	<meta http-equiv="X-Content-Type-Options" content="nosniff">
	<meta http-equiv="X-Frame-Options" content="DENY">
	<meta name="referrer" content="no-referrer">
	<meta http-equiv="Permissions-Policy" content="geolocation=(), microphone=(), camera=()">
	<!-- Serve Strict-Transport-Security as an HTTP header in production -->
	<!-- Strict-Transport-Security: max-age=63072000; includeSubDomains; preload -->
	-->

/*
	Styling guidelines:
	- Avoid using inline styles or inline event handlers (onclick=) which bypass CSP.
	- Use server-generated nonces for scripts/styles you must allow inline.
	- Keep forms protected by CSRF tokens; never rely on client-only protection.
*/

:root {
	--bg: #0f1724;
	/* dark neutral background */
	--card: #0b1220;
	/* card background */
	--accent: #2563eb;
	/* accessible blue */
	--muted: #94a3b8;
	/* muted text */
	--fg: #e6eef8;
	/* foreground text */
	--radius: 12px;
	--max-width: 1100px;
}

/* Reset (minimal, predictable) */
* {
	box-sizing: border-box;
	margin: 0;
	padding: 0
}

html,
body {
	height: 100%
}

body {
	font-family: system-ui, -apple-system, 'Segoe UI', Roboto, 'Helvetica Neue', Arial;
	background: linear-gradient(180deg, var(--bg), #071024);
	color: var(--fg);
	-webkit-font-smoothing: antialiased;
	-moz-osx-font-smoothing: grayscale;
	line-height: 1.45;
}

a {
	text-decoration: none;
	color: var(--accent);
	font-size: 30px;
	animation: blinkingBlue 1s infinite;
}

.hero-header {
	margin: 0 auto;
	display: flex;
	align-items: center;
	justify-content: center;
	position: relative;
	overflow: hidden;
	height: 400px;
	width: 100vw;
	max-width: 1440px;
	/* margin: auto auto; */
}

.hero-header img {
	display: block;
	width: auto;
	max-height: 100%;
	object-fit: cover;
	margin: 0 auto;
}

.hero-header h1 {
	position: absolute;
	top: 50%;
	left: 50%;
	z-index: 1;
	width: 100%;
	padding: 0 20px;
	transform: translate(-50%, -50%);
	color: #fff;
	text-align: center;
	text-shadow: 0 2px 12px rgba(0, 0, 0, 0.9);
	font-size: clamp(1.8rem, 6vw, 4rem);
	line-height: 1.1;
	font-size: 25px;
	color: #061a4f;
	/* border: 2px solid #ffffff; */
	text-shadow: 0 0 4px #ffffff, 0 0 10px #ffffff, 0 0 20px #ffffff;
	/* box-shadow: 0 0 6px #ffffff, 0 0 16px rgba(255, 255, 255, 0.85); */
}

.hero-header button.audio-toggle {
	position: absolute;
	top: 16px;
	left: 16px;
	border-left-style: 16px;
	z-index: 2;
}

.container {
	max-width: var(--max-width);
	margin: 48px auto;
	padding: 24px;
}

.hero {
	display: flex;
	gap: 32px;
	align-items: center;
	justify-content: space-between;
}

.card {
	background: linear-gradient(180deg, rgba(255, 255, 255, 0.02), rgba(255, 255, 255, 0.01));
	border: 1px solid rgba(255, 255, 255, 0.04);
	border-radius: var(--radius);
	padding: 28px;
}

.title {
	font-size: clamp(1.6rem, 3vw, 2.4rem);
	margin-bottom: 8px
}

.subtitle {
	color: var(--muted);
	margin-bottom: 20px
}

.audio-toggle {
	display: inline-flex;
	align-items: start;
	gap: 10px;
	margin: 20px;
	padding: 11px 16px;
	border: 1px solid rgba(96, 165, 250, 0.45);
	border-radius: 999px;
	background: #142342;
	color: var(--fg);
	font-weight: 700;
	cursor: pointer;
	transition: background 180ms ease, transform 180ms ease;
}

/* Layout de duas colunas para sections */
main section {
	display: flex;
	align-items: center;
	justify-content: center;
	/*max-width: 1440px;*/
	height: auto;
	margin: 10px 0;
	padding: 24px;
	background: linear-gradient(90deg, #0f1724 0%, #0b1f4b 50%, #0b1220 100%);
	/*border-radius: 20px;*/
}

main #investigacao-digital-0{
	display: flex;
	flex-direction: row;
	/*padding: 0 48px;*/
	background-image: url("../images/matrix-ciber.png");
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
}

main #investigacao-digital-1{
	display: flex;
	flex-direction: column;
	padding: 48px;
}

/* Primeira coluna - Imagem */
main section>div:first-child {
	flex: 1;
	display: flex;
	justify-content: center;
	align-items: center;
}

/* Estilização da imagem */
main section .services-image {
	width: 100%;
	height: 240px;
	width: auto;
	border-radius: 30px;
	border: 2px solid rgba(255, 255, 255, 0.1);
	box-shadow: 0 8px 24px rgba(0, 0, 0, 0.3);
	transition: transform 300ms ease, box-shadow 300ms ease;
}

main section .services-image:hover {
	transform: scale(1.05);
	box-shadow: 0 12px 32px rgba(37, 99, 235, 0.3);
}

/* Segunda coluna - Descrição */
main section>div:last-child {
	flex: 1;
	display: flex;
	flex-direction: column;
	padding: 60px;
}

main section h2 {
	font-size: 34px;
	color: var(--fg);
	line-height: 1.2;
	animation: fadeInLeft 0.8s ease-out;
	text-align: center;
	font-family: 'Gill Sans', 'Gill Sans MT', Calibri, 'Trebuchet MS', sans-serif, 'Helvetica Neue', Arial;
}

main section p {
	color: #a5a3a3;
	font-size: 30px;
	line-height: 32px;
	font-family: 'Gill Sans', 'Gill Sans MT', Calibri, 'Trebuchet MS', sans-serif, 'Helvetica Neue', Arial;
	text-align: center;
	animation: fadeInUp 1s ease-out 0.2s both;
}

#services-section-2 {
	display: flex;
	flex-direction: column;
	align-items: center;
	justify-content: center;
	margin: 10px auto;
	padding: 24px;
	width: 100%;
	max-width: 1440px;
	height: 300px;
	text-align: center;
}

#services-section-2 h2 {
	font-size: 34px;
	color: var(--fg);
	line-height: 1.2;
	animation: fadeInLeft 0.8s ease-out;
}

#services-section-2 p {
	color: #a5a3a3;
	font-size: 30px;
	line-height: 32px;
	font-family: 'Gill Sans', 'Gill Sans MT', Calibri, 'Trebuchet MS', sans-serif, 'Helvetica Neue', Arial;
	text-align: center;
	animation: fadeInUp 1s ease-out 0.2s both;
	margin-bottom: 30px;
}

#services-section-2 img {
	position: absolute;
	left: 0;
	right: 0;
	width: 100vw;
	height: 300px;
	border-radius: 20px;
	opacity: 0.5;
	pointer-events: none;
	z-index: 3;
}

#services-section-3 {
	display: flex;
	flex-direction: row;
	align-items: center;
	justify-content: center;
	margin: 10px auto;
	padding: 24px;
	width: 100%;
	max-width: 1440px;
	min-height: 300px;
	text-align: center;
	background: linear-gradient(90deg, #0f1724 0%, #0b1f4b 50%, #0b1220 100%);
}

#dehashed-section {
	display: flex;
	align-items: center;
	justify-content: center;
	width: min(100% - 32px, 1440px);
	min-height: 140px;
	margin: 24px auto;
	padding: 32px;
	background: linear-gradient(90deg, #0f1724, #143884, #0b1220);
	border: 1px solid rgba(96, 165, 250, 0.35);
	border-radius: 20px;
	box-shadow: 0 12px 32px rgba(0, 0, 0, 0.25);
}

#dehashed-section a {
	display: inline-block;
	padding: 14px 24px;
	border: 1px solid rgba(147, 197, 253, 0.7);
	border-radius: 10px;
	background: rgba(37, 99, 235, 0.25);
	color: #bfdbfe;
	font-size: clamp(1.1rem, 2vw, 1.5rem);
	font-weight: 700;
	text-align: center;
	transition: background 180ms ease, color 180ms ease, transform 180ms ease;
}

#dehashed-section a:hover,
#dehashed-section a:focus-visible {
	background: #60a5fa;
	color: #0f1724;
	transform: translateY(-2px);
}

#services-section-3 #div01 {
	flex: 1;
	left: 0;
	right: 0;
	width: 300px;
	height: 300px;
	border-radius: 20px;
}

#services-section-3 #div01 img {
	flex: 1;
	left: 0;
	right: 0;
	width: 300px;
	height: 280px;
	border-radius: 20px;
}

#services-section-3 #div02 {
	flex: 1;

	border-radius: 20px;
}

#services-section-3 #div02 h2 {
	/* color: var(--fg); */
	color: #fff;
	line-height: 1.2;
	animation: fadeInLeft 0.8s ease-out;
}

#services-section-3 #div02 h3 {
	color: #a5a3a3;
	font-size: 30px;
	line-height: 32px;
	font-family: 'Gill Sans', 'Gill Sans MT', Calibri, 'Trebuchet MS', sans-serif, 'Helvetica Neue', Arial;
	text-align: center;
	animation: fadeInUp 1s ease-out 0.2s both;
	margin-bottom: 30px;
}

#services-section-4 {
	position: relative;
	width: 100%;
	max-width: 1440px;
	height: 300px;
}

#services-section-4 img {
	position: absolute;
	left: 0;
	right: 0;
	width: 100vw;
	height: 300px;
	border-radius: 20px;
	opacity: 0.5;
	pointer-events: none;
	z-index: 3;
}

#div05 {
	display: flex;
	flex-direction: row;
	align-items: center;
	justify-content: center;
	position: absolute;
	left: 0;
	right: 0;
	max-width: 1440px;
	height: 300px;
	z-index: 4;
}

#services-section-4 #div05 #div03 {
	display: flex;
	flex-direction: column;
	align-items: center;
	justify-content: center;
	flex: 1;
	padding: 24px;
	height: 300px;
}


#services-section-4 #div05 #div04 {
	display: flex;
	flex-direction: column;
	align-items: center;
	justify-content: center;
	flex: 1;
	padding: 24px;
	height: 300px;

}

#services-section-4 #div05 #div03 img {
	position: static;
	width: 160px;
	height: 160px;
	border-radius: 20px;
	margin: 0 auto;
}

#services-section-5 {
	padding: 24px;
	height: auto;
	width: 100%;
	max-width: 1440px;
}

button {
	background: var(--accent);
	color: white;
	border: none;
	padding: 12px 18px;
	border-radius: 10px;
}

button:hover {
	background: #1b3157;
	transform: translateY(-1px);
	cursor: pointer;
}

/* Animação de fade-in da esquerda */
@keyframes fadeInLeft {
	from {
		opacity: 0;
		transform: translateX(-30px);
	}

	to {
		opacity: 1;
		transform: translateX(0);
	}
}

/* Animação de fade-in de baixo */
@keyframes fadeInUp {
	from {
		opacity: 0;
		transform: translateY(20px);
	}

	to {
		opacity: 1;
		transform: translateY(0);
	}
}

/* Animação de piscar com dois tons de azul */
@keyframes blinkingBlue {

	0%,
	50% {
		color: #2563eb;
		text-shadow: 0 0 10px rgba(37, 99, 235, 0.5);
	}

	51%,
	100% {
		color: #60a5fa;
		text-shadow: 0 0 20px rgba(96, 165, 250, 0.8);
	}
}

/* Responsivo - Empilha as colunas em telas menores */
@media (max-width: 768px) {
	.hero-header img {
		display: block;
		width: 100%;
		height: auto;
		object-fit: cover;
		margin: auto auto;
	}

	main section {
		flex-direction: column;
		gap: 24px;
		height: auto;
	}
	
	main #investigacao-digital-0{
		flex-direction: column;
	}
	main #investigacao-digital-0 p, main #investigacao-digital-1 p{
		font-size: 22px;
	}

	#services-section-3 {
		flex-direction: column;
	}

	main section>div:first-child,
	main section>div:last-child {
		flex: 1;
		width: 100%;
	}

	main section .services-image {
		max-width: 100%;
	}

	#services-section-4,
	#services-section-4 img {
		height: 400px;
	}

	#div05 {
		flex-direction: column;
		height: 400px;
	}

	#div05 #div03 img {
		width: 60px;
		height: 60px;
	}
}

.audio-toggle:hover {
	background: #1b3157;
	transform: translateY(-1px)
}

.audio-toggle:focus-visible {
	outline: 3px solid rgba(96, 165, 250, 0.7);
	outline-offset: 3px
}

.audio-icon {
	display: inline-grid;
	place-items: center;
	width: 170px;
	height: 18px;
	color: #fff;
	font-size: 0.8rem
}

.popup-overlay {
	position: fixed;
	inset: 0;
	z-index: 10;
	display: grid;
	place-items: center;
	padding: 20px;
	background: rgba(3, 8, 20, 0.78);
	backdrop-filter: blur(6px);
}

.popup-overlay[hidden] {
	display: none
}

.popup {
	position: relative;
	width: min(100%, 460px);
	padding: 36px;
	color: var(--fg);
	background: var(--card);
	border: 1px solid rgba(255, 255, 255, 0.14);
	border-radius: var(--radius);
	box-shadow: 0 24px 80px rgba(0, 0, 0, 0.4);
	animation: popup-enter 220ms ease-out;
}

.popup-label {
	margin-bottom: 8px;
	color: #60a5fa;
	font-size: 0.78rem;
	font-weight: 700;
	letter-spacing: 0.12em;
	text-transform: uppercase
}

.popup h1 {
	margin-bottom: 12px;
	font-size: clamp(1.6rem, 5vw, 2.2rem);
	line-height: 1.1
}

.popup p:not(.popup-label) {
	margin-bottom: 24px;
	color: var(--muted)
}

.popup-close {
	position: absolute;
	top: 12px;
	right: 12px;
	padding: 4px 10px;
	border: 0;
	background: transparent;
	color: var(--muted);
	font-size: 1.6rem;
	line-height: 1;
	cursor: pointer
}

.popup-close:hover,
.popup-close:focus-visible {
	color: var(--fg)
}

.popup-action {
	padding: 11px 20px;
	border: 0;
	border-radius: 8px;
	background: var(--accent);
	color: #fff;
	font-weight: 700;
	cursor: pointer
}

.popup-action:hover {
	filter: brightness(1.1)
}

.popup-close:focus-visible,
.popup-action:focus-visible {
	outline: 3px solid rgba(96, 165, 250, 0.7);
	outline-offset: 3px
}

@keyframes popup-enter {
	from {
		opacity: 0;
		transform: translateY(12px) scale(0.98)
	}

	to {
		opacity: 1;
		transform: translateY(0) scale(1)
	}
}

.cta {
	display: inline-block;
	padding: 12px 18px;
	border-radius: 10px;
	background: var(--accent);
	color: white;
	text-decoration: none;
	font-weight: 600;
	box-shadow: 0 6px 18px rgba(37, 99, 235, 0.18);
}

/* Accessible focus styles */
:focus {
	outline: none
}

.cta:focus-visible {
	box-shadow: 0 0 0 4px rgba(37, 99, 235, 0.18)
}

/* Forms (keep simple, server-validated, and CSRF-protected) */
form {
	display: flex;
	flex-direction: column;
	gap: 12px
}

label {
	font-size: 0.9rem;
	color: var(--muted)
}

input[type="text"],
input[type="email"],
textarea,
button {
	font: inherit;
	border-radius: 8px;
	padding: 10px 12px;
	border: 1px solid rgba(255, 255, 255, 0.06);
	background: transparent;
	color: var(--fg);
}

input:focus,
textarea:focus {
	box-shadow: 0 0 0 4px rgba(255, 255, 255, 0.03);
	border-color: rgba(255, 255, 255, 0.12)
}

/* Small, defensive utilities */
.sr-only {
	position: absolute;
	width: 1px;
	height: 1px;
	padding: 0;
	margin: -1px;
	overflow: hidden;
	clip: rect(0, 0, 0, 0);
	white-space: nowrap;
	border: 0
}

/* Media responsiveness */
/* Mobile: 320px a 440px */
@media (min-width:320px) and (max-width:799px) {
	.hero {
		flex-direction: column;
		align-items: flex-start
	}

	.container {
		margin: 24px auto;
		padding: 16px
	}

	.title {
		font-size: 1.4rem
	}

	.cta {
		padding: 10px 16px;
		font-size: 0.9rem
	}

	#services-section-2 h2 {
		font-size: 18px;
		color: var(--fg);
		line-height: 1.2;
		animation: fadeInLeft 0.8s ease-out;
	}

	#services-section-2 p {
		color: #a5a3a3;
		font-size: 16px;
		line-height: 18px;
		font-family: 'Gill Sans', 'Gill Sans MT', Calibri, 'Trebuchet MS', sans-serif, 'Helvetica Neue', Arial;
		text-align: center;
		animation: fadeInUp 1s ease-out 0.2s both;
		margin-bottom: 10px;
	}
}

/* Tablet: 800px a 1024px */
@media (min-width:800px) and (max-width:1024px) {
	.hero {
		flex-direction: column;
		align-items: flex-start;
		gap: 24px
	}

	.container {
		margin: 36px auto;
		padding: 20px
	}

	.title {
		font-size: 2rem
	}

	#services-section-2 h2 {
		font-size: 24px;
		color: var(--fg);
		line-height: 1.2;
		animation: fadeInLeft 0.8s ease-out;
	}

	#services-section-2 p {
		color: #a5a3a3;
		font-size: 20px;
		line-height: 22px;
		font-family: 'Gill Sans', 'Gill Sans MT', Calibri, 'Trebuchet MS', sans-serif, 'Helvetica Neue', Arial;
		text-align: center;
		animation: fadeInUp 1s ease-out 0.2s both;
		margin-bottom: 15px;
	}
}

/* Notebook: até 1440px */
@media (min-width:1025px) and (max-width:1440px) {
	.container {
		max-width: 90%
	}

	.hero {
		gap: 24px
	}
}

/* End of secure starter CSS */