/* Atlas of Legends — vitrine oficial
   Direção: atlas diurno, aventura mundial, precisão tipo Nintendo Store.
   Sem roxo, sem glow, sem pills genéricas. */

:root {
	--paper: #F3F7F4;
	--paper-2: #E7EFEA;
	--mist: #D7E6DE;
	--ink: #10241C;
	--ink-soft: #3A5348;
	--line: rgba(16, 36, 28, 0.12);
	--teal: #0F6B5C;
	--teal-deep: #0A4A3F;
	--coral: #E4572E;
	--coral-hot: #F06A3F;
	--sand: #C9A86A;
	--white: #FFFFFF;
	--font-brand: "Syne", "Avenir Next", "Segoe UI", sans-serif;
	--font-body: "Instrument Sans", "Segoe UI", sans-serif;
	--ease: cubic-bezier(0.22, 1, 0.36, 1);
	--max: 1180px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
	margin: 0;
	color: var(--ink);
	font-family: var(--font-body);
	font-size: 1.0625rem;
	line-height: 1.55;
	background: var(--paper);
	-webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; height: auto; }
a { color: var(--teal-deep); text-underline-offset: 0.18em; }
a:hover { color: var(--coral); }
button, .btn { font-family: inherit; }

.skip-link {
	position: absolute;
	left: -999px;
	top: 0;
	background: var(--ink);
	color: var(--white);
	padding: 0.6rem 1rem;
	z-index: 100;
}
.skip-link:focus { left: 0.75rem; top: 0.75rem; }

/* —— Top nav —— */
.topnav {
	position: sticky;
	top: 0;
	z-index: 40;
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 1rem;
	padding: 0.85rem clamp(1rem, 3vw, 2rem);
	background: rgba(243, 247, 244, 0.88);
	backdrop-filter: blur(12px);
	border-bottom: 1px solid var(--line);
}
.topnav-brand {
	display: inline-flex;
	align-items: center;
	gap: 0.65rem;
	text-decoration: none;
	color: var(--ink);
	font-family: var(--font-brand);
	font-weight: 700;
	font-size: 1.05rem;
	letter-spacing: -0.02em;
}
.topnav-brand img {
	width: 40px;
	height: 40px;
	object-fit: cover;
	border-radius: 8px;
}
.topnav-links {
	display: flex;
	align-items: center;
	gap: clamp(0.75rem, 2vw, 1.5rem);
}
.topnav-links a {
	text-decoration: none;
	color: var(--ink-soft);
	font-weight: 500;
	font-size: 0.95rem;
}
.topnav-links a:hover { color: var(--ink); }
.topnav-buy {
	display: inline-flex;
	align-items: center;
	padding: 0.55rem 1rem;
	background: var(--coral);
	color: var(--white) !important;
	border-radius: 6px;
	transition: background 0.25s var(--ease), transform 0.25s var(--ease);
}
.topnav-buy:hover {
	background: var(--coral-hot);
	transform: translateY(-1px);
}
.lang-switch {
	display: inline-flex;
	align-items: center;
	margin: 0;
}
.lang-switch select {
	appearance: none;
	font: inherit;
	font-size: 0.85rem;
	font-weight: 500;
	color: var(--ink);
	background: var(--white);
	border: 1px solid var(--line);
	border-radius: 6px;
	padding: 0.4rem 1.75rem 0.4rem 0.65rem;
	cursor: pointer;
	background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath fill='%234a5c52' d='M1 1l5 5 5-5'/%3E%3C/svg%3E");
	background-repeat: no-repeat;
	background-position: right 0.55rem center;
	max-width: 11rem;
}
.lang-switch select:focus-visible {
	outline: 2px solid var(--coral);
	outline-offset: 2px;
}
.visually-hidden {
	position: absolute;
	width: 1px;
	height: 1px;
	padding: 0;
	margin: -1px;
	overflow: hidden;
	clip: rect(0, 0, 0, 0);
	white-space: nowrap;
	border: 0;
}

/* RTL (árabe) */
html[dir="rtl"] .topnav-links { flex-direction: row-reverse; }
html[dir="rtl"] .hero-cta { flex-direction: row-reverse; }
html[dir="rtl"] .lang-switch select {
	padding: 0.4rem 0.65rem 0.4rem 1.75rem;
	background-position: left 0.55rem center;
}

/* —— Hero: title-card completo, sem crop —— */
.hero {
	position: relative;
	display: block;
	width: 100%;
	overflow: visible;
	isolation: isolate;
	color: var(--white);
	background: #0a241c;
}
.hero-art {
	display: block;
	width: 100%;
	height: auto;
	max-width: 100%;
}
.hero-veil {
	position: absolute;
	left: 0;
	right: 0;
	bottom: 0;
	height: 48%;
	z-index: 1;
	background:
		linear-gradient(to top, rgba(10, 36, 28, 0.96) 0%, rgba(10, 36, 28, 0.72) 28%, rgba(10, 36, 28, 0.28) 58%, transparent 100%),
		radial-gradient(ellipse 55% 40% at 50% 100%, rgba(10, 36, 28, 0.9) 0%, transparent 70%);
	pointer-events: none;
}
.hero-content {
	position: absolute;
	left: 0;
	right: 0;
	bottom: 0;
	z-index: 4;
	width: min(var(--max), calc(100% - 2.5rem));
	margin: 0 auto;
	padding: 2rem 0 2.5rem;
}
.hero-studio-logo {
	display: block;
	width: min(200px, 52vw);
	height: auto;
	margin: 0 0 0.85rem;
	object-fit: contain;
	filter: drop-shadow(0 4px 14px rgba(0, 0, 0, 0.4));
}
.hero-studio {
	margin: 0 0 0.55rem;
	font-family: var(--font-body);
	font-size: 0.8rem;
	font-weight: 600;
	letter-spacing: 0.16em;
	text-transform: uppercase;
	color: rgba(255, 255, 255, 0.78);
}
.hero-brand {
	margin: 0;
	max-width: 11ch;
	font-family: var(--font-brand);
	font-weight: 800;
	font-size: clamp(3.1rem, 9vw, 6.4rem);
	line-height: 0.98;
	letter-spacing: -0.045em;
	text-wrap: balance;
}
.hero-lead {
	margin: 0;
	max-width: 34rem;
	font-size: clamp(1.05rem, 2vw, 1.2rem);
	line-height: 1.45;
	color: rgba(255, 255, 255, 0.94);
	text-shadow: 0 2px 14px rgba(0, 0, 0, 0.4);
}
.hero-cta {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 0.85rem;
	margin-top: 1.25rem;
}

.btn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 0.45rem;
	min-height: 3.15rem;
	padding: 0.85rem 1.45rem;
	border: none;
	border-radius: 7px;
	font-weight: 600;
	font-size: 1rem;
	text-decoration: none;
	cursor: pointer;
	transition: transform 0.25s var(--ease), background 0.25s var(--ease), color 0.25s var(--ease), box-shadow 0.25s var(--ease);
}
.btn:focus-visible {
	outline: 2px solid var(--sand);
	outline-offset: 3px;
}
.btn-primary {
	background: var(--coral);
	color: var(--white);
}
.btn-primary:hover {
	background: var(--coral-hot);
	color: var(--white);
	transform: translateY(-2px);
}
.btn-ghost {
	background: rgba(255, 255, 255, 0.12);
	color: var(--white);
	border: 1px solid rgba(255, 255, 255, 0.35);
	backdrop-filter: blur(6px);
}
.btn-ghost:hover {
	background: rgba(255, 255, 255, 0.22);
	color: var(--white);
	transform: translateY(-2px);
}
.btn-ink {
	background: var(--ink);
	color: var(--white);
}
.btn-ink:hover {
	background: #1a3a2c;
	color: var(--white);
	transform: translateY(-2px);
}
.btn-outline {
	background: transparent;
	color: var(--ink);
	border: 1.5px solid var(--ink);
}
.btn-outline:hover {
	background: var(--ink);
	color: var(--white);
}
.price-note {
	font-size: 0.92rem;
	font-weight: 500;
	color: rgba(255, 255, 255, 0.82);
}
.price-note strong { color: var(--white); font-weight: 650; }

/* —— Sections —— */
.section {
	width: min(var(--max), calc(100% - 2.5rem));
	margin: 0 auto;
	padding: clamp(3.5rem, 8vw, 6.5rem) 0;
}
.section-kicker {
	margin: 0 0 0.65rem;
	font-size: 0.78rem;
	font-weight: 650;
	letter-spacing: 0.14em;
	text-transform: uppercase;
	color: var(--teal);
}
.section-title {
	margin: 0;
	max-width: 16ch;
	font-family: var(--font-brand);
	font-weight: 750;
	font-size: clamp(2rem, 4.5vw, 3.35rem);
	line-height: 1.05;
	letter-spacing: -0.035em;
	text-wrap: balance;
}
.section-lead {
	margin: 1rem 0 0;
	max-width: 38rem;
	color: var(--ink-soft);
	font-size: 1.08rem;
}

/* Demo — uma job: mostrar o jogo */
.demo-band {
	background:
		radial-gradient(ellipse 70% 50% at 90% 10%, rgba(15, 107, 92, 0.1), transparent 55%),
		linear-gradient(180deg, var(--paper) 0%, #E8F0EB 100%);
}
.demo-stage {
	margin-top: 2.5rem;
	display: grid;
	grid-template-columns: 1.35fr 1fr;
	gap: 1.25rem;
	align-items: stretch;
}
.demo-main {
	position: relative;
	overflow: hidden;
	border-radius: 14px;
	background: #0d2a22;
	min-height: min(58vh, 520px);
	box-shadow: 0 24px 48px rgba(16, 36, 28, 0.12);
}
.demo-main img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	object-position: center 30%;
}
.demo-caption {
	position: absolute;
	left: 0;
	right: 0;
	bottom: 0;
	padding: 1.25rem 1.35rem;
	background: linear-gradient(to top, rgba(10, 36, 28, 0.85), transparent);
	color: rgba(255, 255, 255, 0.92);
	font-size: 0.95rem;
}
.demo-side {
	display: grid;
	grid-template-rows: 1fr 1fr;
	gap: 1.25rem;
}
.demo-portrait {
	position: relative;
	overflow: hidden;
	border-radius: 14px;
	background: linear-gradient(160deg, #cfe5db, #9ec4b4);
	min-height: 180px;
}
.demo-portrait img {
	width: 100%;
	height: 100%;
	object-fit: contain;
	object-position: bottom center;
	padding-top: 0.5rem;
	transition: transform 0.6s var(--ease);
}
.demo-portrait:hover img { transform: translateY(-4px) scale(1.03); }
.demo-portrait span {
	position: absolute;
	left: 1rem;
	top: 0.9rem;
	font-family: var(--font-brand);
	font-weight: 700;
	font-size: 0.95rem;
	letter-spacing: -0.02em;
}

.world-strip {
	margin-top: 2rem;
	display: grid;
	grid-template-columns: 1fr;
	gap: 1.5rem;
}
@media (min-width: 900px) {
	.world-strip {
		grid-template-columns: 1fr 1fr;
	}
}
.world-card {
	display: grid;
	gap: 0.75rem;
	padding: 0.85rem;
	border-radius: 14px;
	background: var(--white);
	border: 1px solid var(--line);
	box-shadow: 0 10px 28px rgba(16, 36, 28, 0.06);
}
.world-card-title {
	margin: 0;
	font-family: var(--font-brand);
	font-weight: 700;
	font-size: 1.2rem;
	letter-spacing: -0.02em;
	color: var(--ink);
}
.world-map {
	position: relative;
	aspect-ratio: 4 / 3;
	border-radius: 10px;
	overflow: hidden;
	background: var(--ocean, #2476C4);
}
.world-map-stage {
	position: absolute;
}
.world-map-img {
	width: 100%;
	height: 100%;
	object-fit: fill;
	display: block;
	pointer-events: none;
	user-select: none;
}
.world-planet {
	position: absolute;
	left: 50%;
	top: 50%;
	width: 92%;
	aspect-ratio: 1;
	transform: translate(-50%, -50%);
	border-radius: 50%;
	box-shadow: 4px 6px 0 rgba(0, 0, 0, 0.28);
}
.world-planet-moon {
	background: radial-gradient(circle at 35% 30%, #d4d4dc, #9e9ea8 55%, #6e6e78);
}
.world-planet-mars {
	background:
		radial-gradient(circle at 50% 12%, rgba(240, 240, 245, 0.95) 0 12%, transparent 13%),
		radial-gradient(circle at 50% 88%, rgba(230, 235, 245, 0.8) 0 10%, transparent 11%),
		radial-gradient(circle at 32% 38%, #e68a59, transparent 28%),
		radial-gradient(circle at 50% 50%, #c76138, #8c381e);
}
.world-planet-jupiter {
	background:
		radial-gradient(circle at 64% 56%, #d94a28 0 8%, transparent 9%),
		repeating-linear-gradient(180deg, #f2c873 0 8%, #a8622e 8% 16%);
}
.world-planet-cosmos {
	background: radial-gradient(circle at 40% 35%, #a855f7, #5b21b6 45%, #1e1030 75%);
}
.world-pin {
	position: absolute;
	width: 11px;
	height: 11px;
	border-radius: 50%;
	transform: translate(-50%, -50%);
	z-index: 2;
	pointer-events: none;
	background: #ffd638;
	border: 2px solid #fff8d0;
	box-shadow: 0 1px 3px rgba(0, 0, 0, 0.35), 0 0 0 3px rgba(255, 214, 56, 0.22);
}
.world-stages {
	list-style: none;
	margin: 0.15rem 0 0;
	padding: 0;
	display: grid;
	gap: 0.35rem;
}
.world-stage {
	display: flex;
	align-items: center;
	gap: 0.55rem;
	min-width: 0;
}
.world-stage-flag {
	width: 24px;
	height: 16px;
	flex: 0 0 auto;
	object-fit: cover;
	border-radius: 2px;
	box-shadow: 0 0 0 1px rgba(8, 12, 18, 0.2), 0 1px 2px rgba(0, 0, 0, 0.12);
	background: #101820;
}
.world-stage-mark {
	width: 10px;
	height: 10px;
	flex: 0 0 auto;
	border-radius: 50%;
	background: #ffd638;
	box-shadow: 0 0 0 2px rgba(255, 214, 56, 0.25);
}
.world-stage-name {
	font-size: 0.84rem;
	font-weight: 600;
	line-height: 1.25;
	color: var(--ink-soft);
	min-width: 0;
}

/* Canais — interação de escolha */
.channels {
	display: grid;
	grid-template-columns: repeat(2, 1fr);
	gap: 1rem;
	margin-top: 2.25rem;
}
.channel {
	display: grid;
	gap: 0.55rem;
	padding: 1.45rem 1.4rem 1.35rem;
	text-decoration: none;
	color: inherit;
	background: var(--white);
	border: 1px solid var(--line);
	border-radius: 12px;
	transition: border-color 0.25s var(--ease), transform 0.25s var(--ease), background 0.25s var(--ease);
}
.channel:hover {
	border-color: rgba(15, 107, 92, 0.45);
	transform: translateY(-3px);
	color: inherit;
}
.channel-top {
	display: flex;
	align-items: baseline;
	justify-content: space-between;
	gap: 0.75rem;
}
.channel-name {
	margin: 0;
	font-family: var(--font-brand);
	font-size: 1.35rem;
	font-weight: 700;
	letter-spacing: -0.025em;
}
.channel-tag {
	font-size: 0.72rem;
	font-weight: 650;
	letter-spacing: 0.08em;
	text-transform: uppercase;
	color: var(--teal);
}
.channel-tag.soon { color: var(--ink-soft); }
.channel p {
	margin: 0;
	color: var(--ink-soft);
	font-size: 0.98rem;
}
.channel-cta {
	margin-top: 0.35rem;
	font-weight: 600;
	font-size: 0.92rem;
	color: var(--coral);
}

/* Buy teaser */
.buy-panel {
	margin-top: 2rem;
	padding: clamp(1.75rem, 4vw, 2.75rem);
	border-radius: 16px;
	background:
		linear-gradient(135deg, rgba(15, 107, 92, 0.08), transparent 50%),
		var(--white);
	border: 1px solid var(--line);
	display: grid;
	grid-template-columns: 1.4fr auto;
	gap: 1.5rem;
	align-items: center;
}
.buy-panel h3 {
	margin: 0;
	font-family: var(--font-brand);
	font-size: clamp(1.6rem, 3vw, 2.1rem);
	letter-spacing: -0.03em;
}
.buy-panel p {
	margin: 0.55rem 0 0;
	color: var(--ink-soft);
	max-width: 36rem;
}
.buy-actions {
	display: flex;
	flex-direction: column;
	align-items: stretch;
	gap: 0.65rem;
	min-width: min(100%, 220px);
}
.buy-actions .hint {
	margin: 0;
	text-align: center;
	font-size: 0.82rem;
	color: var(--ink-soft);
}

/* Comprar page */
.page-hero {
	padding: clamp(3rem, 7vw, 5rem) 0 1rem;
	width: min(var(--max), calc(100% - 2.5rem));
	margin: 0 auto;
}
.page-hero h1 {
	margin: 0;
	font-family: var(--font-brand);
	font-size: clamp(2.4rem, 5vw, 3.8rem);
	letter-spacing: -0.04em;
	line-height: 1.02;
}
.checkout-shell {
	width: min(720px, calc(100% - 2.5rem));
	margin: 0 auto 4.5rem;
	padding: 2rem;
	background: var(--white);
	border: 1px solid var(--line);
	border-radius: 14px;
}
.checkout-shell .price-xl {
	margin: 0.35rem 0 1.25rem;
	font-family: var(--font-brand);
	font-size: 2.4rem;
	letter-spacing: -0.03em;
}
.checkout-shell ul {
	margin: 0 0 1.5rem;
	padding-left: 1.15rem;
	color: var(--ink-soft);
}
.checkout-shell li { margin: 0.35rem 0; }
.checkout-soon {
	padding: 1rem 1.1rem;
	margin-bottom: 1.25rem;
	border-left: 3px solid var(--sand);
	background: #F7F1E6;
	color: var(--ink-soft);
	font-size: 0.95rem;
}

/* Footer — fundo escuro que combina com Infinite Games + JSOFT */
.site-footer {
	border-top: 1px solid rgba(120, 160, 255, 0.18);
	background:
		radial-gradient(ellipse 55% 90% at 12% 0%, rgba(56, 120, 255, 0.22), transparent 58%),
		radial-gradient(ellipse 50% 80% at 88% 100%, rgba(212, 168, 75, 0.16), transparent 55%),
		linear-gradient(160deg, #0B1424 0%, #121A2E 45%, #0E1626 100%);
	padding: 2.75rem 0 2.25rem;
	color: rgba(232, 238, 248, 0.9);
}
.footer-inner {
	width: min(var(--max), calc(100% - 2.5rem));
	margin: 0 auto;
	display: grid;
	gap: 1.25rem;
}
.footer-brand {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 0.85rem 1rem;
}
.footer-brand > img {
	width: 110px;
	height: auto;
	object-fit: contain;
}
.footer-sep {
	color: rgba(232, 238, 248, 0.35);
}
.footer-jsoft {
	display: inline-flex;
	align-items: center;
	line-height: 0;
}
.footer-jsoft img {
	width: auto;
	height: 28px;
	object-fit: contain;
}
.footer-meta {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 0.75rem 1.35rem;
	font-size: 0.92rem;
	color: rgba(232, 238, 248, 0.72);
}
.footer-meta a {
	font-weight: 600;
	color: #E8EEF8;
	text-decoration: none;
}
.footer-meta a:hover {
	color: #D4A84B;
	text-decoration: underline;
}
.footer-gamesystem {
	color: #9EC5FF !important;
}
.footer-gamesystem:hover {
	color: #D4A84B !important;
}
.footer-links {
	display: flex;
	flex-wrap: wrap;
	gap: 1rem 1.35rem;
}
.footer-links a {
	text-decoration: none;
	font-weight: 500;
	color: rgba(232, 238, 248, 0.78);
}
.footer-links a:hover { color: #D4A84B; }
.footer-copy {
	margin: 0.5rem 0 0;
	font-size: 0.85rem;
	color: rgba(232, 238, 248, 0.5);
}

/* Reveal */
.reveal {
	opacity: 0;
	transform: translateY(22px);
	transition: opacity 0.8s var(--ease), transform 0.8s var(--ease);
}
.reveal.is-in {
	opacity: 1;
	transform: none;
}

@media (max-width: 900px) {
	.demo-stage { grid-template-columns: 1fr; }
	.demo-side { grid-template-columns: 1fr 1fr; grid-template-rows: none; }
	.channels { grid-template-columns: 1fr; }
	.buy-panel { grid-template-columns: 1fr; }
}
@media (max-width: 640px) {
	.topnav {
		gap: 0.5rem;
		padding: 0.85rem 0.75rem;
		flex-wrap: nowrap;
		min-height: 3.7rem;
		box-sizing: border-box;
	}
	.topnav-brand {
		min-width: 0;
		flex: 0 0 auto;
		gap: 0.45rem;
		font-size: 0.92rem;
	}
	.topnav-brand img {
		width: 40px;
		height: 40px;
		flex-shrink: 0;
	}
	/* Evita "Atlas of Lege…" cortado — só o ícone; altura da barra mantida */
	.topnav-brand span { display: none; }
	.topnav-links {
		flex: 0 0 auto;
		gap: 0.45rem;
	}
	.topnav-links a:not(.topnav-buy) { display: none; }
	.topnav-buy {
		padding: 0.45rem 0.7rem;
		font-size: 0.85rem;
		flex-shrink: 0;
	}
	.lang-switch {
		flex-shrink: 0;
	}
	.lang-switch select {
		max-width: none;
		width: auto;
		font-size: 0.8rem;
		padding: 0.35rem 1.55rem 0.35rem 0.5rem;
	}
	/* Arte limpa; CTAs + preço abaixo da imagem */
	.hero-veil { display: none; }
	.hero-studio-logo,
	.hero-lead { display: none; }
	.hero-content {
		position: relative;
		left: auto;
		right: auto;
		bottom: auto;
		z-index: 1;
		width: 100%;
		max-width: none;
		margin: 0;
		padding: 1.15rem 1.1rem 1.35rem;
		background: #0a241c;
		color: var(--white);
	}
	.hero-cta {
		margin-top: 0;
		flex-direction: column;
		align-items: stretch;
		gap: 0.65rem;
	}
	.hero-cta .btn { width: 100%; }
	.hero-cta .price-note {
		text-align: center;
		width: 100%;
		margin-top: 0.15rem;
		color: rgba(255, 255, 255, 0.78);
	}
	.demo-side { grid-template-columns: 1fr; }
}
