:root {
	--bg: #0d1719;
	--bg-elev: #122227;
	--text: #e7f3f6;
	--muted: #a9c4ca;
	--brand: #27464c; /* primary */
	--accent: #d9a173; /* accent */
	--chip: rgba(217, 161, 115, 0.16);
	--ring: rgba(217, 161, 115, 0.4);
	--shadow: 0 10px 30px rgba(0,0,0,0.35);
	--radius: 16px;
}

* { box-sizing: border-box; }
html, body { height: 100%; }
body {
	margin: 0;
	background:
		/* subtle warm overlay in accent tone */
		linear-gradient(180deg, rgba(217,161,115,0.035), rgba(217,161,115,0.035)) fixed,
		/* deep teal Wyldfire base gradient */
		linear-gradient(135deg, #14120b 0%, #142427 50%, #14120b 100%) fixed;
	background-repeat: no-repeat, no-repeat;
	background-attachment: fixed, fixed;
	color: var(--text);
	font-family: 'Poppins', system-ui, -apple-system, Segoe UI, Roboto, Ubuntu, 'Helvetica Neue', Arial, 'Noto Sans', 'Apple Color Emoji', 'Segoe UI Emoji';
	letter-spacing: 0.2px;
	line-height: 1.6;
}

img { max-width: 100%; display: block; }
a { color: var(--accent); text-decoration: none; }

.container { width: min(1180px, 92%); margin: 0 auto; }

/* Header */
.site-header {
	position: sticky; top: 0; z-index: 50;
	background: rgba(13, 23, 25, 0.7);
	backdrop-filter: saturate(140%) blur(10px);
	border-bottom: 1px solid rgba(255,255,255,0.06);
}
.header-inner { display: flex; align-items: center; justify-content: space-between; padding: 14px 0; }
.brand { display: flex; align-items: center; gap: 10px; font-weight: 700; letter-spacing: 1px; }
.brand-text { font-size: 20px; color: var(--text); }
.brand-mark { filter: drop-shadow(0 2px 6px rgba(217,161,115,0.4)); }

.nav { display: flex; align-items: center; gap: 18px; }
.nav-link { color: var(--muted); padding: 8px 10px; border-radius: 10px; }
.nav-link:hover { color: var(--text); background: rgba(255,255,255,0.04); }

.nav-toggle { display: none; background: transparent; border: 0; padding: 10px; cursor: pointer; }
.nav-toggle span { display: block; width: 24px; height: 2px; background: var(--text); margin: 5px 0; transition: transform .2s ease; }

/* Buttons */
.button { display: inline-flex; align-items: center; gap: 8px; padding: 10px 16px; border-radius: 12px; font-weight: 600; border: 1px solid transparent; transition: transform .06s ease, box-shadow .2s ease, background .2s ease, border-color .2s ease; }
.button:active { transform: translateY(1px); }
.button--primary { background: var(--brand); color: var(--text); border-color: rgba(255,255,255,0.08); box-shadow: var(--shadow); }
.button--primary:hover { filter: brightness(1.1); }
.button--accent { background: var(--accent); color: #0d1719; box-shadow: var(--shadow); }
.button--accent:hover { filter: brightness(1.05); }
.button--ghost { background: transparent; border-color: rgba(255,255,255,0.14); color: var(--text); }
.button--ghost:hover { background: rgba(255,255,255,0.06); }

/* Buy button styling */
.button--buy {
	position: relative; overflow: hidden;
	background: linear-gradient(135deg, color-mix(in srgb, var(--accent) 15%, #ffffff 5%) 0%, color-mix(in srgb, var(--brand) 100%, #ffffff 0%) 100%);
	color: #dee6e7; border: 1px solid rgba(255,255,255,0.08);
	box-shadow: 0 10px 24px rgba(0,0,0,0.35), inset 0 1px 0 rgba(209, 21, 21, 0.15);
}
.button--buy::after {
	content: ""; position: absolute; inset: 0; pointer-events: none;
	background: linear-gradient(120deg, rgba(255,255,255,0.0) 5%, rgba(255,255,255,0.25) 50%, rgba(255,255,255,0.0) 100%);
	transform: translateX(-120%);
	transition: transform 2s ease;
	opacity: 0.4;
}
.button--buy:hover::after { transform: translateX(120%); }
.button--buy:hover { filter: brightness(1.06); }

/* Reduced motion support */
@media (prefers-reduced-motion: reduce) {
	.card:hover .card-media img { transform: none; }
	.card::before, .tier-card::before { display: none; }
	.ant-ribbon-text::after { animation: none; }
	.card[data-tier="Diamond"], .tier-card[data-tier="Diamond"] { animation: none; }
	.card[data-tier="Gold"], .tier-card[data-tier="Gold"] { animation: none; }
}

/* Hero */
.hero { position: relative; overflow: hidden; }
.hero-inner { padding: 84px 0 64px; display: grid; gap: 14px; }
.hero-title { font-size: clamp(34px, 4.5vw, 64px); line-height: 1.05; margin: 0; letter-spacing: 1.2px; }
.hero-subtitle { margin: 8px 0 18px; color: var(--muted); max-width: 720px; }
.hero-cta { display: flex; gap: 12px; flex-wrap: wrap; }
.hero-art { display: none; }

/* Catalogue Controls */
.catalogue { padding: 40px 0 70px; }
.controls { display: grid; grid-template-columns: 1fr; gap: 14px; align-items: center; }
.search-group { display: flex; align-items: center; gap: 10px; background: var(--bg-elev); border: 1px solid rgba(255,255,255,0.06); border-radius: 14px; padding: 10px 12px; box-shadow: var(--shadow); }
.search-group input { flex: 1; background: transparent; border: 0; outline: none; color: var(--text); font-size: 15px; }
.icon { color: var(--muted); }

.selects { display: flex; gap: 10px; flex-wrap: wrap; }
.select { display: grid; gap: 6px; color: var(--muted); font-size: 13px; }
.select select { appearance: none; background: var(--bg-elev); color: var(--text); border: 1px solid rgba(255,255,255,0.08); padding: 10px 12px; border-radius: 10px; box-shadow: var(--shadow); }

.chips { display: flex; gap: 10px; flex-wrap: wrap; margin: 14px 0 8px; }
.chip { background: var(--chip); color: var(--accent); border: 1px solid rgba(217,161,115,0.22); padding: 8px 12px; border-radius: 999px; cursor: pointer; transition: background .2s ease, box-shadow .2s ease; }
.chip:hover { background: rgba(217,161,115,0.22); box-shadow: 0 0 0 4px var(--ring); }
.chip.is-active { background: var(--accent); color: #0d1719; border-color: transparent; }
.result-count { color: var(--muted); margin: 6px 0 0; font-size: 13px; }

/* Grid */
.grid { display: grid; grid-template-columns: repeat(1, minmax(0, 1fr)); gap: 16px; margin-top: 12px; }
@media (min-width: 640px) { .grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (min-width: 960px) { .grid { grid-template-columns: repeat(3, minmax(0, 1fr)); } }

.card { background: linear-gradient(180deg, rgba(255,255,255,0.04), rgba(255,255,255,0.02)); border: 1px solid rgba(255,255,255,0.08); border-radius: var(--radius); overflow: hidden; position: relative; isolation: isolate; box-shadow: var(--shadow); transition: box-shadow .3s ease; display: flex; flex-direction: column; }
.tier-card { position: relative; isolation: isolate; border-radius: var(--radius); border: 1px solid rgba(255,255,255,0.08); transition: box-shadow .3s ease; }
.card::after, .tier-card::after { content: ""; position: absolute; inset: 0; border-radius: inherit; padding: 1px; background: linear-gradient(120deg, transparent, rgba(255,255,255,0.06), transparent); -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0); mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0); -webkit-mask-composite: xor; mask-composite: exclude; opacity: 0; transition: opacity .3s ease; pointer-events: none; }
.card:hover::after, .tier-card:hover::after { opacity: 1; }
.card-media { position: relative; overflow: hidden; }
.card-media img { width: 100%; height: 220px; object-fit: cover; filter: saturate(1.05) contrast(1.05); transition: transform .6s cubic-bezier(.2,.6,.2,1), filter .3s ease; }
.card-media img.is-loading { filter: blur(10px) saturate(1) contrast(1); transform: scale(1.02); }
.card:hover .card-media img { transform: scale(1.06); }
.tier-card .ant-card-cover { position: relative; overflow: hidden; }
.ant-cover-wrap { position: relative; }

/* Full-card subtle sweep */
.card::before, .tier-card::before {
	content: "";
	position: absolute; inset: 0; pointer-events: none; z-index: 1;
	background: linear-gradient(85deg, rgba(255,255,255,0.0) 0%, color-mix(in srgb, var(--sweep, rgba(255,255,255,0.6)) 33%, transparent) 75%, rgba(255,255,255,0.0) 100%);
	transform: translateX(-120%);
	transition: transform 1.5s ease-in-out, opacity 0.5s ease;
	opacity: 0;
}
.card:hover::before, .tier-card:hover::before { 
	transform: translateX(120%); 
	opacity: .065
}
.tier-card .ant-card-cover { position: relative; overflow: hidden; }
.tier-label { display: inline-flex; align-items: center; gap: 6px; }
.icon-tier { margin-right: 6px; }

/* Ribbon shimmer (apply to Antd ribbon text) */
.ant-ribbon-text { position: relative; overflow: hidden; }
.ant-ribbon-text::after {
	content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, rgba(255,255,255,0), rgba(255,255,255,0.35), rgba(255,255,255,0));
	transform: translateX(-120%);
	animation: shimmer 2.4s linear infinite;
}
@keyframes shimmer { 0% { transform: translateX(-120%); } 100% { transform: translateX(120%); } }

/* Micro glow pulse for premium tiers */
@keyframes tierPulse { 0% { box-shadow: 0 0 0 0 rgba(122, 215, 255, 0.08); } 70% { box-shadow: 0 0 0 10px rgba(122, 215, 255, 0); } 100% { box-shadow: 0 0 0 0 rgba(122, 215, 255, 0); } }
.card[data-tier="Diamond"] { animation: tierPulse 3.2s ease-out infinite; }
.tier-card[data-tier="Diamond"] { animation: tierPulse 3.2s ease-out infinite; }
@keyframes tierPulseGold { 0% { box-shadow: 0 0 0 0 rgba(255, 215, 0, 0.08); } 70% { box-shadow: 0 0 0 10px rgba(255, 215, 0, 0); } 100% { box-shadow: 0 0 0 0 rgba(255, 215, 0, 0); } }
.card[data-tier="Gold"] { animation: tierPulseGold 3.6s ease-out infinite; }
.tier-card[data-tier="Gold"] { animation: tierPulseGold 3.6s ease-out infinite; }

/* Scroll reveal */
.reveal { opacity: 0; transform: translateY(12px); transition: opacity .5s ease, transform .5s ease; }
.reveal.is-visible { opacity: 1; transform: translateY(0); }

/* Tier particles (very light) */
.card[data-tier="Diamond"] .card-media::before { content: ""; position: absolute; inset: 0; background: radial-gradient(6px 6px at 20% 30%, rgba(122,215,255,0.35), transparent 60%), radial-gradient(4px 4px at 70% 60%, rgba(122,215,255,0.20), transparent 60%), radial-gradient(5px 5px at 40% 80%, rgba(122,215,255,0.18), transparent 60%); pointer-events: none; filter: blur(0.2px); opacity: .6; animation: drift 6s ease-in-out infinite alternate; }
.tier-card[data-tier="Diamond"] .ant-card-cover::before { content: ""; position: absolute; inset: 0; background: radial-gradient(6px 6px at 20% 30%, rgba(122,215,255,0.35), transparent 60%), radial-gradient(4px 4px at 70% 60%, rgba(122,215,255,0.20), transparent 60%), radial-gradient(5px 5px at 40% 80%, rgba(122,215,255,0.18), transparent 60%); pointer-events: none; filter: blur(0.2px); opacity: .0; animation: drift 6s ease-in-out infinite alternate; border-top-left-radius: var(--radius); border-top-right-radius: var(--radius); transition: opacity .3s ease; }
.tier-card[data-tier="Diamond"]:hover .ant-card-cover::before { opacity: .7; }
@keyframes drift { 0% { transform: translateY(0px); } 100% { transform: translateY(-6px); } }
.card[data-tier="Gold"], .tier-card[data-tier="Gold"] { border-color: rgba(255, 215, 0, 0.25); }
.card[data-tier="Platinum"], .tier-card[data-tier="Platinum"] { border-color: rgba(156, 211, 211, 0.25); }
.card[data-tier="Diamond"], .tier-card[data-tier="Diamond"] { border-color: rgba(122, 215, 255, 0.25); }
.card[data-tier="Silver"], .tier-card[data-tier="Silver"] { border-color: rgba(192, 192, 192, 0.20); }
.card[data-tier="Bronze"], .tier-card[data-tier="Bronze"] { border-color: rgba(205, 127, 50, 0.20); }

/* Tier hover glows */
.card[data-tier]:hover, .tier-card[data-tier]:hover { box-shadow: 0 10px 30px rgba(0,0,0,0.35), 0 0 0 2px rgba(255,255,255,0.06) !important; }
.card[data-tier="Gold"]:hover, .tier-card[data-tier="Gold"]:hover {
	box-shadow: 0 10px 30px rgba(0,0,0,0.35), 0 0 24px rgba(255, 215, 0, 0.25), 0 0 60px rgba(255, 215, 0, 0.12) !important;
}
.card[data-tier="Platinum"]:hover, .tier-card[data-tier="Platinum"]:hover {
	box-shadow: 0 10px 30px rgba(0,0,0,0.35), 0 0 24px rgba(156, 211, 211, 0.28), 0 0 60px rgba(156, 211, 211, 0.14) !important;
}
.card[data-tier="Diamond"]:hover, .tier-card[data-tier="Diamond"]:hover {
	box-shadow: 0 10px 30px rgba(0,0,0,0.35), 0 0 28px rgba(122, 215, 255, 0.3), 0 0 72px rgba(122, 215, 255, 0.16) !important;
}
.card[data-tier="Silver"]:hover, .tier-card[data-tier="Silver"]:hover {
	box-shadow: 0 10px 30px rgba(0,0,0,0.35), 0 0 20px rgba(192, 192, 192, 0.22), 0 0 52px rgba(192, 192, 192, 0.12) !important;
}
.card[data-tier="Bronze"]:hover, .tier-card[data-tier="Bronze"]:hover {
	box-shadow: 0 10px 30px rgba(0,0,0,0.35), 0 0 20px rgba(205, 127, 50, 0.25), 0 0 52px rgba(205, 127, 50, 0.14) !important;
}
.card-badge { position: absolute; top: 12px; left: 12px; background: rgba(13,23,25,0.6); border: 1px solid rgba(255,255,255,0.1); color: var(--text); padding: 6px 10px; border-radius: 999px; font-size: 12px; backdrop-filter: blur(6px); }
.card-badge.center { left: 50%; transform: translateX(-50%); translate: 0 525%; }

.card-badge.tier { left: auto; right: 12px; }
/* compare styles removed */
.card-body { padding: 14px; display: grid; gap: 10px; }
.card-body.minimal { margin-top: auto; display: flex; justify-content: center; }
.card-title { margin: 0; font-size: 18px; letter-spacing: .4px; }
.card-meta { display: flex; gap: 10px; color: var(--muted); font-size: 13px; flex-wrap: wrap; }
.card-tags { display: flex; flex-wrap: wrap; gap: 8px; }
.card-sub { display: -webkit-box; -webkit-line-clamp: 2; line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; min-height: 2.4em; }
.tag { background: rgba(255,255,255,0.06); border: 1px solid rgba(255,255,255,0.08); color: var(--muted); padding: 4px 8px; border-radius: 999px; font-size: 12px; }
.card-actions { display: flex; gap: 8px; }

/* About */
.about { padding: 60px 0 80px; }
.about-inner { display: grid; justify-content: center; }
.about-card { width: min(820px, 100%); background: linear-gradient(180deg, rgba(39,70,76,0.3), rgba(255,255,255,0.02)); border: 1px solid rgba(255,255,255,0.08); border-radius: var(--radius); padding: 24px; box-shadow: var(--shadow); }
.about-card h2 { margin-top: 0; letter-spacing: 0.6px; }
.about-card p { color: var(--muted); }

/* Footer */
.site-footer { border-top: 1px solid rgba(255,255,255,0.06); padding: 20px 0; background: rgba(13, 23, 25, 0.6); }
.footer-inner { display: flex; justify-content: space-between; align-items: center; gap: 14px; flex-wrap: wrap; }
.footer-inner p { margin: 0; color: var(--muted); }

/* Modal */
.modal { position: fixed; inset: 0; display: none; }
.modal[aria-hidden="false"] { display: grid; place-items: center; }
.modal-backdrop { position: absolute; inset: 0; background: rgba(0,0,0,0.6); backdrop-filter: blur(3px); }
.modal-dialog { position: relative; width: min(980px, 92%); background: #0e181b; border: 1px solid rgba(255,255,255,0.08); border-radius: 16px; overflow: hidden; box-shadow: var(--shadow); display: grid; grid-template-columns: 1fr; }
@media (min-width: 900px) { .modal-dialog { grid-template-columns: 1.2fr 1fr; } }
.modal-media { background: #0a1214; }
.modal-media img { width: 100%; height: 100%; object-fit: cover; }
.modal-media img.zoomable { cursor: zoom-in; }
.modal-body { padding: 18px; display: grid; gap: 12px; }
.modal-close { position: absolute; top: 10px; right: 10px; background: rgba(13,23,25,0.7); color: var(--text); border: 1px solid rgba(255,255,255,0.12); border-radius: 999px; width: 36px; height: 36px; cursor: pointer; }
.specs { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; font-size: 14px; color: var(--muted); }
.specs div { background: rgba(255,255,255,0.04); border: 1px solid rgba(255,255,255,0.06); border-radius: 10px; padding: 8px 10px; }

/* Utilities */
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0, 0, 1px, 1px); border: 0; }

/* Lightbox */
.lightbox { position: fixed; inset: 0; display: grid; place-items: center; z-index: 100; }
.lightbox-backdrop { position: absolute; inset: 0; background: rgba(0,0,0,0.85); }
.lightbox-img { position: relative; max-width: 96vw; max-height: 92vh; border-radius: 10px; box-shadow: 0 20px 60px rgba(0,0,0,0.6); cursor: zoom-out; }

/* Responsive Nav */
@media (max-width: 860px) {
	.nav { display: none; position: absolute; top: 58px; right: 4%; background: rgba(13,23,25,0.96); border: 1px solid rgba(255,255,255,0.06); border-radius: 12px; padding: 10px; flex-direction: column; align-items: stretch; gap: 6px; width: calc(92% - 8px); }
	.nav.is-open { display: flex; }
	.nav-toggle { display: block; }
}


