/* Binance-style home (user index page) */

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

:root {
	--bn-bg: #0b0e11;
	--bn-header: #181a20;
	--bn-card: #1e2329;
	--bn-card-2: #2b3139;
	--bn-line: #2b3139;
	--bn-line-2: #474d57;
	--bn-text: #eaecef;
	--bn-muted: #848e9c;
	--bn-yellow: #fcd535;
	--bn-yellow-2: #f0b90b;
	--bn-green: #0ecb81;
	--bn-red: #f6465d;
	--bn-font: "Inter", "Noto Sans KR", "Pretendard", system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
}

html {
	color-scheme: dark;
}

body.bn-home {
	margin: 0;
	background: var(--bn-bg);
	color: var(--bn-text);
	font-family: var(--bn-font);
	line-height: 1.5;
	-webkit-font-smoothing: antialiased;
}

body.bn-home img {
	max-width: 100%;
	display: block;
}

body.bn-home a {
	color: inherit;
	text-decoration: none;
}

.bn-page {
	width: 100%;
	max-width: 1248px;
	margin: 0 auto;
	padding: 0 24px 64px;
}

/* ---------- buttons ---------- */

.bn-btn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	height: 48px;
	padding: 0 24px;
	border-radius: 8px;
	border: 1px solid transparent;
	font-family: var(--bn-font);
	font-size: 16px;
	font-weight: 600;
	cursor: pointer;
	white-space: nowrap;
	transition: background 0.15s ease, border-color 0.15s ease, color 0.15s ease;
}

body.bn-home .bn-btn-primary {
	background: var(--bn-yellow);
	border-color: var(--bn-yellow);
	color: #181a20;
}

body.bn-home .bn-btn-primary:hover {
	background: var(--bn-yellow-2);
	border-color: var(--bn-yellow-2);
	color: #181a20;
}

body.bn-home .bn-btn-ghost {
	background: transparent;
	border-color: var(--bn-yellow);
	color: var(--bn-yellow);
}

body.bn-home .bn-btn-ghost:hover {
	background: var(--bn-yellow);
	color: #181a20;
}

.bn-btn-lg {
	height: 56px;
	padding: 0 40px;
	font-size: 18px;
}

.bn-link {
	color: var(--bn-yellow);
	font-weight: 600;
}

.bn-link:hover {
	color: var(--bn-yellow-2);
}

/* ---------- hero ---------- */

.bn-hero {
	display: grid;
	grid-template-columns: minmax(0, 1.1fr) minmax(360px, 460px);
	gap: 48px;
	align-items: center;
	padding: 72px 0 56px;
}

.bn-hero-copy h1 {
	margin: 0 0 20px;
	font-size: clamp(36px, 4.6vw, 60px);
	line-height: 1.12;
	font-weight: 800;
	letter-spacing: -0.03em;
	color: var(--bn-text);
	word-break: keep-all;
}

.bn-hero-accent {
	color: var(--bn-yellow);
}

.bn-hero-sub {
	margin: 0 0 28px;
	max-width: 560px;
	font-size: 18px;
	color: var(--bn-muted);
	word-break: keep-all;
}

.bn-signup {
	display: flex;
	gap: 12px;
	max-width: 520px;
}

.bn-signup input {
	flex: 1 1 auto;
	min-width: 0;
	height: 48px;
	padding: 0 16px;
	border: 1px solid var(--bn-line-2);
	border-radius: 8px;
	background: var(--bn-header);
	color: var(--bn-text);
	font-family: var(--bn-font);
	font-size: 16px;
	outline: none;
	transition: border-color 0.15s ease;
}

.bn-signup input::placeholder {
	color: var(--bn-muted);
}

.bn-signup input:focus {
	border-color: var(--bn-yellow);
}

.bn-hero-actions {
	display: flex;
	align-items: center;
	gap: 12px;
	margin-top: 16px;
	color: var(--bn-muted);
	font-size: 14px;
}

.bn-hero-actions-user .bn-btn {
	min-width: 150px;
}

.bn-hero-points {
	display: flex;
	flex-wrap: wrap;
	gap: 10px 24px;
	margin: 32px 0 0;
	padding: 0;
	list-style: none;
	color: var(--bn-muted);
	font-size: 14px;
}

.bn-hero-points li {
	display: inline-flex;
	align-items: center;
	gap: 8px;
}

.bn-hero-points li::before {
	content: "";
	width: 6px;
	height: 6px;
	border-radius: 50%;
	background: var(--bn-yellow);
}

/* market card */

.bn-market-card {
	padding: 16px 0 8px;
	border: 1px solid var(--bn-line);
	border-radius: 16px;
	background: var(--bn-card);
}

.bn-market-tabs {
	display: flex;
	gap: 4px;
	padding: 0 16px 12px;
	border-bottom: 1px solid var(--bn-line);
}

.bn-market-tab {
	height: 32px;
	padding: 0 12px;
	border: none;
	border-radius: 6px;
	background: transparent;
	color: var(--bn-muted);
	font-family: var(--bn-font);
	font-size: 14px;
	font-weight: 600;
	cursor: pointer;
}

.bn-market-tab:hover {
	color: var(--bn-text);
}

.bn-market-tab.is-active {
	background: var(--bn-card-2);
	color: var(--bn-text);
}

.bn-market-head,
.bn-market-row {
	display: grid;
	grid-template-columns: minmax(0, 1.5fr) minmax(0, 1fr) minmax(0, 0.8fr);
	align-items: center;
	gap: 12px;
	padding: 0 16px;
}

.bn-market-head {
	height: 36px;
	color: var(--bn-muted);
	font-size: 12px;
}

.bn-market-head span:not(:first-child),
.bn-market-price,
.bn-market-change {
	text-align: right;
}

.bn-market-row {
	height: 60px;
	border-radius: 0;
	transition: background 0.12s ease;
}

.bn-market-row:hover,
.bn-market-row.is-active {
	background: var(--bn-card-2);
}

.bn-market-row[hidden] {
	display: none;
}

.bn-market-name {
	display: flex;
	align-items: center;
	gap: 12px;
	min-width: 0;
}

.bn-market-text {
	display: grid;
	min-width: 0;
	line-height: 1.2;
}

.bn-market-text strong {
	font-size: 15px;
	font-weight: 600;
	color: var(--bn-text);
}

.bn-market-text small {
	color: var(--bn-muted);
	font-size: 12px;
}

.bn-market-price {
	font-size: 15px;
	font-weight: 600;
	font-variant-numeric: tabular-nums;
	color: var(--bn-text);
}

.bn-market-change {
	font-size: 14px;
	font-weight: 600;
	font-variant-numeric: tabular-nums;
	color: var(--bn-muted);
}

.bn-market-change.is-up,
#marketChartChange.is-up {
	color: var(--bn-green);
}

.bn-market-change.is-down,
#marketChartChange.is-down {
	color: var(--bn-red);
}

/* ---------- chart section ---------- */

.bn-chart-section {
	padding: 8px 0 24px;
}

.bn-chart-panel {
	padding: 20px 24px;
	border: 1px solid var(--bn-line);
	border-radius: 16px;
	background: var(--bn-card);
}

.bn-chart-head {
	display: flex;
	align-items: flex-end;
	justify-content: space-between;
	gap: 16px;
	flex-wrap: wrap;
}

.bn-chart-title {
	display: flex;
	align-items: baseline;
	gap: 10px;
}

.bn-chart-title h2 {
	margin: 0;
	font-size: 24px;
	font-weight: 700;
	letter-spacing: -0.02em;
}

.bn-chart-symbol {
	padding: 2px 8px;
	border-radius: 4px;
	background: var(--bn-card-2);
	color: var(--bn-muted);
	font-size: 12px;
	font-weight: 700;
}

.bn-chart-meta {
	display: flex;
	align-items: baseline;
	gap: 12px;
}

.bn-chart-meta strong {
	font-size: 28px;
	font-weight: 700;
	font-variant-numeric: tabular-nums;
}

.bn-chart-meta span {
	font-size: 15px;
	font-weight: 600;
	color: var(--bn-muted);
}

.bn-chart-tabs {
	display: flex;
	flex-wrap: wrap;
	gap: 8px;
	margin: 16px 0;
}

.bn-chip {
	height: 32px;
	padding: 0 14px;
	border: 1px solid var(--bn-line-2);
	border-radius: 6px;
	background: transparent;
	color: var(--bn-muted);
	font-family: var(--bn-font);
	font-size: 13px;
	font-weight: 600;
	cursor: pointer;
	transition: background 0.12s ease, color 0.12s ease, border-color 0.12s ease;
}

.bn-chip:hover {
	color: var(--bn-text);
	border-color: var(--bn-text);
}

.bn-chip.is-active {
	background: var(--bn-yellow);
	border-color: var(--bn-yellow);
	color: #181a20;
}

.bn-chart-box {
	position: relative;
	height: 300px;
	border: 1px solid var(--bn-line);
	border-radius: 8px;
	background: var(--bn-bg);
	overflow: hidden;
}

.bn-chart-box svg {
	width: 100%;
	height: 100%;
	display: block;
}

.bn-chart-line {
	fill: none;
	stroke: var(--bn-yellow);
	stroke-width: 2;
	stroke-linejoin: round;
	stroke-linecap: round;
}

.bn-chart-area {
	fill: url(#marketChartFill);
}

#marketLineChart.is-up .bn-chart-line { stroke: var(--bn-green); }
#marketLineChart.is-down .bn-chart-line { stroke: var(--bn-red); }

.bn-chart-empty {
	position: absolute;
	inset: 0;
	display: flex;
	align-items: center;
	justify-content: center;
	color: var(--bn-muted);
	font-size: 14px;
}

.bn-chart-empty[hidden] {
	display: none;
}

.bn-chart-foot {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 12px;
	margin-top: 12px;
	color: var(--bn-muted);
	font-size: 13px;
}

/* ---------- generic section ---------- */

.bn-section {
	padding: 56px 0;
	border-top: 1px solid var(--bn-line);
}

.bn-section-head {
	margin-bottom: 32px;
}

.bn-section-head h2 {
	margin: 0 0 8px;
	font-size: clamp(26px, 3vw, 36px);
	font-weight: 800;
	letter-spacing: -0.03em;
	word-break: keep-all;
}

.bn-section-head p {
	margin: 0;
	color: var(--bn-muted);
	font-size: 16px;
}

/* steps */

.bn-steps-grid {
	display: grid;
	grid-template-columns: repeat(3, minmax(0, 1fr));
	gap: 16px;
}

.bn-step {
	position: relative;
	padding: 28px 24px 24px;
	border: 1px solid var(--bn-line);
	border-radius: 16px;
	background: var(--bn-card);
}

.bn-step-num {
	position: absolute;
	top: 20px;
	right: 20px;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 32px;
	height: 32px;
	border-radius: 50%;
	background: var(--bn-yellow);
	color: #181a20;
	font-size: 14px;
	font-weight: 800;
}

.bn-step img {
	width: 72px;
	height: 72px;
	object-fit: contain;
	margin-bottom: 20px;
}

.bn-step h3 {
	margin: 0 0 8px;
	font-size: 20px;
	font-weight: 700;
}

.bn-step p {
	margin: 0;
	color: var(--bn-muted);
	font-size: 14px;
	word-break: keep-all;
}

/* faq */

.bn-faq-list {
	display: grid;
	gap: 8px;
}

.bn-faq-list details {
	border: 1px solid var(--bn-line);
	border-radius: 12px;
	background: var(--bn-card);
	overflow: hidden;
}

.bn-faq-list summary {
	display: flex;
	align-items: center;
	gap: 14px;
	padding: 18px 20px;
	list-style: none;
	cursor: pointer;
	font-size: 16px;
	font-weight: 600;
	color: var(--bn-text);
}

.bn-faq-list summary::-webkit-details-marker {
	display: none;
}

.bn-faq-list summary::after {
	content: "+";
	margin-left: auto;
	color: var(--bn-muted);
	font-size: 22px;
	font-weight: 400;
	line-height: 1;
}

.bn-faq-list details[open] summary::after {
	content: "−";
}

.bn-faq-num {
	flex: 0 0 auto;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 28px;
	height: 28px;
	border-radius: 6px;
	background: var(--bn-card-2);
	color: var(--bn-yellow);
	font-size: 13px;
	font-weight: 800;
}

.bn-faq-list details p {
	margin: 0;
	padding: 0 20px 20px 62px;
	color: var(--bn-muted);
	font-size: 15px;
	word-break: keep-all;
}

/* final cta */

.bn-cta {
	display: grid;
	justify-items: center;
	gap: 24px;
	padding: 72px 24px;
	border-top: 1px solid var(--bn-line);
	text-align: center;
}

.bn-cta h2 {
	margin: 0;
	font-size: clamp(28px, 3.4vw, 40px);
	font-weight: 800;
	letter-spacing: -0.03em;
	word-break: keep-all;
}

/* ---------- responsive ---------- */

@media (max-width: 1024px) {
	.bn-hero {
		grid-template-columns: 1fr;
		gap: 32px;
		padding: 48px 0 32px;
	}

	.bn-market-card {
		max-width: 100%;
	}

}

@media (max-width: 720px) {
	.bn-page {
		padding: 0 16px 48px;
	}

	.bn-hero {
		padding: 32px 0 24px;
	}

	.bn-hero-sub {
		font-size: 16px;
	}

	.bn-signup {
		flex-direction: column;
	}

	.bn-signup .bn-btn,
	.bn-hero-actions-user .bn-btn {
		width: 100%;
	}

	.bn-hero-actions-user {
		flex-direction: column;
		align-items: stretch;
	}

	.bn-market-head,
	.bn-market-row {
		grid-template-columns: minmax(0, 1.6fr) minmax(0, 1fr) minmax(0, 0.9fr);
		gap: 8px;
		padding: 0 12px;
	}

	.bn-market-text strong {
		font-size: 14px;
	}

	.bn-market-price,
	.bn-market-change {
		font-size: 13px;
	}

	.bn-chart-panel {
		padding: 16px;
	}

	.bn-chart-box {
		height: 220px;
	}

	.bn-chart-meta strong {
		font-size: 22px;
	}

	.bn-section {
		padding: 40px 0;
	}

	.bn-steps-grid {
		grid-template-columns: 1fr;
	}

	.bn-faq-list details p {
		padding-left: 20px;
	}

	.bn-cta {
		padding: 48px 16px;
	}

	.bn-btn-lg {
		width: 100%;
	}
}
