/* AUREX 메인 (골드 거래소) — 테마 토글과 무관하게 항상 네이비/골드 */
body.au-home,
body.au-home:not(.dark) {
	--bm-bg: rgba(8, 13, 30, 0.96);
	--bm-fg: #f4f6fb;
	--bm-primary: #f5c04a;
	--bm-primary-hover: #e9ad2c;
	--bm-secondary: rgba(255, 255, 255, 0.08);
	--bm-secondary-hover: rgba(255, 255, 255, 0.14);
	--bm-muted: #9aa4ba;
	--bm-border: rgba(255, 255, 255, 0.06);
	--bm-card: #111b34;
	background: #070c1c !important;
	color: #f4f6fb;
	color-scheme: dark;
}
.ety-main, .id_max { display: none !important; }
.au-defs { position: absolute; width: 0; height: 0; overflow: hidden; }

/* ---------- common ---------- */
.au-page {
	font-family: "Pretendard", "Noto Sans KR", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
	color: #f4f6fb;
	overflow-x: hidden;
	letter-spacing: -0.01em;
}
.au-page *, .au-page *::before, .au-page *::after { box-sizing: border-box; }
.au-page h1, .au-page h2, .au-page h3, .au-page p, .au-page ul { margin: 0; padding: 0; }
.au-page ul { list-style: none; }
.au-wrap { width: 100%; max-width: 1248px; margin: 0 auto; padding: 0 24px; }
.au-eyebrow {
	color: #f5c04a;
	font-size: 16px;
	font-weight: 700;
	letter-spacing: 0.02em;
}
.au-btn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 10px;
	height: 46px;
	padding: 0 26px;
	border-radius: 6px;
	font-size: 15px;
	font-weight: 700;
	white-space: nowrap;
	text-decoration: none !important;
	transition: transform .2s, box-shadow .2s, background .2s, color .2s, border-color .2s;
}
.au-btn:hover { transform: translateY(-1px); }
.au-chev { font-size: 22px; line-height: 1; margin-top: -2px; font-weight: 400; }
.au-btn-gold {
	background: linear-gradient(180deg, #ffdc7c 0%, #f3b634 100%);
	color: #1c1405 !important;
	box-shadow: 0 6px 20px rgba(243, 182, 52, 0.28);
}
.au-btn-gold:hover { box-shadow: 0 8px 26px rgba(243, 182, 52, 0.42); }
.au-btn-line {
	border: 1px solid rgba(255, 255, 255, 0.75);
	background: rgba(5, 10, 25, 0.25);
	color: #fff !important;
}
.au-btn-line:hover { border-color: #f5c04a; color: #f5c04a !important; }
.au-btn-line-gold {
	border: 1px solid #f5c04a;
	background: rgba(5, 10, 25, 0.35);
	color: #f5c04a !important;
}
.au-btn-line-gold:hover { background: #f5c04a; color: #1c1405 !important; }

/* ---------- hero ---------- */
.au-hero {
	position: relative;
	min-height: clamp(400px, 33vw, 540px);
	display: flex;
	align-items: center;
	overflow: hidden;
	background: #050b1d;
}
.au-hero-bg {
	position: absolute;
	inset: 0;
	background-size: cover;
	background-position: right center;
	background-repeat: no-repeat;
}
.au-hero-shade {
	position: absolute;
	inset: 0;
	background: linear-gradient(90deg, rgba(4, 9, 26, 0.92) 0%, rgba(4, 9, 26, 0.7) 32%, rgba(4, 9, 26, 0.05) 62%, rgba(4, 9, 26, 0) 100%);
}
.au-hero-inner { position: relative; z-index: 1; padding-top: 48px; padding-bottom: 72px; }
.au-hero-slides { position: relative; min-height: 236px; }
.au-hero-slide {
	position: absolute;
	inset: 0 auto auto 0;
	width: 100%;
	opacity: 0;
	visibility: hidden;
	transform: translateY(12px);
	transition: opacity .7s ease, transform .7s ease, visibility .7s;
}
.au-hero-slide.is-active { position: relative; opacity: 1; visibility: visible; transform: none; }
.au-hero-slide h1 {
	margin-top: 14px;
	font-size: clamp(28px, 3.1vw, 44px);
	font-weight: 700;
	line-height: 1.32;
	color: #fff;
	letter-spacing: -0.03em;
}
.au-hero-en { margin-top: 14px; font-size: clamp(16px, 1.45vw, 20px); color: #eef1f8; }
.au-hero-desc { margin-top: 18px; font-size: 15px; line-height: 1.7; color: rgba(238, 241, 248, 0.88); }
.au-hero-actions { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 30px; }
/* ---------- light area: features + market ---------- */
.au-light {
	background: linear-gradient(180deg, #f1f4f9 0%, #e7ebf3 100%);
	padding: 0 0 22px;
}
.au-page .au-feats {
	display: grid;
	grid-template-columns: repeat(4, 1fr);
	padding: 46px 0 44px;
}
.au-feats li {
	display: flex;
	align-items: center;
	justify-content: center;
	gap: 18px;
	padding: 4px 16px;
	border-left: 1px solid #d3d9e5;
}
.au-feats li:first-child { border-left: 0; }
.au-feat-ico { display: inline-flex; flex-shrink: 0; width: 40px; height: 40px; }
.au-feat-ico svg { width: 100%; height: 100%; }
.au-feats strong { display: block; font-size: 16px; font-weight: 700; color: #121a2e; }
.au-feats p { margin-top: 5px; font-size: 13px; color: #5c6579; }

.au-market {
	display: grid;
	grid-template-columns: 1fr 1.06fr;
	background: linear-gradient(135deg, #0f1a36 0%, #0a1328 100%);
	border: 1px solid rgba(255, 255, 255, 0.05);
	border-radius: 6px;
	box-shadow: 0 18px 40px rgba(10, 19, 40, 0.18);
	overflow: hidden;
	scroll-margin-top: 90px;
}
.au-quote { padding: 22px 30px 18px; border-right: 1px solid rgba(255, 255, 255, 0.08); }
.au-quote-head { display: flex; align-items: center; gap: 16px; padding-bottom: 14px; border-bottom: 1px solid rgba(255, 255, 255, 0.1); }
.au-quote-head h3 { font-size: 19px; font-weight: 700; color: #fff; }
.au-quote-time { font-size: 12px; color: #8f9ab3; font-variant-numeric: tabular-nums; }
.au-live {
	display: inline-flex;
	align-items: center;
	gap: 6px;
	margin-left: auto;
	font-size: 11px;
	font-weight: 700;
	letter-spacing: 0.08em;
	color: #f5c04a;
}
.au-live i {
	width: 7px;
	height: 7px;
	border-radius: 50%;
	background: #f5c04a;
	box-shadow: 0 0 0 0 rgba(245, 192, 74, 0.6);
	animation: auPulse 1.6s infinite;
}
@keyframes auPulse {
	0% { box-shadow: 0 0 0 0 rgba(245, 192, 74, 0.6); }
	70% { box-shadow: 0 0 0 8px rgba(245, 192, 74, 0); }
	100% { box-shadow: 0 0 0 0 rgba(245, 192, 74, 0); }
}
.au-quote-list li {
	display: grid;
	grid-template-columns: 1fr auto 92px;
	align-items: center;
	gap: 12px;
	padding: 17px 0;
	border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}
.au-quote-list li:last-child { border-bottom: 0; }
.au-quote-list .lbl { font-size: 14px; color: #e9edf6; }
.au-quote-list .lbl em { font-style: normal; font-size: 12px; color: #8f9ab3; }
.au-quote-list .val { display: inline-flex; align-items: baseline; justify-content: flex-end; gap: 6px; }
.au-quote-list .val b {
	font-size: 22px;
	font-weight: 700;
	color: #fff;
	font-variant-numeric: tabular-nums;
	border-radius: 4px;
	transition: background-color .6s, color .6s;
	padding: 0 2px;
}
.au-quote-list .val small { font-size: 13px; color: #c5ccdb; }
.au-quote-list .chg { text-align: right; font-size: 13px; font-weight: 600; font-variant-numeric: tabular-nums; color: #8f9ab3; }
.au-quote-list .chg.up { color: #ff4d55; }
.au-quote-list .chg.down { color: #3d8bff; }
.au-quote-list .val b.flash-up { background: rgba(255, 77, 85, 0.22); }
.au-quote-list .val b.flash-down { background: rgba(61, 139, 255, 0.22); }

.au-chart { display: flex; flex-direction: column; padding: 18px 26px 14px; min-width: 0; }
.au-chart-head { display: flex; align-items: center; gap: 28px; }
.au-chart-title {
	position: relative;
	padding: 4px 0 10px;
	font-size: 15px;
	font-weight: 700;
	color: #f5c04a;
}
.au-chart-title::after {
	content: "";
	position: absolute;
	left: 0; right: 0; bottom: 0;
	height: 2px;
	background: #f5c04a;
}
.au-tabs { display: flex; gap: 6px; }
.au-tabs button {
	position: relative;
	padding: 4px 12px 10px;
	border: 0;
	background: none;
	color: #9aa4ba;
	font-size: 13px;
	font-weight: 500;
	cursor: pointer;
}
.au-tabs button:focus { outline: none; }
.au-tabs button:hover { color: #fff; }
.au-tabs button.is-active { color: #fff; font-weight: 700; }
.au-tabs button.is-active::after {
	content: "";
	position: absolute;
	left: 8px; right: 8px; bottom: 0;
	height: 2px;
	background: #f5c04a;
}
.au-chart-box { position: relative; flex: 1; min-height: 196px; margin-top: 10px; }
.au-chart-box svg { display: block; width: 100%; height: 100%; overflow: visible; }
.au-chart-box .ax { fill: #9aa4ba; font-size: 11px; font-family: inherit; }
.au-chart-empty { position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; font-size: 13px; color: #8f9ab3; }
.au-chart-tip {
	position: absolute;
	top: 0;
	padding: 5px 9px;
	border: 1px solid rgba(245, 192, 74, 0.4);
	border-radius: 4px;
	background: rgba(8, 13, 30, 0.92);
	color: #fff;
	font-size: 12px;
	white-space: nowrap;
	pointer-events: none;
	transform: translateX(-50%);
}
.au-chart-tip span { display: block; color: #9aa4ba; font-size: 11px; }
.au-dot-glow { animation: auGlow 1.6s ease-in-out infinite; }
@keyframes auGlow { 50% { opacity: 0.35; } }

/* ---------- why ---------- */
.au-why {
	position: relative;
	background-color: #071028;
	background-size: cover;
	background-position: center;
	padding: 52px 0 26px;
}
.au-why-inner { display: grid; grid-template-columns: 300px 1fr; align-items: center; gap: 20px; }
.au-why-text h2 {
	margin-top: 14px;
	font-size: clamp(24px, 2vw, 26px);
	font-weight: 700;
	line-height: 1.45;
	color: #fff;
	letter-spacing: -0.03em;
}
.au-why-grid { display: grid; grid-template-columns: repeat(4, 1fr); }
.au-why-grid li {
	display: flex;
	flex-direction: column;
	align-items: center;
	text-align: center;
	padding: 4px 6px;
	border-left: 1px solid rgba(255, 255, 255, 0.14);
}
.au-why-grid li:first-child { border-left: 0; }
.au-why-ico {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 52px;
	height: 52px;
	border-radius: 50%;
	background: rgba(8, 15, 36, 0.75);
	box-shadow: inset 0 0 0 1px rgba(245, 192, 74, 0.25), 0 6px 18px rgba(0, 0, 0, 0.3);
}
.au-why-ico svg { width: 28px; height: 28px; }
.au-why-en {
	margin-top: 16px;
	font-size: 12px;
	font-weight: 700;
	letter-spacing: 0.06em;
	color: #f5c04a;
	text-transform: uppercase;
}
.au-why-grid strong { margin-top: 4px; font-size: 16px; font-weight: 700; color: #fff; }
.au-why-grid p { margin-top: 10px; font-size: 13px; line-height: 1.7; color: #b9c1d3; word-break: keep-all; }
@media (min-width: 1280px) {
	.au-why-grid p { white-space: nowrap; }
}

.au-banner {
	position: relative;
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 24px;
	margin-top: 48px;
	padding: 34px 52px;
	border: 1px solid rgba(245, 192, 74, 0.7);
	border-radius: 14px;
	background-color: #0a1328;
	background-size: cover;
	background-position: center;
	overflow: hidden;
	box-shadow: 0 0 30px rgba(245, 192, 74, 0.12);
}
.au-banner::before {
	content: "";
	position: absolute;
	inset: 0;
	background: linear-gradient(90deg, rgba(6, 11, 28, 0.88) 0%, rgba(6, 11, 28, 0.5) 45%, rgba(6, 11, 28, 0.15) 70%, rgba(6, 11, 28, 0.55) 100%);
}
.au-banner > * { position: relative; }
.au-banner h3 { font-size: clamp(20px, 2vw, 27px); font-weight: 700; line-height: 1.4; color: #fff; letter-spacing: -0.03em; }
.au-banner p { margin-top: 10px; font-size: 14px; color: #d4d9e5; }

/* ---------- responsive ---------- */
@media (max-width: 1279px) {
	body.au-home .bm-header-inner { padding: 8px 16px; }
}
@media (max-width: 1100px) {
	.au-market { grid-template-columns: 1fr; }
	.au-quote { border-right: 0; border-bottom: 1px solid rgba(255, 255, 255, 0.08); }
	.au-why-inner { grid-template-columns: 1fr; gap: 36px; }
}
@media (max-width: 900px) {
	.au-page .au-feats { grid-template-columns: repeat(2, 1fr); row-gap: 22px; }
	.au-feats li { justify-content: flex-start; }
	.au-feats li:nth-child(3) { border-left: 0; }
	.au-why-grid { grid-template-columns: repeat(2, 1fr); row-gap: 30px; }
	.au-why-grid li:nth-child(3) { border-left: 0; }
	.au-banner { flex-direction: column; align-items: flex-start; padding: 28px; }
}
@media (max-width: 640px) {
	.au-wrap { padding: 0 16px; }
	.au-hero { min-height: 460px; }
	.au-hero-bg { background-position: 72% center; }
	.au-hero-shade { background: linear-gradient(180deg, rgba(4, 9, 26, 0.55) 0%, rgba(4, 9, 26, 0.88) 100%); }
	.au-hero-desc br { display: none; }
	.au-hero-actions .au-btn { flex: 1 1 auto; padding: 0 16px; }
	.au-page .au-feats { grid-template-columns: 1fr; }
	.au-feats li { border-left: 0; padding: 0; }
	.au-quote, .au-chart { padding-left: 16px; padding-right: 16px; }
	.au-quote-head { flex-wrap: wrap; gap: 6px 12px; }
	.au-quote-list li { grid-template-columns: 1fr auto; }
	.au-quote-list .chg { grid-column: 2; margin-top: -8px; }
	.au-quote-list .val b { font-size: 19px; }
	.au-chart-head { flex-direction: column; align-items: flex-start; gap: 6px; }
	.au-tabs { width: 100%; justify-content: space-between; }
	.au-tabs button { padding-left: 6px; padding-right: 6px; }
}
