/* styles.css — Prototipo TokenMigrar */

:root {
	--red: #ec0000;
	--red-dark: #cc0000;
	--red-light-bg: #fff5f5;
	--text: #242424;
	--text-muted: #6e6e6e;
	--bg: #ffffff;
	--bg-alt: #f7f7f7;
	--border: #e5e5e5;
	--success: #1a7f37;
	--radius: 10px;
	--shadow-sm: 0 1px 3px rgba(0, 0, 0, 0.06);
	--shadow-md: 0 4px 16px rgba(0, 0, 0, 0.08);
	--shadow-lg: 0 10px 30px rgba(0, 0, 0, 0.12);
	--maxw: 1200px;
}

* {
	box-sizing: border-box;
}

html {
	scroll-behavior: smooth;
}

body {
	margin: 0;
	color: var(--text);
	background: var(--bg);
	font-family:
		-apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial,
		"Noto Sans", sans-serif, "Apple Color Emoji", "Segoe UI Emoji";
	line-height: 1.55;
	-webkit-font-smoothing: antialiased;
}

.container {
	max-width: var(--maxw);
	margin: 0 auto;
	padding: 0 24px;
}

/* ---------- Header ---------- */
.site-header {
	position: sticky;
	top: 0;
	z-index: 10;
	background: var(--bg);
	border-bottom: 1px solid var(--border);
}
.header-inner {
	display: flex;
	align-items: center;
	justify-content: space-between;
	height: 64px;
}
.logo {
	display: inline-flex;
	align-items: center;
	gap: 10px;
	text-decoration: none;
	color: var(--text);
	font-weight: 700;
	font-size: 1.1rem;
}
.logo-mark {
	width: 16px;
	height: 16px;
	border-radius: 4px;
	background: var(--red);
}
.site-nav {
	display: flex;
	gap: 24px;
}
.site-nav a {
	color: var(--text-muted);
	text-decoration: none;
	font-size: 0.95rem;
	transition: color 0.2s;
}
.site-nav a:hover {
	color: var(--red);
}

/* ---------- Section base ---------- */
.section {
	padding: 72px 0;
}
.section-alt {
	background: var(--bg-alt);
}
.section-title {
	margin: 0 0 8px;
	font-size: 1.8rem;
	font-weight: 700;
}
.section-subtitle {
	margin: 0 0 32px;
	color: var(--text-muted);
}

/* ---------- Hero ---------- */
.hero {
	background: var(--red-light-bg);
	text-align: center;
}
.hero-inner {
	max-width: 720px;
}
.hero-title {
	font-size: 2.5rem;
	font-weight: 800;
	letter-spacing: -0.02em;
	margin: 0 0 16px;
}
.hero-subtitle {
	font-size: 1.15rem;
	color: var(--text-muted);
	margin: 0 0 28px;
}

/* ---------- Buttons ---------- */
.btn {
	display: inline-block;
	padding: 12px 24px;
	border: none;
	border-radius: var(--radius);
	font-size: 1rem;
	font-weight: 600;
	text-decoration: none;
	cursor: pointer;
	transition: background 0.2s, transform 0.1s;
}
.btn-primary {
	background: var(--red);
	color: #fff;
}
.btn-primary:hover {
	background: var(--red-dark);
}
.btn-primary:active {
	transform: translateY(1px);
}

/* ---------- Calculator ---------- */
.calculator {
	max-width: 600px;
	margin: 0 auto;
	background: var(--bg);
	padding: 28px;
	border-radius: var(--radius);
	box-shadow: var(--shadow-md);
	border: 1px solid var(--border);
}
.field {
	display: flex;
	flex-direction: column;
	margin-bottom: 16px;
}
.field-row {
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: 16px;
}
.field label {
	font-weight: 600;
	margin-bottom: 6px;
	font-size: 0.92rem;
}
.field input,
.field select {
	padding: 11px 12px;
	font-size: 1rem;
	border: 1px solid var(--border);
	border-radius: 8px;
	background: #fff;
	color: var(--text);
	font-family: inherit;
	width: 100%;
	transition: border-color 0.15s, box-shadow 0.15s;
}
.field input:focus,
.field select:focus {
	outline: none;
	border-color: var(--red);
	box-shadow: 0 0 0 3px rgba(236, 0, 0, 0.12);
}
.field input.is-invalid {
	border-color: var(--red);
}
.field input.is-warning {
	border-color: #ffcc33;
}
.field-msg {
	margin-top: 6px;
	font-size: 0.85rem;
	min-height: 1em;
}
.field-msg.error {
	color: var(--red);
}
.field-msg.warning {
	color: #b07a00;
}

/* ---------- Result box ---------- */
.placeholder {
	text-align: center;
	color: var(--text-muted);
	font-size: 0.95rem;
	padding: 18px 0;
}
.result {
	margin-top: 16px;
	padding: 22px;
	border-radius: 8px;
	background: var(--bg-alt);
	border: 1px solid var(--border);
	animation: fadeIn 0.15s ease-out;
}
.result-disclaimer {
	display: block;
	margin-bottom: 14px;
	color: var(--text-muted);
	font-size: 0.8rem;
}
.result-rows {
	margin: 0;
}
.result-row {
	display: flex;
	justify-content: space-between;
	padding: 8px 0;
	border-bottom: 1px solid var(--border);
}
.result-row:last-child {
	border-bottom: none;
}
.result-row dt {
	color: var(--text-muted);
}
.result-row dd {
	margin: 0;
	font-weight: 600;
}
.result-row-highlight dt {
	color: var(--text);
	font-weight: 700;
}
.result-row-highlight dd {
	color: var(--success);
	font-size: 1.15rem;
}

/* ---------- Tokens grid ---------- */
.tokens-grid {
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
	gap: 1.5rem;
}
.token-card {
	padding: 22px;
	background: var(--bg);
	border: 1px solid var(--border);
	border-radius: var(--radius);
	box-shadow: var(--shadow-sm);
	transition: transform 0.15s, box-shadow 0.15s;
}
.token-card:hover {
	transform: translateY(-2px);
	box-shadow: var(--shadow-md);
}
.token-symbol {
	display: inline-block;
	font-weight: 800;
	font-size: 1.1rem;
	margin-bottom: 4px;
}
.token-name {
	color: var(--text-muted);
	font-size: 0.92rem;
	margin: 0 0 12px;
}
.token-meta {
	display: flex;
	justify-content: space-between;
	align-items: center;
	margin-bottom: 10px;
	font-size: 0.88rem;
}
.token-meta-label {
	color: var(--text-muted);
}
.token-price {
	font-weight: 700;
}
.token-badge {
	display: inline-block;
	background: var(--red-light-bg);
	color: var(--red);
	font-size: 0.72rem;
	font-weight: 600;
	padding: 3px 8px;
	border-radius: 999px;
}

/* ---------- Footer ---------- */
.site-footer {
	background: var(--text);
	color: #fff;
	padding: 32px 0;
	font-size: 0.88rem;
}
.footer-notice {
	margin: 0 0 6px;
	font-weight: 600;
}
.footer-copy {
	margin: 0;
	color: #b8b8b8;
}

/* ---------- Responsive ---------- */
@media (max-width: 768px) {
	.section {
		padding: 56px 0;
	}
	.section-title {
		font-size: 1.6rem;
	}
	.field-row {
		grid-template-columns: 1fr;
		gap: 0;
	}
	.header-inner {
		height: 56px;
	}
	.site-nav {
		gap: 16px;
	}
}

@media (max-width: 480px) {
	.hero-title {
		font-size: 2rem;
	}
	.hero-subtitle {
		font-size: 1rem;
	}
	.tokens-grid {
		grid-template-columns: 1fr;
	}
	.site-nav a {
		font-size: 0.85rem;
	}
	.calculator {
		padding: 20px;
	}
	.container {
		padding: 0 16px;
	}
}

/* Focus visible for keyboard nav */
a:focus-visible,
input:focus-visible,
select:focus-visible {
	outline: 2px solid var(--red);
	outline-offset: 2px;
}

@keyframes fadeIn {
	from {
		opacity: 0;
	}
	to {
		opacity: 1;
	}
}
