/* ============================================================
   Wilson Paraiso — Landing Page
   Tema dark elegante, zero JS, mobile-first
   ============================================================ */

:root {
	/* Design tokens (herdados da identidade visual anterior) */
	--gray-0: #ffffff;
	--gray-50: #e3e6ee;
	--gray-100: #c3cadb;
	--gray-200: #a3acc8;
	--gray-300: #8490b5;
	--gray-400: #6474a2;
	--gray-500: #505d84;
	--gray-600: #3d4663;
	--gray-700: #283044;
	--gray-800: #141925;
	--gray-900: #090b11;

	--accent: #c561f6;
	--accent-strong: #7611a6;

	--bg: #090b11;
	--surface: #141925;
	--border: #283044;
	--text: #c3cadb;
	--text-strong: #ffffff;
	--text-muted: #8490b5;

	--font-body: "Public Sans", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
	--font-brand: "Rubik", system-ui, -apple-system, sans-serif;

	--text-sm: 0.875rem;
	--text-base: 1rem;
	--text-lg: 1.125rem;
	--text-xl: 1.375rem;
	--text-2xl: 1.75rem;
	--text-3xl: 2.25rem;
	--text-4xl: 3rem;
	--text-5xl: 3.75rem;

	--radius-sm: 0.5rem;
	--radius-md: 1rem;
	--radius-lg: 1.5rem;

	--space-section: 6rem;
	--shadow-md: 0 20px 40px rgba(0, 0, 0, 0.35);

	--transition: 0.2s ease-in-out;
}

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

html {
	scroll-behavior: smooth;
	scroll-padding-top: 5rem;
}

body {
	background-color: var(--bg);
	color: var(--text);
	font-family: var(--font-body);
	line-height: 1.6;
	-webkit-font-smoothing: antialiased;
}

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

a {
	color: var(--accent);
	text-decoration: none;
}

a:hover,
a:focus {
	color: var(--accent-strong);
}

ul {
	list-style: none;
}

h1,
h2,
h3,
h4 {
	font-family: var(--font-brand);
	font-weight: 600;
	line-height: 1.15;
	color: var(--text-strong);
}

h1 {
	font-size: var(--text-3xl);
}

h2 {
	font-size: var(--text-2xl);
}

h3 {
	font-size: var(--text-lg);
}

.container {
	width: 100%;
	max-width: 76rem;
	margin-inline: auto;
	padding-inline: 1.5rem;
}

.section {
	padding-block: var(--space-section);
}

/* Acessibilidade */
.skip-link {
	position: absolute;
	left: -9999px;
	top: 0;
	background: var(--accent);
	color: #090b11;
	padding: 0.75rem 1.5rem;
	z-index: 100;
	border-radius: 0 0 var(--radius-md) 0;
}

.skip-link:focus {
	left: 0;
}

:focus-visible {
	outline: 3px solid var(--accent);
	outline-offset: 2px;
	border-radius: 0.25rem;
}

/* ============================================================
   Header / Nav (menu mobile CSS-only via checkbox)
   ============================================================ */

.site-header {
	position: sticky;
	top: 0;
	z-index: 50;
	background: rgba(9, 11, 17, 0.85);
	backdrop-filter: blur(8px);
	border-bottom: 1px solid var(--border);
}

.nav {
	display: flex;
	align-items: center;
	justify-content: space-between;
	max-width: 76rem;
	margin-inline: auto;
	padding: 1rem 1.5rem;
	gap: 1rem;
}

.brand {
	font-family: var(--font-brand);
	font-weight: 700;
	font-size: var(--text-lg);
	color: var(--text-strong);
}

.brand:hover {
	color: var(--accent);
}

.menu-toggle {
	position: absolute;
	width: 1px;
	height: 1px;
	padding: 0;
	margin: -1px;
	overflow: hidden;
	clip: rect(0, 0, 0, 0);
	white-space: nowrap;
	border: 0;
}

.menu-button {
	display: flex;
	flex-direction: column;
	gap: 5px;
	padding: 0.5rem;
	cursor: pointer;
	z-index: 51;
}

.menu-button span {
	display: block;
	width: 1.5rem;
	height: 2px;
	background: var(--text-strong);
	transition: var(--transition);
}

.nav-list {
	display: none;
	position: absolute;
	top: 100%;
	left: 0;
	right: 0;
	flex-direction: column;
	background: var(--surface);
	border-bottom: 1px solid var(--border);
	padding: 1rem 1.5rem;
	gap: 0.25rem;
}

.nav-list a {
	display: block;
	padding: 0.75rem 0.5rem;
	color: var(--text);
	font-weight: 500;
}

.nav-list a:hover {
	color: var(--accent);
}

.nav-list .nav-cta {
	color: var(--accent);
}

.menu-toggle:checked ~ .menu-button span:nth-child(1) {
	transform: translateY(7px) rotate(45deg);
}

.menu-toggle:checked ~ .menu-button span:nth-child(2) {
	opacity: 0;
}

.menu-toggle:checked ~ .menu-button span:nth-child(3) {
	transform: translateY(-7px) rotate(-45deg);
}

.menu-toggle:checked ~ .nav-list {
	display: flex;
}

/* ============================================================
   Botões
   ============================================================ */

.btn {
	display: inline-block;
	padding: 0.85em 1.75em;
	border-radius: 999rem;
	font-family: var(--font-body);
	font-weight: 600;
	font-size: var(--text-base);
	text-align: center;
	transition: var(--transition);
}

.btn-primary {
	background: var(--accent);
	color: #090b11;
}

.btn-primary:hover {
	background: var(--accent-strong);
	color: #ffffff;
	transform: translateY(-2px);
}

.btn-ghost {
	border: 1px solid var(--border);
	color: var(--text-strong);
}

.btn-ghost:hover {
	border-color: var(--accent);
	color: var(--accent);
}

/* ============================================================
   Hero
   ============================================================ */

.hero {
	padding-block: 4rem var(--space-section);
}

.hero-prefix {
	font-size: var(--text-sm);
	color: var(--accent);
	font-family: var(--font-brand);
	font-weight: 600;
	text-transform: uppercase;
	letter-spacing: 0.06em;
	margin-bottom: 0.75rem;
}

.hero-content h1 {
	margin-bottom: 1rem;
	max-width: 20ch;
	font-size: var(--text-4xl);
	font-weight: 700;
}

.hero-tagline {
	font-size: var(--text-lg);
	color: var(--text-muted);
	max-width: 52ch;
	margin-bottom: 1.75rem;
}

.hero-tagline strong {
	color: var(--text-strong);
}

.roles {
	display: flex;
	flex-wrap: wrap;
	gap: 0.5rem;
	margin-bottom: 2rem;
}

.role {
	display: inline-block;
	padding: 0.4rem 1rem;
	border-radius: 999rem;
	border: 1px solid var(--accent-strong);
	background: rgba(118, 17, 166, 0.12);
	color: var(--accent);
	font-size: var(--text-sm);
	font-weight: 600;
}

.hero-actions {
	display: flex;
	flex-wrap: wrap;
	gap: 0.75rem;
}

.hero-stats {
	display: flex;
	flex-wrap: wrap;
	gap: 2rem;
	margin-top: 2.5rem;
	padding-top: 2rem;
	border-top: 1px solid var(--border);
}

.hero-stat-value {
	display: block;
	font-family: var(--font-brand);
	font-size: var(--text-2xl);
	font-weight: 700;
	color: var(--text-strong);
}

.hero-stat-label {
	display: block;
	font-size: var(--text-sm);
	color: var(--text-muted);
}


/* ============================================================
   Section headers
   ============================================================ */

.section-header {
	max-width: 48ch;
	margin-bottom: 2.5rem;
}

.section-header h2 {
	margin-bottom: 0.75rem;
}

.section-header p {
	color: var(--text-muted);
	font-size: var(--text-lg);
}

.section-alt {
	background: var(--surface);
	border-block: 1px solid var(--border);
}

/* ============================================================
   Serviços
   ============================================================ */

.services-grid {
	display: grid;
	gap: 1.25rem;
}

.service-card {
	background: var(--surface);
	border: 1px solid var(--border);
	border-radius: var(--radius-md);
	padding: 1.75rem;
	transition: var(--transition);
}

.service-card:hover {
	transform: translateY(-3px);
	border-color: var(--accent-strong);
	box-shadow: var(--shadow-md);
}

.service-card h3 {
	margin-bottom: 0.5rem;
}

.service-card p {
	color: var(--text-muted);
	font-size: var(--text-base);
}

/* ============================================================
   Tecnologias
   ============================================================ */

.tech-grid {
	display: grid;
	grid-template-columns: repeat(2, 1fr);
	gap: 0.75rem;
}

.tech-grid li {
	padding: 0.9rem 1rem;
	text-align: center;
	background: var(--bg);
	border: 1px solid var(--border);
	border-radius: var(--radius-sm);
	color: var(--text);
	font-weight: 500;
	transition: var(--transition);
}

.tech-grid li:hover {
	border-color: var(--accent-strong);
	color: var(--text-strong);
}

/* ============================================================
   Sobre
   ============================================================ */

.about-grid {
	display: grid;
	gap: 1.25rem;
}

.about-bio {
	grid-column: 1 / -1;
	background:
		linear-gradient(160deg, rgba(197, 97, 246, 0.08), transparent 60%),
		var(--surface);
}

.about-bio p:last-child {
	margin-bottom: 0;
}

.about-block {
	background: var(--surface);
	border: 1px solid var(--border);
	border-radius: var(--radius-md);
	padding: 1.75rem;
}

.about-block h3 {
	margin-bottom: 0.75rem;
}

.about-block p {
	color: var(--text);
	margin-bottom: 0.75rem;
}

.about-block ul {
	margin-top: 0.5rem;
}

.about-block li {
	padding-left: 1rem;
	position: relative;
	margin-bottom: 0.4rem;
	color: var(--text);
}

.about-block li::before {
	content: "";
	position: absolute;
	left: 0;
	top: 0.55em;
	width: 0.35rem;
	height: 0.35rem;
	border-radius: 50%;
	background: var(--accent);
}

.about-block strong {
	color: var(--text-strong);
}

/* ============================================================
   Contato
   ============================================================ */

.section-contact {
	background: var(--surface);
	border-block: 1px solid var(--border);
}

.contact-actions {
	display: flex;
	flex-wrap: wrap;
	gap: 0.75rem;
	margin-bottom: 2.5rem;
}

.socials {
	display: flex;
	flex-wrap: wrap;
	gap: 0.5rem;
}

.socials a {
	display: inline-block;
	padding: 0.5rem 1.25rem;
	border: 1px solid var(--border);
	border-radius: 999rem;
	color: var(--text);
	transition: var(--transition);
}

.socials a:hover {
	border-color: var(--accent);
	color: var(--accent);
}

/* ============================================================
   Footer
   ============================================================ */

.site-footer {
	border-top: 1px solid var(--border);
	padding-block: 2rem;
}

.footer-inner {
	display: flex;
	flex-wrap: wrap;
	justify-content: space-between;
	gap: 0.75rem;
	font-size: var(--text-sm);
	color: var(--text-muted);
}

/* ============================================================
   Responsivo — breakpoints
   ============================================================ */

@media (min-width: 40em) {
	.tech-grid {
		grid-template-columns: repeat(3, 1fr);
	}
}

@media (min-width: 50em) {
	:root {
		--text-3xl: 2.75rem;
		--text-4xl: 3.5rem;
		--text-5xl: 4.5rem;
		--space-section: 7rem;
	}

	h1 {
		font-size: var(--text-5xl);
	}

	h2 {
		font-size: var(--text-4xl);
	}

	/* Nav desktop: ocultar botão hambúrguer */
	.menu-button {
		display: none;
	}

	.nav-list {
		display: flex;
		position: static;
		flex-direction: row;
		background: transparent;
		border: none;
		padding: 0;
		gap: 1.5rem;
		align-items: center;
	}

	.nav-list a {
		padding: 0.5rem 0.25rem;
	}

	/* Serviços */
	.services-grid {
		grid-template-columns: repeat(2, 1fr);
		gap: 1.5rem;
	}

	.hero-content h1 {
		font-size: var(--text-5xl);
	}

	/* Tecnologias */
	.tech-grid {
		grid-template-columns: repeat(4, 1fr);
	}

	/* Sobre */
	.about-grid {
		grid-template-columns: repeat(2, 1fr);
	}

	.about-block:last-child {
		grid-column: 1 / -1;
	}
}

@media (min-width: 62em) {
	.services-grid {
		grid-template-columns: repeat(3, 1fr);
	}

	.tech-grid {
		grid-template-columns: repeat(5, 1fr);
	}
}

/* ============================================================
   Prefers-reduced-motion
   ============================================================ */

@media (prefers-reduced-motion: reduce) {
	html {
		scroll-behavior: auto;
	}

	*,
	*::before,
	*::after {
		transition: none !important;
		animation: none !important;
	}
}

/* ============================================================
   Forced colors (alta acessibilidade)
   ============================================================ */

@media (forced-colors: active) {
	.service-card,
	.about-block,
	.tech-grid li {
		border-color: CanvasText;
	}

	.btn-primary,
	.role {
		border: 1px solid CanvasText;
	}
}
