/* =====================================================================
 *  $DIAMONDS — DIAMOND-HANDS LOYALTY PROGRAM
 *  Deep black + diamond white + iced blue + prism color hints.
 *  Cormorant Garamond display, jet-black background, 3D diamond canvas
 *  rotating in the hero, glass-card tier ladder, leaderboard table.
 * ===================================================================== */

:root {
	--bg: #040408;
	--bg-2: #08080e;
	--bg-3: #0e0e16;
	--glass: rgba(255,255,255,0.04);
	--glass-2: rgba(255,255,255,0.08);
	--line: rgba(255,255,255,0.10);
	--line-hot: rgba(255,255,255,0.18);
	--white: #ffffff;
	--ice: #c9e4ff;
	--ice-dim: #8fb2d8;
	--ice-mute: #4d6a8e;
	--prism-1: #ff8aff;
	--prism-2: #8a8aff;
	--prism-3: #8affff;
	--prism-4: #c9e4ff;
	--gold: #f4d480;
	--container: 1320px;

	--fnt-display: 'Cormorant Garamond', Georgia, serif;
	--fnt-body: 'Inter', system-ui, sans-serif;
	--fnt-mono: 'JetBrains Mono', monospace;
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html, body {
	min-height: 100%;
	background: var(--bg);
	color: var(--white);
	font-family: var(--fnt-body);
	font-weight: 400;
	font-size: 15px;
	line-height: 1.55;
	-webkit-font-smoothing: antialiased;
	overflow-x: hidden;
}

a { color: inherit; text-decoration: none; }
button { font: inherit; cursor: pointer; background: none; border: 0; color: inherit; }

/* background canvas */
#stage {
	position: fixed;
	inset: 0;
	z-index: 0;
	pointer-events: none;
	opacity: 0.55;
}

.container { max-width: var(--container); margin: 0 auto; padding: 0 24px; position: relative; z-index: 2; }
b, strong { font-weight: 600; color: var(--ice); }
em { font-style: italic; color: var(--ice); }

/* --- BUTTONS --- */
.btn {
	display: inline-flex;
	align-items: center;
	gap: 10px;
	padding: 13px 24px;
	background: var(--white);
	color: var(--bg);
	font-family: var(--fnt-body);
	font-weight: 700;
	font-size: 14px;
	letter-spacing: 0.14em;
	text-transform: uppercase;
	border: 1px solid var(--white);
	transition: background 0.15s, transform 0.06s;
}
.btn:hover { background: var(--ice); border-color: var(--ice); }
.btn:active { transform: translateY(1px); }
.btn--ghost {
	background: transparent;
	color: var(--ice);
	border-color: var(--ice);
}
.btn--ghost:hover { background: var(--ice); color: var(--bg); }
.btn--gem {
	background: linear-gradient(135deg, var(--prism-1), var(--prism-2), var(--prism-3), var(--prism-4));
	background-size: 300% 300%;
	color: var(--bg);
	border-color: transparent;
	animation: shimmer 6s ease infinite;
}
@keyframes shimmer { 50% { background-position: 100% 100%; } }

/* --- NAV --- */
.nav {
	position: sticky;
	top: 0;
	z-index: 50;
	background: rgba(4,4,8,0.7);
	border-bottom: 1px solid var(--line);
	backdrop-filter: blur(12px);
}
.nav__inner {
	display: flex;
	align-items: center;
	justify-content: space-between;
	height: 76px;
	gap: 24px;
}
.nav__brand {
	display: flex;
	align-items: center;
	gap: 14px;
}
.nav__diamond {
	animation: spinSlow 16s linear infinite;
	filter: drop-shadow(0 0 6px rgba(201,228,255,0.4));
}
@keyframes spinSlow { to { transform: rotate(360deg); } }
.nav__name {
	font-family: var(--fnt-display);
	font-weight: 600;
	font-size: 28px;
	letter-spacing: 0.14em;
	line-height: 1;
}
.nav__sub {
	font-family: var(--fnt-mono);
	font-size: 10px;
	color: var(--ice-dim);
	letter-spacing: 0.18em;
	margin-top: 3px;
}
.nav__links { display: flex; gap: 26px; }
.nav__links a {
	font-family: var(--fnt-display);
	font-size: 17px;
	font-style: italic;
	color: var(--ice-dim);
}
.nav__links a:hover { color: var(--white); }
.nav__right { display: flex; align-items: center; gap: 14px; }
.nav__chip {
	font-family: var(--fnt-mono);
	font-size: 10px;
	color: var(--ice);
	letter-spacing: 0.18em;
	padding: 6px 12px;
	border: 1px solid var(--line-hot);
}
@media (max-width: 800px) { .nav__links, .nav__chip { display: none; } }

/* --- HERO --- */
.hero {
	padding: 100px 0 120px;
	border-bottom: 1px solid var(--line);
	position: relative;
}
.hero__inner {
	display: grid;
	grid-template-columns: 1.1fr 1fr;
	gap: 56px;
	align-items: center;
}
@media (max-width: 1000px) { .hero__inner { grid-template-columns: 1fr; gap: 40px; } }
.hero__pre {
	font-family: var(--fnt-mono);
	font-size: 11px;
	color: var(--ice);
	letter-spacing: 0.26em;
	margin-bottom: 28px;
}
.hero__title {
	font-family: var(--fnt-display);
	font-weight: 600;
	font-size: clamp(64px, 9vw, 144px);
	line-height: 0.92;
	margin: 0 0 28px;
	letter-spacing: -0.025em;
}
.hero__title em {
	font-style: italic;
	color: transparent;
	background: linear-gradient(120deg, var(--prism-4), var(--prism-1));
	-webkit-background-clip: text;
	background-clip: text;
}
.hero__sub {
	font-family: var(--fnt-display);
	font-style: italic;
	font-size: 22px;
	color: var(--ice-dim);
	max-width: 540px;
	margin: 0 0 36px;
	line-height: 1.5;
}
.hero__sub b { color: var(--white); font-style: normal; font-weight: 500; }
.hero__cta { display: flex; gap: 14px; flex-wrap: wrap; margin-bottom: 28px; }

.hero__ca {
	display: inline-flex;
	align-items: center;
	gap: 14px;
	padding: 12px 18px;
	background: var(--glass);
	border: 1px solid var(--line-hot);
	font-family: var(--fnt-mono);
	cursor: pointer;
	max-width: fit-content;
	backdrop-filter: blur(6px);
}
.hero__ca:hover { border-color: var(--ice); }
.hero__ca-tag { font-size: 10px; color: var(--ice); letter-spacing: 0.18em; }
.hero__ca-val { font-size: 13px; word-break: break-all; color: var(--white); }
.hero__ca-copy { font-size: 11px; color: var(--ice-dim); padding-left: 12px; border-left: 1px solid var(--line-hot); letter-spacing: 0.14em; }

/* --- 3D ROTATOR --- */
.rotator {
	position: relative;
	aspect-ratio: 1;
	max-width: 520px;
	margin: 0 auto;
	background:
		radial-gradient(circle at 50% 50%, rgba(201,228,255,0.12), transparent 60%);
	border: 1px solid var(--line-hot);
	overflow: hidden;
}
.rotator canvas {
	width: 100%;
	height: 100%;
	display: block;
}
.rotator__overlay {
	position: absolute;
	bottom: 24px;
	left: 24px;
	font-family: var(--fnt-mono);
}
.rotator__label {
	font-size: 10px;
	color: var(--ice);
	letter-spacing: 0.22em;
	margin-bottom: 10px;
}
.rotator__name {
	font-family: var(--fnt-display);
	font-size: 36px;
	color: var(--white);
	line-height: 1;
	margin-bottom: 4px;
	letter-spacing: 0.04em;
}
.rotator__rate {
	font-size: 13px;
	color: var(--ice);
	letter-spacing: 0.08em;
}

/* --- SECTIONS --- */
.section { padding: 100px 0; border-bottom: 1px solid var(--line); }
.section--dark { background: rgba(0,0,0,0.4); }
.kicker {
	font-family: var(--fnt-mono);
	font-size: 11px;
	color: var(--ice);
	letter-spacing: 0.24em;
	margin-bottom: 16px;
}
.title {
	font-family: var(--fnt-display);
	font-weight: 600;
	font-size: clamp(48px, 6.5vw, 92px);
	line-height: 1;
	margin: 0 0 24px;
	letter-spacing: -0.02em;
}
.title em { color: var(--ice); font-style: italic; font-weight: 400; }
.lead {
	font-family: var(--fnt-display);
	font-style: italic;
	font-size: 21px;
	color: var(--ice-dim);
	max-width: 720px;
	margin: 0 0 56px;
	line-height: 1.5;
}
.lead b { color: var(--white); font-weight: 500; font-style: normal; }

/* --- LADDER --- */
.ladder {
	display: grid;
	grid-template-columns: repeat(3, 1fr);
	gap: 16px;
}
@media (max-width: 900px) { .ladder { grid-template-columns: 1fr 1fr; } }
@media (max-width: 600px) { .ladder { grid-template-columns: 1fr; } }
.tier {
	background: var(--glass);
	border: 1px solid var(--line-hot);
	padding: 28px 24px;
	position: relative;
	transition: transform 0.12s, border-color 0.12s;
	backdrop-filter: blur(8px);
}
.tier:hover { transform: translateY(-3px); border-color: var(--white); }
.tier::before {
	content: '◇';
	position: absolute;
	top: 18px;
	right: 18px;
	font-size: 28px;
	color: var(--ice);
}
.tier__rank {
	font-family: var(--fnt-mono);
	font-size: 10px;
	color: var(--ice);
	letter-spacing: 0.24em;
	margin-bottom: 12px;
}
.tier__name {
	font-family: var(--fnt-display);
	font-weight: 600;
	font-size: 36px;
	color: var(--white);
	letter-spacing: 0.06em;
	line-height: 1;
	margin-bottom: 4px;
}
.tier__hold {
	font-family: var(--fnt-mono);
	font-size: 11px;
	color: var(--ice-dim);
	letter-spacing: 0.1em;
	margin-bottom: 16px;
}
.tier__mult {
	font-family: var(--fnt-display);
	font-weight: 500;
	font-size: 44px;
	color: transparent;
	background: linear-gradient(120deg, var(--prism-4), var(--prism-1));
	-webkit-background-clip: text;
	background-clip: text;
	font-variant-numeric: tabular-nums;
	line-height: 1;
	margin-bottom: 14px;
}
.tier__copy {
	font-family: var(--fnt-display);
	font-style: italic;
	font-size: 15px;
	color: var(--ice-dim);
	line-height: 1.5;
}

/* Tier-specific accent gradients */
.tier[data-tier="0"] { border-color: rgba(140,140,140,0.3); }
.tier[data-tier="1"] { border-color: rgba(180,200,220,0.3); }
.tier[data-tier="2"] { border-color: rgba(201,228,255,0.4); }
.tier[data-tier="3"] { border-color: rgba(138,138,255,0.4); background: rgba(138,138,255,0.04); }
.tier[data-tier="4"] { border-color: rgba(255,138,255,0.4); background: rgba(255,138,255,0.04); }
.tier[data-tier="5"] {
	border-color: var(--gold);
	background: linear-gradient(135deg, rgba(244,212,128,0.08), rgba(255,138,255,0.06));
}
.tier[data-tier="5"]::before { color: var(--gold); }
.tier[data-tier="5"] .tier__mult { background: linear-gradient(120deg, var(--gold), var(--prism-1)); -webkit-background-clip: text; background-clip: text; }

/* --- LEADERBOARD --- */
.board {
	background: var(--glass);
	border: 1px solid var(--line-hot);
	backdrop-filter: blur(8px);
	overflow: hidden;
}
.board__head {
	display: grid;
	grid-template-columns: 50px 1.4fr 1.2fr 80px 1fr 80px;
	gap: 16px;
	padding: 14px 24px;
	background: rgba(255,255,255,0.04);
	border-bottom: 1px solid var(--line-hot);
	font-family: var(--fnt-mono);
	font-size: 10px;
	letter-spacing: 0.2em;
	color: var(--ice);
}
.board__rows { display: flex; flex-direction: column; }
.row {
	display: grid;
	grid-template-columns: 50px 1.4fr 1.2fr 80px 1fr 80px;
	gap: 16px;
	padding: 16px 24px;
	border-bottom: 1px solid var(--line);
	align-items: baseline;
	transition: background 0.1s;
}
.row:hover { background: rgba(255,255,255,0.03); }
.row:last-child { border-bottom: 0; }
.row__rank {
	font-family: var(--fnt-display);
	font-weight: 600;
	font-size: 22px;
	color: var(--ice);
}
.row__wallet {
	font-family: var(--fnt-mono);
	font-size: 13px;
	color: var(--white);
}
.row__since {
	font-family: var(--fnt-mono);
	font-size: 12px;
	color: var(--ice-dim);
}
.row__days {
	font-family: var(--fnt-display);
	font-weight: 500;
	font-size: 22px;
	color: var(--white);
	font-variant-numeric: tabular-nums;
}
.row__tier {
	font-family: var(--fnt-display);
	font-weight: 500;
	font-size: 17px;
	color: var(--ice);
	letter-spacing: 0.04em;
}
.row__mult {
	font-family: var(--fnt-display);
	font-weight: 500;
	font-size: 20px;
	color: transparent;
	background: linear-gradient(120deg, var(--prism-4), var(--prism-1));
	-webkit-background-clip: text;
	background-clip: text;
	font-variant-numeric: tabular-nums;
}
@media (max-width: 900px) {
	.board__head, .row { grid-template-columns: 30px 1fr auto 60px; }
	.board__head > :nth-child(3), .board__head > :nth-child(5),
	.row > :nth-child(3), .row > :nth-child(5) { display: none; }
}

.board__live {
	margin-top: 24px;
	display: flex;
	align-items: center;
	gap: 10px;
	font-family: var(--fnt-mono);
	font-size: 11px;
	color: var(--ice-dim);
	letter-spacing: 0.12em;
}
.board__live-dot {
	width: 8px; height: 8px;
	background: var(--ice);
	border-radius: 50%;
	box-shadow: 0 0 8px var(--ice);
	animation: pulse 1.4s infinite;
}
@keyframes pulse { 50% { opacity: 0.3; } }

/* --- MECHANISM CARDS --- */
.mech-grid {
	display: grid;
	grid-template-columns: repeat(4, 1fr);
	gap: 16px;
	margin-bottom: 56px;
}
@media (max-width: 900px) { .mech-grid { grid-template-columns: 1fr 1fr; } }
.mech-card {
	background: var(--glass);
	border: 1px solid var(--line-hot);
	padding: 28px 22px;
	backdrop-filter: blur(8px);
}
.mech-card__n {
	font-family: var(--fnt-mono);
	font-size: 12px;
	color: var(--ice);
	letter-spacing: 0.22em;
	margin-bottom: 14px;
}
.mech-card__h {
	font-family: var(--fnt-display);
	font-weight: 600;
	font-size: 20px;
	color: var(--white);
	line-height: 1.2;
	margin-bottom: 10px;
}
.mech-card p {
	font-family: var(--fnt-body);
	font-size: 14px;
	color: var(--ice-dim);
	line-height: 1.55;
}

.rule-box {
	background: linear-gradient(135deg, rgba(244,212,128,0.06), rgba(255,138,255,0.05));
	border: 2px solid var(--gold);
	padding: 60px 32px;
	text-align: center;
}
.rule-box__h {
	font-family: var(--fnt-mono);
	font-size: 12px;
	color: var(--gold);
	letter-spacing: 0.28em;
	margin-bottom: 18px;
}
.rule-box__big {
	font-family: var(--fnt-display);
	font-weight: 700;
	font-size: clamp(64px, 9vw, 132px);
	line-height: 1;
	letter-spacing: -0.02em;
	margin-bottom: 14px;
	background: linear-gradient(120deg, var(--gold), var(--prism-1), var(--prism-3));
	-webkit-background-clip: text;
	background-clip: text;
	color: transparent;
}
.rule-box__sub {
	font-family: var(--fnt-display);
	font-style: italic;
	font-size: 22px;
	color: var(--ice-dim);
}

/* --- FOOTER --- */
.foot {
	background: var(--bg);
	padding: 56px 0 28px;
	border-top: 1px solid var(--line-hot);
	position: relative;
	z-index: 2;
}
.foot__inner {
	display: flex;
	justify-content: space-between;
	gap: 48px;
	flex-wrap: wrap;
	margin-bottom: 28px;
}
.foot__brand {
	font-family: var(--fnt-display);
	font-weight: 600;
	font-size: 30px;
	color: var(--white);
	letter-spacing: 0.14em;
	margin-bottom: 14px;
}
.foot__disclaim {
	font-family: var(--fnt-body);
	font-size: 12px;
	color: var(--ice-mute);
	line-height: 1.6;
	max-width: 620px;
}
.foot__links {
	display: flex;
	flex-direction: column;
	gap: 10px;
	font-family: var(--fnt-display);
	font-size: 17px;
	font-style: italic;
}
.foot__link { color: var(--ice-dim); }
.foot__link:hover { color: var(--white); }
.foot__rule {
	border-top: 1px solid var(--line);
	padding-top: 18px;
	text-align: center;
	font-family: var(--fnt-mono);
	font-size: 10px;
	color: var(--ice-mute);
	letter-spacing: 0.22em;
}
