/*
Theme Name: New Era
Theme URI: https://example.com/new-era
Author: New Era
Description: Tema de ciência, exploração e futuro com a identidade visual da X Division. Escuro, dourado e ciano, com página inicial personalizável.
Version: 1.1.0
Requires at least: 5.8
Tested up to: 6.6
Requires PHP: 7.4
License: GNU General Public License v2 or later
License URI: https://www.gnu.org/licenses/gpl-2.0.html
Text Domain: new-era
Tags: dark, blog, custom-logo, custom-menu, featured-images, translation-ready
*/

/* ==========================================================================
   Variáveis e base
   ========================================================================== */
:root {
	--bg: #05080c;
	--bg-2: #080d13;
	--panel: rgba(10, 16, 23, 0.82);
	--line: rgba(212, 165, 55, 0.28);
	--line-soft: rgba(255, 255, 255, 0.08);
	--gold: #d4a537;
	--gold-soft: #f0c85a;
	--teal: #3fb8c4;
	--teal-soft: #7fe0e8;
	--text: #e9edf2;
	--muted: #a3adb9;
	--display: 'Rajdhani', 'Segoe UI', sans-serif;
	--body: 'Inter', system-ui, -apple-system, 'Segoe UI', sans-serif;
	--wrap: 1480px;
}

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

html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }

body {
	margin: 0;
	font-family: var(--body);
	font-size: 15px;
	line-height: 1.6;
	color: var(--text);
	background-color: var(--bg);
	background-image:
		radial-gradient(1px 1px at 12% 18%, rgba(255,255,255,.55), transparent 60%),
		radial-gradient(1px 1px at 78% 8%, rgba(255,255,255,.4), transparent 60%),
		radial-gradient(1.5px 1.5px at 44% 62%, rgba(255,255,255,.35), transparent 60%),
		radial-gradient(1px 1px at 90% 44%, rgba(255,255,255,.4), transparent 60%),
		radial-gradient(1px 1px at 28% 86%, rgba(255,255,255,.35), transparent 60%),
		radial-gradient(1px 1px at 63% 92%, rgba(255,255,255,.3), transparent 60%),
		radial-gradient(1200px 600px at 50% -10%, rgba(63,184,196,.07), transparent 70%),
		linear-gradient(180deg, #05080c, #070b11 60%, #05080c);
	background-attachment: fixed;
	-webkit-font-smoothing: antialiased;
}

body.no-scroll { overflow: hidden; }

img { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-decoration: none; }
ul { margin: 0; padding: 0; list-style: none; }
h1, h2, h3, h4 { margin: 0; font-family: var(--display); font-weight: 600; line-height: 1.15; }
p { margin: 0 0 1em; }

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

.screen-reader-text {
	position: absolute !important; width: 1px; height: 1px; overflow: hidden;
	clip: rect(1px, 1px, 1px, 1px); white-space: nowrap;
}
.skip-link {
	position: absolute; left: -9999px; top: 8px; z-index: 999;
	background: var(--gold); color: #000; padding: 8px 14px;
}
.skip-link:focus { left: 8px; }

:focus-visible { outline: 2px solid var(--teal); outline-offset: 3px; }

/* ==========================================================================
   Cabeçalho
   ========================================================================== */
.site-header {
	position: sticky; top: 0; z-index: 50;
	background: rgba(5, 8, 12, 0.88);
	backdrop-filter: blur(10px);
	-webkit-backdrop-filter: blur(10px);
	border-bottom: 1px solid var(--line-soft);
}

.header-inner {
	display: flex; align-items: center; justify-content: space-between;
	gap: 24px; min-height: 96px;
}

.brand { display: flex; align-items: center; gap: 16px; flex-shrink: 0; }

.brand-mark {
	width: 74px; height: 74px; flex-shrink: 0;
	display: grid; place-items: center; position: relative;
	border-radius: 50%;
	border: 1px solid rgba(212, 165, 55, .45);
	box-shadow: 0 0 0 5px rgba(212,165,55,.06), inset 0 0 18px rgba(63,184,196,.12);
}
.brand-mark::after {
	content: ''; position: absolute; inset: -9px; border-radius: 50%;
	border: 1px dashed rgba(63, 184, 196, .35);
}
.brand-mark .x-logo, .brand-mark img { width: 52%; height: auto; }
.brand-mark.small { width: 46px; height: 46px; }
.brand-mark.small::after { display: none; }

.brand-text { display: flex; flex-direction: column; gap: 4px; }
.brand-name {
	font-family: var(--display); font-size: 40px; font-weight: 500;
	letter-spacing: .2em; line-height: 1; color: #fff;
}
.brand-tag {
	font-size: 10.5px; letter-spacing: .2em; text-transform: uppercase; color: var(--muted);
}

.main-nav { flex: 1; display: flex; justify-content: center; }
.main-nav .menu { display: flex; gap: 6px; flex-wrap: wrap; justify-content: center; }
.main-nav a {
	display: block; position: relative;
	padding: 10px 16px;
	font-family: var(--display); font-size: 15px; font-weight: 500;
	letter-spacing: .16em; text-transform: uppercase; color: #dfe5ec;
	transition: color .2s;
}
.main-nav a::after {
	content: ''; position: absolute; left: 16px; right: 16px; bottom: -8px; height: 2px;
	background: var(--gold); transform: scaleX(0); transform-origin: left; transition: transform .25s;
}
.main-nav a:hover { color: var(--gold-soft); }
.main-nav a:hover::after,
.main-nav .current-menu-item > a::after,
.main-nav .current_page_item > a::after { transform: scaleX(1); }
.main-nav .current-menu-item > a,
.main-nav .current_page_item > a { color: var(--gold-soft); }

.header-actions { display: flex; align-items: center; gap: 12px; flex-shrink: 0; }
.header-actions .divider { width: 1px; height: 22px; background: var(--line-soft); }

.icon-btn {
	background: none; border: 0; color: #dfe5ec; cursor: pointer;
	width: 40px; height: 40px; display: grid; place-items: center; border-radius: 6px;
	transition: color .2s, background .2s;
}
.icon-btn:hover { color: var(--gold-soft); background: rgba(255,255,255,.05); }

.search-panel { border-top: 1px solid var(--line-soft); padding: 16px 0; background: var(--bg-2); }
.search-form { display: flex; gap: 8px; }
.search-form input[type="search"] {
	flex: 1; background: #0a1118; border: 1px solid var(--line-soft); color: var(--text);
	padding: 12px 16px; font: inherit; border-radius: 2px;
}
.search-form input:focus { border-color: var(--teal); outline: none; }
.search-form button {
	background: transparent; color: var(--gold-soft); border: 1px solid var(--gold);
	padding: 0 22px; font-family: var(--display); letter-spacing: .15em; text-transform: uppercase;
	cursor: pointer; transition: background .2s;
}
.search-form button:hover { background: rgba(212,165,55,.12); }

/* Menu lateral */
.drawer { position: fixed; inset: 0; z-index: 100; }
.drawer[hidden] { display: none; }
.drawer-backdrop { position: absolute; inset: 0; background: rgba(0,0,0,.6); }
.drawer-panel {
	position: absolute; right: 0; top: 0; bottom: 0; width: min(340px, 88vw);
	background: #070c12; border-left: 1px solid var(--line);
	padding: 72px 28px 28px; overflow-y: auto;
}
.drawer-close { position: absolute; top: 18px; right: 18px; }
.drawer .menu { display: flex; flex-direction: column; }
.drawer .menu a {
	display: block; padding: 14px 0; border-bottom: 1px solid var(--line-soft);
	font-family: var(--display); font-size: 20px; letter-spacing: .14em; text-transform: uppercase;
}
.drawer .menu a:hover { color: var(--gold-soft); }

/* ==========================================================================
   Painéis, botões e utilitários
   ========================================================================== */
.panel, .box {
	position: relative;
	background: var(--panel);
	border: 1px solid var(--line-soft);
}

.btn {
	display: inline-flex; align-items: center; justify-content: space-between; gap: 22px;
	padding: 13px 26px; background: transparent; cursor: pointer;
	font-family: var(--display); font-size: 14px; font-weight: 600;
	letter-spacing: .2em; text-transform: uppercase;
	transition: background .2s, color .2s, box-shadow .2s;
}
.btn-gold { color: var(--gold-soft); border: 1px solid var(--gold); }
.btn-gold:hover { background: rgba(212,165,55,.14); box-shadow: 0 0 22px rgba(212,165,55,.25); }
.btn-teal { color: var(--teal-soft); border: 1px solid var(--teal); }
.btn-teal:hover { background: rgba(63,184,196,.14); box-shadow: 0 0 22px rgba(63,184,196,.25); }

.meta {
	display: block; font-size: 11px; letter-spacing: .14em; text-transform: uppercase; color: var(--teal);
}
.meta i { font-style: normal; margin: 0 6px; }

.tag {
	position: absolute; top: 14px; left: 14px; z-index: 2;
	padding: 3px 10px; font-size: 10.5px; letter-spacing: .18em; text-transform: uppercase;
	color: var(--teal-soft); background: rgba(5,8,12,.75); border: 1px solid rgba(63,184,196,.45);
}
.tag.static { position: static; display: inline-block; margin-bottom: 14px; }

.link-gold, .link-teal, .see-all {
	display: inline-flex; align-items: center; gap: 8px;
	font-family: var(--display); font-weight: 600; font-size: 13px;
	letter-spacing: .18em; text-transform: uppercase;
}
.link-gold { color: var(--gold-soft); }
.link-teal { color: var(--teal-soft); }
.link-gold:hover, .link-teal:hover, .see-all:hover { opacity: .75; }
.see-all { color: var(--muted); font-size: 12px; }

/* ==========================================================================
   Hero
   ========================================================================== */
.hero { padding: 28px 0 8px; }

.hero-grid {
	display: grid; grid-template-columns: 1fr 1.05fr 1fr; gap: 20px; align-items: center;
	min-height: 360px;
}

.hero-left {
	padding: 34px 34px 36px;
	border-left: 1px solid var(--line);
}
.hero-left::before, .hero-left::after {
	content: ''; position: absolute; width: 16px; height: 16px; border: 1px solid var(--gold);
}
.hero-left::before { top: -1px; left: -1px; border-right: 0; border-bottom: 0; }
.hero-left::after { bottom: -1px; left: -1px; border-right: 0; border-top: 0; }

.kicker {
	font-family: var(--display); font-size: 17px; letter-spacing: .2em; text-transform: uppercase;
	color: var(--gold); margin-bottom: 14px; line-height: 1.5;
}
.hero-title {
	font-size: clamp(34px, 3.3vw, 50px); font-weight: 500; letter-spacing: .1em;
	text-transform: uppercase; color: #fff; margin-bottom: 20px; line-height: 1.12;
}
.hero-text { color: #d3d9e0; max-width: 400px; margin-bottom: 26px; }

.hero-center { position: relative; text-align: center; padding: 20px 0 10px; }
.rings { position: absolute; left: 50%; top: 38%; width: 0; height: 0; pointer-events: none; }
.rings span {
	position: absolute; border-radius: 50%; border: 1px solid rgba(63,184,196,.22);
	transform: translate(-50%, -50%);
}
.rings span:nth-child(1) { width: 250px; height: 250px; }
.rings span:nth-child(2) { width: 330px; height: 330px; border-color: rgba(212,165,55,.2); border-style: dashed; animation: spin 90s linear infinite; }
.rings span:nth-child(3) { width: 420px; height: 420px; border-color: rgba(63,184,196,.12); }
.rings span:nth-child(4) { width: 520px; height: 520px; border-color: rgba(255,255,255,.05); }

@keyframes spin { to { transform: translate(-50%, -50%) rotate(360deg); } }

.hero-logo { position: relative; width: clamp(160px, 15vw, 230px); margin: 0 auto 8px; filter: drop-shadow(0 0 28px rgba(212,165,55,.25)); }
.hero-brand {
	position: relative; font-family: var(--display); font-size: clamp(24px, 2.2vw, 32px);
	letter-spacing: .5em; color: var(--gold); margin: 0 0 6px; padding-left: .5em; text-transform: uppercase;
}
.hero-slogan {
	position: relative; font-size: 12.5px; letter-spacing: .32em; text-transform: uppercase; color: var(--teal); margin: 0;
}

.hero-right {
	padding: 36px 30px; text-align: center;
	background: linear-gradient(135deg, rgba(10,16,23,.75), rgba(8,22,28,.6));
	border: 1px solid var(--line-soft);
}
.panel-cut {
	clip-path: polygon(0 0, calc(100% - 36px) 0, 100% 36px, 100% 100%, 36px 100%, 0 calc(100% - 36px));
}
.motto-latin {
	font-family: var(--display); font-size: 18px; letter-spacing: .28em; text-transform: uppercase;
	color: var(--gold); margin-bottom: 12px;
}
.rule { display: block; width: 36px; height: 2px; background: var(--teal); margin: 0 auto 22px; }
.motto-pt { font-size: 18px; line-height: 1.7; color: #fff; margin-bottom: 26px; }
.coord {
	position: absolute; left: 18px; bottom: 14px; font-size: 8px; letter-spacing: .12em;
	color: rgba(255,255,255,.22); text-align: left; line-height: 1.6;
}

/* ==========================================================================
   Grade da home
   ========================================================================== */
.home-grid {
	display: grid; grid-template-columns: minmax(0, 1fr) 460px; gap: 20px;
	padding-top: 20px; padding-bottom: 40px; align-items: start;
}
.home-main, .home-side { display: flex; flex-direction: column; gap: 20px; }

.box { padding: 18px 16px 16px; border-color: var(--line); }
.box::before {
	content: ''; position: absolute; top: -1px; left: -1px; width: 14px; height: 14px;
	border-top: 1px solid var(--gold); border-left: 1px solid var(--gold);
}

.box-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 14px; }
.box-title {
	display: flex; align-items: center; gap: 14px;
	font-size: 17px; font-weight: 500; letter-spacing: .3em; text-transform: uppercase; color: var(--gold);
}
.box-title::before, .box-title::after { content: ''; width: 14px; height: 1px; background: var(--gold); }
.box-title span { display: block; }

/* ---------- Destaques ---------- */
.featured { display: grid; grid-template-columns: 1.15fr 1fr; gap: 14px; }

.feature-main {
	position: relative; display: flex; align-items: flex-end; min-height: 330px;
	background-size: cover; background-position: center;
	border: 1px solid var(--line-soft); overflow: hidden;
}
.feature-main:hover .feature-title { color: var(--gold-soft); }
.feature-body { position: relative; z-index: 2; display: block; padding: 22px; width: 100%; }
.feature-title {
	display: block; font-family: var(--display); font-size: 29px; font-weight: 500;
	line-height: 1.2; color: #fff; margin-bottom: 10px; transition: color .2s; max-width: 430px;
}
.feature-excerpt { display: block; font-size: 13.5px; color: #cdd5de; margin-bottom: 14px; max-width: 430px; }

.feature-list { display: flex; flex-direction: column; gap: 10px; }
.feature-item {
	display: grid; grid-template-columns: 150px 1fr; gap: 14px; align-items: center;
	border: 1px solid var(--line-soft); background: rgba(255,255,255,.015);
	min-height: 96px; transition: border-color .2s, background .2s;
}
.feature-item:hover { border-color: var(--line); background: rgba(255,255,255,.035); }
.thumb {
	display: block; height: 100%; min-height: 96px; background-size: cover; background-position: center;
}
.feature-info { display: block; padding: 8px 12px 8px 0; }
.item-cat { display: block; font-size: 10.5px; letter-spacing: .18em; text-transform: uppercase; color: var(--teal); margin-bottom: 4px; }
.item-title { display: block; font-size: 14.5px; font-weight: 500; line-height: 1.35; color: #fff; margin-bottom: 6px; }
.feature-item:hover .item-title { color: var(--gold-soft); }

/* Imagens substitutas (sem foto): gradientes que lembram as da referência */
.ph-blackhole {
	background:
		radial-gradient(ellipse 34% 7% at 52% 62%, rgba(255,255,255,.95), rgba(255,205,120,.9) 40%, transparent 70%),
		radial-gradient(ellipse 60% 16% at 52% 62%, rgba(255,160,60,.55), transparent 70%),
		radial-gradient(ellipse 80% 30% at 52% 62%, rgba(180,100,40,.25), transparent 75%),
		linear-gradient(105deg, transparent 49.4%, rgba(255,255,255,.85) 50%, transparent 50.6%) 0 0 / 100% 55% no-repeat,
		radial-gradient(800px 400px at 60% 40%, #101a26, #05080c);
	background-color: #05080c;
}
.ph-webb {
	background:
		radial-gradient(circle at 55% 45%, #d9a21e 0 14%, #7b5a12 15% 20%, transparent 21%),
		radial-gradient(circle at 30% 30%, rgba(63,184,196,.35), transparent 40%),
		linear-gradient(160deg, #0b1822, #04070b);
}
.ph-dna {
	background:
		radial-gradient(circle at 22% 24%, rgba(127,224,232,.9) 0 3%, transparent 6%),
		repeating-linear-gradient(115deg, transparent 0 14px, rgba(63,184,196,.28) 14px 16px),
		linear-gradient(160deg, #06202a, #04070b);
}
.ph-moon {
	background:
		radial-gradient(circle at 36% 24%, #cfcac0 0 9%, transparent 10%),
		linear-gradient(180deg, transparent 62%, #3b362f 63%, #1a1713),
		linear-gradient(180deg, #0a0f15, #1b1a18);
}

/* ---------- Categorias ---------- */
.cats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; }
.cat-card {
	position: relative; display: grid; grid-template-columns: auto 1fr; gap: 4px 12px; align-items: center;
	padding: 18px 16px 12px; min-height: 100px; overflow: hidden;
	border: 1px solid var(--line-soft); background: rgba(255,255,255,.02);
	transition: border-color .2s, transform .2s;
}
.cat-card::before {
	content: ''; position: absolute; inset: 0; opacity: .5; z-index: 0;
	background: radial-gradient(circle at 85% 20%, var(--glow, rgba(63,184,196,.35)), transparent 60%);
}
.cat-card:hover { border-color: var(--line); transform: translateY(-2px); }
.cat-card > * { position: relative; z-index: 1; }
.cat-space { --glow: rgba(120,140,170,.4); }
.cat-science { --glow: rgba(63,184,196,.4); }
.cat-tech { --glow: rgba(63,184,196,.28); }
.cat-future { --glow: rgba(212,165,55,.3); }

.cat-icon {
	width: 40px; height: 40px; display: grid; place-items: center; border-radius: 50%;
	border: 1px solid rgba(212,165,55,.45); color: var(--gold); background: rgba(0,0,0,.35);
}
.cat-name { font-family: var(--display); font-size: 20px; font-weight: 500; letter-spacing: .14em; text-transform: uppercase; color: #fff; }
.cat-desc { grid-column: 1 / -1; font-size: 10.5px; letter-spacing: .16em; text-transform: uppercase; color: var(--teal); }

/* ==========================================================================
   Barra lateral
   ========================================================================== */
.xdiv-card { display: grid; grid-template-columns: 150px 1fr; gap: 16px; align-items: center; border: 1px solid var(--line-soft); padding: 12px; }
.xdiv-emblem { position: relative; display: grid; place-items: center; height: 150px; }
.xdiv-emblem .x-logo { width: 62px; position: relative; z-index: 1; }
.rings.small { top: 50%; }
.rings.small span:nth-child(1) { width: 96px; height: 96px; border-color: rgba(212,165,55,.45); }
.rings.small span:nth-child(2) { width: 128px; height: 128px; animation: none; border-style: solid; }
.rings.small span:nth-child(3) { width: 150px; height: 150px; }

.xdiv-info h3 { font-size: 15px; letter-spacing: .2em; text-transform: uppercase; color: var(--gold); margin-bottom: 8px; }
.xdiv-sub { font-size: 11px; letter-spacing: .16em; text-transform: uppercase; color: var(--teal); margin-bottom: 8px; line-height: 1.6; }
.xdiv-text { font-size: 13px; color: #d0d7df; margin-bottom: 12px; }

.focus-card {
	position: relative; display: flex; justify-content: space-between; align-items: center; overflow: hidden;
	padding: 18px 20px; min-height: 130px;
	border: 1px solid var(--line); background: var(--panel);
}
.focus-label { font-size: 12px; letter-spacing: .24em; text-transform: uppercase; color: var(--gold); margin-bottom: 4px; }
.focus-card h3 { font-size: 26px; letter-spacing: .14em; text-transform: uppercase; color: #fff; }
.focus-card p { font-size: 13.5px; color: #d0d7df; margin: 2px 0 10px; }
.focus-text { position: relative; z-index: 2; }

.orbit { position: absolute; right: -30px; top: 50%; width: 260px; height: 260px; transform: translateY(-50%); pointer-events: none; }
.orbit .o { position: absolute; left: 50%; top: 50%; border-radius: 50%; border: 1px solid rgba(212,165,55,.28); transform: translate(-50%, -50%) rotate(-18deg) scaleY(.5); }
.orbit .o1 { width: 120px; height: 120px; }
.orbit .o2 { width: 190px; height: 190px; border-color: rgba(63,184,196,.25); }
.orbit .o3 { width: 260px; height: 260px; border-color: rgba(255,255,255,.1); }
.orbit .star {
	position: absolute; left: 50%; top: 50%; width: 22px; height: 22px; transform: translate(-50%, -50%); border-radius: 50%;
	background: radial-gradient(circle, #fff 0, #ffe9a8 30%, rgba(255,200,90,.35) 60%, transparent 72%);
	box-shadow: 0 0 40px 14px rgba(255,200,90,.25);
}


/* ==========================================================================
   Páginas internas
   ========================================================================== */
.page-wrap { padding-top: 48px; padding-bottom: 64px; }
.page-wrap.narrow { max-width: 860px; }
.page-head { margin-bottom: 32px; }
.page-title { font-size: clamp(30px, 4vw, 46px); font-weight: 500; letter-spacing: .06em; color: #fff; }

.post-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(290px, 1fr)); gap: 20px; }
.post-card { border: 1px solid var(--line-soft); background: var(--panel); transition: border-color .2s; }
.post-card:hover { border-color: var(--line); }
.post-thumb { display: block; aspect-ratio: 16 / 10; overflow: hidden; }
.post-thumb img, .post-thumb span { width: 100%; height: 100%; object-fit: cover; display: block; }
.post-card-body { padding: 16px 18px 20px; }
.post-card-body h2 { font-size: 22px; font-weight: 500; margin: 4px 0 8px; }
.post-card-body h2 a:hover { color: var(--gold-soft); }
.post-card-body p { font-size: 14px; color: var(--muted); }

.entry-head { margin-bottom: 28px; }
.entry-thumb { margin: 0 0 32px; border: 1px solid var(--line-soft); }
.entry-content { font-size: 17px; line-height: 1.8; color: #d9dfe6; }
.entry-content h2, .entry-content h3 { color: #fff; margin: 1.8em 0 .6em; letter-spacing: .04em; }
.entry-content a { color: var(--teal-soft); text-decoration: underline; text-underline-offset: 3px; }
.entry-content blockquote { margin: 1.6em 0; padding: 4px 0 4px 20px; border-left: 2px solid var(--gold); color: #fff; font-style: italic; }

.pagination { margin-top: 36px; }
.pagination .nav-links { display: flex; gap: 8px; justify-content: center; flex-wrap: wrap; }
.pagination .page-numbers { padding: 8px 16px; border: 1px solid var(--line-soft); font-family: var(--display); letter-spacing: .1em; }
.pagination .current, .pagination .page-numbers:hover { border-color: var(--gold); color: var(--gold-soft); }
.empty { color: var(--muted); }

/* ==========================================================================
   Rodapé
   ========================================================================== */
.site-footer { border-top: 1px solid var(--line-soft); background: rgba(5,8,12,.9); padding: 28px 0; }
.footer-inner { display: flex; align-items: center; justify-content: space-between; gap: 20px; flex-wrap: wrap; }
.footer-brand { display: flex; align-items: center; gap: 14px; }
.footer-brand strong { display: block; font-family: var(--display); letter-spacing: .3em; font-weight: 500; font-size: 20px; }
.footer-brand span { font-size: 10.5px; letter-spacing: .18em; text-transform: uppercase; color: var(--muted); }
.footer-motto { margin: 0; font-family: var(--display); letter-spacing: .26em; text-transform: uppercase; color: var(--gold); }
.footer-copy { margin: 0; font-size: 12.5px; color: var(--muted); }

/* ==========================================================================
   Responsivo
   ========================================================================== */
@media (max-width: 1280px) {
	.main-nav a { padding: 10px 10px; letter-spacing: .1em; font-size: 14px; }
	.home-grid { grid-template-columns: minmax(0, 1fr) 400px; }
	.brand-name { font-size: 34px; }
}

@media (max-width: 1100px) {
	.main-nav { display: none; }
	.header-inner { min-height: 84px; }
	.hero-grid { grid-template-columns: 1fr; gap: 28px; }
	.hero-center { order: -1; padding-top: 30px; }
	.hero-text { max-width: none; }
	.hero-right { max-width: 520px; margin: 0 auto; width: 100%; }
	.home-grid { grid-template-columns: 1fr; }
	.coord { display: none; }
}

@media (max-width: 820px) {
	.featured { grid-template-columns: 1fr; }
	.feature-main { min-height: 300px; }
	.cats { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 560px) {
	.container { padding: 0 14px; }
	.brand-mark { width: 54px; height: 54px; }
	.brand-name { font-size: 26px; }
	.brand-tag { font-size: 8.5px; letter-spacing: .12em; }
	.hero-left { padding: 24px 20px; }
	.feature-title { font-size: 23px; }
	.feature-item { grid-template-columns: 110px 1fr; }
	.xdiv-card { grid-template-columns: 1fr; }
	.xdiv-emblem { height: 130px; }
	.cats { grid-template-columns: 1fr; }
	.rings span:nth-child(3), .rings span:nth-child(4) { display: none; }
}

@media (prefers-reduced-motion: reduce) {
	* { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
}


/* ==== EFEITOS EXTRAS ==== */

/* Logo: tamanho correto e brilho */
.x-logo { display: block; width: 100%; height: auto; overflow: visible; }
.x-logo .shine { transform: translateX(-100px) skewX(-20deg); animation: shine 6s ease-in-out infinite; }
.x-logo .lt { animation: tealpulse 3.2s ease-in-out infinite alternate; }
@keyframes shine {
	0%   { transform: translateX(-100px) skewX(-20deg); }
	55%, 100% { transform: translateX(1200px) skewX(-20deg); }
}
@keyframes tealpulse { from { opacity: .82; } to { opacity: 1; } }

.hero-logo {
	filter: none;
	transform: translate3d(var(--px, 0px), var(--py, 0px), 0);
	transition: transform .25s ease-out;
}
.hero-logo .x-logo { animation: float 6s ease-in-out infinite, glow 4s ease-in-out infinite alternate; }
.xdiv-emblem .x-logo, .brand-mark .x-logo { animation: glow 4s ease-in-out infinite alternate; }
@keyframes float { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-9px); } }
@keyframes glow {
	from { filter: drop-shadow(0 0 8px rgba(212,165,55,.35)) drop-shadow(0 0 16px rgba(63,184,196,.15)); }
	to   { filter: drop-shadow(0 0 20px rgba(212,165,55,.65)) drop-shadow(0 0 38px rgba(63,184,196,.35)); }
}

/* Estrelas piscando ao fundo */
body::before, body::after {
	content: ''; position: fixed; inset: 0; z-index: -1; pointer-events: none;
}
body::before {
	background-image:
		radial-gradient(1.5px 1.5px at 8% 30%, #fff, transparent 60%),
		radial-gradient(1.5px 1.5px at 22% 70%, #bfeef2, transparent 60%),
		radial-gradient(2px 2px at 36% 12%, #fff, transparent 60%),
		radial-gradient(1.5px 1.5px at 52% 82%, #ffe9a8, transparent 60%),
		radial-gradient(1.5px 1.5px at 93% 16%, #fff, transparent 60%);
	animation: twinkle 5s ease-in-out infinite alternate;
}
body::after {
	background-image:
		radial-gradient(1.5px 1.5px at 67% 36%, #fff, transparent 60%),
		radial-gradient(2px 2px at 81% 66%, #bfeef2, transparent 60%),
		radial-gradient(1.5px 1.5px at 15% 94%, #fff, transparent 60%),
		radial-gradient(1.5px 1.5px at 44% 48%, #ffe9a8, transparent 60%),
		radial-gradient(1.5px 1.5px at 72% 90%, #fff, transparent 60%);
	animation: twinkle 7s ease-in-out -3s infinite alternate;
}
@keyframes twinkle { from { opacity: .2; } to { opacity: .95; } }

/* Anéis do hero */
.rings span:nth-child(1) { animation: ring-pulse 4s ease-in-out infinite; }
.rings span:nth-child(3) { border-style: dashed; animation: spin-rev 140s linear infinite; }
.rings span:nth-child(2)::before, .rings span:nth-child(3)::before {
	content: ''; position: absolute; top: -3px; left: 50%; width: 6px; height: 6px; margin-left: -3px;
	border-radius: 50%; background: var(--gold); box-shadow: 0 0 10px 2px var(--gold);
}
.rings span:nth-child(3)::before { background: var(--teal-soft); box-shadow: 0 0 10px 2px var(--teal); }
.rings.small span::before { display: none; }
@keyframes ring-pulse {
	0%, 100% { opacity: .55; transform: translate(-50%, -50%) scale(1); }
	50%      { opacity: 1;   transform: translate(-50%, -50%) scale(1.045); }
}
@keyframes spin-rev { to { transform: translate(-50%, -50%) rotate(-360deg); } }

/* Linha de varredura no hero */
.hero-center::after {
	content: ''; position: absolute; left: 50%; top: 0; width: 380px; height: 1px; margin-left: -190px;
	background: linear-gradient(90deg, transparent, var(--teal-soft), transparent);
	box-shadow: 0 0 12px 1px rgba(63,184,196,.5); opacity: 0;
	animation: scan 7s ease-in-out infinite; pointer-events: none;
}
@keyframes scan {
	0%   { top: 4%;  opacity: 0; }
	10%  { opacity: .9; }
	50%  { top: 74%; opacity: .9; }
	60%, 100% { top: 74%; opacity: 0; }
}

/* Entrada do hero ao carregar */
.hero-left > *, .hero-right > *:not(.coord), .hero-brand, .hero-slogan { animation: rise .9s cubic-bezier(.2,.7,.2,1) both; }
.hero-left > :nth-child(2) { animation-delay: .1s; }
.hero-left > :nth-child(3) { animation-delay: .2s; }
.hero-left > :nth-child(4) { animation-delay: .3s; }
.hero-right > :nth-child(2) { animation-delay: .1s; }
.hero-right > :nth-child(3) { animation-delay: .2s; }
.hero-right > :nth-child(4) { animation-delay: .3s; }
.hero-brand  { animation-delay: .35s; }
.hero-slogan { animation-delay: .5s; }
@keyframes rise { from { opacity: 0; transform: translateY(18px); } to { opacity: 1; transform: none; } }

.hero-title { text-shadow: 0 0 28px rgba(255,255,255,.12); }
.hero-brand {
	background: linear-gradient(90deg, #b88a22, #f6d36b, #fff3c4, #f6d36b, #b88a22);
	background-size: 200% 100%;
	-webkit-background-clip: text; background-clip: text;
	color: transparent; -webkit-text-fill-color: transparent;
	animation: rise .9s .35s cubic-bezier(.2,.7,.2,1) both, shimmer 6s linear infinite;
}
@keyframes shimmer { from { background-position: 0 0; } to { background-position: 200% 0; } }

.coord::after { content: '_'; margin-left: 2px; color: var(--teal-soft); animation: blink 1s steps(2) infinite; }
@keyframes blink { 50% { opacity: 0; } }

/* Cabeçalho */
.site-header { transition: background .3s, box-shadow .3s; }
.header-inner { transition: min-height .3s; }
.brand-mark { transition: width .3s, height .3s; }
.site-header.scrolled { background: rgba(5,8,12,.96); box-shadow: 0 10px 30px rgba(0,0,0,.55); }
.site-header.scrolled .header-inner { min-height: 72px; }
.site-header.scrolled .brand-mark { width: 56px; height: 56px; }
.site-header::after {
	content: ''; position: absolute; left: 0; right: 0; bottom: -1px; height: 1px; opacity: .75; pointer-events: none;
	background: linear-gradient(90deg, transparent, var(--gold), var(--teal), transparent);
	background-size: 200% 100%; animation: line-run 7s linear infinite;
}
@keyframes line-run { from { background-position: 0 0; } to { background-position: 200% 0; } }
.brand-mark::after { animation: rot 40s linear infinite; }
@keyframes rot { to { transform: rotate(360deg); } }
.main-nav a:hover { text-shadow: 0 0 14px rgba(240,200,90,.55); }

/* Botões */
.btn { position: relative; overflow: hidden; isolation: isolate; }
.btn::before {
	content: ''; position: absolute; inset: 0; z-index: -1;
	background: linear-gradient(105deg, transparent 30%, rgba(255,255,255,.2) 50%, transparent 70%);
	transform: translateX(-120%); transition: transform .7s;
}
.btn:hover::before { transform: translateX(120%); }
.btn svg { transition: transform .25s; }
.btn:hover svg { transform: translateX(5px); }
.btn-gold:not(:hover) { animation: pulse-gold 3.2s ease-in-out infinite; }
.btn-teal:not(:hover) { animation: pulse-teal 3.2s ease-in-out infinite; }
@keyframes pulse-gold { 0%, 100% { box-shadow: 0 0 0 rgba(212,165,55,0); } 50% { box-shadow: 0 0 18px rgba(212,165,55,.3); } }
@keyframes pulse-teal { 0%, 100% { box-shadow: 0 0 0 rgba(63,184,196,0); } 50% { box-shadow: 0 0 18px rgba(63,184,196,.3); } }
.link-gold svg, .link-teal svg, .see-all svg { transition: transform .25s; }
.link-gold:hover svg, .link-teal:hover svg, .see-all:hover svg { transform: translateX(4px); }

/* Caixas, cartões e destaque que acompanha o mouse */
.box, .cat-card, .feature-item { position: relative; }
.box::after, .cat-card::after, .feature-item::after {
	content: ''; position: absolute; inset: 0; pointer-events: none; opacity: 0; transition: opacity .3s; z-index: 0;
	background: radial-gradient(340px circle at var(--mx, 50%) var(--my, 50%), rgba(212,165,55,.11), transparent 60%);
}
.box:hover::after, .cat-card:hover::after, .feature-item:hover::after { opacity: 1; }
.box::before { transition: width .3s, height .3s; }
.box:hover::before { width: 30px; height: 30px; }

.feature-main { transition: box-shadow .3s, border-color .3s; }
.feature-main:hover { border-color: var(--line); box-shadow: 0 0 32px rgba(212,165,55,.2); }
.feature-item { transition: border-color .2s, background .2s, transform .25s; }
.feature-item:hover { transform: translateX(4px); }
.thumb { transition: filter .3s; }
.feature-item:hover .thumb { filter: brightness(1.25) saturate(1.15); }

.cat-icon { transition: transform .3s, box-shadow .3s; }
.cat-card:hover .cat-icon { transform: rotate(12deg) scale(1.1); box-shadow: 0 0 18px rgba(212,165,55,.55); }
.cat-card:hover { box-shadow: 0 8px 26px rgba(0,0,0,.45); }

/* Foco atual: órbitas vivas */
.orbit .o1 { animation: orbit-spin 24s linear infinite; }
.orbit .o2 { animation: orbit-spin 40s linear infinite reverse; }
.orbit .o3 { animation: orbit-spin 64s linear infinite; }
.orbit .o1::after, .orbit .o2::after {
	content: ''; position: absolute; top: 50%; left: 100%; width: 8px; height: 16px; margin: -8px 0 0 -4px;
	border-radius: 50%; background: var(--teal-soft); box-shadow: 0 0 10px var(--teal);
}
.orbit .o1::after { background: var(--gold-soft); box-shadow: 0 0 10px var(--gold); }
.orbit .star { animation: star-pulse 3s ease-in-out infinite; }
@keyframes orbit-spin {
	from { transform: translate(-50%, -50%) rotate(-18deg) scaleY(.5); }
	to   { transform: translate(-50%, -50%) rotate(342deg) scaleY(.5); }
}
@keyframes star-pulse {
	0%, 100% { box-shadow: 0 0 30px 10px rgba(255,200,90,.2); }
	50%      { box-shadow: 0 0 56px 22px rgba(255,200,90,.4); }
}

/* Revelar ao rolar (as classes são aplicadas pelo JS) */
.reveal { opacity: 0; transform: translateY(26px); transition: opacity .8s ease, transform .8s ease; transition-delay: var(--d, 0s); }
.reveal.in { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
	.reveal { opacity: 1; transform: none; }
}

/* Comentários */
.comments-area { margin-top: 56px; padding-top: 28px; border-top: 1px solid var(--line-soft); }
.comments-title { font-size: 22px; letter-spacing: .08em; text-transform: uppercase; color: var(--gold); margin-bottom: 20px; }
.comment-list { list-style: none; margin: 0 0 32px; padding: 0; }
.comment-list .comment-body { padding: 16px 0; border-bottom: 1px solid var(--line-soft); }
.comment-list .children { list-style: none; padding-left: 24px; }
.comment-author .avatar { float: left; margin-right: 12px; border-radius: 50%; }
.comment-metadata { font-size: 12px; color: var(--muted); margin-bottom: 8px; }
.comment-respond label { display: block; font-size: 13px; margin-bottom: 4px; color: var(--muted); }
.comment-respond input[type="text"], .comment-respond input[type="email"], .comment-respond input[type="url"], .comment-respond textarea {
	width: 100%; background: #0a1118; border: 1px solid var(--line-soft); color: var(--text); padding: 10px 12px; font: inherit;
}
.comment-respond input:focus, .comment-respond textarea:focus { outline: none; border-color: var(--teal); }
.comment-respond .submit { background: transparent; color: var(--gold-soft); border: 1px solid var(--gold); padding: 11px 24px; font-family: var(--display); letter-spacing: .18em; text-transform: uppercase; cursor: pointer; }
.comment-respond .submit:hover { background: rgba(212,165,55,.14); }
