/* Muslim 3D - muslim3d.io
   Palette and mood taken from the game itself: charcoal night, warm gold, sand.
   Type: Titillium Web for display (games heritage, self-hosted for GDPR), system stack for body. */

@font-face { font-family: "Titillium Web"; font-style: normal; font-weight: 400; font-display: swap; src: url("../fonts/titillium-400-latin.woff2") format("woff2"); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: "Titillium Web"; font-style: normal; font-weight: 600; font-display: swap; src: url("../fonts/titillium-600-latin.woff2") format("woff2"); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: "Titillium Web"; font-style: normal; font-weight: 700; font-display: swap; src: url("../fonts/titillium-700-latin.woff2") format("woff2"); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }

:root {
	--night: #14171e;
	--night-2: #1b1f29;
	--ink: #23262e;
	--ink-soft: #565b66;
	--gold: #f0a92e;
	--gold-deep: #c9820f;
	--sand: #f3ecdd;
	--paper: #faf7f0;
	--line: #e3ddcf;
	--disp: 'Titillium Web', 'Segoe UI', sans-serif;
	--body: system-ui, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
	--wrap: 1180px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
	margin: 0; background: var(--paper); color: var(--ink);
	font-family: var(--body); font-size: 17px; line-height: 1.65;
	-webkit-font-smoothing: antialiased;
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--gold-deep); }
.wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 22px; }
.wrap-narrow { max-width: 780px; }
.hp { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); opacity: 0; }

h1, h2, h3, .brand-word { font-family: var(--disp); }

/* ---------- top nav ---------- */
.topnav {
	position: sticky; top: 0; z-index: 60;
	display: flex; align-items: center; gap: 28px;
	padding: 0 26px; height: 58px;
	background: rgba(20,23,30,0.92); backdrop-filter: blur(8px);
	border-bottom: 1px solid rgba(240,169,46,0.18);
}
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; }
.brand-word { color: #fff; font-weight: 700; font-size: 19px; letter-spacing: .06em; }
.brand-word em { font-style: normal; color: var(--gold); }
.topnav-links { margin-left: auto; display: flex; gap: 26px; }
.topnav-links a {
	color: #d8d5cc; text-decoration: none; font-family: var(--disp); font-weight: 600;
	font-size: 15px; letter-spacing: .02em; padding: 4px 0; border-bottom: 2px solid transparent;
}
.topnav-links a:hover { color: var(--gold); }
.nav-burger { display: none; margin-left: auto; width: 42px; height: 42px; background: none; border: 0; padding: 9px; cursor: pointer; }
.nav-burger span, .nav-burger span::before, .nav-burger span::after {
	display: block; content: ""; width: 24px; height: 2px; background: #fff; border-radius: 2px; position: relative;
}
.nav-burger span::before { position: absolute; top: -7px; } .nav-burger span::after { position: absolute; top: 7px; }
@media (max-width: 860px) {
	.topnav-links {
		position: absolute; top: 58px; right: 12px; display: none;
		flex-direction: column; gap: 0; min-width: 210px;
		background: var(--night-2); border: 1px solid rgba(240,169,46,0.25); border-radius: 10px; padding: 8px 0;
	}
	.topnav-links.open { display: flex; }
	.topnav-links a { padding: 11px 20px; border-bottom: 0; }
	.nav-burger { display: block; }
}

/* ---------- hero ---------- */
.hero { position: relative; min-height: min(92vh, 900px); display: flex; align-items: flex-end; overflow: hidden; background: var(--night); }
.hero-media {
	position: absolute; inset: 0;
	background: url("../img/hero.webp") center 30% / cover no-repeat;
}
.hero-veil {
	position: absolute; inset: 0;
	background:
		linear-gradient(180deg, rgba(20,23,30,0.55) 0%, rgba(20,23,30,0.08) 30%, rgba(20,23,30,0.10) 55%, rgba(20,23,30,0.93) 100%),
		linear-gradient(100deg, rgba(20,23,30,0.82) 0%, rgba(20,23,30,0.38) 45%, rgba(20,23,30,0) 72%);
}
.hero-body { position: relative; padding: 90px 22px 58px; max-width: var(--wrap); margin: 0 auto; width: 100%; color: #fff; }
.hero-kicker {
	font-family: var(--disp); font-weight: 600; font-size: 14px; letter-spacing: .22em;
	text-transform: uppercase; color: var(--gold); margin: 0 0 10px; text-shadow: 0 1px 4px rgba(0,0,0,.8);
}
.hero h1 { font-size: clamp(40px, 6vw, 78px); font-weight: 700; line-height: 1.04; margin: 0 0 18px; text-shadow: 0 2px 6px rgba(0,0,0,.55), 0 4px 30px rgba(0,0,0,.65); }
.hero-sub { max-width: 560px; font-size: clamp(16px, 1.35vw, 19px); color: rgba(255,255,255,0.92); margin: 0 0 30px; text-shadow: 0 1px 3px rgba(0,0,0,.75), 0 2px 14px rgba(0,0,0,.65); }
.hero-ctas { display: flex; align-items: center; flex-wrap: wrap; gap: 14px; margin-bottom: 14px; }
.hero-ctas img { height: 52px; width: auto; }
.hero-note { font-size: 14px; color: rgba(255,255,255,0.75); max-width: 520px; margin: 0 0 22px; text-shadow: 0 1px 4px rgba(0,0,0,.8); }
.hero-steam-link { display: none; margin: 2px 0 18px; }
.hero-steam-link a { color: #ffd684; font-family: var(--disp); font-weight: 600; font-size: 15px; text-decoration: none; border-bottom: 1px solid rgba(255,214,132,.5); text-shadow: 0 1px 4px rgba(0,0,0,.8); }
.hero-status { font-family: var(--disp); font-weight: 600; font-size: 14px; letter-spacing: .05em; color: #f5d9a4; margin: 0; text-shadow: 0 1px 4px rgba(0,0,0,.8); }
.status-dot { display: inline-block; width: 9px; height: 9px; border-radius: 50%; background: var(--gold); margin-right: 7px; box-shadow: 0 0 8px var(--gold); }

.btn-steam {
	display: inline-flex; align-items: center; gap: 11px;
	background: var(--gold); color: #231803; text-decoration: none;
	padding: 8px 22px 8px 16px; border-radius: 6px; height: 52px;
	font-family: var(--disp); font-weight: 700; font-size: 20px; line-height: 1.05;
	transition: background .15s, transform .15s;
}
.btn-steam:hover { background: #ffc257; transform: translateY(-2px); }
.btn-steam svg { width: 30px; height: 30px; fill: #231803; }
.btn-steam small { display: block; font-size: 11px; font-weight: 600; letter-spacing: .06em; text-transform: uppercase; opacity: .75; }

.btn-gold {
	display: inline-block; border: 0; cursor: pointer;
	background: var(--gold); color: #231803;
	font-family: var(--disp); font-weight: 700; font-size: 17px;
	padding: 13px 30px; border-radius: 6px; transition: background .15s, transform .15s;
}
.btn-gold:hover { background: #ffc257; transform: translateY(-1px); }
.btn-gold:disabled { opacity: .55; cursor: default; transform: none; }

/* ---------- sections ---------- */
.section { padding: 84px 0; }
.section-dark { background: var(--night); color: #e9e6dd; }
.section-dark a { color: var(--gold); }
.section-sand { background: var(--sand); }
.sec-head { margin-bottom: 44px; }
.sec-head h2 {
	font-size: clamp(28px, 3.4vw, 44px); font-weight: 700; line-height: 1.15; margin: 0 0 8px;
	position: relative; padding-top: 16px;
}
.sec-head h2::before { content: ""; position: absolute; top: 0; left: 1px; width: 54px; height: 4px; background: var(--gold); }
.section-dark .sec-head h2 { color: #fff; }
.sec-head p { margin: 6px 0 0; color: var(--ink-soft); font-size: 18px; }
.section-dark .sec-head p { color: #b9b5a9; }

/* ---------- features ---------- */
.feat { display: grid; gap: 34px; align-items: center; margin-bottom: 58px; }
.feat:last-of-type { margin-bottom: 34px; }
.feat figure { margin: 0; border-radius: 4px; overflow: hidden; box-shadow: 0 18px 44px rgba(20,23,30,0.22); }
.feat-right { grid-template-columns: 7fr 5fr; }
.feat-left  { grid-template-columns: 5fr 7fr; }
.feat-left figure { order: 2; }
.feat-copy h3 { font-size: 26px; font-weight: 700; margin: 0 0 10px; }
.feat-copy p { margin: 0 0 12px; color: #3a3e47; }
.feat-more { font-size: 15px; color: var(--ink-soft) !important; border-left: 3px solid var(--gold); padding-left: 12px; }
@media (max-width: 860px) {
	.feat-right, .feat-left { grid-template-columns: 1fr; gap: 18px; }
	.feat-left figure { order: 0; }
}
.world-audience {
	max-width: 820px; margin: 30px 0 0; font-size: 18px; line-height: 1.7;
	padding: 20px 24px; background: #fff; border: 1px solid var(--line); border-left: 4px solid var(--gold);
}

/* ---------- numbers ---------- */
.numbers { background: var(--night-2); color: #fff; padding: 34px 0; border-top: 1px solid rgba(240,169,46,.25); border-bottom: 1px solid rgba(240,169,46,.25); }
.numbers-row { display: flex; align-items: center; justify-content: center; gap: 34px; flex-wrap: wrap; text-align: center; }
.numbers-row strong { display: block; font-family: var(--disp); font-weight: 700; font-size: 34px; color: var(--gold); line-height: 1.1; }
.numbers-row span { font-size: 14px; color: #b9b5a9; }
.num-divider { color: rgba(240,169,46,.5); font-size: 13px; }
@media (max-width: 640px) { .num-divider { display: none; } .numbers-row { gap: 22px; } }

/* ---------- media ---------- */
.trailer { position: relative; max-width: 980px; margin: 0 auto 52px; border-radius: 4px; overflow: hidden; cursor: pointer; box-shadow: 0 22px 60px rgba(0,0,0,.5); }
.trailer img { width: 100%; }
.trailer::after { content: ""; position: absolute; inset: 0; background: rgba(20,23,30,.25); transition: background .2s; }
.trailer:hover::after { background: rgba(20,23,30,.05); }
.trailer-play {
	position: absolute; top: 50%; left: 50%; transform: translate(-50%,-50%); z-index: 2;
	width: 86px; height: 86px; border-radius: 50%; border: 0; cursor: pointer;
	background: var(--gold); display: grid; place-items: center;
	box-shadow: 0 10px 34px rgba(0,0,0,.55); transition: transform .15s, background .15s;
}
.trailer-play:hover { transform: translate(-50%,-50%) scale(1.07); background: #ffc257; }
.trailer-play svg { width: 38px; height: 38px; fill: #231803; margin-left: 4px; }
.trailer-alt { text-align: center; margin: 16px 0 46px; color: #b9b5a9; font-size: 15px; }

.mosaic { display: grid; grid-template-columns: repeat(6, 1fr); gap: 8px; }
.tile { margin: 0; border-radius: 3px; overflow: hidden; cursor: zoom-in; position: relative; aspect-ratio: 16 / 9; }
.tile img { width: 100%; height: 100%; object-fit: cover; transition: transform .25s; }
.tile:hover img { transform: scale(1.05); }
.tile-video { grid-column: span 2; grid-row: span 2; cursor: pointer; }
.tile-play {
	position: absolute; top: 50%; left: 50%; transform: translate(-50%,-50%);
	width: 62px; height: 62px; border-radius: 50%; background: var(--gold);
	display: grid; place-items: center; box-shadow: 0 8px 26px rgba(0,0,0,.55); pointer-events: none;
}
.tile-play svg { width: 28px; height: 28px; fill: #231803; margin-left: 3px; }
@media (max-width: 980px) { .mosaic { grid-template-columns: repeat(4, 1fr); } }
@media (max-width: 640px) { .mosaic { grid-template-columns: repeat(2, 1fr); } }

/* ---------- get ---------- */
.get-grid { display: grid; grid-template-columns: 7fr 5fr; gap: 26px; align-items: stretch; }
.get-main, .get-side { padding: 34px 34px 38px; border-radius: 6px; }
.get-main { background: var(--night); color: #e9e6dd; }
.get-main h3 { color: #fff; }
.get-side { background: #fff; border: 1px solid var(--line); }
.get-main h3, .get-side h3 { font-size: 23px; margin: 0 0 12px; display: flex; align-items: center; gap: 12px; flex-wrap: wrap; }
.get-tag {
	font-size: 12px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase;
	background: rgba(240,169,46,.16); color: var(--gold); border: 1px solid rgba(240,169,46,.5);
	padding: 3px 10px; border-radius: 999px;
}
.get-tag-free { background: rgba(46,160,67,.1); color: #2ea043; border-color: rgba(46,160,67,.45); }
.get-main p, .get-side p { margin: 0 0 22px; }
.get-main p { color: #c9c5b9; }
.get-badges { display: flex; gap: 12px; flex-wrap: wrap; }
.get-badges img { height: 52px; width: auto; }
@media (max-width: 860px) { .get-grid { grid-template-columns: 1fr; } }

/* ---------- newsletter ---------- */
.news-wrap { text-align: left; }
.news-wrap h2 { font-size: clamp(26px, 3vw, 38px); margin: 0 0 8px; color: #fff; }
.news-wrap > p { color: #b9b5a9; margin: 0 0 24px; }
.news-row { display: flex; gap: 12px; flex-wrap: wrap; }
.news-row .in { flex: 1 1 280px; margin-bottom: 0; }

/* ---------- forms ---------- */
.in {
	display: block; width: 100%; margin-bottom: 13px; padding: 13px 16px;
	font: inherit; color: var(--ink); background: #fff;
	border: 1px solid var(--line); border-radius: 6px;
}
.section-dark .in { background: #232834; border-color: #3a4150; color: #fff; }
.in:focus { outline: none; border-color: var(--gold); }
.in-area { min-height: 160px; resize: vertical; }
.form-2col { display: grid; grid-template-columns: 1fr 1fr; gap: 13px; }
.form-2col .in { margin-bottom: 13px; }
@media (max-width: 640px) { .form-2col { grid-template-columns: 1fr; } }
.form-actions { display: flex; align-items: center; gap: 16px; flex-wrap: wrap; }
.form-msg { font-size: 15px; min-height: 1.2em; margin: 10px 0 0; }
.msg-ok { color: #1d7a3d; } .section-dark .msg-ok { color: #58d47f; }
.msg-err { color: #b3372b; } .section-dark .msg-err { color: #ff8a7a; }

/* ---------- faq ---------- */
.faq { border-bottom: 1px solid var(--line); }
.faq summary {
	cursor: pointer; list-style: none; padding: 18px 30px 18px 2px; position: relative;
	font-family: var(--disp); font-weight: 700; font-size: 18px;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; position: absolute; right: 6px; top: 14px; font-size: 24px; color: var(--gold-deep); transition: transform .2s; }
.faq[open] summary::after { transform: rotate(45deg); }
.faq p { margin: 0 0 20px; padding-right: 20px; color: #3a3e47; }

/* ---------- road ---------- */
#road p { font-size: 18px; line-height: 1.75; }

/* ---------- footer ---------- */
.foot { background: var(--night); color: #b9b5a9; padding: 46px 0 30px; }
.foot-row { display: flex; justify-content: space-between; gap: 30px; flex-wrap: wrap; align-items: flex-start; }
.foot-brand p { margin: 8px 0 0; font-size: 14px; max-width: 380px; }
.foot-brand a { color: var(--gold); }
.foot-links { display: flex; gap: 22px; flex-wrap: wrap; }
.foot-links a { color: #d8d5cc; text-decoration: none; font-family: var(--disp); font-weight: 600; font-size: 15px; }
.foot-links a:hover { color: var(--gold); }
.foot-legal { display: flex; justify-content: space-between; gap: 14px; flex-wrap: wrap; margin-top: 34px; padding-top: 18px; border-top: 1px solid #2a2f3a; font-size: 13.5px; }
.foot-legal a { color: #b9b5a9; }

/* ---------- modals ---------- */
.modal { position: fixed; inset: 0; z-index: 200; display: flex; align-items: center; justify-content: center; background: rgba(12,14,19,.86); padding: 4vw; }
.modal[hidden] { display: none; }
.modal-card {
	position: relative; background: var(--paper); color: var(--ink); max-width: 760px; max-height: 84vh;
	overflow: auto; border-radius: 8px; padding: 34px 38px;
}
.modal-card h3 { font-size: 21px; margin: 22px 0 8px; } .modal-card h3:first-of-type { margin-top: 0; }
.modal-card p { font-size: 15px; }
.modal-close {
	position: absolute; top: 12px; right: 12px; z-index: 2; width: 38px; height: 38px; border-radius: 50%;
	border: 0; cursor: pointer; background: var(--gold); color: #231803; font-size: 17px; font-weight: 700;
}
.modal-video { position: relative; width: min(1100px, 100%); aspect-ratio: 16/9; background: #000; border-radius: 6px; }
.modal-video .modal-close { top: -16px; right: -16px; }
#video-frame { position: absolute; inset: 0; border-radius: 6px; overflow: hidden; }
#video-frame iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.modal-shot { position: relative; width: min(1200px, 100%); aspect-ratio: 1400/787; }
.modal-shot img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: contain; }
#lb-video { position: absolute; inset: 0; }
#lb-video iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; background: #000; }
.modal-shot .modal-close { top: -16px; right: -16px; }
.lb-btn {
	position: absolute; top: 50%; transform: translateY(-50%); z-index: 2; width: 50px; height: 50px;
	border-radius: 50%; border: 0; cursor: pointer; background: var(--gold); display: grid; place-items: center;
}
.lb-btn svg { width: 26px; height: 26px; fill: none; stroke: #231803; stroke-width: 2.6; stroke-linecap: round; stroke-linejoin: round; }
.lb-prev { left: -66px; } .lb-next { right: -66px; }
@media (max-width: 1340px) { .lb-prev { left: 10px; } .lb-next { right: 10px; } }
@media (max-width: 900px) { .lb-btn { display: none; } }
@media (max-width: 640px) { .modal { padding: 10px; } .modal-video .modal-close, .modal-shot .modal-close { top: 8px; right: 8px; } }

/* wide screens: cap and center, paper beyond */
@media (min-width: 1930px) {
	body { max-width: 1920px; margin: 0 auto; box-shadow: 0 0 60px rgba(0,0,0,.18); }
	.topnav { max-width: 1920px; margin: 0 auto; }
}


/* ---------- creator ---------- */
.creator-grid { display: grid; grid-template-columns: 300px 1fr; gap: 48px; align-items: start; max-width: 980px; }
.creator-photo { margin: 0; overflow: hidden; border-radius: 6px; box-shadow: 0 16px 40px rgba(20,23,30,0.25); }
.creator-photo img { transform: scale(1.2); transform-origin: 50% 32%; }
.creator-copy p { color: #3a3e47; }
.creator-quote {
	margin: 18px 0 0; padding: 4px 0 4px 20px; border-left: 4px solid var(--gold);
	font-family: var(--disp); font-weight: 600; font-size: 19px; line-height: 1.55; color: var(--ink);
}
@media (max-width: 760px) { .creator-grid { grid-template-columns: 1fr; } .creator-photo { max-width: 260px; } }


/* phones: darker hero for readability; Steam moves from button to text link */
@media (max-width: 640px) {
	.hero-veil {
		background:
			linear-gradient(180deg, rgba(20,23,30,0.72) 0%, rgba(20,23,30,0.45) 30%, rgba(20,23,30,0.5) 55%, rgba(20,23,30,0.95) 100%),
			linear-gradient(100deg, rgba(20,23,30,0.85) 0%, rgba(20,23,30,0.55) 45%, rgba(20,23,30,0.3) 72%);
	}
	.hero .btn-steam { display: none; }
	.hero-steam-link { display: block; }
	.hero-ctas { gap: 10px; margin-bottom: 12px; }
	.hero-ctas img { height: 48px; }
}
