:root {
	--home-navy: #071432;
	--home-navy-2: #0d1b43;
	--home-blue: #108df5;
	--home-soft: #f4f7fc;
	--home-muted: #68758f;
	--home-line: #e5ebf4;
	--home-text: #111827;
	--home-container: 1200px;
}

* {
	box-sizing: border-box;
}

body {
	background: #fff;
	color: var(--home-text);
}

a {
	color: inherit;
	text-decoration: none;
}

.index-page {
	overflow: hidden;
	background: #fff;
}

.home-container {
	width: min(var(--home-container), calc(100% - 48px));
	margin: 0 auto;
}

.home-hero {
	position: relative;
	min-height: 600px;
	background:
		linear-gradient(90deg, rgba(8, 11, 18, 0.82) 0%, rgba(10, 13, 20, 0.68) 42%, rgba(12, 15, 22, 0.46) 100%),
		linear-gradient(180deg, rgba(8, 10, 16, 0.34), rgba(8, 10, 16, 0.18)),
		url('/images/background.jpg') center center / cover no-repeat;
	color: #fff;
}

.home-hero__grid {
	position: relative;
	min-height: 600px;
	display: grid;
	grid-template-columns: minmax(0, 1fr) 360px;
	align-items: center;
	gap: 60px;
	padding: 80px 0;
	align-items: start;
}

.home-hero__copy {
	max-width: 580px;
}

.home-kicker {
	display: inline-flex;
	align-items: center;
	height: 24px;
	padding: 0 14px;
	border-radius: 999px;
	background: rgba(16, 141, 245, 0.18);
	color: #59b6ff;
	font-size: 13px;
	font-weight: 800;
}

.home-hero h1 {
	margin: 26px 0 0;
	color: #fff;
	font-size: 50px;
	line-height: 1.25;
	letter-spacing: 0;
	font-weight: 700;
}

.home-hero h1 strong {
	color: #1395ff;
	font-weight: 900;
}

.home-hero p {
	max-width: 580px;
	margin: 19px 0 0;
	color: rgba(255, 255, 255, 0.74);
	font-size: 17px;
	line-height: 1.7;
}

.home-actions {
	display: flex;
	gap: 14px;
	margin-top: 40px;
}

.home-btn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-width: 104px;
	height: 45px;
	padding: 0 24px;
	border-radius: 7px;
	border: 1px solid transparent;
	font-size: 16px;
	font-weight: 700;
	line-height: 1;
}

.home-actions .home-btn--primary {
	min-width: 151px;
}

.home-actions .home-btn--secondary {
	min-width: 143px;
	font-weight: 600;
}

.home-btn--primary {
	background: var(--home-blue);
	color: #fff;
	box-shadow: 0 10px 22px rgba(16, 141, 245, 0.25);
}

.home-btn--secondary {
	background: rgba(255, 255, 255, 0.09);
	border-color: rgba(255, 255, 255, 0.24);
	color: #fff;
}

.home-btn--white {
	height: 44px;
	min-width: 174px;
	background: #fff;
	color: var(--home-blue);
	border-color: #fff;
}

.market-widget {
	position: absolute;
	top: 140px;
	right: 0;
	transform: none;
	z-index: 2;
	width: 320px;
	justify-self: end;
	border: 1px solid rgba(255, 255, 255, 0.12);
	border-radius: 14px;
	background: rgba(10, 16, 24, 0.68);
	backdrop-filter: blur(12px);
	box-shadow: 0 24px 60px rgba(0, 0, 0, 0.34);
	min-height: 281px;
	padding: 28px 24px;
	font-size: 14px;
}

.market-widget__head {
	display: flex;
	align-items: center;
	gap: 7px;
	color: rgba(255, 255, 255, 0.82);
	font-size: 15px;
	font-weight: 700;
}

.dot {
	width: 7px;
	height: 7px;
	border-radius: 50%;
}

.dot--red { background: #ff5f57; }
.dot--yellow { background: #ffbd2e; }
.dot--green { background: #28c840; }

.market-list {
	display: grid;
	gap: 24px;
	list-style: none;
	margin: 24px 0 0;
	padding: 0;
}

.market-list li,
.asset-table td:first-child {
	display: grid;
	grid-template-columns: 34px minmax(0, 1fr) auto;
	align-items: center;
	gap: 12px;
}

.market-list strong,
.asset-table strong {
	display: block;
	font-size: 15px;
	font-weight: 700;
}

.market-list strong {
	color: #fff;
}

.market-list small,
.asset-table small {
	display: block;
	margin-top: 2px;
	color: #9eacc0;
	font-size: 12px;
	font-style: normal;
	font-weight: 700;
}

.market-list em {
	color: #f7fbff;
	font-size: 15px;
	font-style: normal;
	font-weight: 700;
	text-align: right;
}

.coin {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 30px;
	height: 30px;
	border-radius: 50%;
	color: #fff;
	font-size: 12px;
	font-weight: 900;
}

.coin--btc { background: #f7931a; }
.coin--gold { background: #ffd31f; color: #121826; }
.coin--oil { background: #38404e; }

.up { color: #f04458 !important; }
.down { color: #126ed8 !important; }
.buy { color: #16b753 !important; font-weight: 800; }
.sell { color: #e94952 !important; font-weight: 800; }

.stats-band {
	height: 139px;
	background: #f7f9fd;
	border-bottom: 1px solid var(--home-line);
}

.stats-grid {
	height: 100%;
	display: grid;
	grid-template-columns: repeat(4, minmax(0, 1fr));
	padding: 40px 0;
	box-sizing: border-box;
}

.stats-grid div {
	display: grid;
	gap: 2px;
	text-align: center;
}

.stats-grid div + div {
	border-left: 1px solid #dce5f0;
}

.stats-grid strong {
	color: var(--home-blue);
	font-size: 36px;
	line-height: 1;
	font-weight: 700;
}

.stats-grid span {
	color: #61708a;
	font-size: 14px;
	font-weight: 500;
}

.live-section {
	background: #f4f7fc;
	padding: 60px 0;
}

.live-grid {
	display: grid;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	gap: 24px;
}

.home-card {
	border: 1px solid var(--home-line);
	border-radius: 8px;
	background: #fff;
	box-shadow: 0 14px 34px rgba(15, 23, 42, 0.04);
}

.live-card {
	height: 360px;
	overflow: hidden;
}

.live-card h2 {
	margin: 0;
	padding: 17px 18px 12px;
	color: #14213d;
	font-size: 17px;
	line-height: 19px;
	font-weight: 700;
}

.table-wrap {
	overflow-x: auto;
}

.live-card .table-wrap {
	max-height: 305px;
	overflow: auto;
	cursor: grab;
	user-select: none;
	scrollbar-width: thin;
}

.live-card .table-wrap.is-dragging {
	cursor: grabbing;
}

.live-card .table-wrap::-webkit-scrollbar {
	width: 8px;
	height: 8px;
}

.live-card .table-wrap::-webkit-scrollbar-thumb {
	background: #c7d2e4;
	border-radius: 999px;
}

.live-card thead th {
	position: sticky;
	top: 0;
	z-index: 1;
	background: #f7f9fd;
}

table {
	width: 100%;
	border-collapse: collapse;
}

thead {
	background: #f7f9fd;
}

th,
td {
	padding: 10px 14px;
	border-top: 1px solid #edf1f7;
	color: #4a5870;
	font-size: 14px;
	line-height: 1;
	text-align: left;
	white-space: nowrap;
}

th {
	color: #91a0b7;
	font-size: 13px;
	font-weight: 600;
}

td {
	font-weight: 400;
}

.asset-section {
	min-height: 457px;
	padding: 72px 0;
	background: #fff;
}

.section-head {
	margin-bottom: 30px;
	text-align: center;
}

.section-head--row {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 20px;
	margin-bottom: 24px;
	text-align: left;
}

.section-head h2 {
	margin: 0;
	color: #121a2f;
	font-size: 26px;
	line-height: 1;
	font-weight: 700;
}

.section-head p {
	margin: 10px 0 0;
	color: #72809a;
	font-size: 15px;
	font-weight: 400;
}

.steps-section .section-head h2,
.why-section .section-head h2 {
	font-size: 34px;
	line-height: 1;
}

.steps-section .section-head,
.why-section .section-head {
	margin-bottom: 71px;
}

.section-head a {
	color: var(--home-blue);
	font-size: 14px;
	font-weight: 900;
}

.asset-table-card {
	overflow: hidden;
}

.asset-table th,
.asset-table td {
	padding: 16px 20px;
}

.asset-table th {
	font-size: 14px;
	font-weight: 500;
}

.asset-table td {
	font-size: 15px;
}

.asset-table td:first-child {
	grid-template-columns: 34px minmax(150px, 1fr);
}

.trade-btn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 50px;
	height: 24px;
	border-radius: 5px;
	background: var(--home-blue);
	color: #fff;
	font-size: 12px;
	font-weight: 900;
}

.steps-section {
	min-height: 616px;
	padding: 80px 0;
	background: #f1f5fb;
}

.steps-grid {
	display: grid;
	grid-template-columns: 240px 60px 240px 60px 240px;
	justify-content: center;
	align-items: center;
	gap: 0;
}

.step-card {
	display: block;
	min-height: 285px;
	padding: 40px 24px;
	border: 1px solid #e8edf5;
	border-radius: 8px;
	background: #fff;
	color: inherit;
	text-decoration: none;
	text-align: center;
	box-shadow: 0 10px 28px rgba(15, 23, 42, 0.035);
	transition: transform 0.18s ease, box-shadow 0.18s ease, border-color 0.18s ease;
}

.step-card:hover {
	transform: translateY(-3px);
	border-color: rgba(16, 141, 245, 0.32);
	box-shadow: 0 16px 36px rgba(15, 23, 42, 0.08);
}

.step-card span {
	display: block;
	color: var(--home-blue);
	font-size: 12px;
	font-weight: 900;
}

.step-icon {
	display: flex;
	align-items: center;
	justify-content: center;
	height: 42px;
	margin: 16px 0 10px;
	font-size: 34px;
	line-height: 1;
}

.step-icon img {
	width: 34px;
	height: 34px;
	object-fit: contain;
}

.step-card h3 {
	margin: 0;
	color: #1d2740;
	font-size: 19px;
	line-height: 21px;
	font-weight: 700;
}

.step-card p {
	margin: 10px 0 0;
	width: 100%;
	color: #75839b;
	font-size: 15px;
	line-height: 1.6;
	letter-spacing: -0.01em;
	font-weight: 400;
	white-space: nowrap;
}

.steps-grid i {
	color: var(--home-blue);
	font-size: 26px;
	font-style: normal;
	text-align: center;
}

.center-action {
	display: flex;
	justify-content: center;
	margin-top: 36px;
}

.why-section {
	min-height: 620px;
	padding: 96px 0 100px;
	background: #ffffff;
	border-bottom: 1px solid #e4ebf4;
}

.section-head--light h2 {
	color: #0f1728;
}

.section-head--light p {
	color: #58657c;
}

.why-grid {
	display: grid;
	grid-template-columns: repeat(4, minmax(0, 1fr));
	gap: 28px;
	margin-top: 72px;
}

.why-grid article {
	min-height: 258px;
	padding: 44px 34px 38px;
	border: 1px solid #e3eaf3;
	border-radius: 18px;
	background: #ffffff;
	box-shadow: 0 18px 40px rgba(15, 23, 42, 0.06);
	text-align: center;
}

.why-grid span {
	display: flex;
	align-items: center;
	justify-content: center;
	width: 68px;
	height: 68px;
	margin: 0 auto;
	border-radius: 20px;
	background: #eef5ff;
	font-size: 33px;
	line-height: 1;
}

.why-grid h3 {
	margin: 22px 0 0;
	color: #0f1728;
	font-size: 19px;
	line-height: 1.2;
	font-weight: 700;
}

.why-grid p {
	margin: 16px 0 0;
	color: #5d6980;
	font-size: 15px;
	line-height: 1.75;
	font-weight: 400;
}

.cta-section {
	padding: 0;
	background: #ffffff;
}

.cta-section picture {
	display: block;
}

.cta-banner-image {
	display: block;
	width: 100%;
	height: auto;
	border-radius: 0;
	object-fit: cover;
	box-shadow: none;
}

.qf-footer {
	margin-top: 0 !important;
}

@media (max-width: 900px) {
	.home-container {
		width: min(var(--home-container), calc(100% - 36px));
	}

	.home-hero__grid {
		grid-template-columns: minmax(0, 1fr);
		justify-content: start;
		gap: 28px;
		min-height: auto;
		padding: 64px 0 56px;
	}

	.home-hero__copy {
		max-width: 640px;
	}

	.home-hero h1 {
		font-size: 44px;
		line-height: 1.22;
	}

	.market-widget {
		display: none;
	}

	.market-list {
		gap: 16px;
	}

	.market-list li {
		grid-template-columns: 30px minmax(0, 1fr) auto;
		gap: 10px;
	}

	.why-grid {
		grid-template-columns: repeat(2, minmax(0, 1fr));
	}

	.steps-section {
		min-height: 851px;
	}

	.steps-grid {
		display: flex;
		flex-wrap: wrap;
		justify-content: center;
		align-items: center;
		width: 760px;
		max-width: 100%;
		margin: 0 auto;
		gap: 0;
	}

	.step-card {
		flex: 0 0 240px;
	}

	.steps-grid i {
		flex: 0 0 60px;
		font-size: 24px;
	}
}

@media (max-width: 760px) {
	.stats-band {
		height: auto;
	}

	.home-container {
		width: min(var(--home-container), calc(100% - 28px));
	}

	.home-hero__grid {
		padding: 48px 0 54px;
	}

	.market-widget {
		max-width: none;
		margin-top: 4px;
		padding: 22px 18px;
	}

	.home-hero h1 {
		font-size: 40px;
		line-height: 1.22;
	}

	.home-hero p {
		font-size: 15px;
		line-height: 1.65;
	}

	.stats-grid,
	.live-grid,
	.why-grid {
		grid-template-columns: 1fr;
	}

	.stats-grid {
		height: auto;
		gap: 0;
		padding: 0;
	}

	.stats-grid div {
		padding: 24px 0;
	}

	.stats-grid div + div {
		border-left: 0;
		border-top: 1px solid #dce5f0;
	}

	.steps-grid {
		display: grid;
		grid-template-columns: minmax(0, 1fr);
		width: 100%;
		max-width: 360px;
		margin: 0 auto;
		gap: 12px;
	}

	.step-card {
		width: 100%;
		padding: 34px 20px;
	}

	.step-card p {
		white-space: normal;
	}

	.steps-grid i {
		transform: rotate(90deg);
		justify-self: center;
	}

	/* Mobile: keep asset card fully visible without horizontal drag */
	.asset-table-card .table-wrap {
		overflow-x: visible;
	}

	.asset-table {
		table-layout: fixed;
	}

	.asset-table th,
	.asset-table td {
		padding: 12px 10px;
		white-space: nowrap;
	}

	.asset-table th:nth-child(1),
	.asset-table td:nth-child(1) {
		width: 40%;
	}

	.asset-table th:nth-child(2),
	.asset-table td:nth-child(2) {
		width: 28%;
	}

	.asset-table th:nth-child(3),
	.asset-table td:nth-child(3) {
		width: 22%;
	}

	.asset-table th:nth-child(5),
	.asset-table td:nth-child(5) {
		width: 52px;
		text-align: center;
		padding-left: 4px;
		padding-right: 4px;
	}

	.asset-table th:nth-child(4),
	.asset-table td:nth-child(4) {
		display: none;
	}

	.asset-table td:first-child {
		grid-template-columns: 24px minmax(0, 1fr);
		gap: 8px;
	}

	.asset-table td:first-child strong,
	.asset-table td:first-child small {
		white-space: nowrap;
	}

	.asset-table strong {
		font-size: 13px;
	}

	.asset-table small {
		font-size: 11px;
	}

	.asset-table td {
		font-size: 13px;
	}

	.asset-table .trade-btn {
		width: 34px;
		min-width: 34px;
		height: 24px;
		font-size: 11px;
	}
}

@media (max-width: 560px) {
	.home-hero {
		min-height: auto;
	}

	.home-hero h1 {
		font-size: 34px;
	}

	.home-kicker {
		font-size: 12px;
	}

	.home-actions,
	.section-head--row {
		align-items: stretch;
		flex-direction: column;
	}

	.home-btn {
		width: 100%;
	}

	.market-list li {
		grid-template-columns: 30px minmax(0, 1fr);
	}

	.market-list em {
		grid-column: 2;
		text-align: left;
	}

	.section-head h2 {
		font-size: 30px;
	}

	.table-wrap {
		overflow-x: auto;
	}
}

.index-page .steps-section .section-head h2,
.index-page .why-section .section-head h2 {
	font-size: 34px;
	line-height: 1.08;
}

.index-page .step-card h3,
.index-page .why-grid h3 {
	font-size: 19px;
	line-height: 1.15;
}

.index-page .step-card p,
.index-page .why-grid p {
	font-size: 15px;
	line-height: 1.7;
}

